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