@qlever-llc/trellis 0.5.1 → 0.6.1
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 +466 -0
- package/esm/contracts/mod.d.ts.map +1 -0
- package/esm/contracts/mod.js +534 -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 +64 -5
- 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 +466 -0
- package/script/contracts/mod.d.ts.map +1 -0
- package/script/contracts/mod.js +557 -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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type NatsConnection } from "@nats-io/nats-core";
|
|
2
|
+
import type { ClientOpts } from "./client.ts";
|
|
3
|
+
import type { TrellisAPI } from "./contracts.ts";
|
|
4
|
+
import type { TrellisAuth, Trellis } from "./trellis.ts";
|
|
5
|
+
type WorkloadContract<TApi extends TrellisAPI = TrellisAPI> = {
|
|
6
|
+
CONTRACT_ID: string;
|
|
7
|
+
CONTRACT_DIGEST: string;
|
|
8
|
+
API: {
|
|
9
|
+
trellis: TApi;
|
|
10
|
+
};
|
|
11
|
+
createClient(nats: NatsConnection, auth: TrellisAuth, opts?: ClientOpts): Trellis<TApi>;
|
|
12
|
+
};
|
|
13
|
+
type WorkloadConnectTransport = {
|
|
14
|
+
connect(options: {
|
|
15
|
+
servers: string | string[];
|
|
16
|
+
token?: string;
|
|
17
|
+
authenticator?: unknown;
|
|
18
|
+
inboxPrefix?: string;
|
|
19
|
+
}): Promise<NatsConnection>;
|
|
20
|
+
};
|
|
21
|
+
type WorkloadConnectDeps = {
|
|
22
|
+
loadTransport(): Promise<WorkloadConnectTransport>;
|
|
23
|
+
now(): number;
|
|
24
|
+
};
|
|
25
|
+
export type WorkloadActivationController = {
|
|
26
|
+
url: string;
|
|
27
|
+
waitForOnlineApproval(opts?: {
|
|
28
|
+
signal?: AbortSignal;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
acceptConfirmationCode(code: string): Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
export type TrellisWorkloadConnectArgs<TApi extends TrellisAPI = TrellisAPI> = {
|
|
33
|
+
authUrl: string;
|
|
34
|
+
contract: WorkloadContract<TApi>;
|
|
35
|
+
rootSecret: Uint8Array | string;
|
|
36
|
+
onActivationRequired?(activation: WorkloadActivationController): Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
declare function runtimeImport<TModule>(specifier: string): Promise<TModule>;
|
|
39
|
+
export declare function loadDefaultTransport(importModule?: typeof runtimeImport): Promise<WorkloadConnectTransport>;
|
|
40
|
+
export declare function connectWorkloadWithDeps<TApi extends TrellisAPI>(args: TrellisWorkloadConnectArgs<TApi>, deps: WorkloadConnectDeps): Promise<Trellis<TApi>>;
|
|
41
|
+
export declare class TrellisWorkload {
|
|
42
|
+
static connect<TApi extends TrellisAPI>(args: TrellisWorkloadConnectArgs<TApi>): Promise<Trellis<TApi>>;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=workload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload.d.ts","sourceRoot":"","sources":["../../../workload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAY3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,KAAK,gBAAgB,CAAC,IAAI,SAAS,UAAU,GAAG,UAAU,IAAI;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE;QACH,OAAO,EAAE,IAAI,CAAC;KACf,CAAC;IACF,YAAY,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzF,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,OAAO,EAAE;QACf,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC7B,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,aAAa,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnD,GAAG,IAAI,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,0BAA0B,CAAC,IAAI,SAAS,UAAU,GAAG,UAAU,IAAI;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACjC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC;IAChC,oBAAoB,CAAC,CAAC,UAAU,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChF,CAAC;AAqBF,iBAAe,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAKzE;AAED,wBAAsB,oBAAoB,CACxC,YAAY,GAAE,OAAO,aAA6B,GACjD,OAAO,CAAC,wBAAwB,CAAC,CAenC;AAgBD,wBAAsB,uBAAuB,CAAC,IAAI,SAAS,UAAU,EACnE,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC,EACtC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAmGxB;AAED,qBAAa,eAAe;IAC1B,MAAM,CAAC,OAAO,CAAC,IAAI,SAAS,UAAU,EACpC,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC,GACrC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;CAG1B"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TrellisWorkload = void 0;
|
|
27
|
+
exports.loadDefaultTransport = loadDefaultTransport;
|
|
28
|
+
exports.connectWorkloadWithDeps = connectWorkloadWithDeps;
|
|
29
|
+
const nats_core_1 = require("@nats-io/nats-core");
|
|
30
|
+
const auth_ts_1 = require("./auth.ts");
|
|
31
|
+
function normalizeRootSecret(rootSecret) {
|
|
32
|
+
if (typeof rootSecret === "string") {
|
|
33
|
+
const decoded = (0, auth_ts_1.base64urlDecode)(rootSecret.trim());
|
|
34
|
+
if (decoded.length === 0)
|
|
35
|
+
throw new Error("rootSecret must not be empty");
|
|
36
|
+
return decoded;
|
|
37
|
+
}
|
|
38
|
+
if (rootSecret.length === 0)
|
|
39
|
+
throw new Error("rootSecret must not be empty");
|
|
40
|
+
return rootSecret;
|
|
41
|
+
}
|
|
42
|
+
async function signIdentityBytes(identitySeed, data) {
|
|
43
|
+
const { importEd25519PrivateKeyFromSeedBase64url } = await Promise.resolve().then(() => __importStar(require("../auth/keys.ts")));
|
|
44
|
+
const { base64urlEncode, toArrayBuffer } = await Promise.resolve().then(() => __importStar(require("../auth/utils.ts")));
|
|
45
|
+
const privateKey = await importEd25519PrivateKeyFromSeedBase64url(base64urlEncode(identitySeed));
|
|
46
|
+
return new Uint8Array(await crypto.subtle.sign("Ed25519", privateKey, toArrayBuffer(data)));
|
|
47
|
+
}
|
|
48
|
+
async function runtimeImport(specifier) {
|
|
49
|
+
const load = new Function("specifier", "return import(specifier);");
|
|
50
|
+
return await load(specifier);
|
|
51
|
+
}
|
|
52
|
+
async function loadDefaultTransport(importModule = runtimeImport) {
|
|
53
|
+
if ("Deno" in globalThis) {
|
|
54
|
+
const mod = await importModule("@nats-io/nats-core");
|
|
55
|
+
return {
|
|
56
|
+
connect: mod.wsconnect,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const mod = await runtimeImport("@nats-io/transport-node");
|
|
60
|
+
return {
|
|
61
|
+
connect: mod.connect,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const defaultDeps = {
|
|
65
|
+
loadTransport: loadDefaultTransport,
|
|
66
|
+
now: () => Date.now(),
|
|
67
|
+
};
|
|
68
|
+
function activationRequiredError() {
|
|
69
|
+
return new Error("Workload activation required but no activation handler was provided");
|
|
70
|
+
}
|
|
71
|
+
function isConnectInfoUnavailable(error) {
|
|
72
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
73
|
+
return message.includes("404") || message.includes("unknown_workload");
|
|
74
|
+
}
|
|
75
|
+
async function connectWorkloadWithDeps(args, deps) {
|
|
76
|
+
const rootSecret = normalizeRootSecret(args.rootSecret);
|
|
77
|
+
const identity = await (0, auth_ts_1.deriveWorkloadIdentity)(rootSecret);
|
|
78
|
+
const contractDigest = args.contract.CONTRACT_DIGEST;
|
|
79
|
+
let connectInfo = null;
|
|
80
|
+
try {
|
|
81
|
+
connectInfo = (await (0, auth_ts_1.getWorkloadConnectInfo)({
|
|
82
|
+
trellisUrl: args.authUrl,
|
|
83
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
84
|
+
identitySeed: identity.identitySeed,
|
|
85
|
+
contractDigest,
|
|
86
|
+
})).connectInfo;
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
if (!isConnectInfoUnavailable(error))
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
if (!connectInfo) {
|
|
93
|
+
if (!args.onActivationRequired)
|
|
94
|
+
throw activationRequiredError();
|
|
95
|
+
const nonce = crypto.randomUUID();
|
|
96
|
+
const payload = await (0, auth_ts_1.buildWorkloadActivationPayload)({
|
|
97
|
+
activationKey: identity.activationKey,
|
|
98
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
99
|
+
nonce,
|
|
100
|
+
});
|
|
101
|
+
const activationUrl = (0, auth_ts_1.buildWorkloadActivationUrl)({
|
|
102
|
+
trellisUrl: args.authUrl,
|
|
103
|
+
payload,
|
|
104
|
+
});
|
|
105
|
+
let activationCompleted = false;
|
|
106
|
+
let onlineConnectInfo = null;
|
|
107
|
+
await args.onActivationRequired({
|
|
108
|
+
url: activationUrl,
|
|
109
|
+
waitForOnlineApproval: async (opts) => {
|
|
110
|
+
if (activationCompleted)
|
|
111
|
+
return;
|
|
112
|
+
const activation = await (0, auth_ts_1.waitForWorkloadActivation)({
|
|
113
|
+
trellisUrl: args.authUrl,
|
|
114
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
115
|
+
nonce,
|
|
116
|
+
identitySeed: identity.identitySeed,
|
|
117
|
+
contractDigest,
|
|
118
|
+
signal: opts?.signal,
|
|
119
|
+
});
|
|
120
|
+
onlineConnectInfo = activation.connectInfo;
|
|
121
|
+
activationCompleted = true;
|
|
122
|
+
},
|
|
123
|
+
acceptConfirmationCode: async (code) => {
|
|
124
|
+
if (activationCompleted)
|
|
125
|
+
return;
|
|
126
|
+
const ok = await (0, auth_ts_1.verifyWorkloadConfirmationCode)({
|
|
127
|
+
activationKey: identity.activationKey,
|
|
128
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
129
|
+
nonce,
|
|
130
|
+
confirmationCode: code,
|
|
131
|
+
});
|
|
132
|
+
if (!ok) {
|
|
133
|
+
throw new Error("Invalid workload confirmation code");
|
|
134
|
+
}
|
|
135
|
+
activationCompleted = true;
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
if (!activationCompleted) {
|
|
139
|
+
throw new Error("Workload activation did not complete");
|
|
140
|
+
}
|
|
141
|
+
connectInfo = onlineConnectInfo ?? (await (0, auth_ts_1.getWorkloadConnectInfo)({
|
|
142
|
+
trellisUrl: args.authUrl,
|
|
143
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
144
|
+
identitySeed: identity.identitySeed,
|
|
145
|
+
contractDigest,
|
|
146
|
+
})).connectInfo;
|
|
147
|
+
}
|
|
148
|
+
const transport = await deps.loadTransport();
|
|
149
|
+
const iat = Math.floor(deps.now() / 1_000);
|
|
150
|
+
const authToken = await (0, auth_ts_1.createWorkloadNatsAuthToken)({
|
|
151
|
+
publicIdentityKey: identity.publicIdentityKey,
|
|
152
|
+
identitySeed: identity.identitySeed,
|
|
153
|
+
contractDigest,
|
|
154
|
+
iat,
|
|
155
|
+
});
|
|
156
|
+
const nc = await transport.connect({
|
|
157
|
+
servers: connectInfo.transport.natsServers,
|
|
158
|
+
token: JSON.stringify(authToken),
|
|
159
|
+
inboxPrefix: `_INBOX.${identity.publicIdentityKey.slice(0, 16)}`,
|
|
160
|
+
authenticator: (0, nats_core_1.jwtAuthenticator)(connectInfo.transport.sentinel.jwt, new TextEncoder().encode(connectInfo.transport.sentinel.seed)),
|
|
161
|
+
});
|
|
162
|
+
return args.contract.createClient(nc, {
|
|
163
|
+
sessionKey: identity.publicIdentityKey,
|
|
164
|
+
sign: (data) => signIdentityBytes(identity.identitySeed, data),
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
class TrellisWorkload {
|
|
168
|
+
static connect(args) {
|
|
169
|
+
return connectWorkloadWithDeps(args, defaultDeps);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
exports.TrellisWorkload = TrellisWorkload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-safe exports for @qlever-llc/trellis
|
|
3
|
-
*/
|
|
4
|
-
import "../_dnt.polyfills.js";
|
|
5
|
-
export { Trellis } from "./trellis.js";
|
|
6
|
-
export type { TrellisAuth } from "./trellis.js";
|
|
7
|
-
export { TypedKV, TypedKVEntry } from "./kv.js";
|
|
8
|
-
export type { WatchEvent, WatchOptions } from "./kv.js";
|
|
9
|
-
export { AuthError, KVError, RemoteError, UnexpectedError, ValidationError, } from "./errors/index.js";
|
|
10
|
-
export type { TrellisErrorInstance } from "./errors/index.js";
|
|
11
|
-
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/trellis/browser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGxD,OAAO,EACL,SAAS,EACT,OAAO,EACP,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Browser-safe exports for @qlever-llc/trellis
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ValidationError = exports.UnexpectedError = exports.RemoteError = exports.KVError = exports.AuthError = exports.TypedKVEntry = exports.TypedKV = exports.Trellis = void 0;
|
|
7
|
-
// Core Trellis client class (browser-safe)
|
|
8
|
-
require("../_dnt.polyfills.js");
|
|
9
|
-
var trellis_js_1 = require("./trellis.js");
|
|
10
|
-
Object.defineProperty(exports, "Trellis", { enumerable: true, get: function () { return trellis_js_1.Trellis; } });
|
|
11
|
-
// KV utilities (browser-safe)
|
|
12
|
-
var kv_js_1 = require("./kv.js");
|
|
13
|
-
Object.defineProperty(exports, "TypedKV", { enumerable: true, get: function () { return kv_js_1.TypedKV; } });
|
|
14
|
-
Object.defineProperty(exports, "TypedKVEntry", { enumerable: true, get: function () { return kv_js_1.TypedKVEntry; } });
|
|
15
|
-
// Error types (browser-safe)
|
|
16
|
-
var index_js_1 = require("./errors/index.js");
|
|
17
|
-
Object.defineProperty(exports, "AuthError", { enumerable: true, get: function () { return index_js_1.AuthError; } });
|
|
18
|
-
Object.defineProperty(exports, "KVError", { enumerable: true, get: function () { return index_js_1.KVError; } });
|
|
19
|
-
Object.defineProperty(exports, "RemoteError", { enumerable: true, get: function () { return index_js_1.RemoteError; } });
|
|
20
|
-
Object.defineProperty(exports, "UnexpectedError", { enumerable: true, get: function () { return index_js_1.UnexpectedError; } });
|
|
21
|
-
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return index_js_1.ValidationError; } });
|
package/script/trellis/env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/trellis/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC"}
|
package/script/trellis/env.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEnv = void 0;
|
|
4
|
-
var trellis_telemetry_1 = require("@qlever-llc/trellis-telemetry");
|
|
5
|
-
Object.defineProperty(exports, "getEnv", { enumerable: true, get: function () { return trellis_telemetry_1.getEnv; } });
|
|
File without changes
|