@qlever-llc/trellis 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/esm/_dnt.polyfills.d.ts +11 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +14 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/auth/browser/login.d.ts +27 -0
- package/esm/auth/browser/login.d.ts.map +1 -0
- package/esm/auth/browser/login.js +94 -0
- package/esm/auth/browser/portal.d.ts +11 -0
- package/esm/auth/browser/portal.d.ts.map +1 -0
- package/esm/auth/browser/portal.js +33 -0
- package/esm/auth/browser/session.d.ts +19 -0
- package/esm/auth/browser/session.d.ts.map +1 -0
- package/esm/auth/browser/session.js +65 -0
- package/esm/auth/browser/storage.d.ts +12 -0
- package/esm/auth/browser/storage.d.ts.map +1 -0
- package/esm/auth/browser/storage.js +61 -0
- package/esm/auth/browser.d.ts +13 -0
- package/esm/auth/browser.d.ts.map +1 -0
- package/esm/auth/browser.js +11 -0
- package/esm/auth/keys.d.ts +5 -0
- package/esm/auth/keys.d.ts.map +1 -0
- package/esm/auth/keys.js +50 -0
- package/esm/auth/mod.d.ts +18 -0
- package/esm/auth/mod.d.ts.map +1 -0
- package/esm/auth/mod.js +17 -0
- package/esm/auth/proof.d.ts +9 -0
- package/esm/auth/proof.d.ts.map +1 -0
- package/esm/auth/proof.js +43 -0
- package/esm/auth/protocol.d.ts +1212 -0
- package/esm/auth/protocol.d.ts.map +1 -0
- package/esm/auth/protocol.js +682 -0
- package/esm/auth/schemas.d.ts +93 -0
- package/esm/auth/schemas.d.ts.map +1 -0
- package/esm/auth/schemas.js +64 -0
- package/esm/auth/session_auth.d.ts +20 -0
- package/esm/auth/session_auth.d.ts.map +1 -0
- package/esm/auth/session_auth.js +42 -0
- package/esm/auth/trellis_id.d.ts +2 -0
- package/esm/auth/trellis_id.d.ts.map +1 -0
- package/esm/auth/trellis_id.js +5 -0
- package/esm/auth/types.d.ts +8 -0
- package/esm/auth/types.d.ts.map +1 -0
- package/esm/auth/types.js +1 -0
- package/esm/auth/utils.d.ts +11 -0
- package/esm/auth/utils.d.ts.map +1 -0
- package/esm/auth/utils.js +68 -0
- package/esm/auth/workload_activation.d.ts +192 -0
- package/esm/auth/workload_activation.d.ts.map +1 -0
- package/esm/auth/workload_activation.js +290 -0
- package/esm/contracts/canonical.d.ts +14 -0
- package/esm/contracts/canonical.d.ts.map +1 -0
- package/esm/contracts/canonical.js +135 -0
- package/esm/contracts/mod.d.ts +462 -0
- package/esm/contracts/mod.d.ts.map +1 -0
- package/esm/contracts/mod.js +532 -0
- package/esm/contracts/protocol.d.ts +301 -0
- package/esm/contracts/protocol.d.ts.map +1 -0
- package/esm/contracts/protocol.js +130 -0
- package/esm/contracts/runtime.d.ts +48 -0
- package/esm/contracts/runtime.d.ts.map +1 -0
- package/esm/contracts/runtime.js +9 -0
- package/esm/contracts/schema_pointers.d.ts +18 -0
- package/esm/contracts/schema_pointers.d.ts.map +1 -0
- package/esm/contracts/schema_pointers.js +59 -0
- package/esm/server/deno.d.ts +7 -0
- package/esm/server/deno.d.ts.map +1 -0
- package/esm/server/deno.js +16 -0
- package/esm/server/health.d.ts +92 -0
- package/esm/server/health.d.ts.map +1 -0
- package/esm/server/health.js +74 -0
- package/esm/server/health_rpc.d.ts +16 -0
- package/esm/server/health_rpc.d.ts.map +1 -0
- package/esm/server/health_rpc.js +23 -0
- package/esm/server/health_schemas.d.ts +20 -0
- package/esm/server/health_schemas.d.ts.map +1 -0
- package/esm/server/health_schemas.js +18 -0
- package/esm/server/mod.d.ts +17 -0
- package/esm/server/mod.d.ts.map +1 -0
- package/esm/server/mod.js +17 -0
- package/esm/server/node.d.ts +7 -0
- package/esm/server/node.d.ts.map +1 -0
- package/esm/server/node.js +16 -0
- package/esm/server/runtime.d.ts +16 -0
- package/esm/server/runtime.d.ts.map +1 -0
- package/esm/server/runtime.js +1 -0
- package/esm/server/service.d.ts +121 -0
- package/esm/server/service.d.ts.map +1 -0
- package/esm/server/service.js +256 -0
- package/esm/server/subscription.d.ts +99 -0
- package/esm/server/subscription.d.ts.map +1 -0
- package/esm/server/subscription.js +25 -0
- package/esm/telemetry/carrier.d.ts +9 -0
- package/esm/telemetry/carrier.d.ts.map +1 -0
- package/esm/telemetry/carrier.js +20 -0
- package/esm/telemetry/core.d.ts +8 -0
- package/esm/telemetry/core.d.ts.map +1 -0
- package/esm/telemetry/core.js +14 -0
- package/esm/telemetry/env.d.ts +2 -0
- package/esm/telemetry/env.d.ts.map +1 -0
- package/esm/telemetry/env.js +10 -0
- package/esm/telemetry/mod.d.ts +11 -0
- package/esm/telemetry/mod.d.ts.map +1 -0
- package/esm/telemetry/mod.js +7 -0
- package/esm/telemetry/nats.d.ts +7 -0
- package/esm/telemetry/nats.d.ts.map +1 -0
- package/esm/telemetry/nats.js +6 -0
- package/esm/telemetry/result.d.ts +2 -0
- package/esm/telemetry/result.d.ts.map +1 -0
- package/esm/telemetry/result.js +18 -0
- package/esm/telemetry/runtime.d.ts +2 -0
- package/esm/telemetry/runtime.d.ts.map +1 -0
- package/esm/telemetry/runtime.js +53 -0
- package/esm/telemetry/trace.d.ts +5 -0
- package/esm/telemetry/trace.d.ts.map +1 -0
- package/esm/telemetry/trace.js +26 -0
- package/esm/telemetry/trellis.d.ts +3 -0
- package/esm/telemetry/trellis.d.ts.map +1 -0
- package/esm/telemetry/trellis.js +7 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/activity/api.d.ts +10 -0
- package/esm/trellis/_sdk/activity/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/api.js +43 -0
- package/esm/trellis/_sdk/activity/contract.d.ts +8 -0
- package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/contract.js +59 -0
- package/esm/trellis/_sdk/activity/mod.d.ts +7 -0
- package/esm/trellis/_sdk/activity/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/mod.js +5 -0
- package/esm/trellis/_sdk/activity/package.json +3 -0
- package/esm/trellis/_sdk/activity/schemas.d.ts +607 -0
- package/esm/trellis/_sdk/activity/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/schemas.js +33 -0
- package/esm/trellis/_sdk/activity/types.d.ts +96 -0
- package/esm/trellis/_sdk/activity/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/activity/types.js +3 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/auth/api.d.ts +10 -0
- package/esm/trellis/_sdk/auth/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/api.js +354 -0
- package/esm/trellis/_sdk/auth/contract.d.ts +28 -0
- package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/contract.js +83 -0
- package/esm/trellis/_sdk/auth/mod.d.ts +7 -0
- package/esm/trellis/_sdk/auth/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/mod.js +5 -0
- package/esm/trellis/_sdk/auth/package.json +3 -0
- package/esm/trellis/_sdk/auth/schemas.d.ts +8967 -0
- package/esm/trellis/_sdk/auth/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/schemas.js +306 -0
- package/esm/trellis/_sdk/auth/types.d.ts +1232 -0
- package/esm/trellis/_sdk/auth/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/auth/types.js +3 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/core/api.d.ts +10 -0
- package/esm/trellis/_sdk/core/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/api.js +36 -0
- package/esm/trellis/_sdk/core/contract.d.ts +8 -0
- package/esm/trellis/_sdk/core/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/contract.js +59 -0
- package/esm/trellis/_sdk/core/mod.d.ts +7 -0
- package/esm/trellis/_sdk/core/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/mod.js +5 -0
- package/esm/trellis/_sdk/core/package.json +3 -0
- package/esm/trellis/_sdk/core/schemas.d.ts +1144 -0
- package/esm/trellis/_sdk/core/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/schemas.js +28 -0
- package/esm/trellis/_sdk/core/types.d.ts +176 -0
- package/esm/trellis/_sdk/core/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/core/types.js +3 -0
- package/esm/trellis/auth/browser.d.ts +3 -0
- package/esm/trellis/auth/browser.d.ts.map +1 -0
- package/esm/trellis/auth/browser.js +2 -0
- package/esm/trellis/auth.d.ts +3 -0
- package/esm/trellis/auth.d.ts.map +1 -0
- package/esm/trellis/auth.js +2 -0
- package/esm/trellis/browser.d.ts +2 -7
- package/esm/trellis/browser.d.ts.map +1 -1
- package/esm/trellis/browser.js +2 -7
- package/esm/trellis/client.d.ts +6 -4
- package/esm/trellis/client.d.ts.map +1 -1
- package/esm/trellis/client.js +28 -1
- package/esm/trellis/codec.d.ts +4 -3
- package/esm/trellis/codec.d.ts.map +1 -1
- package/esm/trellis/codec.js +15 -2
- package/esm/trellis/contract.d.ts +11 -0
- package/esm/trellis/contract.d.ts.map +1 -0
- package/esm/trellis/contract.js +15 -0
- package/esm/trellis/contracts.d.ts +5 -0
- package/esm/trellis/contracts.d.ts.map +1 -0
- package/esm/trellis/contracts.js +3 -0
- package/esm/trellis/env.d.ts +1 -1
- package/esm/trellis/env.d.ts.map +1 -1
- package/esm/trellis/env.js +1 -1
- package/esm/trellis/errors/AuthError.d.ts +1 -1
- package/esm/trellis/errors/AuthError.d.ts.map +1 -1
- package/esm/trellis/errors/AuthError.js +11 -0
- package/esm/trellis/errors/RemoteError.d.ts +3 -3
- package/esm/trellis/errors/RemoteError.d.ts.map +1 -1
- package/esm/trellis/errors/RemoteError.js +3 -3
- package/esm/trellis/errors/TrellisError.d.ts +1 -1
- package/esm/trellis/errors/TrellisError.js +1 -1
- package/esm/trellis/errors/index.d.ts +2 -1
- package/esm/trellis/errors/index.d.ts.map +1 -1
- package/esm/trellis/errors/index.js +3 -2
- package/esm/trellis/globals.d.ts +9 -1
- package/esm/trellis/globals.d.ts.map +1 -1
- package/esm/trellis/globals.js +16 -8
- package/esm/trellis/helpers.d.ts +2 -1
- package/esm/trellis/helpers.d.ts.map +1 -1
- package/esm/trellis/helpers.js +1 -0
- package/esm/trellis/index.d.ts +13 -5
- package/esm/trellis/index.d.ts.map +1 -1
- package/esm/trellis/index.js +8 -3
- package/esm/trellis/kv.d.ts +10 -7
- package/esm/trellis/kv.d.ts.map +1 -1
- package/esm/trellis/kv.js +57 -34
- package/esm/trellis/models/trellis/TrellisError.d.ts +1 -1
- package/esm/trellis/models/trellis/TrellisError.js +1 -1
- package/esm/trellis/operations.d.ts +81 -0
- package/esm/trellis/operations.d.ts.map +1 -0
- package/esm/trellis/operations.js +206 -0
- package/esm/trellis/sdk/activity.d.ts +3 -0
- package/esm/trellis/sdk/activity.d.ts.map +1 -0
- package/esm/trellis/sdk/activity.js +2 -0
- package/esm/trellis/sdk/auth.d.ts +4 -0
- package/esm/trellis/sdk/auth.d.ts.map +1 -0
- package/esm/trellis/sdk/auth.js +3 -0
- package/esm/trellis/sdk/core.d.ts +4 -0
- package/esm/trellis/sdk/core.d.ts.map +1 -0
- package/esm/trellis/sdk/core.js +3 -0
- package/esm/trellis/server/deno.d.ts +3 -0
- package/esm/trellis/server/deno.d.ts.map +1 -0
- package/esm/trellis/server/deno.js +2 -0
- package/esm/trellis/server/health.d.ts +5 -0
- package/esm/trellis/server/health.d.ts.map +1 -0
- package/esm/trellis/server/health.js +3 -0
- package/esm/trellis/server/mod.d.ts +3 -0
- package/esm/trellis/server/mod.d.ts.map +1 -0
- package/esm/trellis/server/mod.js +2 -0
- package/esm/trellis/server/node.d.ts +3 -0
- package/esm/trellis/server/node.d.ts.map +1 -0
- package/esm/trellis/server/node.js +2 -0
- package/esm/trellis/server/runtime.d.ts +4 -0
- package/esm/trellis/server/runtime.d.ts.map +1 -0
- package/esm/trellis/server/runtime.js +2 -0
- package/esm/trellis/server.d.ts +21 -0
- package/esm/trellis/server.d.ts.map +1 -0
- package/esm/trellis/server.js +536 -0
- package/esm/trellis/server_logger.d.ts +3 -0
- package/esm/trellis/server_logger.d.ts.map +1 -0
- package/esm/trellis/server_logger.js +7 -0
- package/esm/trellis/tasks.d.ts +3 -3
- package/esm/trellis/tasks.d.ts.map +1 -1
- package/esm/trellis/tasks.js +1 -1
- package/esm/trellis/tracing.d.ts +2 -2
- package/esm/trellis/tracing.d.ts.map +1 -1
- package/esm/trellis/tracing.js +2 -2
- package/esm/trellis/trellis.d.ts +167 -78
- package/esm/trellis/trellis.d.ts.map +1 -1
- package/esm/trellis/trellis.js +281 -87
- package/esm/trellis/workload.d.ts +45 -0
- package/esm/trellis/workload.d.ts.map +1 -0
- package/esm/trellis/workload.js +144 -0
- package/package.json +63 -4
- package/script/auth/browser/login.d.ts +27 -0
- package/script/auth/browser/login.d.ts.map +1 -0
- package/script/auth/browser/login.js +100 -0
- package/script/auth/browser/portal.d.ts +11 -0
- package/script/auth/browser/portal.d.ts.map +1 -0
- package/script/auth/browser/portal.js +40 -0
- package/script/auth/browser/session.d.ts +19 -0
- package/script/auth/browser/session.d.ts.map +1 -0
- package/script/auth/browser/session.js +79 -0
- package/script/auth/browser/storage.d.ts +12 -0
- package/script/auth/browser/storage.d.ts.map +1 -0
- package/script/auth/browser/storage.js +67 -0
- package/script/auth/browser.d.ts +13 -0
- package/script/auth/browser.d.ts.map +1 -0
- package/script/auth/browser.js +46 -0
- package/script/auth/keys.d.ts +5 -0
- package/script/auth/keys.d.ts.map +1 -0
- package/script/auth/keys.js +56 -0
- package/script/auth/mod.d.ts +18 -0
- package/script/auth/mod.d.ts.map +1 -0
- package/script/auth/mod.js +172 -0
- package/script/auth/proof.d.ts +9 -0
- package/script/auth/proof.d.ts.map +1 -0
- package/script/auth/proof.js +48 -0
- package/script/auth/protocol.d.ts +1212 -0
- package/script/auth/protocol.d.ts.map +1 -0
- package/script/auth/protocol.js +687 -0
- package/script/auth/schemas.d.ts +93 -0
- package/script/auth/schemas.d.ts.map +1 -0
- package/script/auth/schemas.js +67 -0
- package/script/auth/session_auth.d.ts +20 -0
- package/script/auth/session_auth.d.ts.map +1 -0
- package/script/auth/session_auth.js +45 -0
- package/script/auth/trellis_id.d.ts +2 -0
- package/script/auth/trellis_id.d.ts.map +1 -0
- package/script/auth/trellis_id.js +8 -0
- package/script/auth/types.d.ts +8 -0
- package/script/auth/types.d.ts.map +1 -0
- package/script/auth/utils.d.ts +11 -0
- package/script/auth/utils.d.ts.map +1 -0
- package/script/auth/utils.js +77 -0
- package/script/auth/workload_activation.d.ts +192 -0
- package/script/auth/workload_activation.d.ts.map +1 -0
- package/script/auth/workload_activation.js +308 -0
- package/script/contracts/canonical.d.ts +14 -0
- package/script/contracts/canonical.d.ts.map +1 -0
- package/script/contracts/canonical.js +144 -0
- package/script/contracts/mod.d.ts +462 -0
- package/script/contracts/mod.d.ts.map +1 -0
- package/script/contracts/mod.js +555 -0
- package/script/contracts/protocol.d.ts +301 -0
- package/script/contracts/protocol.d.ts.map +1 -0
- package/script/contracts/protocol.js +136 -0
- package/script/contracts/runtime.d.ts +48 -0
- package/script/contracts/runtime.d.ts.map +1 -0
- package/script/contracts/runtime.js +13 -0
- package/script/contracts/schema_pointers.d.ts +18 -0
- package/script/contracts/schema_pointers.d.ts.map +1 -0
- package/script/contracts/schema_pointers.js +63 -0
- package/script/telemetry/carrier.d.ts +9 -0
- package/script/telemetry/carrier.d.ts.map +1 -0
- package/script/telemetry/carrier.js +25 -0
- package/script/telemetry/core.d.ts +8 -0
- package/script/telemetry/core.d.ts.map +1 -0
- package/script/telemetry/core.js +24 -0
- package/script/telemetry/env.d.ts +2 -0
- package/script/telemetry/env.d.ts.map +1 -0
- package/script/telemetry/env.js +12 -0
- package/script/telemetry/mod.d.ts +11 -0
- package/script/telemetry/mod.d.ts.map +1 -0
- package/script/telemetry/mod.js +29 -0
- package/script/telemetry/nats.d.ts +7 -0
- package/script/telemetry/nats.d.ts.map +1 -0
- package/script/telemetry/nats.js +9 -0
- package/script/telemetry/result.d.ts +2 -0
- package/script/telemetry/result.d.ts.map +1 -0
- package/script/telemetry/result.js +21 -0
- package/script/telemetry/runtime.d.ts +2 -0
- package/script/telemetry/runtime.d.ts.map +1 -0
- package/script/telemetry/runtime.js +79 -0
- package/script/telemetry/trace.d.ts +5 -0
- package/script/telemetry/trace.d.ts.map +1 -0
- package/script/telemetry/trace.js +31 -0
- package/script/telemetry/trellis.d.ts +3 -0
- package/script/telemetry/trellis.d.ts.map +1 -0
- package/script/telemetry/trellis.js +14 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/activity/api.d.ts +10 -0
- package/script/trellis/_sdk/activity/api.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/api.js +46 -0
- package/script/trellis/_sdk/activity/contract.d.ts +8 -0
- package/script/trellis/_sdk/activity/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/contract.js +62 -0
- package/script/trellis/_sdk/activity/mod.d.ts +7 -0
- package/script/trellis/_sdk/activity/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/mod.js +30 -0
- package/script/trellis/_sdk/activity/package.json +3 -0
- package/script/trellis/_sdk/activity/schemas.d.ts +607 -0
- package/script/trellis/_sdk/activity/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/schemas.js +36 -0
- package/script/trellis/_sdk/activity/types.d.ts +96 -0
- package/script/trellis/_sdk/activity/types.d.ts.map +1 -0
- package/script/trellis/_sdk/activity/types.js +6 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/auth/api.d.ts +10 -0
- package/script/trellis/_sdk/auth/api.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/api.js +357 -0
- package/script/trellis/_sdk/auth/contract.d.ts +28 -0
- package/script/trellis/_sdk/auth/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/contract.js +86 -0
- package/script/trellis/_sdk/auth/mod.d.ts +7 -0
- package/script/trellis/_sdk/auth/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/mod.js +31 -0
- package/script/trellis/_sdk/auth/package.json +3 -0
- package/script/trellis/_sdk/auth/schemas.d.ts +8967 -0
- package/script/trellis/_sdk/auth/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/schemas.js +309 -0
- package/script/trellis/_sdk/auth/types.d.ts +1232 -0
- package/script/trellis/_sdk/auth/types.d.ts.map +1 -0
- package/script/trellis/_sdk/auth/types.js +6 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/core/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/core/api.d.ts +10 -0
- package/script/trellis/_sdk/core/api.d.ts.map +1 -0
- package/script/trellis/_sdk/core/api.js +39 -0
- package/script/trellis/_sdk/core/contract.d.ts +8 -0
- package/script/trellis/_sdk/core/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/core/contract.js +62 -0
- package/script/trellis/_sdk/core/mod.d.ts +7 -0
- package/script/trellis/_sdk/core/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/core/mod.js +30 -0
- package/script/trellis/_sdk/core/package.json +3 -0
- package/script/trellis/_sdk/core/schemas.d.ts +1144 -0
- package/script/trellis/_sdk/core/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/core/schemas.js +31 -0
- package/script/trellis/_sdk/core/types.d.ts +176 -0
- package/script/trellis/_sdk/core/types.d.ts.map +1 -0
- package/script/trellis/_sdk/core/types.js +6 -0
- package/script/trellis/auth.d.ts +2 -0
- package/script/trellis/auth.d.ts.map +1 -0
- package/script/trellis/auth.js +17 -0
- package/script/trellis/client.d.ts +8 -6
- package/script/trellis/client.d.ts.map +1 -1
- package/script/trellis/client.js +54 -3
- package/script/trellis/codec.d.ts +5 -4
- package/script/trellis/codec.d.ts.map +1 -1
- package/script/trellis/codec.js +31 -17
- package/script/trellis/contract.d.ts +11 -0
- package/script/trellis/contract.d.ts.map +1 -0
- package/script/trellis/contract.js +18 -0
- package/script/trellis/contracts.d.ts +4 -0
- package/script/trellis/contracts.d.ts.map +1 -0
- package/script/trellis/contracts.js +20 -0
- package/script/trellis/errors/AuthError.d.ts +2 -2
- package/script/trellis/errors/AuthError.d.ts.map +1 -1
- package/script/trellis/errors/AuthError.js +13 -2
- package/script/trellis/errors/KVError.d.ts +1 -1
- package/script/trellis/errors/KVError.d.ts.map +1 -1
- package/script/trellis/errors/KVError.js +2 -2
- package/script/trellis/errors/RemoteError.d.ts +4 -4
- package/script/trellis/errors/RemoteError.d.ts.map +1 -1
- package/script/trellis/errors/RemoteError.js +11 -11
- package/script/trellis/errors/TrellisError.d.ts +1 -1
- package/script/trellis/errors/TrellisError.d.ts.map +1 -1
- package/script/trellis/errors/TrellisError.js +2 -2
- package/script/trellis/errors/ValidationError.d.ts +1 -1
- package/script/trellis/errors/ValidationError.d.ts.map +1 -1
- package/script/trellis/errors/ValidationError.js +2 -2
- package/script/trellis/errors/index.d.ts +14 -14
- package/script/trellis/errors/index.d.ts.map +1 -1
- package/script/trellis/errors/index.js +31 -31
- package/script/trellis/globals.d.ts +9 -1
- package/script/trellis/globals.d.ts.map +1 -1
- package/script/trellis/globals.js +16 -8
- package/script/trellis/helpers.d.ts +1 -1
- package/script/trellis/helpers.d.ts.map +1 -1
- package/script/trellis/index.d.ts +17 -10
- package/script/trellis/index.d.ts.map +1 -1
- package/script/trellis/index.js +57 -22
- package/script/trellis/kv.d.ts +11 -8
- package/script/trellis/kv.d.ts.map +1 -1
- package/script/trellis/kv.js +91 -68
- package/script/trellis/models/trellis/TrellisError.d.ts +1 -1
- package/script/trellis/models/trellis/TrellisError.d.ts.map +1 -1
- package/script/trellis/models/trellis/TrellisError.js +8 -8
- package/script/trellis/operations.d.ts +81 -0
- package/script/trellis/operations.d.ts.map +1 -0
- package/script/trellis/operations.js +212 -0
- package/script/trellis/sdk/core.d.ts +3 -0
- package/script/trellis/sdk/core.d.ts.map +1 -0
- package/script/trellis/sdk/core.js +20 -0
- package/script/trellis/tasks.d.ts +3 -3
- package/script/trellis/tasks.d.ts.map +1 -1
- package/script/trellis/tasks.js +5 -5
- package/script/trellis/tracing.d.ts +2 -3
- package/script/trellis/tracing.d.ts.map +1 -1
- package/script/trellis/tracing.js +17 -20
- package/script/trellis/trellis.d.ts +169 -80
- package/script/trellis/trellis.d.ts.map +1 -1
- package/script/trellis/trellis.js +379 -177
- package/script/trellis/workload.d.ts +45 -0
- package/script/trellis/workload.d.ts.map +1 -0
- package/script/trellis/workload.js +172 -0
- package/script/_dnt.polyfills.d.ts +0 -7
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/trellis/browser.d.ts +0 -11
- package/script/trellis/browser.d.ts.map +0 -1
- package/script/trellis/browser.js +0 -21
- package/script/trellis/env.d.ts +0 -2
- package/script/trellis/env.d.ts.map +0 -1
- package/script/trellis/env.js +0 -5
- /package/script/{_dnt.polyfills.js → auth/types.js} +0 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import { ContractResourceBindingsSchema, ContractResourcesSchema, } from "@qlever-llc/trellis/contracts";
|
|
2
|
+
import { Type } from "typebox";
|
|
3
|
+
const IsoDateStringSchema = Type.String({ format: "date-time" });
|
|
4
|
+
export const DigestSchema = Type.String({ pattern: "^[A-Za-z0-9_-]+$" });
|
|
5
|
+
export const OpenObjectSchema = Type.Unsafe({
|
|
6
|
+
type: "object",
|
|
7
|
+
});
|
|
8
|
+
export const ServiceViewSchema = Type.Object({
|
|
9
|
+
sessionKey: Type.String(),
|
|
10
|
+
displayName: Type.String(),
|
|
11
|
+
active: Type.Boolean(),
|
|
12
|
+
capabilities: Type.Array(Type.String()),
|
|
13
|
+
namespaces: Type.Array(Type.String()),
|
|
14
|
+
description: Type.String(),
|
|
15
|
+
contractId: Type.Optional(Type.String()),
|
|
16
|
+
contractDigest: Type.Optional(DigestSchema),
|
|
17
|
+
resourceBindings: Type.Optional(ContractResourceBindingsSchema),
|
|
18
|
+
createdAt: IsoDateStringSchema,
|
|
19
|
+
}, { additionalProperties: false });
|
|
20
|
+
export const ApprovalDecisionSchema = Type.Union([
|
|
21
|
+
Type.Literal("approved"),
|
|
22
|
+
Type.Literal("denied"),
|
|
23
|
+
]);
|
|
24
|
+
export const ContractApprovalViewSchema = Type.Object({
|
|
25
|
+
contractDigest: DigestSchema,
|
|
26
|
+
contractId: Type.String({ minLength: 1 }),
|
|
27
|
+
displayName: Type.String({ minLength: 1 }),
|
|
28
|
+
description: Type.String({ minLength: 1 }),
|
|
29
|
+
capabilities: Type.Array(Type.String()),
|
|
30
|
+
}, { additionalProperties: false });
|
|
31
|
+
export const ApprovalRecordViewSchema = Type.Object({
|
|
32
|
+
user: Type.String({ minLength: 1 }),
|
|
33
|
+
answer: ApprovalDecisionSchema,
|
|
34
|
+
answeredAt: IsoDateStringSchema,
|
|
35
|
+
updatedAt: IsoDateStringSchema,
|
|
36
|
+
approval: ContractApprovalViewSchema,
|
|
37
|
+
}, { additionalProperties: false });
|
|
38
|
+
export const AuthListServicesSchema = Type.Object({}, {
|
|
39
|
+
additionalProperties: false,
|
|
40
|
+
});
|
|
41
|
+
export const AuthListServicesResponseSchema = Type.Object({
|
|
42
|
+
services: Type.Array(ServiceViewSchema),
|
|
43
|
+
}, { additionalProperties: false });
|
|
44
|
+
export const AuthInstallServiceSchema = Type.Object({
|
|
45
|
+
sessionKey: Type.String(),
|
|
46
|
+
displayName: Type.String({ minLength: 1 }),
|
|
47
|
+
active: Type.Optional(Type.Boolean()),
|
|
48
|
+
namespaces: Type.Array(Type.String()),
|
|
49
|
+
description: Type.String({ minLength: 1 }),
|
|
50
|
+
contract: OpenObjectSchema,
|
|
51
|
+
}, { additionalProperties: false });
|
|
52
|
+
export const AuthInstallServiceResponseSchema = Type.Object({
|
|
53
|
+
success: Type.Boolean(),
|
|
54
|
+
sessionKey: Type.String(),
|
|
55
|
+
contractId: Type.String({ minLength: 1 }),
|
|
56
|
+
contractDigest: DigestSchema,
|
|
57
|
+
resourceBindings: ContractResourceBindingsSchema,
|
|
58
|
+
}, { additionalProperties: false });
|
|
59
|
+
export const AuthUpgradeServiceContractSchema = Type.Object({
|
|
60
|
+
sessionKey: Type.String(),
|
|
61
|
+
contract: OpenObjectSchema,
|
|
62
|
+
}, { additionalProperties: false });
|
|
63
|
+
export const AuthUpgradeServiceContractResponseSchema = Type.Object({
|
|
64
|
+
success: Type.Boolean(),
|
|
65
|
+
sessionKey: Type.String(),
|
|
66
|
+
contractId: Type.String({ minLength: 1 }),
|
|
67
|
+
contractDigest: DigestSchema,
|
|
68
|
+
resourceBindings: ContractResourceBindingsSchema,
|
|
69
|
+
}, { additionalProperties: false });
|
|
70
|
+
export const ContractAnalysisSummarySchema = Type.Object({
|
|
71
|
+
namespaces: Type.Array(Type.String()),
|
|
72
|
+
rpcMethods: Type.Number(),
|
|
73
|
+
events: Type.Number(),
|
|
74
|
+
natsPublish: Type.Number(),
|
|
75
|
+
natsSubscribe: Type.Number(),
|
|
76
|
+
kvResources: Type.Number(),
|
|
77
|
+
jobsQueues: Type.Number(),
|
|
78
|
+
streamResources: Type.Number(),
|
|
79
|
+
}, { additionalProperties: false });
|
|
80
|
+
export const ContractAnalysisKvResourceSchema = Type.Object({
|
|
81
|
+
alias: Type.String({ minLength: 1 }),
|
|
82
|
+
purpose: Type.String({ minLength: 1 }),
|
|
83
|
+
required: Type.Boolean(),
|
|
84
|
+
history: Type.Number(),
|
|
85
|
+
ttlMs: Type.Number(),
|
|
86
|
+
maxValueBytes: Type.Optional(Type.Number()),
|
|
87
|
+
}, { additionalProperties: false });
|
|
88
|
+
export const ContractAnalysisJobsQueueSchema = Type.Object({
|
|
89
|
+
queueType: Type.String({ minLength: 1 }),
|
|
90
|
+
payload: Type.Object({ schema: Type.String({ minLength: 1 }) }, {
|
|
91
|
+
additionalProperties: false,
|
|
92
|
+
}),
|
|
93
|
+
result: Type.Optional(Type.Object({ schema: Type.String({ minLength: 1 }) }, {
|
|
94
|
+
additionalProperties: false,
|
|
95
|
+
})),
|
|
96
|
+
maxDeliver: Type.Number(),
|
|
97
|
+
backoffMs: Type.Array(Type.Number()),
|
|
98
|
+
ackWaitMs: Type.Number(),
|
|
99
|
+
defaultDeadlineMs: Type.Optional(Type.Number()),
|
|
100
|
+
progress: Type.Boolean(),
|
|
101
|
+
logs: Type.Boolean(),
|
|
102
|
+
dlq: Type.Boolean(),
|
|
103
|
+
concurrency: Type.Number(),
|
|
104
|
+
}, { additionalProperties: false });
|
|
105
|
+
export const ContractAnalysisStreamResourceSchema = Type.Object({
|
|
106
|
+
alias: Type.String({ minLength: 1 }),
|
|
107
|
+
purpose: Type.String({ minLength: 1 }),
|
|
108
|
+
required: Type.Boolean(),
|
|
109
|
+
retention: Type.Optional(Type.String({ minLength: 1 })),
|
|
110
|
+
storage: Type.Optional(Type.String({ minLength: 1 })),
|
|
111
|
+
numReplicas: Type.Optional(Type.Number()),
|
|
112
|
+
maxAgeMs: Type.Optional(Type.Number()),
|
|
113
|
+
maxBytes: Type.Optional(Type.Number()),
|
|
114
|
+
maxMsgs: Type.Optional(Type.Number()),
|
|
115
|
+
discard: Type.Optional(Type.String({ minLength: 1 })),
|
|
116
|
+
subjects: Type.Array(Type.String({ minLength: 1 }), { minItems: 1 }),
|
|
117
|
+
sources: Type.Optional(Type.Array(Type.Object({
|
|
118
|
+
fromAlias: Type.String({ minLength: 1 }),
|
|
119
|
+
streamName: Type.String({ minLength: 1 }),
|
|
120
|
+
filterSubject: Type.Optional(Type.String({ minLength: 1 })),
|
|
121
|
+
subjectTransformDest: Type.Optional(Type.String({ minLength: 1 })),
|
|
122
|
+
}, { additionalProperties: false }))),
|
|
123
|
+
}, { additionalProperties: false });
|
|
124
|
+
export const ContractAnalysisRpcMethodSchema = Type.Object({
|
|
125
|
+
key: Type.String(),
|
|
126
|
+
subject: Type.String(),
|
|
127
|
+
wildcardSubject: Type.String(),
|
|
128
|
+
callerCapabilities: Type.Array(Type.String()),
|
|
129
|
+
}, { additionalProperties: false });
|
|
130
|
+
export const ContractAnalysisEventSchema = Type.Object({
|
|
131
|
+
key: Type.String(),
|
|
132
|
+
subject: Type.String(),
|
|
133
|
+
wildcardSubject: Type.String(),
|
|
134
|
+
publishCapabilities: Type.Array(Type.String()),
|
|
135
|
+
subscribeCapabilities: Type.Array(Type.String()),
|
|
136
|
+
}, { additionalProperties: false });
|
|
137
|
+
export const ContractAnalysisSubjectSchema = Type.Object({
|
|
138
|
+
key: Type.String(),
|
|
139
|
+
subject: Type.String(),
|
|
140
|
+
publishCapabilities: Type.Array(Type.String()),
|
|
141
|
+
subscribeCapabilities: Type.Array(Type.String()),
|
|
142
|
+
}, { additionalProperties: false });
|
|
143
|
+
export const ContractAnalysisNatsRuleSchema = Type.Object({
|
|
144
|
+
kind: Type.String(),
|
|
145
|
+
subject: Type.String(),
|
|
146
|
+
wildcardSubject: Type.String(),
|
|
147
|
+
requiredCapabilities: Type.Array(Type.String()),
|
|
148
|
+
}, { additionalProperties: false });
|
|
149
|
+
export const ContractAnalysisSchema = Type.Object({
|
|
150
|
+
namespaces: Type.Array(Type.String()),
|
|
151
|
+
rpc: Type.Object({ methods: Type.Array(ContractAnalysisRpcMethodSchema) }, {
|
|
152
|
+
additionalProperties: false,
|
|
153
|
+
}),
|
|
154
|
+
events: Type.Object({ events: Type.Array(ContractAnalysisEventSchema) }, {
|
|
155
|
+
additionalProperties: false,
|
|
156
|
+
}),
|
|
157
|
+
subjects: Type.Optional(Type.Object({ subjects: Type.Array(ContractAnalysisSubjectSchema) }, {
|
|
158
|
+
additionalProperties: false,
|
|
159
|
+
})),
|
|
160
|
+
nats: Type.Object({
|
|
161
|
+
publish: Type.Array(ContractAnalysisNatsRuleSchema),
|
|
162
|
+
subscribe: Type.Array(ContractAnalysisNatsRuleSchema),
|
|
163
|
+
}, { additionalProperties: false }),
|
|
164
|
+
resources: Type.Object({
|
|
165
|
+
kv: Type.Array(ContractAnalysisKvResourceSchema),
|
|
166
|
+
jobs: Type.Array(ContractAnalysisJobsQueueSchema),
|
|
167
|
+
streams: Type.Array(ContractAnalysisStreamResourceSchema),
|
|
168
|
+
}, { additionalProperties: false }),
|
|
169
|
+
}, { additionalProperties: false });
|
|
170
|
+
export const InstalledContractSchema = Type.Object({
|
|
171
|
+
digest: DigestSchema,
|
|
172
|
+
id: Type.String({ minLength: 1 }),
|
|
173
|
+
displayName: Type.String({ minLength: 1 }),
|
|
174
|
+
description: Type.String({ minLength: 1 }),
|
|
175
|
+
sessionKey: Type.Optional(Type.String()),
|
|
176
|
+
installedAt: IsoDateStringSchema,
|
|
177
|
+
analysisSummary: Type.Optional(ContractAnalysisSummarySchema),
|
|
178
|
+
resourceBindings: Type.Optional(ContractResourceBindingsSchema),
|
|
179
|
+
}, { additionalProperties: false });
|
|
180
|
+
export const InstalledContractDetailSchema = Type.Object({
|
|
181
|
+
digest: DigestSchema,
|
|
182
|
+
id: Type.String({ minLength: 1 }),
|
|
183
|
+
displayName: Type.String({ minLength: 1 }),
|
|
184
|
+
description: Type.String({ minLength: 1 }),
|
|
185
|
+
sessionKey: Type.Optional(Type.String()),
|
|
186
|
+
installedAt: IsoDateStringSchema,
|
|
187
|
+
analysisSummary: Type.Optional(ContractAnalysisSummarySchema),
|
|
188
|
+
analysis: Type.Optional(ContractAnalysisSchema),
|
|
189
|
+
resources: Type.Optional(ContractResourcesSchema),
|
|
190
|
+
resourceBindings: Type.Optional(ContractResourceBindingsSchema),
|
|
191
|
+
contract: OpenObjectSchema,
|
|
192
|
+
}, { additionalProperties: false });
|
|
193
|
+
export const AuthListInstalledContractsSchema = Type.Object({
|
|
194
|
+
sessionKey: Type.Optional(Type.String()),
|
|
195
|
+
}, { additionalProperties: false });
|
|
196
|
+
export const AuthListInstalledContractsResponseSchema = Type.Object({
|
|
197
|
+
contracts: Type.Array(InstalledContractSchema),
|
|
198
|
+
}, { additionalProperties: false });
|
|
199
|
+
export const AuthGetInstalledContractSchema = Type.Object({
|
|
200
|
+
digest: DigestSchema,
|
|
201
|
+
}, { additionalProperties: false });
|
|
202
|
+
export const AuthGetInstalledContractResponseSchema = Type.Object({
|
|
203
|
+
contract: InstalledContractDetailSchema,
|
|
204
|
+
}, { additionalProperties: false });
|
|
205
|
+
export const AuthenticatedUserSchema = Type.Object({
|
|
206
|
+
id: Type.String(),
|
|
207
|
+
origin: Type.String(),
|
|
208
|
+
active: Type.Boolean(),
|
|
209
|
+
name: Type.String(),
|
|
210
|
+
email: Type.String(),
|
|
211
|
+
image: Type.Optional(Type.String()),
|
|
212
|
+
capabilities: Type.Array(Type.String()),
|
|
213
|
+
lastLogin: Type.Optional(IsoDateStringSchema),
|
|
214
|
+
}, { additionalProperties: false });
|
|
215
|
+
export const AuthMeSchema = Type.Object({}, { additionalProperties: false });
|
|
216
|
+
export const AuthValidateRequestSchema = Type.Object({
|
|
217
|
+
sessionKey: Type.String(),
|
|
218
|
+
proof: Type.String(),
|
|
219
|
+
subject: Type.String(),
|
|
220
|
+
payloadHash: Type.String(),
|
|
221
|
+
capabilities: Type.Optional(Type.Array(Type.String())),
|
|
222
|
+
}, { additionalProperties: false });
|
|
223
|
+
export const AuthenticatedServiceSchema = Type.Object({
|
|
224
|
+
type: Type.Literal("service"),
|
|
225
|
+
id: Type.String(),
|
|
226
|
+
name: Type.String(),
|
|
227
|
+
active: Type.Boolean(),
|
|
228
|
+
capabilities: Type.Array(Type.String()),
|
|
229
|
+
}, { additionalProperties: false });
|
|
230
|
+
export const AuthenticatedDeviceSchema = Type.Object({
|
|
231
|
+
type: Type.Literal("device"),
|
|
232
|
+
deviceId: Type.String({ minLength: 1 }),
|
|
233
|
+
deviceType: Type.String({ minLength: 1 }),
|
|
234
|
+
runtimePublicKey: Type.String({ minLength: 1 }),
|
|
235
|
+
profileId: Type.String({ minLength: 1 }),
|
|
236
|
+
active: Type.Boolean(),
|
|
237
|
+
capabilities: Type.Array(Type.String()),
|
|
238
|
+
}, { additionalProperties: false });
|
|
239
|
+
export const AuthenticatedWorkloadSchema = Type.Object({
|
|
240
|
+
type: Type.Literal("workload"),
|
|
241
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
242
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
243
|
+
profileId: Type.String({ minLength: 1 }),
|
|
244
|
+
active: Type.Boolean(),
|
|
245
|
+
capabilities: Type.Array(Type.String()),
|
|
246
|
+
}, { additionalProperties: false });
|
|
247
|
+
const NullableAuthenticatedUserSchema = Type.Union([
|
|
248
|
+
AuthenticatedUserSchema,
|
|
249
|
+
Type.Null(),
|
|
250
|
+
]);
|
|
251
|
+
const NullableAuthenticatedWorkloadSchema = Type.Union([
|
|
252
|
+
AuthenticatedWorkloadSchema,
|
|
253
|
+
Type.Null(),
|
|
254
|
+
]);
|
|
255
|
+
const NullableAuthenticatedServiceSchema = Type.Union([
|
|
256
|
+
AuthenticatedServiceSchema,
|
|
257
|
+
Type.Null(),
|
|
258
|
+
]);
|
|
259
|
+
export const AuthMeResponseSchema = Type.Object({
|
|
260
|
+
user: NullableAuthenticatedUserSchema,
|
|
261
|
+
workload: NullableAuthenticatedWorkloadSchema,
|
|
262
|
+
service: NullableAuthenticatedServiceSchema,
|
|
263
|
+
}, { additionalProperties: false });
|
|
264
|
+
export const CallerViewSchema = Type.Union([
|
|
265
|
+
Type.Object({
|
|
266
|
+
type: Type.Literal("user"),
|
|
267
|
+
id: Type.String(),
|
|
268
|
+
origin: Type.String(),
|
|
269
|
+
active: Type.Boolean(),
|
|
270
|
+
name: Type.String(),
|
|
271
|
+
email: Type.String(),
|
|
272
|
+
image: Type.Optional(Type.String()),
|
|
273
|
+
capabilities: Type.Array(Type.String()),
|
|
274
|
+
}, { additionalProperties: false }),
|
|
275
|
+
AuthenticatedServiceSchema,
|
|
276
|
+
AuthenticatedWorkloadSchema,
|
|
277
|
+
]);
|
|
278
|
+
export const AuthValidateRequestResponseSchema = Type.Object({
|
|
279
|
+
allowed: Type.Boolean(),
|
|
280
|
+
inboxPrefix: Type.String(),
|
|
281
|
+
caller: CallerViewSchema,
|
|
282
|
+
}, { additionalProperties: false });
|
|
283
|
+
export const AuthListApprovalsSchema = Type.Object({
|
|
284
|
+
user: Type.Optional(Type.String({ minLength: 1 })),
|
|
285
|
+
digest: Type.Optional(DigestSchema),
|
|
286
|
+
}, { additionalProperties: false });
|
|
287
|
+
export const AuthListApprovalsResponseSchema = Type.Object({
|
|
288
|
+
approvals: Type.Array(ApprovalRecordViewSchema),
|
|
289
|
+
}, { additionalProperties: false });
|
|
290
|
+
export const AuthRevokeApprovalSchema = Type.Object({
|
|
291
|
+
contractDigest: DigestSchema,
|
|
292
|
+
user: Type.Optional(Type.String({ minLength: 1 })),
|
|
293
|
+
}, { additionalProperties: false });
|
|
294
|
+
export const AuthRevokeApprovalResponseSchema = Type.Object({
|
|
295
|
+
success: Type.Boolean(),
|
|
296
|
+
}, { additionalProperties: false });
|
|
297
|
+
export const PortalSchema = Type.Object({
|
|
298
|
+
portalId: Type.String({ minLength: 1 }),
|
|
299
|
+
appContractId: Type.Optional(Type.String({ minLength: 1 })),
|
|
300
|
+
entryUrl: Type.String({ minLength: 1 }),
|
|
301
|
+
disabled: Type.Boolean(),
|
|
302
|
+
}, { additionalProperties: false });
|
|
303
|
+
const NullablePortalIdSchema = Type.Union([
|
|
304
|
+
Type.String({ minLength: 1 }),
|
|
305
|
+
Type.Null(),
|
|
306
|
+
]);
|
|
307
|
+
export const LoginPortalDefaultSchema = Type.Object({
|
|
308
|
+
portalId: NullablePortalIdSchema,
|
|
309
|
+
}, { additionalProperties: false });
|
|
310
|
+
export const WorkloadPortalDefaultSchema = Type.Object({
|
|
311
|
+
portalId: NullablePortalIdSchema,
|
|
312
|
+
}, { additionalProperties: false });
|
|
313
|
+
export const LoginPortalSelectionSchema = Type.Object({
|
|
314
|
+
contractId: Type.String({ minLength: 1 }),
|
|
315
|
+
portalId: NullablePortalIdSchema,
|
|
316
|
+
}, { additionalProperties: false });
|
|
317
|
+
export const WorkloadPortalSelectionSchema = Type.Object({
|
|
318
|
+
profileId: Type.String({ minLength: 1 }),
|
|
319
|
+
portalId: NullablePortalIdSchema,
|
|
320
|
+
}, { additionalProperties: false });
|
|
321
|
+
export const PortalFlowStateSchema = Type.Union([
|
|
322
|
+
Type.Object({
|
|
323
|
+
status: Type.Literal("choose_provider"),
|
|
324
|
+
flowId: Type.String({ minLength: 1 }),
|
|
325
|
+
providers: Type.Array(Type.Object({
|
|
326
|
+
id: Type.String({ minLength: 1 }),
|
|
327
|
+
displayName: Type.String({ minLength: 1 }),
|
|
328
|
+
}, { additionalProperties: false })),
|
|
329
|
+
app: Type.Object({
|
|
330
|
+
contractId: Type.String({ minLength: 1 }),
|
|
331
|
+
contractDigest: DigestSchema,
|
|
332
|
+
displayName: Type.String({ minLength: 1 }),
|
|
333
|
+
description: Type.String({ minLength: 1 }),
|
|
334
|
+
context: Type.Optional(OpenObjectSchema),
|
|
335
|
+
}, { additionalProperties: false }),
|
|
336
|
+
}, { additionalProperties: false }),
|
|
337
|
+
Type.Object({
|
|
338
|
+
status: Type.Literal("approval_required"),
|
|
339
|
+
flowId: Type.String({ minLength: 1 }),
|
|
340
|
+
user: Type.Object({
|
|
341
|
+
origin: Type.String({ minLength: 1 }),
|
|
342
|
+
id: Type.String({ minLength: 1 }),
|
|
343
|
+
name: Type.Optional(Type.String({ minLength: 1 })),
|
|
344
|
+
email: Type.Optional(Type.String({ minLength: 1 })),
|
|
345
|
+
image: Type.Optional(Type.String({ minLength: 1 })),
|
|
346
|
+
}, { additionalProperties: false }),
|
|
347
|
+
approval: ContractApprovalViewSchema,
|
|
348
|
+
}, { additionalProperties: false }),
|
|
349
|
+
Type.Object({
|
|
350
|
+
status: Type.Literal("approval_denied"),
|
|
351
|
+
flowId: Type.String({ minLength: 1 }),
|
|
352
|
+
approval: ContractApprovalViewSchema,
|
|
353
|
+
returnLocation: Type.Optional(Type.String({ minLength: 1 })),
|
|
354
|
+
}, { additionalProperties: false }),
|
|
355
|
+
Type.Object({
|
|
356
|
+
status: Type.Literal("insufficient_capabilities"),
|
|
357
|
+
flowId: Type.String({ minLength: 1 }),
|
|
358
|
+
user: Type.Optional(Type.Object({
|
|
359
|
+
origin: Type.String({ minLength: 1 }),
|
|
360
|
+
id: Type.String({ minLength: 1 }),
|
|
361
|
+
name: Type.Optional(Type.String({ minLength: 1 })),
|
|
362
|
+
}, { additionalProperties: false })),
|
|
363
|
+
approval: ContractApprovalViewSchema,
|
|
364
|
+
missingCapabilities: Type.Array(Type.String()),
|
|
365
|
+
userCapabilities: Type.Array(Type.String()),
|
|
366
|
+
returnLocation: Type.Optional(Type.String({ minLength: 1 })),
|
|
367
|
+
}, { additionalProperties: false }),
|
|
368
|
+
Type.Object({
|
|
369
|
+
status: Type.Literal("redirect"),
|
|
370
|
+
location: Type.String({ minLength: 1 }),
|
|
371
|
+
}, { additionalProperties: false }),
|
|
372
|
+
Type.Object({
|
|
373
|
+
status: Type.Literal("expired"),
|
|
374
|
+
}, { additionalProperties: false }),
|
|
375
|
+
]);
|
|
376
|
+
export const WorkloadProfileSchema = Type.Object({
|
|
377
|
+
profileId: Type.String({ minLength: 1 }),
|
|
378
|
+
contractId: Type.String({ minLength: 1 }),
|
|
379
|
+
allowedDigests: Type.Array(DigestSchema),
|
|
380
|
+
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
381
|
+
disabled: Type.Boolean(),
|
|
382
|
+
}, { additionalProperties: false });
|
|
383
|
+
export const WorkloadSchema = Type.Object({
|
|
384
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
385
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
386
|
+
profileId: Type.String({ minLength: 1 }),
|
|
387
|
+
state: Type.Union([
|
|
388
|
+
Type.Literal("registered"),
|
|
389
|
+
Type.Literal("activated"),
|
|
390
|
+
Type.Literal("revoked"),
|
|
391
|
+
Type.Literal("disabled"),
|
|
392
|
+
]),
|
|
393
|
+
createdAt: IsoDateStringSchema,
|
|
394
|
+
activatedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
395
|
+
revokedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
396
|
+
}, { additionalProperties: false });
|
|
397
|
+
export const WorkloadActivationActorSchema = Type.Object({
|
|
398
|
+
origin: Type.String({ minLength: 1 }),
|
|
399
|
+
id: Type.String({ minLength: 1 }),
|
|
400
|
+
}, { additionalProperties: false });
|
|
401
|
+
export const WorkloadActivationRecordSchema = Type.Object({
|
|
402
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
403
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
404
|
+
profileId: Type.String({ minLength: 1 }),
|
|
405
|
+
activatedBy: Type.Optional(WorkloadActivationActorSchema),
|
|
406
|
+
state: Type.Union([Type.Literal("activated"), Type.Literal("revoked")]),
|
|
407
|
+
activatedAt: IsoDateStringSchema,
|
|
408
|
+
revokedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
409
|
+
}, { additionalProperties: false });
|
|
410
|
+
export const WorkloadActivationReviewSchema = Type.Object({
|
|
411
|
+
reviewId: Type.String({ minLength: 1 }),
|
|
412
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
413
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
414
|
+
profileId: Type.String({ minLength: 1 }),
|
|
415
|
+
state: Type.Union([
|
|
416
|
+
Type.Literal("pending"),
|
|
417
|
+
Type.Literal("approved"),
|
|
418
|
+
Type.Literal("rejected"),
|
|
419
|
+
]),
|
|
420
|
+
requestedAt: IsoDateStringSchema,
|
|
421
|
+
decidedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
422
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
423
|
+
}, { additionalProperties: false });
|
|
424
|
+
export const AuthWorkloadActivationReviewRequestedEventSchema = Type.Object({
|
|
425
|
+
reviewId: Type.String({ minLength: 1 }),
|
|
426
|
+
handoffId: Type.String({ minLength: 1 }),
|
|
427
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
428
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
429
|
+
profileId: Type.String({ minLength: 1 }),
|
|
430
|
+
requestedAt: IsoDateStringSchema,
|
|
431
|
+
requestedBy: Type.Object({
|
|
432
|
+
origin: Type.String({ minLength: 1 }),
|
|
433
|
+
id: Type.String({ minLength: 1 }),
|
|
434
|
+
}, { additionalProperties: false }),
|
|
435
|
+
}, { additionalProperties: false });
|
|
436
|
+
export const WorkloadConnectInfoSchema = Type.Object({
|
|
437
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
438
|
+
profileId: Type.String({ minLength: 1 }),
|
|
439
|
+
contractId: Type.String({ minLength: 1 }),
|
|
440
|
+
contractDigest: DigestSchema,
|
|
441
|
+
transport: Type.Object({
|
|
442
|
+
natsServers: Type.Array(Type.String({ minLength: 1 })),
|
|
443
|
+
sentinel: Type.Object({
|
|
444
|
+
jwt: Type.String({ minLength: 1 }),
|
|
445
|
+
seed: Type.String({ minLength: 1 }),
|
|
446
|
+
}, { additionalProperties: false }),
|
|
447
|
+
}, { additionalProperties: false }),
|
|
448
|
+
auth: Type.Object({
|
|
449
|
+
mode: Type.Literal("workload_identity"),
|
|
450
|
+
iatSkewSeconds: Type.Number(),
|
|
451
|
+
}, { additionalProperties: false }),
|
|
452
|
+
}, { additionalProperties: false });
|
|
453
|
+
export const AuthCreatePortalSchema = Type.Object({
|
|
454
|
+
portalId: Type.String({ minLength: 1 }),
|
|
455
|
+
appContractId: Type.Optional(Type.String({ minLength: 1 })),
|
|
456
|
+
entryUrl: Type.String({ minLength: 1 }),
|
|
457
|
+
}, { additionalProperties: false });
|
|
458
|
+
export const AuthCreatePortalResponseSchema = Type.Object({
|
|
459
|
+
portal: PortalSchema,
|
|
460
|
+
}, { additionalProperties: false });
|
|
461
|
+
export const AuthListPortalsSchema = Type.Object({}, { additionalProperties: false });
|
|
462
|
+
export const AuthListPortalsResponseSchema = Type.Object({
|
|
463
|
+
portals: Type.Array(PortalSchema),
|
|
464
|
+
}, { additionalProperties: false });
|
|
465
|
+
export const AuthDisablePortalSchema = Type.Object({
|
|
466
|
+
portalId: Type.String({ minLength: 1 }),
|
|
467
|
+
}, { additionalProperties: false });
|
|
468
|
+
export const AuthDisablePortalResponseSchema = Type.Object({
|
|
469
|
+
success: Type.Boolean(),
|
|
470
|
+
}, { additionalProperties: false });
|
|
471
|
+
export const AuthGetLoginPortalDefaultSchema = Type.Object({}, { additionalProperties: false });
|
|
472
|
+
export const AuthGetLoginPortalDefaultResponseSchema = Type.Object({
|
|
473
|
+
defaultPortal: LoginPortalDefaultSchema,
|
|
474
|
+
}, { additionalProperties: false });
|
|
475
|
+
export const AuthSetLoginPortalDefaultSchema = Type.Object({
|
|
476
|
+
portalId: NullablePortalIdSchema,
|
|
477
|
+
}, { additionalProperties: false });
|
|
478
|
+
export const AuthSetLoginPortalDefaultResponseSchema = Type.Object({
|
|
479
|
+
defaultPortal: LoginPortalDefaultSchema,
|
|
480
|
+
}, { additionalProperties: false });
|
|
481
|
+
export const AuthListLoginPortalSelectionsSchema = Type.Object({}, { additionalProperties: false });
|
|
482
|
+
export const AuthListLoginPortalSelectionsResponseSchema = Type.Object({
|
|
483
|
+
selections: Type.Array(LoginPortalSelectionSchema),
|
|
484
|
+
}, { additionalProperties: false });
|
|
485
|
+
export const AuthSetLoginPortalSelectionSchema = Type.Object({
|
|
486
|
+
contractId: Type.String({ minLength: 1 }),
|
|
487
|
+
portalId: NullablePortalIdSchema,
|
|
488
|
+
}, { additionalProperties: false });
|
|
489
|
+
export const AuthSetLoginPortalSelectionResponseSchema = Type.Object({
|
|
490
|
+
selection: LoginPortalSelectionSchema,
|
|
491
|
+
}, { additionalProperties: false });
|
|
492
|
+
export const AuthClearLoginPortalSelectionSchema = Type.Object({
|
|
493
|
+
contractId: Type.String({ minLength: 1 }),
|
|
494
|
+
}, { additionalProperties: false });
|
|
495
|
+
export const AuthClearLoginPortalSelectionResponseSchema = Type.Object({
|
|
496
|
+
success: Type.Boolean(),
|
|
497
|
+
}, { additionalProperties: false });
|
|
498
|
+
export const AuthGetWorkloadPortalDefaultSchema = Type.Object({}, { additionalProperties: false });
|
|
499
|
+
export const AuthGetWorkloadPortalDefaultResponseSchema = Type.Object({
|
|
500
|
+
defaultPortal: WorkloadPortalDefaultSchema,
|
|
501
|
+
}, { additionalProperties: false });
|
|
502
|
+
export const AuthSetWorkloadPortalDefaultSchema = Type.Object({
|
|
503
|
+
portalId: NullablePortalIdSchema,
|
|
504
|
+
}, { additionalProperties: false });
|
|
505
|
+
export const AuthSetWorkloadPortalDefaultResponseSchema = Type.Object({
|
|
506
|
+
defaultPortal: WorkloadPortalDefaultSchema,
|
|
507
|
+
}, { additionalProperties: false });
|
|
508
|
+
export const AuthListWorkloadPortalSelectionsSchema = Type.Object({}, { additionalProperties: false });
|
|
509
|
+
export const AuthListWorkloadPortalSelectionsResponseSchema = Type.Object({
|
|
510
|
+
selections: Type.Array(WorkloadPortalSelectionSchema),
|
|
511
|
+
}, { additionalProperties: false });
|
|
512
|
+
export const AuthSetWorkloadPortalSelectionSchema = Type.Object({
|
|
513
|
+
profileId: Type.String({ minLength: 1 }),
|
|
514
|
+
portalId: NullablePortalIdSchema,
|
|
515
|
+
}, { additionalProperties: false });
|
|
516
|
+
export const AuthSetWorkloadPortalSelectionResponseSchema = Type.Object({
|
|
517
|
+
selection: WorkloadPortalSelectionSchema,
|
|
518
|
+
}, { additionalProperties: false });
|
|
519
|
+
export const AuthClearWorkloadPortalSelectionSchema = Type.Object({
|
|
520
|
+
profileId: Type.String({ minLength: 1 }),
|
|
521
|
+
}, { additionalProperties: false });
|
|
522
|
+
export const AuthClearWorkloadPortalSelectionResponseSchema = Type.Object({
|
|
523
|
+
success: Type.Boolean(),
|
|
524
|
+
}, { additionalProperties: false });
|
|
525
|
+
export const AuthCreateWorkloadProfileSchema = Type.Object({
|
|
526
|
+
profileId: Type.String({ minLength: 1 }),
|
|
527
|
+
contractId: Type.String({ minLength: 1 }),
|
|
528
|
+
allowedDigests: Type.Array(DigestSchema),
|
|
529
|
+
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
530
|
+
contract: Type.Optional(Type.Object({}, { additionalProperties: true })),
|
|
531
|
+
}, { additionalProperties: false });
|
|
532
|
+
export const AuthCreateWorkloadProfileResponseSchema = Type.Object({
|
|
533
|
+
profile: WorkloadProfileSchema,
|
|
534
|
+
}, { additionalProperties: false });
|
|
535
|
+
export const AuthListWorkloadProfilesSchema = Type.Object({
|
|
536
|
+
contractId: Type.Optional(Type.String({ minLength: 1 })),
|
|
537
|
+
disabled: Type.Optional(Type.Boolean()),
|
|
538
|
+
}, { additionalProperties: false });
|
|
539
|
+
export const AuthListWorkloadProfilesResponseSchema = Type.Object({
|
|
540
|
+
profiles: Type.Array(WorkloadProfileSchema),
|
|
541
|
+
}, { additionalProperties: false });
|
|
542
|
+
export const AuthDisableWorkloadProfileSchema = Type.Object({
|
|
543
|
+
profileId: Type.String({ minLength: 1 }),
|
|
544
|
+
}, { additionalProperties: false });
|
|
545
|
+
export const AuthDisableWorkloadProfileResponseSchema = Type.Object({
|
|
546
|
+
success: Type.Boolean(),
|
|
547
|
+
}, { additionalProperties: false });
|
|
548
|
+
export const AuthProvisionWorkloadInstanceSchema = Type.Object({
|
|
549
|
+
profileId: Type.String({ minLength: 1 }),
|
|
550
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
551
|
+
activationKey: Type.String({ minLength: 1 }),
|
|
552
|
+
}, { additionalProperties: false });
|
|
553
|
+
export const AuthProvisionWorkloadInstanceResponseSchema = Type.Object({
|
|
554
|
+
instance: WorkloadSchema,
|
|
555
|
+
}, { additionalProperties: false });
|
|
556
|
+
export const AuthListWorkloadInstancesSchema = Type.Object({
|
|
557
|
+
profileId: Type.Optional(Type.String({ minLength: 1 })),
|
|
558
|
+
state: Type.Optional(Type.Union([
|
|
559
|
+
Type.Literal("registered"),
|
|
560
|
+
Type.Literal("activated"),
|
|
561
|
+
Type.Literal("revoked"),
|
|
562
|
+
Type.Literal("disabled"),
|
|
563
|
+
])),
|
|
564
|
+
}, { additionalProperties: false });
|
|
565
|
+
export const AuthListWorkloadInstancesResponseSchema = Type.Object({
|
|
566
|
+
instances: Type.Array(WorkloadSchema),
|
|
567
|
+
}, { additionalProperties: false });
|
|
568
|
+
export const AuthDisableWorkloadInstanceSchema = Type.Object({
|
|
569
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
570
|
+
}, { additionalProperties: false });
|
|
571
|
+
export const AuthDisableWorkloadInstanceResponseSchema = Type.Object({
|
|
572
|
+
success: Type.Boolean(),
|
|
573
|
+
}, { additionalProperties: false });
|
|
574
|
+
export const AuthActivateWorkloadSchema = Type.Object({
|
|
575
|
+
handoffId: Type.String({ minLength: 1 }),
|
|
576
|
+
}, { additionalProperties: false });
|
|
577
|
+
export const AuthActivateWorkloadResponseSchema = Type.Union([
|
|
578
|
+
Type.Object({
|
|
579
|
+
status: Type.Literal("activated"),
|
|
580
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
581
|
+
profileId: Type.String({ minLength: 1 }),
|
|
582
|
+
activatedAt: IsoDateStringSchema,
|
|
583
|
+
confirmationCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
584
|
+
}, { additionalProperties: false }),
|
|
585
|
+
Type.Object({
|
|
586
|
+
status: Type.Literal("pending_review"),
|
|
587
|
+
reviewId: Type.String({ minLength: 1 }),
|
|
588
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
589
|
+
profileId: Type.String({ minLength: 1 }),
|
|
590
|
+
requestedAt: IsoDateStringSchema,
|
|
591
|
+
}, { additionalProperties: false }),
|
|
592
|
+
Type.Object({
|
|
593
|
+
status: Type.Literal("rejected"),
|
|
594
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
595
|
+
}, { additionalProperties: false }),
|
|
596
|
+
]);
|
|
597
|
+
export const AuthGetWorkloadActivationStatusSchema = Type.Object({
|
|
598
|
+
handoffId: Type.String({ minLength: 1 }),
|
|
599
|
+
}, { additionalProperties: false });
|
|
600
|
+
export const AuthGetWorkloadActivationStatusResponseSchema = AuthActivateWorkloadResponseSchema;
|
|
601
|
+
export const WaitForWorkloadActivationResponseSchema = Type.Union([
|
|
602
|
+
Type.Object({ status: Type.Literal("pending") }, { additionalProperties: false }),
|
|
603
|
+
Type.Object({
|
|
604
|
+
status: Type.Literal("activated"),
|
|
605
|
+
activatedAt: IsoDateStringSchema,
|
|
606
|
+
confirmationCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
607
|
+
connectInfo: WorkloadConnectInfoSchema,
|
|
608
|
+
}, { additionalProperties: false }),
|
|
609
|
+
Type.Object({
|
|
610
|
+
status: Type.Literal("rejected"),
|
|
611
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
612
|
+
}, { additionalProperties: false }),
|
|
613
|
+
]);
|
|
614
|
+
export const AuthGetWorkloadConnectInfoSchema = Type.Object({
|
|
615
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
616
|
+
contractDigest: DigestSchema,
|
|
617
|
+
iat: Type.Number(),
|
|
618
|
+
sig: Type.String({ minLength: 1 }),
|
|
619
|
+
}, { additionalProperties: false });
|
|
620
|
+
export const AuthGetWorkloadConnectInfoResponseSchema = Type.Object({
|
|
621
|
+
status: Type.Literal("ready"),
|
|
622
|
+
connectInfo: WorkloadConnectInfoSchema,
|
|
623
|
+
}, { additionalProperties: false });
|
|
624
|
+
export const AuthListWorkloadActivationsSchema = Type.Object({
|
|
625
|
+
instanceId: Type.Optional(Type.String({ minLength: 1 })),
|
|
626
|
+
profileId: Type.Optional(Type.String({ minLength: 1 })),
|
|
627
|
+
state: Type.Optional(Type.Union([Type.Literal("activated"), Type.Literal("revoked")])),
|
|
628
|
+
}, { additionalProperties: false });
|
|
629
|
+
export const AuthListWorkloadActivationsResponseSchema = Type.Object({
|
|
630
|
+
activations: Type.Array(WorkloadActivationRecordSchema),
|
|
631
|
+
}, { additionalProperties: false });
|
|
632
|
+
export const AuthRevokeWorkloadActivationSchema = Type.Object({
|
|
633
|
+
instanceId: Type.String({ minLength: 1 }),
|
|
634
|
+
}, { additionalProperties: false });
|
|
635
|
+
export const AuthRevokeWorkloadActivationResponseSchema = Type.Object({
|
|
636
|
+
success: Type.Boolean(),
|
|
637
|
+
}, { additionalProperties: false });
|
|
638
|
+
export const AuthListWorkloadActivationReviewsSchema = Type.Object({
|
|
639
|
+
instanceId: Type.Optional(Type.String({ minLength: 1 })),
|
|
640
|
+
profileId: Type.Optional(Type.String({ minLength: 1 })),
|
|
641
|
+
state: Type.Optional(Type.Union([
|
|
642
|
+
Type.Literal("pending"),
|
|
643
|
+
Type.Literal("approved"),
|
|
644
|
+
Type.Literal("rejected"),
|
|
645
|
+
])),
|
|
646
|
+
}, { additionalProperties: false });
|
|
647
|
+
export const AuthListWorkloadActivationReviewsResponseSchema = Type.Object({
|
|
648
|
+
reviews: Type.Array(WorkloadActivationReviewSchema),
|
|
649
|
+
}, { additionalProperties: false });
|
|
650
|
+
export const AuthDecideWorkloadActivationReviewSchema = Type.Object({
|
|
651
|
+
reviewId: Type.String({ minLength: 1 }),
|
|
652
|
+
decision: Type.Union([Type.Literal("approve"), Type.Literal("reject")]),
|
|
653
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
654
|
+
}, { additionalProperties: false });
|
|
655
|
+
export const AuthDecideWorkloadActivationReviewResponseSchema = Type.Object({
|
|
656
|
+
review: WorkloadActivationReviewSchema,
|
|
657
|
+
activation: Type.Optional(WorkloadActivationRecordSchema),
|
|
658
|
+
confirmationCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
659
|
+
}, { additionalProperties: false });
|
|
660
|
+
export const UserViewSchema = Type.Object({
|
|
661
|
+
origin: Type.String(),
|
|
662
|
+
id: Type.String(),
|
|
663
|
+
name: Type.Optional(Type.String()),
|
|
664
|
+
email: Type.Optional(Type.String()),
|
|
665
|
+
active: Type.Boolean(),
|
|
666
|
+
capabilities: Type.Array(Type.String()),
|
|
667
|
+
}, { additionalProperties: false });
|
|
668
|
+
export const AuthListUsersSchema = Type.Object({}, {
|
|
669
|
+
additionalProperties: false,
|
|
670
|
+
});
|
|
671
|
+
export const AuthListUsersResponseSchema = Type.Object({
|
|
672
|
+
users: Type.Array(UserViewSchema),
|
|
673
|
+
}, { additionalProperties: false });
|
|
674
|
+
export const AuthUpdateUserSchema = Type.Object({
|
|
675
|
+
origin: Type.String(),
|
|
676
|
+
id: Type.String(),
|
|
677
|
+
active: Type.Optional(Type.Boolean()),
|
|
678
|
+
capabilities: Type.Optional(Type.Array(Type.String())),
|
|
679
|
+
}, { additionalProperties: false });
|
|
680
|
+
export const AuthUpdateUserResponseSchema = Type.Object({
|
|
681
|
+
success: Type.Boolean(),
|
|
682
|
+
}, { additionalProperties: false });
|