@dxos/protocols 0.8.4-main.dedc0f3 → 0.8.4-main.dfabb4ec29
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 +89 -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/TraceProtocol.d.ts +15 -0
- package/dist/src/TraceProtocol.d.ts.map +1 -0
- package/dist/src/TraceProtocol.js +4 -0
- package/dist/src/TraceProtocol.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 +237 -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 +129 -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 +90 -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 +113 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +73 -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 +56 -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 -11
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +2 -2
- 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 +25 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +13 -8
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +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 -139
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +11 -45
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +128 -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 +518 -0
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +180 -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 +5 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +8 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/edge/registry.d.ts +212 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +139 -0
- package/dist/src/edge/registry.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 -20
- 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.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 +49 -103
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +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/parameter.d.ts.map +1 -1
- 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 +7 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/indexing.js +1 -1
- package/dist/src/indexing.js.map +1 -1
- package/dist/src/invitation.d.ts +1 -1
- package/dist/src/invitation.d.ts.map +1 -1
- package/dist/src/invitation.js +1 -1
- package/dist/src/invitation.js.map +1 -1
- package/dist/src/messenger.d.ts +16 -0
- package/dist/src/messenger.d.ts.map +1 -0
- package/dist/src/messenger.js +4 -0
- package/dist/src/messenger.js.map +1 -0
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts +3 -6
- package/dist/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts +1 -2
- package/dist/src/proto/gen/dxos/agent/epoch.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/agent/functions.d.ts +6 -12
- package/dist/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts +12 -24
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +1022 -905
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +116 -100
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +115 -100
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +26 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +71 -119
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts +4 -8
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/blob.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/blob.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/filter.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/indexing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/indexing.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +12 -16
- 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/model/document.d.ts +11 -22
- package/dist/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +1 -2
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.d.ts +6 -12
- package/dist/src/proto/gen/dxos/echo/object.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/object.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts +21 -9
- 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 +47 -38
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -4
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/calls.d.ts +5 -10
- package/dist/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts +28 -10
- 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/edge/signal.d.ts +7 -14
- package/dist/src/proto/gen/dxos/edge/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/error.d.ts +1 -2
- package/dist/src/proto/gen/dxos/error.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/gravity.d.ts +10 -20
- package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +6 -12
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +35 -43
- 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/dxos/halo/invitations.d.ts +13 -26
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts +1 -2
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts +4 -8
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts +4 -18
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/src/proto/gen/dxos/keys.d.ts +2 -4
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +12 -24
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts +9 -18
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +6 -12
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts +3 -6
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts +1 -2
- package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts +5 -10
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts +2 -4
- package/dist/src/proto/gen/dxos/mesh/teleport.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/registry.d.ts +3 -6
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +24 -12
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts +4 -8
- package/dist/src/proto/gen/dxos/service/agentmanager.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/agentmanager.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -10
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts +12 -24
- package/dist/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/supervisor.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts +3 -6
- package/dist/src/proto/gen/dxos/service/tunnel.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/tracing.d.ts +10 -99
- package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/type.d.ts +12 -24
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/value.d.ts +2 -4
- package/dist/src/proto/gen/dxos/value.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/data.d.ts +4 -8
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/rpc.d.ts +7 -14
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +308 -22
- 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 +41 -7
- 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/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/proto/types.d.ts +1 -1
- package/dist/src/space-archive.d.ts +62 -3
- 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 -37
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +111 -0
- package/src/TraceProtocol.ts +21 -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 +286 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +191 -62
- package/src/buf/proto/gen/dxos/config_pb.ts +134 -4
- 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 +70 -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 +5 -16
- 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 +39 -10
- 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 +12 -179
- 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 +222 -0
- package/src/edge/edge.ts +611 -0
- package/src/edge/errors.ts +85 -0
- package/src/edge/index.ts +8 -0
- package/src/edge/registry.ts +164 -0
- package/src/errors/base-errors.ts +4 -21
- package/src/errors/encoding.ts +2 -3
- package/src/errors/errors.test.ts +2 -2
- package/src/errors/errors.ts +57 -124
- package/src/errors/helpers.ts +6 -7
- 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 +81 -0
- package/src/proto/dxos/client/services.proto +39 -4
- package/src/proto/dxos/config.proto +50 -1
- 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 +27 -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 -3
- package/src/proto/dxos/rpc.proto +7 -0
- package/src/proto/dxos/tracing.proto +0 -40
- package/src/proto/gen/dxos/agent/dashboard.ts +3 -6
- package/src/proto/gen/dxos/agent/echoproxy.ts +1 -2
- package/src/proto/gen/dxos/agent/epoch.ts +1 -2
- package/src/proto/gen/dxos/agent/functions.ts +6 -12
- package/src/proto/gen/dxos/bot.ts +12 -24
- package/src/proto/gen/dxos/client/services.ts +1022 -905
- package/src/proto/gen/dxos/config.ts +115 -100
- package/src/proto/gen/dxos/devtools/host.ts +71 -119
- package/src/proto/gen/dxos/devtools/swarm.ts +4 -8
- package/src/proto/gen/dxos/echo/blob.ts +1 -2
- package/src/proto/gen/dxos/echo/feed.ts +4 -8
- package/src/proto/gen/dxos/echo/filter.ts +2 -4
- package/src/proto/gen/dxos/echo/indexing.ts +2 -4
- package/src/proto/gen/dxos/echo/metadata.ts +12 -16
- package/src/proto/gen/dxos/echo/model/document.ts +11 -22
- package/src/proto/gen/dxos/echo/model/messenger.ts +1 -2
- package/src/proto/gen/dxos/echo/model/text.ts +2 -4
- package/src/proto/gen/dxos/echo/object.ts +6 -12
- package/src/proto/gen/dxos/echo/query.ts +21 -9
- package/src/proto/gen/dxos/echo/service.ts +46 -38
- package/src/proto/gen/dxos/echo/snapshot.ts +2 -4
- package/src/proto/gen/dxos/echo/timeframe.ts +2 -4
- package/src/proto/gen/dxos/edge/calls.ts +5 -10
- package/src/proto/gen/dxos/edge/messenger.ts +28 -10
- package/src/proto/gen/dxos/edge/signal.ts +7 -14
- package/src/proto/gen/dxos/error.ts +1 -2
- package/src/proto/gen/dxos/gravity.ts +10 -20
- package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -2
- package/src/proto/gen/dxos/halo/credentials/greet.ts +6 -12
- package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -4
- package/src/proto/gen/dxos/halo/credentials.ts +35 -43
- package/src/proto/gen/dxos/halo/invitations.ts +13 -26
- package/src/proto/gen/dxos/halo/keyring.ts +1 -2
- package/src/proto/gen/dxos/halo/keys.ts +2 -4
- package/src/proto/gen/dxos/halo/signed.ts +4 -8
- package/src/proto/gen/dxos/iframe.ts +4 -18
- package/src/proto/gen/dxos/keys.ts +2 -4
- package/src/proto/gen/dxos/mesh/bridge.ts +12 -24
- package/src/proto/gen/dxos/mesh/broadcast.ts +1 -2
- package/src/proto/gen/dxos/mesh/messaging.ts +2 -4
- package/src/proto/gen/dxos/mesh/muxer.ts +5 -10
- package/src/proto/gen/dxos/mesh/presence.ts +1 -2
- package/src/proto/gen/dxos/mesh/protocol.ts +3 -6
- package/src/proto/gen/dxos/mesh/replicator.ts +2 -4
- package/src/proto/gen/dxos/mesh/signal.ts +9 -18
- package/src/proto/gen/dxos/mesh/swarm.ts +6 -12
- package/src/proto/gen/dxos/mesh/teleport/auth.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/automerge.ts +2 -4
- package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/control.ts +3 -6
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -2
- package/src/proto/gen/dxos/mesh/teleport/replicator.ts +5 -10
- package/src/proto/gen/dxos/mesh/teleport.ts +2 -4
- package/src/proto/gen/dxos/registry.ts +3 -6
- package/src/proto/gen/dxos/rpc.ts +24 -12
- package/src/proto/gen/dxos/service/agentmanager.ts +4 -8
- package/src/proto/gen/dxos/service/publisher.ts +5 -10
- package/src/proto/gen/dxos/service/supervisor.ts +12 -24
- package/src/proto/gen/dxos/service/tunnel.ts +3 -6
- package/src/proto/gen/dxos/tracing.ts +10 -96
- package/src/proto/gen/dxos/type.ts +12 -24
- package/src/proto/gen/dxos/value.ts +2 -4
- package/src/proto/gen/example/testing/data.ts +4 -8
- package/src/proto/gen/example/testing/rpc.ts +7 -14
- package/src/proto/gen/google/protobuf.ts +308 -22
- package/src/proto/gen/index.ts +42 -8
- 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 -100
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts +0 -246
- package/dist/src/edge.d.ts.map +0 -1
- package/dist/src/edge.js +0 -49
- 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 -28
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -8
- package/dist/src/queue.js.map +0 -1
- package/dist/src/tracing.d.ts +0 -40
- package/dist/src/tracing.d.ts.map +0 -1
- package/dist/src/tracing.js +0 -50
- package/dist/src/tracing.js.map +0 -1
- package/src/edge-error.ts +0 -130
- package/src/edge.ts +0 -279
- package/src/query.ts +0 -8
- package/src/queue.ts +0 -38
- package/src/tracing.ts +0 -86
package/src/proto/index.ts
CHANGED
package/src/proto/types.ts
CHANGED
package/src/space-archive.ts
CHANGED
|
@@ -11,8 +11,13 @@ import type { IdentityDid, SpaceId } from '@dxos/keys';
|
|
|
11
11
|
*
|
|
12
12
|
* A tar archive with files:
|
|
13
13
|
* - metadata.json -- JSON-encoded {@link SpaceArchiveMetadata} file.
|
|
14
|
-
* - documents
|
|
14
|
+
* - documents/
|
|
15
15
|
* - <document-id>.bin -- Automerge document.
|
|
16
|
+
* - feeds/
|
|
17
|
+
* - <feed-id>/
|
|
18
|
+
* - metadata.json -- JSON-encoded {@link FeedArchiveMetadata} file.
|
|
19
|
+
* - blocks-0.json -- JSON array of {@link FeedArchiveBlock} (chunks of 100).
|
|
20
|
+
* - blocks-1.json -- ...
|
|
16
21
|
*/
|
|
17
22
|
|
|
18
23
|
/**
|
|
@@ -60,7 +65,71 @@ export interface SpaceArchiveMetadata {
|
|
|
60
65
|
};
|
|
61
66
|
}
|
|
62
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Feed metadata stored in `feeds/<feed-id>/metadata.json`.
|
|
70
|
+
*/
|
|
71
|
+
export interface FeedArchiveMetadata {
|
|
72
|
+
/**
|
|
73
|
+
* Feed identifier.
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Feed namespace (e.g., 'data', 'trace').
|
|
79
|
+
*/
|
|
80
|
+
namespace: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Feed block stored in `feeds/<feed-id>/blocks-N.json`.
|
|
85
|
+
* Represents a single block from the feed.
|
|
86
|
+
*/
|
|
87
|
+
export interface FeedArchiveBlock {
|
|
88
|
+
/**
|
|
89
|
+
* Actor that produced this block.
|
|
90
|
+
*/
|
|
91
|
+
actorId: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Per-feed monotonic sequence assigned by the actor.
|
|
95
|
+
*/
|
|
96
|
+
sequence: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Actor of the immediate predecessor block, if any.
|
|
100
|
+
*/
|
|
101
|
+
prevActorId: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Sequence of the immediate predecessor block, if any.
|
|
105
|
+
*/
|
|
106
|
+
prevSequence: number | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Globally ordered position assigned by a position authority.
|
|
110
|
+
*/
|
|
111
|
+
position: number | null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Milliseconds since Unix epoch when the block was created.
|
|
115
|
+
*/
|
|
116
|
+
timestamp: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Base64-encoded serialized application payload.
|
|
120
|
+
*/
|
|
121
|
+
data: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Number of blocks per chunk file.
|
|
126
|
+
*/
|
|
127
|
+
export const FEED_ARCHIVE_BLOCKS_PER_CHUNK = 100;
|
|
128
|
+
|
|
63
129
|
export const SpaceArchiveFileStructure = {
|
|
64
130
|
metadata: 'metadata.json',
|
|
65
131
|
documents: 'documents',
|
|
132
|
+
feeds: 'feeds',
|
|
133
|
+
feedMetadata: 'metadata.json',
|
|
134
|
+
feedBlocksPrefix: 'blocks-',
|
|
66
135
|
} as const;
|
package/src/types.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { type PublicKey } from '@dxos/keys';
|
|
6
6
|
import { type Timeframe } from '@dxos/timeframe';
|
|
7
7
|
|
|
8
|
-
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed.
|
|
9
|
-
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object.
|
|
8
|
+
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed.ts';
|
|
9
|
+
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object.ts';
|
|
10
10
|
|
|
11
11
|
// TODO(burdon): Replace with proto definition.
|
|
12
12
|
export type FeedMeta = {
|
package/dist/src/edge-error.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type EdgeErrorData, type EdgeHttpFailure } from './edge';
|
|
2
|
-
export declare class EdgeCallFailedError extends Error {
|
|
3
|
-
static fromProcessingFailureCause(cause: Error): EdgeCallFailedError;
|
|
4
|
-
static fromHttpFailure(response: Response): Promise<EdgeCallFailedError>;
|
|
5
|
-
static fromUnsuccessfulResponse(response: Response, body: EdgeHttpFailure): EdgeCallFailedError;
|
|
6
|
-
readonly reason: string;
|
|
7
|
-
readonly errorData?: EdgeErrorData;
|
|
8
|
-
readonly isRetryable?: boolean;
|
|
9
|
-
readonly retryAfterMs?: number;
|
|
10
|
-
constructor(args: {
|
|
11
|
-
reason: string;
|
|
12
|
-
isRetryable?: boolean;
|
|
13
|
-
errorData?: EdgeErrorData;
|
|
14
|
-
retryAfterMs?: number;
|
|
15
|
-
cause?: Error;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export declare class EdgeAuthChallengeError extends EdgeCallFailedError {
|
|
19
|
-
readonly challenge: string;
|
|
20
|
-
constructor(challenge: string, errorData: EdgeErrorData);
|
|
21
|
-
}
|
|
22
|
-
export declare const createRetryableHttpFailure: (args: {
|
|
23
|
-
reason: any;
|
|
24
|
-
retryAfterSeconds: number;
|
|
25
|
-
}) => Response;
|
|
26
|
-
//# sourceMappingURL=edge-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge-error.d.ts","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAElE,qBAAa,mBAAoB,SAAQ,KAAK;WAC9B,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;WAQvD,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC;WASvE,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,GAAG,mBAAmB;IAStG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,KAAK,CAAC;KACf;CAOF;AAED,qBAAa,sBAAuB,SAAQ,mBAAmB;aAE3C,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM,EACjC,SAAS,EAAE,aAAa;CAI3B;AAOD,eAAO,MAAM,0BAA0B,GAAI,MAAM;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,aAI1F,CAAC"}
|
package/dist/src/edge-error.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
import { BaseError } from '@dxos/errors';
|
|
5
|
-
export class EdgeCallFailedError extends Error {
|
|
6
|
-
static fromProcessingFailureCause(cause) {
|
|
7
|
-
return new EdgeCallFailedError({
|
|
8
|
-
reason: 'Error processing request.',
|
|
9
|
-
isRetryable: true,
|
|
10
|
-
cause,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
static async fromHttpFailure(response) {
|
|
14
|
-
return new EdgeCallFailedError({
|
|
15
|
-
reason: `HTTP code ${response.status}: ${response.statusText}.`,
|
|
16
|
-
isRetryable: isRetryableCode(response.status),
|
|
17
|
-
retryAfterMs: getRetryAfterMillis(response),
|
|
18
|
-
cause: await parseErrorBody(response),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
static fromUnsuccessfulResponse(response, body) {
|
|
22
|
-
return new EdgeCallFailedError({
|
|
23
|
-
reason: body.reason,
|
|
24
|
-
errorData: body.errorData,
|
|
25
|
-
isRetryable: body.errorData == null && response.headers.has('Retry-After'),
|
|
26
|
-
retryAfterMs: getRetryAfterMillis(response),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
reason;
|
|
30
|
-
errorData;
|
|
31
|
-
isRetryable;
|
|
32
|
-
retryAfterMs;
|
|
33
|
-
constructor(args) {
|
|
34
|
-
super(args.reason, { cause: args.cause });
|
|
35
|
-
this.reason = args.reason;
|
|
36
|
-
this.errorData = args.errorData;
|
|
37
|
-
this.retryAfterMs = args.retryAfterMs;
|
|
38
|
-
this.isRetryable = Boolean(args.isRetryable);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export class EdgeAuthChallengeError extends EdgeCallFailedError {
|
|
42
|
-
challenge;
|
|
43
|
-
constructor(challenge, errorData) {
|
|
44
|
-
super({ reason: 'Auth challenge.', errorData, isRetryable: false });
|
|
45
|
-
this.challenge = challenge;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const getRetryAfterMillis = (response) => {
|
|
49
|
-
const retryAfter = Number(response.headers.get('Retry-After'));
|
|
50
|
-
return Number.isNaN(retryAfter) || retryAfter === 0 ? undefined : retryAfter * 1000;
|
|
51
|
-
};
|
|
52
|
-
export const createRetryableHttpFailure = (args) => {
|
|
53
|
-
return new Response(JSON.stringify({ success: false, reason: args.reason }), {
|
|
54
|
-
headers: { 'Retry-After': String(args.retryAfterSeconds) },
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
const isRetryableCode = (status) => {
|
|
58
|
-
if (status === 501) {
|
|
59
|
-
// Not Implemented
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return !(status >= 400 && status < 500);
|
|
63
|
-
};
|
|
64
|
-
const parseErrorBody = async (response) => {
|
|
65
|
-
if (response.headers.get('Content-Type') !== 'application/json') {
|
|
66
|
-
const body = await response.text();
|
|
67
|
-
return new Error(body.slice(0, 256));
|
|
68
|
-
}
|
|
69
|
-
const body = await response.json();
|
|
70
|
-
if (!('error' in body)) {
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
return parseSerializedError(body.error);
|
|
74
|
-
};
|
|
75
|
-
const parseSerializedError = (serializedError) => {
|
|
76
|
-
let err;
|
|
77
|
-
if (typeof serializedError.code === 'string') {
|
|
78
|
-
err = new BaseError(serializedError.code, serializedError.message ?? 'Unknown error', {
|
|
79
|
-
cause: serializedError.cause ? parseSerializedError(serializedError.cause) : undefined,
|
|
80
|
-
context: serializedError.context,
|
|
81
|
-
});
|
|
82
|
-
if (serializedError.stack) {
|
|
83
|
-
Object.defineProperty(err, 'stack', {
|
|
84
|
-
value: serializedError.stack,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
err = new Error(serializedError.message ?? 'Unknown error', {
|
|
90
|
-
cause: serializedError.cause ? parseSerializedError(serializedError.cause) : undefined,
|
|
91
|
-
});
|
|
92
|
-
if (serializedError.stack) {
|
|
93
|
-
Object.defineProperty(err, 'stack', {
|
|
94
|
-
value: serializedError.stack,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return err;
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=edge-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge-error.js","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACrC,MAAM,CAAC,0BAA0B,CAAC,KAAY;QACnD,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,2BAA2B;YACnC,WAAW,EAAE,IAAI;YACjB,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,QAAkB;QACpD,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,aAAa,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,GAAG;YAC/D,WAAW,EAAE,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC7C,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAAC;YAC3C,KAAK,EAAE,MAAM,cAAc,CAAC,QAAQ,CAAC;SACtC,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,QAAkB,EAAE,IAAqB;QAC9E,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,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I,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,IAAI,eAAe,EAAE;YACpF,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YACtF,OAAO,EAAE,eAAe,CAAC,OAAO;SACjC,CAAC,CAAC;QACH,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE;gBAClC,KAAK,EAAE,eAAe,CAAC,KAAK;aAC7B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,IAAI,KAAK,CAAC,eAAe,CAAC,OAAO,IAAI,eAAe,EAAE;YAC1D,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACvF,CAAC,CAAC;QACH,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE;gBAClC,KAAK,EAAE,eAAe,CAAC,KAAK;aAC7B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
package/dist/src/edge.d.ts
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { SpaceId } from '@dxos/keys';
|
|
3
|
-
export declare enum EdgeService {
|
|
4
|
-
AUTOMERGE_REPLICATOR = "automerge-replicator",
|
|
5
|
-
FEED_REPLICATOR = "feed-replicator",
|
|
6
|
-
SWARM = "swarm",
|
|
7
|
-
SIGNAL = "signal",
|
|
8
|
-
STATUS = "status"
|
|
9
|
-
}
|
|
10
|
-
export type EdgeHttpSuccess<T> = {
|
|
11
|
-
success: true;
|
|
12
|
-
data: T;
|
|
13
|
-
};
|
|
14
|
-
export type EdgeErrorData = {
|
|
15
|
-
type: string;
|
|
16
|
-
} & Record<string, any>;
|
|
17
|
-
export type EdgeHttpFailure = {
|
|
18
|
-
success: false;
|
|
19
|
-
/**
|
|
20
|
-
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
21
|
-
*/
|
|
22
|
-
reason: string;
|
|
23
|
-
/**
|
|
24
|
-
* Information that can be used to retry the request such that it will succeed, for example:
|
|
25
|
-
* 1. { type: 'auth_required', challenge: string }
|
|
26
|
-
* Requires retrying the request with challenge signature included.
|
|
27
|
-
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
28
|
-
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
29
|
-
* if the user confirms.
|
|
30
|
-
* When errorData is returned simply retrying the request won't have any effect.
|
|
31
|
-
* EdgeHttpClient should parse well-known errorData into Error types and throw.
|
|
32
|
-
*/
|
|
33
|
-
errorData?: EdgeErrorData;
|
|
34
|
-
};
|
|
35
|
-
export type EdgeHttpResponse<T> = EdgeHttpSuccess<T> | EdgeHttpFailure;
|
|
36
|
-
export type GetNotarizationResponseBody = {
|
|
37
|
-
awaitingNotarization: {
|
|
38
|
-
credentials: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export type ExecuteWorkflowResponseBody = {
|
|
42
|
-
success: boolean;
|
|
43
|
-
reason?: string;
|
|
44
|
-
output?: any;
|
|
45
|
-
};
|
|
46
|
-
export type PostNotarizationRequestBody = {
|
|
47
|
-
credentials: string[];
|
|
48
|
-
};
|
|
49
|
-
export type JoinSpaceRequest = {
|
|
50
|
-
invitationId: string;
|
|
51
|
-
identityKey: string;
|
|
52
|
-
/**
|
|
53
|
-
* Base64 encoded signed challenge.
|
|
54
|
-
* Used to verify the IdentityKey in case of `invitation.authMethod === Invitation.AuthMethod.KNOWN_PUBLIC_KEY`
|
|
55
|
-
*/
|
|
56
|
-
signature?: string;
|
|
57
|
-
};
|
|
58
|
-
export type JoinSpaceResponseBody = {
|
|
59
|
-
spaceMemberCredential: string;
|
|
60
|
-
spaceGenesisFeedKey: string;
|
|
61
|
-
};
|
|
62
|
-
export type RecoverIdentitySignature = string | {
|
|
63
|
-
signature: string;
|
|
64
|
-
clientDataJson: string;
|
|
65
|
-
authenticatorData: string;
|
|
66
|
-
};
|
|
67
|
-
export type RecoverIdentityRequest = {
|
|
68
|
-
deviceKey: string;
|
|
69
|
-
controlFeedKey: string;
|
|
70
|
-
lookupKey?: string;
|
|
71
|
-
signature?: RecoverIdentitySignature;
|
|
72
|
-
token?: string;
|
|
73
|
-
};
|
|
74
|
-
export type RecoverIdentityResponseBody = {
|
|
75
|
-
identityKey: string;
|
|
76
|
-
haloSpaceKey: string;
|
|
77
|
-
genesisFeedKey: string;
|
|
78
|
-
deviceAuthCredential: string;
|
|
79
|
-
};
|
|
80
|
-
export type CreateAgentRequestBody = {
|
|
81
|
-
identityKey: string;
|
|
82
|
-
haloSpaceId: SpaceId;
|
|
83
|
-
haloSpaceKey: string;
|
|
84
|
-
};
|
|
85
|
-
export type CreateAgentResponseBody = {
|
|
86
|
-
deviceKey: string;
|
|
87
|
-
feedKey: string;
|
|
88
|
-
};
|
|
89
|
-
export type GetAgentStatusResponseBody = {
|
|
90
|
-
agent: {
|
|
91
|
-
deviceKey?: string;
|
|
92
|
-
status: EdgeAgentStatus;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export type UploadFunctionRequest = {
|
|
96
|
-
name?: string;
|
|
97
|
-
version: string;
|
|
98
|
-
ownerPublicKey: string;
|
|
99
|
-
entryPoint: string;
|
|
100
|
-
assets: Record<string, Uint8Array>;
|
|
101
|
-
};
|
|
102
|
-
export type UploadFunctionResponseBody = {
|
|
103
|
-
functionId: string;
|
|
104
|
-
version: string;
|
|
105
|
-
meta: {
|
|
106
|
-
key?: string;
|
|
107
|
-
name?: string;
|
|
108
|
-
description?: string;
|
|
109
|
-
/**
|
|
110
|
-
* JSON Schema for the input of the function.
|
|
111
|
-
*/
|
|
112
|
-
inputSchema?: object;
|
|
113
|
-
/**
|
|
114
|
-
* JSON Schema for the output of the function.
|
|
115
|
-
*/
|
|
116
|
-
outputSchema?: object;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
export type CreateSpaceRequest = {
|
|
120
|
-
/**
|
|
121
|
-
* HEX encoded public key of the agent.
|
|
122
|
-
*/
|
|
123
|
-
agentKey: string;
|
|
124
|
-
};
|
|
125
|
-
export type CreateSpaceResponseBody = {
|
|
126
|
-
/**
|
|
127
|
-
* HEX encoded public key of the space.
|
|
128
|
-
*/
|
|
129
|
-
spaceKey: string;
|
|
130
|
-
spaceId: SpaceId;
|
|
131
|
-
automergeRoot: string;
|
|
132
|
-
};
|
|
133
|
-
export declare enum EdgeAgentStatus {
|
|
134
|
-
ACTIVE = "active",
|
|
135
|
-
INACTIVE = "inactive",
|
|
136
|
-
NOT_FOUND = "not_found"
|
|
137
|
-
}
|
|
138
|
-
export type EdgeAuthChallenge = {
|
|
139
|
-
type: 'auth_challenge';
|
|
140
|
-
challenge: string;
|
|
141
|
-
};
|
|
142
|
-
export declare enum OAuthProvider {
|
|
143
|
-
GOOGLE = "google",
|
|
144
|
-
BLUESKY = "bluesky"
|
|
145
|
-
}
|
|
146
|
-
export declare const InitiateOAuthFlowRequestSchema: Schema.Struct<{
|
|
147
|
-
provider: Schema.Enums<typeof OAuthProvider>;
|
|
148
|
-
spaceId: Schema.refine<string & {
|
|
149
|
-
__SpaceId: true;
|
|
150
|
-
}, Schema.Schema<string, string, never>>;
|
|
151
|
-
accessTokenId: typeof Schema.String;
|
|
152
|
-
scopes: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
153
|
-
noRefresh: Schema.optional<typeof Schema.Boolean>;
|
|
154
|
-
loginHint: Schema.optional<typeof Schema.String>;
|
|
155
|
-
}>;
|
|
156
|
-
export type InitiateOAuthFlowRequest = Schema.Schema.Type<typeof InitiateOAuthFlowRequestSchema>;
|
|
157
|
-
export type InitiateOAuthFlowResponse = {
|
|
158
|
-
authUrl: string;
|
|
159
|
-
};
|
|
160
|
-
export type OAuthFlowResult = {
|
|
161
|
-
success: true;
|
|
162
|
-
accessToken: string;
|
|
163
|
-
accessTokenId: string;
|
|
164
|
-
} | {
|
|
165
|
-
success: false;
|
|
166
|
-
reason: string;
|
|
167
|
-
};
|
|
168
|
-
export declare enum EdgeWebsocketProtocol {
|
|
169
|
-
V0 = "edge-ws-v0",
|
|
170
|
-
/**
|
|
171
|
-
* Enables message framing and muxing by service-id.
|
|
172
|
-
*/
|
|
173
|
-
V1 = "edge-ws-v1"
|
|
174
|
-
}
|
|
175
|
-
export type EdgeStatus = {
|
|
176
|
-
problems: string[];
|
|
177
|
-
agent: {
|
|
178
|
-
agentStatus?: string;
|
|
179
|
-
agentKey?: string;
|
|
180
|
-
haloSpaceId?: SpaceId;
|
|
181
|
-
fetchError?: string;
|
|
182
|
-
};
|
|
183
|
-
router: {
|
|
184
|
-
connectedDevices?: {
|
|
185
|
-
peerKey: string;
|
|
186
|
-
topics: string[];
|
|
187
|
-
}[];
|
|
188
|
-
metrics?: {
|
|
189
|
-
sentMessages: number;
|
|
190
|
-
receivedMessages: number;
|
|
191
|
-
sentBytes: number;
|
|
192
|
-
receivedBytes: number;
|
|
193
|
-
failedMessages: number;
|
|
194
|
-
failedBytes: number;
|
|
195
|
-
};
|
|
196
|
-
fetchError?: string;
|
|
197
|
-
};
|
|
198
|
-
spaces: {
|
|
199
|
-
data: Record<SpaceId, {
|
|
200
|
-
diagnostics?: any & {
|
|
201
|
-
redFlags: string[];
|
|
202
|
-
};
|
|
203
|
-
fetchError?: string;
|
|
204
|
-
}>;
|
|
205
|
-
fetchError?: string;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
export type ImportBundleRequest = {
|
|
209
|
-
bundle: {
|
|
210
|
-
/**
|
|
211
|
-
* DocumentId.
|
|
212
|
-
*/
|
|
213
|
-
documentId: string;
|
|
214
|
-
/**
|
|
215
|
-
* Encoded mutation.
|
|
216
|
-
*/
|
|
217
|
-
mutation: string;
|
|
218
|
-
/**
|
|
219
|
-
* Heads of the document.
|
|
220
|
-
*/
|
|
221
|
-
heads: string[];
|
|
222
|
-
}[];
|
|
223
|
-
};
|
|
224
|
-
export type ExportBundleRequest = {
|
|
225
|
-
/**
|
|
226
|
-
* DocumentId -> Heads (decoded heads since which we want to export).
|
|
227
|
-
*/
|
|
228
|
-
docHeads: Record<string, string[]>;
|
|
229
|
-
};
|
|
230
|
-
export type ExportBundleResponse = {
|
|
231
|
-
bundle: {
|
|
232
|
-
/**
|
|
233
|
-
* DocumentId.
|
|
234
|
-
*/
|
|
235
|
-
documentId: string;
|
|
236
|
-
/**
|
|
237
|
-
* Encoded mutation.
|
|
238
|
-
*/
|
|
239
|
-
mutation: string;
|
|
240
|
-
}[];
|
|
241
|
-
};
|
|
242
|
-
export declare const DocumentCodec: {
|
|
243
|
-
encode: (doc: Uint8Array) => string;
|
|
244
|
-
decode: (doc: string) => Uint8Array<ArrayBuffer>;
|
|
245
|
-
};
|
|
246
|
-
//# sourceMappingURL=edge.d.ts.map
|
package/dist/src/edge.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/edge.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,oBAAY,WAAW;IACrB,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC/B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,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2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
import { Schema } from 'effect';
|
|
5
|
-
import { SpaceId } from '@dxos/keys';
|
|
6
|
-
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
7
|
-
// If we would rename it, we need to be careful to not break composer production.
|
|
8
|
-
export var EdgeService;
|
|
9
|
-
(function (EdgeService) {
|
|
10
|
-
EdgeService["AUTOMERGE_REPLICATOR"] = "automerge-replicator";
|
|
11
|
-
EdgeService["FEED_REPLICATOR"] = "feed-replicator";
|
|
12
|
-
EdgeService["SWARM"] = "swarm";
|
|
13
|
-
EdgeService["SIGNAL"] = "signal";
|
|
14
|
-
EdgeService["STATUS"] = "status";
|
|
15
|
-
})(EdgeService || (EdgeService = {}));
|
|
16
|
-
export var EdgeAgentStatus;
|
|
17
|
-
(function (EdgeAgentStatus) {
|
|
18
|
-
EdgeAgentStatus["ACTIVE"] = "active";
|
|
19
|
-
EdgeAgentStatus["INACTIVE"] = "inactive";
|
|
20
|
-
EdgeAgentStatus["NOT_FOUND"] = "not_found";
|
|
21
|
-
})(EdgeAgentStatus || (EdgeAgentStatus = {}));
|
|
22
|
-
export var OAuthProvider;
|
|
23
|
-
(function (OAuthProvider) {
|
|
24
|
-
OAuthProvider["GOOGLE"] = "google";
|
|
25
|
-
OAuthProvider["BLUESKY"] = "bluesky";
|
|
26
|
-
})(OAuthProvider || (OAuthProvider = {}));
|
|
27
|
-
export const InitiateOAuthFlowRequestSchema = Schema.Struct({
|
|
28
|
-
provider: Schema.Enums(OAuthProvider),
|
|
29
|
-
spaceId: Schema.String.pipe(Schema.filter(SpaceId.isValid)), // TODO(burdon): Use SpaceId.
|
|
30
|
-
accessTokenId: Schema.String,
|
|
31
|
-
scopes: Schema.mutable(Schema.Array(Schema.String)),
|
|
32
|
-
// Set to true if we don't want periodic token refreshes in background, for cases like account connect
|
|
33
|
-
noRefresh: Schema.optional(Schema.Boolean),
|
|
34
|
-
// Provider-specific (user handle or did for bluesky) hint for auth server resolution
|
|
35
|
-
loginHint: Schema.optional(Schema.String),
|
|
36
|
-
});
|
|
37
|
-
export var EdgeWebsocketProtocol;
|
|
38
|
-
(function (EdgeWebsocketProtocol) {
|
|
39
|
-
EdgeWebsocketProtocol["V0"] = "edge-ws-v0";
|
|
40
|
-
/**
|
|
41
|
-
* Enables message framing and muxing by service-id.
|
|
42
|
-
*/
|
|
43
|
-
EdgeWebsocketProtocol["V1"] = "edge-ws-v1";
|
|
44
|
-
})(EdgeWebsocketProtocol || (EdgeWebsocketProtocol = {}));
|
|
45
|
-
export const DocumentCodec = {
|
|
46
|
-
encode: (doc) => Buffer.from(doc).toString('base64'),
|
|
47
|
-
decode: (doc) => new Uint8Array(Buffer.from(doc, 'base64')),
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=edge.js.map
|
package/dist/src/edge.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../src/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,kDAAmC,CAAA;IACnC,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAgJD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,0CAAuB,CAAA;AACzB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAOD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,6BAA6B;IAC1F,aAAa,EAAE,MAAM,CAAC,MAAM;IAC5B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnD,sGAAsG;IACtG,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC1C,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1C,CAAC,CAAC;AAWH,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB;;OAEG;IACH,0CAAiB,CAAA;AACnB,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AAyED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,CAAC,GAAe,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAChE,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;CACpE,CAAC"}
|
package/dist/src/query.d.ts
DELETED
package/dist/src/query.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,aAAa,gCAAgC,CAAC"}
|
package/dist/src/query.js
DELETED
package/dist/src/query.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,6BAA6B,CAAC"}
|
package/dist/src/queue.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ObjectId } from './types.js';
|
|
2
|
-
export type QueueCursor = string & {
|
|
3
|
-
__QueueCursor: never;
|
|
4
|
-
};
|
|
5
|
-
export type QueueQuery = {
|
|
6
|
-
queueId: ObjectId;
|
|
7
|
-
after?: QueueCursor;
|
|
8
|
-
before?: QueueCursor;
|
|
9
|
-
limit?: number;
|
|
10
|
-
reverse?: boolean;
|
|
11
|
-
objectIds?: ObjectId[];
|
|
12
|
-
};
|
|
13
|
-
export type QueryResult = {
|
|
14
|
-
objects: unknown[];
|
|
15
|
-
/**
|
|
16
|
-
* Cursor at the end of the range.
|
|
17
|
-
*/
|
|
18
|
-
nextCursor: QueueCursor | null;
|
|
19
|
-
/**
|
|
20
|
-
* Cursor at the start of the range.
|
|
21
|
-
*/
|
|
22
|
-
prevCursor: QueueCursor | null;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Position of an object in the queue that it is in.
|
|
26
|
-
*/
|
|
27
|
-
export declare const KEY_QUEUE_POSITION = "dxos.org/key/queue-position";
|
|
28
|
-
//# sourceMappingURL=queue.d.ts.map
|
package/dist/src/queue.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/queue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,aAAa,EAAE,KAAK,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,QAAQ,CAAC;IAElB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IAGxB,OAAO,EAAE,OAAO,EAAE,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC"}
|
package/dist/src/queue.js
DELETED
package/dist/src/queue.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/queue.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAgCF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC"}
|