@dxos/protocols 0.8.4-main.ef1bc66f44 → 0.8.4-main.effb148878
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.
- package/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/src/FeedProtocol.d.ts +6 -6
- package/dist/src/FeedProtocol.d.ts.map +1 -1
- package/dist/src/FeedProtocol.js +1 -1
- package/dist/src/FeedProtocol.js.map +1 -1
- package/dist/src/FunctionProtocol.d.ts +7 -0
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/TraceProtocol.d.ts +15 -0
- package/dist/src/TraceProtocol.d.ts.map +1 -0
- package/dist/src/TraceProtocol.js +4 -0
- package/dist/src/TraceProtocol.js.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +127 -5
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +22 -2
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +65 -2
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js +64 -37
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +110 -2
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +72 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +6 -0
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +17 -2
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +28 -0
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +10 -5
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +39 -0
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +27 -2
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +0 -10
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +24 -0
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +12 -7
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -139
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +10 -44
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +39 -25
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +169 -1
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +15 -1
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/errors.d.ts.map +1 -1
- package/dist/src/edge/errors.js +1 -1
- package/dist/src/edge/errors.js.map +1 -1
- package/dist/src/edge/index.d.ts +1 -0
- package/dist/src/edge/index.d.ts.map +1 -1
- package/dist/src/edge/index.js +4 -3
- package/dist/src/edge/index.js.map +1 -1
- package/dist/src/edge/registry.d.ts +212 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +139 -0
- package/dist/src/edge/registry.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +18 -18
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/encoding.d.ts +1 -1
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +132 -132
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +1 -1
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/helpers.d.ts +2 -2
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/index.js +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/indexing.test.js +1 -1
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts +3 -6
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/functions.d.ts +6 -12
- package/dist/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts +12 -24
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +1051 -1026
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +106 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +111 -101
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +26 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +48 -96
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts +4 -8
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/blob.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +12 -16
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/document.d.ts +11 -22
- package/dist/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.d.ts +6 -12
- package/dist/src/proto/gen/dxos/echo/object.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts +4 -8
- package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +36 -35
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/calls.d.ts +5 -10
- package/dist/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts +28 -10
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
- package/dist/src/proto/gen/dxos/edge/signal.d.ts +7 -14
- package/dist/src/proto/gen/dxos/edge/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/error.d.ts +1 -2
- package/dist/src/proto/gen/dxos/error.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/gravity.d.ts +10 -20
- package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +6 -12
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +35 -43
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts +13 -26
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts +4 -18
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/src/proto/gen/dxos/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +12 -24
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts +9 -18
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +6 -12
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/registry.d.ts +3 -6
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +24 -12
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts +4 -8
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -10
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts +12 -24
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts +3 -6
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/tracing.d.ts +10 -99
- package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/type.d.ts +12 -24
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/value.d.ts +2 -4
- package/dist/src/proto/gen/dxos/value.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/data.d.ts +4 -8
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/rpc.d.ts +7 -14
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js +127 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +35 -7
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.js +1 -1
- package/dist/src/proto/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/space-archive.d.ts +62 -3
- package/dist/src/space-archive.d.ts.map +1 -1
- package/dist/src/space-archive.js +13 -1
- package/dist/src/space-archive.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -31
- package/src/FeedProtocol.ts +5 -1
- package/src/FunctionProtocol.ts +9 -2
- package/src/TraceProtocol.ts +21 -0
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +150 -8
- package/src/buf/proto/gen/dxos/client/services_pb.ts +115 -39
- package/src/buf/proto/gen/dxos/config_pb.ts +128 -3
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +19 -3
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +38 -5
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +48 -2
- package/src/buf/proto/gen/dxos/iframe_pb.ts +1 -13
- package/src/buf/proto/gen/dxos/rpc_pb.ts +36 -7
- package/src/buf/proto/gen/dxos/tracing_pb.ts +11 -178
- package/src/edge/EdgeFunctionEnv.ts +63 -28
- package/src/edge/edge.ts +122 -1
- package/src/edge/index.ts +1 -0
- package/src/edge/registry.ts +164 -0
- package/src/errors/encoding.ts +0 -1
- package/src/errors/errors.ts +0 -1
- package/src/index.ts +1 -1
- package/src/proto/dxos/client/queue.proto +39 -4
- package/src/proto/dxos/client/services.proto +20 -1
- package/src/proto/dxos/config.proto +49 -2
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/echo/service.proto +14 -1
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +15 -0
- package/src/proto/dxos/iframe.proto +0 -3
- package/src/proto/dxos/rpc.proto +7 -0
- package/src/proto/dxos/tracing.proto +0 -40
- package/src/proto/gen/dxos/agent/dashboard.ts +3 -6
- package/src/proto/gen/dxos/agent/echoproxy.ts +1 -2
- package/src/proto/gen/dxos/agent/epoch.ts +1 -2
- package/src/proto/gen/dxos/agent/functions.ts +6 -12
- package/src/proto/gen/dxos/bot.ts +12 -24
- package/src/proto/gen/dxos/client/services.ts +1051 -1026
- package/src/proto/gen/dxos/config.ts +111 -101
- package/src/proto/gen/dxos/devtools/host.ts +48 -96
- package/src/proto/gen/dxos/devtools/swarm.ts +4 -8
- package/src/proto/gen/dxos/echo/blob.ts +1 -2
- package/src/proto/gen/dxos/echo/feed.ts +4 -8
- package/src/proto/gen/dxos/echo/filter.ts +2 -4
- package/src/proto/gen/dxos/echo/indexing.ts +2 -4
- package/src/proto/gen/dxos/echo/metadata.ts +12 -16
- package/src/proto/gen/dxos/echo/model/document.ts +11 -22
- package/src/proto/gen/dxos/echo/model/messenger.ts +1 -2
- package/src/proto/gen/dxos/echo/model/text.ts +2 -4
- package/src/proto/gen/dxos/echo/object.ts +6 -12
- package/src/proto/gen/dxos/echo/query.ts +4 -8
- package/src/proto/gen/dxos/echo/service.ts +36 -35
- package/src/proto/gen/dxos/echo/snapshot.ts +2 -4
- package/src/proto/gen/dxos/echo/timeframe.ts +2 -4
- package/src/proto/gen/dxos/edge/calls.ts +5 -10
- package/src/proto/gen/dxos/edge/messenger.ts +28 -10
- package/src/proto/gen/dxos/edge/signal.ts +7 -14
- package/src/proto/gen/dxos/error.ts +1 -2
- package/src/proto/gen/dxos/gravity.ts +10 -20
- package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -2
- package/src/proto/gen/dxos/halo/credentials/greet.ts +6 -12
- package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -4
- package/src/proto/gen/dxos/halo/credentials.ts +35 -43
- package/src/proto/gen/dxos/halo/invitations.ts +13 -26
- package/src/proto/gen/dxos/halo/keyring.ts +1 -2
- package/src/proto/gen/dxos/halo/keys.ts +2 -4
- package/src/proto/gen/dxos/halo/signed.ts +4 -8
- package/src/proto/gen/dxos/iframe.ts +4 -18
- package/src/proto/gen/dxos/keys.ts +2 -4
- package/src/proto/gen/dxos/mesh/bridge.ts +12 -24
- package/src/proto/gen/dxos/mesh/broadcast.ts +1 -2
- package/src/proto/gen/dxos/mesh/messaging.ts +2 -4
- package/src/proto/gen/dxos/mesh/muxer.ts +5 -10
- package/src/proto/gen/dxos/mesh/presence.ts +1 -2
- package/src/proto/gen/dxos/mesh/protocol.ts +3 -6
- package/src/proto/gen/dxos/mesh/replicator.ts +2 -4
- package/src/proto/gen/dxos/mesh/signal.ts +9 -18
- package/src/proto/gen/dxos/mesh/swarm.ts +6 -12
- package/src/proto/gen/dxos/mesh/teleport/auth.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/automerge.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/control.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/replicator.ts +5 -10
- package/src/proto/gen/dxos/mesh/teleport.ts +2 -4
- package/src/proto/gen/dxos/registry.ts +3 -6
- package/src/proto/gen/dxos/rpc.ts +24 -12
- package/src/proto/gen/dxos/service/agentmanager.ts +4 -8
- package/src/proto/gen/dxos/service/publisher.ts +5 -10
- package/src/proto/gen/dxos/service/supervisor.ts +12 -24
- package/src/proto/gen/dxos/service/tunnel.ts +3 -6
- package/src/proto/gen/dxos/tracing.ts +10 -96
- package/src/proto/gen/dxos/type.ts +12 -24
- package/src/proto/gen/dxos/value.ts +2 -4
- package/src/proto/gen/example/testing/data.ts +4 -8
- package/src/proto/gen/example/testing/rpc.ts +7 -14
- package/src/proto/gen/google/protobuf.ts +326 -40
- package/src/proto/gen/index.ts +36 -8
- package/src/space-archive.ts +70 -1
- package/dist/src/tracing.d.ts +0 -40
- package/dist/src/tracing.d.ts.map +0 -1
- package/dist/src/tracing.js +0 -50
- package/dist/src/tracing.js.map +0 -1
- package/src/tracing.ts +0 -86
|
@@ -67,764 +67,807 @@ import * as example_testing_rpc from "../../example/testing/rpc.js";
|
|
|
67
67
|
import * as google_protobuf from "../../google/protobuf.js";
|
|
68
68
|
/**
|
|
69
69
|
* Defined in:
|
|
70
|
-
* {@link file://./../../../dxos/client/
|
|
70
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
73
|
-
|
|
72
|
+
export enum SystemStatus {
|
|
73
|
+
INACTIVE = 0,
|
|
74
|
+
ACTIVE = 1
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
78
|
+
*/
|
|
79
|
+
export interface UpdateStatusRequest {
|
|
80
|
+
status: SystemStatus;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryStatusRequest {
|
|
74
86
|
/**
|
|
75
87
|
* Options:
|
|
76
88
|
* - proto3_optional = true
|
|
77
89
|
*/
|
|
78
|
-
|
|
90
|
+
interval?: number;
|
|
79
91
|
}
|
|
80
92
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* Defined in:
|
|
84
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
93
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
85
94
|
*/
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
SPACE_INACTIVE = 2,
|
|
89
|
-
SPACE_ACTIVE = 6,
|
|
90
|
-
SPACE_CLOSED = 1,
|
|
91
|
-
SPACE_CONTROL_ONLY = 7,
|
|
92
|
-
SPACE_INITIALIZING = 4,
|
|
93
|
-
SPACE_READY = 3,
|
|
94
|
-
SPACE_ERROR = 5,
|
|
95
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
95
|
+
export interface QueryStatusResponse {
|
|
96
|
+
status: SystemStatus;
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* Defined in:
|
|
101
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
99
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
102
100
|
*/
|
|
103
|
-
export interface
|
|
104
|
-
/**
|
|
105
|
-
* Local identifier (random).
|
|
106
|
-
*/
|
|
107
|
-
invitationId: string;
|
|
108
|
-
/**
|
|
109
|
-
* Determines the behavior of the invitation.
|
|
110
|
-
*/
|
|
111
|
-
type: Invitation.Type;
|
|
112
|
-
/**
|
|
113
|
-
* Kind of access the invitation will grant.
|
|
114
|
-
*/
|
|
115
|
-
kind: Invitation.Kind;
|
|
116
|
-
/**
|
|
117
|
-
* How the invitation is authenticated.
|
|
118
|
-
*/
|
|
119
|
-
authMethod: Invitation.AuthMethod;
|
|
101
|
+
export interface GetDiagnosticsRequest {
|
|
120
102
|
/**
|
|
121
|
-
*
|
|
103
|
+
* Options:
|
|
104
|
+
* - proto3_optional = true
|
|
122
105
|
*/
|
|
123
|
-
|
|
106
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
107
|
+
}
|
|
108
|
+
export namespace GetDiagnosticsRequest {
|
|
124
109
|
/**
|
|
125
|
-
*
|
|
110
|
+
* Defined in:
|
|
111
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
126
112
|
*/
|
|
127
|
-
|
|
113
|
+
export enum KEY_OPTION {
|
|
114
|
+
NONE = 0,
|
|
115
|
+
TRUNCATE = 1,
|
|
116
|
+
HUMANIZE = 2
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
121
|
+
*/
|
|
122
|
+
export interface GetDiagnosticsResponse {
|
|
123
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
124
|
+
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
128
|
+
*/
|
|
129
|
+
export interface Platform {
|
|
130
|
+
type: Platform.PLATFORM_TYPE;
|
|
128
131
|
/**
|
|
129
|
-
*
|
|
132
|
+
* The User-Agent string from a browser
|
|
130
133
|
*
|
|
131
134
|
* Options:
|
|
132
135
|
* - proto3_optional = true
|
|
133
136
|
*/
|
|
134
|
-
|
|
137
|
+
userAgent?: string;
|
|
135
138
|
/**
|
|
136
|
-
*
|
|
139
|
+
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
137
140
|
*
|
|
138
141
|
* Options:
|
|
139
142
|
* - proto3_optional = true
|
|
140
143
|
*/
|
|
141
|
-
|
|
144
|
+
platform?: string;
|
|
142
145
|
/**
|
|
143
|
-
*
|
|
146
|
+
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
144
147
|
*
|
|
145
148
|
* Options:
|
|
146
149
|
* - proto3_optional = true
|
|
147
150
|
*/
|
|
148
|
-
|
|
151
|
+
arch?: string;
|
|
149
152
|
/**
|
|
150
|
-
*
|
|
153
|
+
* the node.js version string
|
|
151
154
|
*
|
|
152
155
|
* Options:
|
|
153
156
|
* - proto3_optional = true
|
|
154
157
|
*/
|
|
155
|
-
|
|
158
|
+
runtime?: string;
|
|
156
159
|
/**
|
|
157
|
-
*
|
|
160
|
+
* the number of seconds the client has been up
|
|
158
161
|
*
|
|
159
162
|
* Options:
|
|
160
163
|
* - proto3_optional = true
|
|
161
164
|
*/
|
|
162
|
-
|
|
165
|
+
uptime?: number;
|
|
163
166
|
/**
|
|
164
|
-
*
|
|
167
|
+
* e.g. NodeJS.MemoryUsage, subject to change
|
|
165
168
|
*
|
|
166
169
|
* Options:
|
|
167
170
|
* - proto3_optional = true
|
|
168
171
|
*/
|
|
169
|
-
|
|
172
|
+
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
173
|
+
}
|
|
174
|
+
export namespace Platform {
|
|
170
175
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
176
|
+
* Defined in:
|
|
177
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
173
178
|
*/
|
|
174
|
-
|
|
179
|
+
export enum PLATFORM_TYPE {
|
|
180
|
+
BROWSER = 0,
|
|
181
|
+
SHARED_WORKER = 1,
|
|
182
|
+
NODE = 2,
|
|
183
|
+
DEDICATED_WORKER = 3
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Defined in:
|
|
188
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
189
|
+
*/
|
|
190
|
+
export interface SystemService {
|
|
175
191
|
/**
|
|
176
|
-
*
|
|
177
|
-
* - proto3_optional = true
|
|
192
|
+
* Get the static config of the client.
|
|
178
193
|
*/
|
|
179
|
-
|
|
194
|
+
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
180
195
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* Options:
|
|
184
|
-
* - proto3_optional = true
|
|
196
|
+
* Get the diagnostics snapshot.
|
|
185
197
|
*/
|
|
186
|
-
|
|
198
|
+
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
187
199
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* Options:
|
|
191
|
-
* - proto3_optional = true
|
|
200
|
+
* Update the status of the client. Used to re-activate an inactive client.
|
|
192
201
|
*/
|
|
193
|
-
|
|
202
|
+
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
194
203
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* Options:
|
|
198
|
-
* - proto3_optional = true
|
|
204
|
+
* Stream the status of the client.
|
|
199
205
|
*/
|
|
200
|
-
|
|
206
|
+
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
201
207
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* Options:
|
|
205
|
-
* - proto3_optional = true
|
|
208
|
+
* Reset the client.
|
|
206
209
|
*/
|
|
207
|
-
|
|
210
|
+
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
208
211
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* Options:
|
|
212
|
-
* - proto3_optional = true
|
|
212
|
+
* Get platform Information
|
|
213
213
|
*/
|
|
214
|
-
|
|
214
|
+
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
INTERACTIVE = 0,
|
|
223
|
-
DELEGATED = 1,
|
|
224
|
-
MULTIUSE = 2
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Defined in:
|
|
228
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
229
|
-
*/
|
|
230
|
-
export enum Kind {
|
|
231
|
-
DEVICE = 0,
|
|
232
|
-
SPACE = 1
|
|
233
|
-
}
|
|
216
|
+
/**
|
|
217
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
218
|
+
*/
|
|
219
|
+
export interface Identity {
|
|
220
|
+
did: string;
|
|
221
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
234
222
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
223
|
+
* Options:
|
|
224
|
+
* - proto3_optional = true
|
|
237
225
|
*/
|
|
238
|
-
|
|
239
|
-
NONE = 0,
|
|
240
|
-
SHARED_SECRET = 1,
|
|
241
|
-
KNOWN_PUBLIC_KEY = 2
|
|
242
|
-
}
|
|
226
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
243
227
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
228
|
+
* Options:
|
|
229
|
+
* - proto3_optional = true
|
|
246
230
|
*/
|
|
247
|
-
|
|
248
|
-
INIT = 0,
|
|
249
|
-
CONNECTING = 1,
|
|
250
|
-
CONNECTED = 2,
|
|
251
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
252
|
-
AUTHENTICATING = 4,
|
|
253
|
-
SUCCESS = 5,
|
|
254
|
-
CANCELLED = 6,
|
|
255
|
-
TIMEOUT = 7,
|
|
256
|
-
ERROR = 8,
|
|
257
|
-
EXPIRED = 9
|
|
258
|
-
}
|
|
231
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
259
232
|
}
|
|
260
233
|
/**
|
|
261
|
-
* Defined in:
|
|
262
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
234
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
263
235
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
|
|
266
|
-
|
|
236
|
+
export interface RequestRecoveryChallengeResponse {
|
|
237
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
238
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
239
|
+
challenge: string;
|
|
267
240
|
}
|
|
268
|
-
|
|
241
|
+
/**
|
|
242
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
243
|
+
*/
|
|
244
|
+
export interface RecoverIdentityRequest {
|
|
245
|
+
recoveryCode?: string;
|
|
246
|
+
external?: RecoverIdentityRequest.ExternalSignature;
|
|
247
|
+
token?: string;
|
|
248
|
+
}
|
|
249
|
+
export namespace RecoverIdentityRequest {
|
|
269
250
|
/**
|
|
270
|
-
* Defined in:
|
|
271
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
251
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
272
252
|
*/
|
|
273
|
-
export interface
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
key?: string;
|
|
253
|
+
export interface ExternalSignature {
|
|
254
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
255
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
256
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
257
|
+
signature: Uint8Array;
|
|
279
258
|
/**
|
|
280
259
|
* Options:
|
|
281
260
|
* - proto3_optional = true
|
|
282
261
|
*/
|
|
283
|
-
|
|
262
|
+
clientDataJson?: Uint8Array;
|
|
284
263
|
/**
|
|
285
264
|
* Options:
|
|
286
265
|
* - proto3_optional = true
|
|
287
266
|
*/
|
|
288
|
-
|
|
267
|
+
authenticatorData?: Uint8Array;
|
|
289
268
|
}
|
|
290
269
|
}
|
|
291
270
|
/**
|
|
292
|
-
* Defined in:
|
|
293
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
271
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
294
272
|
*/
|
|
295
|
-
export interface
|
|
273
|
+
export interface RecoveryCredentialData {
|
|
296
274
|
/**
|
|
297
|
-
*
|
|
298
|
-
* - proto3_optional = true
|
|
275
|
+
* Recovery key used to validate recovery challenge signature.
|
|
299
276
|
*/
|
|
300
|
-
|
|
277
|
+
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
301
278
|
/**
|
|
302
|
-
*
|
|
303
|
-
* - proto3_optional = true
|
|
279
|
+
* Public key used to identify the recovery key.
|
|
304
280
|
*/
|
|
305
|
-
|
|
281
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
282
|
+
/**
|
|
283
|
+
* Algorithm used to generate the recovery key.
|
|
284
|
+
*/
|
|
285
|
+
algorithm: string;
|
|
306
286
|
}
|
|
307
287
|
/**
|
|
308
|
-
* Defined in:
|
|
309
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
288
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
310
289
|
*/
|
|
311
|
-
export interface
|
|
290
|
+
export interface CreateRecoveryCredentialRequest {
|
|
312
291
|
/**
|
|
292
|
+
* If not provided, a new key will be generated.
|
|
293
|
+
*
|
|
313
294
|
* Options:
|
|
314
295
|
* - proto3_optional = true
|
|
315
296
|
*/
|
|
316
|
-
|
|
297
|
+
data?: RecoveryCredentialData;
|
|
317
298
|
}
|
|
318
299
|
/**
|
|
319
|
-
* Defined in:
|
|
320
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
300
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
321
301
|
*/
|
|
322
|
-
export interface
|
|
302
|
+
export interface CreateRecoveryCredentialResponse {
|
|
323
303
|
/**
|
|
324
304
|
* Options:
|
|
325
305
|
* - proto3_optional = true
|
|
326
306
|
*/
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Defined in:
|
|
331
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
332
|
-
*/
|
|
333
|
-
export interface QueryMetricsResponse {
|
|
334
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
335
|
-
metrics: Metrics;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Defined in:
|
|
339
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
340
|
-
*/
|
|
341
|
-
export enum LogLevel {
|
|
342
|
-
NONE = 0,
|
|
343
|
-
TRACE = 5,
|
|
344
|
-
DEBUG = 10,
|
|
345
|
-
VERBOSE = 11,
|
|
346
|
-
INFO = 12,
|
|
347
|
-
WARN = 13,
|
|
348
|
-
ERROR = 14
|
|
307
|
+
recoveryCode?: string;
|
|
349
308
|
}
|
|
350
309
|
/**
|
|
351
|
-
* Defined in:
|
|
352
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
310
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
353
311
|
*/
|
|
354
|
-
export interface
|
|
355
|
-
filters?: QueryLogsRequest.Filter[];
|
|
312
|
+
export interface QueryIdentityResponse {
|
|
356
313
|
/**
|
|
357
314
|
* Options:
|
|
358
315
|
* - proto3_optional = true
|
|
359
316
|
*/
|
|
360
|
-
|
|
317
|
+
identity?: Identity;
|
|
361
318
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
export enum MatchingOptions {
|
|
368
|
-
NONE = 0,
|
|
369
|
-
INCLUSIVE = 1,
|
|
370
|
-
EXPLICIT = 2
|
|
371
|
-
}
|
|
319
|
+
/**
|
|
320
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
321
|
+
*/
|
|
322
|
+
export interface SignPresentationRequest {
|
|
323
|
+
presentation: dxos_halo_credentials.Presentation;
|
|
372
324
|
/**
|
|
373
|
-
*
|
|
374
|
-
*
|
|
325
|
+
* Options:
|
|
326
|
+
* - proto3_optional = true
|
|
375
327
|
*/
|
|
376
|
-
|
|
377
|
-
level: LogLevel;
|
|
378
|
-
/**
|
|
379
|
-
* Options:
|
|
380
|
-
* - proto3_optional = true
|
|
381
|
-
*/
|
|
382
|
-
pattern?: string;
|
|
383
|
-
}
|
|
328
|
+
nonce?: Uint8Array;
|
|
384
329
|
}
|
|
385
330
|
/**
|
|
386
|
-
* Defined in:
|
|
387
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
331
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
388
332
|
*/
|
|
389
|
-
export interface
|
|
390
|
-
level: LogLevel;
|
|
391
|
-
message: string;
|
|
333
|
+
export interface CreateIdentityRequest {
|
|
392
334
|
/**
|
|
393
335
|
* Options:
|
|
394
336
|
* - proto3_optional = true
|
|
395
337
|
*/
|
|
396
|
-
|
|
338
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
397
339
|
/**
|
|
398
340
|
* Options:
|
|
399
341
|
* - proto3_optional = true
|
|
400
342
|
*/
|
|
401
|
-
|
|
343
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Defined in:
|
|
347
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
348
|
+
*/
|
|
349
|
+
export interface IdentityService {
|
|
350
|
+
createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
351
|
+
requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
|
|
352
|
+
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
353
|
+
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
354
|
+
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
355
|
+
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
356
|
+
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
357
|
+
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Defined in:
|
|
361
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
362
|
+
*/
|
|
363
|
+
export enum DeviceKind {
|
|
364
|
+
CURRENT = 0,
|
|
365
|
+
TRUSTED = 1
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
369
|
+
*/
|
|
370
|
+
export interface Device {
|
|
371
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
372
|
+
kind: DeviceKind;
|
|
402
373
|
/**
|
|
403
374
|
* Options:
|
|
404
375
|
* - proto3_optional = true
|
|
405
376
|
*/
|
|
406
|
-
|
|
407
|
-
|
|
377
|
+
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
378
|
+
presence: Device.PresenceState;
|
|
408
379
|
}
|
|
409
|
-
export namespace
|
|
380
|
+
export namespace Device {
|
|
410
381
|
/**
|
|
411
382
|
* Defined in:
|
|
412
|
-
* {@link file://./../../../dxos/client/
|
|
383
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
413
384
|
*/
|
|
414
|
-
export
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
* Options:
|
|
419
|
-
* - proto3_optional = true
|
|
420
|
-
*/
|
|
421
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
422
|
-
/**
|
|
423
|
-
* Options:
|
|
424
|
-
* - proto3_optional = true
|
|
425
|
-
*/
|
|
426
|
-
resourceId?: number;
|
|
385
|
+
export enum PresenceState {
|
|
386
|
+
OFFLINE = 0,
|
|
387
|
+
ONLINE = 1,
|
|
388
|
+
REMOVED = 2
|
|
427
389
|
}
|
|
428
390
|
}
|
|
429
391
|
/**
|
|
430
|
-
* Defined in:
|
|
431
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
392
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
432
393
|
*/
|
|
433
|
-
export interface
|
|
434
|
-
|
|
435
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
436
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
394
|
+
export interface QueryDevicesResponse {
|
|
395
|
+
devices?: Device[];
|
|
437
396
|
}
|
|
438
397
|
/**
|
|
439
398
|
* Defined in:
|
|
440
|
-
* {@link file://./../../../dxos/client/
|
|
399
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
441
400
|
*/
|
|
442
|
-
export interface
|
|
443
|
-
|
|
401
|
+
export interface DevicesService {
|
|
402
|
+
updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
|
|
403
|
+
queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
407
|
+
*/
|
|
408
|
+
export interface Contact {
|
|
409
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
444
410
|
/**
|
|
445
411
|
* Options:
|
|
446
412
|
* - proto3_optional = true
|
|
447
413
|
*/
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
414
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
415
|
+
commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
419
|
+
*/
|
|
420
|
+
export interface ContactBook {
|
|
421
|
+
contacts?: Contact[];
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Defined in:
|
|
425
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
426
|
+
*/
|
|
427
|
+
export interface ContactsService {
|
|
428
|
+
getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
|
|
429
|
+
queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
433
|
+
*/
|
|
434
|
+
export interface SpaceMember {
|
|
435
|
+
identity: Identity;
|
|
436
|
+
presence: SpaceMember.PresenceState;
|
|
437
|
+
peerStates?: dxos_mesh_presence.PeerState[];
|
|
438
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
439
|
+
}
|
|
440
|
+
export namespace SpaceMember {
|
|
453
441
|
/**
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
* Options:
|
|
457
|
-
* - proto3_optional = true
|
|
442
|
+
* Defined in:
|
|
443
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
458
444
|
*/
|
|
459
|
-
|
|
445
|
+
export enum PresenceState {
|
|
446
|
+
OFFLINE = 0,
|
|
447
|
+
ONLINE = 1
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
452
|
+
*/
|
|
453
|
+
export interface Space {
|
|
454
|
+
id: string;
|
|
455
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
456
|
+
state: SpaceState;
|
|
460
457
|
/**
|
|
461
|
-
* Filter items before this cursor. Exclusive.
|
|
462
|
-
*
|
|
463
458
|
* Options:
|
|
464
459
|
* - proto3_optional = true
|
|
465
460
|
*/
|
|
466
|
-
|
|
461
|
+
pipeline?: Space.PipelineState;
|
|
467
462
|
/**
|
|
468
|
-
* Filter items after this position. Inclusive.
|
|
469
|
-
*
|
|
470
463
|
* Options:
|
|
471
464
|
* - proto3_optional = true
|
|
472
465
|
*/
|
|
473
|
-
|
|
466
|
+
error?: dxos_error.Error;
|
|
474
467
|
/**
|
|
475
|
-
* Filter items before this position. Exclusive.
|
|
476
|
-
*
|
|
477
468
|
* Options:
|
|
478
469
|
* - proto3_optional = true
|
|
479
470
|
*/
|
|
480
|
-
|
|
471
|
+
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
472
|
+
tags?: string[];
|
|
473
|
+
membershipPolicy: dxos_halo_credentials.MembershipPolicy;
|
|
474
|
+
members?: SpaceMember[];
|
|
481
475
|
/**
|
|
482
476
|
* Options:
|
|
483
477
|
* - proto3_optional = true
|
|
484
478
|
*/
|
|
485
|
-
|
|
479
|
+
creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
486
480
|
/**
|
|
487
481
|
* Options:
|
|
488
482
|
* - proto3_optional = true
|
|
489
483
|
*/
|
|
490
|
-
|
|
491
|
-
|
|
484
|
+
cache?: dxos_echo_metadata.SpaceCache;
|
|
485
|
+
metrics: Space.Metrics;
|
|
492
486
|
}
|
|
493
|
-
|
|
494
|
-
* Defined in:
|
|
495
|
-
* {@link file://./../../../dxos/client/queue.proto}
|
|
496
|
-
*/
|
|
497
|
-
export interface QueueQueryResult {
|
|
498
|
-
objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
|
|
487
|
+
export namespace Space {
|
|
499
488
|
/**
|
|
500
|
-
*
|
|
489
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
501
490
|
*/
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
491
|
+
export interface Metrics {
|
|
492
|
+
/**
|
|
493
|
+
* Options:
|
|
494
|
+
* - proto3_optional = true
|
|
495
|
+
*/
|
|
496
|
+
open?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
497
|
+
/**
|
|
498
|
+
* Options:
|
|
499
|
+
* - proto3_optional = true
|
|
500
|
+
*/
|
|
501
|
+
pipelineInitBegin?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
502
|
+
/**
|
|
503
|
+
* Options:
|
|
504
|
+
* - proto3_optional = true
|
|
505
|
+
*/
|
|
506
|
+
controlPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
507
|
+
/**
|
|
508
|
+
* Options:
|
|
509
|
+
* - proto3_optional = true
|
|
510
|
+
*/
|
|
511
|
+
dataPipelineOpen?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
512
|
+
/**
|
|
513
|
+
* Options:
|
|
514
|
+
* - proto3_optional = true
|
|
515
|
+
*/
|
|
516
|
+
dataPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
517
|
+
/**
|
|
518
|
+
* Options:
|
|
519
|
+
* - proto3_optional = true
|
|
520
|
+
*/
|
|
521
|
+
ready?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
525
|
+
*/
|
|
526
|
+
export interface PipelineState {
|
|
527
|
+
/**
|
|
528
|
+
* Options:
|
|
529
|
+
* - proto3_optional = true
|
|
530
|
+
*/
|
|
531
|
+
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
532
|
+
/**
|
|
533
|
+
* Options:
|
|
534
|
+
* - proto3_optional = true
|
|
535
|
+
*/
|
|
536
|
+
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
537
|
+
/**
|
|
538
|
+
* TODO(burdon): Normalize _key suffix.
|
|
539
|
+
*/
|
|
540
|
+
controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
541
|
+
dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
542
|
+
/**
|
|
543
|
+
* Last processed epoch. Might now have been applied yet.
|
|
544
|
+
*
|
|
545
|
+
* Options:
|
|
546
|
+
* - proto3_optional = true
|
|
547
|
+
*/
|
|
548
|
+
currentEpoch?: dxos_halo_credentials.Credential;
|
|
549
|
+
/**
|
|
550
|
+
* Epoch that is currently applied.
|
|
551
|
+
*
|
|
552
|
+
* Options:
|
|
553
|
+
* - proto3_optional = true
|
|
554
|
+
*/
|
|
555
|
+
appliedEpoch?: dxos_halo_credentials.Credential;
|
|
556
|
+
/**
|
|
557
|
+
* Mutations already processed.
|
|
558
|
+
*
|
|
559
|
+
* Options:
|
|
560
|
+
* - proto3_optional = true
|
|
561
|
+
*/
|
|
562
|
+
currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
563
|
+
/**
|
|
564
|
+
* Minimum timeframe to consider the state to be up-to-date.
|
|
565
|
+
*
|
|
566
|
+
* Options:
|
|
567
|
+
* - proto3_optional = true
|
|
568
|
+
*/
|
|
569
|
+
targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
570
|
+
/**
|
|
571
|
+
* All mutations stored in feeds.
|
|
572
|
+
*
|
|
573
|
+
* Options:
|
|
574
|
+
* - proto3_optional = true
|
|
575
|
+
*/
|
|
576
|
+
totalControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
577
|
+
/**
|
|
578
|
+
* All mutations known to exist on the network.
|
|
579
|
+
*
|
|
580
|
+
* Options:
|
|
581
|
+
* - proto3_optional = true
|
|
582
|
+
*/
|
|
583
|
+
knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
584
|
+
/**
|
|
585
|
+
* Start timeframe of the pipeline.
|
|
586
|
+
*
|
|
587
|
+
* Options:
|
|
588
|
+
* - proto3_optional = true
|
|
589
|
+
*/
|
|
590
|
+
startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
591
|
+
/**
|
|
592
|
+
* Mutations already processed.
|
|
593
|
+
*
|
|
594
|
+
* Options:
|
|
595
|
+
* - proto3_optional = true
|
|
596
|
+
*/
|
|
597
|
+
currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
598
|
+
/**
|
|
599
|
+
* Minimum timeframe to consider the state to be up-to-date.
|
|
600
|
+
*
|
|
601
|
+
* Options:
|
|
602
|
+
* - proto3_optional = true
|
|
603
|
+
*/
|
|
604
|
+
targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
605
|
+
/**
|
|
606
|
+
* All mutations stored in feeds.
|
|
607
|
+
*
|
|
608
|
+
* Options:
|
|
609
|
+
* - proto3_optional = true
|
|
610
|
+
*/
|
|
611
|
+
totalDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
612
|
+
/**
|
|
613
|
+
* All mutations known to exist on the network.
|
|
614
|
+
*
|
|
615
|
+
* Options:
|
|
616
|
+
* - proto3_optional = true
|
|
617
|
+
*/
|
|
618
|
+
knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
619
|
+
/**
|
|
620
|
+
* URL of the current space root automerge document.
|
|
621
|
+
*
|
|
622
|
+
* Options:
|
|
623
|
+
* - proto3_optional = true
|
|
624
|
+
*/
|
|
625
|
+
spaceRootUrl?: string;
|
|
626
|
+
}
|
|
521
627
|
}
|
|
522
628
|
/**
|
|
523
|
-
* Defined in:
|
|
524
|
-
* {@link file://./../../../dxos/client/queue.proto}
|
|
629
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
525
630
|
*/
|
|
526
|
-
export interface
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
queueId: string;
|
|
530
|
-
objectIds?: string[];
|
|
631
|
+
export interface CreateSpaceRequest {
|
|
632
|
+
tags?: string[];
|
|
633
|
+
membershipPolicy: dxos_halo_credentials.MembershipPolicy;
|
|
531
634
|
}
|
|
532
635
|
/**
|
|
533
|
-
* Defined in:
|
|
534
|
-
* {@link file://./../../../dxos/client/queue.proto}
|
|
636
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
535
637
|
*/
|
|
536
|
-
export interface
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
638
|
+
export interface UpdateSpaceRequest {
|
|
639
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
640
|
+
/**
|
|
641
|
+
* Allowed values: ACTIVE, INACTIVE.
|
|
642
|
+
*
|
|
643
|
+
* Options:
|
|
644
|
+
* - proto3_optional = true
|
|
645
|
+
*/
|
|
646
|
+
state?: SpaceState;
|
|
647
|
+
/**
|
|
648
|
+
* Options:
|
|
649
|
+
* - proto3_optional = true
|
|
650
|
+
*/
|
|
651
|
+
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
540
652
|
}
|
|
541
653
|
/**
|
|
542
|
-
* Defined in:
|
|
543
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
654
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
544
655
|
*/
|
|
545
|
-
export
|
|
546
|
-
|
|
547
|
-
ACTIVE = 1
|
|
656
|
+
export interface QuerySpacesResponse {
|
|
657
|
+
spaces?: Space[];
|
|
548
658
|
}
|
|
549
659
|
/**
|
|
550
|
-
* Defined in:
|
|
551
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
660
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
552
661
|
*/
|
|
553
|
-
export interface
|
|
554
|
-
|
|
662
|
+
export interface PostMessageRequest {
|
|
663
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
664
|
+
channel: string;
|
|
665
|
+
message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
555
666
|
}
|
|
556
667
|
/**
|
|
557
|
-
* Defined in:
|
|
558
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
668
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
559
669
|
*/
|
|
560
|
-
export interface
|
|
670
|
+
export interface SubscribeMessagesRequest {
|
|
671
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
672
|
+
channel: string;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
676
|
+
*/
|
|
677
|
+
export interface WriteCredentialsRequest {
|
|
678
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
679
|
+
credentials?: dxos_halo_credentials.Credential[];
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
683
|
+
*/
|
|
684
|
+
export interface QueryCredentialsRequest {
|
|
685
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
561
686
|
/**
|
|
562
687
|
* Options:
|
|
563
688
|
* - proto3_optional = true
|
|
564
689
|
*/
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* Defined in:
|
|
569
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
570
|
-
*/
|
|
571
|
-
export interface QueryStatusResponse {
|
|
572
|
-
status: SystemStatus;
|
|
690
|
+
noTail?: boolean;
|
|
573
691
|
}
|
|
574
692
|
/**
|
|
575
|
-
* Defined in:
|
|
576
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
693
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
577
694
|
*/
|
|
578
|
-
export interface
|
|
695
|
+
export interface CreateEpochRequest {
|
|
696
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
579
697
|
/**
|
|
580
698
|
* Options:
|
|
581
699
|
* - proto3_optional = true
|
|
582
700
|
*/
|
|
583
|
-
|
|
701
|
+
migration?: CreateEpochRequest.Migration;
|
|
702
|
+
/**
|
|
703
|
+
* For REPLACE_AUTOMERGE_ROOT migration.
|
|
704
|
+
*
|
|
705
|
+
* Options:
|
|
706
|
+
* - proto3_optional = true
|
|
707
|
+
*/
|
|
708
|
+
automergeRootUrl?: string;
|
|
584
709
|
}
|
|
585
|
-
export namespace
|
|
710
|
+
export namespace CreateEpochRequest {
|
|
586
711
|
/**
|
|
587
712
|
* Defined in:
|
|
588
713
|
* {@link file://./../../../dxos/client/services.proto}
|
|
589
714
|
*/
|
|
590
|
-
export enum
|
|
715
|
+
export enum Migration {
|
|
591
716
|
NONE = 0,
|
|
592
|
-
|
|
593
|
-
|
|
717
|
+
INIT_AUTOMERGE = 1,
|
|
718
|
+
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
719
|
+
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
720
|
+
REPLACE_AUTOMERGE_ROOT = 4,
|
|
721
|
+
MIGRATE_REFERENCES_TO_DXN = 5
|
|
594
722
|
}
|
|
595
723
|
}
|
|
596
724
|
/**
|
|
597
|
-
* Defined in:
|
|
598
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
599
|
-
*/
|
|
600
|
-
export interface GetDiagnosticsResponse {
|
|
601
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
602
|
-
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* Defined in:
|
|
606
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
725
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
607
726
|
*/
|
|
608
|
-
export interface
|
|
609
|
-
type: Platform.PLATFORM_TYPE;
|
|
610
|
-
/**
|
|
611
|
-
* The User-Agent string from a browser
|
|
612
|
-
*
|
|
613
|
-
* Options:
|
|
614
|
-
* - proto3_optional = true
|
|
615
|
-
*/
|
|
616
|
-
userAgent?: string;
|
|
727
|
+
export interface CreateEpochResponse {
|
|
617
728
|
/**
|
|
618
|
-
*
|
|
729
|
+
* Credential of the new epoch.
|
|
619
730
|
*
|
|
620
731
|
* Options:
|
|
621
732
|
* - proto3_optional = true
|
|
622
733
|
*/
|
|
623
|
-
|
|
734
|
+
epochCredential?: dxos_halo_credentials.Credential;
|
|
624
735
|
/**
|
|
625
|
-
*
|
|
736
|
+
* Control pipeline timeframe.
|
|
626
737
|
*
|
|
627
738
|
* Options:
|
|
628
739
|
* - proto3_optional = true
|
|
629
740
|
*/
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* the node.js version string
|
|
633
|
-
*
|
|
634
|
-
* Options:
|
|
635
|
-
* - proto3_optional = true
|
|
636
|
-
*/
|
|
637
|
-
runtime?: string;
|
|
638
|
-
/**
|
|
639
|
-
* the number of seconds the client has been up
|
|
640
|
-
*
|
|
641
|
-
* Options:
|
|
642
|
-
* - proto3_optional = true
|
|
643
|
-
*/
|
|
644
|
-
uptime?: number;
|
|
645
|
-
/**
|
|
646
|
-
* e.g. NodeJS.MemoryUsage, subject to change
|
|
647
|
-
*
|
|
648
|
-
* Options:
|
|
649
|
-
* - proto3_optional = true
|
|
650
|
-
*/
|
|
651
|
-
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
652
|
-
}
|
|
653
|
-
export namespace Platform {
|
|
654
|
-
/**
|
|
655
|
-
* Defined in:
|
|
656
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
657
|
-
*/
|
|
658
|
-
export enum PLATFORM_TYPE {
|
|
659
|
-
BROWSER = 0,
|
|
660
|
-
SHARED_WORKER = 1,
|
|
661
|
-
NODE = 2,
|
|
662
|
-
DEDICATED_WORKER = 3
|
|
663
|
-
}
|
|
741
|
+
controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
664
742
|
}
|
|
665
743
|
/**
|
|
666
|
-
* Defined in:
|
|
667
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
744
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
668
745
|
*/
|
|
669
|
-
export interface
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
674
|
-
/**
|
|
675
|
-
* Get the diagnostics snapshot.
|
|
676
|
-
*/
|
|
677
|
-
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
678
|
-
/**
|
|
679
|
-
* Update the status of the client. Used to re-activate an inactive client.
|
|
680
|
-
*/
|
|
681
|
-
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
682
|
-
/**
|
|
683
|
-
* Stream the status of the client.
|
|
684
|
-
*/
|
|
685
|
-
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
686
|
-
/**
|
|
687
|
-
* Reset the client.
|
|
688
|
-
*/
|
|
689
|
-
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
690
|
-
/**
|
|
691
|
-
* Get platform Information
|
|
692
|
-
*/
|
|
693
|
-
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
746
|
+
export interface UpdateMemberRoleRequest {
|
|
747
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
748
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
749
|
+
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
694
750
|
}
|
|
695
751
|
/**
|
|
696
|
-
* Defined in:
|
|
697
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
752
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
698
753
|
*/
|
|
699
|
-
export interface
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
* Options:
|
|
704
|
-
* - proto3_optional = true
|
|
705
|
-
*/
|
|
706
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
707
|
-
/**
|
|
708
|
-
* Options:
|
|
709
|
-
* - proto3_optional = true
|
|
710
|
-
*/
|
|
711
|
-
profile?: dxos_halo_credentials.ProfileDocument;
|
|
754
|
+
export interface AdmitContactRequest {
|
|
755
|
+
contact: Contact;
|
|
756
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
757
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
712
758
|
}
|
|
713
759
|
/**
|
|
714
|
-
* Defined in:
|
|
715
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
760
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
716
761
|
*/
|
|
717
|
-
export interface
|
|
718
|
-
|
|
719
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
720
|
-
challenge: string;
|
|
762
|
+
export interface ContactAdmission {
|
|
763
|
+
credential: dxos_halo_credentials.Credential;
|
|
721
764
|
}
|
|
722
765
|
/**
|
|
723
|
-
* Defined in:
|
|
724
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
766
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
725
767
|
*/
|
|
726
|
-
export interface
|
|
727
|
-
|
|
728
|
-
external?: RecoverIdentityRequest.ExternalSignature;
|
|
729
|
-
token?: string;
|
|
768
|
+
export interface JoinSpaceResponse {
|
|
769
|
+
space: Space;
|
|
730
770
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
export interface ExternalSignature {
|
|
737
|
-
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
738
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
739
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
740
|
-
signature: Uint8Array;
|
|
741
|
-
/**
|
|
742
|
-
* Options:
|
|
743
|
-
* - proto3_optional = true
|
|
744
|
-
*/
|
|
745
|
-
clientDataJson?: Uint8Array;
|
|
746
|
-
/**
|
|
747
|
-
* Options:
|
|
748
|
-
* - proto3_optional = true
|
|
749
|
-
*/
|
|
750
|
-
authenticatorData?: Uint8Array;
|
|
751
|
-
}
|
|
771
|
+
/**
|
|
772
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
773
|
+
*/
|
|
774
|
+
export interface JoinBySpaceKeyRequest {
|
|
775
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
752
776
|
}
|
|
753
777
|
/**
|
|
754
|
-
* Defined in:
|
|
755
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
778
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
756
779
|
*/
|
|
757
|
-
export interface
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
*/
|
|
761
|
-
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
780
|
+
export interface SpaceArchive {
|
|
781
|
+
filename: string;
|
|
782
|
+
contents: Uint8Array;
|
|
762
783
|
/**
|
|
763
|
-
*
|
|
784
|
+
* Options:
|
|
785
|
+
* - proto3_optional = true
|
|
764
786
|
*/
|
|
765
|
-
|
|
787
|
+
format?: SpaceArchive.Format;
|
|
788
|
+
}
|
|
789
|
+
export namespace SpaceArchive {
|
|
766
790
|
/**
|
|
767
|
-
*
|
|
791
|
+
* Defined in:
|
|
792
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
768
793
|
*/
|
|
769
|
-
|
|
794
|
+
export enum Format {
|
|
795
|
+
BINARY = 0,
|
|
796
|
+
JSON = 1
|
|
797
|
+
}
|
|
770
798
|
}
|
|
771
799
|
/**
|
|
772
|
-
* Defined in:
|
|
773
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
800
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
774
801
|
*/
|
|
775
|
-
export interface
|
|
802
|
+
export interface ExportSpaceRequest {
|
|
803
|
+
spaceId: string;
|
|
776
804
|
/**
|
|
777
|
-
* If not provided, a new key will be generated.
|
|
778
|
-
*
|
|
779
805
|
* Options:
|
|
780
806
|
* - proto3_optional = true
|
|
781
807
|
*/
|
|
782
|
-
|
|
808
|
+
format?: SpaceArchive.Format;
|
|
783
809
|
}
|
|
784
810
|
/**
|
|
785
|
-
* Defined in:
|
|
786
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
811
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
787
812
|
*/
|
|
788
|
-
export interface
|
|
789
|
-
|
|
790
|
-
* Options:
|
|
791
|
-
* - proto3_optional = true
|
|
792
|
-
*/
|
|
793
|
-
recoveryCode?: string;
|
|
813
|
+
export interface ExportSpaceResponse {
|
|
814
|
+
archive: SpaceArchive;
|
|
794
815
|
}
|
|
795
816
|
/**
|
|
796
|
-
* Defined in:
|
|
797
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
817
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
798
818
|
*/
|
|
799
|
-
export interface
|
|
819
|
+
export interface ImportSpaceRequest {
|
|
820
|
+
archive: SpaceArchive;
|
|
800
821
|
/**
|
|
801
|
-
*
|
|
802
|
-
* - proto3_optional = true
|
|
822
|
+
* Immutable tags to set on the imported space at creation time.
|
|
803
823
|
*/
|
|
804
|
-
|
|
824
|
+
tags?: string[];
|
|
805
825
|
}
|
|
806
826
|
/**
|
|
807
|
-
* Defined in:
|
|
808
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
827
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
809
828
|
*/
|
|
810
|
-
export interface
|
|
811
|
-
presentation: dxos_halo_credentials.Presentation;
|
|
829
|
+
export interface ImportSpaceResponse {
|
|
812
830
|
/**
|
|
813
|
-
*
|
|
814
|
-
* - proto3_optional = true
|
|
831
|
+
* the ID of the new space.
|
|
815
832
|
*/
|
|
816
|
-
|
|
833
|
+
newSpaceId: string;
|
|
817
834
|
}
|
|
818
835
|
/**
|
|
819
836
|
* Defined in:
|
|
820
837
|
* {@link file://./../../../dxos/client/services.proto}
|
|
821
838
|
*/
|
|
822
|
-
export interface
|
|
839
|
+
export interface SpacesService {
|
|
840
|
+
createSpace: (request: CreateSpaceRequest, options?: RequestOptions) => Promise<Space>;
|
|
841
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
842
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
843
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
844
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
845
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
823
846
|
/**
|
|
824
|
-
*
|
|
825
|
-
* - proto3_optional = true
|
|
847
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
826
848
|
*/
|
|
827
|
-
|
|
849
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
850
|
+
/**
|
|
851
|
+
* Subscribe to messages from the space swarm.
|
|
852
|
+
*/
|
|
853
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
854
|
+
/**
|
|
855
|
+
* Write credentials to the space control feed.
|
|
856
|
+
*/
|
|
857
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
858
|
+
/**
|
|
859
|
+
* Query credentials from the space control feed.
|
|
860
|
+
*/
|
|
861
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
862
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
863
|
+
exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
|
|
864
|
+
importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
868
|
+
*/
|
|
869
|
+
export interface AcceptInvitationRequest {
|
|
870
|
+
invitation: Invitation;
|
|
828
871
|
/**
|
|
829
872
|
* Options:
|
|
830
873
|
* - proto3_optional = true
|
|
@@ -832,731 +875,713 @@ export interface CreateIdentityRequest {
|
|
|
832
875
|
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
833
876
|
}
|
|
834
877
|
/**
|
|
835
|
-
* Defined in:
|
|
836
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
878
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
837
879
|
*/
|
|
838
|
-
export interface
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
842
|
-
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
843
|
-
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
844
|
-
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
845
|
-
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
846
|
-
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
880
|
+
export interface AuthenticationRequest {
|
|
881
|
+
invitationId: string;
|
|
882
|
+
authCode: string;
|
|
847
883
|
}
|
|
848
884
|
/**
|
|
849
|
-
* Defined in:
|
|
850
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
885
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
851
886
|
*/
|
|
852
|
-
export
|
|
853
|
-
|
|
854
|
-
TRUSTED = 1
|
|
887
|
+
export interface CancelInvitationRequest {
|
|
888
|
+
invitationId: string;
|
|
855
889
|
}
|
|
856
890
|
/**
|
|
857
|
-
* Defined in:
|
|
858
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
891
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
859
892
|
*/
|
|
860
|
-
export interface
|
|
861
|
-
|
|
862
|
-
|
|
893
|
+
export interface InvitationMethod {
|
|
894
|
+
created?: Invitation;
|
|
895
|
+
accepted?: Invitation;
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
899
|
+
*/
|
|
900
|
+
export interface QueryInvitationsResponse {
|
|
901
|
+
action: QueryInvitationsResponse.Action;
|
|
902
|
+
type: QueryInvitationsResponse.Type;
|
|
903
|
+
invitations?: Invitation[];
|
|
863
904
|
/**
|
|
864
905
|
* Options:
|
|
865
906
|
* - proto3_optional = true
|
|
866
907
|
*/
|
|
867
|
-
|
|
868
|
-
presence: Device.PresenceState;
|
|
908
|
+
existing?: boolean;
|
|
869
909
|
}
|
|
870
|
-
export namespace
|
|
910
|
+
export namespace QueryInvitationsResponse {
|
|
871
911
|
/**
|
|
872
912
|
* Defined in:
|
|
873
913
|
* {@link file://./../../../dxos/client/services.proto}
|
|
874
914
|
*/
|
|
875
|
-
export enum
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
915
|
+
export enum Action {
|
|
916
|
+
ADDED = 0,
|
|
917
|
+
REMOVED = 1,
|
|
918
|
+
SAVED = 2,
|
|
919
|
+
LOAD_COMPLETE = 3
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Defined in:
|
|
923
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
924
|
+
*/
|
|
925
|
+
export enum Type {
|
|
926
|
+
CREATED = 0,
|
|
927
|
+
ACCEPTED = 1
|
|
879
928
|
}
|
|
880
929
|
}
|
|
881
930
|
/**
|
|
882
|
-
* Defined in:
|
|
883
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
931
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
884
932
|
*/
|
|
885
|
-
export interface
|
|
886
|
-
|
|
933
|
+
export interface LoadPersistentInvitationsResponse {
|
|
934
|
+
invitations?: Invitation[];
|
|
887
935
|
}
|
|
888
936
|
/**
|
|
889
937
|
* Defined in:
|
|
890
938
|
* {@link file://./../../../dxos/client/services.proto}
|
|
891
939
|
*/
|
|
892
|
-
export interface
|
|
893
|
-
|
|
894
|
-
|
|
940
|
+
export interface InvitationsService {
|
|
941
|
+
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
942
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
943
|
+
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
944
|
+
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
945
|
+
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
895
946
|
}
|
|
896
947
|
/**
|
|
897
948
|
* Defined in:
|
|
898
949
|
* {@link file://./../../../dxos/client/services.proto}
|
|
899
950
|
*/
|
|
900
|
-
export
|
|
901
|
-
|
|
951
|
+
export enum ConnectionState {
|
|
952
|
+
OFFLINE = 0,
|
|
953
|
+
ONLINE = 1
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
957
|
+
*/
|
|
958
|
+
export interface NetworkStatus {
|
|
959
|
+
swarm: ConnectionState;
|
|
960
|
+
signaling?: NetworkStatus.Signal[];
|
|
961
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
962
|
+
}
|
|
963
|
+
export namespace NetworkStatus {
|
|
902
964
|
/**
|
|
903
|
-
*
|
|
904
|
-
* - proto3_optional = true
|
|
965
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
905
966
|
*/
|
|
906
|
-
|
|
907
|
-
|
|
967
|
+
export interface Signal {
|
|
968
|
+
server: string;
|
|
969
|
+
state: dxos_mesh_signal.SignalState;
|
|
970
|
+
}
|
|
908
971
|
}
|
|
909
972
|
/**
|
|
910
|
-
* Defined in:
|
|
911
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
973
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
912
974
|
*/
|
|
913
|
-
export interface
|
|
914
|
-
|
|
975
|
+
export interface UpdateConfigRequest {
|
|
976
|
+
swarm: ConnectionState;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
980
|
+
*/
|
|
981
|
+
export interface SubscribeSwarmStateRequest {
|
|
982
|
+
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
915
983
|
}
|
|
916
984
|
/**
|
|
917
985
|
* Defined in:
|
|
918
986
|
* {@link file://./../../../dxos/client/services.proto}
|
|
919
987
|
*/
|
|
920
|
-
export interface
|
|
921
|
-
|
|
922
|
-
|
|
988
|
+
export interface NetworkService {
|
|
989
|
+
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
990
|
+
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
991
|
+
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
992
|
+
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
993
|
+
/**
|
|
994
|
+
* Query the swarm state without joining it.
|
|
995
|
+
*/
|
|
996
|
+
querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
|
|
997
|
+
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
998
|
+
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
999
|
+
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
923
1000
|
}
|
|
924
1001
|
/**
|
|
925
1002
|
* Defined in:
|
|
926
1003
|
* {@link file://./../../../dxos/client/services.proto}
|
|
927
1004
|
*/
|
|
928
|
-
export interface
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
1005
|
+
export interface EdgeAgentService {
|
|
1006
|
+
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
1007
|
+
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1008
|
+
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
933
1009
|
}
|
|
934
|
-
|
|
1010
|
+
/**
|
|
1011
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
1012
|
+
*/
|
|
1013
|
+
export interface EdgeStatus {
|
|
1014
|
+
state: EdgeStatus.ConnectionState;
|
|
1015
|
+
/**
|
|
1016
|
+
* Latency in ms
|
|
1017
|
+
*/
|
|
1018
|
+
rtt: number;
|
|
1019
|
+
/**
|
|
1020
|
+
* How long the connection has been up
|
|
1021
|
+
*/
|
|
1022
|
+
uptime: number;
|
|
1023
|
+
/**
|
|
1024
|
+
* Upload rate in bytes per second
|
|
1025
|
+
*/
|
|
1026
|
+
rateBytesUp: number;
|
|
1027
|
+
/**
|
|
1028
|
+
* Download rate in bytes per second
|
|
1029
|
+
*/
|
|
1030
|
+
rateBytesDown: number;
|
|
1031
|
+
messagesSent: number;
|
|
1032
|
+
messagesReceived: number;
|
|
1033
|
+
}
|
|
1034
|
+
export namespace EdgeStatus {
|
|
935
1035
|
/**
|
|
936
1036
|
* Defined in:
|
|
937
1037
|
* {@link file://./../../../dxos/client/services.proto}
|
|
938
1038
|
*/
|
|
939
|
-
export enum
|
|
940
|
-
|
|
941
|
-
|
|
1039
|
+
export enum ConnectionState {
|
|
1040
|
+
NOT_CONNECTED = 0,
|
|
1041
|
+
CONNECTED = 1
|
|
942
1042
|
}
|
|
943
1043
|
}
|
|
944
1044
|
/**
|
|
945
|
-
* Defined in:
|
|
946
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1045
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
947
1046
|
*/
|
|
948
|
-
export interface
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1047
|
+
export interface QueryEdgeStatusResponse {
|
|
1048
|
+
status: EdgeStatus;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
1052
|
+
*/
|
|
1053
|
+
export interface QueryAgentStatusResponse {
|
|
1054
|
+
status: QueryAgentStatusResponse.AgentStatus;
|
|
1055
|
+
}
|
|
1056
|
+
export namespace QueryAgentStatusResponse {
|
|
1057
|
+
/**
|
|
1058
|
+
* Defined in:
|
|
1059
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1060
|
+
*/
|
|
1061
|
+
export enum AgentStatus {
|
|
1062
|
+
UNKNOWN = 0,
|
|
1063
|
+
ACTIVE = 1,
|
|
1064
|
+
INACTIVE = 2,
|
|
1065
|
+
NOT_FOUND = 3
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1070
|
+
*/
|
|
1071
|
+
export interface QueueQuery {
|
|
1072
|
+
spaceId: string;
|
|
952
1073
|
/**
|
|
953
1074
|
* Options:
|
|
954
1075
|
* - proto3_optional = true
|
|
955
1076
|
*/
|
|
956
|
-
|
|
1077
|
+
queuesNamespace?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Queries the whole space if missing.
|
|
1080
|
+
*/
|
|
1081
|
+
queueIds?: string[];
|
|
957
1082
|
/**
|
|
1083
|
+
* Filter items after this cursor. Exclusive.
|
|
1084
|
+
*
|
|
958
1085
|
* Options:
|
|
959
1086
|
* - proto3_optional = true
|
|
960
1087
|
*/
|
|
961
|
-
|
|
1088
|
+
after?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Filter items before this cursor. Exclusive.
|
|
1091
|
+
*
|
|
1092
|
+
* Options:
|
|
1093
|
+
* - proto3_optional = true
|
|
1094
|
+
*/
|
|
1095
|
+
before?: string;
|
|
962
1096
|
/**
|
|
1097
|
+
* Filter items after this position. Inclusive.
|
|
1098
|
+
*
|
|
963
1099
|
* Options:
|
|
964
1100
|
* - proto3_optional = true
|
|
965
1101
|
*/
|
|
966
|
-
|
|
967
|
-
members?: SpaceMember[];
|
|
1102
|
+
beginPosition?: string;
|
|
968
1103
|
/**
|
|
1104
|
+
* Filter items before this position. Exclusive.
|
|
1105
|
+
*
|
|
969
1106
|
* Options:
|
|
970
1107
|
* - proto3_optional = true
|
|
971
1108
|
*/
|
|
972
|
-
|
|
1109
|
+
endPosition?: string;
|
|
973
1110
|
/**
|
|
974
1111
|
* Options:
|
|
975
1112
|
* - proto3_optional = true
|
|
976
1113
|
*/
|
|
977
|
-
|
|
978
|
-
|
|
1114
|
+
limit?: number;
|
|
1115
|
+
/**
|
|
1116
|
+
* Options:
|
|
1117
|
+
* - proto3_optional = true
|
|
1118
|
+
*/
|
|
1119
|
+
reverse?: boolean;
|
|
1120
|
+
objectIds?: string[];
|
|
979
1121
|
}
|
|
980
|
-
|
|
1122
|
+
/**
|
|
1123
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1124
|
+
*/
|
|
1125
|
+
export interface QueueQueryResult {
|
|
981
1126
|
/**
|
|
982
|
-
*
|
|
983
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1127
|
+
* coerces `undefined` to `null`, corrupting optional fields.
|
|
984
1128
|
*/
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* Options:
|
|
988
|
-
* - proto3_optional = true
|
|
989
|
-
*/
|
|
990
|
-
open?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
991
|
-
/**
|
|
992
|
-
* Options:
|
|
993
|
-
* - proto3_optional = true
|
|
994
|
-
*/
|
|
995
|
-
pipelineInitBegin?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
996
|
-
/**
|
|
997
|
-
* Options:
|
|
998
|
-
* - proto3_optional = true
|
|
999
|
-
*/
|
|
1000
|
-
controlPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1001
|
-
/**
|
|
1002
|
-
* Options:
|
|
1003
|
-
* - proto3_optional = true
|
|
1004
|
-
*/
|
|
1005
|
-
dataPipelineOpen?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1006
|
-
/**
|
|
1007
|
-
* Options:
|
|
1008
|
-
* - proto3_optional = true
|
|
1009
|
-
*/
|
|
1010
|
-
dataPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1011
|
-
/**
|
|
1012
|
-
* Options:
|
|
1013
|
-
* - proto3_optional = true
|
|
1014
|
-
*/
|
|
1015
|
-
ready?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1016
|
-
}
|
|
1129
|
+
objects?: string[];
|
|
1017
1130
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1131
|
+
* Cursor to query the next items. Can be passed to `after` in query to keep querying.
|
|
1020
1132
|
*/
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
* Options:
|
|
1024
|
-
* - proto3_optional = true
|
|
1025
|
-
*/
|
|
1026
|
-
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Options:
|
|
1029
|
-
* - proto3_optional = true
|
|
1030
|
-
*/
|
|
1031
|
-
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1032
|
-
/**
|
|
1033
|
-
* TODO(burdon): Normalize _key suffix.
|
|
1034
|
-
*/
|
|
1035
|
-
controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
1036
|
-
dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
1037
|
-
/**
|
|
1038
|
-
* Last processed epoch. Might now have been applied yet.
|
|
1039
|
-
*
|
|
1040
|
-
* Options:
|
|
1041
|
-
* - proto3_optional = true
|
|
1042
|
-
*/
|
|
1043
|
-
currentEpoch?: dxos_halo_credentials.Credential;
|
|
1044
|
-
/**
|
|
1045
|
-
* Epoch that is currently applied.
|
|
1046
|
-
*
|
|
1047
|
-
* Options:
|
|
1048
|
-
* - proto3_optional = true
|
|
1049
|
-
*/
|
|
1050
|
-
appliedEpoch?: dxos_halo_credentials.Credential;
|
|
1051
|
-
/**
|
|
1052
|
-
* Mutations already processed.
|
|
1053
|
-
*
|
|
1054
|
-
* Options:
|
|
1055
|
-
* - proto3_optional = true
|
|
1056
|
-
*/
|
|
1057
|
-
currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1058
|
-
/**
|
|
1059
|
-
* Minimum timeframe to consider the state to be up-to-date.
|
|
1060
|
-
*
|
|
1061
|
-
* Options:
|
|
1062
|
-
* - proto3_optional = true
|
|
1063
|
-
*/
|
|
1064
|
-
targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1065
|
-
/**
|
|
1066
|
-
* All mutations stored in feeds.
|
|
1067
|
-
*
|
|
1068
|
-
* Options:
|
|
1069
|
-
* - proto3_optional = true
|
|
1070
|
-
*/
|
|
1071
|
-
totalControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1072
|
-
/**
|
|
1073
|
-
* All mutations known to exist on the network.
|
|
1074
|
-
*
|
|
1075
|
-
* Options:
|
|
1076
|
-
* - proto3_optional = true
|
|
1077
|
-
*/
|
|
1078
|
-
knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1079
|
-
/**
|
|
1080
|
-
* Start timeframe of the pipeline.
|
|
1081
|
-
*
|
|
1082
|
-
* Options:
|
|
1083
|
-
* - proto3_optional = true
|
|
1084
|
-
*/
|
|
1085
|
-
startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1086
|
-
/**
|
|
1087
|
-
* Mutations already processed.
|
|
1088
|
-
*
|
|
1089
|
-
* Options:
|
|
1090
|
-
* - proto3_optional = true
|
|
1091
|
-
*/
|
|
1092
|
-
currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1093
|
-
/**
|
|
1094
|
-
* Minimum timeframe to consider the state to be up-to-date.
|
|
1095
|
-
*
|
|
1096
|
-
* Options:
|
|
1097
|
-
* - proto3_optional = true
|
|
1098
|
-
*/
|
|
1099
|
-
targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1100
|
-
/**
|
|
1101
|
-
* All mutations stored in feeds.
|
|
1102
|
-
*
|
|
1103
|
-
* Options:
|
|
1104
|
-
* - proto3_optional = true
|
|
1105
|
-
*/
|
|
1106
|
-
totalDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1107
|
-
/**
|
|
1108
|
-
* All mutations known to exist on the network.
|
|
1109
|
-
*
|
|
1110
|
-
* Options:
|
|
1111
|
-
* - proto3_optional = true
|
|
1112
|
-
*/
|
|
1113
|
-
knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1114
|
-
/**
|
|
1115
|
-
* URL of the current space root automerge document.
|
|
1116
|
-
*
|
|
1117
|
-
* Options:
|
|
1118
|
-
* - proto3_optional = true
|
|
1119
|
-
*/
|
|
1120
|
-
spaceRootUrl?: string;
|
|
1121
|
-
}
|
|
1133
|
+
nextCursor: string;
|
|
1134
|
+
prevCursor: string;
|
|
1122
1135
|
}
|
|
1123
1136
|
/**
|
|
1124
|
-
* Defined in:
|
|
1125
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1137
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1126
1138
|
*/
|
|
1127
|
-
export interface
|
|
1128
|
-
|
|
1139
|
+
export interface QueryQueueRequest {
|
|
1140
|
+
query: QueueQuery;
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1144
|
+
*/
|
|
1145
|
+
export interface InsertIntoQueueRequest {
|
|
1146
|
+
subspaceTag: string;
|
|
1147
|
+
spaceId: string;
|
|
1148
|
+
queueId: string;
|
|
1129
1149
|
/**
|
|
1130
|
-
*
|
|
1150
|
+
* JSON-encoded object payloads. Each entry is a serialized ObjectJSON.
|
|
1151
|
+
*/
|
|
1152
|
+
objects?: string[];
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1156
|
+
*/
|
|
1157
|
+
export interface DeleteFromQueueRequest {
|
|
1158
|
+
subspaceTag: string;
|
|
1159
|
+
spaceId: string;
|
|
1160
|
+
queueId: string;
|
|
1161
|
+
objectIds?: string[];
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1165
|
+
*/
|
|
1166
|
+
export interface SyncQueueRequest {
|
|
1167
|
+
subspaceTag: string;
|
|
1168
|
+
spaceId: string;
|
|
1169
|
+
queueId: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* Whether to push local changes to the server. Defaults to true.
|
|
1131
1172
|
*
|
|
1132
1173
|
* Options:
|
|
1133
1174
|
* - proto3_optional = true
|
|
1134
1175
|
*/
|
|
1135
|
-
|
|
1176
|
+
shouldPush?: boolean;
|
|
1136
1177
|
/**
|
|
1178
|
+
* Whether to pull remote changes from the server. Defaults to true.
|
|
1179
|
+
*
|
|
1137
1180
|
* Options:
|
|
1138
1181
|
* - proto3_optional = true
|
|
1139
1182
|
*/
|
|
1140
|
-
|
|
1183
|
+
shouldPull?: boolean;
|
|
1141
1184
|
}
|
|
1142
1185
|
/**
|
|
1143
|
-
* Defined in:
|
|
1144
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1186
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1145
1187
|
*/
|
|
1146
|
-
export interface
|
|
1147
|
-
|
|
1188
|
+
export interface GetSyncStateRequest {
|
|
1189
|
+
spaceId: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* If empty, returns state for all namespaces synced by the client.
|
|
1192
|
+
*/
|
|
1193
|
+
namespaces?: string[];
|
|
1148
1194
|
}
|
|
1149
1195
|
/**
|
|
1150
|
-
* Defined in:
|
|
1151
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1196
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1152
1197
|
*/
|
|
1153
|
-
export interface
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1198
|
+
export interface QueueNamespaceSyncState {
|
|
1199
|
+
namespace: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* Blocks still to pull from remote. 0 when caught up.
|
|
1202
|
+
*/
|
|
1203
|
+
blocksToPull: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Unpositioned blocks still to push to remote. 0 when caught up.
|
|
1206
|
+
*/
|
|
1207
|
+
blocksToPush: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Total blocks stored locally for this namespace in the space.
|
|
1210
|
+
*/
|
|
1211
|
+
totalBlocks: string;
|
|
1157
1212
|
}
|
|
1158
1213
|
/**
|
|
1159
|
-
* Defined in:
|
|
1160
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1214
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1161
1215
|
*/
|
|
1162
|
-
export interface
|
|
1163
|
-
|
|
1164
|
-
channel: string;
|
|
1216
|
+
export interface GetSyncStateResponse {
|
|
1217
|
+
namespaces?: QueueNamespaceSyncState[];
|
|
1165
1218
|
}
|
|
1166
1219
|
/**
|
|
1167
1220
|
* Defined in:
|
|
1168
|
-
* {@link file://./../../../dxos/client/
|
|
1221
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1169
1222
|
*/
|
|
1170
|
-
export interface
|
|
1171
|
-
|
|
1172
|
-
|
|
1223
|
+
export interface QueueService {
|
|
1224
|
+
queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
|
|
1225
|
+
insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1226
|
+
deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1227
|
+
syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1228
|
+
getSyncState: (request: GetSyncStateRequest, options?: RequestOptions) => Promise<GetSyncStateResponse>;
|
|
1173
1229
|
}
|
|
1174
1230
|
/**
|
|
1175
|
-
* Defined in:
|
|
1176
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1231
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1177
1232
|
*/
|
|
1178
|
-
export interface
|
|
1179
|
-
|
|
1233
|
+
export interface Metrics {
|
|
1234
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1235
|
+
values?: Metrics.KeyPair[];
|
|
1236
|
+
}
|
|
1237
|
+
export namespace Metrics {
|
|
1180
1238
|
/**
|
|
1181
|
-
*
|
|
1182
|
-
* - proto3_optional = true
|
|
1239
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1183
1240
|
*/
|
|
1184
|
-
|
|
1241
|
+
export interface KeyPair {
|
|
1242
|
+
/**
|
|
1243
|
+
* Options:
|
|
1244
|
+
* - proto3_optional = true
|
|
1245
|
+
*/
|
|
1246
|
+
key?: string;
|
|
1247
|
+
/**
|
|
1248
|
+
* Options:
|
|
1249
|
+
* - proto3_optional = true
|
|
1250
|
+
*/
|
|
1251
|
+
value?: dxos_value.Value;
|
|
1252
|
+
/**
|
|
1253
|
+
* Options:
|
|
1254
|
+
* - proto3_optional = true
|
|
1255
|
+
*/
|
|
1256
|
+
stats?: dxos_value.Stats;
|
|
1257
|
+
}
|
|
1185
1258
|
}
|
|
1186
1259
|
/**
|
|
1187
|
-
* Defined in:
|
|
1188
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1260
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1189
1261
|
*/
|
|
1190
|
-
export interface
|
|
1191
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1262
|
+
export interface ControlMetricsRequest {
|
|
1192
1263
|
/**
|
|
1193
1264
|
* Options:
|
|
1194
1265
|
* - proto3_optional = true
|
|
1195
1266
|
*/
|
|
1196
|
-
|
|
1267
|
+
reset?: boolean;
|
|
1197
1268
|
/**
|
|
1198
|
-
* For REPLACE_AUTOMERGE_ROOT migration.
|
|
1199
|
-
*
|
|
1200
1269
|
* Options:
|
|
1201
1270
|
* - proto3_optional = true
|
|
1202
1271
|
*/
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1205
|
-
export namespace CreateEpochRequest {
|
|
1206
|
-
/**
|
|
1207
|
-
* Defined in:
|
|
1208
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1209
|
-
*/
|
|
1210
|
-
export enum Migration {
|
|
1211
|
-
NONE = 0,
|
|
1212
|
-
INIT_AUTOMERGE = 1,
|
|
1213
|
-
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
1214
|
-
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
1215
|
-
REPLACE_AUTOMERGE_ROOT = 4,
|
|
1216
|
-
MIGRATE_REFERENCES_TO_DXN = 5
|
|
1217
|
-
}
|
|
1272
|
+
record?: boolean;
|
|
1218
1273
|
}
|
|
1219
1274
|
/**
|
|
1220
|
-
* Defined in:
|
|
1221
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1275
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1222
1276
|
*/
|
|
1223
|
-
export interface
|
|
1277
|
+
export interface ControlMetricsResponse {
|
|
1224
1278
|
/**
|
|
1225
|
-
* Credential of the new epoch.
|
|
1226
|
-
*
|
|
1227
1279
|
* Options:
|
|
1228
1280
|
* - proto3_optional = true
|
|
1229
1281
|
*/
|
|
1230
|
-
|
|
1282
|
+
recording?: boolean;
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1286
|
+
*/
|
|
1287
|
+
export interface QueryMetricsRequest {
|
|
1231
1288
|
/**
|
|
1232
|
-
* Control pipeline timeframe.
|
|
1233
|
-
*
|
|
1234
1289
|
* Options:
|
|
1235
1290
|
* - proto3_optional = true
|
|
1236
1291
|
*/
|
|
1237
|
-
|
|
1238
|
-
}
|
|
1239
|
-
/**
|
|
1240
|
-
* Defined in:
|
|
1241
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1242
|
-
*/
|
|
1243
|
-
export interface UpdateMemberRoleRequest {
|
|
1244
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1245
|
-
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1246
|
-
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
1247
|
-
}
|
|
1248
|
-
/**
|
|
1249
|
-
* Defined in:
|
|
1250
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1251
|
-
*/
|
|
1252
|
-
export interface AdmitContactRequest {
|
|
1253
|
-
contact: Contact;
|
|
1254
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
1255
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1292
|
+
interval?: number;
|
|
1256
1293
|
}
|
|
1257
1294
|
/**
|
|
1258
|
-
* Defined in:
|
|
1259
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1295
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1260
1296
|
*/
|
|
1261
|
-
export interface
|
|
1262
|
-
|
|
1297
|
+
export interface QueryMetricsResponse {
|
|
1298
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1299
|
+
metrics: Metrics;
|
|
1263
1300
|
}
|
|
1264
1301
|
/**
|
|
1265
1302
|
* Defined in:
|
|
1266
|
-
* {@link file://./../../../dxos/client/
|
|
1303
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1267
1304
|
*/
|
|
1268
|
-
export
|
|
1269
|
-
|
|
1305
|
+
export enum LogLevel {
|
|
1306
|
+
NONE = 0,
|
|
1307
|
+
TRACE = 5,
|
|
1308
|
+
DEBUG = 10,
|
|
1309
|
+
VERBOSE = 11,
|
|
1310
|
+
INFO = 12,
|
|
1311
|
+
WARN = 13,
|
|
1312
|
+
ERROR = 14
|
|
1270
1313
|
}
|
|
1271
1314
|
/**
|
|
1272
|
-
* Defined in:
|
|
1273
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1315
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1274
1316
|
*/
|
|
1275
|
-
export interface
|
|
1276
|
-
|
|
1317
|
+
export interface QueryLogsRequest {
|
|
1318
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1319
|
+
/**
|
|
1320
|
+
* Options:
|
|
1321
|
+
* - proto3_optional = true
|
|
1322
|
+
*/
|
|
1323
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1277
1324
|
}
|
|
1278
|
-
|
|
1279
|
-
* Defined in:
|
|
1280
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1281
|
-
*/
|
|
1282
|
-
export interface SpaceArchive {
|
|
1283
|
-
filename: string;
|
|
1284
|
-
contents: Uint8Array;
|
|
1285
|
-
}
|
|
1286
|
-
/**
|
|
1287
|
-
* Defined in:
|
|
1288
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1289
|
-
*/
|
|
1290
|
-
export interface ExportSpaceRequest {
|
|
1291
|
-
spaceId: string;
|
|
1292
|
-
}
|
|
1293
|
-
/**
|
|
1294
|
-
* Defined in:
|
|
1295
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1296
|
-
*/
|
|
1297
|
-
export interface ExportSpaceResponse {
|
|
1298
|
-
archive: SpaceArchive;
|
|
1299
|
-
}
|
|
1300
|
-
/**
|
|
1301
|
-
* Defined in:
|
|
1302
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1303
|
-
*/
|
|
1304
|
-
export interface ImportSpaceRequest {
|
|
1305
|
-
archive: SpaceArchive;
|
|
1306
|
-
}
|
|
1307
|
-
/**
|
|
1308
|
-
* Defined in:
|
|
1309
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1310
|
-
*/
|
|
1311
|
-
export interface ImportSpaceResponse {
|
|
1325
|
+
export namespace QueryLogsRequest {
|
|
1312
1326
|
/**
|
|
1313
|
-
*
|
|
1327
|
+
* Defined in:
|
|
1328
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1314
1329
|
*/
|
|
1315
|
-
|
|
1330
|
+
export enum MatchingOptions {
|
|
1331
|
+
NONE = 0,
|
|
1332
|
+
INCLUSIVE = 1,
|
|
1333
|
+
EXPLICIT = 2
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1337
|
+
*/
|
|
1338
|
+
export interface Filter {
|
|
1339
|
+
level: LogLevel;
|
|
1340
|
+
/**
|
|
1341
|
+
* Options:
|
|
1342
|
+
* - proto3_optional = true
|
|
1343
|
+
*/
|
|
1344
|
+
pattern?: string;
|
|
1345
|
+
}
|
|
1316
1346
|
}
|
|
1317
1347
|
/**
|
|
1318
|
-
* Defined in:
|
|
1319
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1348
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1320
1349
|
*/
|
|
1321
|
-
export interface
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1325
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1326
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1327
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
1350
|
+
export interface LogEntry {
|
|
1351
|
+
level: LogLevel;
|
|
1352
|
+
message: string;
|
|
1328
1353
|
/**
|
|
1329
|
-
*
|
|
1354
|
+
* Options:
|
|
1355
|
+
* - proto3_optional = true
|
|
1330
1356
|
*/
|
|
1331
|
-
|
|
1357
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1332
1358
|
/**
|
|
1333
|
-
*
|
|
1359
|
+
* Options:
|
|
1360
|
+
* - proto3_optional = true
|
|
1334
1361
|
*/
|
|
1335
|
-
|
|
1362
|
+
meta?: LogEntry.Meta;
|
|
1336
1363
|
/**
|
|
1337
|
-
*
|
|
1364
|
+
* Options:
|
|
1365
|
+
* - proto3_optional = true
|
|
1338
1366
|
*/
|
|
1339
|
-
|
|
1367
|
+
error?: dxos_error.Error;
|
|
1368
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1369
|
+
}
|
|
1370
|
+
export namespace LogEntry {
|
|
1340
1371
|
/**
|
|
1341
|
-
*
|
|
1372
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1342
1373
|
*/
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1374
|
+
export interface Meta {
|
|
1375
|
+
file: string;
|
|
1376
|
+
line: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* Options:
|
|
1379
|
+
* - proto3_optional = true
|
|
1380
|
+
*/
|
|
1381
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1382
|
+
/**
|
|
1383
|
+
* Options:
|
|
1384
|
+
* - proto3_optional = true
|
|
1385
|
+
*/
|
|
1386
|
+
resourceId?: number;
|
|
1387
|
+
}
|
|
1347
1388
|
}
|
|
1348
1389
|
/**
|
|
1349
1390
|
* Defined in:
|
|
1350
|
-
* {@link file://./../../../dxos/client/
|
|
1391
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1351
1392
|
*/
|
|
1352
|
-
export interface
|
|
1353
|
-
|
|
1393
|
+
export interface LoggingService {
|
|
1394
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1395
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1396
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Defined in: `../../../dxos/client/invitation.proto`
|
|
1400
|
+
*/
|
|
1401
|
+
export interface AdmissionKeypair {
|
|
1402
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1354
1403
|
/**
|
|
1355
1404
|
* Options:
|
|
1356
1405
|
* - proto3_optional = true
|
|
1357
1406
|
*/
|
|
1358
|
-
|
|
1407
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1359
1408
|
}
|
|
1360
1409
|
/**
|
|
1410
|
+
* Runtime state of the space object.
|
|
1411
|
+
*
|
|
1361
1412
|
* Defined in:
|
|
1362
|
-
* {@link file://./../../../dxos/client/
|
|
1413
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1363
1414
|
*/
|
|
1364
|
-
export
|
|
1365
|
-
|
|
1366
|
-
|
|
1415
|
+
export enum SpaceState {
|
|
1416
|
+
INVALID = 0,
|
|
1417
|
+
SPACE_INACTIVE = 2,
|
|
1418
|
+
SPACE_ACTIVE = 6,
|
|
1419
|
+
SPACE_CLOSED = 1,
|
|
1420
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1421
|
+
SPACE_INITIALIZING = 4,
|
|
1422
|
+
SPACE_READY = 3,
|
|
1423
|
+
SPACE_ERROR = 5,
|
|
1424
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1367
1425
|
}
|
|
1368
1426
|
/**
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1427
|
+
* Represents the invitation state passed between client and service.
|
|
1428
|
+
*
|
|
1429
|
+
* Defined in: `../../../dxos/client/invitation.proto`
|
|
1371
1430
|
*/
|
|
1372
|
-
export interface
|
|
1431
|
+
export interface Invitation {
|
|
1432
|
+
/**
|
|
1433
|
+
* Local identifier (random).
|
|
1434
|
+
*/
|
|
1373
1435
|
invitationId: string;
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* Defined in:
|
|
1377
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1378
|
-
*/
|
|
1379
|
-
export interface InvitationMethod {
|
|
1380
|
-
created?: Invitation;
|
|
1381
|
-
accepted?: Invitation;
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* Defined in:
|
|
1385
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1386
|
-
*/
|
|
1387
|
-
export interface QueryInvitationsResponse {
|
|
1388
|
-
action: QueryInvitationsResponse.Action;
|
|
1389
|
-
type: QueryInvitationsResponse.Type;
|
|
1390
|
-
invitations?: Invitation[];
|
|
1391
1436
|
/**
|
|
1437
|
+
* Determines the behavior of the invitation.
|
|
1438
|
+
*/
|
|
1439
|
+
type: Invitation.Type;
|
|
1440
|
+
/**
|
|
1441
|
+
* Kind of access the invitation will grant.
|
|
1442
|
+
*/
|
|
1443
|
+
kind: Invitation.Kind;
|
|
1444
|
+
/**
|
|
1445
|
+
* How the invitation is authenticated.
|
|
1446
|
+
*/
|
|
1447
|
+
authMethod: Invitation.AuthMethod;
|
|
1448
|
+
/**
|
|
1449
|
+
* Swarm rendezvous (random).
|
|
1450
|
+
*/
|
|
1451
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1452
|
+
/**
|
|
1453
|
+
* Local state.
|
|
1454
|
+
*/
|
|
1455
|
+
state: Invitation.State;
|
|
1456
|
+
/**
|
|
1457
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
1458
|
+
*
|
|
1392
1459
|
* Options:
|
|
1393
1460
|
* - proto3_optional = true
|
|
1394
1461
|
*/
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1397
|
-
export namespace QueryInvitationsResponse {
|
|
1462
|
+
timeout?: number;
|
|
1398
1463
|
/**
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1464
|
+
* Guest's identity.
|
|
1465
|
+
*
|
|
1466
|
+
* Options:
|
|
1467
|
+
* - proto3_optional = true
|
|
1401
1468
|
*/
|
|
1402
|
-
|
|
1403
|
-
ADDED = 0,
|
|
1404
|
-
REMOVED = 1,
|
|
1405
|
-
SAVED = 2,
|
|
1406
|
-
LOAD_COMPLETE = 3
|
|
1407
|
-
}
|
|
1469
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1408
1470
|
/**
|
|
1409
|
-
*
|
|
1410
|
-
*
|
|
1471
|
+
* Space to join (only present if kind is SPACE).
|
|
1472
|
+
*
|
|
1473
|
+
* Options:
|
|
1474
|
+
* - proto3_optional = true
|
|
1411
1475
|
*/
|
|
1412
|
-
|
|
1413
|
-
CREATED = 0,
|
|
1414
|
-
ACCEPTED = 1
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
/**
|
|
1418
|
-
* Defined in:
|
|
1419
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1420
|
-
*/
|
|
1421
|
-
export interface LoadPersistentInvitationsResponse {
|
|
1422
|
-
invitations?: Invitation[];
|
|
1423
|
-
}
|
|
1424
|
-
/**
|
|
1425
|
-
* Defined in:
|
|
1426
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1427
|
-
*/
|
|
1428
|
-
export interface InvitationsService {
|
|
1429
|
-
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
1430
|
-
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
1431
|
-
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
1432
|
-
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
1433
|
-
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1434
|
-
}
|
|
1435
|
-
/**
|
|
1436
|
-
* Defined in:
|
|
1437
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1438
|
-
*/
|
|
1439
|
-
export enum ConnectionState {
|
|
1440
|
-
OFFLINE = 0,
|
|
1441
|
-
ONLINE = 1
|
|
1442
|
-
}
|
|
1443
|
-
/**
|
|
1444
|
-
* Defined in:
|
|
1445
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1446
|
-
*/
|
|
1447
|
-
export interface NetworkStatus {
|
|
1448
|
-
swarm: ConnectionState;
|
|
1449
|
-
signaling?: NetworkStatus.Signal[];
|
|
1450
|
-
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1451
|
-
}
|
|
1452
|
-
export namespace NetworkStatus {
|
|
1476
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1453
1477
|
/**
|
|
1454
|
-
*
|
|
1455
|
-
*
|
|
1478
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1479
|
+
*
|
|
1480
|
+
* Options:
|
|
1481
|
+
* - proto3_optional = true
|
|
1456
1482
|
*/
|
|
1457
|
-
|
|
1458
|
-
server: string;
|
|
1459
|
-
state: dxos_mesh_signal.SignalState;
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
/**
|
|
1463
|
-
* Defined in:
|
|
1464
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1465
|
-
*/
|
|
1466
|
-
export interface UpdateConfigRequest {
|
|
1467
|
-
swarm: ConnectionState;
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* Defined in:
|
|
1471
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1472
|
-
*/
|
|
1473
|
-
export interface SubscribeSwarmStateRequest {
|
|
1474
|
-
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1475
|
-
}
|
|
1476
|
-
/**
|
|
1477
|
-
* Defined in:
|
|
1478
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1479
|
-
*/
|
|
1480
|
-
export interface NetworkService {
|
|
1481
|
-
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1482
|
-
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1483
|
-
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
1484
|
-
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
1483
|
+
authCode?: string;
|
|
1485
1484
|
/**
|
|
1486
|
-
*
|
|
1485
|
+
* Path or identifier to navigate to after successful authentication.
|
|
1486
|
+
*
|
|
1487
|
+
* Options:
|
|
1488
|
+
* - proto3_optional = true
|
|
1487
1489
|
*/
|
|
1488
|
-
|
|
1489
|
-
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
1490
|
-
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
1491
|
-
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
1492
|
-
}
|
|
1493
|
-
/**
|
|
1494
|
-
* Defined in:
|
|
1495
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1496
|
-
*/
|
|
1497
|
-
export interface EdgeAgentService {
|
|
1498
|
-
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
1499
|
-
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1500
|
-
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Defined in:
|
|
1504
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1505
|
-
*/
|
|
1506
|
-
export interface EdgeStatus {
|
|
1507
|
-
state: EdgeStatus.ConnectionState;
|
|
1490
|
+
target?: string;
|
|
1508
1491
|
/**
|
|
1509
|
-
*
|
|
1492
|
+
* Host should resume invitation on startup until timeout.
|
|
1493
|
+
*
|
|
1494
|
+
* Options:
|
|
1495
|
+
* - proto3_optional = true
|
|
1510
1496
|
*/
|
|
1511
|
-
|
|
1497
|
+
persistent?: boolean;
|
|
1512
1498
|
/**
|
|
1513
|
-
*
|
|
1499
|
+
* Options:
|
|
1500
|
+
* - proto3_optional = true
|
|
1514
1501
|
*/
|
|
1515
|
-
|
|
1502
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1516
1503
|
/**
|
|
1517
|
-
*
|
|
1504
|
+
* Options:
|
|
1505
|
+
* - proto3_optional = true
|
|
1518
1506
|
*/
|
|
1519
|
-
|
|
1507
|
+
lifetime?: number;
|
|
1520
1508
|
/**
|
|
1521
|
-
*
|
|
1509
|
+
* Whether an invitation can be used multiple times.
|
|
1510
|
+
*
|
|
1511
|
+
* Options:
|
|
1512
|
+
* - proto3_optional = true
|
|
1522
1513
|
*/
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1514
|
+
multiUse?: boolean;
|
|
1515
|
+
/**
|
|
1516
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1517
|
+
*
|
|
1518
|
+
* Options:
|
|
1519
|
+
* - proto3_optional = true
|
|
1520
|
+
*/
|
|
1521
|
+
guestKeypair?: AdmissionKeypair;
|
|
1522
|
+
/**
|
|
1523
|
+
* Present on Type.DELEGATED invitations.
|
|
1524
|
+
*
|
|
1525
|
+
* Options:
|
|
1526
|
+
* - proto3_optional = true
|
|
1527
|
+
*/
|
|
1528
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1529
|
+
/**
|
|
1530
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1531
|
+
*
|
|
1532
|
+
* Options:
|
|
1533
|
+
* - proto3_optional = true
|
|
1534
|
+
*/
|
|
1535
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1536
|
+
/**
|
|
1537
|
+
* Id of a the space to join (only present if kind is SPACE).
|
|
1538
|
+
*
|
|
1539
|
+
* Options:
|
|
1540
|
+
* - proto3_optional = true
|
|
1541
|
+
*/
|
|
1542
|
+
spaceId?: string;
|
|
1526
1543
|
}
|
|
1527
|
-
export namespace
|
|
1544
|
+
export namespace Invitation {
|
|
1528
1545
|
/**
|
|
1529
1546
|
* Defined in:
|
|
1530
|
-
* {@link file://./../../../dxos/client/
|
|
1547
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1531
1548
|
*/
|
|
1532
|
-
export enum
|
|
1533
|
-
|
|
1534
|
-
|
|
1549
|
+
export enum Type {
|
|
1550
|
+
INTERACTIVE = 0,
|
|
1551
|
+
DELEGATED = 1,
|
|
1552
|
+
MULTIUSE = 2
|
|
1535
1553
|
}
|
|
1536
|
-
}
|
|
1537
|
-
/**
|
|
1538
|
-
* Defined in:
|
|
1539
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1540
|
-
*/
|
|
1541
|
-
export interface QueryEdgeStatusResponse {
|
|
1542
|
-
status: EdgeStatus;
|
|
1543
|
-
}
|
|
1544
|
-
/**
|
|
1545
|
-
* Defined in:
|
|
1546
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1547
|
-
*/
|
|
1548
|
-
export interface QueryAgentStatusResponse {
|
|
1549
|
-
status: QueryAgentStatusResponse.AgentStatus;
|
|
1550
|
-
}
|
|
1551
|
-
export namespace QueryAgentStatusResponse {
|
|
1552
1554
|
/**
|
|
1553
1555
|
* Defined in:
|
|
1554
|
-
* {@link file://./../../../dxos/client/
|
|
1556
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1555
1557
|
*/
|
|
1556
|
-
export enum
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1558
|
+
export enum Kind {
|
|
1559
|
+
DEVICE = 0,
|
|
1560
|
+
SPACE = 1
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Defined in:
|
|
1564
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1565
|
+
*/
|
|
1566
|
+
export enum AuthMethod {
|
|
1567
|
+
NONE = 0,
|
|
1568
|
+
SHARED_SECRET = 1,
|
|
1569
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Defined in:
|
|
1573
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1574
|
+
*/
|
|
1575
|
+
export enum State {
|
|
1576
|
+
INIT = 0,
|
|
1577
|
+
CONNECTING = 1,
|
|
1578
|
+
CONNECTED = 2,
|
|
1579
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1580
|
+
AUTHENTICATING = 4,
|
|
1581
|
+
SUCCESS = 5,
|
|
1582
|
+
CANCELLED = 6,
|
|
1583
|
+
TIMEOUT = 7,
|
|
1584
|
+
ERROR = 8,
|
|
1585
|
+
EXPIRED = 9
|
|
1561
1586
|
}
|
|
1562
1587
|
}
|