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