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