@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
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { SpaceId } from '@dxos/keys';
|
|
3
|
+
/**
|
|
4
|
+
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EDGE_CLIENT_TAG_HEADER = "X-DXOS-Client-Tag";
|
|
7
|
+
/**
|
|
8
|
+
* HTTP header sent on every Edge request to provide a BYOK (Bring Your Own Key) for AI services.
|
|
9
|
+
*/
|
|
10
|
+
export declare const BYOK_HEADER = "X-BYOK";
|
|
11
|
+
export declare enum EdgeService {
|
|
12
|
+
AUTOMERGE_REPLICATOR = "automerge-replicator",
|
|
13
|
+
SUBDUCTION_REPLICATOR = "subduction-replicator",
|
|
14
|
+
/**
|
|
15
|
+
* Control feed replicator (hypercore append only logs) for the space.
|
|
16
|
+
*/
|
|
17
|
+
FEED_REPLICATOR = "feed-replicator",
|
|
18
|
+
/**
|
|
19
|
+
* Feed replicator (ordered data list) for the space.
|
|
20
|
+
*/
|
|
21
|
+
QUEUE_REPLICATOR = "queue-replicator",
|
|
22
|
+
SWARM = "swarm",
|
|
23
|
+
SIGNAL = "signal",
|
|
24
|
+
STATUS = "status"
|
|
25
|
+
}
|
|
26
|
+
export type EdgeSuccess<T> = {
|
|
27
|
+
success: true;
|
|
28
|
+
data: T;
|
|
29
|
+
};
|
|
30
|
+
declare const _SerializedError: Schema.Struct<{
|
|
31
|
+
name: Schema.optional<typeof Schema.String>;
|
|
32
|
+
message: Schema.optional<typeof Schema.String>;
|
|
33
|
+
context: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
34
|
+
stack: Schema.optional<typeof Schema.String>;
|
|
35
|
+
cause: Schema.optional<Schema.suspend<SerializedError, SerializedError, never>>;
|
|
36
|
+
}>;
|
|
37
|
+
export interface SerializedError extends Schema.Schema.Type<typeof _SerializedError> {
|
|
38
|
+
}
|
|
39
|
+
export declare const SerializedError: Schema.Schema<SerializedError, SerializedError, never>;
|
|
40
|
+
export type EdgeErrorData = {
|
|
41
|
+
type: string;
|
|
42
|
+
} & Record<string, any>;
|
|
43
|
+
/**
|
|
44
|
+
* This is the shape of the error response from the Edge service,
|
|
45
|
+
* when the error is gracefully handled, the Response will be an object with this shape and have status code 200.
|
|
46
|
+
*/
|
|
47
|
+
export type EdgeFailure = {
|
|
48
|
+
/**
|
|
49
|
+
* Branded Type.
|
|
50
|
+
*/
|
|
51
|
+
success: false;
|
|
52
|
+
/**
|
|
53
|
+
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
54
|
+
*/
|
|
55
|
+
message: string;
|
|
56
|
+
/**
|
|
57
|
+
* Cause Error captured on the EDGE service to aid debugging on the client.
|
|
58
|
+
*/
|
|
59
|
+
error?: SerializedError;
|
|
60
|
+
/**
|
|
61
|
+
* Information that can be used to retry the request such that it will succeed, for example:
|
|
62
|
+
* 1. { type: 'auth_required', challenge: string }
|
|
63
|
+
* Requires retrying the request with challenge signature included.
|
|
64
|
+
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
65
|
+
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
66
|
+
* if the user confirms.
|
|
67
|
+
* When data is returned simply retrying the request won't have any effect.
|
|
68
|
+
* EdgeHttpClient should parse well-known data into Error types and throw.
|
|
69
|
+
*/
|
|
70
|
+
data?: EdgeErrorData;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Represents a body response from the Edge service.
|
|
74
|
+
*/
|
|
75
|
+
export type EdgeEnvelope<T> = EdgeSuccess<T> | EdgeFailure;
|
|
76
|
+
/**
|
|
77
|
+
* Use this to create a response from the Edge service.
|
|
78
|
+
*/
|
|
79
|
+
export declare const EdgeResponse: Readonly<{
|
|
80
|
+
success: <T>(data: T, status?: number) => Response;
|
|
81
|
+
failure: ({ message, error, errorEncoded, data, shouldRetryAfter, status, }: {
|
|
82
|
+
/**
|
|
83
|
+
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
84
|
+
*/
|
|
85
|
+
message: string;
|
|
86
|
+
/**
|
|
87
|
+
* Error that caused the failure.
|
|
88
|
+
* Useful for debugging.
|
|
89
|
+
*
|
|
90
|
+
* Use only one of the fields `error` or `errorEncoded`.s
|
|
91
|
+
*/
|
|
92
|
+
error?: Error;
|
|
93
|
+
/**
|
|
94
|
+
* Encoded Error that caused the failure.
|
|
95
|
+
* Useful for debugging.
|
|
96
|
+
*
|
|
97
|
+
* Use only one of the fields `error` or `errorEncoded`.
|
|
98
|
+
*/
|
|
99
|
+
errorEncoded?: SerializedError;
|
|
100
|
+
/**
|
|
101
|
+
* Information that can be used to retry the request such that it will succeed, for example:
|
|
102
|
+
* 1. { type: 'auth_required', challenge: string }
|
|
103
|
+
* Requires retrying the request with challenge signature included.
|
|
104
|
+
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
105
|
+
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
106
|
+
* if the user confirms.
|
|
107
|
+
* When data is returned simply retrying the request won't have any effect.
|
|
108
|
+
* EdgeHttpClient should parse well-known data into Error types and throw.
|
|
109
|
+
*/
|
|
110
|
+
data?: EdgeErrorData;
|
|
111
|
+
/**
|
|
112
|
+
* If provided, this request will be marked as retryable and the client will wait for the specified number of milliseconds before retrying.
|
|
113
|
+
* If not provided, the client will not retry the request.
|
|
114
|
+
*/
|
|
115
|
+
shouldRetryAfter?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Status code of the response.
|
|
118
|
+
* @default 500
|
|
119
|
+
*/
|
|
120
|
+
status?: number;
|
|
121
|
+
}) => Response;
|
|
122
|
+
}>;
|
|
123
|
+
export type GetNotarizationResponseBody = {
|
|
124
|
+
awaitingNotarization: {
|
|
125
|
+
credentials: string[];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export type ExecuteWorkflowResponseBody = {
|
|
129
|
+
success: boolean;
|
|
130
|
+
reason?: string;
|
|
131
|
+
output?: any;
|
|
132
|
+
};
|
|
133
|
+
export type PostNotarizationRequestBody = {
|
|
134
|
+
credentials: string[];
|
|
135
|
+
};
|
|
136
|
+
export type JoinSpaceRequest = {
|
|
137
|
+
invitationId: string;
|
|
138
|
+
identityKey: string;
|
|
139
|
+
/**
|
|
140
|
+
* Base64 encoded signed challenge.
|
|
141
|
+
* Used to verify the IdentityKey in case of `invitation.authMethod === Invitation.AuthMethod.KNOWN_PUBLIC_KEY`
|
|
142
|
+
*/
|
|
143
|
+
signature?: string;
|
|
144
|
+
};
|
|
145
|
+
export type JoinSpaceResponseBody = {
|
|
146
|
+
spaceMemberCredential: string;
|
|
147
|
+
spaceGenesisFeedKey: string;
|
|
148
|
+
};
|
|
149
|
+
export type RecoverIdentitySignature = string | {
|
|
150
|
+
signature: string;
|
|
151
|
+
clientDataJson: string;
|
|
152
|
+
authenticatorData: string;
|
|
153
|
+
};
|
|
154
|
+
export type RecoverIdentityRequest = {
|
|
155
|
+
deviceKey: string;
|
|
156
|
+
controlFeedKey: string;
|
|
157
|
+
lookupKey?: string;
|
|
158
|
+
signature?: RecoverIdentitySignature;
|
|
159
|
+
token?: string;
|
|
160
|
+
/**
|
|
161
|
+
* One-time proof minted by kms-service after a successful OAuth recovery flow.
|
|
162
|
+
* When provided, db-service redeems the proof to obtain the bound identityKey directly
|
|
163
|
+
* and `lookupKey`/`signature` are not required.
|
|
164
|
+
*/
|
|
165
|
+
recoveryProof?: string;
|
|
166
|
+
};
|
|
167
|
+
export type RecoverIdentityResponseBody = {
|
|
168
|
+
identityKey: string;
|
|
169
|
+
haloSpaceKey: string;
|
|
170
|
+
genesisFeedKey: string;
|
|
171
|
+
deviceAuthCredential: string;
|
|
172
|
+
};
|
|
173
|
+
export type CreateAgentRequestBody = {
|
|
174
|
+
identityKey: string;
|
|
175
|
+
haloSpaceId: SpaceId;
|
|
176
|
+
haloSpaceKey: string;
|
|
177
|
+
};
|
|
178
|
+
export type CreateAgentResponseBody = {
|
|
179
|
+
deviceKey: string;
|
|
180
|
+
feedKey: string;
|
|
181
|
+
};
|
|
182
|
+
export type GetAgentStatusResponseBody = {
|
|
183
|
+
agent: {
|
|
184
|
+
deviceKey?: string;
|
|
185
|
+
status: EdgeAgentStatus;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
export type UploadFunctionRequest = {
|
|
189
|
+
name?: string;
|
|
190
|
+
version: string;
|
|
191
|
+
ownerPublicKey: string;
|
|
192
|
+
entryPoint: string;
|
|
193
|
+
assets: Record<string, Uint8Array>;
|
|
194
|
+
/**
|
|
195
|
+
* Runtime in Edge that will be used to run the function.
|
|
196
|
+
* Runtime cannot be changed once the function was deployed.
|
|
197
|
+
* @default Runtime.WORKERS_FOR_PLATFORMS
|
|
198
|
+
*/
|
|
199
|
+
runtime?: FunctionRuntimeKind;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Note: Do not change the values of these enums, this values are stored in the FunctionVersions database.
|
|
203
|
+
*/
|
|
204
|
+
export declare const FunctionRuntimeKind: Schema.Enums<{
|
|
205
|
+
WORKERS_FOR_PLATFORMS: string;
|
|
206
|
+
WORKER_LOADER: string;
|
|
207
|
+
}>;
|
|
208
|
+
export type FunctionRuntimeKind = Schema.Schema.Type<typeof FunctionRuntimeKind>;
|
|
209
|
+
export type UploadFunctionResponseBody = {
|
|
210
|
+
functionId: string;
|
|
211
|
+
version: string;
|
|
212
|
+
meta: {
|
|
213
|
+
key?: string;
|
|
214
|
+
name?: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
/**
|
|
217
|
+
* JSON Schema for the input of the function.
|
|
218
|
+
*/
|
|
219
|
+
inputSchema?: object;
|
|
220
|
+
/**
|
|
221
|
+
* JSON Schema for the output of the function.
|
|
222
|
+
*/
|
|
223
|
+
outputSchema?: object;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
export type CreateSpaceRequest = {
|
|
227
|
+
/**
|
|
228
|
+
* HEX encoded public key of the agent.
|
|
229
|
+
*/
|
|
230
|
+
agentKey: string;
|
|
231
|
+
};
|
|
232
|
+
export type CreateSpaceResponseBody = {
|
|
233
|
+
/**
|
|
234
|
+
* HEX encoded public key of the space.
|
|
235
|
+
*/
|
|
236
|
+
spaceKey: string;
|
|
237
|
+
spaceId: SpaceId;
|
|
238
|
+
automergeRoot: string;
|
|
239
|
+
};
|
|
240
|
+
export declare enum EdgeAgentStatus {
|
|
241
|
+
ACTIVE = "active",
|
|
242
|
+
INACTIVE = "inactive",
|
|
243
|
+
NOT_FOUND = "not_found"
|
|
244
|
+
}
|
|
245
|
+
export type EdgeAuthChallenge = {
|
|
246
|
+
type: 'auth_challenge';
|
|
247
|
+
challenge: string;
|
|
248
|
+
};
|
|
249
|
+
export declare enum OAuthProvider {
|
|
250
|
+
ATLASSIAN = "atlassian",
|
|
251
|
+
ATPROTO = "atproto",
|
|
252
|
+
/** @deprecated Use ATPROTO instead. */
|
|
253
|
+
BLUESKY = "bluesky",
|
|
254
|
+
DISCORD = "discord",
|
|
255
|
+
GITHUB = "github",
|
|
256
|
+
GOOGLE = "google",
|
|
257
|
+
LINEAR = "linear",
|
|
258
|
+
NOTION = "notion",
|
|
259
|
+
SLACK = "slack",
|
|
260
|
+
TRELLO = "trello"
|
|
261
|
+
}
|
|
262
|
+
export declare const InitiateOAuthFlowRequestSchema: Schema.Struct<{
|
|
263
|
+
provider: Schema.Enums<typeof OAuthProvider>;
|
|
264
|
+
spaceId: Schema.refine<string & {
|
|
265
|
+
__SpaceId: true;
|
|
266
|
+
}, Schema.Schema<unknown, string, never>>;
|
|
267
|
+
accessTokenId: typeof Schema.String;
|
|
268
|
+
scopes: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
269
|
+
noRefresh: Schema.optional<typeof Schema.Boolean>;
|
|
270
|
+
loginHint: Schema.optional<typeof Schema.String>;
|
|
271
|
+
nativeAppRedirect: Schema.optional<typeof Schema.Boolean>;
|
|
272
|
+
registerRecovery: Schema.optional<typeof Schema.Boolean>;
|
|
273
|
+
identityKey: Schema.optional<typeof Schema.String>;
|
|
274
|
+
purpose: Schema.optional<Schema.Literal<["register", "recovery"]>>;
|
|
275
|
+
}>;
|
|
276
|
+
export type InitiateOAuthFlowRequest = Schema.Schema.Type<typeof InitiateOAuthFlowRequestSchema>;
|
|
277
|
+
export type InitiateOAuthFlowResponse = {
|
|
278
|
+
authUrl: string;
|
|
279
|
+
};
|
|
280
|
+
export type OAuthFlowResult = {
|
|
281
|
+
success: true;
|
|
282
|
+
accessToken: string;
|
|
283
|
+
accessTokenId: string;
|
|
284
|
+
recoveryProof?: string;
|
|
285
|
+
} | {
|
|
286
|
+
success: false;
|
|
287
|
+
reason: string;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Completes OAuth recovery registration for an existing identity: routes the OAuth refresh token
|
|
291
|
+
* into the personal space and writes the recovery binding.
|
|
292
|
+
*/
|
|
293
|
+
export type CompleteOAuthRegistrationRequest = {
|
|
294
|
+
registrationToken: string;
|
|
295
|
+
identityKey: string;
|
|
296
|
+
spaceKey: string;
|
|
297
|
+
};
|
|
298
|
+
export type CompleteOAuthRegistrationResponse = {
|
|
299
|
+
email?: string;
|
|
300
|
+
provider: OAuthProvider;
|
|
301
|
+
accessTokenId: string;
|
|
302
|
+
accessToken: string;
|
|
303
|
+
expiresInSeconds: number;
|
|
304
|
+
scopes: string[];
|
|
305
|
+
identifier: string;
|
|
306
|
+
};
|
|
307
|
+
export declare enum EdgeWebsocketProtocol {
|
|
308
|
+
V0 = "edge-ws-v0",
|
|
309
|
+
/**
|
|
310
|
+
* Enables message framing and muxing by service-id.
|
|
311
|
+
*/
|
|
312
|
+
V1 = "edge-ws-v1"
|
|
313
|
+
}
|
|
314
|
+
export type EdgeStatus = {
|
|
315
|
+
problems: string[];
|
|
316
|
+
agent: {
|
|
317
|
+
agentStatus?: string;
|
|
318
|
+
agentKey?: string;
|
|
319
|
+
haloSpaceId?: SpaceId;
|
|
320
|
+
fetchError?: string;
|
|
321
|
+
};
|
|
322
|
+
router: {
|
|
323
|
+
connectedDevices?: {
|
|
324
|
+
peerKey: string;
|
|
325
|
+
topics: string[];
|
|
326
|
+
}[];
|
|
327
|
+
metrics?: {
|
|
328
|
+
sentMessages: number;
|
|
329
|
+
receivedMessages: number;
|
|
330
|
+
sentBytes: number;
|
|
331
|
+
receivedBytes: number;
|
|
332
|
+
failedMessages: number;
|
|
333
|
+
failedBytes: number;
|
|
334
|
+
};
|
|
335
|
+
fetchError?: string;
|
|
336
|
+
};
|
|
337
|
+
spaces: {
|
|
338
|
+
data: Record<SpaceId, {
|
|
339
|
+
diagnostics?: any & {
|
|
340
|
+
redFlags: string[];
|
|
341
|
+
};
|
|
342
|
+
fetchError?: string;
|
|
343
|
+
}>;
|
|
344
|
+
fetchError?: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
export type ImportBundleRequest = {
|
|
348
|
+
bundle: {
|
|
349
|
+
/**
|
|
350
|
+
* DocumentId.
|
|
351
|
+
*/
|
|
352
|
+
documentId: string;
|
|
353
|
+
/**
|
|
354
|
+
* Encoded mutation.
|
|
355
|
+
*/
|
|
356
|
+
mutation: string;
|
|
357
|
+
/**
|
|
358
|
+
* Heads of the document.
|
|
359
|
+
*/
|
|
360
|
+
heads: string[];
|
|
361
|
+
}[];
|
|
362
|
+
};
|
|
363
|
+
export type ExportBundleRequest = {
|
|
364
|
+
/**
|
|
365
|
+
* DocumentId -> Heads (decoded heads since which we want to export).
|
|
366
|
+
*/
|
|
367
|
+
docHeads: Record<string, string[]>;
|
|
368
|
+
};
|
|
369
|
+
export type ExportBundleResponse = {
|
|
370
|
+
bundle: {
|
|
371
|
+
/**
|
|
372
|
+
* DocumentId.
|
|
373
|
+
*/
|
|
374
|
+
documentId: string;
|
|
375
|
+
/**
|
|
376
|
+
* Encoded mutation.
|
|
377
|
+
*/
|
|
378
|
+
mutation: string;
|
|
379
|
+
}[];
|
|
380
|
+
};
|
|
381
|
+
export declare const DocumentCodec: Readonly<{
|
|
382
|
+
encode: (doc: Uint8Array) => string;
|
|
383
|
+
decode: (doc: string) => Uint8Array<ArrayBuffer>;
|
|
384
|
+
}>;
|
|
385
|
+
/**
|
|
386
|
+
* Codec for serializing and deserializing Edge Errors.
|
|
387
|
+
*/
|
|
388
|
+
export declare const ErrorCodec: Readonly<{
|
|
389
|
+
encode: (err: Error, depth?: number) => SerializedError;
|
|
390
|
+
decode: (serializedError: SerializedError, depth?: number) => Error;
|
|
391
|
+
}>;
|
|
392
|
+
/**
|
|
393
|
+
* Codec for serializing and deserializing Edge unhandled HTTP errors.
|
|
394
|
+
*/
|
|
395
|
+
export declare const EdgeHttpErrorCodec: Readonly<{
|
|
396
|
+
encode: (err: Error) => Response;
|
|
397
|
+
decode: (response: Response) => Promise<Error | undefined>;
|
|
398
|
+
}>;
|
|
399
|
+
export type ListSpacesRequest = {
|
|
400
|
+
limit?: number;
|
|
401
|
+
cursor?: string;
|
|
402
|
+
order?: 'asc' | 'desc';
|
|
403
|
+
};
|
|
404
|
+
export type ListSpacesResponse = {
|
|
405
|
+
spaces: SpaceActivityEntry[];
|
|
406
|
+
cursor?: string;
|
|
407
|
+
limit: number;
|
|
408
|
+
};
|
|
409
|
+
export type ListActiveIdentitiesRequest = {
|
|
410
|
+
cursor?: string;
|
|
411
|
+
limit?: number;
|
|
412
|
+
};
|
|
413
|
+
export type ListActiveIdentitiesResponse = {
|
|
414
|
+
identities: {
|
|
415
|
+
identityKey: string;
|
|
416
|
+
haloSpaceId: string | null;
|
|
417
|
+
createdAt: string | null;
|
|
418
|
+
agentKey: string | null;
|
|
419
|
+
hasRecovery: boolean;
|
|
420
|
+
}[];
|
|
421
|
+
cursor?: string;
|
|
422
|
+
complete: boolean;
|
|
423
|
+
totalCount: number;
|
|
424
|
+
};
|
|
425
|
+
export type InspectSpaceRequest = {
|
|
426
|
+
spaceId: string;
|
|
427
|
+
};
|
|
428
|
+
export type InspectSpaceResponse = {
|
|
429
|
+
spaceId: string;
|
|
430
|
+
metadata: {
|
|
431
|
+
createdAt: string;
|
|
432
|
+
identityKey?: string;
|
|
433
|
+
status?: 'active' | 'deleting';
|
|
434
|
+
} | null;
|
|
435
|
+
members: {
|
|
436
|
+
count: number;
|
|
437
|
+
list: {
|
|
438
|
+
identityKey: string;
|
|
439
|
+
role?: string;
|
|
440
|
+
agentKey?: string;
|
|
441
|
+
}[];
|
|
442
|
+
};
|
|
443
|
+
controlFeeds: {
|
|
444
|
+
replicationProgress: {
|
|
445
|
+
[feedKey: string]: {
|
|
446
|
+
replicated: number;
|
|
447
|
+
processed: number;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
echo: {
|
|
452
|
+
dataFeeds: {
|
|
453
|
+
count: number;
|
|
454
|
+
totalBlocks: number;
|
|
455
|
+
byNamespace: {
|
|
456
|
+
namespace: string;
|
|
457
|
+
feeds: {
|
|
458
|
+
feedId: string;
|
|
459
|
+
blockCount: number;
|
|
460
|
+
}[];
|
|
461
|
+
}[];
|
|
462
|
+
};
|
|
463
|
+
documentCount: number;
|
|
464
|
+
objectCount: number;
|
|
465
|
+
deletedObjectCount: number;
|
|
466
|
+
indexedDocumentCount: number;
|
|
467
|
+
objectsByType: {
|
|
468
|
+
typeURI: string;
|
|
469
|
+
count: number;
|
|
470
|
+
}[];
|
|
471
|
+
indexerStatus: {
|
|
472
|
+
indexingInProgress: boolean;
|
|
473
|
+
cursors: {
|
|
474
|
+
indexName: string;
|
|
475
|
+
sourceName: string;
|
|
476
|
+
resourceId: string | null;
|
|
477
|
+
cursor: string | number;
|
|
478
|
+
}[];
|
|
479
|
+
totalChanges: number;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
usageInLast30Days: {
|
|
483
|
+
lastActivity: string | null;
|
|
484
|
+
wsEvents: number;
|
|
485
|
+
httpEvents: number;
|
|
486
|
+
totalEvents: number;
|
|
487
|
+
} | null;
|
|
488
|
+
durableObjects: {
|
|
489
|
+
type: string;
|
|
490
|
+
doId: string;
|
|
491
|
+
}[];
|
|
492
|
+
};
|
|
493
|
+
export type InspectIdentityRequest = {
|
|
494
|
+
identityKey: string;
|
|
495
|
+
};
|
|
496
|
+
export type InspectIdentityResponse = {
|
|
497
|
+
identityKey: string;
|
|
498
|
+
agentKey: string | null;
|
|
499
|
+
haloSpaceId: string | null;
|
|
500
|
+
hasRecovery: boolean;
|
|
501
|
+
routerDoId: string;
|
|
502
|
+
agentDoId: string | null;
|
|
503
|
+
ownedFunctions: {
|
|
504
|
+
id: string;
|
|
505
|
+
name: string;
|
|
506
|
+
versionCount: number;
|
|
507
|
+
}[];
|
|
508
|
+
spaces: InspectSpaceResponse[];
|
|
509
|
+
};
|
|
510
|
+
/** Matches the SerializedSpace format from @dxos/echo-client, extended with spaceId. */
|
|
511
|
+
export type SpaceExportPayload = {
|
|
512
|
+
version: number;
|
|
513
|
+
timestamp: string;
|
|
514
|
+
spaceId: string;
|
|
515
|
+
objects: Record<string, unknown>[];
|
|
516
|
+
};
|
|
517
|
+
export type SpaceActivityEntry = {
|
|
518
|
+
spaceId: string;
|
|
519
|
+
lastActivity: string;
|
|
520
|
+
totalEvents: number;
|
|
521
|
+
metadata: {
|
|
522
|
+
createdAt: string;
|
|
523
|
+
identityKey?: string;
|
|
524
|
+
status?: 'active' | 'deleting';
|
|
525
|
+
} | null;
|
|
526
|
+
};
|
|
527
|
+
export type SpaceExportResult = {
|
|
528
|
+
spaceId: string;
|
|
529
|
+
downloadPath: string;
|
|
530
|
+
downloadUrl: string;
|
|
531
|
+
expiresAt: string;
|
|
532
|
+
objectCount: number;
|
|
533
|
+
sizeBytes: number;
|
|
534
|
+
};
|
|
535
|
+
export type ExportSpaceRequest = {
|
|
536
|
+
spaceId: string;
|
|
537
|
+
origin: string;
|
|
538
|
+
};
|
|
539
|
+
export type DeleteSpaceRequest = {
|
|
540
|
+
spaceId: string;
|
|
541
|
+
};
|
|
542
|
+
export type DeleteSpaceResponse = {
|
|
543
|
+
status: string;
|
|
544
|
+
spaceId: string;
|
|
545
|
+
};
|
|
546
|
+
export type DeleteIdentityRequest = {
|
|
547
|
+
identityKey: string;
|
|
548
|
+
};
|
|
549
|
+
export type DeleteIdentityResponse = {
|
|
550
|
+
status: string;
|
|
551
|
+
identityKey: string;
|
|
552
|
+
};
|
|
553
|
+
export declare const INVITATION_CODE_LENGTH = 8;
|
|
554
|
+
export declare const DEFAULT_INVITATIONS_PER_ACCOUNT = 5;
|
|
555
|
+
/** Crockford base32 alphabet (no I, L, O, U). Case-insensitive on the wire. */
|
|
556
|
+
export declare const INVITATION_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
557
|
+
export declare const InvitationCodeSchema: Schema.filter<typeof Schema.String>;
|
|
558
|
+
export declare const CheckEmailExistsRequestSchema: Schema.Struct<{
|
|
559
|
+
email: typeof Schema.String;
|
|
560
|
+
}>;
|
|
561
|
+
export type CheckEmailExistsRequest = Schema.Schema.Type<typeof CheckEmailExistsRequestSchema>;
|
|
562
|
+
export type CheckEmailExistsResponse = {
|
|
563
|
+
exists: boolean;
|
|
564
|
+
};
|
|
565
|
+
export declare const ValidateInvitationCodeRequestSchema: Schema.Struct<{
|
|
566
|
+
code: Schema.filter<typeof Schema.String>;
|
|
567
|
+
}>;
|
|
568
|
+
export type ValidateInvitationCodeRequest = Schema.Schema.Type<typeof ValidateInvitationCodeRequestSchema>;
|
|
569
|
+
export type ValidateInvitationCodeResponse = {
|
|
570
|
+
valid: boolean;
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Body of `POST /account/login`. Existing-account email recovery only --
|
|
574
|
+
* unlike `/account/signup`, this never creates new identities or waitlist rows.
|
|
575
|
+
*/
|
|
576
|
+
export declare const LoginRequestSchema: Schema.Struct<{
|
|
577
|
+
email: typeof Schema.String;
|
|
578
|
+
identityDid: Schema.optional<typeof Schema.String>;
|
|
579
|
+
identityKey: Schema.optional<typeof Schema.String>;
|
|
580
|
+
}>;
|
|
581
|
+
export type LoginRequest = Schema.Schema.Type<typeof LoginRequestSchema>;
|
|
582
|
+
/**
|
|
583
|
+
* Response from `POST /account/login`. The shape is identical regardless of
|
|
584
|
+
* whether the email is registered, so the endpoint is safe against enumeration.
|
|
585
|
+
* Regular emails are delivered out-of-band and the response is `{}`.
|
|
586
|
+
*/
|
|
587
|
+
export declare const LoginResponseSchema: Schema.Struct<{
|
|
588
|
+
token: Schema.optional<typeof Schema.String>;
|
|
589
|
+
needsIdentity: Schema.optional<typeof Schema.Boolean>;
|
|
590
|
+
admitted: Schema.optional<typeof Schema.Boolean>;
|
|
591
|
+
}>;
|
|
592
|
+
export type LoginResponse = Schema.Schema.Type<typeof LoginResponseSchema>;
|
|
593
|
+
export declare const RedeemInvitationCodeRequestSchema: Schema.Struct<{
|
|
594
|
+
code: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
595
|
+
identityDid: Schema.optional<typeof Schema.String>;
|
|
596
|
+
/** Raw hex public key, stored alongside the DID for the magic-link recovery flow. */
|
|
597
|
+
identityKey: Schema.optional<typeof Schema.String>;
|
|
598
|
+
email: typeof Schema.String;
|
|
599
|
+
}>;
|
|
600
|
+
export type RedeemInvitationCodeRequest = Schema.Schema.Type<typeof RedeemInvitationCodeRequestSchema>;
|
|
601
|
+
export type RedeemInvitationCodeResponse = {
|
|
602
|
+
accountId: string;
|
|
603
|
+
emailVerificationSent: boolean;
|
|
604
|
+
} | {
|
|
605
|
+
needsIdentity: true;
|
|
606
|
+
};
|
|
607
|
+
export declare const GetAccountResponseSchema: Schema.Struct<{
|
|
608
|
+
identityDid: typeof Schema.String;
|
|
609
|
+
email: typeof Schema.String;
|
|
610
|
+
emailVerified: typeof Schema.Boolean;
|
|
611
|
+
/** ISO timestamp. */
|
|
612
|
+
createdAt: typeof Schema.String;
|
|
613
|
+
invitationsRemaining: typeof Schema.Number;
|
|
614
|
+
}>;
|
|
615
|
+
export type GetAccountResponse = Schema.Schema.Type<typeof GetAccountResponseSchema>;
|
|
616
|
+
export declare const AccountInvitationSchema: Schema.Struct<{
|
|
617
|
+
code: typeof Schema.String;
|
|
618
|
+
/** ISO timestamp. */
|
|
619
|
+
createdAt: typeof Schema.String;
|
|
620
|
+
redeemedByIdentityDid: Schema.optional<typeof Schema.String>;
|
|
621
|
+
/** ISO timestamp. */
|
|
622
|
+
redeemedAt: Schema.optional<typeof Schema.String>;
|
|
623
|
+
}>;
|
|
624
|
+
export type AccountInvitation = Schema.Schema.Type<typeof AccountInvitationSchema>;
|
|
625
|
+
export declare const ListAccountInvitationsResponseSchema: Schema.Struct<{
|
|
626
|
+
invitations: Schema.Array$<Schema.Struct<{
|
|
627
|
+
code: typeof Schema.String;
|
|
628
|
+
/** ISO timestamp. */
|
|
629
|
+
createdAt: typeof Schema.String;
|
|
630
|
+
redeemedByIdentityDid: Schema.optional<typeof Schema.String>;
|
|
631
|
+
/** ISO timestamp. */
|
|
632
|
+
redeemedAt: Schema.optional<typeof Schema.String>;
|
|
633
|
+
}>>;
|
|
634
|
+
}>;
|
|
635
|
+
export type ListAccountInvitationsResponse = Schema.Schema.Type<typeof ListAccountInvitationsResponseSchema>;
|
|
636
|
+
export type IssueInvitationResponse = {
|
|
637
|
+
code: string;
|
|
638
|
+
};
|
|
639
|
+
export type ResendVerificationEmailResponse = {
|
|
640
|
+
sent: boolean;
|
|
641
|
+
cooldownSecondsRemaining?: number;
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* Submitted by users without an Account who want to request access. Captured
|
|
645
|
+
* by Hub for admin follow-up (e.g. mailing list, Discord notification).
|
|
646
|
+
*/
|
|
647
|
+
export declare const RequestAccessRequestSchema: Schema.Struct<{
|
|
648
|
+
email: typeof Schema.String;
|
|
649
|
+
/** Optional: identity DID the user is currently signed in as. */
|
|
650
|
+
identityDid: Schema.optional<typeof Schema.String>;
|
|
651
|
+
/** Optional free-form message from the requester. */
|
|
652
|
+
message: Schema.optional<typeof Schema.String>;
|
|
653
|
+
}>;
|
|
654
|
+
export type RequestAccessRequest = Schema.Schema.Type<typeof RequestAccessRequestSchema>;
|
|
655
|
+
export type RequestAccessResponse = {
|
|
656
|
+
received: boolean;
|
|
657
|
+
};
|
|
658
|
+
export type AdminListAccountsResponse = {
|
|
659
|
+
accounts: GetAccountResponse[];
|
|
660
|
+
};
|
|
661
|
+
export declare const AdminGrantInvitationsRequestSchema: Schema.Struct<{
|
|
662
|
+
identityDid: typeof Schema.String;
|
|
663
|
+
count: typeof Schema.Number;
|
|
664
|
+
}>;
|
|
665
|
+
export type AdminGrantInvitationsRequest = Schema.Schema.Type<typeof AdminGrantInvitationsRequestSchema>;
|
|
666
|
+
export declare const AdminCreateInvitationCodesRequestSchema: Schema.Struct<{
|
|
667
|
+
count: typeof Schema.Number;
|
|
668
|
+
note: Schema.optional<typeof Schema.String>;
|
|
669
|
+
}>;
|
|
670
|
+
export type AdminCreateInvitationCodesRequest = Schema.Schema.Type<typeof AdminCreateInvitationCodesRequestSchema>;
|
|
671
|
+
export type AdminCreateInvitationCodesResponse = {
|
|
672
|
+
codes: string[];
|
|
673
|
+
};
|
|
674
|
+
export type AdminListInvitationCodesResponse = {
|
|
675
|
+
codes: Array<{
|
|
676
|
+
code: string;
|
|
677
|
+
/** ISO timestamp. */
|
|
678
|
+
createdAt: string;
|
|
679
|
+
note?: string;
|
|
680
|
+
issuedByIdentityDid?: string;
|
|
681
|
+
redeemedByIdentityDid?: string;
|
|
682
|
+
/** ISO timestamp. */
|
|
683
|
+
redeemedAt?: string;
|
|
684
|
+
/** ISO timestamp. Set when revoked. */
|
|
685
|
+
revokedAt?: string;
|
|
686
|
+
}>;
|
|
687
|
+
};
|
|
688
|
+
export declare const AdminRevokeInvitationCodeRequestSchema: Schema.Struct<{
|
|
689
|
+
code: Schema.filter<typeof Schema.String>;
|
|
690
|
+
}>;
|
|
691
|
+
export type AdminRevokeInvitationCodeRequest = Schema.Schema.Type<typeof AdminRevokeInvitationCodeRequestSchema>;
|
|
692
|
+
/**
|
|
693
|
+
* Account/invitation-related variants placed in `EdgeFailure.data.type`.
|
|
694
|
+
* EdgeErrorData is open-ended; these are documentation for known values.
|
|
695
|
+
*/
|
|
696
|
+
export type AccountErrorType = 'invitation_code_invalid' | 'invitation_code_already_redeemed' | 'invitation_code_revoked' | 'email_already_registered' | 'identity_already_associated' | 'no_invitations_remaining' | 'identity_not_associated_with_account' | 'no_account' | 'rate_limited';
|
|
697
|
+
export {};
|
|
698
|
+
//# sourceMappingURL=edge.d.ts.map
|