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