@astrale-os/kernel-client 0.6.0-beta.2 → 0.6.0-beta.21
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 +1 -2
- package/dist/auth/auth.js +0 -1
- package/dist/auth/authorization.d.ts +2 -3
- package/dist/auth/authorization.js +3 -4
- package/dist/auth/credential.d.ts +1 -2
- package/dist/auth/credential.js +5 -6
- package/dist/auth/identity.d.ts +2 -3
- package/dist/auth/identity.js +4 -5
- package/dist/auth/index.d.ts +1 -2
- package/dist/auth/index.js +0 -1
- package/dist/auth/provision.d.ts +0 -1
- package/dist/auth/provision.js +2 -3
- package/dist/client/admission.d.ts +0 -1
- package/dist/client/admission.js +0 -1
- package/dist/client/client.d.ts +4 -5
- package/dist/client/client.js +2 -3
- package/dist/client/credential.d.ts +4 -5
- package/dist/client/credential.js +0 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +0 -1
- package/dist/client/request.d.ts +2 -3
- package/dist/client/request.js +1 -2
- package/dist/client/result.d.ts +35 -5
- package/dist/client/result.js +6 -4
- package/dist/client/routing-control.d.ts +3 -4
- package/dist/client/routing-control.js +4 -5
- package/dist/errors/client-error.d.ts +0 -1
- package/dist/errors/client-error.js +2 -1
- package/dist/errors/index.d.ts +7 -7
- package/dist/errors/index.js +7 -7
- package/dist/errors/miss-error.d.ts +3 -2
- package/dist/errors/miss-error.js +3 -2
- package/dist/errors/protocol-error.d.ts +6 -2
- package/dist/errors/protocol-error.js +2 -1
- package/dist/errors/response-error.d.ts +4 -3
- package/dist/errors/response-error.js +4 -3
- package/dist/errors/session-error.d.ts +9 -0
- package/dist/errors/session-error.js +9 -0
- package/dist/errors/stale-route-error.d.ts +3 -3
- package/dist/errors/stale-route-error.js +3 -2
- package/dist/errors/transport-error.d.ts +20 -5
- package/dist/errors/transport-error.js +11 -5
- 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 +2 -3
- package/dist/graph/errors.js +2 -2
- package/dist/graph/expectation.d.ts +3 -0
- package/dist/graph/expectation.js +6 -0
- package/dist/graph/graph.d.ts +14 -11
- package/dist/graph/graph.js +0 -1
- package/dist/graph/index.d.ts +3 -2
- package/dist/graph/index.js +1 -1
- package/dist/graph/mutation.d.ts +2 -4
- package/dist/graph/mutation.js +12 -4
- package/dist/graph/page/index.d.ts +0 -1
- package/dist/graph/page/index.js +0 -1
- package/dist/graph/page/neighbors.d.ts +4 -5
- package/dist/graph/page/neighbors.js +6 -7
- package/dist/graph/page/page.d.ts +6 -3
- package/dist/graph/page/page.js +0 -1
- package/dist/graph/page-contract.d.ts +13 -0
- package/dist/graph/page-contract.js +1 -0
- package/dist/graph/provenance.d.ts +14 -0
- package/dist/graph/provenance.js +42 -0
- package/dist/graph/query.d.ts +1 -2
- package/dist/graph/query.js +21 -13
- package/dist/graph/read.d.ts +3 -4
- package/dist/graph/read.js +1 -2
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -2
- package/dist/pacer/batcher/batcher.d.ts +0 -1
- package/dist/pacer/batcher/batcher.js +0 -1
- package/dist/pacer/batcher/defaults.d.ts +0 -1
- package/dist/pacer/batcher/defaults.js +0 -1
- package/dist/pacer/batcher/index.d.ts +0 -1
- package/dist/pacer/batcher/index.js +0 -1
- package/dist/pacer/index.d.ts +0 -1
- package/dist/pacer/index.js +0 -1
- package/dist/pacer/limiter/defaults.d.ts +0 -1
- package/dist/pacer/limiter/defaults.js +0 -1
- package/dist/pacer/limiter/index.d.ts +0 -1
- package/dist/pacer/limiter/index.js +0 -1
- package/dist/pacer/limiter/limiter.d.ts +0 -1
- package/dist/pacer/limiter/limiter.js +0 -1
- package/dist/pacer/queue/defaults.d.ts +0 -1
- package/dist/pacer/queue/defaults.js +0 -1
- package/dist/pacer/queue/index.d.ts +0 -1
- package/dist/pacer/queue/index.js +0 -1
- package/dist/pacer/queue/queue.d.ts +0 -1
- package/dist/pacer/queue/queue.js +0 -1
- package/dist/pacer/retry/defaults.d.ts +0 -1
- package/dist/pacer/retry/defaults.js +0 -1
- package/dist/pacer/retry/index.d.ts +0 -1
- package/dist/pacer/retry/index.js +0 -1
- package/dist/pacer/retry/retry.d.ts +0 -1
- package/dist/pacer/retry/retry.js +0 -1
- package/dist/pool/index.d.ts +0 -1
- package/dist/pool/index.js +0 -1
- package/dist/pool/pool.d.ts +0 -1
- package/dist/pool/pool.js +0 -1
- package/dist/pool/target.d.ts +0 -1
- package/dist/pool/target.js +0 -1
- package/dist/schema/admission.d.ts +9 -7
- package/dist/schema/admission.js +6 -12
- package/dist/schema/contracts.d.ts +12 -0
- package/dist/schema/contracts.js +1 -0
- package/dist/schema/index.d.ts +3 -4
- package/dist/schema/index.js +1 -1
- package/dist/schema/introspection.d.ts +1 -2
- package/dist/schema/introspection.js +7 -4
- package/dist/schema/operation.d.ts +5 -0
- package/dist/schema/operation.js +9 -0
- package/dist/schema/schema.d.ts +10 -12
- package/dist/schema/schema.js +47 -10
- package/dist/session/bound.d.ts +41 -0
- package/dist/session/bound.js +72 -0
- package/dist/session/context/control.d.ts +0 -1
- package/dist/session/context/control.js +0 -1
- package/dist/session/context/index.d.ts +0 -1
- package/dist/session/context/index.js +0 -1
- package/dist/session/context/limits.d.ts +0 -1
- package/dist/session/context/limits.js +0 -1
- package/dist/session/context/operation.d.ts +0 -1
- package/dist/session/context/operation.js +19 -17
- package/dist/session/context/policy.d.ts +1 -2
- package/dist/session/context/policy.js +2 -3
- package/dist/session/discovery/bundle.d.ts +0 -1
- package/dist/session/discovery/bundle.js +6 -6
- package/dist/session/discovery/discovery.d.ts +1 -2
- package/dist/session/discovery/discovery.js +0 -1
- package/dist/session/discovery/index.d.ts +1 -2
- package/dist/session/discovery/index.js +0 -1
- package/dist/session/discovery/publication.d.ts +1 -2
- package/dist/session/discovery/publication.js +6 -5
- package/dist/session/discovery/snapshot.d.ts +1 -2
- package/dist/session/discovery/snapshot.js +0 -1
- package/dist/session/discovery/transport.d.ts +6 -0
- package/dist/session/discovery/transport.js +13 -0
- package/dist/session/index.d.ts +6 -4
- package/dist/session/index.js +3 -2
- package/dist/session/reference.d.ts +36 -0
- package/dist/session/reference.js +74 -0
- package/dist/session/routing/auth.d.ts +1 -2
- package/dist/session/routing/auth.js +1 -2
- package/dist/session/routing/cache.d.ts +2 -3
- package/dist/session/routing/cache.js +1 -13
- package/dist/session/routing/dispatch.d.ts +4 -9
- package/dist/session/routing/dispatch.js +14 -22
- package/dist/session/routing/envelope.d.ts +0 -1
- package/dist/session/routing/envelope.js +0 -1
- package/dist/session/routing/expectation.d.ts +6 -0
- package/dist/session/routing/expectation.js +1 -0
- package/dist/session/routing/index.d.ts +1 -2
- package/dist/session/routing/index.js +0 -1
- package/dist/session/routing/request.d.ts +1 -2
- package/dist/session/routing/request.js +1 -2
- package/dist/session/session.d.ts +16 -13
- package/dist/session/session.js +49 -35
- package/dist/session/session.typecheck.d.ts +0 -1
- package/dist/session/session.typecheck.js +23 -2
- package/dist/session/views/catalog.d.ts +2 -3
- package/dist/session/views/catalog.js +14 -7
- package/dist/session/views/index.d.ts +0 -1
- package/dist/session/views/index.js +0 -1
- package/dist/session/views/resolve.d.ts +1 -3
- package/dist/session/views/resolve.js +4 -3
- package/dist/store/entity-index.d.ts +0 -1
- package/dist/store/entity-index.js +0 -1
- package/dist/store/index.d.ts +0 -1
- package/dist/store/index.js +0 -1
- package/dist/store/memory.d.ts +3 -3
- package/dist/store/memory.js +24 -13
- package/dist/store/mutation.d.ts +0 -1
- package/dist/store/mutation.js +0 -1
- package/dist/store/observe.d.ts +0 -1
- package/dist/store/observe.js +0 -1
- package/dist/store/optimistic.d.ts +0 -1
- package/dist/store/optimistic.js +0 -1
- package/dist/store/query-key.d.ts +3 -3
- package/dist/store/query-key.js +7 -3
- package/dist/store/shape.d.ts +4 -3
- package/dist/store/shape.js +3 -2
- package/dist/store/store.d.ts +3 -5
- package/dist/store/store.js +5 -4
- package/dist/store/store.typecheck.d.ts +0 -1
- package/dist/store/store.typecheck.js +3 -4
- package/dist/transport/auto/decision.d.ts +0 -1
- package/dist/transport/auto/decision.js +0 -1
- package/dist/transport/auto/fallback.d.ts +0 -1
- package/dist/transport/auto/fallback.js +8 -10
- package/dist/transport/auto/index.d.ts +0 -1
- package/dist/transport/auto/index.js +0 -1
- package/dist/transport/auto/transport.d.ts +0 -1
- package/dist/transport/auto/transport.js +5 -6
- package/dist/transport/auto/warning.d.ts +0 -1
- package/dist/transport/auto/warning.js +0 -1
- package/dist/transport/deadline.d.ts +0 -1
- package/dist/transport/deadline.js +0 -1
- package/dist/transport/failure.d.ts +7 -0
- package/dist/transport/failure.js +9 -0
- package/dist/transport/http/byte-stream.d.ts +17 -0
- package/dist/transport/http/byte-stream.js +86 -0
- package/dist/transport/http/index.d.ts +0 -1
- package/dist/transport/http/index.js +0 -1
- package/dist/transport/http/response.d.ts +2 -2
- package/dist/transport/http/response.js +2 -2
- package/dist/transport/http/stream.d.ts +6 -5
- package/dist/transport/http/stream.js +29 -12
- package/dist/transport/http/transport.d.ts +0 -1
- package/dist/transport/http/transport.js +65 -40
- package/dist/transport/index.d.ts +0 -1
- package/dist/transport/index.js +0 -1
- package/dist/transport/transport.d.ts +3 -2
- package/dist/transport/transport.js +0 -1
- package/dist/transport/websocket/connection.d.ts +3 -3
- package/dist/transport/websocket/connection.js +21 -34
- package/dist/transport/websocket/exchange.d.ts +7 -7
- package/dist/transport/websocket/exchange.js +50 -39
- package/dist/transport/websocket/index.d.ts +0 -1
- package/dist/transport/websocket/index.js +0 -1
- package/dist/transport/websocket/transport.d.ts +0 -1
- package/dist/transport/websocket/transport.js +9 -21
- package/package.json +21 -19
- package/dist/auth/auth.d.ts.map +0 -1
- package/dist/auth/auth.js.map +0 -1
- package/dist/auth/authorization.d.ts.map +0 -1
- package/dist/auth/authorization.js.map +0 -1
- package/dist/auth/credential.d.ts.map +0 -1
- package/dist/auth/credential.js.map +0 -1
- package/dist/auth/identity.d.ts.map +0 -1
- package/dist/auth/identity.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/provision.d.ts.map +0 -1
- package/dist/auth/provision.js.map +0 -1
- package/dist/client/admission.d.ts.map +0 -1
- package/dist/client/admission.js.map +0 -1
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js.map +0 -1
- package/dist/client/credential.d.ts.map +0 -1
- package/dist/client/credential.js.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js.map +0 -1
- package/dist/client/request.d.ts.map +0 -1
- package/dist/client/request.js.map +0 -1
- package/dist/client/result.d.ts.map +0 -1
- package/dist/client/result.js.map +0 -1
- package/dist/client/routing-control.d.ts.map +0 -1
- package/dist/client/routing-control.js.map +0 -1
- package/dist/domain/binding.d.ts +0 -24
- package/dist/domain/binding.d.ts.map +0 -1
- package/dist/domain/binding.js +0 -69
- package/dist/domain/binding.js.map +0 -1
- package/dist/domain/callable.d.ts +0 -25
- package/dist/domain/callable.d.ts.map +0 -1
- package/dist/domain/callable.js +0 -70
- package/dist/domain/callable.js.map +0 -1
- package/dist/domain/domain.typecheck.d.ts +0 -2
- package/dist/domain/domain.typecheck.d.ts.map +0 -1
- package/dist/domain/domain.typecheck.js +0 -69
- package/dist/domain/domain.typecheck.js.map +0 -1
- package/dist/domain/index.d.ts +0 -4
- package/dist/domain/index.d.ts.map +0 -1
- package/dist/domain/index.js +0 -2
- package/dist/domain/index.js.map +0 -1
- package/dist/domain/node.d.ts +0 -10
- package/dist/domain/node.d.ts.map +0 -1
- package/dist/domain/node.js +0 -6
- package/dist/domain/node.js.map +0 -1
- package/dist/errors/client-error.d.ts.map +0 -1
- package/dist/errors/client-error.js.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/errors/miss-error.d.ts.map +0 -1
- package/dist/errors/miss-error.js.map +0 -1
- package/dist/errors/protocol-error.d.ts.map +0 -1
- package/dist/errors/protocol-error.js.map +0 -1
- package/dist/errors/response-error.d.ts.map +0 -1
- package/dist/errors/response-error.js.map +0 -1
- package/dist/errors/stale-route-error.d.ts.map +0 -1
- package/dist/errors/stale-route-error.js.map +0 -1
- package/dist/errors/transport-error.d.ts.map +0 -1
- package/dist/errors/transport-error.js.map +0 -1
- package/dist/graph/errors.d.ts.map +0 -1
- package/dist/graph/errors.js.map +0 -1
- package/dist/graph/graph.d.ts.map +0 -1
- package/dist/graph/graph.js.map +0 -1
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/mutation.d.ts.map +0 -1
- package/dist/graph/mutation.js.map +0 -1
- package/dist/graph/page/index.d.ts.map +0 -1
- package/dist/graph/page/index.js.map +0 -1
- package/dist/graph/page/neighbors.d.ts.map +0 -1
- package/dist/graph/page/neighbors.js.map +0 -1
- package/dist/graph/page/page.d.ts.map +0 -1
- package/dist/graph/page/page.js.map +0 -1
- package/dist/graph/query.d.ts.map +0 -1
- package/dist/graph/query.js.map +0 -1
- package/dist/graph/read.d.ts.map +0 -1
- package/dist/graph/read.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/pacer/batcher/batcher.d.ts.map +0 -1
- package/dist/pacer/batcher/batcher.js.map +0 -1
- package/dist/pacer/batcher/defaults.d.ts.map +0 -1
- package/dist/pacer/batcher/defaults.js.map +0 -1
- package/dist/pacer/batcher/index.d.ts.map +0 -1
- package/dist/pacer/batcher/index.js.map +0 -1
- package/dist/pacer/index.d.ts.map +0 -1
- package/dist/pacer/index.js.map +0 -1
- package/dist/pacer/limiter/defaults.d.ts.map +0 -1
- package/dist/pacer/limiter/defaults.js.map +0 -1
- package/dist/pacer/limiter/index.d.ts.map +0 -1
- package/dist/pacer/limiter/index.js.map +0 -1
- package/dist/pacer/limiter/limiter.d.ts.map +0 -1
- package/dist/pacer/limiter/limiter.js.map +0 -1
- package/dist/pacer/queue/defaults.d.ts.map +0 -1
- package/dist/pacer/queue/defaults.js.map +0 -1
- package/dist/pacer/queue/index.d.ts.map +0 -1
- package/dist/pacer/queue/index.js.map +0 -1
- package/dist/pacer/queue/queue.d.ts.map +0 -1
- package/dist/pacer/queue/queue.js.map +0 -1
- package/dist/pacer/retry/defaults.d.ts.map +0 -1
- package/dist/pacer/retry/defaults.js.map +0 -1
- package/dist/pacer/retry/index.d.ts.map +0 -1
- package/dist/pacer/retry/index.js.map +0 -1
- package/dist/pacer/retry/retry.d.ts.map +0 -1
- package/dist/pacer/retry/retry.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/pool/target.d.ts.map +0 -1
- package/dist/pool/target.js.map +0 -1
- package/dist/schema/admission.d.ts.map +0 -1
- package/dist/schema/admission.js.map +0 -1
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/introspection.d.ts.map +0 -1
- package/dist/schema/introspection.js.map +0 -1
- package/dist/schema/schema.d.ts.map +0 -1
- package/dist/schema/schema.js.map +0 -1
- package/dist/session/context/control.d.ts.map +0 -1
- package/dist/session/context/control.js.map +0 -1
- package/dist/session/context/index.d.ts.map +0 -1
- package/dist/session/context/index.js.map +0 -1
- package/dist/session/context/limits.d.ts.map +0 -1
- package/dist/session/context/limits.js.map +0 -1
- package/dist/session/context/operation.d.ts.map +0 -1
- package/dist/session/context/operation.js.map +0 -1
- package/dist/session/context/policy.d.ts.map +0 -1
- package/dist/session/context/policy.js.map +0 -1
- package/dist/session/discovery/bundle.d.ts.map +0 -1
- package/dist/session/discovery/bundle.js.map +0 -1
- package/dist/session/discovery/discovery.d.ts.map +0 -1
- package/dist/session/discovery/discovery.js.map +0 -1
- package/dist/session/discovery/index.d.ts.map +0 -1
- package/dist/session/discovery/index.js.map +0 -1
- package/dist/session/discovery/publication.d.ts.map +0 -1
- package/dist/session/discovery/publication.js.map +0 -1
- package/dist/session/discovery/snapshot.d.ts.map +0 -1
- package/dist/session/discovery/snapshot.js.map +0 -1
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js.map +0 -1
- package/dist/session/routing/auth.d.ts.map +0 -1
- package/dist/session/routing/auth.js.map +0 -1
- package/dist/session/routing/bound.d.ts +0 -7
- package/dist/session/routing/bound.d.ts.map +0 -1
- package/dist/session/routing/bound.js +0 -2
- package/dist/session/routing/bound.js.map +0 -1
- package/dist/session/routing/cache.d.ts.map +0 -1
- package/dist/session/routing/cache.js.map +0 -1
- package/dist/session/routing/dispatch.d.ts.map +0 -1
- package/dist/session/routing/dispatch.js.map +0 -1
- package/dist/session/routing/envelope.d.ts.map +0 -1
- package/dist/session/routing/envelope.js.map +0 -1
- package/dist/session/routing/index.d.ts.map +0 -1
- package/dist/session/routing/index.js.map +0 -1
- package/dist/session/routing/request.d.ts.map +0 -1
- package/dist/session/routing/request.js.map +0 -1
- package/dist/session/session.d.ts.map +0 -1
- package/dist/session/session.js.map +0 -1
- package/dist/session/session.typecheck.d.ts.map +0 -1
- package/dist/session/session.typecheck.js.map +0 -1
- package/dist/session/views/catalog.d.ts.map +0 -1
- package/dist/session/views/catalog.js.map +0 -1
- package/dist/session/views/index.d.ts.map +0 -1
- package/dist/session/views/index.js.map +0 -1
- package/dist/session/views/resolve.d.ts.map +0 -1
- package/dist/session/views/resolve.js.map +0 -1
- package/dist/store/entity-index.d.ts.map +0 -1
- package/dist/store/entity-index.js.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/index.js.map +0 -1
- package/dist/store/memory.d.ts.map +0 -1
- package/dist/store/memory.js.map +0 -1
- package/dist/store/mutation.d.ts.map +0 -1
- package/dist/store/mutation.js.map +0 -1
- package/dist/store/observe.d.ts.map +0 -1
- package/dist/store/observe.js.map +0 -1
- package/dist/store/optimistic.d.ts.map +0 -1
- package/dist/store/optimistic.js.map +0 -1
- package/dist/store/query-key.d.ts.map +0 -1
- package/dist/store/query-key.js.map +0 -1
- package/dist/store/shape.d.ts.map +0 -1
- package/dist/store/shape.js.map +0 -1
- package/dist/store/store.d.ts.map +0 -1
- package/dist/store/store.js.map +0 -1
- package/dist/store/store.typecheck.d.ts.map +0 -1
- package/dist/store/store.typecheck.js.map +0 -1
- package/dist/transport/auto/decision.d.ts.map +0 -1
- package/dist/transport/auto/decision.js.map +0 -1
- package/dist/transport/auto/fallback.d.ts.map +0 -1
- package/dist/transport/auto/fallback.js.map +0 -1
- package/dist/transport/auto/index.d.ts.map +0 -1
- package/dist/transport/auto/index.js.map +0 -1
- package/dist/transport/auto/transport.d.ts.map +0 -1
- package/dist/transport/auto/transport.js.map +0 -1
- package/dist/transport/auto/warning.d.ts.map +0 -1
- package/dist/transport/auto/warning.js.map +0 -1
- package/dist/transport/deadline.d.ts.map +0 -1
- package/dist/transport/deadline.js.map +0 -1
- package/dist/transport/http/index.d.ts.map +0 -1
- package/dist/transport/http/index.js.map +0 -1
- package/dist/transport/http/response.d.ts.map +0 -1
- package/dist/transport/http/response.js.map +0 -1
- package/dist/transport/http/stream.d.ts.map +0 -1
- package/dist/transport/http/stream.js.map +0 -1
- package/dist/transport/http/transport.d.ts.map +0 -1
- package/dist/transport/http/transport.js.map +0 -1
- package/dist/transport/index.d.ts.map +0 -1
- package/dist/transport/index.js.map +0 -1
- package/dist/transport/transport.d.ts.map +0 -1
- package/dist/transport/transport.js.map +0 -1
- package/dist/transport/websocket/connection.d.ts.map +0 -1
- package/dist/transport/websocket/connection.js.map +0 -1
- package/dist/transport/websocket/exchange.d.ts.map +0 -1
- package/dist/transport/websocket/exchange.js.map +0 -1
- package/dist/transport/websocket/index.d.ts.map +0 -1
- package/dist/transport/websocket/index.js.map +0 -1
- package/dist/transport/websocket/transport.d.ts.map +0 -1
- package/dist/transport/websocket/transport.js.map +0 -1
package/dist/graph/graph.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import type { GraphSpec } from '@astrale-os/kernel-core/graph/graph';
|
|
2
2
|
import type { MutationAST as MutationASTValue, MutationBuilder, MutationInput, MutationResult as MutationResultValue } from '@astrale-os/kernel-core/graph/mutate';
|
|
3
3
|
import type { Node } from '@astrale-os/kernel-core/graph/node';
|
|
4
|
-
import type { QueryAST as QueryASTValue,
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { Call } from '../client/index.js';
|
|
4
|
+
import type { QueryAST as QueryASTValue, QueryEdgeClassInput, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
5
|
+
import type { NodeTarget } from '@astrale-os/kernel-core/path';
|
|
6
|
+
import type { DomainDependency } from '@astrale-os/kernel-dsl/v1/schema';
|
|
7
|
+
import type { Call, Input } from '../client/index.js';
|
|
9
8
|
import type { RequestOptions } from '../transport/index.js';
|
|
9
|
+
import type { QueryPageRequest, QueryResponse } from './page-contract.js';
|
|
10
10
|
import type { NeighborsOptions, NodePage } from './page/index.js';
|
|
11
11
|
export type GraphCall = (call: Call, options?: RequestOptions) => Promise<Input>;
|
|
12
12
|
export interface GraphQueryOptions extends RequestOptions {
|
|
13
|
+
readonly expected?: readonly DomainDependency[];
|
|
13
14
|
readonly page: QueryPageRequest;
|
|
14
15
|
}
|
|
16
|
+
export interface GraphMutationOptions extends RequestOptions {
|
|
17
|
+
readonly expected?: readonly DomainDependency[];
|
|
18
|
+
}
|
|
15
19
|
export type MutationAuthor = (mutation: MutationBuilder) => undefined;
|
|
16
20
|
export interface GraphApi {
|
|
17
21
|
query<Query extends QueryASTValue>(ast: Query, options: GraphQueryOptions): Promise<QueryResponse<QueryResultFor<Query>>>;
|
|
18
|
-
mutate(author: MutationAuthor, options?:
|
|
19
|
-
mutate(ast: MutationASTValue | MutationInput | GraphSpec, options?:
|
|
20
|
-
get(target:
|
|
21
|
-
getOrThrow(target:
|
|
22
|
-
neighbors(source:
|
|
22
|
+
mutate(author: MutationAuthor, options?: GraphMutationOptions): Promise<MutationResultValue>;
|
|
23
|
+
mutate(ast: MutationASTValue | MutationInput | GraphSpec, options?: GraphMutationOptions): Promise<MutationResultValue>;
|
|
24
|
+
get(target: NodeTarget, options?: RequestOptions): Promise<Node | null>;
|
|
25
|
+
getOrThrow(target: NodeTarget, options?: RequestOptions): Promise<Node>;
|
|
26
|
+
neighbors(source: NodeTarget, via: QueryEdgeClassInput | readonly [QueryEdgeClassInput, ...QueryEdgeClassInput[]], options: NeighborsOptions): Promise<NodePage>;
|
|
23
27
|
}
|
|
24
28
|
/** Bind Core's canonical graph documents to one caller-scoped value-call capability. */
|
|
25
29
|
export declare function createGraph(call: GraphCall): GraphApi;
|
|
26
|
-
//# sourceMappingURL=graph.d.ts.map
|
package/dist/graph/graph.js
CHANGED
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { createGraph, type GraphApi, type GraphCall, type GraphQueryOptions, type MutationAuthor, } from './graph.js';
|
|
1
|
+
export { createGraph, type GraphApi, type GraphCall, type GraphMutationOptions, type GraphQueryOptions, type MutationAuthor, } from './graph.js';
|
|
2
|
+
export type { QueryPageRequest, QueryResponse } from './page-contract.js';
|
|
3
|
+
export { type BoundEdge, type BoundEdgePage, type BoundGraphValue, type BoundNode, type BoundNodeFor, type BoundNodePage, type BoundQueryPage, type DomainBinding, type DomainQueryOptions, } from './domain/index.js';
|
|
2
4
|
export { NodeUnavailableError } from './errors.js';
|
|
3
5
|
export type { NeighborsOptions, NodePage } from './page/index.js';
|
|
4
6
|
export { LocalBinding, type GraphSpec } from '@astrale-os/kernel-core/graph/graph';
|
|
5
7
|
export { MutationAST, MutationResult, type MutationBuilder, type MutationInput, } from '@astrale-os/kernel-core/graph/mutate';
|
|
6
8
|
export { Query, QueryAST, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/graph/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createGraph, } from './graph.js';
|
|
2
|
+
export {} from './domain/index.js';
|
|
2
3
|
export { NodeUnavailableError } from './errors.js';
|
|
3
4
|
export { LocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
4
5
|
export { MutationAST, MutationResult, } from '@astrale-os/kernel-core/graph/mutate';
|
|
5
6
|
export { Query, QueryAST, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/graph/mutation.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { GraphSpec } from '@astrale-os/kernel-core/graph/graph';
|
|
2
2
|
import type { MutationAST as MutationASTValue, MutationInput, MutationResult as MutationResultValue } from '@astrale-os/kernel-core/graph/mutate';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
export declare function mutateGraph(call: GraphCall, input: MutationAuthor | MutationASTValue | MutationInput | GraphSpec, options?: RequestOptions): Promise<MutationResultValue>;
|
|
6
|
-
//# sourceMappingURL=mutation.d.ts.map
|
|
3
|
+
import type { GraphCall, GraphMutationOptions, MutationAuthor } from './graph.js';
|
|
4
|
+
export declare function mutateGraph(call: GraphCall, input: MutationAuthor | MutationASTValue | MutationInput | GraphSpec, options?: GraphMutationOptions): Promise<MutationResultValue>;
|
package/dist/graph/mutation.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { MutationAST, MutationResult } from '@astrale-os/kernel-core/graph/mutate';
|
|
2
2
|
import { Path } from '@astrale-os/kernel-core/path';
|
|
3
|
-
import {
|
|
3
|
+
import { mutate } from '@astrale-os/kernel-core/schema/kernel/syscalls/references';
|
|
4
4
|
import { call as invocation } from '../client/index.js';
|
|
5
|
-
|
|
5
|
+
import { captureExpected } from './expectation.js';
|
|
6
|
+
const KERNEL_MUTATE_PATH = Path.project(mutate).raw;
|
|
6
7
|
export async function mutateGraph(call, input, options) {
|
|
7
8
|
const ast = typeof input === 'function' ? MutationAST.build(input) : admitMutation(input);
|
|
8
|
-
const
|
|
9
|
+
const expected = options?.expected;
|
|
10
|
+
const request = options === undefined
|
|
11
|
+
? undefined
|
|
12
|
+
: (({ expected: _expected, ...rest }) => rest)(options);
|
|
13
|
+
const capturedExpected = captureExpected(expected);
|
|
14
|
+
const output = await call(invocation(KERNEL_MUTATE_PATH, Object.freeze({
|
|
15
|
+
ast,
|
|
16
|
+
...(capturedExpected === undefined ? {} : { expected: capturedExpected }),
|
|
17
|
+
})), request);
|
|
9
18
|
return MutationResult.decode(output);
|
|
10
19
|
}
|
|
11
20
|
function admitMutation(input) {
|
|
@@ -15,4 +24,3 @@ function admitMutation(input) {
|
|
|
15
24
|
? MutationAST.create(input)
|
|
16
25
|
: MutationAST.fromGraph(input);
|
|
17
26
|
}
|
|
18
|
-
//# sourceMappingURL=mutation.js.map
|
package/dist/graph/page/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { QueryDirection, QueryEdgeClassInput } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import type { NodeTarget } from '@astrale-os/kernel-core/path';
|
|
3
3
|
import type { NodePage, PageQuery, PageQueryOptions } from './page.js';
|
|
4
4
|
export interface NeighborsOptions extends PageQueryOptions {
|
|
5
5
|
readonly direction: QueryDirection;
|
|
6
6
|
}
|
|
7
|
-
export type NeighborSource =
|
|
8
|
-
export type NeighborVia =
|
|
7
|
+
export type NeighborSource = NodeTarget;
|
|
8
|
+
export type NeighborVia = QueryEdgeClassInput | readonly [QueryEdgeClassInput, ...QueryEdgeClassInput[]];
|
|
9
9
|
export declare function readNeighbors(query: PageQuery, source: NeighborSource, via: NeighborVia, options: NeighborsOptions): Promise<NodePage>;
|
|
10
|
-
//# sourceMappingURL=neighbors.d.ts.map
|
|
@@ -4,10 +4,10 @@ export async function readNeighbors(query, source, via, options) {
|
|
|
4
4
|
if (options === null || typeof options !== 'object') {
|
|
5
5
|
throw new TypeError('Neighbor read options are invalid.');
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
9
|
-
if (
|
|
10
|
-
throw new TypeError('Neighbor read requires at least one
|
|
7
|
+
const classes = Array.isArray(via) ? via : [via];
|
|
8
|
+
const [classInput, ...additionalClasses] = classes;
|
|
9
|
+
if (classInput === undefined)
|
|
10
|
+
throw new TypeError('Neighbor read requires at least one Class.');
|
|
11
11
|
const direction = options.direction === 'outgoing'
|
|
12
12
|
? options.direction
|
|
13
13
|
: options.direction === 'incoming'
|
|
@@ -15,8 +15,8 @@ export async function readNeighbors(query, source, via, options) {
|
|
|
15
15
|
: options.direction === 'incident'
|
|
16
16
|
? options.direction
|
|
17
17
|
: invalidDirection(options.direction);
|
|
18
|
-
const ast = Query.from({
|
|
19
|
-
.expand({ via: [
|
|
18
|
+
const ast = Query.from({ nodes: [source] })
|
|
19
|
+
.expand({ via: [classInput, ...additionalClasses], direction })
|
|
20
20
|
.select({ kind: 'graph' });
|
|
21
21
|
const { direction: _, page, ...request } = options;
|
|
22
22
|
const { idempotencyKey: ___, ...basis } = request;
|
|
@@ -32,4 +32,3 @@ export async function readNeighbors(query, source, via, options) {
|
|
|
32
32
|
function invalidDirection(input) {
|
|
33
33
|
throw new TypeError(`Unsupported neighbor direction ${JSON.stringify(input)}.`);
|
|
34
34
|
}
|
|
35
|
-
//# sourceMappingURL=neighbors.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { GraphData } from '@astrale-os/kernel-core/graph/graph';
|
|
2
2
|
import type { Node, NodeCollection } from '@astrale-os/kernel-core/graph/node';
|
|
3
3
|
import type { NodeBinding, QueryAST, QueryGraphSelect, QueryNodeGraphResult, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
4
|
-
import type {
|
|
4
|
+
import type { DomainDependency } from '@astrale-os/kernel-dsl/v1/schema';
|
|
5
5
|
import type { RequestOptions } from '../../transport/index.js';
|
|
6
|
+
import type { QueryPageRequest, QueryResponse } from '../page-contract.js';
|
|
6
7
|
export interface NodePage {
|
|
7
8
|
readonly nodes: NodeCollection;
|
|
8
9
|
readonly first: Node | null;
|
|
@@ -23,12 +24,14 @@ export interface NodePage {
|
|
|
23
24
|
readonly cursor: string | null;
|
|
24
25
|
}>;
|
|
25
26
|
}
|
|
26
|
-
type PageBasis = Pick<RequestOptions, 'signal' | 'timeoutMs'
|
|
27
|
+
type PageBasis = Pick<RequestOptions, 'signal' | 'timeoutMs'> & {
|
|
28
|
+
readonly expected?: readonly DomainDependency[];
|
|
29
|
+
};
|
|
27
30
|
export interface PageQueryOptions extends RequestOptions {
|
|
31
|
+
readonly expected?: readonly DomainDependency[];
|
|
28
32
|
readonly page: QueryPageRequest;
|
|
29
33
|
}
|
|
30
34
|
export type PageQuery = <Query extends QueryAST>(ast: Query, options: PageQueryOptions) => Promise<QueryResponse<QueryResultFor<Query>>>;
|
|
31
35
|
type NodeGraphQueryAST = QueryAST<QueryGraphSelect<NodeBinding>>;
|
|
32
36
|
export declare function createNodePage(query: PageQuery, ast: NodeGraphQueryAST, response: QueryResponse<QueryNodeGraphResult>, basis: PageBasis, size: number): NodePage;
|
|
33
37
|
export {};
|
|
34
|
-
//# sourceMappingURL=page.d.ts.map
|
package/dist/graph/page/page.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
/** Caller-selected bounds and continuation for one graph query page. */
|
|
3
|
+
export interface QueryPageRequest {
|
|
4
|
+
readonly size: number;
|
|
5
|
+
readonly after?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Decoded graph result and its optional opaque continuation. */
|
|
8
|
+
export interface QueryResponse<Result extends QueryResult = QueryResult> {
|
|
9
|
+
readonly result: Result;
|
|
10
|
+
readonly page: {
|
|
11
|
+
readonly next?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Edge } from '@astrale-os/kernel-core/graph/edge';
|
|
2
|
+
import type { Node } from '@astrale-os/kernel-core/graph/node';
|
|
3
|
+
import type { DomainDependency } from '@astrale-os/kernel-dsl/v1/schema';
|
|
4
|
+
import type { QueryResponse } from './page-contract.js';
|
|
5
|
+
export interface QueryProvenance {
|
|
6
|
+
readonly closure: readonly DomainDependency[];
|
|
7
|
+
readonly page: object;
|
|
8
|
+
}
|
|
9
|
+
/** Retain authenticated query provenance without adding serialized response metadata. */
|
|
10
|
+
export declare function retainQueryProvenance(response: QueryResponse, closure: readonly DomainDependency[]): QueryResponse;
|
|
11
|
+
/** Reattach the exact authenticated closure when Store materialization replaces response objects. */
|
|
12
|
+
export declare function retainDerivedQueryProvenance(source: QueryResponse, derived: QueryResponse): QueryResponse;
|
|
13
|
+
export declare function provenanceOfGraphValue(value: Node | Edge): QueryProvenance | undefined;
|
|
14
|
+
export declare function provenanceOfResponse(value: QueryResponse): QueryProvenance | undefined;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const graphValues = new WeakMap();
|
|
2
|
+
const responses = new WeakMap();
|
|
3
|
+
/** Retain authenticated query provenance without adding serialized response metadata. */
|
|
4
|
+
export function retainQueryProvenance(response, closure) {
|
|
5
|
+
const provenance = Object.freeze({ closure, page: Object.freeze({}) });
|
|
6
|
+
responses.set(response, provenance);
|
|
7
|
+
const { result } = response;
|
|
8
|
+
if (result.kind === 'graph') {
|
|
9
|
+
for (const node of result.graph.nodes)
|
|
10
|
+
graphValues.set(node, provenance);
|
|
11
|
+
for (const edge of result.graph.edges)
|
|
12
|
+
graphValues.set(edge, provenance);
|
|
13
|
+
}
|
|
14
|
+
else if (result.kind === 'nodes') {
|
|
15
|
+
for (const item of result.nodes) {
|
|
16
|
+
if (item.kind === 'value')
|
|
17
|
+
graphValues.set(item.value, provenance);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
for (const item of result.edges) {
|
|
22
|
+
if (item.edge.kind === 'value')
|
|
23
|
+
graphValues.set(item.edge.value, provenance);
|
|
24
|
+
if (item.source.kind === 'value')
|
|
25
|
+
graphValues.set(item.source.value, provenance);
|
|
26
|
+
if (item.target.kind === 'value')
|
|
27
|
+
graphValues.set(item.target.value, provenance);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return response;
|
|
31
|
+
}
|
|
32
|
+
/** Reattach the exact authenticated closure when Store materialization replaces response objects. */
|
|
33
|
+
export function retainDerivedQueryProvenance(source, derived) {
|
|
34
|
+
const provenance = responses.get(source);
|
|
35
|
+
return provenance === undefined ? derived : retainQueryProvenance(derived, provenance.closure);
|
|
36
|
+
}
|
|
37
|
+
export function provenanceOfGraphValue(value) {
|
|
38
|
+
return graphValues.get(value);
|
|
39
|
+
}
|
|
40
|
+
export function provenanceOfResponse(value) {
|
|
41
|
+
return responses.get(value);
|
|
42
|
+
}
|
package/dist/graph/query.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { QueryAST as QueryASTValue, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
-
import type { QueryResponse } from '@astrale-os/kernel-ports/query';
|
|
3
2
|
import type { GraphCall, GraphQueryOptions } from './graph.js';
|
|
3
|
+
import type { QueryResponse } from './page-contract.js';
|
|
4
4
|
export declare function queryGraph<Query extends QueryASTValue>(call: GraphCall, input: Query, options: GraphQueryOptions): Promise<QueryResponse<QueryResultFor<Query>>>;
|
|
5
|
-
//# sourceMappingURL=query.d.ts.map
|
package/dist/graph/query.js
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { QueryAST, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
2
2
|
import { Path } from '@astrale-os/kernel-core/path';
|
|
3
|
-
import {
|
|
3
|
+
import { query } from '@astrale-os/kernel-core/schema/kernel/syscalls/references';
|
|
4
4
|
import { call as invocation } from '../client/index.js';
|
|
5
|
-
|
|
5
|
+
import { captureExpected } from './expectation.js';
|
|
6
|
+
import { retainQueryProvenance } from './provenance.js';
|
|
7
|
+
const KERNEL_QUERY_PATH = Path.project(query).raw;
|
|
6
8
|
export async function queryGraph(call, input, options) {
|
|
7
9
|
const ast = QueryAST.decode(input);
|
|
8
|
-
const { page, ...request } = options;
|
|
10
|
+
const { expected, page, ...request } = options;
|
|
9
11
|
const admittedPage = admitPage(page);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
+
const capturedExpected = captureExpected(expected);
|
|
13
|
+
const output = await call(invocation(KERNEL_QUERY_PATH, Object.freeze({
|
|
14
|
+
ast,
|
|
15
|
+
...(capturedExpected === undefined ? {} : { expected: capturedExpected }),
|
|
16
|
+
page: admittedPage,
|
|
17
|
+
})), request);
|
|
18
|
+
const response = decodeResponse(output);
|
|
19
|
+
return capturedExpected === undefined
|
|
20
|
+
? response
|
|
21
|
+
: retainQueryProvenance(response, capturedExpected);
|
|
12
22
|
}
|
|
13
23
|
function admitPage(input) {
|
|
14
24
|
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
@@ -33,11 +43,11 @@ function decodeResponse(input) {
|
|
|
33
43
|
if (!hasExactKeys(value, ['result', 'page'])) {
|
|
34
44
|
throw new TypeError('Graph query response is invalid.');
|
|
35
45
|
}
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
46
|
+
const pageInput = value.page;
|
|
47
|
+
if (pageInput === null || typeof pageInput !== 'object' || Array.isArray(pageInput)) {
|
|
38
48
|
throw new TypeError('Graph query response page is invalid.');
|
|
39
49
|
}
|
|
40
|
-
const pageValue =
|
|
50
|
+
const pageValue = pageInput;
|
|
41
51
|
if (!hasExactKeys(pageValue, pageValue.next === undefined ? [] : ['next'])) {
|
|
42
52
|
throw new TypeError('Graph query response page is invalid.');
|
|
43
53
|
}
|
|
@@ -45,13 +55,11 @@ function decodeResponse(input) {
|
|
|
45
55
|
(typeof pageValue.next !== 'string' || pageValue.next.length === 0)) {
|
|
46
56
|
throw new TypeError('Graph query response continuation is invalid.');
|
|
47
57
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
58
|
+
const result = QueryResult.decode(value.result);
|
|
59
|
+
const page = Object.freeze(pageValue.next === undefined ? {} : { next: pageValue.next });
|
|
60
|
+
return Object.freeze({ result, page });
|
|
52
61
|
}
|
|
53
62
|
function hasExactKeys(input, expected) {
|
|
54
63
|
const keys = Object.keys(input);
|
|
55
64
|
return keys.length === expected.length && keys.every((key) => expected.includes(key));
|
|
56
65
|
}
|
|
57
|
-
//# sourceMappingURL=query.js.map
|
package/dist/graph/read.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Node } from '@astrale-os/kernel-core/graph/node';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NodeTarget } from '@astrale-os/kernel-core/path';
|
|
3
3
|
import type { RequestOptions } from '../transport/index.js';
|
|
4
4
|
import type { GraphCall } from './graph.js';
|
|
5
|
-
export declare function getNode(call: GraphCall, path:
|
|
6
|
-
export declare function requireNode(call: GraphCall, path:
|
|
7
|
-
//# sourceMappingURL=read.d.ts.map
|
|
5
|
+
export declare function getNode(call: GraphCall, path: NodeTarget, options?: RequestOptions): Promise<Node | null>;
|
|
6
|
+
export declare function requireNode(call: GraphCall, path: NodeTarget, options?: RequestOptions): Promise<Node>;
|
package/dist/graph/read.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Query } from '@astrale-os/kernel-core/graph/query';
|
|
|
2
2
|
import { NodeUnavailableError } from './errors.js';
|
|
3
3
|
import { queryGraph } from './query.js';
|
|
4
4
|
export async function getNode(call, path, options) {
|
|
5
|
-
const ast = Query.from({
|
|
5
|
+
const ast = Query.from({ nodes: [path] }).select({ kind: 'graph' });
|
|
6
6
|
const response = await queryGraph(call, ast, { ...options, page: { size: 1 } });
|
|
7
7
|
const { result } = response;
|
|
8
8
|
if (result.kind !== 'graph')
|
|
@@ -15,4 +15,3 @@ export async function requireNode(call, path, options) {
|
|
|
15
15
|
throw new NodeUnavailableError(path);
|
|
16
16
|
return node;
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=read.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { Client, call, type AuthenticatedClient, type Call, type ClientDispatchOptions, type ClientOptions, type RemoteCredential, } from './client/index.js';
|
|
2
|
-
export
|
|
1
|
+
export { Client, call, type AuthenticatedClient, type Call, type ClientDispatchOptions, type ClientOptions, type Binary, type BinaryResponse, type Input, type RemoteCredential, type Result, type Stream, type StreamResult, type ValueResult, } from './client/index.js';
|
|
2
|
+
export * from './errors/index.js';
|
|
3
3
|
export { type RequestOptions, type MissControl, type StaleControl, type Transport, type TransportRequest, type TransportResult, } from './transport/index.js';
|
|
4
4
|
export { HttpTransport, type Fetch, type HttpTransportOptions } from './transport/http/index.js';
|
|
5
5
|
export { WebSocketTransport, type WebSocketConstructor, type WebSocketTransportOptions, } from './transport/websocket/index.js';
|
|
6
6
|
export { AutoTransport, formatClientWarning, type AutoTransportOptions, type ClientWarning, } from './transport/auto/index.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { Client, call, } from './client/index.js';
|
|
2
|
-
export
|
|
2
|
+
export * from './errors/index.js';
|
|
3
3
|
export {} from './transport/index.js';
|
|
4
4
|
export { HttpTransport } from './transport/http/index.js';
|
|
5
5
|
export { WebSocketTransport, } from './transport/websocket/index.js';
|
|
6
6
|
export { AutoTransport, formatClientWarning, } from './transport/auto/index.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,4 +5,3 @@ export type BatchOptions<Value> = Omit<AsyncBatcherOptions<Value>, 'maxSize' | '
|
|
|
5
5
|
readonly wait?: number;
|
|
6
6
|
};
|
|
7
7
|
export declare function createBatcher<Value>(consume: (values: Value[]) => Promise<unknown>, options?: BatchOptions<Value>): AsyncBatcher<Value>;
|
|
8
|
-
//# sourceMappingURL=batcher.d.ts.map
|
package/dist/pacer/index.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export { retry, type RetryOptions } from './retry/index.js';
|
|
|
2
2
|
export { createQueue, type QueueOptions } from './queue/index.js';
|
|
3
3
|
export { createBatcher, type BatchOptions } from './batcher/index.js';
|
|
4
4
|
export { createRateLimiter, type RateLimitOptions } from './limiter/index.js';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/pacer/index.js
CHANGED
|
@@ -5,4 +5,3 @@ export type RateLimitOptions<Operation extends AnyAsyncFunction> = Omit<AsyncRat
|
|
|
5
5
|
readonly window?: number;
|
|
6
6
|
};
|
|
7
7
|
export declare function createRateLimiter<Operation extends AnyAsyncFunction>(operation: Operation, options?: RateLimitOptions<Operation>): AsyncRateLimiter<Operation>;
|
|
8
|
-
//# sourceMappingURL=limiter.d.ts.map
|
|
@@ -4,4 +4,3 @@ export type QueueOptions<Value> = Omit<AsyncQueuerOptions<Value>, 'concurrency'>
|
|
|
4
4
|
readonly concurrency?: number;
|
|
5
5
|
};
|
|
6
6
|
export declare function createQueue<Value>(consume: (value: Value) => Promise<unknown>, options?: QueueOptions<Value>): AsyncQueuer<Value>;
|
|
7
|
-
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -4,4 +4,3 @@ export declare const DEFAULT_RETRY_MAX_WAIT_MS = 5000;
|
|
|
4
4
|
export declare const DEFAULT_RETRY_JITTER = 0.2;
|
|
5
5
|
export declare function positive(input: number, label: string): number;
|
|
6
6
|
export declare function nonNegative(input: number, label: string): number;
|
|
7
|
-
//# sourceMappingURL=defaults.d.ts.map
|
package/dist/pool/index.d.ts
CHANGED
package/dist/pool/index.js
CHANGED
package/dist/pool/pool.d.ts
CHANGED
package/dist/pool/pool.js
CHANGED
package/dist/pool/target.d.ts
CHANGED
package/dist/pool/target.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
1
|
+
import type { Value } from '@astrale-os/kernel-dsl/value';
|
|
2
|
+
interface OutputContract {
|
|
3
|
+
safeParse(input: unknown): {
|
|
4
|
+
readonly success: true;
|
|
5
|
+
readonly data: Value;
|
|
6
|
+
} | {
|
|
7
|
+
readonly success: false;
|
|
6
8
|
};
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
/** Admit one value result through its Core-owned syscall contract. */
|
|
11
|
+
export declare function acceptOutput<T>(contract: OutputContract, input: unknown): T;
|
|
9
12
|
export {};
|
|
10
|
-
//# sourceMappingURL=admission.d.ts.map
|