@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,96 @@
|
|
|
1
|
+
export declare const CONTRACT_ID: "trellis.activity@v1";
|
|
2
|
+
export declare const CONTRACT_DIGEST: "8XMeFEPqJwnSMoVDShJ3C-S_7WXjeJMDftajM-GHBhg";
|
|
3
|
+
export type ActivityGetInput = {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export type ActivityGetOutput = {
|
|
7
|
+
entry: {
|
|
8
|
+
actor?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
|
|
11
|
+
metadata?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
occurredAt: string;
|
|
15
|
+
principalId: string;
|
|
16
|
+
principalLabel: string;
|
|
17
|
+
principalOrigin: string;
|
|
18
|
+
sessionKey?: string;
|
|
19
|
+
summary: string;
|
|
20
|
+
userNkey?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type ActivityHealthInput = {};
|
|
24
|
+
export type ActivityHealthOutput = {
|
|
25
|
+
checks: Array<{
|
|
26
|
+
error?: string;
|
|
27
|
+
latencyMs: number;
|
|
28
|
+
name: string;
|
|
29
|
+
status: ("ok" | "failed");
|
|
30
|
+
}>;
|
|
31
|
+
service: string;
|
|
32
|
+
status: ("healthy" | "unhealthy" | "degraded");
|
|
33
|
+
timestamp: string;
|
|
34
|
+
};
|
|
35
|
+
export type ActivityListInput = {
|
|
36
|
+
kind?: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
|
|
37
|
+
limit?: number;
|
|
38
|
+
};
|
|
39
|
+
export type ActivityListOutput = {
|
|
40
|
+
entries: Array<{
|
|
41
|
+
actor?: string;
|
|
42
|
+
id: string;
|
|
43
|
+
kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
|
|
44
|
+
metadata?: {
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
occurredAt: string;
|
|
48
|
+
principalId: string;
|
|
49
|
+
principalLabel: string;
|
|
50
|
+
principalOrigin: string;
|
|
51
|
+
sessionKey?: string;
|
|
52
|
+
summary: string;
|
|
53
|
+
userNkey?: string;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
56
|
+
export type ActivityRecordedEvent = {
|
|
57
|
+
actor?: string;
|
|
58
|
+
header: {
|
|
59
|
+
id: string;
|
|
60
|
+
time: string;
|
|
61
|
+
};
|
|
62
|
+
id: string;
|
|
63
|
+
kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
|
|
64
|
+
metadata?: {
|
|
65
|
+
[k: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
occurredAt: string;
|
|
68
|
+
principalId: string;
|
|
69
|
+
principalLabel: string;
|
|
70
|
+
principalOrigin: string;
|
|
71
|
+
sessionKey?: string;
|
|
72
|
+
summary: string;
|
|
73
|
+
userNkey?: string;
|
|
74
|
+
};
|
|
75
|
+
export interface RpcMap {
|
|
76
|
+
"Activity.Get": {
|
|
77
|
+
input: ActivityGetInput;
|
|
78
|
+
output: ActivityGetOutput;
|
|
79
|
+
};
|
|
80
|
+
"Activity.Health": {
|
|
81
|
+
input: ActivityHealthInput;
|
|
82
|
+
output: ActivityHealthOutput;
|
|
83
|
+
};
|
|
84
|
+
"Activity.List": {
|
|
85
|
+
input: ActivityListInput;
|
|
86
|
+
output: ActivityListOutput;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface EventMap {
|
|
90
|
+
"Activity.Recorded": {
|
|
91
|
+
event: ActivityRecordedEvent;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export interface SubjectMap {
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTRACT_DIGEST = exports.CONTRACT_ID = void 0;
|
|
4
|
+
// Generated from ./generated/contracts/manifests/trellis.activity@v1.json
|
|
5
|
+
exports.CONTRACT_ID = "trellis.activity@v1";
|
|
6
|
+
exports.CONTRACT_DIGEST = "8XMeFEPqJwnSMoVDShJ3C-S_7WXjeJMDftajM-GHBhg";
|
|
@@ -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,YA2VA,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,357 @@
|
|
|
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
|
+
"Auth.ActivateWorkload": {
|
|
9
|
+
subject: "rpc.v1.Auth.ActivateWorkload",
|
|
10
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ActivateWorkload"].input),
|
|
11
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ActivateWorkload"].output),
|
|
12
|
+
callerCapabilities: [],
|
|
13
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
14
|
+
},
|
|
15
|
+
"Auth.ClearLoginPortalSelection": {
|
|
16
|
+
subject: "rpc.v1.Auth.ClearLoginPortalSelection",
|
|
17
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ClearLoginPortalSelection"].input),
|
|
18
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ClearLoginPortalSelection"].output),
|
|
19
|
+
callerCapabilities: ["admin"],
|
|
20
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
21
|
+
},
|
|
22
|
+
"Auth.ClearWorkloadPortalSelection": {
|
|
23
|
+
subject: "rpc.v1.Auth.ClearWorkloadPortalSelection",
|
|
24
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].input),
|
|
25
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].output),
|
|
26
|
+
callerCapabilities: ["admin"],
|
|
27
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
28
|
+
},
|
|
29
|
+
"Auth.CreatePortal": {
|
|
30
|
+
subject: "rpc.v1.Auth.CreatePortal",
|
|
31
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.CreatePortal"].input),
|
|
32
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.CreatePortal"].output),
|
|
33
|
+
callerCapabilities: ["admin"],
|
|
34
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
35
|
+
},
|
|
36
|
+
"Auth.CreateWorkloadProfile": {
|
|
37
|
+
subject: "rpc.v1.Auth.CreateWorkloadProfile",
|
|
38
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.CreateWorkloadProfile"].input),
|
|
39
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.CreateWorkloadProfile"].output),
|
|
40
|
+
callerCapabilities: ["admin"],
|
|
41
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
42
|
+
},
|
|
43
|
+
"Auth.DecideWorkloadActivationReview": {
|
|
44
|
+
subject: "rpc.v1.Auth.DecideWorkloadActivationReview",
|
|
45
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].input),
|
|
46
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].output),
|
|
47
|
+
callerCapabilities: ["admin", "workload.review"],
|
|
48
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
49
|
+
},
|
|
50
|
+
"Auth.DisablePortal": {
|
|
51
|
+
subject: "rpc.v1.Auth.DisablePortal",
|
|
52
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisablePortal"].input),
|
|
53
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisablePortal"].output),
|
|
54
|
+
callerCapabilities: ["admin"],
|
|
55
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
56
|
+
},
|
|
57
|
+
"Auth.DisableWorkloadInstance": {
|
|
58
|
+
subject: "rpc.v1.Auth.DisableWorkloadInstance",
|
|
59
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisableWorkloadInstance"].input),
|
|
60
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisableWorkloadInstance"].output),
|
|
61
|
+
callerCapabilities: ["admin"],
|
|
62
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
63
|
+
},
|
|
64
|
+
"Auth.DisableWorkloadProfile": {
|
|
65
|
+
subject: "rpc.v1.Auth.DisableWorkloadProfile",
|
|
66
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisableWorkloadProfile"].input),
|
|
67
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.DisableWorkloadProfile"].output),
|
|
68
|
+
callerCapabilities: ["admin"],
|
|
69
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
70
|
+
},
|
|
71
|
+
"Auth.GetInstalledContract": {
|
|
72
|
+
subject: "rpc.v1.Auth.GetInstalledContract",
|
|
73
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetInstalledContract"].input),
|
|
74
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetInstalledContract"].output),
|
|
75
|
+
callerCapabilities: ["admin"],
|
|
76
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
77
|
+
},
|
|
78
|
+
"Auth.GetLoginPortalDefault": {
|
|
79
|
+
subject: "rpc.v1.Auth.GetLoginPortalDefault",
|
|
80
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetLoginPortalDefault"].input),
|
|
81
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetLoginPortalDefault"].output),
|
|
82
|
+
callerCapabilities: ["admin"],
|
|
83
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
84
|
+
},
|
|
85
|
+
"Auth.GetWorkloadActivationStatus": {
|
|
86
|
+
subject: "rpc.v1.Auth.GetWorkloadActivationStatus",
|
|
87
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].input),
|
|
88
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].output),
|
|
89
|
+
callerCapabilities: [],
|
|
90
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
91
|
+
},
|
|
92
|
+
"Auth.GetWorkloadConnectInfo": {
|
|
93
|
+
subject: "rpc.v1.Auth.GetWorkloadConnectInfo",
|
|
94
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].input),
|
|
95
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].output),
|
|
96
|
+
callerCapabilities: [],
|
|
97
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
98
|
+
},
|
|
99
|
+
"Auth.GetWorkloadPortalDefault": {
|
|
100
|
+
subject: "rpc.v1.Auth.GetWorkloadPortalDefault",
|
|
101
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].input),
|
|
102
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].output),
|
|
103
|
+
callerCapabilities: ["admin"],
|
|
104
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
105
|
+
},
|
|
106
|
+
"Auth.Health": {
|
|
107
|
+
subject: "rpc.v1.Auth.Health",
|
|
108
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Health"].input),
|
|
109
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Health"].output),
|
|
110
|
+
callerCapabilities: [],
|
|
111
|
+
errors: ["UnexpectedError"],
|
|
112
|
+
},
|
|
113
|
+
"Auth.InstallService": {
|
|
114
|
+
subject: "rpc.v1.Auth.InstallService",
|
|
115
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.InstallService"].input),
|
|
116
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.InstallService"].output),
|
|
117
|
+
callerCapabilities: ["admin"],
|
|
118
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
119
|
+
},
|
|
120
|
+
"Auth.KickConnection": {
|
|
121
|
+
subject: "rpc.v1.Auth.KickConnection",
|
|
122
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.KickConnection"].input),
|
|
123
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.KickConnection"].output),
|
|
124
|
+
callerCapabilities: ["admin"],
|
|
125
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
126
|
+
},
|
|
127
|
+
"Auth.ListApprovals": {
|
|
128
|
+
subject: "rpc.v1.Auth.ListApprovals",
|
|
129
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListApprovals"].input),
|
|
130
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListApprovals"].output),
|
|
131
|
+
callerCapabilities: [],
|
|
132
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
133
|
+
},
|
|
134
|
+
"Auth.ListConnections": {
|
|
135
|
+
subject: "rpc.v1.Auth.ListConnections",
|
|
136
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListConnections"].input),
|
|
137
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListConnections"].output),
|
|
138
|
+
callerCapabilities: ["admin"],
|
|
139
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
140
|
+
},
|
|
141
|
+
"Auth.ListInstalledContracts": {
|
|
142
|
+
subject: "rpc.v1.Auth.ListInstalledContracts",
|
|
143
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListInstalledContracts"].input),
|
|
144
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListInstalledContracts"].output),
|
|
145
|
+
callerCapabilities: ["admin"],
|
|
146
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
147
|
+
},
|
|
148
|
+
"Auth.ListLoginPortalSelections": {
|
|
149
|
+
subject: "rpc.v1.Auth.ListLoginPortalSelections",
|
|
150
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListLoginPortalSelections"].input),
|
|
151
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListLoginPortalSelections"].output),
|
|
152
|
+
callerCapabilities: ["admin"],
|
|
153
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
154
|
+
},
|
|
155
|
+
"Auth.ListPortals": {
|
|
156
|
+
subject: "rpc.v1.Auth.ListPortals",
|
|
157
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListPortals"].input),
|
|
158
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListPortals"].output),
|
|
159
|
+
callerCapabilities: ["admin"],
|
|
160
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
161
|
+
},
|
|
162
|
+
"Auth.ListServices": {
|
|
163
|
+
subject: "rpc.v1.Auth.ListServices",
|
|
164
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListServices"].input),
|
|
165
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListServices"].output),
|
|
166
|
+
callerCapabilities: ["admin"],
|
|
167
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
168
|
+
},
|
|
169
|
+
"Auth.ListSessions": {
|
|
170
|
+
subject: "rpc.v1.Auth.ListSessions",
|
|
171
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListSessions"].input),
|
|
172
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListSessions"].output),
|
|
173
|
+
callerCapabilities: ["admin"],
|
|
174
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
175
|
+
},
|
|
176
|
+
"Auth.ListUsers": {
|
|
177
|
+
subject: "rpc.v1.Auth.ListUsers",
|
|
178
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListUsers"].input),
|
|
179
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListUsers"].output),
|
|
180
|
+
callerCapabilities: ["admin"],
|
|
181
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
182
|
+
},
|
|
183
|
+
"Auth.ListWorkloadActivationReviews": {
|
|
184
|
+
subject: "rpc.v1.Auth.ListWorkloadActivationReviews",
|
|
185
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].input),
|
|
186
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].output),
|
|
187
|
+
callerCapabilities: ["admin"],
|
|
188
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
189
|
+
},
|
|
190
|
+
"Auth.ListWorkloadActivations": {
|
|
191
|
+
subject: "rpc.v1.Auth.ListWorkloadActivations",
|
|
192
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadActivations"].input),
|
|
193
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadActivations"].output),
|
|
194
|
+
callerCapabilities: ["admin"],
|
|
195
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
196
|
+
},
|
|
197
|
+
"Auth.ListWorkloadInstances": {
|
|
198
|
+
subject: "rpc.v1.Auth.ListWorkloadInstances",
|
|
199
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadInstances"].input),
|
|
200
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadInstances"].output),
|
|
201
|
+
callerCapabilities: ["admin"],
|
|
202
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
203
|
+
},
|
|
204
|
+
"Auth.ListWorkloadPortalSelections": {
|
|
205
|
+
subject: "rpc.v1.Auth.ListWorkloadPortalSelections",
|
|
206
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].input),
|
|
207
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].output),
|
|
208
|
+
callerCapabilities: ["admin"],
|
|
209
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
210
|
+
},
|
|
211
|
+
"Auth.ListWorkloadProfiles": {
|
|
212
|
+
subject: "rpc.v1.Auth.ListWorkloadProfiles",
|
|
213
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadProfiles"].input),
|
|
214
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ListWorkloadProfiles"].output),
|
|
215
|
+
callerCapabilities: ["admin"],
|
|
216
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
217
|
+
},
|
|
218
|
+
"Auth.Logout": {
|
|
219
|
+
subject: "rpc.v1.Auth.Logout",
|
|
220
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Logout"].input),
|
|
221
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Logout"].output),
|
|
222
|
+
callerCapabilities: [],
|
|
223
|
+
errors: ["AuthError", "UnexpectedError"],
|
|
224
|
+
},
|
|
225
|
+
"Auth.Me": {
|
|
226
|
+
subject: "rpc.v1.Auth.Me",
|
|
227
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Me"].input),
|
|
228
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.Me"].output),
|
|
229
|
+
callerCapabilities: [],
|
|
230
|
+
errors: ["AuthError", "UnexpectedError"],
|
|
231
|
+
},
|
|
232
|
+
"Auth.ProvisionWorkloadInstance": {
|
|
233
|
+
subject: "rpc.v1.Auth.ProvisionWorkloadInstance",
|
|
234
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].input),
|
|
235
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].output),
|
|
236
|
+
callerCapabilities: ["admin"],
|
|
237
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
238
|
+
},
|
|
239
|
+
"Auth.RenewBindingToken": {
|
|
240
|
+
subject: "rpc.v1.Auth.RenewBindingToken",
|
|
241
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RenewBindingToken"].input),
|
|
242
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RenewBindingToken"].output),
|
|
243
|
+
callerCapabilities: [],
|
|
244
|
+
errors: ["AuthError", "UnexpectedError"],
|
|
245
|
+
},
|
|
246
|
+
"Auth.RevokeApproval": {
|
|
247
|
+
subject: "rpc.v1.Auth.RevokeApproval",
|
|
248
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeApproval"].input),
|
|
249
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeApproval"].output),
|
|
250
|
+
callerCapabilities: [],
|
|
251
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
252
|
+
},
|
|
253
|
+
"Auth.RevokeSession": {
|
|
254
|
+
subject: "rpc.v1.Auth.RevokeSession",
|
|
255
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeSession"].input),
|
|
256
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeSession"].output),
|
|
257
|
+
callerCapabilities: ["admin"],
|
|
258
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
259
|
+
},
|
|
260
|
+
"Auth.RevokeWorkloadActivation": {
|
|
261
|
+
subject: "rpc.v1.Auth.RevokeWorkloadActivation",
|
|
262
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].input),
|
|
263
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].output),
|
|
264
|
+
callerCapabilities: ["admin"],
|
|
265
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
266
|
+
},
|
|
267
|
+
"Auth.SetLoginPortalDefault": {
|
|
268
|
+
subject: "rpc.v1.Auth.SetLoginPortalDefault",
|
|
269
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetLoginPortalDefault"].input),
|
|
270
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetLoginPortalDefault"].output),
|
|
271
|
+
callerCapabilities: ["admin"],
|
|
272
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
273
|
+
},
|
|
274
|
+
"Auth.SetLoginPortalSelection": {
|
|
275
|
+
subject: "rpc.v1.Auth.SetLoginPortalSelection",
|
|
276
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetLoginPortalSelection"].input),
|
|
277
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetLoginPortalSelection"].output),
|
|
278
|
+
callerCapabilities: ["admin"],
|
|
279
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
280
|
+
},
|
|
281
|
+
"Auth.SetWorkloadPortalDefault": {
|
|
282
|
+
subject: "rpc.v1.Auth.SetWorkloadPortalDefault",
|
|
283
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].input),
|
|
284
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].output),
|
|
285
|
+
callerCapabilities: ["admin"],
|
|
286
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
287
|
+
},
|
|
288
|
+
"Auth.SetWorkloadPortalSelection": {
|
|
289
|
+
subject: "rpc.v1.Auth.SetWorkloadPortalSelection",
|
|
290
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].input),
|
|
291
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].output),
|
|
292
|
+
callerCapabilities: ["admin"],
|
|
293
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
294
|
+
},
|
|
295
|
+
"Auth.UpdateUser": {
|
|
296
|
+
subject: "rpc.v1.Auth.UpdateUser",
|
|
297
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.UpdateUser"].input),
|
|
298
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.UpdateUser"].output),
|
|
299
|
+
callerCapabilities: ["admin"],
|
|
300
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
301
|
+
},
|
|
302
|
+
"Auth.UpgradeServiceContract": {
|
|
303
|
+
subject: "rpc.v1.Auth.UpgradeServiceContract",
|
|
304
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.UpgradeServiceContract"].input),
|
|
305
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.UpgradeServiceContract"].output),
|
|
306
|
+
callerCapabilities: ["admin"],
|
|
307
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
308
|
+
},
|
|
309
|
+
"Auth.ValidateRequest": {
|
|
310
|
+
subject: "rpc.v1.Auth.ValidateRequest",
|
|
311
|
+
input: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ValidateRequest"].input),
|
|
312
|
+
output: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.rpc["Auth.ValidateRequest"].output),
|
|
313
|
+
callerCapabilities: ["service"],
|
|
314
|
+
errors: ["AuthError", "ValidationError", "UnexpectedError"],
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
operations: {},
|
|
318
|
+
events: {
|
|
319
|
+
"Auth.Connect": {
|
|
320
|
+
subject: "events.v1.Auth.Connect",
|
|
321
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Auth.Connect"].event),
|
|
322
|
+
publishCapabilities: ["service:events:auth"],
|
|
323
|
+
subscribeCapabilities: ["service:events:auth"],
|
|
324
|
+
},
|
|
325
|
+
"Auth.ConnectionKicked": {
|
|
326
|
+
subject: "events.v1.Auth.ConnectionKicked",
|
|
327
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Auth.ConnectionKicked"].event),
|
|
328
|
+
publishCapabilities: ["service:events:auth"],
|
|
329
|
+
subscribeCapabilities: ["service:events:auth"],
|
|
330
|
+
},
|
|
331
|
+
"Auth.Disconnect": {
|
|
332
|
+
subject: "events.v1.Auth.Disconnect",
|
|
333
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Auth.Disconnect"].event),
|
|
334
|
+
publishCapabilities: ["service:events:auth"],
|
|
335
|
+
subscribeCapabilities: ["service:events:auth"],
|
|
336
|
+
},
|
|
337
|
+
"Auth.SessionRevoked": {
|
|
338
|
+
subject: "events.v1.Auth.SessionRevoked",
|
|
339
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Auth.SessionRevoked"].event),
|
|
340
|
+
publishCapabilities: ["service:events:auth"],
|
|
341
|
+
subscribeCapabilities: ["service:events:auth"],
|
|
342
|
+
},
|
|
343
|
+
"Auth.WorkloadActivationReviewRequested": {
|
|
344
|
+
subject: "events.v1.Auth.WorkloadActivationReviewRequested",
|
|
345
|
+
event: (0, trellis_contracts_1.schema)(schemas_js_1.SCHEMAS.events["Auth.WorkloadActivationReviewRequested"].event),
|
|
346
|
+
publishCapabilities: ["service:events:auth"],
|
|
347
|
+
subscribeCapabilities: ["workload.review"],
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
subjects: {},
|
|
351
|
+
};
|
|
352
|
+
const EMPTY_API = { rpc: {}, operations: {}, events: {}, subjects: {} };
|
|
353
|
+
exports.API = {
|
|
354
|
+
owned: exports.OWNED_API,
|
|
355
|
+
used: EMPTY_API,
|
|
356
|
+
trellis: exports.OWNED_API,
|
|
357
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ContractDependencyUse, SdkContractModule, TrellisContractV1, UseSpec } from "../../../contracts/mod.js";
|
|
2
|
+
import { API } from "./api.js";
|
|
3
|
+
export declare const CONTRACT_ID: "trellis.auth@v1";
|
|
4
|
+
export declare const CONTRACT_DIGEST: "PPC-QGjAoN2EdQhzlPGXvJxj7Ilj7Ksx3OAt2nGvKlE";
|
|
5
|
+
export declare const CONTRACT: TrellisContractV1;
|
|
6
|
+
declare const DEFAULT_AUTH_RPC_CALL: readonly ["Auth.Me", "Auth.Logout", "Auth.RenewBindingToken"];
|
|
7
|
+
type AuthOwnedApi = typeof API.owned;
|
|
8
|
+
type AuthUseSpec = UseSpec<AuthOwnedApi>;
|
|
9
|
+
type DefaultAuthRpcCall = typeof DEFAULT_AUTH_RPC_CALL;
|
|
10
|
+
type WithDefaultAuthRpcCall<TSpec extends AuthUseSpec | undefined> = TSpec extends {
|
|
11
|
+
rpc?: {
|
|
12
|
+
call?: infer TCall extends readonly string[];
|
|
13
|
+
};
|
|
14
|
+
} ? readonly [...DefaultAuthRpcCall, ...TCall] : DefaultAuthRpcCall;
|
|
15
|
+
type WithDefaultAuthUseSpec<TSpec extends AuthUseSpec | undefined> = (TSpec extends AuthUseSpec ? Omit<TSpec, "rpc"> : {}) & {
|
|
16
|
+
rpc: {
|
|
17
|
+
call: WithDefaultAuthRpcCall<TSpec>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type AuthUseDefaultsFn = <const TSpec extends AuthUseSpec | undefined = undefined>(spec?: TSpec) => ContractDependencyUse<typeof CONTRACT_ID, AuthOwnedApi, WithDefaultAuthUseSpec<TSpec>>;
|
|
21
|
+
type AuthModule = SdkContractModule<typeof CONTRACT_ID, typeof API.owned> & {
|
|
22
|
+
useDefaults: AuthUseDefaultsFn;
|
|
23
|
+
};
|
|
24
|
+
export declare const auth: AuthModule;
|
|
25
|
+
export declare const use: any;
|
|
26
|
+
export declare const useDefaults: any;
|
|
27
|
+
export {};
|
|
28
|
+
//# 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,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC1H,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,eAAO,MAAM,WAAW,mBAA6B,CAAC;AACtD,eAAO,MAAM,eAAe,+CAAyD,CAAC;AACtF,eAAO,MAAM,QAAQ,EAAq+1E,iBAAiB,CAAC;AA2B5g2E,QAAA,MAAM,qBAAqB,+DAIjB,CAAC;AAEX,KAAK,YAAY,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;AACrC,KAAK,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACzC,KAAK,kBAAkB,GAAG,OAAO,qBAAqB,CAAC;AACvD,KAAK,sBAAsB,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,IAC/D,KAAK,SAAS;IAAE,GAAG,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,KAAK,SAAS,SAAS,MAAM,EAAE,CAAA;KAAE,CAAA;CAAE,GACpE,SAAS,CAAC,GAAG,kBAAkB,EAAE,GAAG,KAAK,CAAC,GAC1C,kBAAkB,CAAC;AACzB,KAAK,sBAAsB,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,IAC/D,CAAC,KAAK,SAAS,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG;IACtD,GAAG,EAAE;QACH,IAAI,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;KACrC,CAAC;CACH,CAAC;AACJ,KAAK,iBAAiB,GAAG,CACvB,KAAK,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EACvD,IAAI,CAAC,EAAE,KAAK,KAAK,qBAAqB,CACtC,OAAO,WAAW,EAClB,YAAY,EACZ,sBAAsB,CAAC,KAAK,CAAC,CAC9B,CAAC;AACF,KAAK,UAAU,GAAG,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG;IAC1E,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAmBF,eAAO,MAAM,IAAI,EAAE,UAwClB,CAAC;AAEF,eAAO,MAAM,GAAG,KAAW,CAAC;AAC5B,eAAO,MAAM,WAAW,KAAmB,CAAC"}
|