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