@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,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.trace = exports.SpanStatusCode = exports.SpanKind = exports.context = void 0;
|
|
4
|
+
exports.getTracer = getTracer;
|
|
5
|
+
exports.getActiveSpan = getActiveSpan;
|
|
6
|
+
exports.withSpan = withSpan;
|
|
7
|
+
exports.withSpanAsync = withSpanAsync;
|
|
8
|
+
const api_1 = require("@opentelemetry/api");
|
|
9
|
+
Object.defineProperty(exports, "context", { enumerable: true, get: function () { return api_1.context; } });
|
|
10
|
+
Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function () { return api_1.SpanKind; } });
|
|
11
|
+
Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function () { return api_1.SpanStatusCode; } });
|
|
12
|
+
Object.defineProperty(exports, "trace", { enumerable: true, get: function () { return api_1.trace; } });
|
|
13
|
+
function getTracer(scope = "@qlever-llc/trellis/tracing") {
|
|
14
|
+
return api_1.trace.getTracer(scope);
|
|
15
|
+
}
|
|
16
|
+
function getActiveSpan() {
|
|
17
|
+
return api_1.trace.getActiveSpan();
|
|
18
|
+
}
|
|
19
|
+
function withSpan(span, fn) {
|
|
20
|
+
return api_1.context.with(api_1.trace.setSpan(api_1.context.active(), span), fn);
|
|
21
|
+
}
|
|
22
|
+
async function withSpanAsync(span, fn) {
|
|
23
|
+
return api_1.context.with(api_1.trace.setSpan(api_1.context.active(), span), fn);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../telemetry/env.ts"],"names":[],"mappings":"AAWA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEnv = getEnv;
|
|
4
|
+
// Shared telemetry code needs environment access without assuming Deno or Node.
|
|
5
|
+
function getEnv(key) {
|
|
6
|
+
const deno = globalThis;
|
|
7
|
+
if (deno.Deno?.env?.get) {
|
|
8
|
+
return deno.Deno.env.get(key);
|
|
9
|
+
}
|
|
10
|
+
const processGlobal = globalThis;
|
|
11
|
+
return processGlobal.process?.env?.[key];
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { HeaderCarrier } from "./carrier.ts";
|
|
2
|
+
export { createMapCarrier, extractTraceContext, injectTraceContext } from "./carrier.ts";
|
|
3
|
+
export type { Context, Span } from "./core.ts";
|
|
4
|
+
export { context, getActiveSpan, getTracer, SpanKind, SpanStatusCode, trace, withSpan, withSpanAsync, } from "./core.ts";
|
|
5
|
+
export { getEnv } from "./env.ts";
|
|
6
|
+
export type { NatsHeadersLike } from "./nats.ts";
|
|
7
|
+
export { createNatsHeaderCarrier } from "./nats.ts";
|
|
8
|
+
export { configureErrorTraceId } from "./result.ts";
|
|
9
|
+
export { initTelemetry } from "./runtime.ts";
|
|
10
|
+
export { getTrellisTracer, initTracing, startClientSpan, startServerSpan } from "./trellis.ts";
|
|
11
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../telemetry/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACzF,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,KAAK,EACL,QAAQ,EACR,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startServerSpan = exports.startClientSpan = exports.initTracing = exports.getTrellisTracer = exports.initTelemetry = exports.configureErrorTraceId = exports.createNatsHeaderCarrier = exports.getEnv = exports.withSpanAsync = exports.withSpan = exports.trace = exports.SpanStatusCode = exports.SpanKind = exports.getTracer = exports.getActiveSpan = exports.context = exports.injectTraceContext = exports.extractTraceContext = exports.createMapCarrier = void 0;
|
|
4
|
+
var carrier_ts_1 = require("./carrier.ts");
|
|
5
|
+
Object.defineProperty(exports, "createMapCarrier", { enumerable: true, get: function () { return carrier_ts_1.createMapCarrier; } });
|
|
6
|
+
Object.defineProperty(exports, "extractTraceContext", { enumerable: true, get: function () { return carrier_ts_1.extractTraceContext; } });
|
|
7
|
+
Object.defineProperty(exports, "injectTraceContext", { enumerable: true, get: function () { return carrier_ts_1.injectTraceContext; } });
|
|
8
|
+
var core_ts_1 = require("./core.ts");
|
|
9
|
+
Object.defineProperty(exports, "context", { enumerable: true, get: function () { return core_ts_1.context; } });
|
|
10
|
+
Object.defineProperty(exports, "getActiveSpan", { enumerable: true, get: function () { return core_ts_1.getActiveSpan; } });
|
|
11
|
+
Object.defineProperty(exports, "getTracer", { enumerable: true, get: function () { return core_ts_1.getTracer; } });
|
|
12
|
+
Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function () { return core_ts_1.SpanKind; } });
|
|
13
|
+
Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function () { return core_ts_1.SpanStatusCode; } });
|
|
14
|
+
Object.defineProperty(exports, "trace", { enumerable: true, get: function () { return core_ts_1.trace; } });
|
|
15
|
+
Object.defineProperty(exports, "withSpan", { enumerable: true, get: function () { return core_ts_1.withSpan; } });
|
|
16
|
+
Object.defineProperty(exports, "withSpanAsync", { enumerable: true, get: function () { return core_ts_1.withSpanAsync; } });
|
|
17
|
+
var env_ts_1 = require("./env.ts");
|
|
18
|
+
Object.defineProperty(exports, "getEnv", { enumerable: true, get: function () { return env_ts_1.getEnv; } });
|
|
19
|
+
var nats_ts_1 = require("./nats.ts");
|
|
20
|
+
Object.defineProperty(exports, "createNatsHeaderCarrier", { enumerable: true, get: function () { return nats_ts_1.createNatsHeaderCarrier; } });
|
|
21
|
+
var result_ts_1 = require("./result.ts");
|
|
22
|
+
Object.defineProperty(exports, "configureErrorTraceId", { enumerable: true, get: function () { return result_ts_1.configureErrorTraceId; } });
|
|
23
|
+
var runtime_ts_1 = require("./runtime.ts");
|
|
24
|
+
Object.defineProperty(exports, "initTelemetry", { enumerable: true, get: function () { return runtime_ts_1.initTelemetry; } });
|
|
25
|
+
var trellis_ts_1 = require("./trellis.ts");
|
|
26
|
+
Object.defineProperty(exports, "getTrellisTracer", { enumerable: true, get: function () { return trellis_ts_1.getTrellisTracer; } });
|
|
27
|
+
Object.defineProperty(exports, "initTracing", { enumerable: true, get: function () { return trellis_ts_1.initTracing; } });
|
|
28
|
+
Object.defineProperty(exports, "startClientSpan", { enumerable: true, get: function () { return trellis_ts_1.startClientSpan; } });
|
|
29
|
+
Object.defineProperty(exports, "startServerSpan", { enumerable: true, get: function () { return trellis_ts_1.startServerSpan; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HeaderCarrier } from "./carrier.ts";
|
|
2
|
+
export interface NatsHeadersLike {
|
|
3
|
+
get(key: string): string | undefined;
|
|
4
|
+
set(key: string, value: string): void;
|
|
5
|
+
}
|
|
6
|
+
export declare function createNatsHeaderCarrier(headers: NatsHeadersLike): HeaderCarrier;
|
|
7
|
+
//# sourceMappingURL=nats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nats.d.ts","sourceRoot":"","sources":["../../../../telemetry/nats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAK/E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNatsHeaderCarrier = createNatsHeaderCarrier;
|
|
4
|
+
function createNatsHeaderCarrier(headers) {
|
|
5
|
+
return {
|
|
6
|
+
get: (key) => headers.get(key),
|
|
7
|
+
set: (key, value) => headers.set(key, value),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../telemetry/result.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,IAAI,IAAI,CAc5C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configureErrorTraceId = configureErrorTraceId;
|
|
4
|
+
const api_1 = require("@opentelemetry/api");
|
|
5
|
+
const result_1 = require("@qlever-llc/result");
|
|
6
|
+
let traceIdGetterConfigured = false;
|
|
7
|
+
function configureErrorTraceId() {
|
|
8
|
+
if (traceIdGetterConfigured)
|
|
9
|
+
return;
|
|
10
|
+
traceIdGetterConfigured = true;
|
|
11
|
+
result_1.BaseError.traceIdGetter = () => {
|
|
12
|
+
const span = api_1.trace.getActiveSpan();
|
|
13
|
+
if (!span)
|
|
14
|
+
return undefined;
|
|
15
|
+
const spanContext = span.spanContext();
|
|
16
|
+
if (spanContext.traceId === "00000000000000000000000000000000") {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
return spanContext.traceId;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../telemetry/runtime.ts"],"names":[],"mappings":"AAsEA,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAKvD"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.initTelemetry = initTelemetry;
|
|
27
|
+
const env_ts_1 = require("./env.ts");
|
|
28
|
+
let initialized = false;
|
|
29
|
+
let provider;
|
|
30
|
+
async function loadTracingRuntime() {
|
|
31
|
+
const [traceNode, otlp, traceBase, resources, semantic] = await Promise.all([
|
|
32
|
+
Promise.resolve().then(() => __importStar(require("@opentelemetry/sdk-trace-node"))),
|
|
33
|
+
Promise.resolve().then(() => __importStar(require("@opentelemetry/exporter-trace-otlp-http"))),
|
|
34
|
+
Promise.resolve().then(() => __importStar(require("@opentelemetry/sdk-trace-base"))),
|
|
35
|
+
Promise.resolve().then(() => __importStar(require("@opentelemetry/resources"))),
|
|
36
|
+
Promise.resolve().then(() => __importStar(require("@opentelemetry/semantic-conventions"))),
|
|
37
|
+
]);
|
|
38
|
+
return {
|
|
39
|
+
NodeTracerProvider: traceNode.NodeTracerProvider,
|
|
40
|
+
OTLPTraceExporter: otlp.OTLPTraceExporter,
|
|
41
|
+
BatchSpanProcessor: traceBase.BatchSpanProcessor,
|
|
42
|
+
ConsoleSpanExporter: traceBase.ConsoleSpanExporter,
|
|
43
|
+
Resource: resources.Resource,
|
|
44
|
+
ATTR_SERVICE_NAME: semantic.ATTR_SERVICE_NAME,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async function initTracingRuntime(serviceName) {
|
|
48
|
+
const endpoint = (0, env_ts_1.getEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");
|
|
49
|
+
const consoleTracing = (0, env_ts_1.getEnv)("OTEL_TRACES_CONSOLE") === "true";
|
|
50
|
+
if (!endpoint && !consoleTracing) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const runtime = await loadTracingRuntime();
|
|
55
|
+
const spanProcessors = [];
|
|
56
|
+
if (endpoint) {
|
|
57
|
+
spanProcessors.push(new runtime.BatchSpanProcessor(new runtime.OTLPTraceExporter({ url: `${endpoint}/v1/traces` })));
|
|
58
|
+
}
|
|
59
|
+
else if (consoleTracing) {
|
|
60
|
+
spanProcessors.push(new runtime.BatchSpanProcessor(new runtime.ConsoleSpanExporter()));
|
|
61
|
+
}
|
|
62
|
+
provider = new runtime.NodeTracerProvider({
|
|
63
|
+
resource: new runtime.Resource({
|
|
64
|
+
[runtime.ATTR_SERVICE_NAME]: serviceName,
|
|
65
|
+
}),
|
|
66
|
+
...(spanProcessors.length > 0 ? { spanProcessors } : {}),
|
|
67
|
+
});
|
|
68
|
+
provider.register();
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
console.warn("Failed to initialize tracing runtime", error);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function initTelemetry(serviceName) {
|
|
75
|
+
if (initialized)
|
|
76
|
+
return;
|
|
77
|
+
initialized = true;
|
|
78
|
+
void initTracingRuntime(serviceName);
|
|
79
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Context, Span } from "@opentelemetry/api";
|
|
2
|
+
export declare function getTrellisTracer(): import("@opentelemetry/api").Tracer;
|
|
3
|
+
export declare function startClientSpan(method: string, subject: string): Span;
|
|
4
|
+
export declare function startServerSpan(method: string, subject: string, parentContext?: Context): Span;
|
|
5
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../../telemetry/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAMxD,wBAAgB,gBAAgB,wCAE/B;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CASrE;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,OAAO,GACtB,IAAI,CAaN"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTrellisTracer = getTrellisTracer;
|
|
4
|
+
exports.startClientSpan = startClientSpan;
|
|
5
|
+
exports.startServerSpan = startServerSpan;
|
|
6
|
+
const api_1 = require("@opentelemetry/api");
|
|
7
|
+
const core_ts_1 = require("./core.ts");
|
|
8
|
+
const TRELLIS_INSTRUMENTATION_SCOPE = "@qlever-llc/trellis";
|
|
9
|
+
function getTrellisTracer() {
|
|
10
|
+
return (0, core_ts_1.getTracer)(TRELLIS_INSTRUMENTATION_SCOPE);
|
|
11
|
+
}
|
|
12
|
+
function startClientSpan(method, subject) {
|
|
13
|
+
return getTrellisTracer().startSpan(`rpc.client.${method}`, {
|
|
14
|
+
kind: api_1.SpanKind.CLIENT,
|
|
15
|
+
attributes: {
|
|
16
|
+
"rpc.system": "nats",
|
|
17
|
+
"rpc.method": method,
|
|
18
|
+
"messaging.destination": subject,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function startServerSpan(method, subject, parentContext) {
|
|
23
|
+
return getTrellisTracer().startSpan(`rpc.server.${method}`, {
|
|
24
|
+
kind: api_1.SpanKind.SERVER,
|
|
25
|
+
attributes: {
|
|
26
|
+
"rpc.system": "nats",
|
|
27
|
+
"rpc.method": method,
|
|
28
|
+
"messaging.destination": subject,
|
|
29
|
+
},
|
|
30
|
+
}, parentContext);
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trellis.d.ts","sourceRoot":"","sources":["../../../../telemetry/trellis.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEhF,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAGrD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startServerSpan = exports.startClientSpan = exports.getTrellisTracer = void 0;
|
|
4
|
+
exports.initTracing = initTracing;
|
|
5
|
+
const result_ts_1 = require("./result.ts");
|
|
6
|
+
const runtime_ts_1 = require("./runtime.ts");
|
|
7
|
+
var trace_ts_1 = require("./trace.ts");
|
|
8
|
+
Object.defineProperty(exports, "getTrellisTracer", { enumerable: true, get: function () { return trace_ts_1.getTrellisTracer; } });
|
|
9
|
+
Object.defineProperty(exports, "startClientSpan", { enumerable: true, get: function () { return trace_ts_1.startClientSpan; } });
|
|
10
|
+
Object.defineProperty(exports, "startServerSpan", { enumerable: true, get: function () { return trace_ts_1.startServerSpan; } });
|
|
11
|
+
function initTracing(serviceName) {
|
|
12
|
+
(0, result_ts_1.configureErrorTraceId)();
|
|
13
|
+
(0, runtime_ts_1.initTelemetry)(serviceName);
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Object {
|
|
3
|
+
/**
|
|
4
|
+
* Determines whether an object has a property with the specified name.
|
|
5
|
+
* @param o An object.
|
|
6
|
+
* @param v A property name.
|
|
7
|
+
*/
|
|
8
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAeA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
4
|
+
if (!Object.hasOwn) {
|
|
5
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
6
|
+
value: function (object, property) {
|
|
7
|
+
if (object == null) {
|
|
8
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
9
|
+
}
|
|
10
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
11
|
+
},
|
|
12
|
+
configurable: true,
|
|
13
|
+
enumerable: false,
|
|
14
|
+
writable: true,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const OWNED_API: TrellisAPI;
|
|
2
|
+
export declare const API: {
|
|
3
|
+
readonly owned: TrellisAPI;
|
|
4
|
+
readonly used: TrellisAPI;
|
|
5
|
+
readonly trellis: TrellisAPI;
|
|
6
|
+
};
|
|
7
|
+
export type OwnedApi = typeof API.owned;
|
|
8
|
+
export type Api = typeof API.trellis;
|
|
9
|
+
export type ApiViews = typeof API;
|
|
10
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,YAoCA,CAAC;AAIvB,eAAO,MAAM,GAAG;;;;CAIN,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;AACxC,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,OAAO,CAAC;AACrC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API = exports.OWNED_API = void 0;
|
|
4
|
+
const trellis_contracts_1 = require("../../../contracts/mod.js");
|
|
5
|
+
const schemas_js_1 = require("./schemas.js");
|
|
6
|
+
exports.OWNED_API = {
|
|
7
|
+
rpc: {
|
|
8
|
+
"Activity.Get": {
|
|
9
|
+
subject: "rpc.v1.Activity.Get",
|
|
10
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.Get"].input),
|
|
11
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.Get"].output),
|
|
12
|
+
callerCapabilities: ["admin"],
|
|
13
|
+
errors: ["ValidationError", "UnexpectedError"],
|
|
14
|
+
},
|
|
15
|
+
"Activity.Health": {
|
|
16
|
+
subject: "rpc.v1.Activity.Health",
|
|
17
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.Health"].input),
|
|
18
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.Health"].output),
|
|
19
|
+
callerCapabilities: [],
|
|
20
|
+
errors: ["UnexpectedError"],
|
|
21
|
+
},
|
|
22
|
+
"Activity.List": {
|
|
23
|
+
subject: "rpc.v1.Activity.List",
|
|
24
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.List"].input),
|
|
25
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Activity.List"].output),
|
|
26
|
+
callerCapabilities: ["admin"],
|
|
27
|
+
errors: ["ValidationError", "UnexpectedError"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
operations: {},
|
|
31
|
+
events: {
|
|
32
|
+
"Activity.Recorded": {
|
|
33
|
+
subject: "events.v1.Activity.Recorded",
|
|
34
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Activity.Recorded"].event),
|
|
35
|
+
publishCapabilities: ["service:events:activity"],
|
|
36
|
+
subscribeCapabilities: ["service:events:activity"],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
subjects: {},
|
|
40
|
+
};
|
|
41
|
+
const EMPTY_API = { rpc: {}, operations: {}, events: {}, subjects: {} };
|
|
42
|
+
exports.API = {
|
|
43
|
+
owned: exports.OWNED_API,
|
|
44
|
+
used: EMPTY_API,
|
|
45
|
+
trellis: exports.OWNED_API,
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SdkContractModule, TrellisContractV1 } from "../../../contracts/mod.js";
|
|
2
|
+
import { API } from "./api.js";
|
|
3
|
+
export declare const CONTRACT_ID: "trellis.activity@v1";
|
|
4
|
+
export declare const CONTRACT_DIGEST: "8XMeFEPqJwnSMoVDShJ3C-S_7WXjeJMDftajM-GHBhg";
|
|
5
|
+
export declare const CONTRACT: TrellisContractV1;
|
|
6
|
+
export declare const activity: SdkContractModule<typeof CONTRACT_ID, typeof API.owned>;
|
|
7
|
+
export declare const use: any;
|
|
8
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAW,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,eAAO,MAAM,WAAW,uBAAiC,CAAC;AAC1D,eAAO,MAAM,eAAe,+CAAyD,CAAC;AACtF,eAAO,MAAM,QAAQ,EAAwxK,iBAAiB,CAAC;AA2B/zK,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CAqC5E,CAAC;AAEF,eAAO,MAAM,GAAG,KAAe,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.use = exports.activity = exports.CONTRACT = exports.CONTRACT_DIGEST = exports.CONTRACT_ID = void 0;
|
|
4
|
+
const api_js_1 = require("./api.js");
|
|
5
|
+
const CONTRACT_MODULE_METADATA = Symbol.for("../../../contracts/mod.js/contract-module");
|
|
6
|
+
exports.CONTRACT_ID = "trellis.activity@v1";
|
|
7
|
+
exports.CONTRACT_DIGEST = "8XMeFEPqJwnSMoVDShJ3C-S_7WXjeJMDftajM-GHBhg";
|
|
8
|
+
exports.CONTRACT = { "description": "Project authentication activity into queryable audit records.", "displayName": "Trellis Activity", "events": { "Activity.Recorded": { "capabilities": { "publish": ["service:events:activity"], "subscribe": ["service:events:activity"] }, "event": { "schema": "ActivityRecordedEvent" }, "subject": "events.v1.Activity.Recorded", "version": "v1" } }, "format": "trellis.contract.v1", "id": "trellis.activity@v1", "kind": "service", "resources": { "kv": { "activity": { "history": 1, "purpose": "Store normalized audit activity entries for the service projection.", "required": true, "ttlMs": 0 } } }, "rpc": { "Activity.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "ActivityGetRequest" }, "output": { "schema": "ActivityGetResponse" }, "subject": "rpc.v1.Activity.Get", "version": "v1" }, "Activity.Health": { "capabilities": { "call": [] }, "errors": [{ "type": "UnexpectedError" }], "input": { "schema": "HealthRequest" }, "output": { "schema": "HealthResponse" }, "subject": "rpc.v1.Activity.Health", "version": "v1" }, "Activity.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "ActivityListRequest" }, "output": { "schema": "ActivityListResponse" }, "subject": "rpc.v1.Activity.List", "version": "v1" } }, "schemas": { "ActivityGetRequest": { "additionalProperties": false, "properties": { "id": { "type": "string" } }, "required": ["id"], "type": "object" }, "ActivityGetResponse": { "additionalProperties": false, "properties": { "entry": { "additionalProperties": false, "properties": { "actor": { "type": "string" }, "id": { "type": "string" }, "kind": { "anyOf": [{ "const": "auth.connect", "type": "string" }, { "const": "auth.disconnect", "type": "string" }, { "const": "auth.session_revoked", "type": "string" }, { "const": "auth.connection_kicked", "type": "string" }] }, "metadata": { "patternProperties": { "^.*$": {} }, "type": "object" }, "occurredAt": { "format": "date-time", "type": "string" }, "principalId": { "type": "string" }, "principalLabel": { "type": "string" }, "principalOrigin": { "type": "string" }, "sessionKey": { "type": "string" }, "summary": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["id", "kind", "occurredAt", "principalOrigin", "principalId", "principalLabel", "summary"], "type": "object" } }, "required": ["entry"], "type": "object" }, "ActivityListRequest": { "additionalProperties": false, "properties": { "kind": { "anyOf": [{ "const": "auth.connect", "type": "string" }, { "const": "auth.disconnect", "type": "string" }, { "const": "auth.session_revoked", "type": "string" }, { "const": "auth.connection_kicked", "type": "string" }] }, "limit": { "maximum": 200, "minimum": 1, "type": "integer" } }, "type": "object" }, "ActivityListResponse": { "additionalProperties": false, "properties": { "entries": { "items": { "additionalProperties": false, "properties": { "actor": { "type": "string" }, "id": { "type": "string" }, "kind": { "anyOf": [{ "const": "auth.connect", "type": "string" }, { "const": "auth.disconnect", "type": "string" }, { "const": "auth.session_revoked", "type": "string" }, { "const": "auth.connection_kicked", "type": "string" }] }, "metadata": { "patternProperties": { "^.*$": {} }, "type": "object" }, "occurredAt": { "format": "date-time", "type": "string" }, "principalId": { "type": "string" }, "principalLabel": { "type": "string" }, "principalOrigin": { "type": "string" }, "sessionKey": { "type": "string" }, "summary": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["id", "kind", "occurredAt", "principalOrigin", "principalId", "principalLabel", "summary"], "type": "object" }, "type": "array" } }, "required": ["entries"], "type": "object" }, "ActivityRecordedEvent": { "additionalProperties": false, "properties": { "actor": { "type": "string" }, "header": { "additionalProperties": false, "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" }, "id": { "type": "string" }, "kind": { "anyOf": [{ "const": "auth.connect", "type": "string" }, { "const": "auth.disconnect", "type": "string" }, { "const": "auth.session_revoked", "type": "string" }, { "const": "auth.connection_kicked", "type": "string" }] }, "metadata": { "patternProperties": { "^.*$": {} }, "type": "object" }, "occurredAt": { "format": "date-time", "type": "string" }, "principalId": { "type": "string" }, "principalLabel": { "type": "string" }, "principalOrigin": { "type": "string" }, "sessionKey": { "type": "string" }, "summary": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["header", "id", "kind", "occurredAt", "principalOrigin", "principalId", "principalLabel", "summary"], "type": "object" }, "HealthRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "HealthResponse": { "additionalProperties": false, "properties": { "checks": { "items": { "additionalProperties": false, "properties": { "error": { "type": "string" }, "latencyMs": { "type": "number" }, "name": { "type": "string" }, "status": { "anyOf": [{ "const": "ok", "type": "string" }, { "const": "failed", "type": "string" }] } }, "required": ["name", "status", "latencyMs"], "type": "object" }, "type": "array" }, "service": { "type": "string" }, "status": { "anyOf": [{ "const": "healthy", "type": "string" }, { "const": "unhealthy", "type": "string" }, { "const": "degraded", "type": "string" }] }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["status", "service", "timestamp", "checks"], "type": "object" } }, "uses": { "auth": { "contract": "trellis.auth@v1", "events": { "subscribe": ["Auth.Connect", "Auth.ConnectionKicked", "Auth.Disconnect", "Auth.SessionRevoked"] }, "rpc": { "call": ["Auth.Me", "Auth.Logout", "Auth.RenewBindingToken"] } }, "core": { "contract": "trellis.core@v1", "rpc": { "call": ["Trellis.Bindings.Get", "Trellis.Catalog"] } } } };
|
|
9
|
+
function assertSelectedKeysExist(kind, keys, api) {
|
|
10
|
+
if (!keys) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
for (const key of keys) {
|
|
14
|
+
if (!Object.hasOwn(api, key)) {
|
|
15
|
+
throw new Error(`Contract '${exports.CONTRACT_ID}' does not expose ${kind} key '${key}'`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function assertValidUseSpec(spec) {
|
|
20
|
+
assertSelectedKeysExist("rpc", spec.rpc?.call, api_js_1.API.owned.rpc);
|
|
21
|
+
assertSelectedKeysExist("operations", spec.operations?.call, api_js_1.API.owned.operations);
|
|
22
|
+
assertSelectedKeysExist("events", spec.events?.publish, api_js_1.API.owned.events);
|
|
23
|
+
assertSelectedKeysExist("events", spec.events?.subscribe, api_js_1.API.owned.events);
|
|
24
|
+
assertSelectedKeysExist("subjects", spec.subjects?.publish, api_js_1.API.owned.subjects);
|
|
25
|
+
assertSelectedKeysExist("subjects", spec.subjects?.subscribe, api_js_1.API.owned.subjects);
|
|
26
|
+
}
|
|
27
|
+
exports.activity = {
|
|
28
|
+
CONTRACT_ID: exports.CONTRACT_ID,
|
|
29
|
+
CONTRACT_DIGEST: exports.CONTRACT_DIGEST,
|
|
30
|
+
CONTRACT: exports.CONTRACT,
|
|
31
|
+
API: api_js_1.API,
|
|
32
|
+
use: ((spec) => {
|
|
33
|
+
assertValidUseSpec(spec);
|
|
34
|
+
const dependencyUse = {
|
|
35
|
+
contract: exports.CONTRACT_ID,
|
|
36
|
+
...(spec.rpc?.call ? { rpc: { call: [...spec.rpc.call] } } : {}),
|
|
37
|
+
...(spec.operations?.call ? { operations: { call: [...spec.operations.call] } } : {}),
|
|
38
|
+
...((spec.events?.publish || spec.events?.subscribe)
|
|
39
|
+
? {
|
|
40
|
+
events: {
|
|
41
|
+
...(spec.events.publish ? { publish: [...spec.events.publish] } : {}),
|
|
42
|
+
...(spec.events.subscribe ? { subscribe: [...spec.events.subscribe] } : {}),
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
: {}),
|
|
46
|
+
...((spec.subjects?.publish || spec.subjects?.subscribe)
|
|
47
|
+
? {
|
|
48
|
+
subjects: {
|
|
49
|
+
...(spec.subjects.publish ? { publish: [...spec.subjects.publish] } : {}),
|
|
50
|
+
...(spec.subjects.subscribe ? { subscribe: [...spec.subjects.subscribe] } : {}),
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
: {}),
|
|
54
|
+
};
|
|
55
|
+
Object.defineProperty(dependencyUse, CONTRACT_MODULE_METADATA, {
|
|
56
|
+
value: exports.activity,
|
|
57
|
+
enumerable: false,
|
|
58
|
+
});
|
|
59
|
+
return dependencyUse;
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
exports.use = exports.activity.use;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./_dnt.polyfills.js";
|
|
2
|
+
export { API, OWNED_API } from "./api.js";
|
|
3
|
+
export type { Api, ApiViews, OwnedApi } from "./api.js";
|
|
4
|
+
export * from "./types.js";
|
|
5
|
+
export { SCHEMAS } from "./schemas.js";
|
|
6
|
+
export { CONTRACT, CONTRACT_DIGEST, CONTRACT_ID, use, activity } from "./contract.js";
|
|
7
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.activity = exports.use = exports.CONTRACT_ID = exports.CONTRACT_DIGEST = exports.CONTRACT = exports.SCHEMAS = exports.OWNED_API = exports.API = void 0;
|
|
18
|
+
require("./_dnt.polyfills.js");
|
|
19
|
+
var api_js_1 = require("./api.js");
|
|
20
|
+
Object.defineProperty(exports, "API", { enumerable: true, get: function () { return api_js_1.API; } });
|
|
21
|
+
Object.defineProperty(exports, "OWNED_API", { enumerable: true, get: function () { return api_js_1.OWNED_API; } });
|
|
22
|
+
__exportStar(require("./types.js"), exports);
|
|
23
|
+
var schemas_js_1 = require("./schemas.js");
|
|
24
|
+
Object.defineProperty(exports, "SCHEMAS", { enumerable: true, get: function () { return schemas_js_1.SCHEMAS; } });
|
|
25
|
+
var contract_js_1 = require("./contract.js");
|
|
26
|
+
Object.defineProperty(exports, "CONTRACT", { enumerable: true, get: function () { return contract_js_1.CONTRACT; } });
|
|
27
|
+
Object.defineProperty(exports, "CONTRACT_DIGEST", { enumerable: true, get: function () { return contract_js_1.CONTRACT_DIGEST; } });
|
|
28
|
+
Object.defineProperty(exports, "CONTRACT_ID", { enumerable: true, get: function () { return contract_js_1.CONTRACT_ID; } });
|
|
29
|
+
Object.defineProperty(exports, "use", { enumerable: true, get: function () { return contract_js_1.use; } });
|
|
30
|
+
Object.defineProperty(exports, "activity", { enumerable: true, get: function () { return contract_js_1.activity; } });
|