@qlever-llc/trellis 0.5.1 → 0.6.0
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/README.md +16 -2
- package/esm/_dnt.polyfills.d.ts +11 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +14 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/auth/browser/login.d.ts +27 -0
- package/esm/auth/browser/login.d.ts.map +1 -0
- package/esm/auth/browser/login.js +94 -0
- package/esm/auth/browser/portal.d.ts +11 -0
- package/esm/auth/browser/portal.d.ts.map +1 -0
- package/esm/auth/browser/portal.js +33 -0
- package/esm/auth/browser/session.d.ts +19 -0
- package/esm/auth/browser/session.d.ts.map +1 -0
- package/esm/auth/browser/session.js +65 -0
- package/esm/auth/browser/storage.d.ts +12 -0
- package/esm/auth/browser/storage.d.ts.map +1 -0
- package/esm/auth/browser/storage.js +61 -0
- package/esm/auth/browser.d.ts +13 -0
- package/esm/auth/browser.d.ts.map +1 -0
- package/esm/auth/browser.js +11 -0
- package/esm/auth/keys.d.ts +5 -0
- package/esm/auth/keys.d.ts.map +1 -0
- package/esm/auth/keys.js +50 -0
- package/esm/auth/mod.d.ts +18 -0
- package/esm/auth/mod.d.ts.map +1 -0
- package/esm/auth/mod.js +17 -0
- package/esm/auth/proof.d.ts +9 -0
- package/esm/auth/proof.d.ts.map +1 -0
- package/esm/auth/proof.js +43 -0
- package/esm/auth/protocol.d.ts +1212 -0
- package/esm/auth/protocol.d.ts.map +1 -0
- package/esm/auth/protocol.js +682 -0
- package/esm/auth/schemas.d.ts +93 -0
- package/esm/auth/schemas.d.ts.map +1 -0
- package/esm/auth/schemas.js +64 -0
- package/esm/auth/session_auth.d.ts +20 -0
- package/esm/auth/session_auth.d.ts.map +1 -0
- package/esm/auth/session_auth.js +42 -0
- package/esm/auth/trellis_id.d.ts +2 -0
- package/esm/auth/trellis_id.d.ts.map +1 -0
- package/esm/auth/trellis_id.js +5 -0
- package/esm/auth/types.d.ts +8 -0
- package/esm/auth/types.d.ts.map +1 -0
- package/esm/auth/types.js +1 -0
- package/esm/auth/utils.d.ts +11 -0
- package/esm/auth/utils.d.ts.map +1 -0
- package/esm/auth/utils.js +68 -0
- package/esm/auth/workload_activation.d.ts +192 -0
- package/esm/auth/workload_activation.d.ts.map +1 -0
- package/esm/auth/workload_activation.js +290 -0
- package/esm/contracts/canonical.d.ts +14 -0
- package/esm/contracts/canonical.d.ts.map +1 -0
- package/esm/contracts/canonical.js +135 -0
- package/esm/contracts/mod.d.ts +462 -0
- package/esm/contracts/mod.d.ts.map +1 -0
- package/esm/contracts/mod.js +532 -0
- package/esm/contracts/protocol.d.ts +301 -0
- package/esm/contracts/protocol.d.ts.map +1 -0
- package/esm/contracts/protocol.js +130 -0
- package/esm/contracts/runtime.d.ts +48 -0
- package/esm/contracts/runtime.d.ts.map +1 -0
- package/esm/contracts/runtime.js +9 -0
- package/esm/contracts/schema_pointers.d.ts +18 -0
- package/esm/contracts/schema_pointers.d.ts.map +1 -0
- package/esm/contracts/schema_pointers.js +59 -0
- package/esm/server/deno.d.ts +7 -0
- package/esm/server/deno.d.ts.map +1 -0
- package/esm/server/deno.js +16 -0
- package/esm/server/health.d.ts +92 -0
- package/esm/server/health.d.ts.map +1 -0
- package/esm/server/health.js +74 -0
- package/esm/server/health_rpc.d.ts +16 -0
- package/esm/server/health_rpc.d.ts.map +1 -0
- package/esm/server/health_rpc.js +23 -0
- package/esm/server/health_schemas.d.ts +20 -0
- package/esm/server/health_schemas.d.ts.map +1 -0
- package/esm/server/health_schemas.js +18 -0
- package/esm/server/mod.d.ts +17 -0
- package/esm/server/mod.d.ts.map +1 -0
- package/esm/server/mod.js +17 -0
- package/esm/server/node.d.ts +7 -0
- package/esm/server/node.d.ts.map +1 -0
- package/esm/server/node.js +16 -0
- package/esm/server/runtime.d.ts +16 -0
- package/esm/server/runtime.d.ts.map +1 -0
- package/esm/server/runtime.js +1 -0
- package/esm/server/service.d.ts +121 -0
- package/esm/server/service.d.ts.map +1 -0
- package/esm/server/service.js +256 -0
- package/esm/server/subscription.d.ts +99 -0
- package/esm/server/subscription.d.ts.map +1 -0
- package/esm/server/subscription.js +25 -0
- package/esm/telemetry/carrier.d.ts +9 -0
- package/esm/telemetry/carrier.d.ts.map +1 -0
- package/esm/telemetry/carrier.js +20 -0
- package/esm/telemetry/core.d.ts +8 -0
- package/esm/telemetry/core.d.ts.map +1 -0
- package/esm/telemetry/core.js +14 -0
- package/esm/telemetry/env.d.ts +2 -0
- package/esm/telemetry/env.d.ts.map +1 -0
- package/esm/telemetry/env.js +10 -0
- package/esm/telemetry/mod.d.ts +11 -0
- package/esm/telemetry/mod.d.ts.map +1 -0
- package/esm/telemetry/mod.js +7 -0
- package/esm/telemetry/nats.d.ts +7 -0
- package/esm/telemetry/nats.d.ts.map +1 -0
- package/esm/telemetry/nats.js +6 -0
- package/esm/telemetry/result.d.ts +2 -0
- package/esm/telemetry/result.d.ts.map +1 -0
- package/esm/telemetry/result.js +18 -0
- package/esm/telemetry/runtime.d.ts +2 -0
- package/esm/telemetry/runtime.d.ts.map +1 -0
- package/esm/telemetry/runtime.js +53 -0
- package/esm/telemetry/trace.d.ts +5 -0
- package/esm/telemetry/trace.d.ts.map +1 -0
- package/esm/telemetry/trace.js +26 -0
- package/esm/telemetry/trellis.d.ts +3 -0
- package/esm/telemetry/trellis.d.ts.map +1 -0
- package/esm/telemetry/trellis.js +7 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/activity/api.d.ts +10 -0
- package/esm/trellis/_sdk/activity/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/api.js +43 -0
- package/esm/trellis/_sdk/activity/contract.d.ts +8 -0
- package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/contract.js +59 -0
- package/esm/trellis/_sdk/activity/mod.d.ts +7 -0
- package/esm/trellis/_sdk/activity/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/mod.js +5 -0
- package/esm/trellis/_sdk/activity/package.json +3 -0
- package/esm/trellis/_sdk/activity/schemas.d.ts +607 -0
- package/esm/trellis/_sdk/activity/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/schemas.js +33 -0
- package/esm/trellis/_sdk/activity/types.d.ts +96 -0
- package/esm/trellis/_sdk/activity/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/types.js +3 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/auth/api.d.ts +10 -0
- package/esm/trellis/_sdk/auth/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/api.js +354 -0
- package/esm/trellis/_sdk/auth/contract.d.ts +28 -0
- package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/contract.js +83 -0
- package/esm/trellis/_sdk/auth/mod.d.ts +7 -0
- package/esm/trellis/_sdk/auth/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/mod.js +5 -0
- package/esm/trellis/_sdk/auth/package.json +3 -0
- package/esm/trellis/_sdk/auth/schemas.d.ts +8967 -0
- package/esm/trellis/_sdk/auth/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/schemas.js +306 -0
- package/esm/trellis/_sdk/auth/types.d.ts +1232 -0
- package/esm/trellis/_sdk/auth/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/types.js +3 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/core/api.d.ts +10 -0
- package/esm/trellis/_sdk/core/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/api.js +36 -0
- package/esm/trellis/_sdk/core/contract.d.ts +8 -0
- package/esm/trellis/_sdk/core/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/contract.js +59 -0
- package/esm/trellis/_sdk/core/mod.d.ts +7 -0
- package/esm/trellis/_sdk/core/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/mod.js +5 -0
- package/esm/trellis/_sdk/core/package.json +3 -0
- package/esm/trellis/_sdk/core/schemas.d.ts +1144 -0
- package/esm/trellis/_sdk/core/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/schemas.js +28 -0
- package/esm/trellis/_sdk/core/types.d.ts +176 -0
- package/esm/trellis/_sdk/core/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/types.js +3 -0
- package/esm/trellis/auth/browser.d.ts +3 -0
- package/esm/trellis/auth/browser.d.ts.map +1 -0
- package/esm/trellis/auth/browser.js +2 -0
- package/esm/trellis/auth.d.ts +3 -0
- package/esm/trellis/auth.d.ts.map +1 -0
- package/esm/trellis/auth.js +2 -0
- package/esm/trellis/browser.d.ts +2 -7
- package/esm/trellis/browser.d.ts.map +1 -1
- package/esm/trellis/browser.js +2 -7
- package/esm/trellis/client.d.ts +6 -4
- package/esm/trellis/client.d.ts.map +1 -1
- package/esm/trellis/client.js +28 -1
- package/esm/trellis/codec.d.ts +4 -3
- package/esm/trellis/codec.d.ts.map +1 -1
- package/esm/trellis/codec.js +15 -2
- package/esm/trellis/contract.d.ts +11 -0
- package/esm/trellis/contract.d.ts.map +1 -0
- package/esm/trellis/contract.js +15 -0
- package/esm/trellis/contracts.d.ts +5 -0
- package/esm/trellis/contracts.d.ts.map +1 -0
- package/esm/trellis/contracts.js +3 -0
- package/esm/trellis/env.d.ts +1 -1
- package/esm/trellis/env.d.ts.map +1 -1
- package/esm/trellis/env.js +1 -1
- package/esm/trellis/errors/AuthError.d.ts +1 -1
- package/esm/trellis/errors/AuthError.d.ts.map +1 -1
- package/esm/trellis/errors/AuthError.js +11 -0
- package/esm/trellis/errors/RemoteError.d.ts +3 -3
- package/esm/trellis/errors/RemoteError.d.ts.map +1 -1
- package/esm/trellis/errors/RemoteError.js +3 -3
- package/esm/trellis/errors/TrellisError.d.ts +1 -1
- package/esm/trellis/errors/TrellisError.js +1 -1
- package/esm/trellis/errors/index.d.ts +2 -1
- package/esm/trellis/errors/index.d.ts.map +1 -1
- package/esm/trellis/errors/index.js +3 -2
- package/esm/trellis/globals.d.ts +9 -1
- package/esm/trellis/globals.d.ts.map +1 -1
- package/esm/trellis/globals.js +16 -8
- package/esm/trellis/helpers.d.ts +2 -1
- package/esm/trellis/helpers.d.ts.map +1 -1
- package/esm/trellis/helpers.js +1 -0
- package/esm/trellis/index.d.ts +13 -5
- package/esm/trellis/index.d.ts.map +1 -1
- package/esm/trellis/index.js +8 -3
- package/esm/trellis/kv.d.ts +10 -7
- package/esm/trellis/kv.d.ts.map +1 -1
- package/esm/trellis/kv.js +57 -34
- package/esm/trellis/models/trellis/TrellisError.d.ts +1 -1
- package/esm/trellis/models/trellis/TrellisError.js +1 -1
- package/esm/trellis/operations.d.ts +81 -0
- package/esm/trellis/operations.d.ts.map +1 -0
- package/esm/trellis/operations.js +206 -0
- package/esm/trellis/sdk/activity.d.ts +3 -0
- package/esm/trellis/sdk/activity.d.ts.map +1 -0
- package/esm/trellis/sdk/activity.js +2 -0
- package/esm/trellis/sdk/auth.d.ts +4 -0
- package/esm/trellis/sdk/auth.d.ts.map +1 -0
- package/esm/trellis/sdk/auth.js +3 -0
- package/esm/trellis/sdk/core.d.ts +4 -0
- package/esm/trellis/sdk/core.d.ts.map +1 -0
- package/esm/trellis/sdk/core.js +3 -0
- package/esm/trellis/server/deno.d.ts +3 -0
- package/esm/trellis/server/deno.d.ts.map +1 -0
- package/esm/trellis/server/deno.js +2 -0
- package/esm/trellis/server/health.d.ts +5 -0
- package/esm/trellis/server/health.d.ts.map +1 -0
- package/esm/trellis/server/health.js +3 -0
- package/esm/trellis/server/mod.d.ts +3 -0
- package/esm/trellis/server/mod.d.ts.map +1 -0
- package/esm/trellis/server/mod.js +2 -0
- package/esm/trellis/server/node.d.ts +3 -0
- package/esm/trellis/server/node.d.ts.map +1 -0
- package/esm/trellis/server/node.js +2 -0
- package/esm/trellis/server/runtime.d.ts +4 -0
- package/esm/trellis/server/runtime.d.ts.map +1 -0
- package/esm/trellis/server/runtime.js +2 -0
- package/esm/trellis/server.d.ts +21 -0
- package/esm/trellis/server.d.ts.map +1 -0
- package/esm/trellis/server.js +536 -0
- package/esm/trellis/server_logger.d.ts +3 -0
- package/esm/trellis/server_logger.d.ts.map +1 -0
- package/esm/trellis/server_logger.js +7 -0
- package/esm/trellis/tasks.d.ts +3 -3
- package/esm/trellis/tasks.d.ts.map +1 -1
- package/esm/trellis/tasks.js +1 -1
- package/esm/trellis/tracing.d.ts +2 -2
- package/esm/trellis/tracing.d.ts.map +1 -1
- package/esm/trellis/tracing.js +2 -2
- package/esm/trellis/trellis.d.ts +167 -78
- package/esm/trellis/trellis.d.ts.map +1 -1
- package/esm/trellis/trellis.js +281 -87
- package/esm/trellis/workload.d.ts +45 -0
- package/esm/trellis/workload.d.ts.map +1 -0
- package/esm/trellis/workload.js +144 -0
- package/package.json +63 -4
- package/script/auth/browser/login.d.ts +27 -0
- package/script/auth/browser/login.d.ts.map +1 -0
- package/script/auth/browser/login.js +100 -0
- package/script/auth/browser/portal.d.ts +11 -0
- package/script/auth/browser/portal.d.ts.map +1 -0
- package/script/auth/browser/portal.js +40 -0
- package/script/auth/browser/session.d.ts +19 -0
- package/script/auth/browser/session.d.ts.map +1 -0
- package/script/auth/browser/session.js +79 -0
- package/script/auth/browser/storage.d.ts +12 -0
- package/script/auth/browser/storage.d.ts.map +1 -0
- package/script/auth/browser/storage.js +67 -0
- package/script/auth/browser.d.ts +13 -0
- package/script/auth/browser.d.ts.map +1 -0
- package/script/auth/browser.js +46 -0
- package/script/auth/keys.d.ts +5 -0
- package/script/auth/keys.d.ts.map +1 -0
- package/script/auth/keys.js +56 -0
- package/script/auth/mod.d.ts +18 -0
- package/script/auth/mod.d.ts.map +1 -0
- package/script/auth/mod.js +172 -0
- package/script/auth/proof.d.ts +9 -0
- package/script/auth/proof.d.ts.map +1 -0
- package/script/auth/proof.js +48 -0
- package/script/auth/protocol.d.ts +1212 -0
- package/script/auth/protocol.d.ts.map +1 -0
- package/script/auth/protocol.js +687 -0
- package/script/auth/schemas.d.ts +93 -0
- package/script/auth/schemas.d.ts.map +1 -0
- package/script/auth/schemas.js +67 -0
- package/script/auth/session_auth.d.ts +20 -0
- package/script/auth/session_auth.d.ts.map +1 -0
- package/script/auth/session_auth.js +45 -0
- package/script/auth/trellis_id.d.ts +2 -0
- package/script/auth/trellis_id.d.ts.map +1 -0
- package/script/auth/trellis_id.js +8 -0
- package/script/auth/types.d.ts +8 -0
- package/script/auth/types.d.ts.map +1 -0
- package/script/auth/utils.d.ts +11 -0
- package/script/auth/utils.d.ts.map +1 -0
- package/script/auth/utils.js +77 -0
- package/script/auth/workload_activation.d.ts +192 -0
- package/script/auth/workload_activation.d.ts.map +1 -0
- package/script/auth/workload_activation.js +308 -0
- package/script/contracts/canonical.d.ts +14 -0
- package/script/contracts/canonical.d.ts.map +1 -0
- package/script/contracts/canonical.js +144 -0
- package/script/contracts/mod.d.ts +462 -0
- package/script/contracts/mod.d.ts.map +1 -0
- package/script/contracts/mod.js +555 -0
- package/script/contracts/protocol.d.ts +301 -0
- package/script/contracts/protocol.d.ts.map +1 -0
- package/script/contracts/protocol.js +136 -0
- package/script/contracts/runtime.d.ts +48 -0
- package/script/contracts/runtime.d.ts.map +1 -0
- package/script/contracts/runtime.js +13 -0
- package/script/contracts/schema_pointers.d.ts +18 -0
- package/script/contracts/schema_pointers.d.ts.map +1 -0
- package/script/contracts/schema_pointers.js +63 -0
- package/script/telemetry/carrier.d.ts +9 -0
- package/script/telemetry/carrier.d.ts.map +1 -0
- package/script/telemetry/carrier.js +25 -0
- package/script/telemetry/core.d.ts +8 -0
- package/script/telemetry/core.d.ts.map +1 -0
- package/script/telemetry/core.js +24 -0
- package/script/telemetry/env.d.ts +2 -0
- package/script/telemetry/env.d.ts.map +1 -0
- package/script/telemetry/env.js +12 -0
- package/script/telemetry/mod.d.ts +11 -0
- package/script/telemetry/mod.d.ts.map +1 -0
- package/script/telemetry/mod.js +29 -0
- package/script/telemetry/nats.d.ts +7 -0
- package/script/telemetry/nats.d.ts.map +1 -0
- package/script/telemetry/nats.js +9 -0
- package/script/telemetry/result.d.ts +2 -0
- package/script/telemetry/result.d.ts.map +1 -0
- package/script/telemetry/result.js +21 -0
- package/script/telemetry/runtime.d.ts +2 -0
- package/script/telemetry/runtime.d.ts.map +1 -0
- package/script/telemetry/runtime.js +79 -0
- package/script/telemetry/trace.d.ts +5 -0
- package/script/telemetry/trace.d.ts.map +1 -0
- package/script/telemetry/trace.js +31 -0
- package/script/telemetry/trellis.d.ts +3 -0
- package/script/telemetry/trellis.d.ts.map +1 -0
- package/script/telemetry/trellis.js +14 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/activity/api.d.ts +10 -0
- package/script/trellis/_sdk/activity/api.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/api.js +46 -0
- package/script/trellis/_sdk/activity/contract.d.ts +8 -0
- package/script/trellis/_sdk/activity/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/contract.js +62 -0
- package/script/trellis/_sdk/activity/mod.d.ts +7 -0
- package/script/trellis/_sdk/activity/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/mod.js +30 -0
- package/script/trellis/_sdk/activity/package.json +3 -0
- package/script/trellis/_sdk/activity/schemas.d.ts +607 -0
- package/script/trellis/_sdk/activity/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/schemas.js +36 -0
- package/script/trellis/_sdk/activity/types.d.ts +96 -0
- package/script/trellis/_sdk/activity/types.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/types.js +6 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/auth/api.d.ts +10 -0
- package/script/trellis/_sdk/auth/api.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/api.js +357 -0
- package/script/trellis/_sdk/auth/contract.d.ts +28 -0
- package/script/trellis/_sdk/auth/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/contract.js +86 -0
- package/script/trellis/_sdk/auth/mod.d.ts +7 -0
- package/script/trellis/_sdk/auth/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/mod.js +31 -0
- package/script/trellis/_sdk/auth/package.json +3 -0
- package/script/trellis/_sdk/auth/schemas.d.ts +8967 -0
- package/script/trellis/_sdk/auth/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/schemas.js +309 -0
- package/script/trellis/_sdk/auth/types.d.ts +1232 -0
- package/script/trellis/_sdk/auth/types.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/types.js +6 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/core/api.d.ts +10 -0
- package/script/trellis/_sdk/core/api.d.ts.map +1 -0
- package/script/trellis/_sdk/core/api.js +39 -0
- package/script/trellis/_sdk/core/contract.d.ts +8 -0
- package/script/trellis/_sdk/core/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/core/contract.js +62 -0
- package/script/trellis/_sdk/core/mod.d.ts +7 -0
- package/script/trellis/_sdk/core/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/core/mod.js +30 -0
- package/script/trellis/_sdk/core/package.json +3 -0
- package/script/trellis/_sdk/core/schemas.d.ts +1144 -0
- package/script/trellis/_sdk/core/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/core/schemas.js +31 -0
- package/script/trellis/_sdk/core/types.d.ts +176 -0
- package/script/trellis/_sdk/core/types.d.ts.map +1 -0
- package/script/trellis/_sdk/core/types.js +6 -0
- package/script/trellis/auth.d.ts +2 -0
- package/script/trellis/auth.d.ts.map +1 -0
- package/script/trellis/auth.js +17 -0
- package/script/trellis/client.d.ts +8 -6
- package/script/trellis/client.d.ts.map +1 -1
- package/script/trellis/client.js +54 -3
- package/script/trellis/codec.d.ts +5 -4
- package/script/trellis/codec.d.ts.map +1 -1
- package/script/trellis/codec.js +31 -17
- package/script/trellis/contract.d.ts +11 -0
- package/script/trellis/contract.d.ts.map +1 -0
- package/script/trellis/contract.js +18 -0
- package/script/trellis/contracts.d.ts +4 -0
- package/script/trellis/contracts.d.ts.map +1 -0
- package/script/trellis/contracts.js +20 -0
- package/script/trellis/errors/AuthError.d.ts +2 -2
- package/script/trellis/errors/AuthError.d.ts.map +1 -1
- package/script/trellis/errors/AuthError.js +13 -2
- package/script/trellis/errors/KVError.d.ts +1 -1
- package/script/trellis/errors/KVError.d.ts.map +1 -1
- package/script/trellis/errors/KVError.js +2 -2
- package/script/trellis/errors/RemoteError.d.ts +4 -4
- package/script/trellis/errors/RemoteError.d.ts.map +1 -1
- package/script/trellis/errors/RemoteError.js +11 -11
- package/script/trellis/errors/TrellisError.d.ts +1 -1
- package/script/trellis/errors/TrellisError.d.ts.map +1 -1
- package/script/trellis/errors/TrellisError.js +2 -2
- package/script/trellis/errors/ValidationError.d.ts +1 -1
- package/script/trellis/errors/ValidationError.d.ts.map +1 -1
- package/script/trellis/errors/ValidationError.js +2 -2
- package/script/trellis/errors/index.d.ts +14 -14
- package/script/trellis/errors/index.d.ts.map +1 -1
- package/script/trellis/errors/index.js +31 -31
- package/script/trellis/globals.d.ts +9 -1
- package/script/trellis/globals.d.ts.map +1 -1
- package/script/trellis/globals.js +16 -8
- package/script/trellis/helpers.d.ts +1 -1
- package/script/trellis/helpers.d.ts.map +1 -1
- package/script/trellis/index.d.ts +17 -10
- package/script/trellis/index.d.ts.map +1 -1
- package/script/trellis/index.js +57 -22
- package/script/trellis/kv.d.ts +11 -8
- package/script/trellis/kv.d.ts.map +1 -1
- package/script/trellis/kv.js +91 -68
- package/script/trellis/models/trellis/TrellisError.d.ts +1 -1
- package/script/trellis/models/trellis/TrellisError.d.ts.map +1 -1
- package/script/trellis/models/trellis/TrellisError.js +8 -8
- package/script/trellis/operations.d.ts +81 -0
- package/script/trellis/operations.d.ts.map +1 -0
- package/script/trellis/operations.js +212 -0
- package/script/trellis/sdk/core.d.ts +3 -0
- package/script/trellis/sdk/core.d.ts.map +1 -0
- package/script/trellis/sdk/core.js +20 -0
- package/script/trellis/tasks.d.ts +3 -3
- package/script/trellis/tasks.d.ts.map +1 -1
- package/script/trellis/tasks.js +5 -5
- package/script/trellis/tracing.d.ts +2 -3
- package/script/trellis/tracing.d.ts.map +1 -1
- package/script/trellis/tracing.js +17 -20
- package/script/trellis/trellis.d.ts +169 -80
- package/script/trellis/trellis.d.ts.map +1 -1
- package/script/trellis/trellis.js +379 -177
- package/script/trellis/workload.d.ts +45 -0
- package/script/trellis/workload.d.ts.map +1 -0
- package/script/trellis/workload.js +172 -0
- package/script/_dnt.polyfills.d.ts +0 -7
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/trellis/browser.d.ts +0 -11
- package/script/trellis/browser.d.ts.map +0 -1
- package/script/trellis/browser.js +0 -21
- package/script/trellis/env.d.ts +0 -2
- package/script/trellis/env.d.ts.map +0 -1
- package/script/trellis/env.js +0 -5
- /package/script/{_dnt.polyfills.js → auth/types.js} +0 -0
package/script/trellis/kv.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type KV, type KvEntry } from "@nats-io/kv";
|
|
2
2
|
import type { NatsConnection } from "@nats-io/nats-core/internal";
|
|
3
|
-
import { Result } from "@qlever-llc/
|
|
3
|
+
import { Result } from "@qlever-llc/result";
|
|
4
4
|
import type { StaticDecode, TSchema } from "typebox";
|
|
5
|
-
import { KVError, ValidationError } from "./errors/index.
|
|
5
|
+
import { KVError, ValidationError } from "./errors/index.ts";
|
|
6
6
|
/**
|
|
7
7
|
* Represents a watch event emitted when a KV entry changes.
|
|
8
8
|
*/
|
|
@@ -29,6 +29,7 @@ export declare class TypedKV<S extends TSchema> {
|
|
|
29
29
|
readonly schema: S;
|
|
30
30
|
readonly kv: KV;
|
|
31
31
|
private constructor();
|
|
32
|
+
private static fromParts;
|
|
32
33
|
static open<S extends TSchema>(nats: NatsConnection, name: string, schema: S, options: {
|
|
33
34
|
history?: number;
|
|
34
35
|
ttl?: number;
|
|
@@ -36,8 +37,9 @@ export declare class TypedKV<S extends TSchema> {
|
|
|
36
37
|
maxValueBytes?: number;
|
|
37
38
|
}): Promise<Result<TypedKV<S>, KVError>>;
|
|
38
39
|
get(key: string): Promise<Result<TypedKVEntry<S>, KVError | ValidationError>>;
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
private serialize;
|
|
41
|
+
create(key: string, value: unknown): Promise<Result<void, KVError>>;
|
|
42
|
+
put(key: string, value: unknown): Promise<Result<void, KVError>>;
|
|
41
43
|
delete(key: string): Promise<Result<void, KVError>>;
|
|
42
44
|
keys(filter?: string | string[]): Promise<Result<AsyncIterable<string>, KVError>>;
|
|
43
45
|
status(): Promise<Result<{
|
|
@@ -45,11 +47,12 @@ export declare class TypedKV<S extends TSchema> {
|
|
|
45
47
|
}, KVError>>;
|
|
46
48
|
}
|
|
47
49
|
export declare class TypedKVEntry<S extends TSchema> {
|
|
50
|
+
#private;
|
|
48
51
|
private schema;
|
|
49
52
|
private kv;
|
|
50
53
|
private entry;
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
constructor(schema: S, kv: KV, entry: KvEntry, value: unknown);
|
|
55
|
+
get value(): StaticDecode<S>;
|
|
53
56
|
static create<S extends TSchema>(schema: S, kv: KV, entry: KvEntry): Promise<Result<TypedKVEntry<S>, ValidationError>>;
|
|
54
57
|
get key(): string;
|
|
55
58
|
/**
|
|
@@ -60,8 +63,8 @@ export declare class TypedKVEntry<S extends TSchema> {
|
|
|
60
63
|
* @returns A function to stop watching
|
|
61
64
|
*/
|
|
62
65
|
watch(callback: (event: WatchEvent<S>) => void, opts?: WatchOptions): Promise<() => void>;
|
|
63
|
-
merge(value:
|
|
64
|
-
put(value:
|
|
66
|
+
merge(value: unknown, vcc?: boolean): Promise<Result<void, KVError | ValidationError>>;
|
|
67
|
+
put(value: unknown, vcc?: boolean): Promise<Result<void, KVError>>;
|
|
65
68
|
delete(vcc?: boolean): Promise<Result<void, KVError>>;
|
|
66
69
|
}
|
|
67
70
|
//# sourceMappingURL=kv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../kv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,OAAO,EAAO,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAsD7D;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,OAAO,IAAI;IAC1C,mFAAmF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O,GACZ,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAc3B,MAAM,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;CAY5D"}
|
package/script/trellis/kv.js
CHANGED
|
@@ -22,15 +22,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
26
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
27
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
28
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
29
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
30
|
+
};
|
|
31
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
32
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
33
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
34
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
35
|
+
};
|
|
36
|
+
var _TypedKVEntry_value;
|
|
25
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
38
|
exports.TypedKVEntry = exports.TypedKV = void 0;
|
|
27
|
-
// @ts-nocheck -- svelte-check hits pathological generic instantiation in this file
|
|
28
39
|
const kv_1 = require("@nats-io/kv");
|
|
29
|
-
const
|
|
30
|
-
const ts_deepmerge_1 = require("ts-deepmerge");
|
|
40
|
+
const result_1 = require("@qlever-llc/result");
|
|
31
41
|
const value_1 = __importStar(require("typebox/value"));
|
|
32
|
-
const
|
|
33
|
-
const
|
|
42
|
+
const index_ts_1 = require("./errors/index.ts");
|
|
43
|
+
const helpers_ts_1 = require("./helpers.ts");
|
|
34
44
|
function externalizeValue(value) {
|
|
35
45
|
if (value instanceof Date) {
|
|
36
46
|
return value.toISOString();
|
|
@@ -61,6 +71,21 @@ function serializeValue(schema, value) {
|
|
|
61
71
|
function serializeExternalValue(schema, value) {
|
|
62
72
|
return serializeValue(schema, value);
|
|
63
73
|
}
|
|
74
|
+
function isPlainObject(value) {
|
|
75
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
76
|
+
}
|
|
77
|
+
function mergeUnknown(target, source) {
|
|
78
|
+
if (!isPlainObject(target) || !isPlainObject(source)) {
|
|
79
|
+
return source;
|
|
80
|
+
}
|
|
81
|
+
const out = { ...target };
|
|
82
|
+
for (const [key, entry] of Object.entries(source)) {
|
|
83
|
+
if (entry === undefined)
|
|
84
|
+
continue;
|
|
85
|
+
out[key] = mergeUnknown(target[key], entry);
|
|
86
|
+
}
|
|
87
|
+
return out;
|
|
88
|
+
}
|
|
64
89
|
class TypedKV {
|
|
65
90
|
constructor(schema, kv) {
|
|
66
91
|
Object.defineProperty(this, "schema", {
|
|
@@ -76,6 +101,9 @@ class TypedKV {
|
|
|
76
101
|
value: kv
|
|
77
102
|
});
|
|
78
103
|
}
|
|
104
|
+
static fromParts(schema, kv) {
|
|
105
|
+
return new TypedKV(schema, kv);
|
|
106
|
+
}
|
|
79
107
|
static async open(nats, name, schema, options) {
|
|
80
108
|
try {
|
|
81
109
|
const kvm = new kv_1.Kvm(nats);
|
|
@@ -86,79 +114,75 @@ class TypedKV {
|
|
|
86
114
|
ttl: options.ttl ?? 0,
|
|
87
115
|
...(options.maxValueBytes ? { maxValueSize: options.maxValueBytes } : {}),
|
|
88
116
|
});
|
|
89
|
-
const typedKv =
|
|
90
|
-
return
|
|
117
|
+
const typedKv = TypedKV.fromParts(schema, kv);
|
|
118
|
+
return result_1.Result.ok(typedKv);
|
|
91
119
|
}
|
|
92
120
|
catch (cause) {
|
|
93
|
-
return
|
|
121
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "open", cause }));
|
|
94
122
|
}
|
|
95
123
|
}
|
|
96
124
|
async get(key) {
|
|
97
125
|
let s;
|
|
98
126
|
try {
|
|
99
|
-
s = await this.kv.get((0,
|
|
127
|
+
s = await this.kv.get((0, helpers_ts_1.escapeKvKey)(key));
|
|
100
128
|
}
|
|
101
129
|
catch (cause) {
|
|
102
|
-
return
|
|
130
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "get", cause, context: { key } }));
|
|
103
131
|
}
|
|
104
132
|
if (!s) {
|
|
105
|
-
return
|
|
133
|
+
return result_1.Result.err(new index_ts_1.KVError({
|
|
106
134
|
operation: "get",
|
|
107
135
|
context: { key, reason: "not found" },
|
|
108
136
|
}));
|
|
109
137
|
}
|
|
110
|
-
|
|
138
|
+
const result = await createTypedKvEntry(this.schema, this.kv, s);
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
serialize(value) {
|
|
142
|
+
return serializeExternalValue(this.schema, value);
|
|
111
143
|
}
|
|
112
144
|
async create(key, value) {
|
|
113
|
-
const schema = this.schema;
|
|
114
|
-
const rawValue = value;
|
|
115
|
-
// @ts-expect-error svelte-check hits excessive type instantiation here
|
|
116
|
-
const serialized = serializeExternalValue(schema, rawValue);
|
|
117
145
|
try {
|
|
118
|
-
await this.kv.create((0,
|
|
119
|
-
return
|
|
146
|
+
await this.kv.create((0, helpers_ts_1.escapeKvKey)(key), this.serialize(value));
|
|
147
|
+
return result_1.Result.ok(undefined);
|
|
120
148
|
}
|
|
121
149
|
catch (cause) {
|
|
122
|
-
return
|
|
150
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "create", cause, context: { key } }));
|
|
123
151
|
}
|
|
124
152
|
}
|
|
125
153
|
async put(key, value) {
|
|
126
|
-
const schema = this.schema;
|
|
127
|
-
const rawValue = value;
|
|
128
|
-
// @ts-expect-error svelte-check hits excessive type instantiation here
|
|
129
|
-
const serialized = serializeExternalValue(schema, rawValue);
|
|
130
154
|
try {
|
|
131
|
-
await this.kv.put((0,
|
|
132
|
-
return
|
|
155
|
+
await this.kv.put((0, helpers_ts_1.escapeKvKey)(key), this.serialize(value));
|
|
156
|
+
return result_1.Result.ok(undefined);
|
|
133
157
|
}
|
|
134
158
|
catch (cause) {
|
|
135
|
-
return
|
|
159
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "put", cause, context: { key } }));
|
|
136
160
|
}
|
|
137
161
|
}
|
|
138
162
|
async delete(key) {
|
|
139
163
|
try {
|
|
140
|
-
await this.kv.delete((0,
|
|
141
|
-
return
|
|
164
|
+
await this.kv.delete((0, helpers_ts_1.escapeKvKey)(key));
|
|
165
|
+
return result_1.Result.ok(undefined);
|
|
142
166
|
}
|
|
143
167
|
catch (cause) {
|
|
144
|
-
return
|
|
168
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "delete", cause, context: { key } }));
|
|
145
169
|
}
|
|
146
170
|
}
|
|
147
171
|
async keys(filter = ">") {
|
|
148
172
|
try {
|
|
149
|
-
return
|
|
173
|
+
return result_1.Result.ok(await this.kv.keys(filter));
|
|
150
174
|
}
|
|
151
175
|
catch (cause) {
|
|
152
|
-
return
|
|
176
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "keys", cause, context: { filter } }));
|
|
153
177
|
}
|
|
154
178
|
}
|
|
155
179
|
async status() {
|
|
156
180
|
try {
|
|
157
181
|
const status = await this.kv.status();
|
|
158
|
-
return
|
|
182
|
+
return result_1.Result.ok({ values: status.values });
|
|
159
183
|
}
|
|
160
184
|
catch (cause) {
|
|
161
|
-
return
|
|
185
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "status", cause }));
|
|
162
186
|
}
|
|
163
187
|
}
|
|
164
188
|
}
|
|
@@ -183,20 +207,18 @@ class TypedKVEntry {
|
|
|
183
207
|
writable: true,
|
|
184
208
|
value: entry
|
|
185
209
|
});
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
});
|
|
192
|
-
// @ts-expect-error svelte-check hits excessive type instantiation on assignment
|
|
193
|
-
this.value = value;
|
|
210
|
+
_TypedKVEntry_value.set(this, void 0);
|
|
211
|
+
__classPrivateFieldSet(this, _TypedKVEntry_value, value, "f");
|
|
212
|
+
}
|
|
213
|
+
get value() {
|
|
214
|
+
return __classPrivateFieldGet(this, _TypedKVEntry_value, "f");
|
|
194
215
|
}
|
|
195
216
|
static async create(schema, kv, entry) {
|
|
196
|
-
|
|
217
|
+
const result = await createTypedKvEntry(schema, kv, entry);
|
|
218
|
+
return result;
|
|
197
219
|
}
|
|
198
220
|
get key() {
|
|
199
|
-
return (0,
|
|
221
|
+
return (0, helpers_ts_1.decodeSubject)(this.entry.key);
|
|
200
222
|
}
|
|
201
223
|
/**
|
|
202
224
|
* Watch this KV entry for changes.
|
|
@@ -220,7 +242,7 @@ class TypedKVEntry {
|
|
|
220
242
|
if (opts?.includeDeletes) {
|
|
221
243
|
callback({
|
|
222
244
|
type: "delete",
|
|
223
|
-
key: (0,
|
|
245
|
+
key: (0, helpers_ts_1.decodeSubject)(entry.key),
|
|
224
246
|
revision: entry.revision,
|
|
225
247
|
timestamp: entry.created,
|
|
226
248
|
});
|
|
@@ -245,7 +267,7 @@ class TypedKVEntry {
|
|
|
245
267
|
}
|
|
246
268
|
callback({
|
|
247
269
|
type: "update",
|
|
248
|
-
key: (0,
|
|
270
|
+
key: (0, helpers_ts_1.decodeSubject)(entry.key),
|
|
249
271
|
value: validated,
|
|
250
272
|
revision: entry.revision,
|
|
251
273
|
timestamp: entry.created,
|
|
@@ -259,33 +281,28 @@ class TypedKVEntry {
|
|
|
259
281
|
};
|
|
260
282
|
}
|
|
261
283
|
async merge(value, vcc) {
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
const schema = this.schema;
|
|
265
|
-
const mergedRawValue = mergedData;
|
|
266
|
-
// @ts-expect-error svelte-check hits excessive type instantiation here
|
|
267
|
-
const mergeResult = trellis_result_1.Result.try(() => serializeExternalValue(schema, mergedRawValue));
|
|
284
|
+
const mergedData = mergeUnknown(__classPrivateFieldGet(this, _TypedKVEntry_value, "f"), value);
|
|
285
|
+
const mergeResult = result_1.Result.try(() => serializeExternalValue(this.schema, mergedData));
|
|
268
286
|
if (mergeResult.isErr()) {
|
|
269
287
|
const cause = mergeResult.error.cause;
|
|
270
288
|
if (cause instanceof value_1.ParseError) {
|
|
271
|
-
const errors = value_1.default.Errors(schema, externalizeValue(mergedData));
|
|
272
|
-
return
|
|
289
|
+
const errors = value_1.default.Errors(this.schema, externalizeValue(mergedData));
|
|
290
|
+
return result_1.Result.err(new index_ts_1.ValidationError({ errors, cause }));
|
|
273
291
|
}
|
|
274
|
-
return
|
|
292
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "merge", cause: mergeResult.error, context: { key: this.key } }));
|
|
275
293
|
}
|
|
276
294
|
return this.put(mergedData, vcc);
|
|
277
295
|
}
|
|
278
296
|
async put(value, vcc) {
|
|
279
|
-
const
|
|
280
|
-
const serialized = serializeValue(schema, value);
|
|
297
|
+
const serialized = serializeValue(this.schema, value);
|
|
281
298
|
try {
|
|
282
299
|
await this.kv.put(this.entry.key, serialized, {
|
|
283
300
|
previousSeq: vcc ? this.entry.revision : undefined,
|
|
284
301
|
});
|
|
285
|
-
return
|
|
302
|
+
return result_1.Result.ok(undefined);
|
|
286
303
|
}
|
|
287
304
|
catch (cause) {
|
|
288
|
-
return
|
|
305
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "put", cause, context: { key: this.key } }));
|
|
289
306
|
}
|
|
290
307
|
}
|
|
291
308
|
async delete(vcc) {
|
|
@@ -293,14 +310,15 @@ class TypedKVEntry {
|
|
|
293
310
|
await this.kv.delete(this.entry.key, {
|
|
294
311
|
previousSeq: vcc ? this.entry.revision : undefined,
|
|
295
312
|
});
|
|
296
|
-
return
|
|
313
|
+
return result_1.Result.ok(undefined);
|
|
297
314
|
}
|
|
298
315
|
catch (cause) {
|
|
299
|
-
return
|
|
316
|
+
return result_1.Result.err(new index_ts_1.KVError({ operation: "delete", cause, context: { key: this.key } }));
|
|
300
317
|
}
|
|
301
318
|
}
|
|
302
319
|
}
|
|
303
320
|
exports.TypedKVEntry = TypedKVEntry;
|
|
321
|
+
_TypedKVEntry_value = new WeakMap();
|
|
304
322
|
async function createTypedKvEntry(schema, kv, entry) {
|
|
305
323
|
async function deleteInvalidEntry(reason) {
|
|
306
324
|
try {
|
|
@@ -308,7 +326,7 @@ async function createTypedKvEntry(schema, kv, entry) {
|
|
|
308
326
|
previousSeq: entry.revision,
|
|
309
327
|
});
|
|
310
328
|
return {
|
|
311
|
-
key: (0,
|
|
329
|
+
key: (0, helpers_ts_1.decodeSubject)(entry.key),
|
|
312
330
|
revision: entry.revision,
|
|
313
331
|
invalidEntryDeleted: true,
|
|
314
332
|
invalidEntryReason: reason,
|
|
@@ -316,7 +334,7 @@ async function createTypedKvEntry(schema, kv, entry) {
|
|
|
316
334
|
}
|
|
317
335
|
catch (cause) {
|
|
318
336
|
return {
|
|
319
|
-
key: (0,
|
|
337
|
+
key: (0, helpers_ts_1.decodeSubject)(entry.key),
|
|
320
338
|
revision: entry.revision,
|
|
321
339
|
invalidEntryDeleted: false,
|
|
322
340
|
invalidEntryDeleteError: cause instanceof Error ? cause.message : String(cause),
|
|
@@ -324,31 +342,36 @@ async function createTypedKvEntry(schema, kv, entry) {
|
|
|
324
342
|
};
|
|
325
343
|
}
|
|
326
344
|
}
|
|
327
|
-
const jsonResult =
|
|
345
|
+
const jsonResult = result_1.Result.try(() => entry.json());
|
|
328
346
|
if (jsonResult.isErr()) {
|
|
329
347
|
const context = await deleteInvalidEntry(`decode failed: ${jsonResult.error.message}`);
|
|
330
|
-
return
|
|
348
|
+
return result_1.Result.err(new index_ts_1.ValidationError({
|
|
331
349
|
errors: [{ path: "", message: `Failed to decode KV value: ${jsonResult.error.message}` }],
|
|
332
350
|
cause: jsonResult.error,
|
|
333
351
|
context,
|
|
334
352
|
}));
|
|
335
353
|
}
|
|
336
354
|
const json = jsonResult.take();
|
|
337
|
-
const parseResult =
|
|
355
|
+
const parseResult = result_1.Result.try(() => {
|
|
356
|
+
if (value_1.default.HasCodec(schema)) {
|
|
357
|
+
return value_1.default.Decode(schema, json);
|
|
358
|
+
}
|
|
359
|
+
return value_1.default.Parse(schema, json);
|
|
360
|
+
});
|
|
338
361
|
if (parseResult.isErr()) {
|
|
339
362
|
const cause = parseResult.error.cause;
|
|
340
363
|
if (cause instanceof value_1.ParseError) {
|
|
341
364
|
const errors = value_1.default.Errors(schema, json);
|
|
342
365
|
const context = await deleteInvalidEntry("schema parse failed");
|
|
343
|
-
return
|
|
366
|
+
return result_1.Result.err(new index_ts_1.ValidationError({ errors, cause, context }));
|
|
344
367
|
}
|
|
345
368
|
const context = await deleteInvalidEntry(parseResult.error.message);
|
|
346
|
-
return
|
|
369
|
+
return result_1.Result.err(new index_ts_1.ValidationError({
|
|
347
370
|
errors: [{ path: "", message: parseResult.error.message }],
|
|
348
371
|
cause: parseResult.error,
|
|
349
372
|
context,
|
|
350
373
|
}));
|
|
351
374
|
}
|
|
352
375
|
const typedEntry = new TypedKVEntry(schema, kv, entry, parseResult.take());
|
|
353
|
-
return
|
|
376
|
+
return result_1.Result.ok(typedEntry);
|
|
354
377
|
}
|
|
@@ -24,7 +24,7 @@ export declare const TrellisErrorDataSchema: Type.TUnion<[Type.TObject<{
|
|
|
24
24
|
id: Type.TString;
|
|
25
25
|
type: Type.TLiteral<"AuthError">;
|
|
26
26
|
message: Type.TString;
|
|
27
|
-
reason: Type.TUnion<[Type.TLiteral<"invalid_request">, Type.TLiteral<"missing_session_key">, Type.TLiteral<"missing_proof">, Type.TLiteral<"session_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"invalid_signature">, Type.TLiteral<"user_not_found">, Type.TLiteral<"user_inactive">, Type.TLiteral<"unknown_service">, Type.TLiteral<"service_disabled">, Type.TLiteral<"iat_out_of_range">, Type.TLiteral<"invalid_binding_token">, Type.TLiteral<"session_corrupted">, Type.TLiteral<"session_already_bound">, Type.TLiteral<"authtoken_already_used">, Type.TLiteral<"oauth_session_key_mismatch">, Type.TLiteral<"service_role_on_user">, Type.TLiteral<"reply_subject_mismatch">, Type.TLiteral<"insufficient_permissions">, Type.TLiteral<"forbidden">]>;
|
|
27
|
+
reason: Type.TUnion<[Type.TLiteral<"invalid_request">, Type.TLiteral<"missing_session_key">, Type.TLiteral<"missing_proof">, Type.TLiteral<"session_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"invalid_signature">, Type.TLiteral<"user_not_found">, Type.TLiteral<"user_inactive">, Type.TLiteral<"unknown_workload">, Type.TLiteral<"workload_profile_not_found">, Type.TLiteral<"workload_profile_disabled">, Type.TLiteral<"workload_activation_revoked">, Type.TLiteral<"unknown_service">, Type.TLiteral<"service_disabled">, Type.TLiteral<"iat_out_of_range">, Type.TLiteral<"invalid_binding_token">, Type.TLiteral<"session_corrupted">, Type.TLiteral<"session_already_bound">, Type.TLiteral<"authtoken_already_used">, Type.TLiteral<"oauth_session_key_mismatch">, Type.TLiteral<"service_role_on_user">, Type.TLiteral<"reply_subject_mismatch">, Type.TLiteral<"insufficient_permissions">, Type.TLiteral<"forbidden">, Type.TLiteral<"missing_handoff_id">, Type.TLiteral<"missing_profile_id">, Type.TLiteral<"workload_activation_handoff_not_found">, Type.TLiteral<"workload_activation_handoff_expired">, Type.TLiteral<"workload_activation_rejected">, Type.TLiteral<"workload_identity_key_mismatch">, Type.TLiteral<"invalid_workload_qr_mac">]>;
|
|
28
28
|
context: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
29
29
|
traceId: Type.TOptional<Type.TString>;
|
|
30
30
|
}>, Type.TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrellisError.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"TrellisError.d.ts","sourceRoot":"","sources":["../../../../../models/trellis/TrellisError.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAMlD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKjC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -5,18 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TrellisErrorDataSchema = void 0;
|
|
7
7
|
const typebox_1 = __importDefault(require("typebox"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
const mod_ts_1 = require("../../../result/mod.ts");
|
|
9
|
+
const ValidationError_ts_1 = require("../../errors/ValidationError.ts");
|
|
10
|
+
const AuthError_ts_1 = require("../../errors/AuthError.ts");
|
|
11
|
+
const KVError_ts_1 = require("../../errors/KVError.ts");
|
|
12
12
|
/**
|
|
13
13
|
* Discriminated union schema for all possible Trellis error types.
|
|
14
14
|
* These errors can be serialized and sent over RPC.
|
|
15
15
|
* Note: RemoteError is not included here as it's a local wrapper, not a serializable error type.
|
|
16
16
|
*/
|
|
17
17
|
exports.TrellisErrorDataSchema = typebox_1.default.Union([
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
mod_ts_1.UnexpectedErrorDataSchema,
|
|
19
|
+
ValidationError_ts_1.ValidationErrorDataSchema,
|
|
20
|
+
AuthError_ts_1.AuthErrorDataSchema,
|
|
21
|
+
KVError_ts_1.KVErrorDataSchema,
|
|
22
22
|
]);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { InferSchemaType } from "./contracts.ts";
|
|
2
|
+
import { type Result } from "@qlever-llc/result";
|
|
3
|
+
import type { JsonValue } from "./codec.ts";
|
|
4
|
+
import { UnexpectedError } from "./errors/index.ts";
|
|
5
|
+
export type OperationState = "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
6
|
+
export type OperationRefData = {
|
|
7
|
+
id: string;
|
|
8
|
+
service: string;
|
|
9
|
+
operation: string;
|
|
10
|
+
};
|
|
11
|
+
export type OperationSnapshot<TProgress = unknown, TOutput = unknown> = {
|
|
12
|
+
id: string;
|
|
13
|
+
service: string;
|
|
14
|
+
operation: string;
|
|
15
|
+
revision: number;
|
|
16
|
+
state: OperationState;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
completedAt?: string;
|
|
20
|
+
progress?: TProgress;
|
|
21
|
+
output?: TOutput;
|
|
22
|
+
error?: {
|
|
23
|
+
type: string;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type TerminalOperation<TProgress = unknown, TOutput = unknown> = OperationSnapshot<TProgress, TOutput> & {
|
|
28
|
+
state: "completed" | "failed" | "cancelled";
|
|
29
|
+
};
|
|
30
|
+
export type OperationEvent<TProgress = unknown, TOutput = unknown> = {
|
|
31
|
+
type: "accepted";
|
|
32
|
+
snapshot: OperationSnapshot<TProgress, TOutput>;
|
|
33
|
+
} | {
|
|
34
|
+
type: "started";
|
|
35
|
+
snapshot: OperationSnapshot<TProgress, TOutput>;
|
|
36
|
+
} | {
|
|
37
|
+
type: "progress";
|
|
38
|
+
snapshot: OperationSnapshot<TProgress, TOutput>;
|
|
39
|
+
} | {
|
|
40
|
+
type: "completed";
|
|
41
|
+
snapshot: TerminalOperation<TProgress, TOutput>;
|
|
42
|
+
} | {
|
|
43
|
+
type: "failed";
|
|
44
|
+
snapshot: TerminalOperation<TProgress, TOutput>;
|
|
45
|
+
} | {
|
|
46
|
+
type: "cancelled";
|
|
47
|
+
snapshot: TerminalOperation<TProgress, TOutput>;
|
|
48
|
+
};
|
|
49
|
+
type OperationShape = {
|
|
50
|
+
subject: string;
|
|
51
|
+
input: unknown;
|
|
52
|
+
progress?: unknown;
|
|
53
|
+
output?: unknown;
|
|
54
|
+
cancel?: boolean;
|
|
55
|
+
};
|
|
56
|
+
type OperationInputOf<TDesc extends OperationShape> = InferSchemaType<TDesc["input"]>;
|
|
57
|
+
type OperationProgressOf<TDesc extends OperationShape> = TDesc["progress"] extends undefined ? unknown : InferSchemaType<NonNullable<TDesc["progress"]>>;
|
|
58
|
+
type OperationOutputOf<TDesc extends OperationShape> = TDesc["output"] extends undefined ? unknown : InferSchemaType<NonNullable<TDesc["output"]>>;
|
|
59
|
+
export interface OperationTransport {
|
|
60
|
+
requestJson(subject: string, body: JsonValue): Promise<Result<JsonValue, UnexpectedError>>;
|
|
61
|
+
watchJson(subject: string, body: JsonValue): Promise<Result<AsyncIterable<Result<JsonValue, UnexpectedError>>, UnexpectedError>>;
|
|
62
|
+
}
|
|
63
|
+
export declare function controlSubject(subject: string): string;
|
|
64
|
+
export declare class OperationRef<TDesc extends OperationShape, TProgress = OperationProgressOf<TDesc>, TOutput = OperationOutputOf<TDesc>> {
|
|
65
|
+
#private;
|
|
66
|
+
readonly id: string;
|
|
67
|
+
readonly service: string;
|
|
68
|
+
readonly operation: string;
|
|
69
|
+
constructor(transport: OperationTransport, descriptor: TDesc, ref: OperationRefData);
|
|
70
|
+
get(): Promise<Result<OperationSnapshot<TProgress, TOutput>, UnexpectedError>>;
|
|
71
|
+
wait(): Promise<Result<TerminalOperation<TProgress, TOutput>, UnexpectedError>>;
|
|
72
|
+
cancel(): Promise<Result<OperationSnapshot<TProgress, TOutput>, UnexpectedError>>;
|
|
73
|
+
watch(): Promise<Result<AsyncIterable<OperationEvent<TProgress, TOutput>>, UnexpectedError>>;
|
|
74
|
+
}
|
|
75
|
+
export declare class OperationInvoker<TDesc extends OperationShape, TInput = OperationInputOf<TDesc>, TProgress = OperationProgressOf<TDesc>, TOutput = OperationOutputOf<TDesc>> {
|
|
76
|
+
#private;
|
|
77
|
+
constructor(transport: OperationTransport, descriptor: TDesc);
|
|
78
|
+
start(input: TInput): Promise<Result<OperationRef<TDesc, TProgress, TOutput>, UnexpectedError>>;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,WAAW,CAAC;AAEhB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,SAAS,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MA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