@astrale-os/kernel-client 0.5.1 → 0.6.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.d.ts +18 -0
- package/dist/auth/auth.js +15 -0
- package/dist/auth/authorization.d.ts +13 -0
- package/dist/auth/authorization.js +17 -0
- package/dist/auth/credential.d.ts +19 -0
- package/dist/auth/credential.js +21 -0
- package/dist/auth/identity.d.ts +14 -0
- package/dist/auth/identity.js +15 -0
- package/dist/auth/index.d.ts +6 -16
- package/dist/auth/index.js +5 -10
- package/dist/auth/provision.d.ts +8 -0
- package/dist/auth/provision.js +10 -0
- package/dist/client/admission.d.ts +4 -0
- package/dist/client/admission.js +34 -0
- package/dist/client/client.d.ts +24 -109
- package/dist/client/client.js +80 -381
- package/dist/client/credential.d.ts +12 -0
- package/dist/client/credential.js +51 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.js +4 -0
- package/dist/client/request.d.ts +26 -0
- package/dist/client/request.js +100 -0
- package/dist/client/result.d.ts +35 -0
- package/dist/client/result.js +28 -0
- package/dist/client/routing-control.d.ts +10 -0
- package/dist/client/routing-control.js +23 -0
- package/dist/errors/client-error.d.ts +3 -0
- package/dist/errors/client-error.js +8 -0
- package/dist/errors/index.d.ts +7 -6
- package/dist/errors/index.js +7 -4
- package/dist/errors/miss-error.d.ts +8 -0
- package/dist/errors/miss-error.js +10 -0
- package/dist/errors/protocol-error.d.ts +9 -0
- package/dist/errors/protocol-error.js +9 -0
- package/dist/errors/response-error.d.ts +11 -0
- package/dist/errors/response-error.js +16 -0
- package/dist/errors/session-error.d.ts +8 -20
- package/dist/errors/session-error.js +6 -22
- package/dist/errors/stale-route-error.d.ts +9 -0
- package/dist/errors/stale-route-error.js +12 -0
- package/dist/errors/transport-error.d.ts +30 -0
- package/dist/errors/transport-error.js +18 -0
- package/dist/graph/domain/binding.d.ts +22 -0
- package/dist/graph/domain/binding.js +123 -0
- package/dist/graph/domain/domain.typecheck.d.ts +1 -0
- package/dist/graph/domain/domain.typecheck.js +139 -0
- package/dist/graph/domain/index.d.ts +3 -0
- package/dist/graph/domain/index.js +1 -0
- package/dist/graph/domain/model.d.ts +18 -0
- package/dist/graph/domain/model.js +1 -0
- package/dist/graph/domain/page.d.ts +23 -0
- package/dist/graph/domain/page.js +42 -0
- package/dist/graph/domain/project.d.ts +8 -0
- package/dist/graph/domain/project.js +120 -0
- package/dist/graph/domain/provenance.d.ts +6 -0
- package/dist/graph/domain/provenance.js +11 -0
- package/dist/graph/errors.d.ts +8 -0
- package/dist/graph/errors.js +14 -0
- package/dist/graph/graph.d.ts +26 -0
- package/dist/graph/graph.js +18 -0
- package/dist/graph/index.d.ts +8 -26
- package/dist/graph/index.js +6 -21
- package/dist/graph/mutation.d.ts +5 -0
- package/dist/graph/mutation.js +17 -0
- package/dist/graph/page/index.d.ts +2 -0
- package/dist/graph/page/index.js +1 -0
- package/dist/graph/page/neighbors.d.ts +9 -0
- package/dist/graph/page/neighbors.js +34 -0
- package/dist/graph/page/page.d.ts +37 -0
- package/dist/graph/page/page.js +55 -0
- package/dist/graph/page-contract.d.ts +13 -0
- package/dist/graph/page-contract.js +1 -0
- package/dist/graph/provenance.d.ts +12 -0
- package/dist/graph/provenance.js +37 -0
- package/dist/graph/query.d.ts +4 -0
- package/dist/graph/query.js +69 -0
- package/dist/graph/read.d.ts +6 -0
- package/dist/graph/read.js +17 -0
- package/dist/index.d.ts +6 -25
- package/dist/index.js +6 -21
- package/dist/pacer/batcher/batcher.d.ts +7 -0
- package/dist/pacer/batcher/batcher.js +13 -0
- package/dist/pacer/batcher/defaults.d.ts +2 -0
- package/dist/pacer/batcher/defaults.js +2 -0
- package/dist/pacer/batcher/index.d.ts +1 -0
- package/dist/pacer/batcher/index.js +1 -0
- package/dist/pacer/index.d.ts +4 -10
- package/dist/pacer/index.js +4 -11
- package/dist/pacer/limiter/defaults.d.ts +2 -0
- package/dist/pacer/limiter/defaults.js +2 -0
- package/dist/pacer/limiter/index.d.ts +1 -0
- package/dist/pacer/limiter/index.js +1 -0
- package/dist/pacer/limiter/limiter.d.ts +7 -0
- package/dist/pacer/limiter/limiter.js +14 -0
- package/dist/pacer/queue/defaults.d.ts +1 -0
- package/dist/pacer/queue/defaults.js +1 -0
- package/dist/pacer/queue/index.d.ts +1 -0
- package/dist/pacer/queue/index.js +1 -0
- package/dist/pacer/queue/queue.d.ts +6 -0
- package/dist/pacer/queue/queue.js +12 -0
- package/dist/pacer/retry/defaults.d.ts +6 -0
- package/dist/pacer/retry/defaults.js +16 -0
- package/dist/pacer/retry/index.d.ts +1 -0
- package/dist/pacer/retry/index.js +1 -0
- package/dist/pacer/retry/retry.d.ts +9 -0
- package/dist/pacer/retry/retry.js +55 -0
- package/dist/pool/index.d.ts +2 -4
- package/dist/pool/index.js +0 -2
- package/dist/pool/pool.d.ts +19 -59
- package/dist/pool/pool.js +46 -64
- package/dist/pool/target.d.ts +15 -0
- package/dist/pool/target.js +49 -0
- package/dist/schema/admission.d.ts +12 -0
- package/dist/schema/admission.js +17 -0
- package/dist/schema/contracts.d.ts +12 -0
- package/dist/schema/contracts.js +1 -0
- package/dist/schema/index.d.ts +3 -16
- package/dist/schema/index.js +2 -12
- package/dist/schema/introspection.d.ts +5 -0
- package/dist/schema/introspection.js +15 -0
- package/dist/schema/operation.d.ts +5 -0
- package/dist/schema/operation.js +9 -0
- package/dist/schema/schema.d.ts +19 -0
- package/dist/schema/schema.js +43 -0
- package/dist/session/bound.d.ts +42 -9
- package/dist/session/bound.js +70 -37
- package/dist/session/context/control.d.ts +5 -0
- package/dist/session/context/control.js +17 -0
- package/dist/session/context/index.d.ts +4 -0
- package/dist/session/context/index.js +4 -0
- package/dist/session/context/limits.d.ts +7 -0
- package/dist/session/context/limits.js +18 -0
- package/dist/session/context/operation.d.ts +19 -0
- package/dist/session/context/operation.js +72 -0
- package/dist/session/context/policy.d.ts +11 -0
- package/dist/session/context/policy.js +69 -0
- package/dist/session/discovery/bundle.d.ts +17 -0
- package/dist/session/discovery/bundle.js +55 -0
- package/dist/session/discovery/discovery.d.ts +19 -0
- package/dist/session/discovery/discovery.js +55 -0
- package/dist/session/discovery/index.d.ts +20 -0
- package/dist/session/discovery/index.js +15 -0
- package/dist/session/discovery/publication.d.ts +23 -0
- package/dist/session/discovery/publication.js +123 -0
- package/dist/session/discovery/snapshot.d.ts +12 -0
- package/dist/session/discovery/snapshot.js +3 -0
- package/dist/session/discovery/transport.d.ts +6 -0
- package/dist/session/discovery/transport.js +13 -0
- package/dist/session/index.d.ts +10 -16
- package/dist/session/index.js +3 -9
- package/dist/session/reference.d.ts +36 -0
- package/dist/session/reference.js +74 -0
- package/dist/session/routing/auth.d.ts +18 -0
- package/dist/session/routing/auth.js +39 -0
- package/dist/session/routing/cache.d.ts +20 -0
- package/dist/session/routing/cache.js +115 -0
- package/dist/session/routing/dispatch.d.ts +34 -0
- package/dist/session/routing/dispatch.js +137 -0
- package/dist/session/routing/envelope.d.ts +13 -0
- package/dist/session/routing/envelope.js +35 -0
- package/dist/session/routing/expectation.d.ts +6 -0
- package/dist/session/routing/expectation.js +1 -0
- package/dist/session/routing/index.d.ts +6 -0
- package/dist/session/routing/index.js +5 -0
- package/dist/session/routing/request.d.ts +8 -0
- package/dist/session/routing/request.js +25 -0
- package/dist/session/session.d.ts +67 -0
- package/dist/session/session.js +257 -0
- package/dist/session/session.typecheck.d.ts +1 -0
- package/dist/session/session.typecheck.js +31 -0
- package/dist/session/views/catalog.d.ts +15 -0
- package/dist/session/views/catalog.js +70 -0
- package/dist/session/views/index.d.ts +2 -0
- package/dist/session/views/index.js +2 -0
- package/dist/session/views/resolve.d.ts +11 -0
- package/dist/session/views/resolve.js +13 -0
- package/dist/store/entity-index.d.ts +22 -0
- package/dist/store/entity-index.js +94 -0
- package/dist/store/index.d.ts +1 -26
- package/dist/store/index.js +1 -19
- package/dist/store/memory.d.ts +46 -97
- package/dist/store/memory.js +346 -763
- package/dist/store/mutation.d.ts +5 -0
- package/dist/store/mutation.js +34 -0
- package/dist/store/observe.d.ts +3 -0
- package/dist/store/observe.js +17 -0
- package/dist/store/optimistic.d.ts +12 -0
- package/dist/store/optimistic.js +43 -0
- package/dist/store/query-key.d.ts +5 -0
- package/dist/store/query-key.js +22 -0
- package/dist/store/shape.d.ts +25 -0
- package/dist/store/shape.js +29 -0
- package/dist/store/store.d.ts +68 -0
- package/dist/store/store.js +144 -0
- package/dist/store/store.typecheck.d.ts +1 -0
- package/dist/store/store.typecheck.js +40 -0
- package/dist/transport/auto/decision.d.ts +22 -0
- package/dist/transport/auto/decision.js +48 -0
- package/dist/transport/auto/fallback.d.ts +16 -0
- package/dist/transport/auto/fallback.js +75 -0
- package/dist/transport/auto/index.d.ts +2 -0
- package/dist/transport/auto/index.js +2 -0
- package/dist/transport/auto/transport.d.ts +37 -0
- package/dist/transport/auto/transport.js +140 -0
- package/dist/transport/auto/warning.d.ts +13 -0
- package/dist/transport/auto/warning.js +18 -0
- package/dist/transport/deadline.d.ts +11 -0
- package/dist/transport/deadline.js +39 -0
- package/dist/transport/failure.d.ts +7 -0
- package/dist/transport/failure.js +9 -0
- package/dist/transport/http/index.d.ts +1 -0
- package/dist/transport/http/index.js +1 -0
- package/dist/transport/http/response.d.ts +8 -0
- package/dist/transport/http/response.js +79 -0
- package/dist/transport/http/stream.d.ts +26 -0
- package/dist/transport/http/stream.js +214 -0
- package/dist/transport/http/transport.d.ts +32 -0
- package/dist/transport/http/transport.js +343 -0
- package/dist/transport/index.d.ts +2 -8
- package/dist/transport/index.js +1 -6
- package/dist/transport/transport.d.ts +34 -0
- package/dist/transport/transport.js +1 -0
- package/dist/transport/websocket/connection.d.ts +38 -0
- package/dist/transport/websocket/connection.js +284 -0
- package/dist/transport/websocket/exchange.d.ts +46 -0
- package/dist/transport/websocket/exchange.js +300 -0
- package/dist/transport/websocket/index.d.ts +1 -0
- package/dist/transport/websocket/index.js +1 -0
- package/dist/transport/websocket/transport.d.ts +46 -0
- package/dist/transport/websocket/transport.js +164 -0
- package/package.json +41 -35
- package/dist/auth/addressing.d.ts +0 -32
- package/dist/auth/addressing.d.ts.map +0 -1
- package/dist/auth/addressing.js +0 -36
- package/dist/auth/addressing.js.map +0 -1
- package/dist/auth/api.d.ts +0 -70
- package/dist/auth/api.d.ts.map +0 -1
- package/dist/auth/api.js +0 -36
- package/dist/auth/api.js.map +0 -1
- package/dist/auth/batch.d.ts +0 -18
- package/dist/auth/batch.d.ts.map +0 -1
- package/dist/auth/batch.js +0 -25
- package/dist/auth/batch.js.map +0 -1
- package/dist/auth/composition.d.ts +0 -27
- package/dist/auth/composition.d.ts.map +0 -1
- package/dist/auth/composition.js +0 -83
- package/dist/auth/composition.js.map +0 -1
- package/dist/auth/defaults.d.ts +0 -3
- package/dist/auth/defaults.d.ts.map +0 -1
- package/dist/auth/defaults.js +0 -3
- package/dist/auth/defaults.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/minting.d.ts +0 -35
- package/dist/auth/minting.d.ts.map +0 -1
- package/dist/auth/minting.js +0 -31
- package/dist/auth/minting.js.map +0 -1
- package/dist/auth/permissions.d.ts +0 -55
- package/dist/auth/permissions.d.ts.map +0 -1
- package/dist/auth/permissions.js +0 -47
- package/dist/auth/permissions.js.map +0 -1
- package/dist/auth/principal.d.ts +0 -19
- package/dist/auth/principal.d.ts.map +0 -1
- package/dist/auth/principal.js +0 -46
- package/dist/auth/principal.js.map +0 -1
- package/dist/auth/shorthands.d.ts +0 -19
- package/dist/auth/shorthands.d.ts.map +0 -1
- package/dist/auth/shorthands.js +0 -27
- package/dist/auth/shorthands.js.map +0 -1
- package/dist/client/batch.d.ts +0 -26
- package/dist/client/batch.d.ts.map +0 -1
- package/dist/client/batch.js +0 -8
- package/dist/client/batch.js.map +0 -1
- package/dist/client/bound.d.ts +0 -27
- package/dist/client/bound.d.ts.map +0 -1
- package/dist/client/bound.js +0 -14
- package/dist/client/bound.js.map +0 -1
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js.map +0 -1
- package/dist/client/config.d.ts +0 -112
- package/dist/client/config.d.ts.map +0 -1
- package/dist/client/config.js +0 -10
- package/dist/client/config.js.map +0 -1
- package/dist/client/fn-map.d.ts +0 -61
- package/dist/client/fn-map.d.ts.map +0 -1
- package/dist/client/fn-map.js +0 -2
- package/dist/client/fn-map.js.map +0 -1
- package/dist/client/freeze.d.ts +0 -32
- package/dist/client/freeze.d.ts.map +0 -1
- package/dist/client/freeze.js +0 -42
- package/dist/client/freeze.js.map +0 -1
- package/dist/client/hooks.d.ts +0 -49
- package/dist/client/hooks.d.ts.map +0 -1
- package/dist/client/hooks.js +0 -2
- package/dist/client/hooks.js.map +0 -1
- package/dist/errors/errors.d.ts +0 -156
- package/dist/errors/errors.d.ts.map +0 -1
- package/dist/errors/errors.js +0 -238
- package/dist/errors/errors.js.map +0 -1
- package/dist/errors/guards.d.ts +0 -39
- package/dist/errors/guards.d.ts.map +0 -1
- package/dist/errors/guards.js +0 -127
- package/dist/errors/guards.js.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/errors/session-error.d.ts.map +0 -1
- package/dist/errors/session-error.js.map +0 -1
- package/dist/graph/api.d.ts +0 -85
- package/dist/graph/api.d.ts.map +0 -1
- package/dist/graph/api.js +0 -66
- package/dist/graph/api.js.map +0 -1
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/mutate/builder.d.ts +0 -108
- package/dist/graph/mutate/builder.d.ts.map +0 -1
- package/dist/graph/mutate/builder.js +0 -127
- package/dist/graph/mutate/builder.js.map +0 -1
- package/dist/graph/mutate/index.d.ts +0 -5
- package/dist/graph/mutate/index.d.ts.map +0 -1
- package/dist/graph/mutate/index.js +0 -3
- package/dist/graph/mutate/index.js.map +0 -1
- package/dist/graph/mutate/shorthands.d.ts +0 -42
- package/dist/graph/mutate/shorthands.d.ts.map +0 -1
- package/dist/graph/mutate/shorthands.js +0 -65
- package/dist/graph/mutate/shorthands.js.map +0 -1
- package/dist/graph/named.d.ts +0 -38
- package/dist/graph/named.d.ts.map +0 -1
- package/dist/graph/named.js +0 -47
- package/dist/graph/named.js.map +0 -1
- package/dist/graph/query/builder.d.ts +0 -116
- package/dist/graph/query/builder.d.ts.map +0 -1
- package/dist/graph/query/builder.js +0 -136
- package/dist/graph/query/builder.js.map +0 -1
- package/dist/graph/query/edge-ref.d.ts +0 -13
- package/dist/graph/query/edge-ref.d.ts.map +0 -1
- package/dist/graph/query/edge-ref.js +0 -56
- package/dist/graph/query/edge-ref.js.map +0 -1
- package/dist/graph/query/edges.d.ts +0 -10
- package/dist/graph/query/edges.d.ts.map +0 -1
- package/dist/graph/query/edges.js +0 -11
- package/dist/graph/query/edges.js.map +0 -1
- package/dist/graph/query/errors.d.ts +0 -31
- package/dist/graph/query/errors.d.ts.map +0 -1
- package/dist/graph/query/errors.js +0 -28
- package/dist/graph/query/errors.js.map +0 -1
- package/dist/graph/query/filter.d.ts +0 -50
- package/dist/graph/query/filter.d.ts.map +0 -1
- package/dist/graph/query/filter.js +0 -32
- package/dist/graph/query/filter.js.map +0 -1
- package/dist/graph/query/index.d.ts +0 -12
- package/dist/graph/query/index.d.ts.map +0 -1
- package/dist/graph/query/index.js +0 -7
- package/dist/graph/query/index.js.map +0 -1
- package/dist/graph/query/lower.d.ts +0 -30
- package/dist/graph/query/lower.d.ts.map +0 -1
- package/dist/graph/query/lower.js +0 -171
- package/dist/graph/query/lower.js.map +0 -1
- package/dist/graph/query/shorthands.d.ts +0 -34
- package/dist/graph/query/shorthands.d.ts.map +0 -1
- package/dist/graph/query/shorthands.js +0 -71
- package/dist/graph/query/shorthands.js.map +0 -1
- package/dist/graph/query/traverse.d.ts +0 -59
- package/dist/graph/query/traverse.d.ts.map +0 -1
- package/dist/graph/query/traverse.js +0 -144
- package/dist/graph/query/traverse.js.map +0 -1
- package/dist/graph/reconcile/execute.d.ts +0 -8
- package/dist/graph/reconcile/execute.d.ts.map +0 -1
- package/dist/graph/reconcile/execute.js +0 -56
- package/dist/graph/reconcile/execute.js.map +0 -1
- package/dist/graph/reconcile/index.d.ts +0 -5
- package/dist/graph/reconcile/index.d.ts.map +0 -1
- package/dist/graph/reconcile/index.js +0 -3
- package/dist/graph/reconcile/index.js.map +0 -1
- package/dist/graph/reconcile/input.d.ts +0 -80
- package/dist/graph/reconcile/input.d.ts.map +0 -1
- package/dist/graph/reconcile/input.js +0 -5
- package/dist/graph/reconcile/input.js.map +0 -1
- package/dist/graph/reconcile/normalize.d.ts +0 -3
- package/dist/graph/reconcile/normalize.d.ts.map +0 -1
- package/dist/graph/reconcile/normalize.js +0 -144
- package/dist/graph/reconcile/normalize.js.map +0 -1
- package/dist/graph/reconcile/result.d.ts +0 -19
- package/dist/graph/reconcile/result.d.ts.map +0 -1
- package/dist/graph/reconcile/result.js +0 -95
- package/dist/graph/reconcile/result.js.map +0 -1
- package/dist/graph/reconcile/scope.d.ts +0 -6
- package/dist/graph/reconcile/scope.d.ts.map +0 -1
- package/dist/graph/reconcile/scope.js +0 -69
- package/dist/graph/reconcile/scope.js.map +0 -1
- package/dist/graph/result/envelope.d.ts +0 -37
- package/dist/graph/result/envelope.d.ts.map +0 -1
- package/dist/graph/result/envelope.js +0 -59
- package/dist/graph/result/envelope.js.map +0 -1
- package/dist/graph/result/index.d.ts +0 -6
- package/dist/graph/result/index.d.ts.map +0 -1
- package/dist/graph/result/index.js +0 -4
- package/dist/graph/result/index.js.map +0 -1
- package/dist/graph/result/next.d.ts +0 -16
- package/dist/graph/result/next.d.ts.map +0 -1
- package/dist/graph/result/next.js +0 -77
- package/dist/graph/result/next.js.map +0 -1
- package/dist/graph/result/paged.d.ts +0 -30
- package/dist/graph/result/paged.d.ts.map +0 -1
- package/dist/graph/result/paged.js +0 -41
- package/dist/graph/result/paged.js.map +0 -1
- package/dist/graph/wire.d.ts +0 -33
- package/dist/graph/wire.d.ts.map +0 -1
- package/dist/graph/wire.js +0 -16
- package/dist/graph/wire.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/pacer/batcher.d.ts +0 -11
- package/dist/pacer/batcher.d.ts.map +0 -1
- package/dist/pacer/batcher.js +0 -15
- package/dist/pacer/batcher.js.map +0 -1
- package/dist/pacer/defaults.d.ts +0 -18
- package/dist/pacer/defaults.d.ts.map +0 -1
- package/dist/pacer/defaults.js +0 -18
- package/dist/pacer/defaults.js.map +0 -1
- package/dist/pacer/index.d.ts.map +0 -1
- package/dist/pacer/index.js.map +0 -1
- package/dist/pacer/queue.d.ts +0 -11
- package/dist/pacer/queue.d.ts.map +0 -1
- package/dist/pacer/queue.js +0 -15
- package/dist/pacer/queue.js.map +0 -1
- package/dist/pacer/rate-limiter.d.ts +0 -11
- package/dist/pacer/rate-limiter.d.ts.map +0 -1
- package/dist/pacer/rate-limiter.js +0 -15
- package/dist/pacer/rate-limiter.js.map +0 -1
- package/dist/pacer/retry.d.ts +0 -14
- package/dist/pacer/retry.d.ts.map +0 -1
- package/dist/pacer/retry.js +0 -50
- package/dist/pacer/retry.js.map +0 -1
- package/dist/pool/errors.d.ts +0 -13
- package/dist/pool/errors.d.ts.map +0 -1
- package/dist/pool/errors.js +0 -16
- package/dist/pool/errors.js.map +0 -1
- package/dist/pool/index.d.ts.map +0 -1
- package/dist/pool/index.js.map +0 -1
- package/dist/pool/pool.d.ts.map +0 -1
- package/dist/pool/pool.js.map +0 -1
- package/dist/schema/bound/binder.d.ts +0 -49
- package/dist/schema/bound/binder.d.ts.map +0 -1
- package/dist/schema/bound/binder.js +0 -195
- package/dist/schema/bound/binder.js.map +0 -1
- package/dist/schema/bound/bound-node.d.ts +0 -105
- package/dist/schema/bound/bound-node.d.ts.map +0 -1
- package/dist/schema/bound/bound-node.js +0 -128
- package/dist/schema/bound/bound-node.js.map +0 -1
- package/dist/schema/bound/index.d.ts +0 -10
- package/dist/schema/bound/index.d.ts.map +0 -1
- package/dist/schema/bound/index.js +0 -5
- package/dist/schema/bound/index.js.map +0 -1
- package/dist/schema/bound/view.d.ts +0 -44
- package/dist/schema/bound/view.d.ts.map +0 -1
- package/dist/schema/bound/view.js +0 -117
- package/dist/schema/bound/view.js.map +0 -1
- package/dist/schema/bound/write-props.d.ts +0 -38
- package/dist/schema/bound/write-props.d.ts.map +0 -1
- package/dist/schema/bound/write-props.js +0 -2
- package/dist/schema/bound/write-props.js.map +0 -1
- package/dist/schema/call-args.d.ts +0 -6
- package/dist/schema/call-args.d.ts.map +0 -1
- package/dist/schema/call-args.js +0 -21
- package/dist/schema/call-args.js.map +0 -1
- package/dist/schema/class-proxy.d.ts +0 -11
- package/dist/schema/class-proxy.d.ts.map +0 -1
- package/dist/schema/class-proxy.js +0 -46
- package/dist/schema/class-proxy.js.map +0 -1
- package/dist/schema/extract.d.ts +0 -24
- package/dist/schema/extract.d.ts.map +0 -1
- package/dist/schema/extract.js +0 -45
- package/dist/schema/extract.js.map +0 -1
- package/dist/schema/from-entries.d.ts +0 -12
- package/dist/schema/from-entries.d.ts.map +0 -1
- package/dist/schema/from-entries.js +0 -39
- package/dist/schema/from-entries.js.map +0 -1
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/known-dispatch.d.ts +0 -6
- package/dist/schema/known-dispatch.d.ts.map +0 -1
- package/dist/schema/known-dispatch.js +0 -39
- package/dist/schema/known-dispatch.js.map +0 -1
- package/dist/schema/node-proxy.d.ts +0 -21
- package/dist/schema/node-proxy.d.ts.map +0 -1
- package/dist/schema/node-proxy.js +0 -75
- package/dist/schema/node-proxy.js.map +0 -1
- package/dist/schema/persistence.d.ts +0 -31
- package/dist/schema/persistence.d.ts.map +0 -1
- package/dist/schema/persistence.js +0 -2
- package/dist/schema/persistence.js.map +0 -1
- package/dist/schema/proxy-types.d.ts +0 -131
- package/dist/schema/proxy-types.d.ts.map +0 -1
- package/dist/schema/proxy-types.js +0 -2
- package/dist/schema/proxy-types.js.map +0 -1
- package/dist/schema/registry.d.ts +0 -50
- package/dist/schema/registry.d.ts.map +0 -1
- package/dist/schema/registry.js +0 -110
- package/dist/schema/registry.js.map +0 -1
- package/dist/schema/resolve.d.ts +0 -26
- package/dist/schema/resolve.d.ts.map +0 -1
- package/dist/schema/resolve.js +0 -27
- package/dist/schema/resolve.js.map +0 -1
- package/dist/schema/typed-client.d.ts +0 -10
- package/dist/schema/typed-client.d.ts.map +0 -1
- package/dist/schema/typed-client.js +0 -26
- package/dist/schema/typed-client.js.map +0 -1
- package/dist/schema/types.d.ts +0 -9
- package/dist/schema/types.d.ts.map +0 -1
- package/dist/schema/types.js +0 -2
- package/dist/schema/types.js.map +0 -1
- package/dist/session/bound.d.ts.map +0 -1
- package/dist/session/bound.js.map +0 -1
- package/dist/session/client-session.d.ts +0 -72
- package/dist/session/client-session.d.ts.map +0 -1
- package/dist/session/client-session.js +0 -673
- package/dist/session/client-session.js.map +0 -1
- package/dist/session/config.d.ts +0 -168
- package/dist/session/config.d.ts.map +0 -1
- package/dist/session/config.js +0 -2
- package/dist/session/config.js.map +0 -1
- package/dist/session/delegation/cache.d.ts +0 -139
- package/dist/session/delegation/cache.d.ts.map +0 -1
- package/dist/session/delegation/cache.js +0 -256
- package/dist/session/delegation/cache.js.map +0 -1
- package/dist/session/delegation/errors.d.ts +0 -44
- package/dist/session/delegation/errors.d.ts.map +0 -1
- package/dist/session/delegation/errors.js +0 -62
- package/dist/session/delegation/errors.js.map +0 -1
- package/dist/session/delegation/policy.d.ts +0 -183
- package/dist/session/delegation/policy.d.ts.map +0 -1
- package/dist/session/delegation/policy.js +0 -114
- package/dist/session/delegation/policy.js.map +0 -1
- package/dist/session/delegation/utils.d.ts +0 -4
- package/dist/session/delegation/utils.d.ts.map +0 -1
- package/dist/session/delegation/utils.js +0 -12
- package/dist/session/delegation/utils.js.map +0 -1
- package/dist/session/delegation-mint.d.ts +0 -13
- package/dist/session/delegation-mint.d.ts.map +0 -1
- package/dist/session/delegation-mint.js +0 -39
- package/dist/session/delegation-mint.js.map +0 -1
- package/dist/session/dispatch-routes.d.ts +0 -27
- package/dist/session/dispatch-routes.d.ts.map +0 -1
- package/dist/session/dispatch-routes.js +0 -77
- package/dist/session/dispatch-routes.js.map +0 -1
- package/dist/session/errors/index.d.ts +0 -6
- package/dist/session/errors/index.d.ts.map +0 -1
- package/dist/session/errors/index.js +0 -8
- package/dist/session/errors/index.js.map +0 -1
- package/dist/session/errors/session-errors.d.ts +0 -52
- package/dist/session/errors/session-errors.d.ts.map +0 -1
- package/dist/session/errors/session-errors.js +0 -70
- package/dist/session/errors/session-errors.js.map +0 -1
- package/dist/session/forward.d.ts +0 -15
- package/dist/session/forward.d.ts.map +0 -1
- package/dist/session/forward.js +0 -40
- package/dist/session/forward.js.map +0 -1
- package/dist/session/helpers.d.ts +0 -23
- package/dist/session/helpers.d.ts.map +0 -1
- package/dist/session/helpers.js +0 -56
- package/dist/session/helpers.js.map +0 -1
- package/dist/session/hooks.d.ts +0 -140
- package/dist/session/hooks.d.ts.map +0 -1
- package/dist/session/hooks.js +0 -2
- package/dist/session/hooks.js.map +0 -1
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js.map +0 -1
- package/dist/session/redirect/errors.d.ts +0 -45
- package/dist/session/redirect/errors.d.ts.map +0 -1
- package/dist/session/redirect/errors.js +0 -52
- package/dist/session/redirect/errors.js.map +0 -1
- package/dist/session/redirect/policy.d.ts +0 -79
- package/dist/session/redirect/policy.d.ts.map +0 -1
- package/dist/session/redirect/policy.js +0 -69
- package/dist/session/redirect/policy.js.map +0 -1
- package/dist/session/types.d.ts +0 -54
- package/dist/session/types.d.ts.map +0 -1
- package/dist/session/types.js +0 -2
- package/dist/session/types.js.map +0 -1
- package/dist/store/canonicalize.d.ts +0 -44
- package/dist/store/canonicalize.d.ts.map +0 -1
- package/dist/store/canonicalize.js +0 -0
- package/dist/store/canonicalize.js.map +0 -1
- package/dist/store/entities.d.ts +0 -81
- package/dist/store/entities.d.ts.map +0 -1
- package/dist/store/entities.js +0 -202
- package/dist/store/entities.js.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/index.js.map +0 -1
- package/dist/store/invalidate.d.ts +0 -66
- package/dist/store/invalidate.d.ts.map +0 -1
- package/dist/store/invalidate.js +0 -117
- package/dist/store/invalidate.js.map +0 -1
- package/dist/store/memory.d.ts.map +0 -1
- package/dist/store/memory.js.map +0 -1
- package/dist/store/overlay.d.ts +0 -118
- package/dist/store/overlay.d.ts.map +0 -1
- package/dist/store/overlay.js +0 -237
- package/dist/store/overlay.js.map +0 -1
- package/dist/store/schedule.d.ts +0 -31
- package/dist/store/schedule.d.ts.map +0 -1
- package/dist/store/schedule.js +0 -76
- package/dist/store/schedule.js.map +0 -1
- package/dist/store/shapes.d.ts +0 -92
- package/dist/store/shapes.d.ts.map +0 -1
- package/dist/store/shapes.js +0 -369
- package/dist/store/shapes.js.map +0 -1
- package/dist/store/types.d.ts +0 -168
- package/dist/store/types.d.ts.map +0 -1
- package/dist/store/types.js +0 -7
- package/dist/store/types.js.map +0 -1
- package/dist/transport/binary.d.ts +0 -15
- package/dist/transport/binary.d.ts.map +0 -1
- package/dist/transport/binary.js +0 -2
- package/dist/transport/binary.js.map +0 -1
- package/dist/transport/contract.d.ts +0 -58
- package/dist/transport/contract.d.ts.map +0 -1
- package/dist/transport/contract.js +0 -11
- package/dist/transport/contract.js.map +0 -1
- package/dist/transport/fetch.d.ts +0 -31
- package/dist/transport/fetch.d.ts.map +0 -1
- package/dist/transport/fetch.js +0 -78
- package/dist/transport/fetch.js.map +0 -1
- package/dist/transport/http-envelope.d.ts +0 -49
- package/dist/transport/http-envelope.d.ts.map +0 -1
- package/dist/transport/http-envelope.js +0 -418
- package/dist/transport/http-envelope.js.map +0 -1
- package/dist/transport/http-routed.d.ts +0 -61
- package/dist/transport/http-routed.d.ts.map +0 -1
- package/dist/transport/http-routed.js +0 -409
- package/dist/transport/http-routed.js.map +0 -1
- package/dist/transport/index.d.ts.map +0 -1
- package/dist/transport/index.js.map +0 -1
- package/dist/transport/request-id.d.ts +0 -9
- package/dist/transport/request-id.d.ts.map +0 -1
- package/dist/transport/request-id.js +0 -12
- package/dist/transport/request-id.js.map +0 -1
- package/dist/transport/ws-envelope.d.ts +0 -74
- package/dist/transport/ws-envelope.d.ts.map +0 -1
- package/dist/transport/ws-envelope.js +0 -567
- package/dist/transport/ws-envelope.js.map +0 -1
- package/dist/util/race-signal.d.ts +0 -12
- package/dist/util/race-signal.d.ts.map +0 -1
- package/dist/util/race-signal.js +0 -34
- package/dist/util/race-signal.js.map +0 -1
- package/dist/wire/controller.d.ts +0 -38
- package/dist/wire/controller.d.ts.map +0 -1
- package/dist/wire/controller.js +0 -38
- package/dist/wire/controller.js.map +0 -1
- package/dist/wire/index.d.ts +0 -7
- package/dist/wire/index.d.ts.map +0 -1
- package/dist/wire/index.js +0 -4
- package/dist/wire/index.js.map +0 -1
- package/dist/wire/meta.d.ts +0 -81
- package/dist/wire/meta.d.ts.map +0 -1
- package/dist/wire/meta.js +0 -44
- package/dist/wire/meta.js.map +0 -1
- package/dist/wire/sse.d.ts +0 -67
- package/dist/wire/sse.d.ts.map +0 -1
- package/dist/wire/sse.js +0 -170
- package/dist/wire/sse.js.map +0 -1
package/dist/client/config.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client configuration and per-call options.
|
|
3
|
-
*
|
|
4
|
-
* Two orthogonal axes: `transport` (the pipe — http/ws/auto) × `protocol`
|
|
5
|
-
* (the message shape — envelope/auto). `route` is HTTP-only, so
|
|
6
|
-
* `protocol: 'auto'` degrades to envelope on WS. `binary` and `batch` are
|
|
7
|
-
* HTTP-only regardless of `transport`. Defaults: `'http'` + `'envelope'`.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/client/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
package/dist/client/fn-map.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { CallRedirection } from '@astrale-os/kernel-api';
|
|
2
|
-
import type { BinaryResponse } from '../transport/binary.js';
|
|
3
|
-
import type { WireMeta } from '../wire/meta.js';
|
|
4
|
-
/**
|
|
5
|
-
* A single function entry in the type map. `TKind` is required — codegen
|
|
6
|
-
* always writes it; defaulting here would only obscure intent.
|
|
7
|
-
*/
|
|
8
|
-
export type FnEntry<TParams, TResult, TKind extends 'call' | 'stream' | 'signal' | 'binary'> = {
|
|
9
|
-
params: TParams;
|
|
10
|
-
result: TResult;
|
|
11
|
-
kind: TKind;
|
|
12
|
-
};
|
|
13
|
-
/** Function map: method ref → FnEntry. Type parameter for `KernelClient<M>`. */
|
|
14
|
-
export type FnMap = Record<string, FnEntry<unknown, unknown, 'call' | 'stream' | 'signal' | 'binary'>>;
|
|
15
|
-
type FnsOfKind<M extends FnMap, K extends 'call' | 'stream' | 'signal' | 'binary'> = {
|
|
16
|
-
[Path in keyof M]: M[Path]['kind'] extends K ? Path : never;
|
|
17
|
-
}[keyof M] & string;
|
|
18
|
-
/**
|
|
19
|
-
* Wildcard-map detector. When `M` is the bare `FnMap` (no literal keys),
|
|
20
|
-
* `keyof M` is `string`, so `string extends keyof M` is `true` and the
|
|
21
|
-
* `*Fns<M>` aliases collapse to `string` — letting untyped consumers pass
|
|
22
|
-
* any method ref. For typed maps with literal keys, the conditional is
|
|
23
|
-
* `false` and the kind discrimination kicks in as before.
|
|
24
|
-
*/
|
|
25
|
-
type IsWildcardMap<M extends FnMap> = string extends keyof M ? true : false;
|
|
26
|
-
export type CallFns<M extends FnMap> = IsWildcardMap<M> extends true ? string : FnsOfKind<M, 'call'>;
|
|
27
|
-
export type StreamFns<M extends FnMap> = IsWildcardMap<M> extends true ? string : FnsOfKind<M, 'stream'>;
|
|
28
|
-
export type SignalFns<M extends FnMap> = IsWildcardMap<M> extends true ? string : FnsOfKind<M, 'signal'>;
|
|
29
|
-
export type BinaryFns<M extends FnMap> = IsWildcardMap<M> extends true ? string : FnsOfKind<M, 'binary'>;
|
|
30
|
-
/** `client.send(...)` return — value or redirect. */
|
|
31
|
-
export type SendResult<T> = {
|
|
32
|
-
kind: 'value';
|
|
33
|
-
value: T;
|
|
34
|
-
meta: WireMeta;
|
|
35
|
-
} | {
|
|
36
|
-
kind: 'redirect';
|
|
37
|
-
redirection: CallRedirection;
|
|
38
|
-
meta: WireMeta;
|
|
39
|
-
};
|
|
40
|
-
/** `client.sendStream(...)` return — stream of chunks or on-open redirect. */
|
|
41
|
-
export type SendStreamResult<T> = {
|
|
42
|
-
kind: 'stream';
|
|
43
|
-
chunks: AsyncIterable<T>;
|
|
44
|
-
meta: WireMeta;
|
|
45
|
-
} | {
|
|
46
|
-
kind: 'redirect';
|
|
47
|
-
redirection: CallRedirection;
|
|
48
|
-
meta: WireMeta;
|
|
49
|
-
};
|
|
50
|
-
/** `client.sendBinary(...)` return — binary response or redirect. */
|
|
51
|
-
export type SendBinaryResult = {
|
|
52
|
-
kind: 'binary';
|
|
53
|
-
response: BinaryResponse;
|
|
54
|
-
meta: WireMeta;
|
|
55
|
-
} | {
|
|
56
|
-
kind: 'redirect';
|
|
57
|
-
redirection: CallRedirection;
|
|
58
|
-
meta: WireMeta;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=fn-map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fn-map.d.ts","sourceRoot":"","sources":["../../src/client/fn-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAI/C;;;GAGG;AAC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,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,KAAK,IACnC,aAAa,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAA;AAUjE,qDAAqD;AACrD,MAAM,MAAM,UAAU,CAAC,CAAC,IACpB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,WAAW,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtE,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC1B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,WAAW,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtE,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,WAAW,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA"}
|
package/dist/client/fn-map.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fn-map.js","sourceRoot":"","sources":["../../src/client/fn-map.ts"],"names":[],"mappings":""}
|
package/dist/client/freeze.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { SendBinaryResult, SendResult, SendStreamResult } from './fn-map.js';
|
|
2
|
-
/**
|
|
3
|
-
* Freeze the envelope of a `Send*Result` so observers can't
|
|
4
|
-
* structurally rewrite it. Frozen:
|
|
5
|
-
*
|
|
6
|
-
* - the outer result (so `result.kind = 'redirect'` throws)
|
|
7
|
-
* - `result.meta` (so `meta.durationMs = 0` throws)
|
|
8
|
-
* - `result.meta.wire` and its `wire.headers` Record (HTTP variant)
|
|
9
|
-
*
|
|
10
|
-
* NOT frozen (by design — these are consumable / caller-owned):
|
|
11
|
-
*
|
|
12
|
-
* - `result.value` for `kind: 'value'` — payload data; caller may
|
|
13
|
-
* mutate it without affecting the client. Hooks that mutate this
|
|
14
|
-
* still see their changes in their own scope but do not retarget
|
|
15
|
-
* the client.
|
|
16
|
-
* - `result.redirection` for `kind: 'redirect'` — kept mutable for
|
|
17
|
-
* the same reason; an orchestrator may normalise the URL before
|
|
18
|
-
* retrying.
|
|
19
|
-
* - `result.chunks` for `kind: 'stream'` — the async iterable must
|
|
20
|
-
* stay live so the caller can consume it.
|
|
21
|
-
* - `result.response` for `kind: 'binary'` — body is a
|
|
22
|
-
* `ReadableStream` or `Uint8Array`; freezing the wrapper would not
|
|
23
|
-
* add safety and could surprise bindings that attach properties.
|
|
24
|
-
*
|
|
25
|
-
* The structural freeze closes spec §10's "observation, not
|
|
26
|
-
* transformation" guarantee: a hook that tries
|
|
27
|
-
* `ctx.result.kind = 'x'` or `ctx.result.meta.transport = 'y'` throws
|
|
28
|
-
* `TypeError` in strict mode instead of silently mutating the shape a
|
|
29
|
-
* subsequent hook or the caller depends on.
|
|
30
|
-
*/
|
|
31
|
-
export declare function freezeResult<R extends SendResult<unknown> | SendStreamResult<unknown> | SendBinaryResult>(result: R): R;
|
|
32
|
-
//# sourceMappingURL=freeze.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"freeze.d.ts","sourceRoot":"","sources":["../../src/client/freeze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,YAAY,CAC1B,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,gBAAgB,EAC5E,MAAM,EAAE,CAAC,GAAG,CAAC,CASd"}
|
package/dist/client/freeze.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Freeze the envelope of a `Send*Result` so observers can't
|
|
3
|
-
* structurally rewrite it. Frozen:
|
|
4
|
-
*
|
|
5
|
-
* - the outer result (so `result.kind = 'redirect'` throws)
|
|
6
|
-
* - `result.meta` (so `meta.durationMs = 0` throws)
|
|
7
|
-
* - `result.meta.wire` and its `wire.headers` Record (HTTP variant)
|
|
8
|
-
*
|
|
9
|
-
* NOT frozen (by design — these are consumable / caller-owned):
|
|
10
|
-
*
|
|
11
|
-
* - `result.value` for `kind: 'value'` — payload data; caller may
|
|
12
|
-
* mutate it without affecting the client. Hooks that mutate this
|
|
13
|
-
* still see their changes in their own scope but do not retarget
|
|
14
|
-
* the client.
|
|
15
|
-
* - `result.redirection` for `kind: 'redirect'` — kept mutable for
|
|
16
|
-
* the same reason; an orchestrator may normalise the URL before
|
|
17
|
-
* retrying.
|
|
18
|
-
* - `result.chunks` for `kind: 'stream'` — the async iterable must
|
|
19
|
-
* stay live so the caller can consume it.
|
|
20
|
-
* - `result.response` for `kind: 'binary'` — body is a
|
|
21
|
-
* `ReadableStream` or `Uint8Array`; freezing the wrapper would not
|
|
22
|
-
* add safety and could surprise bindings that attach properties.
|
|
23
|
-
*
|
|
24
|
-
* The structural freeze closes spec §10's "observation, not
|
|
25
|
-
* transformation" guarantee: a hook that tries
|
|
26
|
-
* `ctx.result.kind = 'x'` or `ctx.result.meta.transport = 'y'` throws
|
|
27
|
-
* `TypeError` in strict mode instead of silently mutating the shape a
|
|
28
|
-
* subsequent hook or the caller depends on.
|
|
29
|
-
*/
|
|
30
|
-
export function freezeResult(result) {
|
|
31
|
-
// Freeze the meta first so nested wire field is also frozen.
|
|
32
|
-
Object.freeze(result.meta);
|
|
33
|
-
if (result.meta.wire)
|
|
34
|
-
Object.freeze(result.meta.wire);
|
|
35
|
-
// Headers are already frozen by `headersToRecord`, but re-freezing a
|
|
36
|
-
// frozen object is a no-op and keeps the guarantee local.
|
|
37
|
-
const wire = result.meta.wire;
|
|
38
|
-
if (wire.kind === 'http')
|
|
39
|
-
Object.freeze(wire.headers);
|
|
40
|
-
return Object.freeze(result);
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=freeze.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"freeze.js","sourceRoot":"","sources":["../../src/client/freeze.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,YAAY,CAE1B,MAAS;IACT,6DAA6D;IAC7D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC1B,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI;QAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACrD,qEAAqE;IACrE,0DAA0D;IAC1D,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAA;IAC7B,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;QAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACrD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC9B,CAAC"}
|
package/dist/client/hooks.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { CredentialInput } from '@astrale-os/kernel-core';
|
|
2
|
-
import type { TransportName, WireMeta } from '../wire/meta.js';
|
|
3
|
-
import type { SendBinaryResult, SendResult, SendStreamResult } from './fn-map.js';
|
|
4
|
-
/**
|
|
5
|
-
* Lifecycle hooks — pure observation. Return values are ignored; throws
|
|
6
|
-
* are caught, logged, and the call proceeds unchanged. The result object
|
|
7
|
-
* handed to `onAfterReceive` is `Object.freeze`d, so hooks cannot mutate
|
|
8
|
-
* what the caller sees.
|
|
9
|
-
*
|
|
10
|
-
* Signals (fire-and-forget) flow through `onAfterSignal`, not
|
|
11
|
-
* `onAfterReceive` — signals have no response meta and a string-in-a-union
|
|
12
|
-
* would force every consumer to narrow away the non-object case.
|
|
13
|
-
*/
|
|
14
|
-
export type ClientHooks = {
|
|
15
|
-
onBeforeSend?: (ctx: BeforeSendCtx) => void | Promise<void>;
|
|
16
|
-
onAfterReceive?: (ctx: AfterReceiveCtx) => void | Promise<void>;
|
|
17
|
-
onAfterSignal?: (ctx: AfterSignalCtx) => void | Promise<void>;
|
|
18
|
-
onError?: (ctx: ErrorCtx) => void | Promise<void>;
|
|
19
|
-
onStreamFrame?: (ctx: StreamFrameCtx) => void | Promise<void>;
|
|
20
|
-
};
|
|
21
|
-
export type BeforeSendCtx = {
|
|
22
|
-
method: string;
|
|
23
|
-
params: unknown;
|
|
24
|
-
credential: CredentialInput;
|
|
25
|
-
transport: TransportName;
|
|
26
|
-
url: string;
|
|
27
|
-
correlationId?: string;
|
|
28
|
-
};
|
|
29
|
-
export type AfterReceiveCtx = BeforeSendCtx & {
|
|
30
|
-
result: SendResult<unknown> | SendStreamResult<unknown> | SendBinaryResult;
|
|
31
|
-
meta: WireMeta;
|
|
32
|
-
};
|
|
33
|
-
export type AfterSignalCtx = BeforeSendCtx & {
|
|
34
|
-
/** Client-side timestamp when the signal was dispatched onto the wire. */
|
|
35
|
-
dispatchedAt: number;
|
|
36
|
-
};
|
|
37
|
-
export type ErrorCtx = BeforeSendCtx & {
|
|
38
|
-
error: Error;
|
|
39
|
-
/** Present when the error arose post-decode; absent on connect/timeout. */
|
|
40
|
-
meta?: WireMeta;
|
|
41
|
-
};
|
|
42
|
-
export type StreamFrameCtx = BeforeSendCtx & {
|
|
43
|
-
/** Zero-based index of the chunk in the stream. */
|
|
44
|
-
index: number;
|
|
45
|
-
data: unknown;
|
|
46
|
-
/** Stream-open meta — frozen from the opening `SendStreamResult.meta`. */
|
|
47
|
-
meta: WireMeta;
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/client/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEjF;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/D,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9D,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,eAAe,CAAA;IAC3B,SAAS,EAAE,aAAa,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAA;IAC1E,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG;IACrC,KAAK,EAAE,KAAK,CAAA;IACZ,2EAA2E;IAC3E,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,0EAA0E;IAC1E,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA"}
|
package/dist/client/hooks.js
DELETED
package/dist/client/hooks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/client/hooks.ts"],"names":[],"mappings":""}
|
package/dist/errors/errors.d.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import type { CallRedirection, FieldError, InvariantError } from '@astrale-os/kernel-api';
|
|
2
|
-
import type { TransportName, WireMeta } from '../wire/meta.js';
|
|
3
|
-
/**
|
|
4
|
-
* Context attached to every `WebOSError` thrown by the client. An
|
|
5
|
-
* orchestrator reads this to retry on a different client, inspect a
|
|
6
|
-
* redirection, read a step-up challenge, or correlate logs. The typed
|
|
7
|
-
* fields `redirection` and `challenge` carry the same payloads the
|
|
8
|
-
* corresponding thrown-error subclasses expose as structured properties;
|
|
9
|
-
* the client never dumps raw server `data` here.
|
|
10
|
-
*
|
|
11
|
-
* Populated once at the transport → error boundary. `url` is the URL
|
|
12
|
-
* *actually dispatched to* — when the orchestrator (future layer D)
|
|
13
|
-
* follows a redirect, each hop's error carries that hop's `url`.
|
|
14
|
-
*/
|
|
15
|
-
export type ClientErrorDetails = {
|
|
16
|
-
method: string;
|
|
17
|
-
params: unknown;
|
|
18
|
-
url: string;
|
|
19
|
-
transport: TransportName;
|
|
20
|
-
correlationId?: string;
|
|
21
|
-
meta?: WireMeta;
|
|
22
|
-
redirection?: CallRedirection;
|
|
23
|
-
};
|
|
24
|
-
export declare class WebOSError extends Error {
|
|
25
|
-
details?: ClientErrorDetails;
|
|
26
|
-
constructor(message: string, options?: ErrorOptions);
|
|
27
|
-
}
|
|
28
|
-
export declare class ConnectionError extends WebOSError {
|
|
29
|
-
constructor(message: string, options?: ErrorOptions);
|
|
30
|
-
}
|
|
31
|
-
export declare class DisconnectedError extends WebOSError {
|
|
32
|
-
constructor(message?: string);
|
|
33
|
-
}
|
|
34
|
-
export declare class TimeoutError extends WebOSError {
|
|
35
|
-
readonly requestId: string;
|
|
36
|
-
readonly timeoutMs: number;
|
|
37
|
-
constructor(requestId: string, timeoutMs: number);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Caller forced a transport that the resolved method cannot use (e.g.
|
|
41
|
-
* an envelope transport on a routed-only method, or `routed` on a
|
|
42
|
-
* method without `binding.route`). Thrown synchronously before wire
|
|
43
|
-
* dispatch.
|
|
44
|
-
*/
|
|
45
|
-
export declare class InvalidTransportError extends WebOSError {
|
|
46
|
-
constructor(message: string);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A transport was asked to serve an operation it does not express —
|
|
50
|
-
* `batch` on a routed transport, duplex binary stream on envelope, etc.
|
|
51
|
-
*/
|
|
52
|
-
export declare class UnsupportedTransportError extends WebOSError {
|
|
53
|
-
constructor(message: string);
|
|
54
|
-
}
|
|
55
|
-
export type AuthReason = 'missing' | 'invalid' | 'expired';
|
|
56
|
-
export declare class AuthenticationError extends WebOSError {
|
|
57
|
-
readonly reason: AuthReason;
|
|
58
|
-
constructor(message: string, reason: AuthReason);
|
|
59
|
-
}
|
|
60
|
-
export declare class PermissionDeniedError extends WebOSError {
|
|
61
|
-
constructor(message?: string);
|
|
62
|
-
}
|
|
63
|
-
export declare class KernelError extends WebOSError {
|
|
64
|
-
readonly code: number;
|
|
65
|
-
readonly type: string;
|
|
66
|
-
readonly data?: unknown;
|
|
67
|
-
constructor(message: string, code: number, type?: string, data?: unknown);
|
|
68
|
-
}
|
|
69
|
-
/** The wire payload could not be decoded into a request envelope. */
|
|
70
|
-
export declare class ParseError extends KernelError {
|
|
71
|
-
constructor(message?: string, data?: unknown);
|
|
72
|
-
}
|
|
73
|
-
/** The decoded request envelope failed protocol validation. */
|
|
74
|
-
export declare class InvalidRequestError extends KernelError {
|
|
75
|
-
constructor(message?: string, data?: unknown);
|
|
76
|
-
}
|
|
77
|
-
/** The kernel returned an internal failure payload. */
|
|
78
|
-
export declare class InternalKernelError extends KernelError {
|
|
79
|
-
constructor(message?: string, data?: unknown);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Validation error. `errors` holds the server-reported `FieldError[]`,
|
|
83
|
-
* orthogonal to the inherited `WebOSError.details` (which carries
|
|
84
|
-
* invocation context — method/url/transport/correlationId). Two axes,
|
|
85
|
-
* two fields; neither overwrites the other.
|
|
86
|
-
*/
|
|
87
|
-
export declare class ValidationError extends KernelError {
|
|
88
|
-
readonly errors: FieldError[];
|
|
89
|
-
constructor(message: string, errors: FieldError[]);
|
|
90
|
-
getFieldError(field: string): FieldError | undefined;
|
|
91
|
-
hasFieldError(field: string): boolean;
|
|
92
|
-
}
|
|
93
|
-
export declare class InvariantViolationError extends KernelError {
|
|
94
|
-
readonly errors: InvariantError[];
|
|
95
|
-
constructor(message: string, errors: InvariantError[]);
|
|
96
|
-
getError(code: string): InvariantError | undefined;
|
|
97
|
-
hasError(code: string): boolean;
|
|
98
|
-
}
|
|
99
|
-
export declare class NotFoundError extends WebOSError {
|
|
100
|
-
constructor(message?: string);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* A `get()` / `getOrThrow()` read resolved to no visible node at the address.
|
|
104
|
-
* DELIBERATELY opaque: it does NOT distinguish "does not exist" from "exists but
|
|
105
|
-
* not READable by the caller" — the kernel folds both to an empty read so
|
|
106
|
-
* neither can be probed. `context` prefixes the message with the caller's intent.
|
|
107
|
-
*/
|
|
108
|
-
export declare class NodeUnavailableError extends WebOSError {
|
|
109
|
-
readonly path: string;
|
|
110
|
-
constructor(path: string, context?: string);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* One entry's fate in a batched auth operation. `input` summarizes the entry so
|
|
114
|
-
* a caller can tell WHICH one it is. `value` is present only when fulfilled (so
|
|
115
|
-
* a partial-failure catcher can recover successes); `error` only when rejected.
|
|
116
|
-
*/
|
|
117
|
-
export type AuthBatchOutcome = {
|
|
118
|
-
index: number;
|
|
119
|
-
/** Perm verbs: the caller's entry; bind/unbind: a `{ who, edge, counterparty }` dispatch summary. */
|
|
120
|
-
input: unknown;
|
|
121
|
-
status: 'fulfilled' | 'rejected';
|
|
122
|
-
value?: unknown;
|
|
123
|
-
error?: unknown;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* A batched auth call had at least one entry fail. Set semantics, not a
|
|
127
|
-
* transaction: partial application is possible, so this carries EVERY entry's
|
|
128
|
-
* outcome — inspect {@link outcomes} (or {@link failures}) to see which landed.
|
|
129
|
-
*/
|
|
130
|
-
export declare class AuthBatchError extends WebOSError {
|
|
131
|
-
/** The verb that fanned out — `'check' | 'grant' | 'revoke' | 'bind' | 'unbind'`. */
|
|
132
|
-
readonly operation: string;
|
|
133
|
-
/** Positionally-aligned outcome per dispatched entry. */
|
|
134
|
-
readonly outcomes: readonly AuthBatchOutcome[];
|
|
135
|
-
constructor(
|
|
136
|
-
/** The verb that fanned out — `'check' | 'grant' | 'revoke' | 'bind' | 'unbind'`. */
|
|
137
|
-
operation: string,
|
|
138
|
-
/** Positionally-aligned outcome per dispatched entry. */
|
|
139
|
-
outcomes: readonly AuthBatchOutcome[]);
|
|
140
|
-
/** The rejected entries only — the subset a caller must react to. */
|
|
141
|
-
get failures(): readonly AuthBatchOutcome[];
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Map a `{ code, message, data }` envelope error to a typed `WebOSError`.
|
|
145
|
-
* The caller is responsible for attaching `ClientErrorDetails` via
|
|
146
|
-
* `withDetails` after mapping.
|
|
147
|
-
*/
|
|
148
|
-
export declare function mapServerError(code: number, message: string, data?: unknown): WebOSError;
|
|
149
|
-
/**
|
|
150
|
-
* Attach a full `ClientErrorDetails` record to an error. Typed to require
|
|
151
|
-
* completeness — partial calls fail at compile time — so every thrown
|
|
152
|
-
* error surfaces the invariant set from spec §9.5. Call exactly once per
|
|
153
|
-
* error at the transport → client boundary.
|
|
154
|
-
*/
|
|
155
|
-
export declare function withDetails<E extends WebOSError>(error: E, details: ClientErrorDetails): E;
|
|
156
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAIzF,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAI9D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,aAAa,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,WAAW,CAAC,EAAE,eAAe,CAAA;CAC9B,CAAA;AAID,qBAAa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KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,UAAU;IAE1C,qFAAqF;aACrE,SAAS,EAAE,MAAM;IACjC,yDAAyD;aACzC,QAAQ,EAAE,SAAS,gBAAgB,EAAE;IAJvD;IACE,qFAAqF;IACrE,SAAS,EAAE,MAAM;IACjC,yDAAyD;IACzC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EAKtD;IAED,qEAAqE;IACrE,IAAI,QAAQ,IAAI,SAAS,gBAAgB,EAAE,CAE1C;CACF;AAUD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAyBxF;AAYD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,GAAG,CAAC,CAG1F"}
|
package/dist/errors/errors.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { KERNEL_ERROR_CODES } from '@astrale-os/kernel-api';
|
|
2
|
-
// ─── Base ───────────────────────────────────────────────
|
|
3
|
-
export class WebOSError extends Error {
|
|
4
|
-
details;
|
|
5
|
-
constructor(message, options) {
|
|
6
|
-
super(message, options);
|
|
7
|
-
this.name = 'WebOSError';
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
// ─── Transport ──────────────────────────────────────────
|
|
11
|
-
export class ConnectionError extends WebOSError {
|
|
12
|
-
constructor(message, options) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
this.name = 'ConnectionError';
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export class DisconnectedError extends WebOSError {
|
|
18
|
-
constructor(message = 'Disconnected while request was pending') {
|
|
19
|
-
super(message);
|
|
20
|
-
this.name = 'DisconnectedError';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export class TimeoutError extends WebOSError {
|
|
24
|
-
requestId;
|
|
25
|
-
timeoutMs;
|
|
26
|
-
constructor(requestId, timeoutMs) {
|
|
27
|
-
super(`Request ${requestId} timed out after ${timeoutMs}ms`);
|
|
28
|
-
this.requestId = requestId;
|
|
29
|
-
this.timeoutMs = timeoutMs;
|
|
30
|
-
this.name = 'TimeoutError';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Caller forced a transport that the resolved method cannot use (e.g.
|
|
35
|
-
* an envelope transport on a routed-only method, or `routed` on a
|
|
36
|
-
* method without `binding.route`). Thrown synchronously before wire
|
|
37
|
-
* dispatch.
|
|
38
|
-
*/
|
|
39
|
-
export class InvalidTransportError extends WebOSError {
|
|
40
|
-
constructor(message) {
|
|
41
|
-
super(message);
|
|
42
|
-
this.name = 'InvalidTransportError';
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* A transport was asked to serve an operation it does not express —
|
|
47
|
-
* `batch` on a routed transport, duplex binary stream on envelope, etc.
|
|
48
|
-
*/
|
|
49
|
-
export class UnsupportedTransportError extends WebOSError {
|
|
50
|
-
constructor(message) {
|
|
51
|
-
super(message);
|
|
52
|
-
this.name = 'UnsupportedTransportError';
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export class AuthenticationError extends WebOSError {
|
|
56
|
-
reason;
|
|
57
|
-
constructor(message, reason) {
|
|
58
|
-
super(message);
|
|
59
|
-
this.reason = reason;
|
|
60
|
-
this.name = 'AuthenticationError';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export class PermissionDeniedError extends WebOSError {
|
|
64
|
-
constructor(message = 'Permission denied') {
|
|
65
|
-
super(message);
|
|
66
|
-
this.name = 'PermissionDeniedError';
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
// ─── Kernel ─────────────────────────────────────────────
|
|
70
|
-
export class KernelError extends WebOSError {
|
|
71
|
-
code;
|
|
72
|
-
type;
|
|
73
|
-
data;
|
|
74
|
-
constructor(message, code, type = 'KERNEL_ERROR', data) {
|
|
75
|
-
super(message);
|
|
76
|
-
this.code = code;
|
|
77
|
-
this.type = type;
|
|
78
|
-
this.data = data;
|
|
79
|
-
this.name = 'KernelError';
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/** The wire payload could not be decoded into a request envelope. */
|
|
83
|
-
export class ParseError extends KernelError {
|
|
84
|
-
constructor(message = 'Parse error', data) {
|
|
85
|
-
super(message, KERNEL_ERROR_CODES.PARSE_ERROR, 'PARSE_ERROR', data);
|
|
86
|
-
this.name = 'ParseError';
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/** The decoded request envelope failed protocol validation. */
|
|
90
|
-
export class InvalidRequestError extends KernelError {
|
|
91
|
-
constructor(message = 'Invalid request', data) {
|
|
92
|
-
super(message, KERNEL_ERROR_CODES.INVALID_REQUEST, 'INVALID_REQUEST', data);
|
|
93
|
-
this.name = 'InvalidRequestError';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/** The kernel returned an internal failure payload. */
|
|
97
|
-
export class InternalKernelError extends KernelError {
|
|
98
|
-
constructor(message = 'Internal kernel error', data) {
|
|
99
|
-
super(message, KERNEL_ERROR_CODES.INTERNAL_ERROR, 'INTERNAL_ERROR', data);
|
|
100
|
-
this.name = 'InternalKernelError';
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Validation error. `errors` holds the server-reported `FieldError[]`,
|
|
105
|
-
* orthogonal to the inherited `WebOSError.details` (which carries
|
|
106
|
-
* invocation context — method/url/transport/correlationId). Two axes,
|
|
107
|
-
* two fields; neither overwrites the other.
|
|
108
|
-
*/
|
|
109
|
-
export class ValidationError extends KernelError {
|
|
110
|
-
errors;
|
|
111
|
-
constructor(message, errors) {
|
|
112
|
-
super(message, KERNEL_ERROR_CODES.VALIDATION_ERROR, 'VALIDATION_ERROR', errors);
|
|
113
|
-
this.name = 'ValidationError';
|
|
114
|
-
this.errors = errors;
|
|
115
|
-
}
|
|
116
|
-
getFieldError(field) {
|
|
117
|
-
return this.errors.find((e) => e.path.includes(field));
|
|
118
|
-
}
|
|
119
|
-
hasFieldError(field) {
|
|
120
|
-
return this.errors.some((e) => e.path.includes(field));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
export class InvariantViolationError extends KernelError {
|
|
124
|
-
errors;
|
|
125
|
-
constructor(message, errors) {
|
|
126
|
-
super(message, KERNEL_ERROR_CODES.INVARIANT_VIOLATION, 'INVARIANT_VIOLATION', errors);
|
|
127
|
-
this.name = 'InvariantViolationError';
|
|
128
|
-
this.errors = errors;
|
|
129
|
-
}
|
|
130
|
-
getError(code) {
|
|
131
|
-
return this.errors.find((e) => e.code === code);
|
|
132
|
-
}
|
|
133
|
-
hasError(code) {
|
|
134
|
-
return this.errors.some((e) => e.code === code);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
export class NotFoundError extends WebOSError {
|
|
138
|
-
constructor(message = 'Not found') {
|
|
139
|
-
super(message);
|
|
140
|
-
this.name = 'NotFoundError';
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* A `get()` / `getOrThrow()` read resolved to no visible node at the address.
|
|
145
|
-
* DELIBERATELY opaque: it does NOT distinguish "does not exist" from "exists but
|
|
146
|
-
* not READable by the caller" — the kernel folds both to an empty read so
|
|
147
|
-
* neither can be probed. `context` prefixes the message with the caller's intent.
|
|
148
|
-
*/
|
|
149
|
-
export class NodeUnavailableError extends WebOSError {
|
|
150
|
-
path;
|
|
151
|
-
constructor(path, context) {
|
|
152
|
-
super(context
|
|
153
|
-
? `${context}: node "${path}" not found or not visible`
|
|
154
|
-
: `node "${path}" not found or not visible`);
|
|
155
|
-
this.path = path;
|
|
156
|
-
this.name = 'NodeUnavailableError';
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* A batched auth call had at least one entry fail. Set semantics, not a
|
|
161
|
-
* transaction: partial application is possible, so this carries EVERY entry's
|
|
162
|
-
* outcome — inspect {@link outcomes} (or {@link failures}) to see which landed.
|
|
163
|
-
*/
|
|
164
|
-
export class AuthBatchError extends WebOSError {
|
|
165
|
-
operation;
|
|
166
|
-
outcomes;
|
|
167
|
-
constructor(
|
|
168
|
-
/** The verb that fanned out — `'check' | 'grant' | 'revoke' | 'bind' | 'unbind'`. */
|
|
169
|
-
operation,
|
|
170
|
-
/** Positionally-aligned outcome per dispatched entry. */
|
|
171
|
-
outcomes) {
|
|
172
|
-
const failures = outcomes.filter((o) => o.status === 'rejected');
|
|
173
|
-
super(`auth.${operation}: ${failures.length} of ${outcomes.length} entries failed`);
|
|
174
|
-
this.operation = operation;
|
|
175
|
-
this.outcomes = outcomes;
|
|
176
|
-
this.name = 'AuthBatchError';
|
|
177
|
-
}
|
|
178
|
-
/** The rejected entries only — the subset a caller must react to. */
|
|
179
|
-
get failures() {
|
|
180
|
-
return this.outcomes.filter((o) => o.status === 'rejected');
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
// ─── Error mapping ──────────────────────────────────────
|
|
184
|
-
const AUTH_REASON_BY_CODE = {
|
|
185
|
-
[KERNEL_ERROR_CODES.AUTH_MISSING]: 'missing',
|
|
186
|
-
[KERNEL_ERROR_CODES.AUTH_INVALID]: 'invalid',
|
|
187
|
-
[KERNEL_ERROR_CODES.AUTH_EXPIRED]: 'expired',
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Map a `{ code, message, data }` envelope error to a typed `WebOSError`.
|
|
191
|
-
* The caller is responsible for attaching `ClientErrorDetails` via
|
|
192
|
-
* `withDetails` after mapping.
|
|
193
|
-
*/
|
|
194
|
-
export function mapServerError(code, message, data) {
|
|
195
|
-
if (code === KERNEL_ERROR_CODES.PARSE_ERROR)
|
|
196
|
-
return new ParseError(message, data);
|
|
197
|
-
if (code === KERNEL_ERROR_CODES.INVALID_REQUEST)
|
|
198
|
-
return new InvalidRequestError(message, data);
|
|
199
|
-
const authReason = AUTH_REASON_BY_CODE[code];
|
|
200
|
-
if (authReason)
|
|
201
|
-
return new AuthenticationError(message, authReason);
|
|
202
|
-
if (code === KERNEL_ERROR_CODES.PERMISSION_DENIED)
|
|
203
|
-
return new PermissionDeniedError(message);
|
|
204
|
-
if (code === KERNEL_ERROR_CODES.NOT_FOUND || code === KERNEL_ERROR_CODES.METHOD_NOT_FOUND) {
|
|
205
|
-
return new NotFoundError(message);
|
|
206
|
-
}
|
|
207
|
-
if (code === KERNEL_ERROR_CODES.VALIDATION_ERROR) {
|
|
208
|
-
return new ValidationError(message, readErrors(data));
|
|
209
|
-
}
|
|
210
|
-
if (code === KERNEL_ERROR_CODES.INVARIANT_VIOLATION) {
|
|
211
|
-
return new InvariantViolationError(message, readErrors(data));
|
|
212
|
-
}
|
|
213
|
-
if (code === KERNEL_ERROR_CODES.INTERNAL_ERROR)
|
|
214
|
-
return new InternalKernelError(message, data);
|
|
215
|
-
return new KernelError(message, code, 'KERNEL_ERROR', data);
|
|
216
|
-
}
|
|
217
|
-
function readErrors(data) {
|
|
218
|
-
if (Array.isArray(data))
|
|
219
|
-
return data;
|
|
220
|
-
if (data && typeof data === 'object') {
|
|
221
|
-
const record = data;
|
|
222
|
-
const errs = record.errors ?? record.details;
|
|
223
|
-
if (Array.isArray(errs))
|
|
224
|
-
return errs;
|
|
225
|
-
}
|
|
226
|
-
return [];
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Attach a full `ClientErrorDetails` record to an error. Typed to require
|
|
230
|
-
* completeness — partial calls fail at compile time — so every thrown
|
|
231
|
-
* error surfaces the invariant set from spec §9.5. Call exactly once per
|
|
232
|
-
* error at the transport → client boundary.
|
|
233
|
-
*/
|
|
234
|
-
export function withDetails(error, details) {
|
|
235
|
-
error.details = details;
|
|
236
|
-
return error;
|
|
237
|
-
}
|
|
238
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
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