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