@dxos/protocols 0.8.4-main.f9ba587 → 0.8.4-main.fbb7a13
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 +82 -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/queue_pb.d.ts +189 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +39 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +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 +40 -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 +13 -3
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +71 -10
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +16 -6
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +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/google_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +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 +2 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +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/tracing_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +120 -0
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
- package/dist/src/edge/EdgeFunctionEnv.js +4 -0
- package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
- package/dist/src/edge/edge.d.ts +346 -0
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +160 -0
- package/dist/src/edge/edge.js.map +1 -0
- package/dist/src/edge/errors.d.ts +29 -0
- package/dist/src/edge/errors.d.ts.map +1 -0
- package/dist/src/edge/errors.js +69 -0
- package/dist/src/edge/errors.js.map +1 -0
- package/dist/src/edge/index.d.ts +4 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +7 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +86 -8
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/base-errors.js +4 -19
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/errors/encoding.d.ts +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 +618 -41
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +49 -103
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +8 -4
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/helpers.js +3 -3
- package/dist/src/errors/helpers.js.map +1 -1
- package/dist/src/feed-replication.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -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/messenger.d.ts +16 -0
- package/dist/src/messenger.d.ts.map +1 -0
- package/dist/src/messenger.js +4 -0
- package/dist/src/messenger.js.map +1 -0
- package/dist/src/proto/gen/dxos/client/services.d.ts +895 -765
- 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 +33 -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/query.d.ts +17 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +43 -8
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts +10 -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 +2 -23
- package/dist/src/queue.d.ts.map +1 -1
- package/dist/src/queue.js +2 -1
- package/dist/src/queue.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -17
- package/src/FunctionProtocol.ts +104 -0
- package/src/automerge.ts +8 -0
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +231 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
- package/src/buf/proto/gen/dxos/config_pb.ts +48 -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 +18 -6
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +87 -18
- 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 +4 -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/EdgeFunctionEnv.ts +193 -0
- package/src/edge/edge.ts +484 -0
- package/src/edge/errors.ts +85 -0
- package/src/edge/index.ts +7 -0
- package/src/errors/base-errors.ts +4 -20
- package/src/errors/encoding.ts +2 -1
- package/src/errors/errors.test.ts +1 -1
- package/src/errors/errors.ts +57 -122
- package/src/errors/helpers.ts +5 -5
- package/src/feed-replication.ts +1 -0
- package/src/index.ts +9 -7
- package/src/indexing.ts +1 -1
- package/src/invitation.ts +1 -1
- package/src/messenger.ts +22 -0
- package/src/proto/dxos/client/queue.proto +67 -0
- package/src/proto/dxos/client/services.proto +20 -3
- package/src/proto/dxos/config.proto +38 -40
- package/src/proto/dxos/echo/query.proto +4 -1
- package/src/proto/dxos/echo/service.proto +38 -6
- package/src/proto/dxos/iframe.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +895 -765
- package/src/proto/gen/dxos/config.ts +33 -2
- package/src/proto/gen/dxos/echo/query.ts +17 -1
- package/src/proto/gen/dxos/echo/service.ts +42 -8
- package/src/proto/gen/index.ts +11 -1
- package/src/proto/index.ts +1 -1
- package/src/queue.ts +10 -29
- package/dist/src/edge-error.d.ts +0 -26
- package/dist/src/edge-error.d.ts.map +0 -1
- package/dist/src/edge-error.js +0 -62
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts +0 -198
- package/dist/src/edge.d.ts.map +0 -1
- package/dist/src/edge.js +0 -43
- package/dist/src/edge.js.map +0 -1
- package/dist/src/query.d.ts +0 -5
- package/dist/src/query.d.ts.map +0 -1
- package/dist/src/query.js +0 -8
- package/dist/src/query.js.map +0 -1
- package/src/edge-error.ts +0 -79
- package/src/edge.ts +0 -222
- package/src/query.ts +0 -8
|
@@ -67,427 +67,900 @@ 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
|
-
|
|
401
|
+
meta?: LogEntry.Meta;
|
|
402
|
+
/**
|
|
403
|
+
* Options:
|
|
404
|
+
* - proto3_optional = true
|
|
405
|
+
*/
|
|
406
|
+
error?: dxos_error.Error;
|
|
407
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
359
408
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
409
|
+
export namespace LogEntry {
|
|
410
|
+
/**
|
|
411
|
+
* Defined in:
|
|
412
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
413
|
+
*/
|
|
414
|
+
export interface Meta {
|
|
415
|
+
file: string;
|
|
416
|
+
line: number;
|
|
417
|
+
/**
|
|
418
|
+
* Options:
|
|
419
|
+
* - proto3_optional = true
|
|
420
|
+
*/
|
|
421
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
422
|
+
/**
|
|
423
|
+
* Options:
|
|
424
|
+
* - proto3_optional = true
|
|
425
|
+
*/
|
|
426
|
+
resourceId?: number;
|
|
427
|
+
}
|
|
373
428
|
}
|
|
374
429
|
/**
|
|
375
430
|
* Defined in:
|
|
376
|
-
* {@link file://./../../../dxos/client/
|
|
431
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
377
432
|
*/
|
|
378
|
-
export
|
|
379
|
-
|
|
380
|
-
|
|
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>;
|
|
381
437
|
}
|
|
382
438
|
/**
|
|
383
439
|
* Defined in:
|
|
384
|
-
* {@link file://./../../../dxos/client/
|
|
440
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
385
441
|
*/
|
|
386
|
-
export interface
|
|
387
|
-
|
|
388
|
-
kind: DeviceKind;
|
|
442
|
+
export interface QueueQuery {
|
|
443
|
+
spaceId: string;
|
|
389
444
|
/**
|
|
390
445
|
* Options:
|
|
391
446
|
* - proto3_optional = true
|
|
392
447
|
*/
|
|
393
|
-
|
|
394
|
-
|
|
448
|
+
queuesNamespace?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Queries the whole space if missing.
|
|
451
|
+
*/
|
|
452
|
+
queueIds?: string[];
|
|
453
|
+
/**
|
|
454
|
+
* Filter items after this cursor. Exclusive.
|
|
455
|
+
*
|
|
456
|
+
* Options:
|
|
457
|
+
* - proto3_optional = true
|
|
458
|
+
*/
|
|
459
|
+
after?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Filter items before this cursor. Exclusive.
|
|
462
|
+
*
|
|
463
|
+
* Options:
|
|
464
|
+
* - proto3_optional = true
|
|
465
|
+
*/
|
|
466
|
+
before?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Filter items after this position. Inclusive.
|
|
469
|
+
*
|
|
470
|
+
* Options:
|
|
471
|
+
* - proto3_optional = true
|
|
472
|
+
*/
|
|
473
|
+
beginPosition?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Filter items before this position. Exclusive.
|
|
476
|
+
*
|
|
477
|
+
* Options:
|
|
478
|
+
* - proto3_optional = true
|
|
479
|
+
*/
|
|
480
|
+
endPosition?: string;
|
|
481
|
+
/**
|
|
482
|
+
* Options:
|
|
483
|
+
* - proto3_optional = true
|
|
484
|
+
*/
|
|
485
|
+
limit?: number;
|
|
486
|
+
/**
|
|
487
|
+
* Options:
|
|
488
|
+
* - proto3_optional = true
|
|
489
|
+
*/
|
|
490
|
+
reverse?: boolean;
|
|
491
|
+
objectIds?: string[];
|
|
395
492
|
}
|
|
396
|
-
|
|
493
|
+
/**
|
|
494
|
+
* Defined in:
|
|
495
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
496
|
+
*/
|
|
497
|
+
export interface QueueQueryResult {
|
|
498
|
+
objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
|
|
397
499
|
/**
|
|
398
|
-
*
|
|
399
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
500
|
+
* Cursor to query the next items. Can be passed to `after` in query to keep querying.
|
|
400
501
|
*/
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
ONLINE = 1,
|
|
404
|
-
REMOVED = 2
|
|
405
|
-
}
|
|
502
|
+
nextCursor: string;
|
|
503
|
+
prevCursor: string;
|
|
406
504
|
}
|
|
407
505
|
/**
|
|
408
506
|
* Defined in:
|
|
409
|
-
* {@link file://./../../../dxos/client/
|
|
507
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
410
508
|
*/
|
|
411
|
-
export interface
|
|
412
|
-
|
|
509
|
+
export interface QueryQueueRequest {
|
|
510
|
+
query: QueueQuery;
|
|
413
511
|
}
|
|
414
512
|
/**
|
|
415
513
|
* Defined in:
|
|
416
|
-
* {@link file://./../../../dxos/client/
|
|
514
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
417
515
|
*/
|
|
418
|
-
export interface
|
|
419
|
-
|
|
420
|
-
|
|
516
|
+
export interface InsertIntoQueueRequest {
|
|
517
|
+
subspaceTag: string;
|
|
518
|
+
spaceId: string;
|
|
519
|
+
queueId: string;
|
|
520
|
+
objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
|
|
421
521
|
}
|
|
422
522
|
/**
|
|
423
523
|
* Defined in:
|
|
424
|
-
* {@link file://./../../../dxos/client/
|
|
524
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
425
525
|
*/
|
|
426
|
-
export interface
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
*/
|
|
432
|
-
profile?: dxos_halo_credentials.ProfileDocument;
|
|
433
|
-
commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
526
|
+
export interface DeleteFromQueueRequest {
|
|
527
|
+
subspaceTag: string;
|
|
528
|
+
spaceId: string;
|
|
529
|
+
queueId: string;
|
|
530
|
+
objectIds?: string[];
|
|
434
531
|
}
|
|
435
532
|
/**
|
|
436
533
|
* Defined in:
|
|
437
|
-
* {@link file://./../../../dxos/client/
|
|
534
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
438
535
|
*/
|
|
439
|
-
export interface
|
|
440
|
-
|
|
536
|
+
export interface QueueService {
|
|
537
|
+
queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
|
|
538
|
+
insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
539
|
+
deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
441
540
|
}
|
|
442
541
|
/**
|
|
443
542
|
* Defined in:
|
|
444
543
|
* {@link file://./../../../dxos/client/services.proto}
|
|
445
544
|
*/
|
|
446
|
-
export
|
|
447
|
-
|
|
448
|
-
|
|
545
|
+
export enum SystemStatus {
|
|
546
|
+
INACTIVE = 0,
|
|
547
|
+
ACTIVE = 1
|
|
449
548
|
}
|
|
450
549
|
/**
|
|
451
550
|
* Defined in:
|
|
452
551
|
* {@link file://./../../../dxos/client/services.proto}
|
|
453
552
|
*/
|
|
454
|
-
export interface
|
|
455
|
-
|
|
456
|
-
presence: SpaceMember.PresenceState;
|
|
457
|
-
peerStates?: dxos_mesh_presence.PeerState[];
|
|
458
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
459
|
-
}
|
|
460
|
-
export namespace SpaceMember {
|
|
461
|
-
/**
|
|
462
|
-
* Defined in:
|
|
463
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
464
|
-
*/
|
|
465
|
-
export enum PresenceState {
|
|
466
|
-
OFFLINE = 0,
|
|
467
|
-
ONLINE = 1
|
|
468
|
-
}
|
|
553
|
+
export interface UpdateStatusRequest {
|
|
554
|
+
status: SystemStatus;
|
|
469
555
|
}
|
|
470
556
|
/**
|
|
471
557
|
* Defined in:
|
|
472
558
|
* {@link file://./../../../dxos/client/services.proto}
|
|
473
559
|
*/
|
|
474
|
-
export interface
|
|
475
|
-
id: string;
|
|
476
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
477
|
-
state: SpaceState;
|
|
478
|
-
/**
|
|
479
|
-
* Options:
|
|
480
|
-
* - proto3_optional = true
|
|
481
|
-
*/
|
|
482
|
-
pipeline?: Space.PipelineState;
|
|
560
|
+
export interface QueryStatusRequest {
|
|
483
561
|
/**
|
|
484
562
|
* Options:
|
|
485
563
|
* - proto3_optional = true
|
|
486
564
|
*/
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
565
|
+
interval?: number;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Defined in:
|
|
569
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
570
|
+
*/
|
|
571
|
+
export interface QueryStatusResponse {
|
|
572
|
+
status: SystemStatus;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Defined in:
|
|
576
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
577
|
+
*/
|
|
578
|
+
export interface GetDiagnosticsRequest {
|
|
579
|
+
/**
|
|
580
|
+
* Options:
|
|
581
|
+
* - proto3_optional = true
|
|
582
|
+
*/
|
|
583
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
584
|
+
}
|
|
585
|
+
export namespace GetDiagnosticsRequest {
|
|
586
|
+
/**
|
|
587
|
+
* Defined in:
|
|
588
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
589
|
+
*/
|
|
590
|
+
export enum KEY_OPTION {
|
|
591
|
+
NONE = 0,
|
|
592
|
+
TRUNCATE = 1,
|
|
593
|
+
HUMANIZE = 2
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Defined in:
|
|
598
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
599
|
+
*/
|
|
600
|
+
export interface GetDiagnosticsResponse {
|
|
601
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
602
|
+
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Defined in:
|
|
606
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
607
|
+
*/
|
|
608
|
+
export interface Platform {
|
|
609
|
+
type: Platform.PLATFORM_TYPE;
|
|
610
|
+
/**
|
|
611
|
+
* The User-Agent string from a browser
|
|
612
|
+
*
|
|
613
|
+
* Options:
|
|
614
|
+
* - proto3_optional = true
|
|
615
|
+
*/
|
|
616
|
+
userAgent?: string;
|
|
617
|
+
/**
|
|
618
|
+
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
619
|
+
*
|
|
620
|
+
* Options:
|
|
621
|
+
* - proto3_optional = true
|
|
622
|
+
*/
|
|
623
|
+
platform?: string;
|
|
624
|
+
/**
|
|
625
|
+
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
626
|
+
*
|
|
627
|
+
* Options:
|
|
628
|
+
* - proto3_optional = true
|
|
629
|
+
*/
|
|
630
|
+
arch?: string;
|
|
631
|
+
/**
|
|
632
|
+
* the node.js version string
|
|
633
|
+
*
|
|
634
|
+
* Options:
|
|
635
|
+
* - proto3_optional = true
|
|
636
|
+
*/
|
|
637
|
+
runtime?: string;
|
|
638
|
+
/**
|
|
639
|
+
* the number of seconds the client has been up
|
|
640
|
+
*
|
|
641
|
+
* Options:
|
|
642
|
+
* - proto3_optional = true
|
|
643
|
+
*/
|
|
644
|
+
uptime?: number;
|
|
645
|
+
/**
|
|
646
|
+
* e.g. NodeJS.MemoryUsage, subject to change
|
|
647
|
+
*
|
|
648
|
+
* Options:
|
|
649
|
+
* - proto3_optional = true
|
|
650
|
+
*/
|
|
651
|
+
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
652
|
+
}
|
|
653
|
+
export namespace Platform {
|
|
654
|
+
/**
|
|
655
|
+
* Defined in:
|
|
656
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
657
|
+
*/
|
|
658
|
+
export enum PLATFORM_TYPE {
|
|
659
|
+
BROWSER = 0,
|
|
660
|
+
SHARED_WORKER = 1,
|
|
661
|
+
NODE = 2
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Defined in:
|
|
666
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
667
|
+
*/
|
|
668
|
+
export interface SystemService {
|
|
669
|
+
/**
|
|
670
|
+
* Get the static config of the client.
|
|
671
|
+
*/
|
|
672
|
+
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
673
|
+
/**
|
|
674
|
+
* Get the diagnostics snapshot.
|
|
675
|
+
*/
|
|
676
|
+
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
677
|
+
/**
|
|
678
|
+
* Update the status of the client. Used to re-activate an inactive client.
|
|
679
|
+
*/
|
|
680
|
+
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
681
|
+
/**
|
|
682
|
+
* Stream the status of the client.
|
|
683
|
+
*/
|
|
684
|
+
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
685
|
+
/**
|
|
686
|
+
* Reset the client.
|
|
687
|
+
*/
|
|
688
|
+
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
689
|
+
/**
|
|
690
|
+
* Get platform Information
|
|
691
|
+
*/
|
|
692
|
+
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Defined in:
|
|
696
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
697
|
+
*/
|
|
698
|
+
export interface Identity {
|
|
699
|
+
did: string;
|
|
700
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
701
|
+
/**
|
|
702
|
+
* Options:
|
|
703
|
+
* - proto3_optional = true
|
|
704
|
+
*/
|
|
705
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
706
|
+
/**
|
|
707
|
+
* Options:
|
|
708
|
+
* - proto3_optional = true
|
|
709
|
+
*/
|
|
710
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Defined in:
|
|
714
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
715
|
+
*/
|
|
716
|
+
export interface RequestRecoveryChallengeResponse {
|
|
717
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
718
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
719
|
+
challenge: string;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Defined in:
|
|
723
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
724
|
+
*/
|
|
725
|
+
export interface RecoverIdentityRequest {
|
|
726
|
+
recoveryCode?: string;
|
|
727
|
+
external?: RecoverIdentityRequest.ExternalSignature;
|
|
728
|
+
token?: string;
|
|
729
|
+
}
|
|
730
|
+
export namespace RecoverIdentityRequest {
|
|
731
|
+
/**
|
|
732
|
+
* Defined in:
|
|
733
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
734
|
+
*/
|
|
735
|
+
export interface ExternalSignature {
|
|
736
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
737
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
738
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
739
|
+
signature: Uint8Array;
|
|
740
|
+
/**
|
|
741
|
+
* Options:
|
|
742
|
+
* - proto3_optional = true
|
|
743
|
+
*/
|
|
744
|
+
clientDataJson?: Uint8Array;
|
|
745
|
+
/**
|
|
746
|
+
* Options:
|
|
747
|
+
* - proto3_optional = true
|
|
748
|
+
*/
|
|
749
|
+
authenticatorData?: Uint8Array;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Defined in:
|
|
754
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
755
|
+
*/
|
|
756
|
+
export interface RecoveryCredentialData {
|
|
757
|
+
/**
|
|
758
|
+
* Recovery key used to validate recovery challenge signature.
|
|
759
|
+
*/
|
|
760
|
+
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
761
|
+
/**
|
|
762
|
+
* Public key used to identify the recovery key.
|
|
763
|
+
*/
|
|
764
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
765
|
+
/**
|
|
766
|
+
* Algorithm used to generate the recovery key.
|
|
767
|
+
*/
|
|
768
|
+
algorithm: string;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Defined in:
|
|
772
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
773
|
+
*/
|
|
774
|
+
export interface CreateRecoveryCredentialRequest {
|
|
775
|
+
/**
|
|
776
|
+
* If not provided, a new key will be generated.
|
|
777
|
+
*
|
|
778
|
+
* Options:
|
|
779
|
+
* - proto3_optional = true
|
|
780
|
+
*/
|
|
781
|
+
data?: RecoveryCredentialData;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Defined in:
|
|
785
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
786
|
+
*/
|
|
787
|
+
export interface CreateRecoveryCredentialResponse {
|
|
788
|
+
/**
|
|
789
|
+
* Options:
|
|
790
|
+
* - proto3_optional = true
|
|
791
|
+
*/
|
|
792
|
+
recoveryCode?: string;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Defined in:
|
|
796
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
797
|
+
*/
|
|
798
|
+
export interface QueryIdentityResponse {
|
|
799
|
+
/**
|
|
800
|
+
* Options:
|
|
801
|
+
* - proto3_optional = true
|
|
802
|
+
*/
|
|
803
|
+
identity?: Identity;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Defined in:
|
|
807
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
808
|
+
*/
|
|
809
|
+
export interface SignPresentationRequest {
|
|
810
|
+
presentation: dxos_halo_credentials.Presentation;
|
|
811
|
+
/**
|
|
812
|
+
* Options:
|
|
813
|
+
* - proto3_optional = true
|
|
814
|
+
*/
|
|
815
|
+
nonce?: Uint8Array;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Defined in:
|
|
819
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
820
|
+
*/
|
|
821
|
+
export interface CreateIdentityRequest {
|
|
822
|
+
/**
|
|
823
|
+
* Options:
|
|
824
|
+
* - proto3_optional = true
|
|
825
|
+
*/
|
|
826
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
827
|
+
/**
|
|
828
|
+
* Options:
|
|
829
|
+
* - proto3_optional = true
|
|
830
|
+
*/
|
|
831
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Defined in:
|
|
835
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
836
|
+
*/
|
|
837
|
+
export interface IdentityService {
|
|
838
|
+
createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
839
|
+
requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
|
|
840
|
+
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
841
|
+
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
842
|
+
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
843
|
+
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
844
|
+
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
845
|
+
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Defined in:
|
|
849
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
850
|
+
*/
|
|
851
|
+
export enum DeviceKind {
|
|
852
|
+
CURRENT = 0,
|
|
853
|
+
TRUSTED = 1
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Defined in:
|
|
857
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
858
|
+
*/
|
|
859
|
+
export interface Device {
|
|
860
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
861
|
+
kind: DeviceKind;
|
|
862
|
+
/**
|
|
863
|
+
* Options:
|
|
864
|
+
* - proto3_optional = true
|
|
865
|
+
*/
|
|
866
|
+
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
867
|
+
presence: Device.PresenceState;
|
|
868
|
+
}
|
|
869
|
+
export namespace Device {
|
|
870
|
+
/**
|
|
871
|
+
* Defined in:
|
|
872
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
873
|
+
*/
|
|
874
|
+
export enum PresenceState {
|
|
875
|
+
OFFLINE = 0,
|
|
876
|
+
ONLINE = 1,
|
|
877
|
+
REMOVED = 2
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Defined in:
|
|
882
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
883
|
+
*/
|
|
884
|
+
export interface QueryDevicesResponse {
|
|
885
|
+
devices?: Device[];
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Defined in:
|
|
889
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
890
|
+
*/
|
|
891
|
+
export interface DevicesService {
|
|
892
|
+
updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
|
|
893
|
+
queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Defined in:
|
|
897
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
898
|
+
*/
|
|
899
|
+
export interface Contact {
|
|
900
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
901
|
+
/**
|
|
902
|
+
* Options:
|
|
903
|
+
* - proto3_optional = true
|
|
904
|
+
*/
|
|
905
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
906
|
+
commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Defined in:
|
|
910
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
911
|
+
*/
|
|
912
|
+
export interface ContactBook {
|
|
913
|
+
contacts?: Contact[];
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Defined in:
|
|
917
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
918
|
+
*/
|
|
919
|
+
export interface ContactsService {
|
|
920
|
+
getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
|
|
921
|
+
queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Defined in:
|
|
925
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
926
|
+
*/
|
|
927
|
+
export interface SpaceMember {
|
|
928
|
+
identity: Identity;
|
|
929
|
+
presence: SpaceMember.PresenceState;
|
|
930
|
+
peerStates?: dxos_mesh_presence.PeerState[];
|
|
931
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
932
|
+
}
|
|
933
|
+
export namespace SpaceMember {
|
|
934
|
+
/**
|
|
935
|
+
* Defined in:
|
|
936
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
937
|
+
*/
|
|
938
|
+
export enum PresenceState {
|
|
939
|
+
OFFLINE = 0,
|
|
940
|
+
ONLINE = 1
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Defined in:
|
|
945
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
946
|
+
*/
|
|
947
|
+
export interface Space {
|
|
948
|
+
id: string;
|
|
949
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
950
|
+
state: SpaceState;
|
|
951
|
+
/**
|
|
952
|
+
* Options:
|
|
953
|
+
* - proto3_optional = true
|
|
954
|
+
*/
|
|
955
|
+
pipeline?: Space.PipelineState;
|
|
956
|
+
/**
|
|
957
|
+
* Options:
|
|
958
|
+
* - proto3_optional = true
|
|
959
|
+
*/
|
|
960
|
+
error?: dxos_error.Error;
|
|
961
|
+
/**
|
|
962
|
+
* Options:
|
|
963
|
+
* - proto3_optional = true
|
|
491
964
|
*/
|
|
492
965
|
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
493
966
|
members?: SpaceMember[];
|
|
@@ -768,664 +1241,321 @@ export interface CreateEpochResponse {
|
|
|
768
1241
|
*/
|
|
769
1242
|
export interface UpdateMemberRoleRequest {
|
|
770
1243
|
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[];
|
|
1244
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1245
|
+
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
949
1246
|
}
|
|
950
1247
|
/**
|
|
951
1248
|
* Defined in:
|
|
952
1249
|
* {@link file://./../../../dxos/client/services.proto}
|
|
953
1250
|
*/
|
|
954
|
-
export interface
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
959
|
-
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1251
|
+
export interface AdmitContactRequest {
|
|
1252
|
+
contact: Contact;
|
|
1253
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
1254
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
960
1255
|
}
|
|
961
1256
|
/**
|
|
962
1257
|
* Defined in:
|
|
963
1258
|
* {@link file://./../../../dxos/client/services.proto}
|
|
964
1259
|
*/
|
|
965
|
-
export
|
|
966
|
-
|
|
967
|
-
ONLINE = 1
|
|
1260
|
+
export interface ContactAdmission {
|
|
1261
|
+
credential: dxos_halo_credentials.Credential;
|
|
968
1262
|
}
|
|
969
1263
|
/**
|
|
970
1264
|
* Defined in:
|
|
971
1265
|
* {@link file://./../../../dxos/client/services.proto}
|
|
972
1266
|
*/
|
|
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
|
-
}
|
|
1267
|
+
export interface JoinSpaceResponse {
|
|
1268
|
+
space: Space;
|
|
987
1269
|
}
|
|
988
1270
|
/**
|
|
989
1271
|
* Defined in:
|
|
990
1272
|
* {@link file://./../../../dxos/client/services.proto}
|
|
991
1273
|
*/
|
|
992
|
-
export interface
|
|
993
|
-
|
|
1274
|
+
export interface JoinBySpaceKeyRequest {
|
|
1275
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
994
1276
|
}
|
|
995
1277
|
/**
|
|
996
1278
|
* Defined in:
|
|
997
1279
|
* {@link file://./../../../dxos/client/services.proto}
|
|
998
1280
|
*/
|
|
999
|
-
export interface
|
|
1000
|
-
|
|
1281
|
+
export interface SpaceArchive {
|
|
1282
|
+
filename: string;
|
|
1283
|
+
contents: Uint8Array;
|
|
1001
1284
|
}
|
|
1002
1285
|
/**
|
|
1003
1286
|
* Defined in:
|
|
1004
1287
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1005
1288
|
*/
|
|
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>;
|
|
1289
|
+
export interface ExportSpaceRequest {
|
|
1290
|
+
spaceId: string;
|
|
1018
1291
|
}
|
|
1019
1292
|
/**
|
|
1020
1293
|
* Defined in:
|
|
1021
1294
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1022
1295
|
*/
|
|
1023
|
-
export interface
|
|
1024
|
-
|
|
1025
|
-
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1026
|
-
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
1296
|
+
export interface ExportSpaceResponse {
|
|
1297
|
+
archive: SpaceArchive;
|
|
1027
1298
|
}
|
|
1028
1299
|
/**
|
|
1029
1300
|
* Defined in:
|
|
1030
1301
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1031
1302
|
*/
|
|
1032
|
-
export
|
|
1033
|
-
|
|
1034
|
-
CONNECTED = 1
|
|
1303
|
+
export interface ImportSpaceRequest {
|
|
1304
|
+
archive: SpaceArchive;
|
|
1035
1305
|
}
|
|
1036
1306
|
/**
|
|
1037
1307
|
* Defined in:
|
|
1038
1308
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1039
1309
|
*/
|
|
1040
|
-
export interface
|
|
1041
|
-
|
|
1310
|
+
export interface ImportSpaceResponse {
|
|
1311
|
+
/**
|
|
1312
|
+
* the ID of the new space.
|
|
1313
|
+
*/
|
|
1314
|
+
newSpaceId: string;
|
|
1042
1315
|
}
|
|
1043
1316
|
/**
|
|
1044
1317
|
* Defined in:
|
|
1045
1318
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1046
1319
|
*/
|
|
1047
|
-
export interface
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1320
|
+
export interface SpacesService {
|
|
1321
|
+
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
1322
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
1323
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1324
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1325
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1326
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
1051
1327
|
/**
|
|
1052
|
-
*
|
|
1053
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1328
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
1054
1329
|
*/
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1330
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Subscribe to messages from the space swarm.
|
|
1333
|
+
*/
|
|
1334
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Write credentials to the space control feed.
|
|
1337
|
+
*/
|
|
1338
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Query credentials from the space control feed.
|
|
1341
|
+
*/
|
|
1342
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
1343
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
1344
|
+
exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
|
|
1345
|
+
importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
|
|
1061
1346
|
}
|
|
1062
1347
|
/**
|
|
1063
1348
|
* Defined in:
|
|
1064
|
-
* {@link file://./../../../dxos/client/
|
|
1349
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1065
1350
|
*/
|
|
1066
|
-
export interface
|
|
1067
|
-
|
|
1351
|
+
export interface AcceptInvitationRequest {
|
|
1352
|
+
invitation: Invitation;
|
|
1068
1353
|
/**
|
|
1069
1354
|
* Options:
|
|
1070
1355
|
* - proto3_optional = true
|
|
1071
1356
|
*/
|
|
1072
|
-
|
|
1357
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
1073
1358
|
}
|
|
1074
1359
|
/**
|
|
1075
|
-
* Runtime state of the space object.
|
|
1076
|
-
*
|
|
1077
1360
|
* Defined in:
|
|
1078
|
-
* {@link file://./../../../dxos/client/
|
|
1361
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1079
1362
|
*/
|
|
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
|
|
1363
|
+
export interface AuthenticationRequest {
|
|
1364
|
+
invitationId: string;
|
|
1365
|
+
authCode: string;
|
|
1090
1366
|
}
|
|
1091
1367
|
/**
|
|
1092
|
-
* Represents the invitation state passed between client and service.
|
|
1093
|
-
*
|
|
1094
1368
|
* Defined in:
|
|
1095
|
-
* {@link file://./../../../dxos/client/
|
|
1369
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1096
1370
|
*/
|
|
1097
|
-
export interface
|
|
1098
|
-
/**
|
|
1099
|
-
* Local identifier (random).
|
|
1100
|
-
*/
|
|
1371
|
+
export interface CancelInvitationRequest {
|
|
1101
1372
|
invitationId: string;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Defined in:
|
|
1376
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1377
|
+
*/
|
|
1378
|
+
export interface InvitationMethod {
|
|
1379
|
+
created?: Invitation;
|
|
1380
|
+
accepted?: Invitation;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Defined in:
|
|
1384
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1385
|
+
*/
|
|
1386
|
+
export interface QueryInvitationsResponse {
|
|
1387
|
+
action: QueryInvitationsResponse.Action;
|
|
1388
|
+
type: QueryInvitationsResponse.Type;
|
|
1389
|
+
invitations?: Invitation[];
|
|
1102
1390
|
/**
|
|
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
1391
|
* Options:
|
|
1206
1392
|
* - proto3_optional = true
|
|
1207
1393
|
*/
|
|
1208
|
-
|
|
1394
|
+
existing?: boolean;
|
|
1209
1395
|
}
|
|
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
|
-
}
|
|
1396
|
+
export namespace QueryInvitationsResponse {
|
|
1228
1397
|
/**
|
|
1229
1398
|
* Defined in:
|
|
1230
|
-
* {@link file://./../../../dxos/client/
|
|
1399
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1231
1400
|
*/
|
|
1232
|
-
export enum
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1401
|
+
export enum Action {
|
|
1402
|
+
ADDED = 0,
|
|
1403
|
+
REMOVED = 1,
|
|
1404
|
+
SAVED = 2,
|
|
1405
|
+
LOAD_COMPLETE = 3
|
|
1236
1406
|
}
|
|
1237
1407
|
/**
|
|
1238
1408
|
* Defined in:
|
|
1239
|
-
* {@link file://./../../../dxos/client/
|
|
1409
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1240
1410
|
*/
|
|
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
|
|
1411
|
+
export enum Type {
|
|
1412
|
+
CREATED = 0,
|
|
1413
|
+
ACCEPTED = 1
|
|
1252
1414
|
}
|
|
1253
1415
|
}
|
|
1254
1416
|
/**
|
|
1255
1417
|
* Defined in:
|
|
1256
|
-
* {@link file://./../../../dxos/client/
|
|
1418
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1257
1419
|
*/
|
|
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
|
-
}
|
|
1420
|
+
export interface LoadPersistentInvitationsResponse {
|
|
1421
|
+
invitations?: Invitation[];
|
|
1284
1422
|
}
|
|
1285
1423
|
/**
|
|
1286
1424
|
* Defined in:
|
|
1287
|
-
* {@link file://./../../../dxos/client/
|
|
1425
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1288
1426
|
*/
|
|
1289
|
-
export interface
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* Options:
|
|
1297
|
-
* - proto3_optional = true
|
|
1298
|
-
*/
|
|
1299
|
-
record?: boolean;
|
|
1427
|
+
export interface InvitationsService {
|
|
1428
|
+
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
1429
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
1430
|
+
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
1431
|
+
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
1432
|
+
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1300
1433
|
}
|
|
1301
1434
|
/**
|
|
1302
1435
|
* Defined in:
|
|
1303
|
-
* {@link file://./../../../dxos/client/
|
|
1436
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1304
1437
|
*/
|
|
1305
|
-
export
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
* - proto3_optional = true
|
|
1309
|
-
*/
|
|
1310
|
-
recording?: boolean;
|
|
1438
|
+
export enum ConnectionState {
|
|
1439
|
+
OFFLINE = 0,
|
|
1440
|
+
ONLINE = 1
|
|
1311
1441
|
}
|
|
1312
1442
|
/**
|
|
1313
1443
|
* Defined in:
|
|
1314
|
-
* {@link file://./../../../dxos/client/
|
|
1444
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1315
1445
|
*/
|
|
1316
|
-
export interface
|
|
1446
|
+
export interface NetworkStatus {
|
|
1447
|
+
swarm: ConnectionState;
|
|
1448
|
+
signaling?: NetworkStatus.Signal[];
|
|
1449
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1450
|
+
}
|
|
1451
|
+
export namespace NetworkStatus {
|
|
1317
1452
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1453
|
+
* Defined in:
|
|
1454
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1320
1455
|
*/
|
|
1321
|
-
|
|
1456
|
+
export interface Signal {
|
|
1457
|
+
server: string;
|
|
1458
|
+
state: dxos_mesh_signal.SignalState;
|
|
1459
|
+
}
|
|
1322
1460
|
}
|
|
1323
1461
|
/**
|
|
1324
1462
|
* Defined in:
|
|
1325
|
-
* {@link file://./../../../dxos/client/
|
|
1463
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1326
1464
|
*/
|
|
1327
|
-
export interface
|
|
1328
|
-
|
|
1329
|
-
metrics: Metrics;
|
|
1465
|
+
export interface UpdateConfigRequest {
|
|
1466
|
+
swarm: ConnectionState;
|
|
1330
1467
|
}
|
|
1331
1468
|
/**
|
|
1332
1469
|
* Defined in:
|
|
1333
|
-
* {@link file://./../../../dxos/client/
|
|
1470
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1334
1471
|
*/
|
|
1335
|
-
export
|
|
1336
|
-
|
|
1337
|
-
TRACE = 5,
|
|
1338
|
-
DEBUG = 10,
|
|
1339
|
-
VERBOSE = 11,
|
|
1340
|
-
INFO = 12,
|
|
1341
|
-
WARN = 13,
|
|
1342
|
-
ERROR = 14
|
|
1472
|
+
export interface SubscribeSwarmStateRequest {
|
|
1473
|
+
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1343
1474
|
}
|
|
1344
1475
|
/**
|
|
1345
1476
|
* Defined in:
|
|
1346
|
-
* {@link file://./../../../dxos/client/
|
|
1477
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1347
1478
|
*/
|
|
1348
|
-
export interface
|
|
1349
|
-
|
|
1479
|
+
export interface NetworkService {
|
|
1480
|
+
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1481
|
+
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1482
|
+
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
1483
|
+
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
1350
1484
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* - proto3_optional = true
|
|
1485
|
+
* Query the swarm state without joining it.
|
|
1353
1486
|
*/
|
|
1354
|
-
options?:
|
|
1487
|
+
querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
|
|
1488
|
+
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
1489
|
+
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
1490
|
+
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
1355
1491
|
}
|
|
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
|
-
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Defined in:
|
|
1494
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1495
|
+
*/
|
|
1496
|
+
export interface EdgeAgentService {
|
|
1497
|
+
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
1498
|
+
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1499
|
+
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
1378
1500
|
}
|
|
1379
1501
|
/**
|
|
1380
1502
|
* Defined in:
|
|
1381
|
-
* {@link file://./../../../dxos/client/
|
|
1503
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1382
1504
|
*/
|
|
1383
|
-
export interface
|
|
1384
|
-
|
|
1385
|
-
message: string;
|
|
1505
|
+
export interface EdgeStatus {
|
|
1506
|
+
state: EdgeStatus.ConnectionState;
|
|
1386
1507
|
/**
|
|
1387
|
-
*
|
|
1388
|
-
* - proto3_optional = true
|
|
1508
|
+
* Latency in ms
|
|
1389
1509
|
*/
|
|
1390
|
-
|
|
1510
|
+
rtt: number;
|
|
1391
1511
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* - proto3_optional = true
|
|
1512
|
+
* How long the connection has been up
|
|
1394
1513
|
*/
|
|
1395
|
-
|
|
1514
|
+
uptime: number;
|
|
1396
1515
|
/**
|
|
1397
|
-
*
|
|
1398
|
-
* - proto3_optional = true
|
|
1516
|
+
* Upload rate in bytes per second
|
|
1399
1517
|
*/
|
|
1400
|
-
|
|
1401
|
-
|
|
1518
|
+
rateBytesUp: number;
|
|
1519
|
+
/**
|
|
1520
|
+
* Download rate in bytes per second
|
|
1521
|
+
*/
|
|
1522
|
+
rateBytesDown: number;
|
|
1523
|
+
messagesSent: number;
|
|
1524
|
+
messagesReceived: number;
|
|
1402
1525
|
}
|
|
1403
|
-
export namespace
|
|
1526
|
+
export namespace EdgeStatus {
|
|
1404
1527
|
/**
|
|
1405
1528
|
* Defined in:
|
|
1406
|
-
* {@link file://./../../../dxos/client/
|
|
1529
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1407
1530
|
*/
|
|
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;
|
|
1531
|
+
export enum ConnectionState {
|
|
1532
|
+
NOT_CONNECTED = 0,
|
|
1533
|
+
CONNECTED = 1
|
|
1421
1534
|
}
|
|
1422
1535
|
}
|
|
1423
1536
|
/**
|
|
1424
1537
|
* Defined in:
|
|
1425
|
-
* {@link file://./../../../dxos/client/
|
|
1538
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1426
1539
|
*/
|
|
1427
|
-
export interface
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1540
|
+
export interface QueryEdgeStatusResponse {
|
|
1541
|
+
status: EdgeStatus;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Defined in:
|
|
1545
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1546
|
+
*/
|
|
1547
|
+
export interface QueryAgentStatusResponse {
|
|
1548
|
+
status: QueryAgentStatusResponse.AgentStatus;
|
|
1549
|
+
}
|
|
1550
|
+
export namespace QueryAgentStatusResponse {
|
|
1551
|
+
/**
|
|
1552
|
+
* Defined in:
|
|
1553
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1554
|
+
*/
|
|
1555
|
+
export enum AgentStatus {
|
|
1556
|
+
UNKNOWN = 0,
|
|
1557
|
+
ACTIVE = 1,
|
|
1558
|
+
INACTIVE = 2,
|
|
1559
|
+
NOT_FOUND = 3
|
|
1560
|
+
}
|
|
1431
1561
|
}
|