@dxos/protocols 0.8.4-staging.ac66bdf99f → 0.9.1-main.c7dcc2e112
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/dist/src/Config2.d.ts +91 -0
- package/dist/src/Config2.d.ts.map +1 -0
- package/dist/src/Config2.js +56 -0
- package/dist/src/Config2.js.map +1 -0
- package/dist/src/FeedProtocol.d.ts +5 -5
- package/dist/src/FeedProtocol.d.ts.map +1 -1
- package/dist/src/FeedProtocol.js.map +1 -1
- package/dist/src/FunctionProtocol.d.ts +7 -0
- 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 +74 -0
- 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 +16 -1
- 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 +14 -0
- 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 +1 -1
- 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 +6 -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 +1 -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 +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/echo/service_pb.d.ts +17 -2
- 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 +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +26 -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 +26 -21
- 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/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +27 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +272 -3
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +157 -2
- package/dist/src/edge/edge.js.map +1 -1
- 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/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.js +4 -4
- package/dist/src/edge/registry.d.ts +248 -76
- package/dist/src/edge/registry.d.ts.map +1 -1
- package/dist/src/edge/registry.js +151 -52
- package/dist/src/edge/registry.js.map +1 -1
- 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.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 +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -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/invitation.js +3 -3
- package/dist/src/invitation.js.map +1 -1
- 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 +121 -150
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +4 -2
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +58 -102
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +78 -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 +36 -35
- 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 +6 -12
- 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 +34 -44
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- 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 -8
- 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 +7 -14
- 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 -20
- 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 +27 -27
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +7 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.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 +5 -5
- package/dist/src/space-archive.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -32
- package/src/Config2.ts +68 -0
- package/src/FeedProtocol.ts +3 -0
- package/src/FunctionProtocol.ts +9 -0
- package/src/TraceProtocol.ts +21 -0
- package/src/automerge.ts +239 -13
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +19 -5
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +88 -1
- package/src/buf/proto/gen/dxos/client/services_pb.ts +16 -1
- package/src/buf/proto/gen/dxos/config_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +82 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +8 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +19 -3
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +52 -21
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +13 -5
- package/src/edge/EdgeFunctionEnv.ts +40 -3
- package/src/edge/edge.test.ts +64 -0
- package/src/edge/edge.ts +281 -5
- package/src/edge/registry.ts +170 -61
- package/src/index.ts +2 -1
- package/src/invitation.ts +3 -3
- package/src/lexicons/org.dxos.experimental/README.md +29 -0
- package/src/lexicons/org.dxos.experimental/package.profile.json +87 -0
- package/src/lexicons/org.dxos.experimental/package.release.json +45 -0
- package/src/lexicons/org.dxos.experimental/publisher.profile.json +37 -0
- package/src/lexicons/org.dxos.experimental/publisher.verification.json +36 -0
- package/src/profile-archive.ts +13 -0
- package/src/proto/dxos/client/invitation.proto +9 -2
- package/src/proto/dxos/client/queue.proto +21 -0
- package/src/proto/dxos/client/services.proto +4 -0
- package/src/proto/dxos/config.proto +2 -0
- package/src/proto/dxos/devtools/host.proto +27 -0
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/echo/service.proto +14 -1
- package/src/proto/dxos/halo/credentials.proto +9 -0
- package/src/proto/dxos/halo/invitations.proto +5 -2
- 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 +121 -150
- package/src/proto/gen/dxos/config.ts +58 -102
- package/src/proto/gen/dxos/devtools/host.ts +78 -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 +36 -35
- 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 +6 -12
- 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 +34 -44
- 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 -8
- 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 +7 -14
- 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 -20
- 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 +27 -27
- package/src/proto/gen/index.ts +8 -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
package/dist/src/edge/edge.js
CHANGED
|
@@ -9,11 +9,16 @@ import { SpaceId } from '@dxos/keys';
|
|
|
9
9
|
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
10
10
|
*/
|
|
11
11
|
export const EDGE_CLIENT_TAG_HEADER = 'X-DXOS-Client-Tag';
|
|
12
|
+
/**
|
|
13
|
+
* HTTP header sent on every Edge request to provide a BYOK (Bring Your Own Key) for AI services.
|
|
14
|
+
*/
|
|
15
|
+
export const BYOK_HEADER = 'X-BYOK';
|
|
12
16
|
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
13
17
|
// If we would rename it, we need to be careful to not break composer production.
|
|
14
18
|
export var EdgeService;
|
|
15
19
|
(function (EdgeService) {
|
|
16
20
|
EdgeService["AUTOMERGE_REPLICATOR"] = "automerge-replicator";
|
|
21
|
+
EdgeService["SUBDUCTION_REPLICATOR"] = "subduction-replicator";
|
|
17
22
|
/**
|
|
18
23
|
* Control feed replicator (hypercore append only logs) for the space.
|
|
19
24
|
*/
|
|
@@ -84,9 +89,20 @@ export var EdgeAgentStatus;
|
|
|
84
89
|
})(EdgeAgentStatus || (EdgeAgentStatus = {}));
|
|
85
90
|
export var OAuthProvider;
|
|
86
91
|
(function (OAuthProvider) {
|
|
87
|
-
OAuthProvider["
|
|
92
|
+
OAuthProvider["ATLASSIAN"] = "atlassian";
|
|
93
|
+
OAuthProvider["ATPROTO"] = "atproto";
|
|
94
|
+
/** @deprecated Use ATPROTO instead. */
|
|
88
95
|
OAuthProvider["BLUESKY"] = "bluesky";
|
|
96
|
+
OAuthProvider["DISCORD"] = "discord";
|
|
97
|
+
OAuthProvider["GITHUB"] = "github";
|
|
98
|
+
OAuthProvider["GOOGLE"] = "google";
|
|
99
|
+
OAuthProvider["LINEAR"] = "linear";
|
|
100
|
+
OAuthProvider["NOTION"] = "notion";
|
|
101
|
+
OAuthProvider["SLACK"] = "slack";
|
|
102
|
+
OAuthProvider["TRELLO"] = "trello";
|
|
89
103
|
})(OAuthProvider || (OAuthProvider = {}));
|
|
104
|
+
/** atproto OAuth scopes for the Atmosphere integration and account-recovery flows. */
|
|
105
|
+
export const ATPROTO_OAUTH_SCOPES = ['atproto', 'transition:generic', 'transition:email'];
|
|
90
106
|
export const InitiateOAuthFlowRequestSchema = Schema.Struct({
|
|
91
107
|
provider: Schema.Enums(OAuthProvider),
|
|
92
108
|
spaceId: Schema.String.pipe(Schema.filter(SpaceId.isValid)), // TODO(burdon): Use SpaceId.
|
|
@@ -94,8 +110,17 @@ export const InitiateOAuthFlowRequestSchema = Schema.Struct({
|
|
|
94
110
|
scopes: Schema.mutable(Schema.Array(Schema.String)),
|
|
95
111
|
// Set to true if we don't want periodic token refreshes in background, for cases like account connect
|
|
96
112
|
noRefresh: Schema.optional(Schema.Boolean),
|
|
97
|
-
// Provider-specific (user handle or did for
|
|
113
|
+
// Provider-specific (user handle or did for atproto) hint for auth server resolution
|
|
98
114
|
loginHint: Schema.optional(Schema.String),
|
|
115
|
+
// Return a 302 redirect to composer://oauth/callback instead of HTML.
|
|
116
|
+
// Required for ASWebAuthenticationSession (iOS) which blocks JavaScript redirects.
|
|
117
|
+
nativeAppRedirect: Schema.optional(Schema.Boolean),
|
|
118
|
+
// OAuth-based account recovery: when purpose === 'register', kms-service writes a
|
|
119
|
+
// recovery binding for `identityKey` after the OAuth flow completes; when 'recovery',
|
|
120
|
+
// kms-service mints a one-time `recoveryProof` the client forwards to db-service.
|
|
121
|
+
registerRecovery: Schema.optional(Schema.Boolean),
|
|
122
|
+
identityKey: Schema.optional(Schema.String),
|
|
123
|
+
purpose: Schema.optional(Schema.Literal('register', 'recovery')),
|
|
99
124
|
});
|
|
100
125
|
export var EdgeWebsocketProtocol;
|
|
101
126
|
(function (EdgeWebsocketProtocol) {
|
|
@@ -170,4 +195,134 @@ export const EdgeHttpErrorCodec = Object.freeze({
|
|
|
170
195
|
return ErrorCodec.decode(body.error);
|
|
171
196
|
},
|
|
172
197
|
});
|
|
198
|
+
//
|
|
199
|
+
// Account / Invitation
|
|
200
|
+
//
|
|
201
|
+
export const INVITATION_CODE_LENGTH = 8;
|
|
202
|
+
export const DEFAULT_INVITATIONS_PER_ACCOUNT = 5;
|
|
203
|
+
/** Crockford base32 alphabet (no I, L, O, U). Case-insensitive on the wire. */
|
|
204
|
+
export const INVITATION_CODE_ALPHABET = '0123456789ABCDEFGHJKMNPQRSTVWXYZ';
|
|
205
|
+
export const InvitationCodeSchema = Schema.String.pipe(Schema.pattern(new RegExp(`^[${INVITATION_CODE_ALPHABET}]{${INVITATION_CODE_LENGTH}}$`)));
|
|
206
|
+
export const CheckEmailExistsRequestSchema = Schema.Struct({
|
|
207
|
+
email: Schema.String,
|
|
208
|
+
});
|
|
209
|
+
export const ValidateInvitationCodeRequestSchema = Schema.Struct({
|
|
210
|
+
code: InvitationCodeSchema,
|
|
211
|
+
});
|
|
212
|
+
/**
|
|
213
|
+
* Body of `POST /account/login`. Existing-account email recovery only --
|
|
214
|
+
* unlike `/account/signup`, this never creates new identities or waitlist rows.
|
|
215
|
+
*/
|
|
216
|
+
export const LoginRequestSchema = Schema.Struct({
|
|
217
|
+
email: Schema.String,
|
|
218
|
+
identityDid: Schema.optional(Schema.String),
|
|
219
|
+
identityKey: Schema.optional(Schema.String),
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* Response from `POST /account/login`. The shape is identical regardless of
|
|
223
|
+
* whether the email is registered, so the endpoint is safe against enumeration.
|
|
224
|
+
* Regular emails are delivered out-of-band and the response is `{}`.
|
|
225
|
+
*/
|
|
226
|
+
export const LoginResponseSchema = Schema.Struct({
|
|
227
|
+
token: Schema.optional(Schema.String),
|
|
228
|
+
needsIdentity: Schema.optional(Schema.Boolean),
|
|
229
|
+
admitted: Schema.optional(Schema.Boolean),
|
|
230
|
+
});
|
|
231
|
+
// Two-step signup: invitation code + identity DID + email.
|
|
232
|
+
export const RedeemInvitationCodeRequestSchema = Schema.Struct({
|
|
233
|
+
code: Schema.optional(InvitationCodeSchema),
|
|
234
|
+
identityDid: Schema.optional(Schema.String),
|
|
235
|
+
/** Raw hex public key, stored alongside the DID for the magic-link recovery flow. */
|
|
236
|
+
identityKey: Schema.optional(Schema.String),
|
|
237
|
+
email: Schema.String,
|
|
238
|
+
});
|
|
239
|
+
export const GetAccountResponseSchema = Schema.Struct({
|
|
240
|
+
identityDid: Schema.String,
|
|
241
|
+
email: Schema.String,
|
|
242
|
+
emailVerified: Schema.Boolean,
|
|
243
|
+
/** ISO timestamp. */
|
|
244
|
+
createdAt: Schema.String,
|
|
245
|
+
invitationsRemaining: Schema.Number,
|
|
246
|
+
});
|
|
247
|
+
export const AccountInvitationSchema = Schema.Struct({
|
|
248
|
+
code: Schema.String,
|
|
249
|
+
/** ISO timestamp. */
|
|
250
|
+
createdAt: Schema.String,
|
|
251
|
+
redeemedByIdentityDid: Schema.optional(Schema.String),
|
|
252
|
+
/** ISO timestamp. */
|
|
253
|
+
redeemedAt: Schema.optional(Schema.String),
|
|
254
|
+
});
|
|
255
|
+
export const ListAccountInvitationsResponseSchema = Schema.Struct({
|
|
256
|
+
invitations: Schema.Array(AccountInvitationSchema),
|
|
257
|
+
});
|
|
258
|
+
/**
|
|
259
|
+
* Submitted by users without an Account who want to request access. Captured
|
|
260
|
+
* by Hub for admin follow-up (e.g. mailing list, Discord notification).
|
|
261
|
+
*/
|
|
262
|
+
export const RequestAccessRequestSchema = Schema.Struct({
|
|
263
|
+
email: Schema.String,
|
|
264
|
+
/** Optional: identity DID the user is currently signed in as. */
|
|
265
|
+
identityDid: Schema.optional(Schema.String),
|
|
266
|
+
/** Optional free-form message from the requester. */
|
|
267
|
+
message: Schema.optional(Schema.String),
|
|
268
|
+
});
|
|
269
|
+
//
|
|
270
|
+
// Metering (VP auth)
|
|
271
|
+
//
|
|
272
|
+
/** Structured usage key aligned with {@link MeteringLimitSchema} (without cap/window fields). */
|
|
273
|
+
export const MeteringUsageKeySchema = Schema.Struct({
|
|
274
|
+
/** Event type (e.g. `ai`). */
|
|
275
|
+
eventType: Schema.String,
|
|
276
|
+
/** Value key being metered (e.g. `outputTokens`). */
|
|
277
|
+
valueKey: Schema.String,
|
|
278
|
+
/**
|
|
279
|
+
* Positional match against the event's subtype segments (e.g. model); `*` matches any
|
|
280
|
+
* segment, and positions beyond the pattern are unconstrained.
|
|
281
|
+
*/
|
|
282
|
+
subtypePattern: Schema.Array(Schema.String),
|
|
283
|
+
});
|
|
284
|
+
/** Rolling-window usage total for a structured key. */
|
|
285
|
+
export const MeteringUsageItemSchema = Schema.Struct({
|
|
286
|
+
...MeteringUsageKeySchema.fields,
|
|
287
|
+
amount: Schema.Number,
|
|
288
|
+
});
|
|
289
|
+
/** A single raw usage bucket (1h resolution) for a structured key. */
|
|
290
|
+
export const MeteringUsageBucketSchema = Schema.Struct({
|
|
291
|
+
...MeteringUsageKeySchema.fields,
|
|
292
|
+
/** Bucket start timestamp (epoch ms, floored to the hour). */
|
|
293
|
+
bucketStart: Schema.Number,
|
|
294
|
+
amount: Schema.Number,
|
|
295
|
+
});
|
|
296
|
+
export const MeteringLimitSchema = Schema.Struct({
|
|
297
|
+
/** Event type the limit applies to (e.g. `ai`). */
|
|
298
|
+
eventType: Schema.String,
|
|
299
|
+
/** Value key being limited (e.g. `outputTokens`). */
|
|
300
|
+
valueKey: Schema.String,
|
|
301
|
+
/**
|
|
302
|
+
* Positional match against the event's subtype segments (e.g. model); `*` matches any
|
|
303
|
+
* segment, and positions beyond the pattern are unconstrained.
|
|
304
|
+
*/
|
|
305
|
+
subtypePattern: Schema.Array(Schema.String),
|
|
306
|
+
/** Rolling-window cap; `null` means unlimited. */
|
|
307
|
+
limit: Schema.NullOr(Schema.Number),
|
|
308
|
+
/** Window duration in seconds. */
|
|
309
|
+
windowDuration: Schema.Number,
|
|
310
|
+
});
|
|
311
|
+
export const GetProfileUsageResponseSchema = Schema.Struct({
|
|
312
|
+
profileId: Schema.String,
|
|
313
|
+
usage: Schema.Array(MeteringUsageItemSchema),
|
|
314
|
+
limits: Schema.Array(MeteringLimitSchema),
|
|
315
|
+
buckets: Schema.Array(MeteringUsageBucketSchema),
|
|
316
|
+
});
|
|
317
|
+
export const AdminGrantInvitationsRequestSchema = Schema.Struct({
|
|
318
|
+
identityDid: Schema.String,
|
|
319
|
+
count: Schema.Number,
|
|
320
|
+
});
|
|
321
|
+
export const AdminCreateInvitationCodesRequestSchema = Schema.Struct({
|
|
322
|
+
count: Schema.Number,
|
|
323
|
+
note: Schema.optional(Schema.String),
|
|
324
|
+
});
|
|
325
|
+
export const AdminRevokeInvitationCodeRequestSchema = Schema.Struct({
|
|
326
|
+
code: InvitationCodeSchema,
|
|
327
|
+
});
|
|
173
328
|
//# sourceMappingURL=edge.js.map
|
|
@@ -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,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c,EAAE,MAAM,CAAC,MAAM;CAC9B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC;CACjD,CAAC,CAAC;AAWH,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9D,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uCAAuC,GAAG,MAAM,CAAC,MAAM,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC;AAmBH,MAAM,CAAC,MAAM,sCAAsC,GAAG,MAAM,CAAC,MAAM,CAAC;IAClE,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.test.d.ts","sourceRoot":"","sources":["../../../src/edge/edge.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import * as Schema from 'effect/Schema';
|
|
5
|
+
import { describe, expect, test } from 'vitest';
|
|
6
|
+
import { INVITATION_CODE_ALPHABET, INVITATION_CODE_LENGTH, InvitationCodeSchema, RedeemInvitationCodeRequestSchema, } from './edge.js';
|
|
7
|
+
describe('InvitationCodeSchema', () => {
|
|
8
|
+
test('accepts well-formed codes', () => {
|
|
9
|
+
const decode = Schema.decodeUnknownSync(InvitationCodeSchema);
|
|
10
|
+
expect(decode('AB12CDEF')).toBe('AB12CDEF');
|
|
11
|
+
expect(decode('00000000')).toBe('00000000');
|
|
12
|
+
expect(decode('ZZZZZZZZ')).toBe('ZZZZZZZZ');
|
|
13
|
+
});
|
|
14
|
+
test('rejects wrong length', () => {
|
|
15
|
+
const decode = Schema.decodeUnknownSync(InvitationCodeSchema);
|
|
16
|
+
expect(() => decode('ABC')).toThrow();
|
|
17
|
+
expect(() => decode('ABCDEFGHI')).toThrow();
|
|
18
|
+
});
|
|
19
|
+
test('rejects ambiguous characters (Crockford excludes I, L, O, U)', () => {
|
|
20
|
+
const decode = Schema.decodeUnknownSync(InvitationCodeSchema);
|
|
21
|
+
expect(() => decode('IIIIIIII')).toThrow();
|
|
22
|
+
expect(() => decode('LLLLLLLL')).toThrow();
|
|
23
|
+
expect(() => decode('OOOOOOOO')).toThrow();
|
|
24
|
+
expect(() => decode('UUUUUUUU')).toThrow();
|
|
25
|
+
});
|
|
26
|
+
test('alphabet has the expected length', () => {
|
|
27
|
+
expect(INVITATION_CODE_ALPHABET).toHaveLength(32);
|
|
28
|
+
expect(INVITATION_CODE_LENGTH).toBe(8);
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe('RedeemInvitationCodeRequestSchema', () => {
|
|
32
|
+
test('requires all three fields with valid code', () => {
|
|
33
|
+
const decode = Schema.decodeUnknownSync(RedeemInvitationCodeRequestSchema);
|
|
34
|
+
const request = decode({
|
|
35
|
+
code: 'AB12CDEF',
|
|
36
|
+
identityKey: 'identity-hex',
|
|
37
|
+
email: 'user@example.com',
|
|
38
|
+
});
|
|
39
|
+
expect(request.code).toBe('AB12CDEF');
|
|
40
|
+
});
|
|
41
|
+
test('rejects malformed code in request', () => {
|
|
42
|
+
const decode = Schema.decodeUnknownSync(RedeemInvitationCodeRequestSchema);
|
|
43
|
+
expect(() => decode({
|
|
44
|
+
code: 'lowercase',
|
|
45
|
+
identityKey: 'identity-hex',
|
|
46
|
+
email: 'user@example.com',
|
|
47
|
+
})).toThrow();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=edge.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.test.js","sourceRoot":"","sources":["../../../src/edge/edge.test.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,WAAW,CAAC;AAEnB,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACrC,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;QAC9D,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAChC,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;QAC9D,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACtC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9C,CAAC,CAAC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C,iCAAiC,CAAC,CAAC;QAC3E,MAAM,CAAC,GAAG,EAAE,CACV,MAAM,CAAC;YACL,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,cAAc;YAC3B,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CACH,CAAC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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;
|
|
1
|
+
{"version":3,"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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/edge/errors.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAwC,kBAAkB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEjG,6CAA6C;AAC7C;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACrC,MAAM,CAAC,wBAAwB,CAAC,QAAkB,EAAE,IAAiB;QAC1E,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC;YACpC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;YACrE,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAAC;YAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC,CAAC;QAEH,OAAO,K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AI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IAE3C,SAAS;IAD3B,YACkB,SAAiB,EACjC,IAAmB;QAEnB,KAAK,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;yBAHhD,SAAS;IAI3B,CAAC;CACF;AAED,MAAM,mBAAmB,GAAG,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.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
export * from
|
|
5
|
-
export * as EdgeFunctionEnv from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
4
|
+
export * from './edge.js';
|
|
5
|
+
export * as EdgeFunctionEnv from './EdgeFunctionEnv.js';
|
|
6
|
+
export * from './errors.js';
|
|
7
|
+
export * from './registry.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|