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