@dxos/protocols 0.8.4-main.c85a9c8dae → 0.8.4-main.cb12b3f963
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/FeedProtocol.d.ts +5 -5
- package/dist/src/FeedProtocol.d.ts.map +1 -1
- package/dist/src/FeedProtocol.js +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +11 -5
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +59 -2
- 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 +64 -37
- 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 +112 -0
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +72 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +6 -0
- 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 +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +28 -0
- 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 +10 -5
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +39 -0
- 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 +27 -2
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +0 -10
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +24 -0
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +12 -7
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +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 +10 -44
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +11 -24
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +166 -1
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +12 -1
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/errors.d.ts.map +1 -1
- package/dist/src/edge/errors.js +1 -1
- package/dist/src/edge/errors.js.map +1 -1
- package/dist/src/edge/index.d.ts +1 -0
- package/dist/src/edge/index.d.ts.map +1 -1
- package/dist/src/edge/index.js +4 -3
- package/dist/src/edge/index.js.map +1 -1
- 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 +18 -18
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/encoding.d.ts +1 -1
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +132 -132
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +1 -1
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/helpers.d.ts +2 -2
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/index.js +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +10 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/indexing.test.js +1 -1
- 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 +1007 -1045
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +106 -94
- 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 +48 -96
- 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 +4 -8
- 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 +17 -34
- 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 +296 -10
- 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 +31 -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.js +1 -1
- package/dist/src/proto/substitutions.d.ts +8 -8
- package/dist/src/proto/substitutions.d.ts.map +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/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -30
- package/src/FeedProtocol.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +14 -8
- package/src/buf/proto/gen/dxos/client/services_pb.ts +108 -39
- package/src/buf/proto/gen/dxos/config_pb.ts +131 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +38 -5
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +48 -2
- package/src/buf/proto/gen/dxos/iframe_pb.ts +1 -13
- package/src/buf/proto/gen/dxos/rpc_pb.ts +36 -7
- package/src/buf/proto/gen/dxos/tracing_pb.ts +11 -178
- package/src/edge/EdgeFunctionEnv.ts +15 -27
- package/src/edge/edge.ts +119 -1
- package/src/edge/index.ts +1 -0
- package/src/edge/registry.ts +164 -0
- package/src/errors/encoding.ts +0 -1
- package/src/errors/errors.ts +0 -1
- package/src/index.ts +0 -1
- package/src/proto/dxos/client/queue.proto +7 -4
- package/src/proto/dxos/client/services.proto +18 -1
- package/src/proto/dxos/config.proto +50 -1
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +15 -0
- package/src/proto/dxos/iframe.proto +0 -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 +1007 -1045
- package/src/proto/gen/dxos/config.ts +115 -100
- package/src/proto/gen/dxos/devtools/host.ts +48 -96
- 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 +4 -8
- package/src/proto/gen/dxos/echo/service.ts +17 -34
- 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 +296 -10
- package/src/proto/gen/index.ts +32 -8
- package/src/space-archive.ts +70 -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/tracing.ts +0 -86
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type SpaceId } from '@dxos/keys';
|
|
2
2
|
import type * as FeedProtocol from '../FeedProtocol';
|
|
3
|
-
import { type
|
|
3
|
+
import { type QueryRequest, type QueryResponse } from '../proto/gen/dxos/echo/query';
|
|
4
|
+
import { type CreateDocumentResponse } from '../proto/gen/dxos/echo/service';
|
|
4
5
|
/**
|
|
5
6
|
* Environment available to the function running on Cloudflare.
|
|
6
7
|
*/
|
|
@@ -14,24 +15,22 @@ export interface Env {
|
|
|
14
15
|
*
|
|
15
16
|
* NOTE: Currently unused in functions.
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
18
|
+
export interface TraceContext {
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Database API for other CF services like functions.
|
|
21
22
|
*/
|
|
22
23
|
export interface DataService {
|
|
23
|
-
getSpaceMeta(ctx:
|
|
24
|
-
getDocument(ctx:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
createDocument(ctx: ExecutionContext, request: CreateDocumentRequest): Promise<RpcResult<CreateDocumentResponse>>;
|
|
29
|
-
changeDocument(ctx: ExecutionContext, spaceId: SpaceId, documentId: string, changes: Uint8Array): Promise<void>;
|
|
24
|
+
getSpaceMeta(ctx: TraceContext, spaceId: SpaceId): Promise<RpcResult<SpaceMeta | undefined>>;
|
|
25
|
+
getDocument(ctx: TraceContext, spaceId: SpaceId, documentId: string): Promise<RpcResult<RawDocument | undefined>>;
|
|
26
|
+
execQuery(ctx: TraceContext, request: QueryRequest): Promise<RpcResult<QueryResponse>>;
|
|
27
|
+
createDocument(ctx: TraceContext, spaceId: SpaceId, initialValue?: Record<string, any>): Promise<RpcResult<CreateDocumentResponse>>;
|
|
28
|
+
changeDocument(ctx: TraceContext, spaceId: SpaceId, documentId: string, changes: Uint8Array): Promise<void>;
|
|
30
29
|
}
|
|
31
30
|
export interface QueueService {
|
|
32
|
-
queryQueue: (ctx:
|
|
33
|
-
insertIntoQueue: (ctx:
|
|
34
|
-
deleteFromQueue: (ctx:
|
|
31
|
+
queryQueue: (ctx: TraceContext, request: FeedProtocol.QueryQueueRequest) => Promise<RpcResult<FeedProtocol.QueryResult>>;
|
|
32
|
+
insertIntoQueue: (ctx: TraceContext, request: FeedProtocol.InsertIntoQueueRequest) => Promise<RpcResult<RpcDisposable>>;
|
|
33
|
+
deleteFromQueue: (ctx: TraceContext, request: FeedProtocol.DeleteFromQueueRequest) => Promise<RpcResult<RpcDisposable>>;
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
* FunctionsAiService API for other CF services like functions.
|
|
@@ -53,18 +52,6 @@ export type SpaceMeta = {
|
|
|
53
52
|
spaceKey: string;
|
|
54
53
|
rootDocumentId: string;
|
|
55
54
|
};
|
|
56
|
-
export type QueryRequest = {
|
|
57
|
-
spaceId: string;
|
|
58
|
-
type?: string;
|
|
59
|
-
where?: Record<string, any>;
|
|
60
|
-
objectIds?: string[];
|
|
61
|
-
cursor?: string;
|
|
62
|
-
limit?: number;
|
|
63
|
-
};
|
|
64
|
-
export type QueryResponse = {
|
|
65
|
-
results: ObjectSnapshot[];
|
|
66
|
-
cursor?: string;
|
|
67
|
-
};
|
|
68
55
|
/**
|
|
69
56
|
* TODO(yaroslav): make Indexer return EchoObject after create() can properly reconstruct an object
|
|
70
57
|
* from this structure (meta, id and type aren't handled properly)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFunctionEnv.d.ts","sourceRoot":"","sources":["../../../src/edge/EdgeFunctionEnv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,KAAK,YAAY,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"EdgeFunctionEnv.d.ts","sourceRoot":"","sources":["../../../src/edge/EdgeFunctionEnv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,KAAK,YAAY,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,C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I,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,aAAa,GAAG,CAAC,CAAC"}
|
package/dist/src/edge/edge.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { SpaceId } from '@dxos/keys';
|
|
3
|
+
/**
|
|
4
|
+
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EDGE_CLIENT_TAG_HEADER = "X-DXOS-Client-Tag";
|
|
3
7
|
export declare enum EdgeService {
|
|
4
8
|
AUTOMERGE_REPLICATOR = "automerge-replicator",
|
|
9
|
+
SUBDUCTION_REPLICATOR = "subduction-replicator",
|
|
5
10
|
/**
|
|
6
11
|
* Control feed replicator (hypercore append only logs) for the space.
|
|
7
12
|
*/
|
|
@@ -232,8 +237,14 @@ export type EdgeAuthChallenge = {
|
|
|
232
237
|
challenge: string;
|
|
233
238
|
};
|
|
234
239
|
export declare enum OAuthProvider {
|
|
240
|
+
ATPROTO = "atproto",
|
|
241
|
+
/** @deprecated Use ATPROTO instead. */
|
|
242
|
+
BLUESKY = "bluesky",
|
|
243
|
+
GITHUB = "github",
|
|
235
244
|
GOOGLE = "google",
|
|
236
|
-
|
|
245
|
+
LINEAR = "linear",
|
|
246
|
+
SLACK = "slack",
|
|
247
|
+
TRELLO = "trello"
|
|
237
248
|
}
|
|
238
249
|
export declare const InitiateOAuthFlowRequestSchema: Schema.Struct<{
|
|
239
250
|
provider: Schema.Enums<typeof OAuthProvider>;
|
|
@@ -349,5 +360,159 @@ export declare const EdgeHttpErrorCodec: Readonly<{
|
|
|
349
360
|
encode: (err: Error) => Response;
|
|
350
361
|
decode: (response: Response) => Promise<Error | undefined>;
|
|
351
362
|
}>;
|
|
363
|
+
export type ListSpacesRequest = {
|
|
364
|
+
limit?: number;
|
|
365
|
+
cursor?: string;
|
|
366
|
+
order?: 'asc' | 'desc';
|
|
367
|
+
};
|
|
368
|
+
export type ListSpacesResponse = {
|
|
369
|
+
spaces: SpaceActivityEntry[];
|
|
370
|
+
cursor?: string;
|
|
371
|
+
limit: number;
|
|
372
|
+
};
|
|
373
|
+
export type ListActiveIdentitiesRequest = {
|
|
374
|
+
cursor?: string;
|
|
375
|
+
limit?: number;
|
|
376
|
+
};
|
|
377
|
+
export type ListActiveIdentitiesResponse = {
|
|
378
|
+
identities: {
|
|
379
|
+
identityKey: string;
|
|
380
|
+
haloSpaceId: string | null;
|
|
381
|
+
createdAt: string | null;
|
|
382
|
+
agentKey: string | null;
|
|
383
|
+
hasRecovery: boolean;
|
|
384
|
+
}[];
|
|
385
|
+
cursor?: string;
|
|
386
|
+
complete: boolean;
|
|
387
|
+
totalCount: number;
|
|
388
|
+
};
|
|
389
|
+
export type InspectSpaceRequest = {
|
|
390
|
+
spaceId: string;
|
|
391
|
+
};
|
|
392
|
+
export type InspectSpaceResponse = {
|
|
393
|
+
spaceId: string;
|
|
394
|
+
metadata: {
|
|
395
|
+
createdAt: string;
|
|
396
|
+
identityKey?: string;
|
|
397
|
+
status?: 'active' | 'deleting';
|
|
398
|
+
} | null;
|
|
399
|
+
members: {
|
|
400
|
+
count: number;
|
|
401
|
+
list: {
|
|
402
|
+
identityKey: string;
|
|
403
|
+
role?: string;
|
|
404
|
+
agentKey?: string;
|
|
405
|
+
}[];
|
|
406
|
+
};
|
|
407
|
+
controlFeeds: {
|
|
408
|
+
replicationProgress: {
|
|
409
|
+
[feedKey: string]: {
|
|
410
|
+
replicated: number;
|
|
411
|
+
processed: number;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
echo: {
|
|
416
|
+
dataFeeds: {
|
|
417
|
+
count: number;
|
|
418
|
+
totalBlocks: number;
|
|
419
|
+
byNamespace: {
|
|
420
|
+
namespace: string;
|
|
421
|
+
feeds: {
|
|
422
|
+
feedId: string;
|
|
423
|
+
blockCount: number;
|
|
424
|
+
}[];
|
|
425
|
+
}[];
|
|
426
|
+
};
|
|
427
|
+
documentCount: number;
|
|
428
|
+
objectCount: number;
|
|
429
|
+
deletedObjectCount: number;
|
|
430
|
+
indexedDocumentCount: number;
|
|
431
|
+
objectsByType: {
|
|
432
|
+
typeDxn: string;
|
|
433
|
+
count: number;
|
|
434
|
+
}[];
|
|
435
|
+
indexerStatus: {
|
|
436
|
+
indexingInProgress: boolean;
|
|
437
|
+
cursors: {
|
|
438
|
+
indexName: string;
|
|
439
|
+
sourceName: string;
|
|
440
|
+
resourceId: string | null;
|
|
441
|
+
cursor: string | number;
|
|
442
|
+
}[];
|
|
443
|
+
totalChanges: number;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
usageInLast30Days: {
|
|
447
|
+
lastActivity: string | null;
|
|
448
|
+
wsEvents: number;
|
|
449
|
+
httpEvents: number;
|
|
450
|
+
totalEvents: number;
|
|
451
|
+
} | null;
|
|
452
|
+
durableObjects: {
|
|
453
|
+
type: string;
|
|
454
|
+
doId: string;
|
|
455
|
+
}[];
|
|
456
|
+
};
|
|
457
|
+
export type InspectIdentityRequest = {
|
|
458
|
+
identityKey: string;
|
|
459
|
+
};
|
|
460
|
+
export type InspectIdentityResponse = {
|
|
461
|
+
identityKey: string;
|
|
462
|
+
agentKey: string | null;
|
|
463
|
+
haloSpaceId: string | null;
|
|
464
|
+
hasRecovery: boolean;
|
|
465
|
+
routerDoId: string;
|
|
466
|
+
agentDoId: string | null;
|
|
467
|
+
ownedFunctions: {
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
versionCount: number;
|
|
471
|
+
}[];
|
|
472
|
+
spaces: InspectSpaceResponse[];
|
|
473
|
+
};
|
|
474
|
+
/** Matches the SerializedSpace format from @dxos/echo-db, extended with spaceId. */
|
|
475
|
+
export type SpaceExportPayload = {
|
|
476
|
+
version: number;
|
|
477
|
+
timestamp: string;
|
|
478
|
+
spaceId: string;
|
|
479
|
+
objects: Record<string, unknown>[];
|
|
480
|
+
};
|
|
481
|
+
export type SpaceActivityEntry = {
|
|
482
|
+
spaceId: string;
|
|
483
|
+
lastActivity: string;
|
|
484
|
+
totalEvents: number;
|
|
485
|
+
metadata: {
|
|
486
|
+
createdAt: string;
|
|
487
|
+
identityKey?: string;
|
|
488
|
+
status?: 'active' | 'deleting';
|
|
489
|
+
} | null;
|
|
490
|
+
};
|
|
491
|
+
export type SpaceExportResult = {
|
|
492
|
+
spaceId: string;
|
|
493
|
+
downloadPath: string;
|
|
494
|
+
downloadUrl: string;
|
|
495
|
+
expiresAt: string;
|
|
496
|
+
objectCount: number;
|
|
497
|
+
sizeBytes: number;
|
|
498
|
+
};
|
|
499
|
+
export type ExportSpaceRequest = {
|
|
500
|
+
spaceId: string;
|
|
501
|
+
origin: string;
|
|
502
|
+
};
|
|
503
|
+
export type DeleteSpaceRequest = {
|
|
504
|
+
spaceId: string;
|
|
505
|
+
};
|
|
506
|
+
export type DeleteSpaceResponse = {
|
|
507
|
+
status: string;
|
|
508
|
+
spaceId: string;
|
|
509
|
+
};
|
|
510
|
+
export type DeleteIdentityRequest = {
|
|
511
|
+
identityKey: string;
|
|
512
|
+
};
|
|
513
|
+
export type DeleteIdentityResponse = {
|
|
514
|
+
status: string;
|
|
515
|
+
identityKey: string;
|
|
516
|
+
};
|
|
352
517
|
export {};
|
|
353
518
|
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAI1D,oBAAY,WAAW;IACrB,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C;;OAEG;IAEH,eAAe,oBAAoB;IACnC;;OAEG;IAEH,gBAAgB,qBAAqB;IACrC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;EAMpB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AACvF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,KAAK,CAAoB,CAAC;AAExG,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,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E,MAAM,MAAM,qBAAqB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/dist/src/edge/edge.js
CHANGED
|
@@ -5,11 +5,16 @@ import * as Schema from 'effect/Schema';
|
|
|
5
5
|
import { BaseError } from '@dxos/errors';
|
|
6
6
|
import { invariant } from '@dxos/invariant';
|
|
7
7
|
import { SpaceId } from '@dxos/keys';
|
|
8
|
+
/**
|
|
9
|
+
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
10
|
+
*/
|
|
11
|
+
export const EDGE_CLIENT_TAG_HEADER = 'X-DXOS-Client-Tag';
|
|
8
12
|
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
9
13
|
// If we would rename it, we need to be careful to not break composer production.
|
|
10
14
|
export var EdgeService;
|
|
11
15
|
(function (EdgeService) {
|
|
12
16
|
EdgeService["AUTOMERGE_REPLICATOR"] = "automerge-replicator";
|
|
17
|
+
EdgeService["SUBDUCTION_REPLICATOR"] = "subduction-replicator";
|
|
13
18
|
/**
|
|
14
19
|
* Control feed replicator (hypercore append only logs) for the space.
|
|
15
20
|
*/
|
|
@@ -80,8 +85,14 @@ export var EdgeAgentStatus;
|
|
|
80
85
|
})(EdgeAgentStatus || (EdgeAgentStatus = {}));
|
|
81
86
|
export var OAuthProvider;
|
|
82
87
|
(function (OAuthProvider) {
|
|
83
|
-
OAuthProvider["
|
|
88
|
+
OAuthProvider["ATPROTO"] = "atproto";
|
|
89
|
+
/** @deprecated Use ATPROTO instead. */
|
|
84
90
|
OAuthProvider["BLUESKY"] = "bluesky";
|
|
91
|
+
OAuthProvider["GITHUB"] = "github";
|
|
92
|
+
OAuthProvider["GOOGLE"] = "google";
|
|
93
|
+
OAuthProvider["LINEAR"] = "linear";
|
|
94
|
+
OAuthProvider["SLACK"] = "slack";
|
|
95
|
+
OAuthProvider["TRELLO"] = "trello";
|
|
85
96
|
})(OAuthProvider || (OAuthProvider = {}));
|
|
86
97
|
export const InitiateOAuthFlowRequestSchema = Schema.Struct({
|
|
87
98
|
provider: Schema.Enums(OAuthProvider),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAE1D,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,WAgBX;AAhBD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,8DAA+C,CAAA;IAC/C;;OAEG;IACH,sEAAsE;IACtE,kDAAmC,CAAA;IACnC;;OAEG;IACH,yFAAyF;IACzF,oDAAqC,CAAA;IACrC,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EAhBW,WAAW,KAAX,WAAW,QAgBtB;AA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"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/edge/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAkC,MAAM,WAAW,CAAC;AAGjG;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,OAAc,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,GAAG,mBAAmB,CAUjG;IAED,OAAoB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAOpF;IAED,OAAc,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB,CAM1E;IAED,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,YAAY,IAAI,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,EAMA;CACF;AAED,qBAAa,sBAAuB,SAAQ,mBAAmB;aAE3C,SAAS,EAAE,MAAM;IADnC,YACkB,SAAS,EAAE,MAAM,EACjC,IAAI,EAAE,aAAa,EAGpB;CACF"}
|
package/dist/src/edge/errors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
import { EdgeHttpErrorCodec, ErrorCodec } from
|
|
4
|
+
import { EdgeHttpErrorCodec, ErrorCodec } from './edge.js';
|
|
5
5
|
// TODO(burdon): Reconcile with @dxos/errors.
|
|
6
6
|
/**
|
|
7
7
|
* Error thrown when a call to the Edge service fails.
|
|
@@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AAG,CAAC,QAAkB,EAAE,EAAE;IACjD,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAC/D,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE;IACzC,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;QACnB,kBAAkB;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC;AAC1C,CAAC,CAAC"}
|
package/dist/src/edge/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edge/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edge/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
package/dist/src/edge/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
export * from
|
|
5
|
-
export * as EdgeFunctionEnv from
|
|
6
|
-
export * from
|
|
4
|
+
export * from './edge.js';
|
|
5
|
+
export * as EdgeFunctionEnv from './EdgeFunctionEnv.js';
|
|
6
|
+
export * from './errors.js';
|
|
7
|
+
export * from './registry.js';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edge/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edge/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
/**
|
|
3
|
+
* Hydrated plugin metadata, mirroring the @dxos/app-framework `Plugin.Meta` shape.
|
|
4
|
+
*
|
|
5
|
+
* Defined locally rather than imported from @dxos/app-framework to keep the protocols
|
|
6
|
+
* package free of UI/runtime dependencies. Consumers can treat decoded values as
|
|
7
|
+
* `Plugin.Meta` directly.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PluginMetaSchema: Schema.Struct<{
|
|
10
|
+
id: Schema.filter<typeof Schema.String>;
|
|
11
|
+
name: Schema.filter<typeof Schema.String>;
|
|
12
|
+
description: Schema.optional<typeof Schema.String>;
|
|
13
|
+
author: Schema.optional<typeof Schema.String>;
|
|
14
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
15
|
+
source: Schema.optional<typeof Schema.String>;
|
|
16
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
17
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
18
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
19
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
20
|
+
}>;
|
|
21
|
+
export type PluginMeta = Schema.Schema.Type<typeof PluginMetaSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Health signal the registry service attaches to a hydrated entry when a refresh fails.
|
|
24
|
+
* Clients surface the appropriate badge or filter entries based on this field.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PluginHealthSchema: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
27
|
+
export type PluginHealth = Schema.Schema.Type<typeof PluginHealthSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* Filename of the entry module every plugin must publish at the root of its bundle.
|
|
30
|
+
* The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
|
|
31
|
+
* configuration. `composerPlugin` outputs the bundle under this name so plugin authors
|
|
32
|
+
* never have to think about it.
|
|
33
|
+
*/
|
|
34
|
+
export declare const PLUGIN_ENTRY_FILENAME = "index.mjs";
|
|
35
|
+
/**
|
|
36
|
+
* Shape of the manifest-asset JSON the registry service fetches from each plugin's latest release.
|
|
37
|
+
*
|
|
38
|
+
* Emitted by `@dxos/app-framework/vite-plugin`'s `composerPlugin` (see
|
|
39
|
+
* `MANIFEST_ASSET_NAME`). Lists every file the plugin needs at runtime — the entry
|
|
40
|
+
* module ({@link PLUGIN_ENTRY_FILENAME}) plus any sibling CSS, code-split chunks,
|
|
41
|
+
* fonts, etc. — so the host can eagerly precache the whole bundle for offline use.
|
|
42
|
+
* Paths in `assets` are relative to the manifest's URL.
|
|
43
|
+
*/
|
|
44
|
+
export declare const PluginManifestSchema: Schema.Struct<{
|
|
45
|
+
id: Schema.filter<typeof Schema.String>;
|
|
46
|
+
name: Schema.filter<typeof Schema.String>;
|
|
47
|
+
description: Schema.optional<typeof Schema.String>;
|
|
48
|
+
author: Schema.optional<typeof Schema.String>;
|
|
49
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
50
|
+
source: Schema.optional<typeof Schema.String>;
|
|
51
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
52
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
53
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
54
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
55
|
+
/** Plugin version (semver). Sourced from the publishing project's `package.json`. */
|
|
56
|
+
version: Schema.filter<typeof Schema.String>;
|
|
57
|
+
/**
|
|
58
|
+
* Relative paths of every file the plugin needs at runtime, including the entry.
|
|
59
|
+
* Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
|
|
60
|
+
*/
|
|
61
|
+
assets: Schema.filter<Schema.Array$<typeof Schema.String>>;
|
|
62
|
+
}>;
|
|
63
|
+
export type PluginManifest = Schema.Schema.Type<typeof PluginManifestSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Single hydrated plugin entry returned by the registry service.
|
|
66
|
+
*/
|
|
67
|
+
export declare const PluginEntrySchema: Schema.Struct<{
|
|
68
|
+
/** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
|
|
69
|
+
repo: typeof Schema.String;
|
|
70
|
+
/** Plugin metadata from the repo's latest-release `manifest.json`. */
|
|
71
|
+
meta: Schema.Struct<{
|
|
72
|
+
id: Schema.filter<typeof Schema.String>;
|
|
73
|
+
name: Schema.filter<typeof Schema.String>;
|
|
74
|
+
description: Schema.optional<typeof Schema.String>;
|
|
75
|
+
author: Schema.optional<typeof Schema.String>;
|
|
76
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
77
|
+
source: Schema.optional<typeof Schema.String>;
|
|
78
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
79
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
80
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
81
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
84
|
+
* URL of the plugin's `manifest.json`. Composer's URL loader fetches this, eagerly caches
|
|
85
|
+
* every declared asset via the platform `PluginAssetCache`, then dynamic-imports the entry.
|
|
86
|
+
* The URL must be CORS-safe and have its declared assets reachable as siblings.
|
|
87
|
+
*/
|
|
88
|
+
moduleUrl: typeof Schema.String;
|
|
89
|
+
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
90
|
+
releaseTag: typeof Schema.String;
|
|
91
|
+
/** Health signal set by the service when an entry fails to refresh. */
|
|
92
|
+
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
93
|
+
/** Unix ms when this entry was last successfully hydrated. */
|
|
94
|
+
hydratedAt: typeof Schema.Number;
|
|
95
|
+
}>;
|
|
96
|
+
export type PluginEntry = Schema.Schema.Type<typeof PluginEntrySchema>;
|
|
97
|
+
/**
|
|
98
|
+
* Response body of `GET /registry/plugins`.
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetPluginsResponseBodySchema: Schema.Struct<{
|
|
101
|
+
/** Wire-format schema version, pinned to 1. */
|
|
102
|
+
version: Schema.Literal<[1]>;
|
|
103
|
+
/** Hydrated entries. Order matches the order in the upstream catalog manifest. */
|
|
104
|
+
plugins: Schema.Array$<Schema.Struct<{
|
|
105
|
+
/** GitHub repository in `owner/name` form. Empty string for entries sourced from a `manifestUrl`. */
|
|
106
|
+
repo: typeof Schema.String;
|
|
107
|
+
/** Plugin metadata from the repo's latest-release `manifest.json`. */
|
|
108
|
+
meta: Schema.Struct<{
|
|
109
|
+
id: Schema.filter<typeof Schema.String>;
|
|
110
|
+
name: Schema.filter<typeof Schema.String>;
|
|
111
|
+
description: Schema.optional<typeof Schema.String>;
|
|
112
|
+
author: Schema.optional<typeof Schema.String>;
|
|
113
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
114
|
+
source: Schema.optional<typeof Schema.String>;
|
|
115
|
+
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
116
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
117
|
+
icon: Schema.optional<typeof Schema.String>;
|
|
118
|
+
iconHue: Schema.optional<typeof Schema.String>;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* URL of the plugin's `manifest.json`. Composer's URL loader fetches this, eagerly caches
|
|
122
|
+
* every declared asset via the platform `PluginAssetCache`, then dynamic-imports the entry.
|
|
123
|
+
* The URL must be CORS-safe and have its declared assets reachable as siblings.
|
|
124
|
+
*/
|
|
125
|
+
moduleUrl: typeof Schema.String;
|
|
126
|
+
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
127
|
+
releaseTag: typeof Schema.String;
|
|
128
|
+
/** Health signal set by the service when an entry fails to refresh. */
|
|
129
|
+
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
130
|
+
/** Unix ms when this entry was last successfully hydrated. */
|
|
131
|
+
hydratedAt: typeof Schema.Number;
|
|
132
|
+
}>>;
|
|
133
|
+
/** Unix ms timestamp of the most recent successful refresh cycle. */
|
|
134
|
+
refreshedAt: typeof Schema.Number;
|
|
135
|
+
}>;
|
|
136
|
+
export type GetPluginsResponseBody = Schema.Schema.Type<typeof GetPluginsResponseBodySchema>;
|
|
137
|
+
/**
|
|
138
|
+
* A single published version of a plugin, as returned by the registry service's
|
|
139
|
+
* versions endpoint. Sourced from the publishing project's GitHub releases.
|
|
140
|
+
*
|
|
141
|
+
* The host treats `tag` opaquely; ordering — newest first — is the service's
|
|
142
|
+
* responsibility (typically reverse-chronological by release date).
|
|
143
|
+
*/
|
|
144
|
+
export declare const PluginVersionSchema: Schema.Struct<{
|
|
145
|
+
/** Release tag (e.g. `v0.1.21`). Stable identifier for this version. */
|
|
146
|
+
tag: Schema.filter<typeof Schema.String>;
|
|
147
|
+
/**
|
|
148
|
+
* URL of this version's `manifest.json`. Matches the shape of {@link PluginEntrySchema.fields.moduleUrl}
|
|
149
|
+
* but pinned to a specific release rather than the latest. Composer's URL loader fetches
|
|
150
|
+
* this when the user installs / rolls back to this version.
|
|
151
|
+
*/
|
|
152
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
153
|
+
/** Unix ms when the version was released. Optional — services that lack this signal can omit. */
|
|
154
|
+
releasedAt: Schema.optional<typeof Schema.Number>;
|
|
155
|
+
}>;
|
|
156
|
+
export type PluginVersion = Schema.Schema.Type<typeof PluginVersionSchema>;
|
|
157
|
+
/**
|
|
158
|
+
* Response body of `GET /registry/plugins/:repo/versions`.
|
|
159
|
+
*
|
|
160
|
+
* `:repo` is the GitHub `owner/name` form, URL-encoded (so `/` is escaped).
|
|
161
|
+
* Returns all hydratable releases for the repo, newest first; clients display them
|
|
162
|
+
* in the version picker for install / roll-back. Unauthenticated; same surface area
|
|
163
|
+
* as `GET /registry/plugins`.
|
|
164
|
+
*/
|
|
165
|
+
export declare const GetPluginVersionsResponseBodySchema: Schema.Struct<{
|
|
166
|
+
/** Wire-format schema version, pinned to 1. */
|
|
167
|
+
version: Schema.Literal<[1]>;
|
|
168
|
+
/** Available versions for the requested repo, newest first. */
|
|
169
|
+
versions: Schema.Array$<Schema.Struct<{
|
|
170
|
+
/** Release tag (e.g. `v0.1.21`). Stable identifier for this version. */
|
|
171
|
+
tag: Schema.filter<typeof Schema.String>;
|
|
172
|
+
/**
|
|
173
|
+
* URL of this version's `manifest.json`. Matches the shape of {@link PluginEntrySchema.fields.moduleUrl}
|
|
174
|
+
* but pinned to a specific release rather than the latest. Composer's URL loader fetches
|
|
175
|
+
* this when the user installs / rolls back to this version.
|
|
176
|
+
*/
|
|
177
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
178
|
+
/** Unix ms when the version was released. Optional — services that lack this signal can omit. */
|
|
179
|
+
releasedAt: Schema.optional<typeof Schema.Number>;
|
|
180
|
+
}>>;
|
|
181
|
+
/** Unix ms timestamp of the most recent successful refresh cycle for this repo. */
|
|
182
|
+
refreshedAt: typeof Schema.Number;
|
|
183
|
+
}>;
|
|
184
|
+
export type GetPluginVersionsResponseBody = Schema.Schema.Type<typeof GetPluginVersionsResponseBodySchema>;
|
|
185
|
+
/**
|
|
186
|
+
* A catalog entry. Two flavours:
|
|
187
|
+
* - `{ repo }`: the registry service hydrates from the GitHub repo's latest release.
|
|
188
|
+
* Used by the production catalog.
|
|
189
|
+
* - `{ manifestUrl }`: the registry service skips GitHub and fetches the manifest directly.
|
|
190
|
+
* Used for local development against an in-progress plugin (e.g. served by `vite preview`)
|
|
191
|
+
* so authors can iterate without publishing a release.
|
|
192
|
+
*/
|
|
193
|
+
export declare const RegistryEntrySchema: Schema.Union<[Schema.Struct<{
|
|
194
|
+
repo: Schema.filter<typeof Schema.String>;
|
|
195
|
+
}>, Schema.Struct<{
|
|
196
|
+
manifestUrl: Schema.filter<typeof Schema.String>;
|
|
197
|
+
}>]>;
|
|
198
|
+
export type RegistryEntry = Schema.Schema.Type<typeof RegistryEntrySchema>;
|
|
199
|
+
/**
|
|
200
|
+
* Shape of the catalog manifest published in the upstream community-plugins repo.
|
|
201
|
+
* Extra keys (e.g. `$schema`) are permitted.
|
|
202
|
+
*/
|
|
203
|
+
export declare const RegistryManifestSchema: Schema.TypeLiteral<{
|
|
204
|
+
version: Schema.Literal<[1]>;
|
|
205
|
+
plugins: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
206
|
+
repo: Schema.filter<typeof Schema.String>;
|
|
207
|
+
}>, Schema.Struct<{
|
|
208
|
+
manifestUrl: Schema.filter<typeof Schema.String>;
|
|
209
|
+
}>]>>;
|
|
210
|
+
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
211
|
+
export type RegistryManifest = Schema.Schema.Type<typeof RegistryManifestSchema>;
|
|
212
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eA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