@dxos/protocols 0.8.4-main.fffef41 → 0.8.4-staging.60fe92afc8
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/LICENSE +102 -5
- 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 +15 -2
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/TraceProtocol.d.ts +15 -0
- package/dist/src/TraceProtocol.d.ts.map +1 -0
- package/dist/src/TraceProtocol.js +4 -0
- package/dist/src/TraceProtocol.js.map +1 -0
- package/dist/src/automerge.d.ts +203 -13
- package/dist/src/automerge.d.ts.map +1 -1
- package/dist/src/automerge.js +17 -0
- package/dist/src/automerge.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +16 -4
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +17 -5
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +311 -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 +59 -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 +78 -3
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js +68 -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/devtools/host_pb.d.ts +70 -0
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +16 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +12 -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/echo/query_pb.d.ts +12 -2
- 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 +1 -1
- 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 +68 -7
- 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 +15 -5
- package/dist/src/buf/proto/gen/dxos/echo/service_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/google_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +65 -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 +52 -22
- 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 +11 -4
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +12 -5
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -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 +11 -45
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +134 -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 +698 -0
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +278 -0
- package/dist/src/edge/edge.js.map +1 -0
- package/dist/src/edge/edge.test.d.ts +2 -0
- package/dist/src/edge/edge.test.d.ts.map +1 -0
- package/dist/src/edge/edge.test.js +50 -0
- package/dist/src/edge/edge.test.js.map +1 -0
- package/dist/src/{edge-error.d.ts → edge/errors.d.ts} +6 -7
- package/dist/src/edge/errors.d.ts.map +1 -0
- package/dist/src/{edge-error.js → edge/errors.js} +13 -14
- package/dist/src/edge/errors.js.map +1 -0
- package/dist/src/edge/index.d.ts +5 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +8 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/edge/registry.d.ts +212 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +139 -0
- package/dist/src/edge/registry.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +86 -8
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/base-errors.js +4 -20
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/errors/encoding.d.ts +2 -2
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +619 -42
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +49 -103
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +9 -5
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/helpers.js +3 -3
- package/dist/src/errors/helpers.js.map +1 -1
- package/dist/src/errors/index.d.ts +5 -5
- package/dist/src/errors/parameter.d.ts.map +1 -1
- package/dist/src/feed-replication.d.ts.map +1 -1
- package/dist/src/index.d.ts +12 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/invitation.js +3 -3
- 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/profile-archive.d.ts +14 -1
- package/dist/src/profile-archive.d.ts.map +1 -1
- package/dist/src/profile-archive.js +2 -0
- package/dist/src/profile-archive.js.map +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 +1050 -915
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +109 -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 +101 -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 +16 -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 +61 -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 +47 -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 +16 -28
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js +3 -2
- 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 +326 -40
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js +127 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +47 -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 +20 -35
- package/src/FeedProtocol.ts +323 -0
- package/src/FunctionProtocol.ts +17 -6
- package/src/TraceProtocol.ts +21 -0
- package/src/automerge.ts +239 -13
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +20 -6
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +373 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +129 -40
- package/src/buf/proto/gen/dxos/config_pb.ts +132 -2
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +83 -2
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +16 -2
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +16 -4
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +81 -13
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +39 -6
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +100 -23
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +14 -6
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -14
- package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/rpc_pb.ts +37 -8
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
- package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
- package/src/codec.test.ts +1 -1
- package/src/edge/EdgeFunctionEnv.ts +228 -0
- package/src/edge/edge.test.ts +64 -0
- package/src/edge/edge.ts +818 -0
- package/src/{edge-error.ts → edge/errors.ts} +15 -16
- package/src/edge/index.ts +8 -0
- package/src/edge/registry.ts +164 -0
- package/src/errors/base-errors.ts +4 -22
- package/src/errors/encoding.ts +2 -3
- package/src/errors/errors.test.ts +2 -2
- package/src/errors/errors.ts +57 -124
- package/src/errors/helpers.ts +6 -7
- package/src/errors/index.ts +5 -5
- package/src/feed-replication.ts +1 -0
- package/src/index.ts +12 -13
- package/src/indexing.test.ts +1 -1
- package/src/invitation.ts +3 -3
- package/src/messenger.ts +22 -0
- package/src/profile-archive.ts +13 -0
- package/src/proto/dxos/client/invitation.proto +9 -2
- package/src/proto/dxos/client/queue.proto +102 -0
- package/src/proto/dxos/client/services.proto +23 -1
- package/src/proto/dxos/config.proto +50 -1
- package/src/proto/dxos/devtools/host.proto +27 -0
- package/src/proto/dxos/echo/metadata.proto +6 -0
- package/src/proto/dxos/echo/query.proto +4 -1
- package/src/proto/dxos/echo/service.proto +38 -4
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +24 -0
- package/src/proto/dxos/halo/invitations.proto +5 -2
- 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 +1050 -915
- package/src/proto/gen/dxos/config.ts +115 -100
- package/src/proto/gen/dxos/devtools/host.ts +101 -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 +16 -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 +60 -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 +47 -43
- package/src/proto/gen/dxos/halo/invitations.ts +16 -28
- 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 +326 -40
- package/src/proto/gen/index.ts +48 -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.map +0 -1
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts +0 -333
- package/dist/src/edge.d.ts.map +0 -1
- package/dist/src/edge.js +0 -155
- 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 -37
- 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.ts +0 -477
- package/src/query.ts +0 -8
- package/src/queue.ts +0 -51
- package/src/tracing.ts +0 -86
package/src/proto/index.ts
CHANGED
package/src/proto/types.ts
CHANGED
package/src/space-archive.ts
CHANGED
|
@@ -11,8 +11,13 @@ import type { IdentityDid, SpaceId } from '@dxos/keys';
|
|
|
11
11
|
*
|
|
12
12
|
* A tar archive with files:
|
|
13
13
|
* - metadata.json -- JSON-encoded {@link SpaceArchiveMetadata} file.
|
|
14
|
-
* - documents
|
|
14
|
+
* - documents/
|
|
15
15
|
* - <document-id>.bin -- Automerge document.
|
|
16
|
+
* - feeds/
|
|
17
|
+
* - <feed-id>/
|
|
18
|
+
* - metadata.json -- JSON-encoded {@link FeedArchiveMetadata} file.
|
|
19
|
+
* - blocks-0.json -- JSON array of {@link FeedArchiveBlock} (chunks of 100).
|
|
20
|
+
* - blocks-1.json -- ...
|
|
16
21
|
*/
|
|
17
22
|
|
|
18
23
|
/**
|
|
@@ -60,7 +65,71 @@ export interface SpaceArchiveMetadata {
|
|
|
60
65
|
};
|
|
61
66
|
}
|
|
62
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Feed metadata stored in `feeds/<feed-id>/metadata.json`.
|
|
70
|
+
*/
|
|
71
|
+
export interface FeedArchiveMetadata {
|
|
72
|
+
/**
|
|
73
|
+
* Feed identifier.
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Feed namespace (e.g., 'data', 'trace').
|
|
79
|
+
*/
|
|
80
|
+
namespace: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Feed block stored in `feeds/<feed-id>/blocks-N.json`.
|
|
85
|
+
* Represents a single block from the feed.
|
|
86
|
+
*/
|
|
87
|
+
export interface FeedArchiveBlock {
|
|
88
|
+
/**
|
|
89
|
+
* Actor that produced this block.
|
|
90
|
+
*/
|
|
91
|
+
actorId: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Per-feed monotonic sequence assigned by the actor.
|
|
95
|
+
*/
|
|
96
|
+
sequence: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Actor of the immediate predecessor block, if any.
|
|
100
|
+
*/
|
|
101
|
+
prevActorId: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Sequence of the immediate predecessor block, if any.
|
|
105
|
+
*/
|
|
106
|
+
prevSequence: number | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Globally ordered position assigned by a position authority.
|
|
110
|
+
*/
|
|
111
|
+
position: number | null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Milliseconds since Unix epoch when the block was created.
|
|
115
|
+
*/
|
|
116
|
+
timestamp: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Base64-encoded serialized application payload.
|
|
120
|
+
*/
|
|
121
|
+
data: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Number of blocks per chunk file.
|
|
126
|
+
*/
|
|
127
|
+
export const FEED_ARCHIVE_BLOCKS_PER_CHUNK = 100;
|
|
128
|
+
|
|
63
129
|
export const SpaceArchiveFileStructure = {
|
|
64
130
|
metadata: 'metadata.json',
|
|
65
131
|
documents: 'documents',
|
|
132
|
+
feeds: 'feeds',
|
|
133
|
+
feedMetadata: 'metadata.json',
|
|
134
|
+
feedBlocksPrefix: 'blocks-',
|
|
66
135
|
} as const;
|
package/src/types.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { type PublicKey } from '@dxos/keys';
|
|
6
6
|
import { type Timeframe } from '@dxos/timeframe';
|
|
7
7
|
|
|
8
|
-
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed.
|
|
9
|
-
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object.
|
|
8
|
+
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed.ts';
|
|
9
|
+
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object.ts';
|
|
10
10
|
|
|
11
11
|
// TODO(burdon): Replace with proto definition.
|
|
12
12
|
export type FeedMeta = {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge-error.d.ts","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAkC,MAAM,WAAW,CAAC;AAGjG;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;WAC9B,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,GAAG,mBAAmB;WAY9E,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC;WASvE,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAQ3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,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E,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.d.ts
DELETED
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { SpaceId } from '@dxos/keys';
|
|
3
|
-
export declare enum EdgeService {
|
|
4
|
-
AUTOMERGE_REPLICATOR = "automerge-replicator",
|
|
5
|
-
FEED_REPLICATOR = "feed-replicator",
|
|
6
|
-
SWARM = "swarm",
|
|
7
|
-
SIGNAL = "signal",
|
|
8
|
-
STATUS = "status"
|
|
9
|
-
}
|
|
10
|
-
export type EdgeSuccess<T> = {
|
|
11
|
-
success: true;
|
|
12
|
-
data: T;
|
|
13
|
-
};
|
|
14
|
-
export type SerializedError = {
|
|
15
|
-
code?: string;
|
|
16
|
-
message?: string;
|
|
17
|
-
context?: Record<string, unknown>;
|
|
18
|
-
stack?: string;
|
|
19
|
-
cause?: SerializedError;
|
|
20
|
-
};
|
|
21
|
-
export type EdgeErrorData = {
|
|
22
|
-
type: string;
|
|
23
|
-
} & Record<string, any>;
|
|
24
|
-
/**
|
|
25
|
-
* This is the shape of the error response from the Edge service,
|
|
26
|
-
* when the error is gracefully handled, the Response will be an object with this shape and have status code 200.
|
|
27
|
-
*/
|
|
28
|
-
export type EdgeFailure = {
|
|
29
|
-
/**
|
|
30
|
-
* Branded Type.
|
|
31
|
-
*/
|
|
32
|
-
success: false;
|
|
33
|
-
/**
|
|
34
|
-
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
35
|
-
*/
|
|
36
|
-
reason: string;
|
|
37
|
-
/**
|
|
38
|
-
* Cause Error captured on the EDGE service to aid debugging on the client.
|
|
39
|
-
*/
|
|
40
|
-
cause?: SerializedError;
|
|
41
|
-
/**
|
|
42
|
-
* Information that can be used to retry the request such that it will succeed, for example:
|
|
43
|
-
* 1. { type: 'auth_required', challenge: string }
|
|
44
|
-
* Requires retrying the request with challenge signature included.
|
|
45
|
-
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
46
|
-
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
47
|
-
* if the user confirms.
|
|
48
|
-
* When errorData is returned simply retrying the request won't have any effect.
|
|
49
|
-
* EdgeHttpClient should parse well-known errorData into Error types and throw.
|
|
50
|
-
*/
|
|
51
|
-
errorData?: EdgeErrorData;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Represents a body response from the Edge service.
|
|
55
|
-
*/
|
|
56
|
-
export type EdgeBody<T> = EdgeSuccess<T> | EdgeFailure;
|
|
57
|
-
/**
|
|
58
|
-
* Use this to create a response from the Edge service.
|
|
59
|
-
*/
|
|
60
|
-
export declare const EdgeResponse: Readonly<{
|
|
61
|
-
success: <T>(data: T, status?: number) => Response;
|
|
62
|
-
failure: ({ reason, cause, errorData, shouldRetryAfter, status, }: {
|
|
63
|
-
/**
|
|
64
|
-
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
65
|
-
*/
|
|
66
|
-
reason: string;
|
|
67
|
-
/**
|
|
68
|
-
* Error that caused the failure.
|
|
69
|
-
* Useful for debugging.
|
|
70
|
-
*/
|
|
71
|
-
cause?: Error;
|
|
72
|
-
/**
|
|
73
|
-
* Information that can be used to retry the request such that it will succeed, for example:
|
|
74
|
-
* 1. { type: 'auth_required', challenge: string }
|
|
75
|
-
* Requires retrying the request with challenge signature included.
|
|
76
|
-
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
77
|
-
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
78
|
-
* if the user confirms.
|
|
79
|
-
* When errorData is returned simply retrying the request won't have any effect.
|
|
80
|
-
* EdgeHttpClient should parse well-known errorData into Error types and throw.
|
|
81
|
-
*/
|
|
82
|
-
errorData?: EdgeErrorData;
|
|
83
|
-
/**
|
|
84
|
-
* If provided, this request will be marked as retryable and the client will wait for the specified number of milliseconds before retrying.
|
|
85
|
-
* If not provided, the client will not retry the request.
|
|
86
|
-
*/
|
|
87
|
-
shouldRetryAfter?: number;
|
|
88
|
-
/**
|
|
89
|
-
* Status code of the response.
|
|
90
|
-
* @default 500
|
|
91
|
-
*/
|
|
92
|
-
status?: number;
|
|
93
|
-
}) => Response;
|
|
94
|
-
}>;
|
|
95
|
-
export type GetNotarizationResponseBody = {
|
|
96
|
-
awaitingNotarization: {
|
|
97
|
-
credentials: string[];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
export type ExecuteWorkflowResponseBody = {
|
|
101
|
-
success: boolean;
|
|
102
|
-
reason?: string;
|
|
103
|
-
output?: any;
|
|
104
|
-
};
|
|
105
|
-
export type PostNotarizationRequestBody = {
|
|
106
|
-
credentials: string[];
|
|
107
|
-
};
|
|
108
|
-
export type JoinSpaceRequest = {
|
|
109
|
-
invitationId: string;
|
|
110
|
-
identityKey: string;
|
|
111
|
-
/**
|
|
112
|
-
* Base64 encoded signed challenge.
|
|
113
|
-
* Used to verify the IdentityKey in case of `invitation.authMethod === Invitation.AuthMethod.KNOWN_PUBLIC_KEY`
|
|
114
|
-
*/
|
|
115
|
-
signature?: string;
|
|
116
|
-
};
|
|
117
|
-
export type JoinSpaceResponseBody = {
|
|
118
|
-
spaceMemberCredential: string;
|
|
119
|
-
spaceGenesisFeedKey: string;
|
|
120
|
-
};
|
|
121
|
-
export type RecoverIdentitySignature = string | {
|
|
122
|
-
signature: string;
|
|
123
|
-
clientDataJson: string;
|
|
124
|
-
authenticatorData: string;
|
|
125
|
-
};
|
|
126
|
-
export type RecoverIdentityRequest = {
|
|
127
|
-
deviceKey: string;
|
|
128
|
-
controlFeedKey: string;
|
|
129
|
-
lookupKey?: string;
|
|
130
|
-
signature?: RecoverIdentitySignature;
|
|
131
|
-
token?: string;
|
|
132
|
-
};
|
|
133
|
-
export type RecoverIdentityResponseBody = {
|
|
134
|
-
identityKey: string;
|
|
135
|
-
haloSpaceKey: string;
|
|
136
|
-
genesisFeedKey: string;
|
|
137
|
-
deviceAuthCredential: string;
|
|
138
|
-
};
|
|
139
|
-
export type CreateAgentRequestBody = {
|
|
140
|
-
identityKey: string;
|
|
141
|
-
haloSpaceId: SpaceId;
|
|
142
|
-
haloSpaceKey: string;
|
|
143
|
-
};
|
|
144
|
-
export type CreateAgentResponseBody = {
|
|
145
|
-
deviceKey: string;
|
|
146
|
-
feedKey: string;
|
|
147
|
-
};
|
|
148
|
-
export type GetAgentStatusResponseBody = {
|
|
149
|
-
agent: {
|
|
150
|
-
deviceKey?: string;
|
|
151
|
-
status: EdgeAgentStatus;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
export type UploadFunctionRequest = {
|
|
155
|
-
name?: string;
|
|
156
|
-
version: string;
|
|
157
|
-
ownerPublicKey: string;
|
|
158
|
-
entryPoint: string;
|
|
159
|
-
assets: Record<string, Uint8Array>;
|
|
160
|
-
/**
|
|
161
|
-
* Runtime in Edge that will be used to run the function.
|
|
162
|
-
* Runtime cannot be changed once the function was deployed.
|
|
163
|
-
* @default Runtime.WORKERS_FOR_PLATFORMS
|
|
164
|
-
*/
|
|
165
|
-
runtime?: Runtime;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* Note: Do not change the values of these enums, this values are stored in the FunctionVersions database.
|
|
169
|
-
*/
|
|
170
|
-
export declare enum Runtime {
|
|
171
|
-
WORKERS_FOR_PLATFORMS = "WORKERS_FOR_PLATFORMS",
|
|
172
|
-
WORKER_LOADER = "WORKER_LOADER",
|
|
173
|
-
TEST = "TEST"
|
|
174
|
-
}
|
|
175
|
-
export type UploadFunctionResponseBody = {
|
|
176
|
-
functionId: string;
|
|
177
|
-
version: string;
|
|
178
|
-
meta: {
|
|
179
|
-
key?: string;
|
|
180
|
-
name?: string;
|
|
181
|
-
description?: string;
|
|
182
|
-
/**
|
|
183
|
-
* JSON Schema for the input of the function.
|
|
184
|
-
*/
|
|
185
|
-
inputSchema?: object;
|
|
186
|
-
/**
|
|
187
|
-
* JSON Schema for the output of the function.
|
|
188
|
-
*/
|
|
189
|
-
outputSchema?: object;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
export type CreateSpaceRequest = {
|
|
193
|
-
/**
|
|
194
|
-
* HEX encoded public key of the agent.
|
|
195
|
-
*/
|
|
196
|
-
agentKey: string;
|
|
197
|
-
};
|
|
198
|
-
export type CreateSpaceResponseBody = {
|
|
199
|
-
/**
|
|
200
|
-
* HEX encoded public key of the space.
|
|
201
|
-
*/
|
|
202
|
-
spaceKey: string;
|
|
203
|
-
spaceId: SpaceId;
|
|
204
|
-
automergeRoot: string;
|
|
205
|
-
};
|
|
206
|
-
export declare enum EdgeAgentStatus {
|
|
207
|
-
ACTIVE = "active",
|
|
208
|
-
INACTIVE = "inactive",
|
|
209
|
-
NOT_FOUND = "not_found"
|
|
210
|
-
}
|
|
211
|
-
export type EdgeAuthChallenge = {
|
|
212
|
-
type: 'auth_challenge';
|
|
213
|
-
challenge: string;
|
|
214
|
-
};
|
|
215
|
-
export declare enum OAuthProvider {
|
|
216
|
-
GOOGLE = "google",
|
|
217
|
-
BLUESKY = "bluesky"
|
|
218
|
-
}
|
|
219
|
-
export declare const InitiateOAuthFlowRequestSchema: Schema.Struct<{
|
|
220
|
-
provider: Schema.Enums<typeof OAuthProvider>;
|
|
221
|
-
spaceId: Schema.refine<string & {
|
|
222
|
-
__SpaceId: true;
|
|
223
|
-
}, Schema.Schema<string, string, never>>;
|
|
224
|
-
accessTokenId: typeof Schema.String;
|
|
225
|
-
scopes: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
226
|
-
noRefresh: Schema.optional<typeof Schema.Boolean>;
|
|
227
|
-
loginHint: Schema.optional<typeof Schema.String>;
|
|
228
|
-
}>;
|
|
229
|
-
export type InitiateOAuthFlowRequest = Schema.Schema.Type<typeof InitiateOAuthFlowRequestSchema>;
|
|
230
|
-
export type InitiateOAuthFlowResponse = {
|
|
231
|
-
authUrl: string;
|
|
232
|
-
};
|
|
233
|
-
export type OAuthFlowResult = {
|
|
234
|
-
success: true;
|
|
235
|
-
accessToken: string;
|
|
236
|
-
accessTokenId: string;
|
|
237
|
-
} | {
|
|
238
|
-
success: false;
|
|
239
|
-
reason: string;
|
|
240
|
-
};
|
|
241
|
-
export declare enum EdgeWebsocketProtocol {
|
|
242
|
-
V0 = "edge-ws-v0",
|
|
243
|
-
/**
|
|
244
|
-
* Enables message framing and muxing by service-id.
|
|
245
|
-
*/
|
|
246
|
-
V1 = "edge-ws-v1"
|
|
247
|
-
}
|
|
248
|
-
export type EdgeStatus = {
|
|
249
|
-
problems: string[];
|
|
250
|
-
agent: {
|
|
251
|
-
agentStatus?: string;
|
|
252
|
-
agentKey?: string;
|
|
253
|
-
haloSpaceId?: SpaceId;
|
|
254
|
-
fetchError?: string;
|
|
255
|
-
};
|
|
256
|
-
router: {
|
|
257
|
-
connectedDevices?: {
|
|
258
|
-
peerKey: string;
|
|
259
|
-
topics: string[];
|
|
260
|
-
}[];
|
|
261
|
-
metrics?: {
|
|
262
|
-
sentMessages: number;
|
|
263
|
-
receivedMessages: number;
|
|
264
|
-
sentBytes: number;
|
|
265
|
-
receivedBytes: number;
|
|
266
|
-
failedMessages: number;
|
|
267
|
-
failedBytes: number;
|
|
268
|
-
};
|
|
269
|
-
fetchError?: string;
|
|
270
|
-
};
|
|
271
|
-
spaces: {
|
|
272
|
-
data: Record<SpaceId, {
|
|
273
|
-
diagnostics?: any & {
|
|
274
|
-
redFlags: string[];
|
|
275
|
-
};
|
|
276
|
-
fetchError?: string;
|
|
277
|
-
}>;
|
|
278
|
-
fetchError?: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
export type ImportBundleRequest = {
|
|
282
|
-
bundle: {
|
|
283
|
-
/**
|
|
284
|
-
* DocumentId.
|
|
285
|
-
*/
|
|
286
|
-
documentId: string;
|
|
287
|
-
/**
|
|
288
|
-
* Encoded mutation.
|
|
289
|
-
*/
|
|
290
|
-
mutation: string;
|
|
291
|
-
/**
|
|
292
|
-
* Heads of the document.
|
|
293
|
-
*/
|
|
294
|
-
heads: string[];
|
|
295
|
-
}[];
|
|
296
|
-
};
|
|
297
|
-
export type ExportBundleRequest = {
|
|
298
|
-
/**
|
|
299
|
-
* DocumentId -> Heads (decoded heads since which we want to export).
|
|
300
|
-
*/
|
|
301
|
-
docHeads: Record<string, string[]>;
|
|
302
|
-
};
|
|
303
|
-
export type ExportBundleResponse = {
|
|
304
|
-
bundle: {
|
|
305
|
-
/**
|
|
306
|
-
* DocumentId.
|
|
307
|
-
*/
|
|
308
|
-
documentId: string;
|
|
309
|
-
/**
|
|
310
|
-
* Encoded mutation.
|
|
311
|
-
*/
|
|
312
|
-
mutation: string;
|
|
313
|
-
}[];
|
|
314
|
-
};
|
|
315
|
-
export declare const DocumentCodec: Readonly<{
|
|
316
|
-
encode: (doc: Uint8Array) => string;
|
|
317
|
-
decode: (doc: string) => Uint8Array<ArrayBuffer>;
|
|
318
|
-
}>;
|
|
319
|
-
/**
|
|
320
|
-
* Codec for serializing and deserializing Edge Errors.
|
|
321
|
-
*/
|
|
322
|
-
export declare const ErrorCodec: Readonly<{
|
|
323
|
-
encode: (err: Error, depth?: number) => SerializedError;
|
|
324
|
-
decode: (serializedError: SerializedError, depth?: number) => Error;
|
|
325
|
-
}>;
|
|
326
|
-
/**
|
|
327
|
-
* Codec for serializing and deserializing Edge unhandled HTTP errors.
|
|
328
|
-
*/
|
|
329
|
-
export declare const EdgeHttpErrorCodec: Readonly<{
|
|
330
|
-
encode: (err: Error) => Response;
|
|
331
|
-
decode: (response: Response) => Promise<Error | undefined>;
|
|
332
|
-
}>;
|
|
333
|
-
//# sourceMappingURL=edge.d.ts.map
|
package/dist/src/edge.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/edge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,oBAAY,WAAW;IACrB,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnE;;;GAGG;AAMH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAA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EG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE;QACN;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB,EAAE,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,aAAa;kBACV,UAAU;kBACV,MAAM;EACpB,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,UAAU;kBACP,KAAK,UAAS,MAAM,KAAO,eAAe;8BAM9B,eAAe,UAAS,MAAM,KAAO,KAAK;EAkCpE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;kBACf,KAAK,KAAG,QAAQ;uBAQL,QAAQ,KAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;EAa9D,CAAC"}
|
package/dist/src/edge.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
import * as Schema from 'effect/Schema';
|
|
5
|
-
import { BaseError } from '@dxos/errors';
|
|
6
|
-
import { invariant } from '@dxos/invariant';
|
|
7
|
-
import { SpaceId } from '@dxos/keys';
|
|
8
|
-
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
9
|
-
// If we would rename it, we need to be careful to not break composer production.
|
|
10
|
-
export var EdgeService;
|
|
11
|
-
(function (EdgeService) {
|
|
12
|
-
EdgeService["AUTOMERGE_REPLICATOR"] = "automerge-replicator";
|
|
13
|
-
EdgeService["FEED_REPLICATOR"] = "feed-replicator";
|
|
14
|
-
EdgeService["SWARM"] = "swarm";
|
|
15
|
-
EdgeService["SIGNAL"] = "signal";
|
|
16
|
-
EdgeService["STATUS"] = "status";
|
|
17
|
-
})(EdgeService || (EdgeService = {}));
|
|
18
|
-
/**
|
|
19
|
-
* Use this to create a response from the Edge service.
|
|
20
|
-
*/
|
|
21
|
-
export const EdgeResponse = Object.freeze({
|
|
22
|
-
success: (data, status = 200) => {
|
|
23
|
-
invariant(status >= 200 && status < 300, 'Status code must be in the 2xx range');
|
|
24
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
25
|
-
return new Response(JSON.stringify({
|
|
26
|
-
success: true,
|
|
27
|
-
data,
|
|
28
|
-
}), {
|
|
29
|
-
status,
|
|
30
|
-
headers,
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
failure: ({ reason, cause, errorData, shouldRetryAfter, status = 500, }) => {
|
|
34
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
35
|
-
if (shouldRetryAfter) {
|
|
36
|
-
headers.set('Retry-After', String(shouldRetryAfter));
|
|
37
|
-
}
|
|
38
|
-
return new Response(JSON.stringify({
|
|
39
|
-
success: false,
|
|
40
|
-
reason,
|
|
41
|
-
errorData,
|
|
42
|
-
cause: cause ? ErrorCodec.encode(cause) : undefined,
|
|
43
|
-
}), {
|
|
44
|
-
status,
|
|
45
|
-
headers,
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* Note: Do not change the values of these enums, this values are stored in the FunctionVersions database.
|
|
51
|
-
*/
|
|
52
|
-
export var Runtime;
|
|
53
|
-
(function (Runtime) {
|
|
54
|
-
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
55
|
-
Runtime["WORKERS_FOR_PLATFORMS"] = "WORKERS_FOR_PLATFORMS";
|
|
56
|
-
// https://developers.cloudflare.com/workers/runtime-apis/bindings/worker-loader/
|
|
57
|
-
Runtime["WORKER_LOADER"] = "WORKER_LOADER";
|
|
58
|
-
// Local worker dispatcher for testing.
|
|
59
|
-
Runtime["TEST"] = "TEST";
|
|
60
|
-
})(Runtime || (Runtime = {}));
|
|
61
|
-
export var EdgeAgentStatus;
|
|
62
|
-
(function (EdgeAgentStatus) {
|
|
63
|
-
EdgeAgentStatus["ACTIVE"] = "active";
|
|
64
|
-
EdgeAgentStatus["INACTIVE"] = "inactive";
|
|
65
|
-
EdgeAgentStatus["NOT_FOUND"] = "not_found";
|
|
66
|
-
})(EdgeAgentStatus || (EdgeAgentStatus = {}));
|
|
67
|
-
export var OAuthProvider;
|
|
68
|
-
(function (OAuthProvider) {
|
|
69
|
-
OAuthProvider["GOOGLE"] = "google";
|
|
70
|
-
OAuthProvider["BLUESKY"] = "bluesky";
|
|
71
|
-
})(OAuthProvider || (OAuthProvider = {}));
|
|
72
|
-
export const InitiateOAuthFlowRequestSchema = Schema.Struct({
|
|
73
|
-
provider: Schema.Enums(OAuthProvider),
|
|
74
|
-
spaceId: Schema.String.pipe(Schema.filter(SpaceId.isValid)), // TODO(burdon): Use SpaceId.
|
|
75
|
-
accessTokenId: Schema.String,
|
|
76
|
-
scopes: Schema.mutable(Schema.Array(Schema.String)),
|
|
77
|
-
// Set to true if we don't want periodic token refreshes in background, for cases like account connect
|
|
78
|
-
noRefresh: Schema.optional(Schema.Boolean),
|
|
79
|
-
// Provider-specific (user handle or did for bluesky) hint for auth server resolution
|
|
80
|
-
loginHint: Schema.optional(Schema.String),
|
|
81
|
-
});
|
|
82
|
-
export var EdgeWebsocketProtocol;
|
|
83
|
-
(function (EdgeWebsocketProtocol) {
|
|
84
|
-
EdgeWebsocketProtocol["V0"] = "edge-ws-v0";
|
|
85
|
-
/**
|
|
86
|
-
* Enables message framing and muxing by service-id.
|
|
87
|
-
*/
|
|
88
|
-
EdgeWebsocketProtocol["V1"] = "edge-ws-v1";
|
|
89
|
-
})(EdgeWebsocketProtocol || (EdgeWebsocketProtocol = {}));
|
|
90
|
-
export const DocumentCodec = Object.freeze({
|
|
91
|
-
encode: (doc) => Buffer.from(doc).toString('base64'),
|
|
92
|
-
decode: (doc) => new Uint8Array(Buffer.from(doc, 'base64')),
|
|
93
|
-
});
|
|
94
|
-
const MAX_ERROR_DEPTH = 3;
|
|
95
|
-
/**
|
|
96
|
-
* Codec for serializing and deserializing Edge Errors.
|
|
97
|
-
*/
|
|
98
|
-
export const ErrorCodec = Object.freeze({
|
|
99
|
-
encode: (err, depth = 0) => ({
|
|
100
|
-
code: 'code' in err ? err.code : undefined,
|
|
101
|
-
message: err.message,
|
|
102
|
-
stack: err.stack,
|
|
103
|
-
cause: err.cause instanceof Error && depth < MAX_ERROR_DEPTH ? ErrorCodec.encode(err.cause, depth + 1) : undefined,
|
|
104
|
-
}),
|
|
105
|
-
decode: (serializedError, depth = 0) => {
|
|
106
|
-
let err;
|
|
107
|
-
if (typeof serializedError.code === 'string') {
|
|
108
|
-
err = new BaseError(serializedError.code, {
|
|
109
|
-
message: serializedError.message ?? 'Unknown error',
|
|
110
|
-
cause: serializedError.cause && depth < MAX_ERROR_DEPTH
|
|
111
|
-
? ErrorCodec.decode(serializedError.cause, depth + 1)
|
|
112
|
-
: undefined,
|
|
113
|
-
context: serializedError.context,
|
|
114
|
-
});
|
|
115
|
-
if (serializedError.stack) {
|
|
116
|
-
Object.defineProperty(err, 'stack', {
|
|
117
|
-
value: serializedError.stack,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
err = new Error(serializedError.message ?? 'Unknown error', {
|
|
123
|
-
cause: serializedError.cause && depth < MAX_ERROR_DEPTH
|
|
124
|
-
? ErrorCodec.decode(serializedError.cause, depth + 1)
|
|
125
|
-
: undefined,
|
|
126
|
-
});
|
|
127
|
-
if (serializedError.stack) {
|
|
128
|
-
Object.defineProperty(err, 'stack', {
|
|
129
|
-
value: serializedError.stack,
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return err;
|
|
134
|
-
},
|
|
135
|
-
});
|
|
136
|
-
/**
|
|
137
|
-
* Codec for serializing and deserializing Edge unhandled HTTP errors.
|
|
138
|
-
*/
|
|
139
|
-
export const EdgeHttpErrorCodec = Object.freeze({
|
|
140
|
-
encode: (err) => new Response(JSON.stringify({
|
|
141
|
-
error: ErrorCodec.encode(err),
|
|
142
|
-
}), { status: 500 }),
|
|
143
|
-
decode: async (response) => {
|
|
144
|
-
if (response.headers.get('Content-Type') !== 'application/json') {
|
|
145
|
-
const body = await response.clone().text();
|
|
146
|
-
return new Error(body.slice(0, 256));
|
|
147
|
-
}
|
|
148
|
-
const body = await response.clone().json();
|
|
149
|
-
if (!('error' in body)) {
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
return ErrorCodec.decode(body.error);
|
|
153
|
-
},
|
|
154
|
-
});
|
|
155
|
-
//# sourceMappingURL=edge.js.map
|
package/dist/src/edge.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../src/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,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,WAMX;AAND,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,kDAAmC,CAAA;IACnC,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAyDD;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,CAAI,IAAO,EAAE,SAAiB,GAAG,EAAY,EAAE;QACtD,SAAS,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,EAAE,sCAAsC,CAAC,CAAC;QACjF,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,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src/query.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,aAAa,gCAAgC,CAAC"}
|
package/dist/src/query.js
DELETED
package/dist/src/query.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,6BAA6B,CAAC"}
|