@astrale-os/kernel-client 0.6.0-beta.7 → 0.6.0-beta.71
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 +25 -10
- package/dist/auth/auth.js +5 -7
- package/dist/auth/authorization.d.ts +6 -4
- package/dist/auth/authorization.js +25 -6
- package/dist/auth/credential.d.ts +5 -1
- package/dist/auth/credential.js +6 -3
- package/dist/auth/identity.d.ts +6 -9
- package/dist/auth/identity.js +0 -1
- package/dist/auth/index.d.ts +4 -5
- package/dist/auth/index.js +2 -4
- package/dist/auth/register.d.ts +24 -0
- package/dist/auth/register.js +10 -0
- package/dist/client/admission.d.ts +4 -2
- package/dist/client/admission.js +8 -2
- package/dist/client/client.d.ts +0 -1
- package/dist/client/client.js +0 -1
- package/dist/client/credential.d.ts +0 -1
- package/dist/client/credential.js +0 -1
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +0 -1
- package/dist/client/request.d.ts +3 -3
- package/dist/client/request.js +3 -1
- package/dist/client/result.d.ts +3 -4
- package/dist/client/result.js +3 -1
- package/dist/client/routing-control.d.ts +0 -1
- package/dist/client/routing-control.js +0 -1
- 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 +0 -1
- package/dist/errors/miss-error.js +0 -1
- package/dist/errors/protocol-error.d.ts +0 -1
- package/dist/errors/protocol-error.js +0 -1
- package/dist/errors/response-error.d.ts +0 -1
- package/dist/errors/response-error.js +0 -1
- 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 +0 -1
- package/dist/errors/stale-route-error.js +0 -1
- package/dist/errors/transport-error.d.ts +18 -6
- package/dist/errors/transport-error.js +11 -7
- 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 +147 -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 +124 -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 +1 -2
- package/dist/graph/expectation.d.ts +3 -0
- package/dist/graph/expectation.js +6 -0
- package/dist/graph/graph.d.ts +12 -8
- package/dist/graph/graph.js +0 -1
- package/dist/graph/index.d.ts +2 -2
- package/dist/graph/index.js +1 -1
- package/dist/graph/mutation.d.ts +2 -4
- package/dist/graph/mutation.js +10 -2
- 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 +7 -7
- package/dist/graph/page/page.d.ts +5 -2
- package/dist/graph/page/page.js +0 -1
- package/dist/graph/page-contract.d.ts +1 -2
- package/dist/graph/page-contract.js +0 -1
- package/dist/graph/provenance.d.ts +14 -0
- package/dist/graph/provenance.js +42 -0
- package/dist/graph/query.d.ts +3 -1
- package/dist/graph/query.js +33 -13
- package/dist/graph/read.d.ts +3 -4
- package/dist/graph/read.js +6 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -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 +1 -2
- package/dist/schema/admission.js +0 -1
- package/dist/schema/contracts.d.ts +6 -16
- package/dist/schema/contracts.js +0 -1
- package/dist/schema/index.d.ts +2 -3
- package/dist/schema/index.js +1 -2
- package/dist/schema/introspection.d.ts +1 -2
- package/dist/schema/introspection.js +5 -2
- package/dist/schema/operation.d.ts +0 -1
- package/dist/schema/operation.js +2 -3
- package/dist/schema/schema.d.ts +13 -10
- package/dist/schema/schema.js +83 -11
- package/dist/session/admission.d.ts +18 -0
- package/dist/session/admission.js +117 -0
- package/dist/session/bound.d.ts +46 -0
- package/dist/session/bound.js +93 -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 +0 -1
- package/dist/session/context/policy.js +0 -1
- package/dist/session/credential/index.d.ts +1 -0
- package/dist/session/credential/index.js +1 -0
- package/dist/session/credential/limits.d.ts +12 -0
- package/dist/session/credential/limits.js +12 -0
- package/dist/session/credential/provider.d.ts +51 -0
- package/dist/session/credential/provider.js +229 -0
- package/dist/session/discovery/bundle.d.ts +5 -2
- package/dist/session/discovery/bundle.js +34 -15
- package/dist/session/discovery/discovery.d.ts +4 -2
- package/dist/session/discovery/discovery.js +34 -6
- package/dist/session/discovery/index.d.ts +3 -1
- package/dist/session/discovery/index.js +1 -1
- package/dist/session/discovery/publication.d.ts +0 -1
- package/dist/session/discovery/publication.js +4 -4
- package/dist/session/discovery/snapshot.d.ts +0 -1
- 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 +5 -3
- package/dist/session/index.js +3 -1
- package/dist/session/reference.d.ts +24 -10
- package/dist/session/reference.js +39 -11
- package/dist/session/routing/auth.d.ts +0 -1
- package/dist/session/routing/auth.js +0 -1
- package/dist/session/routing/cache.d.ts +27 -8
- package/dist/session/routing/cache.js +218 -25
- package/dist/session/routing/dispatch.d.ts +3 -7
- package/dist/session/routing/dispatch.js +53 -28
- package/dist/session/routing/envelope.d.ts +2 -1
- package/dist/session/routing/envelope.js +14 -10
- package/dist/session/routing/index.d.ts +1 -3
- package/dist/session/routing/index.js +1 -2
- package/dist/session/routing/request.d.ts +0 -1
- package/dist/session/routing/request.js +0 -1
- package/dist/session/session.d.ts +18 -7
- package/dist/session/session.js +77 -33
- package/dist/session/session.typecheck.d.ts +0 -1
- package/dist/session/session.typecheck.js +103 -3
- package/dist/session/views/catalog.d.ts +0 -1
- package/dist/session/views/catalog.js +14 -5
- package/dist/session/views/index.d.ts +0 -1
- package/dist/session/views/index.js +0 -1
- package/dist/session/views/resolve.d.ts +0 -1
- package/dist/session/views/resolve.js +0 -1
- 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 +2 -2
- package/dist/store/memory.js +38 -15
- package/dist/store/mutation.d.ts +1 -2
- package/dist/store/mutation.js +6 -4
- 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 +2 -2
- package/dist/store/query-key.js +7 -3
- package/dist/store/shape.d.ts +4 -2
- package/dist/store/shape.js +4 -2
- package/dist/store/store.d.ts +2 -4
- package/dist/store/store.js +6 -5
- package/dist/store/store.typecheck.d.ts +0 -1
- package/dist/store/store.typecheck.js +3 -9
- package/dist/transport/auto/decision.d.ts +0 -1
- package/dist/transport/auto/decision.js +0 -1
- package/dist/transport/auto/fallback.d.ts +2 -2
- package/dist/transport/auto/fallback.js +10 -11
- 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 +5 -3
- 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 +0 -1
- package/dist/transport/http/response.js +0 -1
- package/dist/transport/http/stream.d.ts +0 -1
- package/dist/transport/http/stream.js +7 -7
- package/dist/transport/http/transport.d.ts +0 -1
- package/dist/transport/http/transport.js +43 -20
- package/dist/transport/index.d.ts +0 -1
- package/dist/transport/index.js +0 -1
- package/dist/transport/transport.d.ts +0 -1
- package/dist/transport/transport.js +0 -1
- package/dist/transport/websocket/connection.d.ts +0 -1
- package/dist/transport/websocket/connection.js +16 -26
- package/dist/transport/websocket/exchange.d.ts +0 -1
- package/dist/transport/websocket/exchange.js +5 -9
- 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 +7 -20
- package/package.json +12 -14
- 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 +0 -9
- package/dist/auth/provision.d.ts.map +0 -1
- package/dist/auth/provision.js +0 -11
- 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/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/page-contract.d.ts.map +0 -1
- package/dist/graph/page-contract.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/contracts.d.ts.map +0 -1
- package/dist/schema/contracts.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/operation.d.ts.map +0 -1
- package/dist/schema/operation.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/reference.d.ts.map +0 -1
- package/dist/session/reference.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/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/expectation.d.ts +0 -7
- package/dist/session/routing/expectation.d.ts.map +0 -1
- package/dist/session/routing/expectation.js +0 -2
- package/dist/session/routing/expectation.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/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
|
@@ -2,10 +2,19 @@ import { MutationAST, MutationResult } from '@astrale-os/kernel-core/graph/mutat
|
|
|
2
2
|
import { Path } from '@astrale-os/kernel-core/path';
|
|
3
3
|
import { mutate } from '@astrale-os/kernel-core/schema/kernel/syscalls/references';
|
|
4
4
|
import { call as invocation } from '../client/index.js';
|
|
5
|
+
import { captureExpected } from './expectation.js';
|
|
5
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
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Query } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import { queryNodePath } from '../query.js';
|
|
2
3
|
import { createNodePage } from './page.js';
|
|
3
4
|
export async function readNeighbors(query, source, via, options) {
|
|
4
5
|
if (options === null || typeof options !== 'object') {
|
|
5
6
|
throw new TypeError('Neighbor read options are invalid.');
|
|
6
7
|
}
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
9
|
-
if (
|
|
10
|
-
throw new TypeError('Neighbor read requires at least one
|
|
8
|
+
const classes = Array.isArray(via) ? via : [via];
|
|
9
|
+
const [classInput, ...additionalClasses] = classes;
|
|
10
|
+
if (classInput === undefined)
|
|
11
|
+
throw new TypeError('Neighbor read requires at least one Class.');
|
|
11
12
|
const direction = options.direction === 'outgoing'
|
|
12
13
|
? options.direction
|
|
13
14
|
: options.direction === 'incoming'
|
|
@@ -15,8 +16,8 @@ export async function readNeighbors(query, source, via, options) {
|
|
|
15
16
|
: options.direction === 'incident'
|
|
16
17
|
? options.direction
|
|
17
18
|
: invalidDirection(options.direction);
|
|
18
|
-
const ast = Query.from({
|
|
19
|
-
.expand({ via: [
|
|
19
|
+
const ast = Query.from({ nodes: [queryNodePath(source)] })
|
|
20
|
+
.expand({ via: [classInput, ...additionalClasses], direction })
|
|
20
21
|
.select({ kind: 'graph' });
|
|
21
22
|
const { direction: _, page, ...request } = options;
|
|
22
23
|
const { idempotencyKey: ___, ...basis } = request;
|
|
@@ -32,4 +33,3 @@ export async function readNeighbors(query, source, via, options) {
|
|
|
32
33
|
function invalidDirection(input) {
|
|
33
34
|
throw new TypeError(`Unsupported neighbor direction ${JSON.stringify(input)}.`);
|
|
34
35
|
}
|
|
35
|
-
//# sourceMappingURL=neighbors.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
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 { DomainDependency } from '@astrale-os/kernel-dsl/v1/schema';
|
|
4
5
|
import type { RequestOptions } from '../../transport/index.js';
|
|
5
6
|
import type { QueryPageRequest, QueryResponse } from '../page-contract.js';
|
|
6
7
|
export interface NodePage {
|
|
@@ -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
|
@@ -4,11 +4,10 @@ export interface QueryPageRequest {
|
|
|
4
4
|
readonly size: number;
|
|
5
5
|
readonly after?: string;
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
7
|
+
/** Decoded graph result and its optional opaque continuation. */
|
|
8
8
|
export interface QueryResponse<Result extends QueryResult = QueryResult> {
|
|
9
9
|
readonly result: Result;
|
|
10
10
|
readonly page: {
|
|
11
11
|
readonly next?: string;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=page-contract.d.ts.map
|
|
@@ -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,7 @@
|
|
|
1
1
|
import type { QueryAST as QueryASTValue, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import { Path, type NodeTarget } from '@astrale-os/kernel-core/path';
|
|
2
3
|
import type { GraphCall, GraphQueryOptions } from './graph.js';
|
|
3
4
|
import type { QueryResponse } from './page-contract.js';
|
|
5
|
+
/** Point/neighbor reads are exact targets, unlike Query's overloaded Class sources. */
|
|
6
|
+
export declare function queryNodePath(target: NodeTarget): Path;
|
|
4
7
|
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,36 @@
|
|
|
1
|
-
import { QueryAST, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
-
import { Path } from '@astrale-os/kernel-core/path';
|
|
1
|
+
import { QueryAST, QueryASTDecodeError, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import { Path, PathError } from '@astrale-os/kernel-core/path';
|
|
3
3
|
import { query } from '@astrale-os/kernel-core/schema/kernel/syscalls/references';
|
|
4
4
|
import { call as invocation } from '../client/index.js';
|
|
5
|
+
import { captureExpected } from './expectation.js';
|
|
6
|
+
import { retainQueryProvenance } from './provenance.js';
|
|
5
7
|
const KERNEL_QUERY_PATH = Path.project(query).raw;
|
|
8
|
+
/** Point/neighbor reads are exact targets, unlike Query's overloaded Class sources. */
|
|
9
|
+
export function queryNodePath(target) {
|
|
10
|
+
try {
|
|
11
|
+
return Path.target(target);
|
|
12
|
+
}
|
|
13
|
+
catch (cause) {
|
|
14
|
+
// Preserve the graph-read Query error contract; do not relabel unexpected defects.
|
|
15
|
+
if (!(cause instanceof PathError))
|
|
16
|
+
throw cause;
|
|
17
|
+
throw new QueryASTDecodeError('/source/nodes/0', 'Invalid Node target', { cause });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
6
20
|
export async function queryGraph(call, input, options) {
|
|
7
21
|
const ast = QueryAST.decode(input);
|
|
8
|
-
const { page, ...request } = options;
|
|
22
|
+
const { expected, page, ...request } = options;
|
|
9
23
|
const admittedPage = admitPage(page);
|
|
10
|
-
const
|
|
11
|
-
|
|
24
|
+
const capturedExpected = captureExpected(expected);
|
|
25
|
+
const output = await call(invocation(KERNEL_QUERY_PATH, Object.freeze({
|
|
26
|
+
ast,
|
|
27
|
+
...(capturedExpected === undefined ? {} : { expected: capturedExpected }),
|
|
28
|
+
page: admittedPage,
|
|
29
|
+
})), request);
|
|
30
|
+
const response = decodeResponse(output);
|
|
31
|
+
return capturedExpected === undefined
|
|
32
|
+
? response
|
|
33
|
+
: retainQueryProvenance(response, capturedExpected);
|
|
12
34
|
}
|
|
13
35
|
function admitPage(input) {
|
|
14
36
|
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
@@ -33,11 +55,11 @@ function decodeResponse(input) {
|
|
|
33
55
|
if (!hasExactKeys(value, ['result', 'page'])) {
|
|
34
56
|
throw new TypeError('Graph query response is invalid.');
|
|
35
57
|
}
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
58
|
+
const pageInput = value.page;
|
|
59
|
+
if (pageInput === null || typeof pageInput !== 'object' || Array.isArray(pageInput)) {
|
|
38
60
|
throw new TypeError('Graph query response page is invalid.');
|
|
39
61
|
}
|
|
40
|
-
const pageValue =
|
|
62
|
+
const pageValue = pageInput;
|
|
41
63
|
if (!hasExactKeys(pageValue, pageValue.next === undefined ? [] : ['next'])) {
|
|
42
64
|
throw new TypeError('Graph query response page is invalid.');
|
|
43
65
|
}
|
|
@@ -45,13 +67,11 @@ function decodeResponse(input) {
|
|
|
45
67
|
(typeof pageValue.next !== 'string' || pageValue.next.length === 0)) {
|
|
46
68
|
throw new TypeError('Graph query response continuation is invalid.');
|
|
47
69
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
70
|
+
const result = QueryResult.decode(value.result);
|
|
71
|
+
const page = Object.freeze(pageValue.next === undefined ? {} : { next: pageValue.next });
|
|
72
|
+
return Object.freeze({ result, page });
|
|
52
73
|
}
|
|
53
74
|
function hasExactKeys(input, expected) {
|
|
54
75
|
const keys = Object.keys(input);
|
|
55
76
|
return keys.length === expected.length && keys.every((key) => expected.includes(key));
|
|
56
77
|
}
|
|
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Query } from '@astrale-os/kernel-core/graph/query';
|
|
2
2
|
import { NodeUnavailableError } from './errors.js';
|
|
3
|
-
import { queryGraph } from './query.js';
|
|
3
|
+
import { queryGraph, queryNodePath } from './query.js';
|
|
4
4
|
export async function getNode(call, path, options) {
|
|
5
|
-
const ast = Query.from({
|
|
5
|
+
const ast = Query.from({ nodes: [queryNodePath(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')
|
|
@@ -10,9 +10,10 @@ export async function getNode(call, path, options) {
|
|
|
10
10
|
return result.graph.nodes[0] ?? null;
|
|
11
11
|
}
|
|
12
12
|
export async function requireNode(call, path, options) {
|
|
13
|
-
|
|
13
|
+
// Retain one immutable target across I/O, including unavailable-error rendering.
|
|
14
|
+
const target = queryNodePath(path);
|
|
15
|
+
const node = await getNode(call, target, options);
|
|
14
16
|
if (node === null)
|
|
15
|
-
throw new NodeUnavailableError(
|
|
17
|
+
throw new NodeUnavailableError(target);
|
|
16
18
|
return node;
|
|
17
19
|
}
|
|
18
|
-
//# sourceMappingURL=read.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { Target, targetPath } from '@astrale-os/kernel-core/callable';
|
|
1
2
|
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
|
|
3
|
+
export * from './errors/index.js';
|
|
3
4
|
export { type RequestOptions, type MissControl, type StaleControl, type Transport, type TransportRequest, type TransportResult, } from './transport/index.js';
|
|
4
5
|
export { HttpTransport, type Fetch, type HttpTransportOptions } from './transport/http/index.js';
|
|
5
6
|
export { WebSocketTransport, type WebSocketConstructor, type WebSocketTransportOptions, } from './transport/websocket/index.js';
|
|
6
7
|
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,7 @@
|
|
|
1
|
+
export { Target, targetPath } from '@astrale-os/kernel-core/callable';
|
|
1
2
|
export { Client, call, } from './client/index.js';
|
|
2
|
-
export
|
|
3
|
+
export * from './errors/index.js';
|
|
3
4
|
export {} from './transport/index.js';
|
|
4
5
|
export { HttpTransport } from './transport/http/index.js';
|
|
5
6
|
export { WebSocketTransport, } from './transport/websocket/index.js';
|
|
6
7
|
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
|
@@ -8,6 +8,5 @@ interface OutputContract {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
/** Admit one value result through its Core-owned syscall contract. */
|
|
11
|
-
export declare function acceptOutput<T
|
|
11
|
+
export declare function acceptOutput<T>(contract: OutputContract, input: unknown): T;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=admission.d.ts.map
|
package/dist/schema/admission.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import type { InputOf, OutputOf } from '@astrale-os/kernel-core/domain';
|
|
2
|
-
import type { syscalls } from '@astrale-os/kernel-core/schema';
|
|
3
1
|
import type { installation } from '@astrale-os/kernel-core/schema';
|
|
2
|
+
import type { DomainRequest as CoreDomainRequest, InstallInput, InstallReceipt as CoreInstallReceipt, UninstallInput, UninstallOutput } from '@astrale-os/kernel-core/schema/kernel/syscalls/contracts';
|
|
4
3
|
export type OperationId = installation.OperationId;
|
|
5
4
|
/** Canonical caller input accepted by the Kernel install syscall. */
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
};
|
|
5
|
+
export type DomainRequest = CoreDomainRequest;
|
|
6
|
+
export type InstallRequest = InstallInput;
|
|
9
7
|
/** Admitted terminal install receipt returned by the Kernel. */
|
|
10
|
-
export type InstallReceipt =
|
|
11
|
-
readonly operation: OperationId;
|
|
12
|
-
};
|
|
8
|
+
export type InstallReceipt = CoreInstallReceipt;
|
|
13
9
|
/** Canonical caller input accepted by the Kernel uninstall syscall. */
|
|
14
|
-
export type UninstallRequest =
|
|
15
|
-
readonly operation: OperationId;
|
|
16
|
-
};
|
|
10
|
+
export type UninstallRequest = UninstallInput;
|
|
17
11
|
/** Admitted terminal uninstall receipt returned by the Kernel. */
|
|
18
|
-
export type UninstallReceipt =
|
|
19
|
-
readonly operation: OperationId;
|
|
20
|
-
};
|
|
21
|
-
export type DesiredInstallation = InstallRequest['domains'][number];
|
|
22
|
-
//# sourceMappingURL=contracts.d.ts.map
|
|
12
|
+
export type UninstallReceipt = UninstallOutput;
|
package/dist/schema/contracts.js
CHANGED
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { createSchema, type SchemaApi, type SchemaCall, type SchemaOptions, type
|
|
1
|
+
export { createSchema, DEFAULT_SCHEMA_LIFECYCLE_TIMEOUT_MS, type SchemaApi, type SchemaCall, type SchemaOptions, type DomainBundle, type DomainDependencies, type DomainInfo, type InstallResult, } from './schema.js';
|
|
2
2
|
export { acceptOperationId, createOperationId } from './operation.js';
|
|
3
|
-
export type {
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
3
|
+
export type { DomainRequest, InstallReceipt, InstallRequest, OperationId, UninstallReceipt, UninstallRequest, } from './contracts.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { introspection as language } from '@astrale-os/kernel-core/schema';
|
|
2
|
-
import type
|
|
2
|
+
import type * as protocol from '@astrale-os/kernel-protocol/schema';
|
|
3
3
|
import type { RequestOptions } from '../transport/index.js';
|
|
4
4
|
import type { SchemaCall, SchemaOptions } from './schema.js';
|
|
5
5
|
export declare function introspect<InputType extends language.Introspection>(invoke: SchemaCall, limits: SchemaOptions, request: InputType, options?: RequestOptions): Promise<protocol.installation.introspection.ResultFor<InputType>>;
|
|
6
|
-
//# sourceMappingURL=introspection.d.ts.map
|