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