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