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