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