@dxos/protocols 0.8.4-main.dedc0f3 → 0.8.4-main.e00bdcdb52
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 +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 +107 -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 +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 +517 -0
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +179 -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 +164 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +104 -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 +11 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -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 +1030 -913
- 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 +108 -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 +330 -44
- 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 +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 +286 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +191 -62
- package/src/buf/proto/gen/dxos/config_pb.ts +127 -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 +191 -0
- package/src/edge/edge.ts +610 -0
- package/src/edge/errors.ts +85 -0
- package/src/edge/index.ts +8 -0
- package/src/edge/registry.ts +125 -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 +11 -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 +48 -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 +1030 -913
- package/src/proto/gen/dxos/config.ts +108 -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 +330 -44
- 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/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.e00bdcdb52",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "info@dxos.org",
|
|
9
|
-
"sideEffects":
|
|
13
|
+
"sideEffects": false,
|
|
10
14
|
"type": "module",
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
@@ -35,52 +39,30 @@
|
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
"types": "dist/src/index.d.ts",
|
|
38
|
-
"typesVersions": {
|
|
39
|
-
"*": {
|
|
40
|
-
"proto/*": [
|
|
41
|
-
"dist/src/proto/gen/*"
|
|
42
|
-
],
|
|
43
|
-
"buf/*": [
|
|
44
|
-
"dist/src/buf/proto/gen/*"
|
|
45
|
-
],
|
|
46
|
-
"feed-replication": [
|
|
47
|
-
"dist/src/feed-replication.d.ts"
|
|
48
|
-
],
|
|
49
|
-
"buf": [
|
|
50
|
-
"dist/src/buf/index.d.ts"
|
|
51
|
-
],
|
|
52
|
-
"proto": [
|
|
53
|
-
"dist/src/proto/index.d.ts"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
42
|
"files": [
|
|
58
43
|
"dist",
|
|
59
44
|
"src"
|
|
60
45
|
],
|
|
61
46
|
"dependencies": {
|
|
62
|
-
"@bufbuild/protobuf": "
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/errors": "0.8.4-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
47
|
+
"@bufbuild/protobuf": "2.11.0",
|
|
48
|
+
"@dxos/codec-protobuf": "0.8.4-main.e00bdcdb52",
|
|
49
|
+
"@dxos/effect": "0.8.4-main.e00bdcdb52",
|
|
50
|
+
"@dxos/errors": "0.8.4-main.e00bdcdb52",
|
|
51
|
+
"@dxos/invariant": "0.8.4-main.e00bdcdb52",
|
|
52
|
+
"@dxos/keys": "0.8.4-main.e00bdcdb52",
|
|
53
|
+
"@dxos/timeframe": "0.8.4-main.e00bdcdb52",
|
|
54
|
+
"@dxos/util": "0.8.4-main.e00bdcdb52"
|
|
70
55
|
},
|
|
71
56
|
"devDependencies": {
|
|
72
|
-
"@bufbuild/buf": "
|
|
73
|
-
"@bufbuild/protoc-gen-es": "
|
|
74
|
-
"effect": "3.
|
|
75
|
-
"@dxos/protobuf-compiler": "0.8.4-main.
|
|
57
|
+
"@bufbuild/buf": "1.65.0",
|
|
58
|
+
"@bufbuild/protoc-gen-es": "2.11.0",
|
|
59
|
+
"effect": "3.20.0",
|
|
60
|
+
"@dxos/protobuf-compiler": "0.8.4-main.e00bdcdb52"
|
|
76
61
|
},
|
|
77
62
|
"peerDependencies": {
|
|
78
|
-
"effect": "
|
|
63
|
+
"effect": "3.20.0"
|
|
79
64
|
},
|
|
80
65
|
"publishConfig": {
|
|
81
66
|
"access": "public"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"compile:buf": "buf generate"
|
|
85
67
|
}
|
|
86
68
|
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
type QueueService,
|
|
7
|
+
type QueueQuery,
|
|
8
|
+
type QueueQueryResult as QueryResult,
|
|
9
|
+
type QueryQueueRequest,
|
|
10
|
+
type InsertIntoQueueRequest,
|
|
11
|
+
type DeleteFromQueueRequest,
|
|
12
|
+
type SyncQueueRequest,
|
|
13
|
+
} from './proto/gen/dxos/client/services.js';
|
|
14
|
+
|
|
15
|
+
export const KEY_QUEUE_POSITION = 'org.dxos.key.queue-position';
|
|
16
|
+
|
|
17
|
+
import * as Schema from 'effect/Schema';
|
|
18
|
+
|
|
19
|
+
import { invariant } from '@dxos/invariant';
|
|
20
|
+
import { SpaceId } from '@dxos/keys';
|
|
21
|
+
|
|
22
|
+
import { EdgeService } from './edge/edge.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Opaque pagination cursor for feed queries.
|
|
26
|
+
*/
|
|
27
|
+
export const FeedCursor = Schema.String.pipe(Schema.brand('@dxos/feed/FeedCursor'));
|
|
28
|
+
export type FeedCursor = Schema.Schema.Type<typeof FeedCursor>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Replicated queue block payload and ordering metadata.
|
|
32
|
+
*/
|
|
33
|
+
export const Block = Schema.Struct({
|
|
34
|
+
/**
|
|
35
|
+
* Appears on blocks returned from query.
|
|
36
|
+
*/
|
|
37
|
+
feedId: Schema.UndefinedOr(Schema.String),
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Actor that produced this block.
|
|
41
|
+
*/
|
|
42
|
+
actorId: Schema.String,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Per-feed monotonic sequence assigned by the actor.
|
|
46
|
+
*/
|
|
47
|
+
sequence: Schema.Number,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Actor of the immediate predecessor block, if any.
|
|
51
|
+
*/
|
|
52
|
+
prevActorId: Schema.NullOr(Schema.String),
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Sequence of the immediate predecessor block, if any.
|
|
56
|
+
*/
|
|
57
|
+
prevSequence: Schema.NullOr(Schema.Number),
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Globally ordered position assigned by a position authority.
|
|
61
|
+
* Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
|
|
62
|
+
*/
|
|
63
|
+
position: Schema.NullOr(Schema.Number),
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Milliseconds since Unix epoch when the block was created.
|
|
67
|
+
*/
|
|
68
|
+
timestamp: Schema.Number,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Serialized application payload.
|
|
72
|
+
*/
|
|
73
|
+
data: Schema.Uint8Array,
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Local insertion ID.
|
|
77
|
+
* Not replicated.
|
|
78
|
+
*/
|
|
79
|
+
// TODO(dmaretskyi): Remove. Use cursors.
|
|
80
|
+
insertionId: Schema.optional(Schema.Number),
|
|
81
|
+
});
|
|
82
|
+
export interface Block extends Schema.Schema.Type<typeof Block> {}
|
|
83
|
+
|
|
84
|
+
//
|
|
85
|
+
// RPC Schemas
|
|
86
|
+
//
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Query parameters for retrieving blocks from one namespace in one space.
|
|
90
|
+
*/
|
|
91
|
+
export const QueryRequest = Schema.Struct({
|
|
92
|
+
/**
|
|
93
|
+
* Optional request correlation identifier.
|
|
94
|
+
*/
|
|
95
|
+
requestId: Schema.optional(Schema.String),
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Target space identifier.
|
|
99
|
+
*/
|
|
100
|
+
spaceId: SpaceId,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Feed namespace to query.
|
|
104
|
+
*/
|
|
105
|
+
feedNamespace: Schema.String,
|
|
106
|
+
|
|
107
|
+
query: Schema.optional(
|
|
108
|
+
Schema.Union(
|
|
109
|
+
Schema.Struct({
|
|
110
|
+
/**
|
|
111
|
+
* Explicit list of feed IDs to read from.
|
|
112
|
+
*/
|
|
113
|
+
feedIds: Schema.Array(Schema.String),
|
|
114
|
+
}),
|
|
115
|
+
Schema.Struct({
|
|
116
|
+
/**
|
|
117
|
+
* Existing subscription to resolve feed IDs from.
|
|
118
|
+
*/
|
|
119
|
+
subscriptionId: Schema.String,
|
|
120
|
+
}),
|
|
121
|
+
),
|
|
122
|
+
),
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Get changes following this cursor (exclusive).
|
|
126
|
+
*
|
|
127
|
+
* Must not be used with `position`.
|
|
128
|
+
*/
|
|
129
|
+
cursor: Schema.optional(FeedCursor),
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Get changes following this position.
|
|
133
|
+
* Returned blocks have strictly greater position than this.
|
|
134
|
+
*
|
|
135
|
+
* Must not be used with `cursor`.
|
|
136
|
+
*/
|
|
137
|
+
position: Schema.optional(Schema.Number),
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Only return blocks that are not positioned.
|
|
141
|
+
*
|
|
142
|
+
* Must not be used with `cursor` or `position`.
|
|
143
|
+
*/
|
|
144
|
+
unpositionedOnly: Schema.optional(Schema.Boolean),
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Maximum number of blocks to return.
|
|
148
|
+
*/
|
|
149
|
+
limit: Schema.optional(Schema.Number),
|
|
150
|
+
});
|
|
151
|
+
export interface QueryRequest extends Schema.Schema.Type<typeof QueryRequest> {}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Result payload for a query operation.
|
|
155
|
+
*/
|
|
156
|
+
export const QueryResponse = Schema.Struct({
|
|
157
|
+
/**
|
|
158
|
+
* Echoed request correlation identifier.
|
|
159
|
+
*/
|
|
160
|
+
requestId: Schema.optional(Schema.String),
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Cursor to continue reading from this result boundary.
|
|
164
|
+
*/
|
|
165
|
+
nextCursor: FeedCursor,
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Indicates whether more matching blocks are available.
|
|
169
|
+
*/
|
|
170
|
+
hasMore: Schema.Boolean,
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Returned blocks for the current page.
|
|
174
|
+
*/
|
|
175
|
+
blocks: Schema.Array(Block),
|
|
176
|
+
});
|
|
177
|
+
export interface QueryResponse extends Schema.Schema.Type<typeof QueryResponse> {}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Parameters for creating or refreshing a feed subscription.
|
|
181
|
+
*/
|
|
182
|
+
export const SubscribeRequest = Schema.Struct({
|
|
183
|
+
/**
|
|
184
|
+
* Optional request correlation identifier.
|
|
185
|
+
*/
|
|
186
|
+
requestId: Schema.optional(Schema.String),
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Optional space scope for the subscription.
|
|
190
|
+
*/
|
|
191
|
+
spaceId: Schema.optional(Schema.String),
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Feeds to include in the subscription.
|
|
195
|
+
*/
|
|
196
|
+
feedIds: Schema.Array(Schema.String),
|
|
197
|
+
});
|
|
198
|
+
export interface SubscribeRequest extends Schema.Schema.Type<typeof SubscribeRequest> {}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Response payload for subscription creation.
|
|
202
|
+
*/
|
|
203
|
+
export const SubscribeResponse = Schema.Struct({
|
|
204
|
+
/**
|
|
205
|
+
* Echoed request correlation identifier.
|
|
206
|
+
*/
|
|
207
|
+
requestId: Schema.optional(Schema.String),
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Identifier to use in subsequent subscription queries.
|
|
211
|
+
*/
|
|
212
|
+
subscriptionId: Schema.String,
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Expiration timestamp in milliseconds since Unix epoch.
|
|
216
|
+
*/
|
|
217
|
+
expiresAt: Schema.Number,
|
|
218
|
+
});
|
|
219
|
+
export interface SubscribeResponse extends Schema.Schema.Type<typeof SubscribeResponse> {}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Request payload for appending one or more blocks.
|
|
223
|
+
*/
|
|
224
|
+
export const AppendRequest = Schema.Struct({
|
|
225
|
+
/**
|
|
226
|
+
* Optional request correlation identifier.
|
|
227
|
+
*/
|
|
228
|
+
requestId: Schema.optional(Schema.String),
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Target space identifier.
|
|
232
|
+
*/
|
|
233
|
+
spaceId: Schema.String,
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Namespace that all appended blocks belong to.
|
|
237
|
+
*/
|
|
238
|
+
feedNamespace: Schema.String,
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Blocks to append.
|
|
242
|
+
*/
|
|
243
|
+
blocks: Schema.Array(Block),
|
|
244
|
+
});
|
|
245
|
+
export interface AppendRequest extends Schema.Schema.Type<typeof AppendRequest> {}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Result payload for append operations.
|
|
249
|
+
*/
|
|
250
|
+
export const AppendResponse = Schema.Struct({
|
|
251
|
+
/**
|
|
252
|
+
* Echoed request correlation identifier.
|
|
253
|
+
*/
|
|
254
|
+
requestId: Schema.optional(Schema.String),
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Assigned global positions for appended blocks.
|
|
258
|
+
*/
|
|
259
|
+
positions: Schema.Array(Schema.Number),
|
|
260
|
+
});
|
|
261
|
+
export interface AppendResponse extends Schema.Schema.Type<typeof AppendResponse> {}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Tagged transport message union for queue protocol RPC traffic.
|
|
265
|
+
*/
|
|
266
|
+
export const ProtocolMessage = Schema.Union(
|
|
267
|
+
Schema.TaggedStruct('QueryRequest', QueryRequest.fields),
|
|
268
|
+
Schema.TaggedStruct('QueryResponse', QueryResponse.fields),
|
|
269
|
+
Schema.TaggedStruct('SubscribeRequest', SubscribeRequest.fields),
|
|
270
|
+
Schema.TaggedStruct('SubscribeResponse', SubscribeResponse.fields),
|
|
271
|
+
Schema.TaggedStruct('AppendRequest', AppendRequest.fields),
|
|
272
|
+
Schema.TaggedStruct('AppendResponse', AppendResponse.fields),
|
|
273
|
+
Schema.TaggedStruct('Error', {
|
|
274
|
+
/**
|
|
275
|
+
* Human-readable error message.
|
|
276
|
+
*/
|
|
277
|
+
message: Schema.String,
|
|
278
|
+
}),
|
|
279
|
+
).pipe(
|
|
280
|
+
Schema.extend(
|
|
281
|
+
Schema.Struct({
|
|
282
|
+
senderPeerId: Schema.UndefinedOr(Schema.String),
|
|
283
|
+
/**
|
|
284
|
+
* Could be undefined if the recipient could be assumed from the context.
|
|
285
|
+
*/
|
|
286
|
+
recipientPeerId: Schema.UndefinedOr(Schema.String),
|
|
287
|
+
}),
|
|
288
|
+
),
|
|
289
|
+
);
|
|
290
|
+
export type ProtocolMessage = Schema.Schema.Type<typeof ProtocolMessage>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Reserved namespaces with protocol-level semantics.
|
|
294
|
+
*/
|
|
295
|
+
export const WellKnownNamespaces = {
|
|
296
|
+
data: 'data',
|
|
297
|
+
trace: 'trace',
|
|
298
|
+
} as const;
|
|
299
|
+
|
|
300
|
+
export const isWellKnownNamespace = (namespace: string) =>
|
|
301
|
+
Object.values(WellKnownNamespaces).includes(namespace as any);
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Encodes queue replicator service identifier as `<service>:<namespace>:<spaceId>`.
|
|
305
|
+
*/
|
|
306
|
+
export const encodeServiceId = (namespace: string, spaceId: SpaceId) =>
|
|
307
|
+
`${EdgeService.QUEUE_REPLICATOR}:${namespace}:${spaceId}`;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Decodes and validates queue replicator service identifier.
|
|
311
|
+
*/
|
|
312
|
+
export const decodeServiceId = (
|
|
313
|
+
serviceId: string,
|
|
314
|
+
): { namespace: keyof typeof WellKnownNamespaces; spaceId: SpaceId } => {
|
|
315
|
+
const [service, namespace, spaceId] = serviceId.split(':');
|
|
316
|
+
invariant(service === EdgeService.QUEUE_REPLICATOR, `Invalid service: ${service}`);
|
|
317
|
+
invariant(isWellKnownNamespace(namespace), `Invalid namespace: ${namespace}`);
|
|
318
|
+
invariant(SpaceId.isValid(spaceId), `Invalid spaceId: ${spaceId}`);
|
|
319
|
+
return { namespace: namespace as keyof typeof WellKnownNamespaces, spaceId };
|
|
320
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type SpaceId } from '@dxos/keys';
|
|
6
|
+
import type * as QueryProto from '@dxos/protocols/proto/dxos/echo/query';
|
|
7
|
+
import type * as DataProto from '@dxos/protocols/proto/dxos/echo/service';
|
|
8
|
+
|
|
9
|
+
import { type EdgeFunctionEnv } from './edge';
|
|
10
|
+
import type * as FeedProtocol from './FeedProtocol';
|
|
11
|
+
|
|
12
|
+
//
|
|
13
|
+
// Function protocol definition
|
|
14
|
+
//
|
|
15
|
+
|
|
16
|
+
// - All types must be trivially serializable - no class instances.
|
|
17
|
+
// - Cannot use effect.
|
|
18
|
+
// - Protobuf service definitions are allowed (Q: What about PublicKey, Timeframe, etc.).
|
|
19
|
+
// - Breaking changes in this interface should be carefully considered.
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Function implementation.
|
|
23
|
+
* This is a contract between the user-defined function and the runtime.
|
|
24
|
+
*/
|
|
25
|
+
export interface Func {
|
|
26
|
+
readonly meta: Meta;
|
|
27
|
+
readonly handler: Handler;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Function metadata.
|
|
32
|
+
*/
|
|
33
|
+
export interface Meta {
|
|
34
|
+
readonly key: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Required services.
|
|
39
|
+
*/
|
|
40
|
+
readonly services: readonly string[];
|
|
41
|
+
/**
|
|
42
|
+
* JSON schema format
|
|
43
|
+
*/
|
|
44
|
+
readonly inputSchema: unknown;
|
|
45
|
+
/**
|
|
46
|
+
* JSON schema format.
|
|
47
|
+
*/
|
|
48
|
+
readonly outputSchema?: unknown;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Function handler.
|
|
53
|
+
* Executed by the runtime
|
|
54
|
+
*/
|
|
55
|
+
export type Handler = (opts: { data: unknown; context: Context }) => Promise<unknown>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Function context.
|
|
59
|
+
*/
|
|
60
|
+
export interface Context {
|
|
61
|
+
services: {
|
|
62
|
+
/**
|
|
63
|
+
* Query service.
|
|
64
|
+
* Available if the function is invoked in context of a space.
|
|
65
|
+
*/
|
|
66
|
+
queryService?: QueryProto.QueryService;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Data service.
|
|
70
|
+
* Available if the function is invoked in context of a space.
|
|
71
|
+
*/
|
|
72
|
+
dataService?: DataProto.DataService;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Queue service.
|
|
76
|
+
* Available if the function is invoked in context of a space.
|
|
77
|
+
*/
|
|
78
|
+
queueService?: FeedProtocol.QueueService;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Functions service.
|
|
82
|
+
* Available if the function is invoked in context of a space.
|
|
83
|
+
*/
|
|
84
|
+
functionsAiService?: EdgeFunctionEnv.FunctionsAiService;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* That space that the function is invoked in context of.
|
|
89
|
+
*/
|
|
90
|
+
spaceId?: SpaceId;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Hex-encoded space key.
|
|
94
|
+
* @deprecated We need to remove this but ECHO keeps dragging this in.
|
|
95
|
+
*/
|
|
96
|
+
spaceKey?: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Automerge URL of the space-root document.
|
|
100
|
+
*/
|
|
101
|
+
spaceRootUrl?: string;
|
|
102
|
+
}
|
package/src/automerge.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type LeaveProtocolMessage = {
|
|
|
16
16
|
type: 'leave';
|
|
17
17
|
targetId?: PeerId;
|
|
18
18
|
senderId: PeerId;
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export type PeerProtocolMessage = {
|
|
@@ -39,6 +40,7 @@ export type RequestProtocolMessage = {
|
|
|
39
40
|
targetId: PeerId;
|
|
40
41
|
documentId: string;
|
|
41
42
|
data: Uint8Array;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
/**
|
|
@@ -50,6 +52,7 @@ export type SyncProtocolMessage = {
|
|
|
50
52
|
targetId: PeerId;
|
|
51
53
|
documentId: string;
|
|
52
54
|
data: Uint8Array;
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -61,6 +64,7 @@ export type UnavailableProtocolMessage = {
|
|
|
61
64
|
senderId: PeerId;
|
|
62
65
|
targetId: PeerId;
|
|
63
66
|
documentId: string;
|
|
67
|
+
metadata?: Record<string, unknown>;
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
/**
|
|
@@ -82,6 +86,7 @@ export type EphemeralProtocolMessage = {
|
|
|
82
86
|
sessionId: string;
|
|
83
87
|
documentId: string;
|
|
84
88
|
data: Uint8Array;
|
|
89
|
+
metadata?: Record<string, unknown>;
|
|
85
90
|
};
|
|
86
91
|
|
|
87
92
|
export type ErrorProtocolMessage = {
|
|
@@ -89,6 +94,7 @@ export type ErrorProtocolMessage = {
|
|
|
89
94
|
senderId?: PeerId;
|
|
90
95
|
targetId?: PeerId;
|
|
91
96
|
message: string;
|
|
97
|
+
metadata?: Record<string, unknown>;
|
|
92
98
|
};
|
|
93
99
|
|
|
94
100
|
export const MESSAGE_TYPE_COLLECTION_QUERY = 'collection-query';
|
|
@@ -104,6 +110,7 @@ export type CollectionQueryMessage = {
|
|
|
104
110
|
* Remote peer will skip sending the state if it has the same tag.
|
|
105
111
|
*/
|
|
106
112
|
stateTag?: string;
|
|
113
|
+
metadata?: Record<string, unknown>;
|
|
107
114
|
};
|
|
108
115
|
|
|
109
116
|
export const MESSAGE_TYPE_COLLECTION_STATE = 'collection-state';
|
|
@@ -123,6 +130,7 @@ export type CollectionStateMessage = {
|
|
|
123
130
|
* Identifier of the current state.
|
|
124
131
|
*/
|
|
125
132
|
stateTag?: string;
|
|
133
|
+
metadata?: Record<string, unknown>;
|
|
126
134
|
};
|
|
127
135
|
|
|
128
136
|
export type AutomergeProtocolMessage =
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/dashboard.proto (package dxos.agent.dashboard, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Runtime_Agent_Plugin } from "../config_pb.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/echo-proxy.proto (package dxos.agent.echoproxy, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
10
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Message } from "@bufbuild/protobuf";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/epoch.proto (package dxos.agent.epoch, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
10
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Message } from "@bufbuild/protobuf";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/functions.proto (package dxos.agent.functions, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
9
|
// TODO(burdon): dxos.agent.plugin.functions
|
|
10
10
|
|
|
11
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
12
|
-
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
11
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
13
|
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
14
14
|
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
15
15
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/bot.proto (package dxos.bot, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Invitation } from "./client/invitation_pb.js";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/client/invitation.proto (package dxos.client.services, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
9
|
// TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
|
|
10
10
|
|
|
11
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
12
|
-
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
11
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
13
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
14
14
|
import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
15
15
|
import { file_dxos_config } from "../config_pb.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/client/logging.proto (package dxos.client.services, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import { file_dxos_config } from "../config_pb.js";
|