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