@dxos/protocols 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33
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/README.md +1 -1
- package/dist/src/FeedProtocol.d.ts +528 -0
- package/dist/src/FeedProtocol.d.ts.map +1 -0
- package/dist/src/FeedProtocol.js +237 -0
- package/dist/src/FeedProtocol.js.map +1 -0
- package/dist/src/FunctionProtocol.d.ts +2 -2
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +53 -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 +8 -3
- 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 +64 -3
- 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 +68 -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 +104 -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/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/google_pb.js +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 +11 -45
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +12 -24
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +172 -1
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +20 -1
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/errors.d.ts +1 -1
- package/dist/src/edge/errors.d.ts.map +1 -1
- package/dist/src/edge/errors.js.map +1 -1
- package/dist/src/edge/index.d.ts +4 -3
- package/dist/src/edge/index.d.ts.map +1 -1
- package/dist/src/edge/index.js +1 -0
- package/dist/src/edge/index.js.map +1 -1
- package/dist/src/edge/registry.d.ts +164 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +104 -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 +2 -2
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +133 -133
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +3 -3
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/index.d.ts +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/index.d.ts +11 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +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 +1027 -1040
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +107 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +104 -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 +71 -119
- 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 +17 -34
- 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 +32 -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.d.ts +2 -2
- package/dist/src/proto/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/proto/types.d.ts +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/src/types.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -33
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +2 -4
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +64 -9
- package/src/buf/proto/gen/dxos/client/services_pb.ts +114 -40
- package/src/buf/proto/gen/dxos/config_pb.ts +122 -4
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +9 -2
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +39 -6
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +49 -3
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/iframe_pb.ts +2 -14
- package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/rpc_pb.ts +37 -8
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
- package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
- package/src/codec.test.ts +1 -1
- package/src/edge/EdgeFunctionEnv.ts +25 -27
- package/src/edge/edge.ts +127 -1
- package/src/edge/errors.ts +1 -1
- package/src/edge/index.ts +4 -3
- package/src/edge/registry.ts +125 -0
- package/src/errors/encoding.ts +2 -3
- package/src/errors/errors.test.ts +1 -1
- package/src/errors/errors.ts +2 -3
- package/src/errors/helpers.ts +1 -1
- package/src/errors/index.ts +5 -5
- package/src/index.ts +11 -14
- package/src/indexing.test.ts +1 -1
- package/src/proto/dxos/client/queue.proto +18 -4
- package/src/proto/dxos/client/services.proto +19 -1
- package/src/proto/dxos/config.proto +47 -2
- package/src/proto/dxos/echo/metadata.proto +3 -0
- 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 +1027 -1040
- package/src/proto/gen/dxos/config.ts +104 -101
- package/src/proto/gen/dxos/devtools/host.ts +71 -119
- 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 +17 -34
- 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 +33 -8
- package/src/proto/index.ts +2 -2
- package/src/proto/types.ts +1 -1
- package/src/space-archive.ts +70 -1
- package/src/types.ts +2 -2
- package/dist/src/queue.d.ts +0 -3
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -5
- package/dist/src/queue.js.map +0 -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/queue.ts +0 -14
- package/src/tracing.ts +0 -86
|
@@ -13,1496 +13,1483 @@ 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
|
-
|
|
467
|
-
|
|
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
|
+
}
|
|
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
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
687
|
+
controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
691
|
+
*/
|
|
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;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
699
|
+
*/
|
|
700
|
+
export interface AdmitContactRequest {
|
|
701
|
+
contact: Contact;
|
|
702
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
703
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
707
|
+
*/
|
|
708
|
+
export interface ContactAdmission {
|
|
709
|
+
credential: dxos_halo_credentials.Credential;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
713
|
+
*/
|
|
714
|
+
export interface JoinSpaceResponse {
|
|
715
|
+
space: Space;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
719
|
+
*/
|
|
720
|
+
export interface JoinBySpaceKeyRequest {
|
|
721
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
725
|
+
*/
|
|
726
|
+
export interface SpaceArchive {
|
|
727
|
+
filename: string;
|
|
728
|
+
contents: Uint8Array;
|
|
591
729
|
/**
|
|
592
|
-
* e.g. NodeJS.MemoryUsage, subject to change
|
|
593
|
-
*
|
|
594
730
|
* Options:
|
|
595
731
|
* - proto3_optional = true
|
|
596
732
|
*/
|
|
597
|
-
|
|
733
|
+
format?: SpaceArchive.Format;
|
|
598
734
|
}
|
|
599
|
-
export declare namespace
|
|
735
|
+
export declare namespace SpaceArchive {
|
|
600
736
|
/**
|
|
601
737
|
* Defined in:
|
|
602
738
|
* {@link file://./../../../dxos/client/services.proto}
|
|
603
739
|
*/
|
|
604
|
-
enum
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
NODE = 2
|
|
740
|
+
enum Format {
|
|
741
|
+
BINARY = 0,
|
|
742
|
+
JSON = 1
|
|
608
743
|
}
|
|
609
744
|
}
|
|
610
745
|
/**
|
|
611
|
-
* Defined in:
|
|
612
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
613
|
-
*/
|
|
614
|
-
export interface SystemService {
|
|
615
|
-
/**
|
|
616
|
-
* Get the static config of the client.
|
|
617
|
-
*/
|
|
618
|
-
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
619
|
-
/**
|
|
620
|
-
* Get the diagnostics snapshot.
|
|
621
|
-
*/
|
|
622
|
-
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
623
|
-
/**
|
|
624
|
-
* Update the status of the client. Used to re-activate an inactive client.
|
|
625
|
-
*/
|
|
626
|
-
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
627
|
-
/**
|
|
628
|
-
* Stream the status of the client.
|
|
629
|
-
*/
|
|
630
|
-
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
631
|
-
/**
|
|
632
|
-
* Reset the client.
|
|
633
|
-
*/
|
|
634
|
-
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
635
|
-
/**
|
|
636
|
-
* Get platform Information
|
|
637
|
-
*/
|
|
638
|
-
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* Defined in:
|
|
642
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
746
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
643
747
|
*/
|
|
644
|
-
export interface
|
|
645
|
-
|
|
646
|
-
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
647
|
-
/**
|
|
648
|
-
* Options:
|
|
649
|
-
* - proto3_optional = true
|
|
650
|
-
*/
|
|
651
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
748
|
+
export interface ExportSpaceRequest {
|
|
749
|
+
spaceId: string;
|
|
652
750
|
/**
|
|
653
751
|
* Options:
|
|
654
752
|
* - proto3_optional = true
|
|
655
753
|
*/
|
|
656
|
-
|
|
754
|
+
format?: SpaceArchive.Format;
|
|
657
755
|
}
|
|
658
756
|
/**
|
|
659
|
-
* Defined in:
|
|
660
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
757
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
661
758
|
*/
|
|
662
|
-
export interface
|
|
663
|
-
|
|
664
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
665
|
-
challenge: string;
|
|
759
|
+
export interface ExportSpaceResponse {
|
|
760
|
+
archive: SpaceArchive;
|
|
666
761
|
}
|
|
667
762
|
/**
|
|
668
|
-
* Defined in:
|
|
669
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
763
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
670
764
|
*/
|
|
671
|
-
export interface
|
|
672
|
-
|
|
673
|
-
external?: RecoverIdentityRequest.ExternalSignature;
|
|
674
|
-
token?: string;
|
|
765
|
+
export interface ImportSpaceRequest {
|
|
766
|
+
archive: SpaceArchive;
|
|
675
767
|
}
|
|
676
|
-
|
|
768
|
+
/**
|
|
769
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
770
|
+
*/
|
|
771
|
+
export interface ImportSpaceResponse {
|
|
677
772
|
/**
|
|
678
|
-
*
|
|
679
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
773
|
+
* the ID of the new space.
|
|
680
774
|
*/
|
|
681
|
-
|
|
682
|
-
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
683
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
684
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
685
|
-
signature: Uint8Array;
|
|
686
|
-
/**
|
|
687
|
-
* Options:
|
|
688
|
-
* - proto3_optional = true
|
|
689
|
-
*/
|
|
690
|
-
clientDataJson?: Uint8Array;
|
|
691
|
-
/**
|
|
692
|
-
* Options:
|
|
693
|
-
* - proto3_optional = true
|
|
694
|
-
*/
|
|
695
|
-
authenticatorData?: Uint8Array;
|
|
696
|
-
}
|
|
775
|
+
newSpaceId: string;
|
|
697
776
|
}
|
|
698
777
|
/**
|
|
699
778
|
* Defined in:
|
|
700
779
|
* {@link file://./../../../dxos/client/services.proto}
|
|
701
780
|
*/
|
|
702
|
-
export interface
|
|
781
|
+
export interface SpacesService {
|
|
782
|
+
createSpace: (request: CreateSpaceRequest, options?: RequestOptions) => Promise<Space>;
|
|
783
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
784
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
785
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
786
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
787
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
703
788
|
/**
|
|
704
|
-
*
|
|
789
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
705
790
|
*/
|
|
706
|
-
|
|
791
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
707
792
|
/**
|
|
708
|
-
*
|
|
793
|
+
* Subscribe to messages from the space swarm.
|
|
709
794
|
*/
|
|
710
|
-
|
|
795
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
711
796
|
/**
|
|
712
|
-
*
|
|
797
|
+
* Write credentials to the space control feed.
|
|
713
798
|
*/
|
|
714
|
-
|
|
799
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
800
|
+
/**
|
|
801
|
+
* Query credentials from the space control feed.
|
|
802
|
+
*/
|
|
803
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
804
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
805
|
+
exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
|
|
806
|
+
importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
|
|
715
807
|
}
|
|
716
808
|
/**
|
|
717
|
-
* Defined in:
|
|
718
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
809
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
719
810
|
*/
|
|
720
|
-
export interface
|
|
811
|
+
export interface AcceptInvitationRequest {
|
|
812
|
+
invitation: Invitation;
|
|
721
813
|
/**
|
|
722
|
-
* If not provided, a new key will be generated.
|
|
723
|
-
*
|
|
724
814
|
* Options:
|
|
725
815
|
* - proto3_optional = true
|
|
726
816
|
*/
|
|
727
|
-
|
|
817
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
728
818
|
}
|
|
729
819
|
/**
|
|
730
|
-
* Defined in:
|
|
731
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
820
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
732
821
|
*/
|
|
733
|
-
export interface
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
* - proto3_optional = true
|
|
737
|
-
*/
|
|
738
|
-
recoveryCode?: string;
|
|
822
|
+
export interface AuthenticationRequest {
|
|
823
|
+
invitationId: string;
|
|
824
|
+
authCode: string;
|
|
739
825
|
}
|
|
740
826
|
/**
|
|
741
|
-
* Defined in:
|
|
742
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
827
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
743
828
|
*/
|
|
744
|
-
export interface
|
|
745
|
-
|
|
746
|
-
* Options:
|
|
747
|
-
* - proto3_optional = true
|
|
748
|
-
*/
|
|
749
|
-
identity?: Identity;
|
|
829
|
+
export interface CancelInvitationRequest {
|
|
830
|
+
invitationId: string;
|
|
750
831
|
}
|
|
751
832
|
/**
|
|
752
|
-
* Defined in:
|
|
753
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
833
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
754
834
|
*/
|
|
755
|
-
export interface
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
* Options:
|
|
759
|
-
* - proto3_optional = true
|
|
760
|
-
*/
|
|
761
|
-
nonce?: Uint8Array;
|
|
835
|
+
export interface InvitationMethod {
|
|
836
|
+
created?: Invitation;
|
|
837
|
+
accepted?: Invitation;
|
|
762
838
|
}
|
|
763
839
|
/**
|
|
764
|
-
* Defined in:
|
|
765
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
840
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
766
841
|
*/
|
|
767
|
-
export interface
|
|
842
|
+
export interface QueryInvitationsResponse {
|
|
843
|
+
action: QueryInvitationsResponse.Action;
|
|
844
|
+
type: QueryInvitationsResponse.Type;
|
|
845
|
+
invitations?: Invitation[];
|
|
768
846
|
/**
|
|
769
847
|
* Options:
|
|
770
848
|
* - proto3_optional = true
|
|
771
849
|
*/
|
|
772
|
-
|
|
850
|
+
existing?: boolean;
|
|
851
|
+
}
|
|
852
|
+
export declare namespace QueryInvitationsResponse {
|
|
773
853
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
854
|
+
* Defined in:
|
|
855
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
776
856
|
*/
|
|
777
|
-
|
|
857
|
+
enum Action {
|
|
858
|
+
ADDED = 0,
|
|
859
|
+
REMOVED = 1,
|
|
860
|
+
SAVED = 2,
|
|
861
|
+
LOAD_COMPLETE = 3
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Defined in:
|
|
865
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
866
|
+
*/
|
|
867
|
+
enum Type {
|
|
868
|
+
CREATED = 0,
|
|
869
|
+
ACCEPTED = 1
|
|
870
|
+
}
|
|
778
871
|
}
|
|
779
872
|
/**
|
|
780
|
-
* Defined in:
|
|
781
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
873
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
782
874
|
*/
|
|
783
|
-
export interface
|
|
784
|
-
|
|
785
|
-
requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
|
|
786
|
-
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
787
|
-
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
788
|
-
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
789
|
-
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
790
|
-
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
791
|
-
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
875
|
+
export interface LoadPersistentInvitationsResponse {
|
|
876
|
+
invitations?: Invitation[];
|
|
792
877
|
}
|
|
793
878
|
/**
|
|
794
879
|
* Defined in:
|
|
795
880
|
* {@link file://./../../../dxos/client/services.proto}
|
|
796
881
|
*/
|
|
797
|
-
export
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
882
|
+
export interface InvitationsService {
|
|
883
|
+
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
884
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
885
|
+
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
886
|
+
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
887
|
+
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
802
890
|
* Defined in:
|
|
803
891
|
* {@link file://./../../../dxos/client/services.proto}
|
|
804
892
|
*/
|
|
805
|
-
export
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Options:
|
|
810
|
-
* - proto3_optional = true
|
|
811
|
-
*/
|
|
812
|
-
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
813
|
-
presence: Device.PresenceState;
|
|
893
|
+
export declare enum ConnectionState {
|
|
894
|
+
OFFLINE = 0,
|
|
895
|
+
ONLINE = 1
|
|
814
896
|
}
|
|
815
|
-
|
|
897
|
+
/**
|
|
898
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
899
|
+
*/
|
|
900
|
+
export interface NetworkStatus {
|
|
901
|
+
swarm: ConnectionState;
|
|
902
|
+
signaling?: NetworkStatus.Signal[];
|
|
903
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
904
|
+
}
|
|
905
|
+
export declare namespace NetworkStatus {
|
|
816
906
|
/**
|
|
817
|
-
* Defined in:
|
|
818
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
907
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
819
908
|
*/
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
REMOVED = 2
|
|
909
|
+
interface Signal {
|
|
910
|
+
server: string;
|
|
911
|
+
state: dxos_mesh_signal.SignalState;
|
|
824
912
|
}
|
|
825
913
|
}
|
|
826
914
|
/**
|
|
827
|
-
* Defined in:
|
|
828
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
915
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
829
916
|
*/
|
|
830
|
-
export interface
|
|
831
|
-
|
|
917
|
+
export interface UpdateConfigRequest {
|
|
918
|
+
swarm: ConnectionState;
|
|
832
919
|
}
|
|
833
920
|
/**
|
|
834
|
-
* Defined in:
|
|
835
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
921
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
836
922
|
*/
|
|
837
|
-
export interface
|
|
838
|
-
|
|
839
|
-
queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
|
|
923
|
+
export interface SubscribeSwarmStateRequest {
|
|
924
|
+
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
840
925
|
}
|
|
841
926
|
/**
|
|
842
927
|
* Defined in:
|
|
843
928
|
* {@link file://./../../../dxos/client/services.proto}
|
|
844
929
|
*/
|
|
845
|
-
export interface
|
|
846
|
-
|
|
930
|
+
export interface NetworkService {
|
|
931
|
+
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
932
|
+
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
933
|
+
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
934
|
+
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
847
935
|
/**
|
|
848
|
-
*
|
|
849
|
-
* - proto3_optional = true
|
|
936
|
+
* Query the swarm state without joining it.
|
|
850
937
|
*/
|
|
851
|
-
|
|
852
|
-
|
|
938
|
+
querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
|
|
939
|
+
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
940
|
+
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
941
|
+
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
853
942
|
}
|
|
854
943
|
/**
|
|
855
944
|
* Defined in:
|
|
856
945
|
* {@link file://./../../../dxos/client/services.proto}
|
|
857
946
|
*/
|
|
858
|
-
export interface
|
|
859
|
-
|
|
947
|
+
export interface EdgeAgentService {
|
|
948
|
+
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
949
|
+
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
950
|
+
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
860
951
|
}
|
|
861
952
|
/**
|
|
862
|
-
* Defined in:
|
|
863
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
953
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
864
954
|
*/
|
|
865
|
-
export interface
|
|
866
|
-
|
|
867
|
-
|
|
955
|
+
export interface EdgeStatus {
|
|
956
|
+
state: EdgeStatus.ConnectionState;
|
|
957
|
+
/**
|
|
958
|
+
* Latency in ms
|
|
959
|
+
*/
|
|
960
|
+
rtt: number;
|
|
961
|
+
/**
|
|
962
|
+
* How long the connection has been up
|
|
963
|
+
*/
|
|
964
|
+
uptime: number;
|
|
965
|
+
/**
|
|
966
|
+
* Upload rate in bytes per second
|
|
967
|
+
*/
|
|
968
|
+
rateBytesUp: number;
|
|
969
|
+
/**
|
|
970
|
+
* Download rate in bytes per second
|
|
971
|
+
*/
|
|
972
|
+
rateBytesDown: number;
|
|
973
|
+
messagesSent: number;
|
|
974
|
+
messagesReceived: number;
|
|
975
|
+
}
|
|
976
|
+
export declare namespace EdgeStatus {
|
|
977
|
+
/**
|
|
978
|
+
* Defined in:
|
|
979
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
980
|
+
*/
|
|
981
|
+
enum ConnectionState {
|
|
982
|
+
NOT_CONNECTED = 0,
|
|
983
|
+
CONNECTED = 1
|
|
984
|
+
}
|
|
868
985
|
}
|
|
869
986
|
/**
|
|
870
|
-
* Defined in:
|
|
871
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
987
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
872
988
|
*/
|
|
873
|
-
export interface
|
|
874
|
-
|
|
875
|
-
presence: SpaceMember.PresenceState;
|
|
876
|
-
peerStates?: dxos_mesh_presence.PeerState[];
|
|
877
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
989
|
+
export interface QueryEdgeStatusResponse {
|
|
990
|
+
status: EdgeStatus;
|
|
878
991
|
}
|
|
879
|
-
|
|
992
|
+
/**
|
|
993
|
+
* Defined in: `../../../dxos/client/services.proto`
|
|
994
|
+
*/
|
|
995
|
+
export interface QueryAgentStatusResponse {
|
|
996
|
+
status: QueryAgentStatusResponse.AgentStatus;
|
|
997
|
+
}
|
|
998
|
+
export declare namespace QueryAgentStatusResponse {
|
|
880
999
|
/**
|
|
881
1000
|
* Defined in:
|
|
882
1001
|
* {@link file://./../../../dxos/client/services.proto}
|
|
883
1002
|
*/
|
|
884
|
-
enum
|
|
885
|
-
|
|
886
|
-
|
|
1003
|
+
enum AgentStatus {
|
|
1004
|
+
UNKNOWN = 0,
|
|
1005
|
+
ACTIVE = 1,
|
|
1006
|
+
INACTIVE = 2,
|
|
1007
|
+
NOT_FOUND = 3
|
|
887
1008
|
}
|
|
888
1009
|
}
|
|
889
1010
|
/**
|
|
890
|
-
* Defined in:
|
|
891
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1011
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
892
1012
|
*/
|
|
893
|
-
export interface
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
1013
|
+
export interface Metrics {
|
|
1014
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1015
|
+
values?: Metrics.KeyPair[];
|
|
1016
|
+
}
|
|
1017
|
+
export declare namespace Metrics {
|
|
1018
|
+
/**
|
|
1019
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1020
|
+
*/
|
|
1021
|
+
interface KeyPair {
|
|
1022
|
+
/**
|
|
1023
|
+
* Options:
|
|
1024
|
+
* - proto3_optional = true
|
|
1025
|
+
*/
|
|
1026
|
+
key?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* Options:
|
|
1029
|
+
* - proto3_optional = true
|
|
1030
|
+
*/
|
|
1031
|
+
value?: dxos_value.Value;
|
|
1032
|
+
/**
|
|
1033
|
+
* Options:
|
|
1034
|
+
* - proto3_optional = true
|
|
1035
|
+
*/
|
|
1036
|
+
stats?: dxos_value.Stats;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1041
|
+
*/
|
|
1042
|
+
export interface ControlMetricsRequest {
|
|
897
1043
|
/**
|
|
898
1044
|
* Options:
|
|
899
1045
|
* - proto3_optional = true
|
|
900
1046
|
*/
|
|
901
|
-
|
|
1047
|
+
reset?: boolean;
|
|
902
1048
|
/**
|
|
903
1049
|
* Options:
|
|
904
1050
|
* - proto3_optional = true
|
|
905
1051
|
*/
|
|
906
|
-
|
|
1052
|
+
record?: boolean;
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1056
|
+
*/
|
|
1057
|
+
export interface ControlMetricsResponse {
|
|
907
1058
|
/**
|
|
908
1059
|
* Options:
|
|
909
1060
|
* - proto3_optional = true
|
|
910
1061
|
*/
|
|
911
|
-
|
|
912
|
-
|
|
1062
|
+
recording?: boolean;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1066
|
+
*/
|
|
1067
|
+
export interface QueryMetricsRequest {
|
|
913
1068
|
/**
|
|
914
1069
|
* Options:
|
|
915
1070
|
* - proto3_optional = true
|
|
916
1071
|
*/
|
|
917
|
-
|
|
1072
|
+
interval?: number;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1076
|
+
*/
|
|
1077
|
+
export interface QueryMetricsResponse {
|
|
1078
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1079
|
+
metrics: Metrics;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Defined in:
|
|
1083
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1084
|
+
*/
|
|
1085
|
+
export declare enum LogLevel {
|
|
1086
|
+
NONE = 0,
|
|
1087
|
+
TRACE = 5,
|
|
1088
|
+
DEBUG = 10,
|
|
1089
|
+
VERBOSE = 11,
|
|
1090
|
+
INFO = 12,
|
|
1091
|
+
WARN = 13,
|
|
1092
|
+
ERROR = 14
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1096
|
+
*/
|
|
1097
|
+
export interface QueryLogsRequest {
|
|
1098
|
+
filters?: QueryLogsRequest.Filter[];
|
|
918
1099
|
/**
|
|
919
1100
|
* Options:
|
|
920
1101
|
* - proto3_optional = true
|
|
921
1102
|
*/
|
|
922
|
-
|
|
923
|
-
metrics: Space.Metrics;
|
|
1103
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
924
1104
|
}
|
|
925
|
-
export declare namespace
|
|
1105
|
+
export declare namespace QueryLogsRequest {
|
|
926
1106
|
/**
|
|
927
1107
|
* Defined in:
|
|
928
|
-
* {@link file://./../../../dxos/client/
|
|
1108
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
929
1109
|
*/
|
|
930
|
-
|
|
1110
|
+
enum MatchingOptions {
|
|
1111
|
+
NONE = 0,
|
|
1112
|
+
INCLUSIVE = 1,
|
|
1113
|
+
EXPLICIT = 2
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1117
|
+
*/
|
|
1118
|
+
interface Filter {
|
|
1119
|
+
level: LogLevel;
|
|
931
1120
|
/**
|
|
932
1121
|
* Options:
|
|
933
1122
|
* - proto3_optional = true
|
|
934
1123
|
*/
|
|
935
|
-
|
|
1124
|
+
pattern?: string;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1129
|
+
*/
|
|
1130
|
+
export interface LogEntry {
|
|
1131
|
+
level: LogLevel;
|
|
1132
|
+
message: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Options:
|
|
1135
|
+
* - proto3_optional = true
|
|
1136
|
+
*/
|
|
1137
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Options:
|
|
1140
|
+
* - proto3_optional = true
|
|
1141
|
+
*/
|
|
1142
|
+
meta?: LogEntry.Meta;
|
|
1143
|
+
/**
|
|
1144
|
+
* Options:
|
|
1145
|
+
* - proto3_optional = true
|
|
1146
|
+
*/
|
|
1147
|
+
error?: dxos_error.Error;
|
|
1148
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1149
|
+
}
|
|
1150
|
+
export declare namespace LogEntry {
|
|
1151
|
+
/**
|
|
1152
|
+
* Defined in: `../../../dxos/client/logging.proto`
|
|
1153
|
+
*/
|
|
1154
|
+
interface Meta {
|
|
1155
|
+
file: string;
|
|
1156
|
+
line: number;
|
|
936
1157
|
/**
|
|
937
1158
|
* Options:
|
|
938
1159
|
* - proto3_optional = true
|
|
939
1160
|
*/
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Options:
|
|
943
|
-
* - proto3_optional = true
|
|
944
|
-
*/
|
|
945
|
-
controlPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
946
|
-
/**
|
|
947
|
-
* Options:
|
|
948
|
-
* - proto3_optional = true
|
|
949
|
-
*/
|
|
950
|
-
dataPipelineOpen?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
951
|
-
/**
|
|
952
|
-
* Options:
|
|
953
|
-
* - proto3_optional = true
|
|
954
|
-
*/
|
|
955
|
-
dataPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
956
|
-
/**
|
|
957
|
-
* Options:
|
|
958
|
-
* - proto3_optional = true
|
|
959
|
-
*/
|
|
960
|
-
ready?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
961
|
-
}
|
|
962
|
-
/**
|
|
963
|
-
* Defined in:
|
|
964
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
965
|
-
*/
|
|
966
|
-
interface PipelineState {
|
|
967
|
-
/**
|
|
968
|
-
* Options:
|
|
969
|
-
* - proto3_optional = true
|
|
970
|
-
*/
|
|
971
|
-
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
972
|
-
/**
|
|
973
|
-
* Options:
|
|
974
|
-
* - proto3_optional = true
|
|
975
|
-
*/
|
|
976
|
-
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
977
|
-
/**
|
|
978
|
-
* TODO(burdon): Normalize _key suffix.
|
|
979
|
-
*/
|
|
980
|
-
controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
981
|
-
dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
982
|
-
/**
|
|
983
|
-
* Last processed epoch. Might now have been applied yet.
|
|
984
|
-
*
|
|
985
|
-
* Options:
|
|
986
|
-
* - proto3_optional = true
|
|
987
|
-
*/
|
|
988
|
-
currentEpoch?: dxos_halo_credentials.Credential;
|
|
989
|
-
/**
|
|
990
|
-
* Epoch that is currently applied.
|
|
991
|
-
*
|
|
992
|
-
* Options:
|
|
993
|
-
* - proto3_optional = true
|
|
994
|
-
*/
|
|
995
|
-
appliedEpoch?: dxos_halo_credentials.Credential;
|
|
996
|
-
/**
|
|
997
|
-
* Mutations already processed.
|
|
998
|
-
*
|
|
999
|
-
* Options:
|
|
1000
|
-
* - proto3_optional = true
|
|
1001
|
-
*/
|
|
1002
|
-
currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1003
|
-
/**
|
|
1004
|
-
* Minimum timeframe to consider the state to be up-to-date.
|
|
1005
|
-
*
|
|
1006
|
-
* Options:
|
|
1007
|
-
* - proto3_optional = true
|
|
1008
|
-
*/
|
|
1009
|
-
targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1010
|
-
/**
|
|
1011
|
-
* All mutations stored in feeds.
|
|
1012
|
-
*
|
|
1013
|
-
* Options:
|
|
1014
|
-
* - proto3_optional = true
|
|
1015
|
-
*/
|
|
1016
|
-
totalControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1017
|
-
/**
|
|
1018
|
-
* All mutations known to exist on the network.
|
|
1019
|
-
*
|
|
1020
|
-
* Options:
|
|
1021
|
-
* - proto3_optional = true
|
|
1022
|
-
*/
|
|
1023
|
-
knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1024
|
-
/**
|
|
1025
|
-
* Start timeframe of the pipeline.
|
|
1026
|
-
*
|
|
1027
|
-
* Options:
|
|
1028
|
-
* - proto3_optional = true
|
|
1029
|
-
*/
|
|
1030
|
-
startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1031
|
-
/**
|
|
1032
|
-
* Mutations already processed.
|
|
1033
|
-
*
|
|
1034
|
-
* Options:
|
|
1035
|
-
* - proto3_optional = true
|
|
1036
|
-
*/
|
|
1037
|
-
currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1038
|
-
/**
|
|
1039
|
-
* Minimum timeframe to consider the state to be up-to-date.
|
|
1040
|
-
*
|
|
1041
|
-
* Options:
|
|
1042
|
-
* - proto3_optional = true
|
|
1043
|
-
*/
|
|
1044
|
-
targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1045
|
-
/**
|
|
1046
|
-
* All mutations stored in feeds.
|
|
1047
|
-
*
|
|
1048
|
-
* Options:
|
|
1049
|
-
* - proto3_optional = true
|
|
1050
|
-
*/
|
|
1051
|
-
totalDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1052
|
-
/**
|
|
1053
|
-
* All mutations known to exist on the network.
|
|
1054
|
-
*
|
|
1055
|
-
* Options:
|
|
1056
|
-
* - proto3_optional = true
|
|
1057
|
-
*/
|
|
1058
|
-
knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
1161
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1059
1162
|
/**
|
|
1060
|
-
* URL of the current space root automerge document.
|
|
1061
|
-
*
|
|
1062
1163
|
* Options:
|
|
1063
1164
|
* - proto3_optional = true
|
|
1064
1165
|
*/
|
|
1065
|
-
|
|
1166
|
+
resourceId?: number;
|
|
1066
1167
|
}
|
|
1067
1168
|
}
|
|
1068
1169
|
/**
|
|
1069
1170
|
* Defined in:
|
|
1070
|
-
* {@link file://./../../../dxos/client/
|
|
1171
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1071
1172
|
*/
|
|
1072
|
-
export interface
|
|
1073
|
-
|
|
1173
|
+
export interface LoggingService {
|
|
1174
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1175
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1176
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1180
|
+
*/
|
|
1181
|
+
export interface QueueQuery {
|
|
1182
|
+
spaceId: string;
|
|
1074
1183
|
/**
|
|
1075
|
-
*
|
|
1184
|
+
* Options:
|
|
1185
|
+
* - proto3_optional = true
|
|
1186
|
+
*/
|
|
1187
|
+
queuesNamespace?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Queries the whole space if missing.
|
|
1190
|
+
*/
|
|
1191
|
+
queueIds?: string[];
|
|
1192
|
+
/**
|
|
1193
|
+
* Filter items after this cursor. Exclusive.
|
|
1076
1194
|
*
|
|
1077
1195
|
* Options:
|
|
1078
1196
|
* - proto3_optional = true
|
|
1079
1197
|
*/
|
|
1080
|
-
|
|
1198
|
+
after?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Filter items before this cursor. Exclusive.
|
|
1201
|
+
*
|
|
1202
|
+
* Options:
|
|
1203
|
+
* - proto3_optional = true
|
|
1204
|
+
*/
|
|
1205
|
+
before?: string;
|
|
1081
1206
|
/**
|
|
1207
|
+
* Filter items after this position. Inclusive.
|
|
1208
|
+
*
|
|
1082
1209
|
* Options:
|
|
1083
1210
|
* - proto3_optional = true
|
|
1084
1211
|
*/
|
|
1085
|
-
|
|
1212
|
+
beginPosition?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Filter items before this position. Exclusive.
|
|
1215
|
+
*
|
|
1216
|
+
* Options:
|
|
1217
|
+
* - proto3_optional = true
|
|
1218
|
+
*/
|
|
1219
|
+
endPosition?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Options:
|
|
1222
|
+
* - proto3_optional = true
|
|
1223
|
+
*/
|
|
1224
|
+
limit?: number;
|
|
1225
|
+
/**
|
|
1226
|
+
* Options:
|
|
1227
|
+
* - proto3_optional = true
|
|
1228
|
+
*/
|
|
1229
|
+
reverse?: boolean;
|
|
1230
|
+
objectIds?: string[];
|
|
1086
1231
|
}
|
|
1087
1232
|
/**
|
|
1088
|
-
* Defined in:
|
|
1089
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1233
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1090
1234
|
*/
|
|
1091
|
-
export interface
|
|
1092
|
-
|
|
1235
|
+
export interface QueueQueryResult {
|
|
1236
|
+
/**
|
|
1237
|
+
* coerces `undefined` to `null`, corrupting optional fields.
|
|
1238
|
+
*/
|
|
1239
|
+
objects?: string[];
|
|
1240
|
+
/**
|
|
1241
|
+
* Cursor to query the next items. Can be passed to `after` in query to keep querying.
|
|
1242
|
+
*/
|
|
1243
|
+
nextCursor: string;
|
|
1244
|
+
prevCursor: string;
|
|
1093
1245
|
}
|
|
1094
1246
|
/**
|
|
1095
|
-
* Defined in:
|
|
1096
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1247
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1097
1248
|
*/
|
|
1098
|
-
export interface
|
|
1099
|
-
|
|
1100
|
-
channel: string;
|
|
1101
|
-
message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
1249
|
+
export interface QueryQueueRequest {
|
|
1250
|
+
query: QueueQuery;
|
|
1102
1251
|
}
|
|
1103
1252
|
/**
|
|
1104
|
-
* Defined in:
|
|
1105
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1253
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1106
1254
|
*/
|
|
1107
|
-
export interface
|
|
1108
|
-
|
|
1109
|
-
|
|
1255
|
+
export interface InsertIntoQueueRequest {
|
|
1256
|
+
subspaceTag: string;
|
|
1257
|
+
spaceId: string;
|
|
1258
|
+
queueId: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* JSON-encoded object payloads. Each entry is a serialized ObjectJSON.
|
|
1261
|
+
*/
|
|
1262
|
+
objects?: string[];
|
|
1110
1263
|
}
|
|
1111
1264
|
/**
|
|
1112
|
-
* Defined in:
|
|
1113
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1265
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1114
1266
|
*/
|
|
1115
|
-
export interface
|
|
1116
|
-
|
|
1117
|
-
|
|
1267
|
+
export interface DeleteFromQueueRequest {
|
|
1268
|
+
subspaceTag: string;
|
|
1269
|
+
spaceId: string;
|
|
1270
|
+
queueId: string;
|
|
1271
|
+
objectIds?: string[];
|
|
1118
1272
|
}
|
|
1119
1273
|
/**
|
|
1120
|
-
* Defined in:
|
|
1121
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1274
|
+
* Defined in: `../../../dxos/client/queue.proto`
|
|
1122
1275
|
*/
|
|
1123
|
-
export interface
|
|
1124
|
-
|
|
1276
|
+
export interface SyncQueueRequest {
|
|
1277
|
+
subspaceTag: string;
|
|
1278
|
+
spaceId: string;
|
|
1279
|
+
queueId: string;
|
|
1125
1280
|
/**
|
|
1281
|
+
* Whether to push local changes to the server. Defaults to true.
|
|
1282
|
+
*
|
|
1126
1283
|
* Options:
|
|
1127
1284
|
* - proto3_optional = true
|
|
1128
1285
|
*/
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* Defined in:
|
|
1133
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1134
|
-
*/
|
|
1135
|
-
export interface CreateEpochRequest {
|
|
1136
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1286
|
+
shouldPush?: boolean;
|
|
1137
1287
|
/**
|
|
1288
|
+
* Whether to pull remote changes from the server. Defaults to true.
|
|
1289
|
+
*
|
|
1138
1290
|
* Options:
|
|
1139
1291
|
* - proto3_optional = true
|
|
1140
1292
|
*/
|
|
1141
|
-
|
|
1293
|
+
shouldPull?: boolean;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Defined in:
|
|
1297
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1298
|
+
*/
|
|
1299
|
+
export interface QueueService {
|
|
1300
|
+
queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
|
|
1301
|
+
insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1302
|
+
deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1303
|
+
syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Defined in: `../../../dxos/client/invitation.proto`
|
|
1307
|
+
*/
|
|
1308
|
+
export interface AdmissionKeypair {
|
|
1309
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1142
1310
|
/**
|
|
1143
|
-
* For REPLACE_AUTOMERGE_ROOT migration.
|
|
1144
|
-
*
|
|
1145
1311
|
* Options:
|
|
1146
1312
|
* - proto3_optional = true
|
|
1147
1313
|
*/
|
|
1148
|
-
|
|
1149
|
-
}
|
|
1150
|
-
export declare namespace CreateEpochRequest {
|
|
1151
|
-
/**
|
|
1152
|
-
* Defined in:
|
|
1153
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1154
|
-
*/
|
|
1155
|
-
enum Migration {
|
|
1156
|
-
NONE = 0,
|
|
1157
|
-
INIT_AUTOMERGE = 1,
|
|
1158
|
-
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
1159
|
-
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
1160
|
-
REPLACE_AUTOMERGE_ROOT = 4,
|
|
1161
|
-
MIGRATE_REFERENCES_TO_DXN = 5
|
|
1162
|
-
}
|
|
1314
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1163
1315
|
}
|
|
1164
1316
|
/**
|
|
1317
|
+
* Runtime state of the space object.
|
|
1318
|
+
*
|
|
1165
1319
|
* Defined in:
|
|
1166
|
-
* {@link file://./../../../dxos/client/
|
|
1320
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1167
1321
|
*/
|
|
1168
|
-
export
|
|
1322
|
+
export declare enum SpaceState {
|
|
1323
|
+
INVALID = 0,
|
|
1324
|
+
SPACE_INACTIVE = 2,
|
|
1325
|
+
SPACE_ACTIVE = 6,
|
|
1326
|
+
SPACE_CLOSED = 1,
|
|
1327
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1328
|
+
SPACE_INITIALIZING = 4,
|
|
1329
|
+
SPACE_READY = 3,
|
|
1330
|
+
SPACE_ERROR = 5,
|
|
1331
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Represents the invitation state passed between client and service.
|
|
1335
|
+
*
|
|
1336
|
+
* Defined in: `../../../dxos/client/invitation.proto`
|
|
1337
|
+
*/
|
|
1338
|
+
export interface Invitation {
|
|
1169
1339
|
/**
|
|
1170
|
-
*
|
|
1340
|
+
* Local identifier (random).
|
|
1341
|
+
*/
|
|
1342
|
+
invitationId: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Determines the behavior of the invitation.
|
|
1345
|
+
*/
|
|
1346
|
+
type: Invitation.Type;
|
|
1347
|
+
/**
|
|
1348
|
+
* Kind of access the invitation will grant.
|
|
1349
|
+
*/
|
|
1350
|
+
kind: Invitation.Kind;
|
|
1351
|
+
/**
|
|
1352
|
+
* How the invitation is authenticated.
|
|
1353
|
+
*/
|
|
1354
|
+
authMethod: Invitation.AuthMethod;
|
|
1355
|
+
/**
|
|
1356
|
+
* Swarm rendezvous (random).
|
|
1357
|
+
*/
|
|
1358
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Local state.
|
|
1361
|
+
*/
|
|
1362
|
+
state: Invitation.State;
|
|
1363
|
+
/**
|
|
1364
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
1171
1365
|
*
|
|
1172
1366
|
* Options:
|
|
1173
1367
|
* - proto3_optional = true
|
|
1174
1368
|
*/
|
|
1175
|
-
|
|
1369
|
+
timeout?: number;
|
|
1176
1370
|
/**
|
|
1177
|
-
*
|
|
1371
|
+
* Guest's identity.
|
|
1178
1372
|
*
|
|
1179
1373
|
* Options:
|
|
1180
1374
|
* - proto3_optional = true
|
|
1181
1375
|
*/
|
|
1182
|
-
|
|
1183
|
-
}
|
|
1184
|
-
/**
|
|
1185
|
-
* Defined in:
|
|
1186
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1187
|
-
*/
|
|
1188
|
-
export interface UpdateMemberRoleRequest {
|
|
1189
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1190
|
-
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1191
|
-
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
1192
|
-
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Defined in:
|
|
1195
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1196
|
-
*/
|
|
1197
|
-
export interface AdmitContactRequest {
|
|
1198
|
-
contact: Contact;
|
|
1199
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
1200
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1201
|
-
}
|
|
1202
|
-
/**
|
|
1203
|
-
* Defined in:
|
|
1204
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1205
|
-
*/
|
|
1206
|
-
export interface ContactAdmission {
|
|
1207
|
-
credential: dxos_halo_credentials.Credential;
|
|
1208
|
-
}
|
|
1209
|
-
/**
|
|
1210
|
-
* Defined in:
|
|
1211
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1212
|
-
*/
|
|
1213
|
-
export interface JoinSpaceResponse {
|
|
1214
|
-
space: Space;
|
|
1215
|
-
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Defined in:
|
|
1218
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1219
|
-
*/
|
|
1220
|
-
export interface JoinBySpaceKeyRequest {
|
|
1221
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* Defined in:
|
|
1225
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1226
|
-
*/
|
|
1227
|
-
export interface SpaceArchive {
|
|
1228
|
-
filename: string;
|
|
1229
|
-
contents: Uint8Array;
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Defined in:
|
|
1233
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1234
|
-
*/
|
|
1235
|
-
export interface ExportSpaceRequest {
|
|
1236
|
-
spaceId: string;
|
|
1237
|
-
}
|
|
1238
|
-
/**
|
|
1239
|
-
* Defined in:
|
|
1240
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1241
|
-
*/
|
|
1242
|
-
export interface ExportSpaceResponse {
|
|
1243
|
-
archive: SpaceArchive;
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* Defined in:
|
|
1247
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1248
|
-
*/
|
|
1249
|
-
export interface ImportSpaceRequest {
|
|
1250
|
-
archive: SpaceArchive;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Defined in:
|
|
1254
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1255
|
-
*/
|
|
1256
|
-
export interface ImportSpaceResponse {
|
|
1376
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1257
1377
|
/**
|
|
1258
|
-
*
|
|
1378
|
+
* Space to join (only present if kind is SPACE).
|
|
1379
|
+
*
|
|
1380
|
+
* Options:
|
|
1381
|
+
* - proto3_optional = true
|
|
1259
1382
|
*/
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1262
|
-
/**
|
|
1263
|
-
* Defined in:
|
|
1264
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1265
|
-
*/
|
|
1266
|
-
export interface SpacesService {
|
|
1267
|
-
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
1268
|
-
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
1269
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1270
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1271
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1272
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
1383
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1273
1384
|
/**
|
|
1274
|
-
*
|
|
1385
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1386
|
+
*
|
|
1387
|
+
* Options:
|
|
1388
|
+
* - proto3_optional = true
|
|
1275
1389
|
*/
|
|
1276
|
-
|
|
1390
|
+
authCode?: string;
|
|
1277
1391
|
/**
|
|
1278
|
-
*
|
|
1392
|
+
* Path or identifier to navigate to after successful authentication.
|
|
1393
|
+
*
|
|
1394
|
+
* Options:
|
|
1395
|
+
* - proto3_optional = true
|
|
1279
1396
|
*/
|
|
1280
|
-
|
|
1397
|
+
target?: string;
|
|
1281
1398
|
/**
|
|
1282
|
-
*
|
|
1399
|
+
* Host should resume invitation on startup until timeout.
|
|
1400
|
+
*
|
|
1401
|
+
* Options:
|
|
1402
|
+
* - proto3_optional = true
|
|
1283
1403
|
*/
|
|
1284
|
-
|
|
1404
|
+
persistent?: boolean;
|
|
1285
1405
|
/**
|
|
1286
|
-
*
|
|
1406
|
+
* Options:
|
|
1407
|
+
* - proto3_optional = true
|
|
1287
1408
|
*/
|
|
1288
|
-
|
|
1289
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
1290
|
-
exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
|
|
1291
|
-
importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
|
|
1292
|
-
}
|
|
1293
|
-
/**
|
|
1294
|
-
* Defined in:
|
|
1295
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1296
|
-
*/
|
|
1297
|
-
export interface AcceptInvitationRequest {
|
|
1298
|
-
invitation: Invitation;
|
|
1409
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1299
1410
|
/**
|
|
1300
1411
|
* Options:
|
|
1301
1412
|
* - proto3_optional = true
|
|
1302
1413
|
*/
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1305
|
-
/**
|
|
1306
|
-
* Defined in:
|
|
1307
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1308
|
-
*/
|
|
1309
|
-
export interface AuthenticationRequest {
|
|
1310
|
-
invitationId: string;
|
|
1311
|
-
authCode: string;
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Defined in:
|
|
1315
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1316
|
-
*/
|
|
1317
|
-
export interface CancelInvitationRequest {
|
|
1318
|
-
invitationId: string;
|
|
1319
|
-
}
|
|
1320
|
-
/**
|
|
1321
|
-
* Defined in:
|
|
1322
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1323
|
-
*/
|
|
1324
|
-
export interface InvitationMethod {
|
|
1325
|
-
created?: Invitation;
|
|
1326
|
-
accepted?: Invitation;
|
|
1327
|
-
}
|
|
1328
|
-
/**
|
|
1329
|
-
* Defined in:
|
|
1330
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1331
|
-
*/
|
|
1332
|
-
export interface QueryInvitationsResponse {
|
|
1333
|
-
action: QueryInvitationsResponse.Action;
|
|
1334
|
-
type: QueryInvitationsResponse.Type;
|
|
1335
|
-
invitations?: Invitation[];
|
|
1414
|
+
lifetime?: number;
|
|
1336
1415
|
/**
|
|
1416
|
+
* Whether an invitation can be used multiple times.
|
|
1417
|
+
*
|
|
1337
1418
|
* Options:
|
|
1338
1419
|
* - proto3_optional = true
|
|
1339
1420
|
*/
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1342
|
-
export declare namespace QueryInvitationsResponse {
|
|
1421
|
+
multiUse?: boolean;
|
|
1343
1422
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1423
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1424
|
+
*
|
|
1425
|
+
* Options:
|
|
1426
|
+
* - proto3_optional = true
|
|
1346
1427
|
*/
|
|
1347
|
-
|
|
1348
|
-
ADDED = 0,
|
|
1349
|
-
REMOVED = 1,
|
|
1350
|
-
SAVED = 2,
|
|
1351
|
-
LOAD_COMPLETE = 3
|
|
1352
|
-
}
|
|
1428
|
+
guestKeypair?: AdmissionKeypair;
|
|
1353
1429
|
/**
|
|
1354
|
-
*
|
|
1355
|
-
*
|
|
1430
|
+
* Present on Type.DELEGATED invitations.
|
|
1431
|
+
*
|
|
1432
|
+
* Options:
|
|
1433
|
+
* - proto3_optional = true
|
|
1356
1434
|
*/
|
|
1357
|
-
|
|
1358
|
-
CREATED = 0,
|
|
1359
|
-
ACCEPTED = 1
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
/**
|
|
1363
|
-
* Defined in:
|
|
1364
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1365
|
-
*/
|
|
1366
|
-
export interface LoadPersistentInvitationsResponse {
|
|
1367
|
-
invitations?: Invitation[];
|
|
1368
|
-
}
|
|
1369
|
-
/**
|
|
1370
|
-
* Defined in:
|
|
1371
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1372
|
-
*/
|
|
1373
|
-
export interface InvitationsService {
|
|
1374
|
-
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
1375
|
-
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
1376
|
-
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
1377
|
-
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
1378
|
-
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1379
|
-
}
|
|
1380
|
-
/**
|
|
1381
|
-
* Defined in:
|
|
1382
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1383
|
-
*/
|
|
1384
|
-
export declare enum ConnectionState {
|
|
1385
|
-
OFFLINE = 0,
|
|
1386
|
-
ONLINE = 1
|
|
1387
|
-
}
|
|
1388
|
-
/**
|
|
1389
|
-
* Defined in:
|
|
1390
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1391
|
-
*/
|
|
1392
|
-
export interface NetworkStatus {
|
|
1393
|
-
swarm: ConnectionState;
|
|
1394
|
-
signaling?: NetworkStatus.Signal[];
|
|
1395
|
-
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1396
|
-
}
|
|
1397
|
-
export declare namespace NetworkStatus {
|
|
1435
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1398
1436
|
/**
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1437
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1438
|
+
*
|
|
1439
|
+
* Options:
|
|
1440
|
+
* - proto3_optional = true
|
|
1401
1441
|
*/
|
|
1402
|
-
|
|
1403
|
-
server: string;
|
|
1404
|
-
state: dxos_mesh_signal.SignalState;
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
/**
|
|
1408
|
-
* Defined in:
|
|
1409
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1410
|
-
*/
|
|
1411
|
-
export interface UpdateConfigRequest {
|
|
1412
|
-
swarm: ConnectionState;
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Defined in:
|
|
1416
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1417
|
-
*/
|
|
1418
|
-
export interface SubscribeSwarmStateRequest {
|
|
1419
|
-
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1420
|
-
}
|
|
1421
|
-
/**
|
|
1422
|
-
* Defined in:
|
|
1423
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1424
|
-
*/
|
|
1425
|
-
export interface NetworkService {
|
|
1426
|
-
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1427
|
-
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1428
|
-
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
1429
|
-
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
1442
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1430
1443
|
/**
|
|
1431
|
-
*
|
|
1444
|
+
* Id of a the space to join (only present if kind is SPACE).
|
|
1445
|
+
*
|
|
1446
|
+
* Options:
|
|
1447
|
+
* - proto3_optional = true
|
|
1432
1448
|
*/
|
|
1433
|
-
|
|
1434
|
-
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
1435
|
-
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
1436
|
-
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* Defined in:
|
|
1440
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1441
|
-
*/
|
|
1442
|
-
export interface EdgeAgentService {
|
|
1443
|
-
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
1444
|
-
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1445
|
-
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
1449
|
+
spaceId?: string;
|
|
1446
1450
|
}
|
|
1447
|
-
|
|
1448
|
-
* Defined in:
|
|
1449
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1450
|
-
*/
|
|
1451
|
-
export interface EdgeStatus {
|
|
1452
|
-
state: EdgeStatus.ConnectionState;
|
|
1453
|
-
/**
|
|
1454
|
-
* Latency in ms
|
|
1455
|
-
*/
|
|
1456
|
-
rtt: number;
|
|
1457
|
-
/**
|
|
1458
|
-
* How long the connection has been up
|
|
1459
|
-
*/
|
|
1460
|
-
uptime: number;
|
|
1451
|
+
export declare namespace Invitation {
|
|
1461
1452
|
/**
|
|
1462
|
-
*
|
|
1453
|
+
* Defined in:
|
|
1454
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1463
1455
|
*/
|
|
1464
|
-
|
|
1456
|
+
enum Type {
|
|
1457
|
+
INTERACTIVE = 0,
|
|
1458
|
+
DELEGATED = 1,
|
|
1459
|
+
MULTIUSE = 2
|
|
1460
|
+
}
|
|
1465
1461
|
/**
|
|
1466
|
-
*
|
|
1462
|
+
* Defined in:
|
|
1463
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1467
1464
|
*/
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}
|
|
1472
|
-
export declare namespace EdgeStatus {
|
|
1465
|
+
enum Kind {
|
|
1466
|
+
DEVICE = 0,
|
|
1467
|
+
SPACE = 1
|
|
1468
|
+
}
|
|
1473
1469
|
/**
|
|
1474
1470
|
* Defined in:
|
|
1475
|
-
* {@link file://./../../../dxos/client/
|
|
1471
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1476
1472
|
*/
|
|
1477
|
-
enum
|
|
1478
|
-
|
|
1479
|
-
|
|
1473
|
+
enum AuthMethod {
|
|
1474
|
+
NONE = 0,
|
|
1475
|
+
SHARED_SECRET = 1,
|
|
1476
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1480
1477
|
}
|
|
1481
|
-
}
|
|
1482
|
-
/**
|
|
1483
|
-
* Defined in:
|
|
1484
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1485
|
-
*/
|
|
1486
|
-
export interface QueryEdgeStatusResponse {
|
|
1487
|
-
status: EdgeStatus;
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* Defined in:
|
|
1491
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1492
|
-
*/
|
|
1493
|
-
export interface QueryAgentStatusResponse {
|
|
1494
|
-
status: QueryAgentStatusResponse.AgentStatus;
|
|
1495
|
-
}
|
|
1496
|
-
export declare namespace QueryAgentStatusResponse {
|
|
1497
1478
|
/**
|
|
1498
1479
|
* Defined in:
|
|
1499
|
-
* {@link file://./../../../dxos/client/
|
|
1480
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1500
1481
|
*/
|
|
1501
|
-
enum
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1482
|
+
enum State {
|
|
1483
|
+
INIT = 0,
|
|
1484
|
+
CONNECTING = 1,
|
|
1485
|
+
CONNECTED = 2,
|
|
1486
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1487
|
+
AUTHENTICATING = 4,
|
|
1488
|
+
SUCCESS = 5,
|
|
1489
|
+
CANCELLED = 6,
|
|
1490
|
+
TIMEOUT = 7,
|
|
1491
|
+
ERROR = 8,
|
|
1492
|
+
EXPIRED = 9
|
|
1506
1493
|
}
|
|
1507
1494
|
}
|
|
1508
1495
|
//# sourceMappingURL=services.d.ts.map
|