@vorionsys/platform-core 0.1.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/LICENSE +190 -0
- package/README.md +88 -0
- package/dist/a2a/attestation.d.ts +145 -0
- package/dist/a2a/attestation.d.ts.map +1 -0
- package/dist/a2a/attestation.js +353 -0
- package/dist/a2a/attestation.js.map +1 -0
- package/dist/a2a/chain-of-trust.d.ts +143 -0
- package/dist/a2a/chain-of-trust.d.ts.map +1 -0
- package/dist/a2a/chain-of-trust.js +422 -0
- package/dist/a2a/chain-of-trust.js.map +1 -0
- package/dist/a2a/index.d.ts +15 -0
- package/dist/a2a/index.d.ts.map +1 -0
- package/dist/a2a/index.js +23 -0
- package/dist/a2a/index.js.map +1 -0
- package/dist/a2a/openapi.d.ts +22 -0
- package/dist/a2a/openapi.d.ts.map +1 -0
- package/dist/a2a/openapi.js +1133 -0
- package/dist/a2a/openapi.js.map +1 -0
- package/dist/a2a/router.d.ts +167 -0
- package/dist/a2a/router.d.ts.map +1 -0
- package/dist/a2a/router.js +454 -0
- package/dist/a2a/router.js.map +1 -0
- package/dist/a2a/routes.d.ts +11 -0
- package/dist/a2a/routes.d.ts.map +1 -0
- package/dist/a2a/routes.js +442 -0
- package/dist/a2a/routes.js.map +1 -0
- package/dist/a2a/trust-negotiation.d.ts +119 -0
- package/dist/a2a/trust-negotiation.d.ts.map +1 -0
- package/dist/a2a/trust-negotiation.js +425 -0
- package/dist/a2a/trust-negotiation.js.map +1 -0
- package/dist/a2a/types.d.ts +413 -0
- package/dist/a2a/types.d.ts.map +1 -0
- package/dist/a2a/types.js +38 -0
- package/dist/a2a/types.js.map +1 -0
- package/dist/agent-registry/a3i-cache.d.ts +113 -0
- package/dist/agent-registry/a3i-cache.d.ts.map +1 -0
- package/dist/agent-registry/a3i-cache.js +305 -0
- package/dist/agent-registry/a3i-cache.js.map +1 -0
- package/dist/agent-registry/index.d.ts +14 -0
- package/dist/agent-registry/index.d.ts.map +1 -0
- package/dist/agent-registry/index.js +17 -0
- package/dist/agent-registry/index.js.map +1 -0
- package/dist/agent-registry/openapi.d.ts +23 -0
- package/dist/agent-registry/openapi.d.ts.map +1 -0
- package/dist/agent-registry/openapi.js +1377 -0
- package/dist/agent-registry/openapi.js.map +1 -0
- package/dist/agent-registry/routes.d.ts +10 -0
- package/dist/agent-registry/routes.d.ts.map +1 -0
- package/dist/agent-registry/routes.js +485 -0
- package/dist/agent-registry/routes.js.map +1 -0
- package/dist/agent-registry/service.d.ts +159 -0
- package/dist/agent-registry/service.d.ts.map +1 -0
- package/dist/agent-registry/service.js +652 -0
- package/dist/agent-registry/service.js.map +1 -0
- package/dist/agent-registry/tenant-service.d.ts +104 -0
- package/dist/agent-registry/tenant-service.d.ts.map +1 -0
- package/dist/agent-registry/tenant-service.js +313 -0
- package/dist/agent-registry/tenant-service.js.map +1 -0
- package/dist/api/auth.d.ts +55 -0
- package/dist/api/auth.d.ts.map +1 -0
- package/dist/api/auth.js +322 -0
- package/dist/api/auth.js.map +1 -0
- package/dist/api/errors.d.ts +146 -0
- package/dist/api/errors.d.ts.map +1 -0
- package/dist/api/errors.js +464 -0
- package/dist/api/errors.js.map +1 -0
- package/dist/api/index.d.ts +15 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +19 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/middleware/api-key-enforcement.d.ts +131 -0
- package/dist/api/middleware/api-key-enforcement.d.ts.map +1 -0
- package/dist/api/middleware/api-key-enforcement.js +674 -0
- package/dist/api/middleware/api-key-enforcement.js.map +1 -0
- package/dist/api/middleware/audit.d.ts +151 -0
- package/dist/api/middleware/audit.d.ts.map +1 -0
- package/dist/api/middleware/audit.js +384 -0
- package/dist/api/middleware/audit.js.map +1 -0
- package/dist/api/middleware/dpop-enforcement.d.ts +176 -0
- package/dist/api/middleware/dpop-enforcement.d.ts.map +1 -0
- package/dist/api/middleware/dpop-enforcement.js +596 -0
- package/dist/api/middleware/dpop-enforcement.js.map +1 -0
- package/dist/api/middleware/index.d.ts +24 -0
- package/dist/api/middleware/index.d.ts.map +1 -0
- package/dist/api/middleware/index.js +43 -0
- package/dist/api/middleware/index.js.map +1 -0
- package/dist/api/middleware/metrics.d.ts +41 -0
- package/dist/api/middleware/metrics.d.ts.map +1 -0
- package/dist/api/middleware/metrics.js +150 -0
- package/dist/api/middleware/metrics.js.map +1 -0
- package/dist/api/middleware/rate-limits.d.ts +224 -0
- package/dist/api/middleware/rate-limits.d.ts.map +1 -0
- package/dist/api/middleware/rate-limits.js +686 -0
- package/dist/api/middleware/rate-limits.js.map +1 -0
- package/dist/api/middleware/rateLimit.d.ts +165 -0
- package/dist/api/middleware/rateLimit.d.ts.map +1 -0
- package/dist/api/middleware/rateLimit.js +477 -0
- package/dist/api/middleware/rateLimit.js.map +1 -0
- package/dist/api/middleware/redis-rate-limiter.d.ts +279 -0
- package/dist/api/middleware/redis-rate-limiter.d.ts.map +1 -0
- package/dist/api/middleware/redis-rate-limiter.js +1074 -0
- package/dist/api/middleware/redis-rate-limiter.js.map +1 -0
- package/dist/api/middleware/security-headers.d.ts +248 -0
- package/dist/api/middleware/security-headers.d.ts.map +1 -0
- package/dist/api/middleware/security-headers.js +410 -0
- package/dist/api/middleware/security-headers.js.map +1 -0
- package/dist/api/middleware/security.d.ts +156 -0
- package/dist/api/middleware/security.d.ts.map +1 -0
- package/dist/api/middleware/security.js +412 -0
- package/dist/api/middleware/security.js.map +1 -0
- package/dist/api/middleware/validation.d.ts +132 -0
- package/dist/api/middleware/validation.d.ts.map +1 -0
- package/dist/api/middleware/validation.js +363 -0
- package/dist/api/middleware/validation.js.map +1 -0
- package/dist/api/middleware/webhook-verify.d.ts +130 -0
- package/dist/api/middleware/webhook-verify.d.ts.map +1 -0
- package/dist/api/middleware/webhook-verify.js +366 -0
- package/dist/api/middleware/webhook-verify.js.map +1 -0
- package/dist/api/rate-limit.d.ts +115 -0
- package/dist/api/rate-limit.d.ts.map +1 -0
- package/dist/api/rate-limit.js +335 -0
- package/dist/api/rate-limit.js.map +1 -0
- package/dist/api/server.d.ts +37 -0
- package/dist/api/server.d.ts.map +1 -0
- package/dist/api/server.js +2086 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/validation.d.ts +243 -0
- package/dist/api/validation.d.ts.map +1 -0
- package/dist/api/validation.js +247 -0
- package/dist/api/validation.js.map +1 -0
- package/dist/audit/compliance-reporter.d.ts +271 -0
- package/dist/audit/compliance-reporter.d.ts.map +1 -0
- package/dist/audit/compliance-reporter.js +587 -0
- package/dist/audit/compliance-reporter.js.map +1 -0
- package/dist/audit/db-store.d.ts +689 -0
- package/dist/audit/db-store.d.ts.map +1 -0
- package/dist/audit/db-store.js +589 -0
- package/dist/audit/db-store.js.map +1 -0
- package/dist/audit/event-schema.d.ts +605 -0
- package/dist/audit/event-schema.d.ts.map +1 -0
- package/dist/audit/event-schema.js +566 -0
- package/dist/audit/event-schema.js.map +1 -0
- package/dist/audit/index.d.ts +16 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +44 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/security-events.d.ts +1624 -0
- package/dist/audit/security-events.d.ts.map +1 -0
- package/dist/audit/security-events.js +775 -0
- package/dist/audit/security-events.js.map +1 -0
- package/dist/audit/security-logger.d.ts +288 -0
- package/dist/audit/security-logger.d.ts.map +1 -0
- package/dist/audit/security-logger.js +820 -0
- package/dist/audit/security-logger.js.map +1 -0
- package/dist/audit/service.d.ts +206 -0
- package/dist/audit/service.d.ts.map +1 -0
- package/dist/audit/service.js +756 -0
- package/dist/audit/service.js.map +1 -0
- package/dist/audit/siem/elastic.d.ts +94 -0
- package/dist/audit/siem/elastic.d.ts.map +1 -0
- package/dist/audit/siem/elastic.js +412 -0
- package/dist/audit/siem/elastic.js.map +1 -0
- package/dist/audit/siem/index.d.ts +179 -0
- package/dist/audit/siem/index.d.ts.map +1 -0
- package/dist/audit/siem/index.js +368 -0
- package/dist/audit/siem/index.js.map +1 -0
- package/dist/audit/siem/loki.d.ts +100 -0
- package/dist/audit/siem/loki.d.ts.map +1 -0
- package/dist/audit/siem/loki.js +406 -0
- package/dist/audit/siem/loki.js.map +1 -0
- package/dist/audit/siem/splunk.d.ts +91 -0
- package/dist/audit/siem/splunk.d.ts.map +1 -0
- package/dist/audit/siem/splunk.js +375 -0
- package/dist/audit/siem/splunk.js.map +1 -0
- package/dist/audit/siem/types.d.ts +547 -0
- package/dist/audit/siem/types.d.ts.map +1 -0
- package/dist/audit/siem/types.js +270 -0
- package/dist/audit/siem/types.js.map +1 -0
- package/dist/audit/types.d.ts +410 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +130 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/auth/index.d.ts +10 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +10 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/mfa/index.d.ts +9 -0
- package/dist/auth/mfa/index.d.ts.map +1 -0
- package/dist/auth/mfa/index.js +9 -0
- package/dist/auth/mfa/index.js.map +1 -0
- package/dist/auth/mfa/totp.d.ts +222 -0
- package/dist/auth/mfa/totp.d.ts.map +1 -0
- package/dist/auth/mfa/totp.js +329 -0
- package/dist/auth/mfa/totp.js.map +1 -0
- package/dist/auth/piv-cac/card-removal-handler.d.ts +197 -0
- package/dist/auth/piv-cac/card-removal-handler.d.ts.map +1 -0
- package/dist/auth/piv-cac/card-removal-handler.js +560 -0
- package/dist/auth/piv-cac/card-removal-handler.js.map +1 -0
- package/dist/auth/piv-cac/certificate-auth.d.ts +117 -0
- package/dist/auth/piv-cac/certificate-auth.d.ts.map +1 -0
- package/dist/auth/piv-cac/certificate-auth.js +727 -0
- package/dist/auth/piv-cac/certificate-auth.js.map +1 -0
- package/dist/auth/piv-cac/certificate-mapper.d.ts +141 -0
- package/dist/auth/piv-cac/certificate-mapper.d.ts.map +1 -0
- package/dist/auth/piv-cac/certificate-mapper.js +569 -0
- package/dist/auth/piv-cac/certificate-mapper.js.map +1 -0
- package/dist/auth/piv-cac/crl-validator.d.ts +195 -0
- package/dist/auth/piv-cac/crl-validator.d.ts.map +1 -0
- package/dist/auth/piv-cac/crl-validator.js +824 -0
- package/dist/auth/piv-cac/crl-validator.js.map +1 -0
- package/dist/auth/piv-cac/index.d.ts +72 -0
- package/dist/auth/piv-cac/index.d.ts.map +1 -0
- package/dist/auth/piv-cac/index.js +172 -0
- package/dist/auth/piv-cac/index.js.map +1 -0
- package/dist/auth/piv-cac/ocsp-validator.d.ts +183 -0
- package/dist/auth/piv-cac/ocsp-validator.d.ts.map +1 -0
- package/dist/auth/piv-cac/ocsp-validator.js +657 -0
- package/dist/auth/piv-cac/ocsp-validator.js.map +1 -0
- package/dist/auth/piv-cac/piv-middleware.d.ts +95 -0
- package/dist/auth/piv-cac/piv-middleware.d.ts.map +1 -0
- package/dist/auth/piv-cac/piv-middleware.js +524 -0
- package/dist/auth/piv-cac/piv-middleware.js.map +1 -0
- package/dist/auth/piv-cac/piv-routes.d.ts +29 -0
- package/dist/auth/piv-cac/piv-routes.d.ts.map +1 -0
- package/dist/auth/piv-cac/piv-routes.js +534 -0
- package/dist/auth/piv-cac/piv-routes.js.map +1 -0
- package/dist/auth/piv-cac/pkcs11-provider.d.ts +280 -0
- package/dist/auth/piv-cac/pkcs11-provider.d.ts.map +1 -0
- package/dist/auth/piv-cac/pkcs11-provider.js +535 -0
- package/dist/auth/piv-cac/pkcs11-provider.js.map +1 -0
- package/dist/auth/piv-cac/types.d.ts +4098 -0
- package/dist/auth/piv-cac/types.d.ts.map +1 -0
- package/dist/auth/piv-cac/types.js +495 -0
- package/dist/auth/piv-cac/types.js.map +1 -0
- package/dist/basis/evaluator.d.ts +72 -0
- package/dist/basis/evaluator.d.ts.map +1 -0
- package/dist/basis/evaluator.js +275 -0
- package/dist/basis/evaluator.js.map +1 -0
- package/dist/basis/expression-evaluator.d.ts +77 -0
- package/dist/basis/expression-evaluator.d.ts.map +1 -0
- package/dist/basis/expression-evaluator.js +826 -0
- package/dist/basis/expression-evaluator.js.map +1 -0
- package/dist/basis/index.d.ts +13 -0
- package/dist/basis/index.d.ts.map +1 -0
- package/dist/basis/index.js +13 -0
- package/dist/basis/index.js.map +1 -0
- package/dist/basis/parser.d.ts +376 -0
- package/dist/basis/parser.d.ts.map +1 -0
- package/dist/basis/parser.js +178 -0
- package/dist/basis/parser.js.map +1 -0
- package/dist/basis/types.d.ts +115 -0
- package/dist/basis/types.d.ts.map +1 -0
- package/dist/basis/types.js +5 -0
- package/dist/basis/types.js.map +1 -0
- package/dist/car-extensions/aci-string-extensions.d.ts +10 -0
- package/dist/car-extensions/aci-string-extensions.d.ts.map +1 -0
- package/dist/car-extensions/aci-string-extensions.js +24 -0
- package/dist/car-extensions/aci-string-extensions.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/audit.d.ts +88 -0
- package/dist/car-extensions/builtin-extensions/audit.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/audit.js +445 -0
- package/dist/car-extensions/builtin-extensions/audit.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/governance.d.ts +32 -0
- package/dist/car-extensions/builtin-extensions/governance.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/governance.js +534 -0
- package/dist/car-extensions/builtin-extensions/governance.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/monitoring.d.ts +43 -0
- package/dist/car-extensions/builtin-extensions/monitoring.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/monitoring.js +416 -0
- package/dist/car-extensions/builtin-extensions/monitoring.js.map +1 -0
- package/dist/car-extensions/car-string-extensions.d.ts +355 -0
- package/dist/car-extensions/car-string-extensions.d.ts.map +1 -0
- package/dist/car-extensions/car-string-extensions.js +473 -0
- package/dist/car-extensions/car-string-extensions.js.map +1 -0
- package/dist/car-extensions/executor.d.ts +208 -0
- package/dist/car-extensions/executor.d.ts.map +1 -0
- package/dist/car-extensions/executor.js +789 -0
- package/dist/car-extensions/executor.js.map +1 -0
- package/dist/car-extensions/index.d.ts +94 -0
- package/dist/car-extensions/index.d.ts.map +1 -0
- package/dist/car-extensions/index.js +159 -0
- package/dist/car-extensions/index.js.map +1 -0
- package/dist/car-extensions/registry.d.ts +217 -0
- package/dist/car-extensions/registry.d.ts.map +1 -0
- package/dist/car-extensions/registry.js +450 -0
- package/dist/car-extensions/registry.js.map +1 -0
- package/dist/car-extensions/service.d.ts +220 -0
- package/dist/car-extensions/service.d.ts.map +1 -0
- package/dist/car-extensions/service.js +486 -0
- package/dist/car-extensions/service.js.map +1 -0
- package/dist/car-extensions/types.d.ts +2269 -0
- package/dist/car-extensions/types.d.ts.map +1 -0
- package/dist/car-extensions/types.js +389 -0
- package/dist/car-extensions/types.js.map +1 -0
- package/dist/cognigate/index.d.ts +192 -0
- package/dist/cognigate/index.d.ts.map +1 -0
- package/dist/cognigate/index.js +435 -0
- package/dist/cognigate/index.js.map +1 -0
- package/dist/cognigate/sandbox/capability-broker.d.ts +166 -0
- package/dist/cognigate/sandbox/capability-broker.d.ts.map +1 -0
- package/dist/cognigate/sandbox/capability-broker.js +461 -0
- package/dist/cognigate/sandbox/capability-broker.js.map +1 -0
- package/dist/cognigate/sandbox/filesystem-policy.d.ts +139 -0
- package/dist/cognigate/sandbox/filesystem-policy.d.ts.map +1 -0
- package/dist/cognigate/sandbox/filesystem-policy.js +426 -0
- package/dist/cognigate/sandbox/filesystem-policy.js.map +1 -0
- package/dist/cognigate/sandbox/index.d.ts +17 -0
- package/dist/cognigate/sandbox/index.d.ts.map +1 -0
- package/dist/cognigate/sandbox/index.js +24 -0
- package/dist/cognigate/sandbox/index.js.map +1 -0
- package/dist/cognigate/sandbox/network-policy.d.ts +126 -0
- package/dist/cognigate/sandbox/network-policy.d.ts.map +1 -0
- package/dist/cognigate/sandbox/network-policy.js +382 -0
- package/dist/cognigate/sandbox/network-policy.js.map +1 -0
- package/dist/cognigate/sandbox/sandbox-service.d.ts +70 -0
- package/dist/cognigate/sandbox/sandbox-service.d.ts.map +1 -0
- package/dist/cognigate/sandbox/sandbox-service.js +472 -0
- package/dist/cognigate/sandbox/sandbox-service.js.map +1 -0
- package/dist/cognigate/sandbox/types.d.ts +376 -0
- package/dist/cognigate/sandbox/types.d.ts.map +1 -0
- package/dist/cognigate/sandbox/types.js +179 -0
- package/dist/cognigate/sandbox/types.js.map +1 -0
- package/dist/common/adapters/index.d.ts +34 -0
- package/dist/common/adapters/index.d.ts.map +1 -0
- package/dist/common/adapters/index.js +46 -0
- package/dist/common/adapters/index.js.map +1 -0
- package/dist/common/adapters/memory-cache.d.ts +91 -0
- package/dist/common/adapters/memory-cache.d.ts.map +1 -0
- package/dist/common/adapters/memory-cache.js +201 -0
- package/dist/common/adapters/memory-cache.js.map +1 -0
- package/dist/common/adapters/memory-lock.d.ts +75 -0
- package/dist/common/adapters/memory-lock.d.ts.map +1 -0
- package/dist/common/adapters/memory-lock.js +219 -0
- package/dist/common/adapters/memory-lock.js.map +1 -0
- package/dist/common/adapters/memory-queue.d.ts +64 -0
- package/dist/common/adapters/memory-queue.d.ts.map +1 -0
- package/dist/common/adapters/memory-queue.js +233 -0
- package/dist/common/adapters/memory-queue.js.map +1 -0
- package/dist/common/adapters/memory-ratelimit.d.ts +78 -0
- package/dist/common/adapters/memory-ratelimit.d.ts.map +1 -0
- package/dist/common/adapters/memory-ratelimit.js +196 -0
- package/dist/common/adapters/memory-ratelimit.js.map +1 -0
- package/dist/common/adapters/memory-session.d.ts +105 -0
- package/dist/common/adapters/memory-session.d.ts.map +1 -0
- package/dist/common/adapters/memory-session.js +302 -0
- package/dist/common/adapters/memory-session.js.map +1 -0
- package/dist/common/adapters/provider.d.ts +47 -0
- package/dist/common/adapters/provider.d.ts.map +1 -0
- package/dist/common/adapters/provider.js +347 -0
- package/dist/common/adapters/provider.js.map +1 -0
- package/dist/common/adapters/types.d.ts +247 -0
- package/dist/common/adapters/types.d.ts.map +1 -0
- package/dist/common/adapters/types.js +11 -0
- package/dist/common/adapters/types.js.map +1 -0
- package/dist/common/alerts.d.ts +57 -0
- package/dist/common/alerts.d.ts.map +1 -0
- package/dist/common/alerts.js +216 -0
- package/dist/common/alerts.js.map +1 -0
- package/dist/common/authorization.d.ts +137 -0
- package/dist/common/authorization.d.ts.map +1 -0
- package/dist/common/authorization.js +270 -0
- package/dist/common/authorization.js.map +1 -0
- package/dist/common/canonical-bridge.d.ts +153 -0
- package/dist/common/canonical-bridge.d.ts.map +1 -0
- package/dist/common/canonical-bridge.js +236 -0
- package/dist/common/canonical-bridge.js.map +1 -0
- package/dist/common/canonical-json.d.ts +64 -0
- package/dist/common/canonical-json.d.ts.map +1 -0
- package/dist/common/canonical-json.js +95 -0
- package/dist/common/canonical-json.js.map +1 -0
- package/dist/common/circuit-breaker.d.ts +320 -0
- package/dist/common/circuit-breaker.d.ts.map +1 -0
- package/dist/common/circuit-breaker.js +887 -0
- package/dist/common/circuit-breaker.js.map +1 -0
- package/dist/common/config.d.ts +2053 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +1314 -0
- package/dist/common/config.js.map +1 -0
- package/dist/common/contracts/index.d.ts +2 -0
- package/dist/common/contracts/index.d.ts.map +1 -0
- package/dist/common/contracts/index.js +2 -0
- package/dist/common/contracts/index.js.map +1 -0
- package/dist/common/contracts/output.d.ts +81 -0
- package/dist/common/contracts/output.d.ts.map +1 -0
- package/dist/common/contracts/output.js +38 -0
- package/dist/common/contracts/output.js.map +1 -0
- package/dist/common/crypto-utils.d.ts +103 -0
- package/dist/common/crypto-utils.d.ts.map +1 -0
- package/dist/common/crypto-utils.js +275 -0
- package/dist/common/crypto-utils.js.map +1 -0
- package/dist/common/crypto.d.ts +70 -0
- package/dist/common/crypto.d.ts.map +1 -0
- package/dist/common/crypto.js +201 -0
- package/dist/common/crypto.js.map +1 -0
- package/dist/common/database-resilience.d.ts +156 -0
- package/dist/common/database-resilience.d.ts.map +1 -0
- package/dist/common/database-resilience.js +269 -0
- package/dist/common/database-resilience.js.map +1 -0
- package/dist/common/db-metrics.d.ts +90 -0
- package/dist/common/db-metrics.d.ts.map +1 -0
- package/dist/common/db-metrics.js +219 -0
- package/dist/common/db-metrics.js.map +1 -0
- package/dist/common/db-pool.d.ts +307 -0
- package/dist/common/db-pool.d.ts.map +1 -0
- package/dist/common/db-pool.js +879 -0
- package/dist/common/db-pool.js.map +1 -0
- package/dist/common/db.d.ts +105 -0
- package/dist/common/db.d.ts.map +1 -0
- package/dist/common/db.js +216 -0
- package/dist/common/db.js.map +1 -0
- package/dist/common/debug-auth-middleware.d.ts +111 -0
- package/dist/common/debug-auth-middleware.d.ts.map +1 -0
- package/dist/common/debug-auth-middleware.js +285 -0
- package/dist/common/debug-auth-middleware.js.map +1 -0
- package/dist/common/di.d.ts +202 -0
- package/dist/common/di.d.ts.map +1 -0
- package/dist/common/di.js +219 -0
- package/dist/common/di.js.map +1 -0
- package/dist/common/encryption.d.ts +233 -0
- package/dist/common/encryption.d.ts.map +1 -0
- package/dist/common/encryption.js +527 -0
- package/dist/common/encryption.js.map +1 -0
- package/dist/common/error-sanitizer.d.ts +67 -0
- package/dist/common/error-sanitizer.d.ts.map +1 -0
- package/dist/common/error-sanitizer.js +298 -0
- package/dist/common/error-sanitizer.js.map +1 -0
- package/dist/common/errors.d.ts +229 -0
- package/dist/common/errors.d.ts.map +1 -0
- package/dist/common/errors.js +349 -0
- package/dist/common/errors.js.map +1 -0
- package/dist/common/expression/evaluator.d.ts +58 -0
- package/dist/common/expression/evaluator.d.ts.map +1 -0
- package/dist/common/expression/evaluator.js +326 -0
- package/dist/common/expression/evaluator.js.map +1 -0
- package/dist/common/expression/index.d.ts +180 -0
- package/dist/common/expression/index.d.ts.map +1 -0
- package/dist/common/expression/index.js +198 -0
- package/dist/common/expression/index.js.map +1 -0
- package/dist/common/expression/lexer.d.ts +69 -0
- package/dist/common/expression/lexer.d.ts.map +1 -0
- package/dist/common/expression/lexer.js +255 -0
- package/dist/common/expression/lexer.js.map +1 -0
- package/dist/common/expression/parser.d.ts +133 -0
- package/dist/common/expression/parser.d.ts.map +1 -0
- package/dist/common/expression/parser.js +293 -0
- package/dist/common/expression/parser.js.map +1 -0
- package/dist/common/group-membership.d.ts +119 -0
- package/dist/common/group-membership.d.ts.map +1 -0
- package/dist/common/group-membership.js +250 -0
- package/dist/common/group-membership.js.map +1 -0
- package/dist/common/index.d.ts +14 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +15 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/leader-election.d.ts +40 -0
- package/dist/common/leader-election.d.ts.map +1 -0
- package/dist/common/leader-election.js +232 -0
- package/dist/common/leader-election.js.map +1 -0
- package/dist/common/lock.d.ts +77 -0
- package/dist/common/lock.d.ts.map +1 -0
- package/dist/common/lock.js +167 -0
- package/dist/common/lock.js.map +1 -0
- package/dist/common/logger.d.ts +19 -0
- package/dist/common/logger.d.ts.map +1 -0
- package/dist/common/logger.js +80 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/metrics-registry.d.ts +48 -0
- package/dist/common/metrics-registry.d.ts.map +1 -0
- package/dist/common/metrics-registry.js +77 -0
- package/dist/common/metrics-registry.js.map +1 -0
- package/dist/common/metrics.d.ts +204 -0
- package/dist/common/metrics.d.ts.map +1 -0
- package/dist/common/metrics.js +497 -0
- package/dist/common/metrics.js.map +1 -0
- package/dist/common/operation-tracker.d.ts +137 -0
- package/dist/common/operation-tracker.d.ts.map +1 -0
- package/dist/common/operation-tracker.js +366 -0
- package/dist/common/operation-tracker.js.map +1 -0
- package/dist/common/provenance/chain.d.ts +54 -0
- package/dist/common/provenance/chain.d.ts.map +1 -0
- package/dist/common/provenance/chain.js +252 -0
- package/dist/common/provenance/chain.js.map +1 -0
- package/dist/common/provenance/index.d.ts +14 -0
- package/dist/common/provenance/index.d.ts.map +1 -0
- package/dist/common/provenance/index.js +19 -0
- package/dist/common/provenance/index.js.map +1 -0
- package/dist/common/provenance/query.d.ts +111 -0
- package/dist/common/provenance/query.d.ts.map +1 -0
- package/dist/common/provenance/query.js +310 -0
- package/dist/common/provenance/query.js.map +1 -0
- package/dist/common/provenance/storage.d.ts +297 -0
- package/dist/common/provenance/storage.d.ts.map +1 -0
- package/dist/common/provenance/storage.js +436 -0
- package/dist/common/provenance/storage.js.map +1 -0
- package/dist/common/provenance/tracker.d.ts +57 -0
- package/dist/common/provenance/tracker.d.ts.map +1 -0
- package/dist/common/provenance/tracker.js +209 -0
- package/dist/common/provenance/tracker.js.map +1 -0
- package/dist/common/provenance/types.d.ts +146 -0
- package/dist/common/provenance/types.d.ts.map +1 -0
- package/dist/common/provenance/types.js +10 -0
- package/dist/common/provenance/types.js.map +1 -0
- package/dist/common/random.d.ts +84 -0
- package/dist/common/random.d.ts.map +1 -0
- package/dist/common/random.js +130 -0
- package/dist/common/random.js.map +1 -0
- package/dist/common/redaction.d.ts +49 -0
- package/dist/common/redaction.d.ts.map +1 -0
- package/dist/common/redaction.js +217 -0
- package/dist/common/redaction.js.map +1 -0
- package/dist/common/redis-cluster.d.ts +538 -0
- package/dist/common/redis-cluster.d.ts.map +1 -0
- package/dist/common/redis-cluster.js +1539 -0
- package/dist/common/redis-cluster.js.map +1 -0
- package/dist/common/redis-resilience.d.ts +270 -0
- package/dist/common/redis-resilience.d.ts.map +1 -0
- package/dist/common/redis-resilience.js +586 -0
- package/dist/common/redis-resilience.js.map +1 -0
- package/dist/common/redis.d.ts +19 -0
- package/dist/common/redis.d.ts.map +1 -0
- package/dist/common/redis.js +73 -0
- package/dist/common/redis.js.map +1 -0
- package/dist/common/safe-json.d.ts +246 -0
- package/dist/common/safe-json.d.ts.map +1 -0
- package/dist/common/safe-json.js +442 -0
- package/dist/common/safe-json.js.map +1 -0
- package/dist/common/secret-generator.d.ts +142 -0
- package/dist/common/secret-generator.d.ts.map +1 -0
- package/dist/common/secret-generator.js +286 -0
- package/dist/common/secret-generator.js.map +1 -0
- package/dist/common/secure-fetch.d.ts +182 -0
- package/dist/common/secure-fetch.d.ts.map +1 -0
- package/dist/common/secure-fetch.js +657 -0
- package/dist/common/secure-fetch.js.map +1 -0
- package/dist/common/security-mode.d.ts +151 -0
- package/dist/common/security-mode.d.ts.map +1 -0
- package/dist/common/security-mode.js +482 -0
- package/dist/common/security-mode.js.map +1 -0
- package/dist/common/telemetry/index.d.ts +82 -0
- package/dist/common/telemetry/index.d.ts.map +1 -0
- package/dist/common/telemetry/index.js +198 -0
- package/dist/common/telemetry/index.js.map +1 -0
- package/dist/common/telemetry/instrumentation.d.ts +167 -0
- package/dist/common/telemetry/instrumentation.d.ts.map +1 -0
- package/dist/common/telemetry/instrumentation.js +492 -0
- package/dist/common/telemetry/instrumentation.js.map +1 -0
- package/dist/common/telemetry/metrics-bridge.d.ts +227 -0
- package/dist/common/telemetry/metrics-bridge.d.ts.map +1 -0
- package/dist/common/telemetry/metrics-bridge.js +437 -0
- package/dist/common/telemetry/metrics-bridge.js.map +1 -0
- package/dist/common/telemetry/middleware.d.ts +114 -0
- package/dist/common/telemetry/middleware.d.ts.map +1 -0
- package/dist/common/telemetry/middleware.js +353 -0
- package/dist/common/telemetry/middleware.js.map +1 -0
- package/dist/common/telemetry/propagation.d.ts +221 -0
- package/dist/common/telemetry/propagation.d.ts.map +1 -0
- package/dist/common/telemetry/propagation.js +409 -0
- package/dist/common/telemetry/propagation.js.map +1 -0
- package/dist/common/telemetry/spans.d.ts +295 -0
- package/dist/common/telemetry/spans.d.ts.map +1 -0
- package/dist/common/telemetry/spans.js +439 -0
- package/dist/common/telemetry/spans.js.map +1 -0
- package/dist/common/telemetry/tracer.d.ts +155 -0
- package/dist/common/telemetry/tracer.d.ts.map +1 -0
- package/dist/common/telemetry/tracer.js +343 -0
- package/dist/common/telemetry/tracer.js.map +1 -0
- package/dist/common/telemetry.d.ts +15 -0
- package/dist/common/telemetry.d.ts.map +1 -0
- package/dist/common/telemetry.js +61 -0
- package/dist/common/telemetry.js.map +1 -0
- package/dist/common/tenant-context.d.ts +253 -0
- package/dist/common/tenant-context.d.ts.map +1 -0
- package/dist/common/tenant-context.js +259 -0
- package/dist/common/tenant-context.js.map +1 -0
- package/dist/common/tenant-verification.d.ts +86 -0
- package/dist/common/tenant-verification.d.ts.map +1 -0
- package/dist/common/tenant-verification.js +184 -0
- package/dist/common/tenant-verification.js.map +1 -0
- package/dist/common/timeout.d.ts +40 -0
- package/dist/common/timeout.d.ts.map +1 -0
- package/dist/common/timeout.js +82 -0
- package/dist/common/timeout.js.map +1 -0
- package/dist/common/token-revocation.d.ts +44 -0
- package/dist/common/token-revocation.d.ts.map +1 -0
- package/dist/common/token-revocation.js +169 -0
- package/dist/common/token-revocation.js.map +1 -0
- package/dist/common/trace.d.ts +149 -0
- package/dist/common/trace.d.ts.map +1 -0
- package/dist/common/trace.js +328 -0
- package/dist/common/trace.js.map +1 -0
- package/dist/common/trust-cache.d.ts +263 -0
- package/dist/common/trust-cache.d.ts.map +1 -0
- package/dist/common/trust-cache.js +670 -0
- package/dist/common/trust-cache.js.map +1 -0
- package/dist/common/types.d.ts +351 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +55 -0
- package/dist/common/types.js.map +1 -0
- package/dist/common/validation.d.ts +113 -0
- package/dist/common/validation.d.ts.map +1 -0
- package/dist/common/validation.js +221 -0
- package/dist/common/validation.js.map +1 -0
- package/dist/db/client.d.ts +72 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/client.js +110 -0
- package/dist/db/client.js.map +1 -0
- package/dist/db/index.d.ts +9 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +9 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schema/merkle.d.ts +475 -0
- package/dist/db/schema/merkle.d.ts.map +1 -0
- package/dist/db/schema/merkle.js +100 -0
- package/dist/db/schema/merkle.js.map +1 -0
- package/dist/db/schema/proofs.d.ts +412 -0
- package/dist/db/schema/proofs.d.ts.map +1 -0
- package/dist/db/schema/proofs.js +63 -0
- package/dist/db/schema/proofs.js.map +1 -0
- package/dist/enforce/adapters.d.ts +73 -0
- package/dist/enforce/adapters.d.ts.map +1 -0
- package/dist/enforce/adapters.js +293 -0
- package/dist/enforce/adapters.js.map +1 -0
- package/dist/enforce/index.d.ts +213 -0
- package/dist/enforce/index.d.ts.map +1 -0
- package/dist/enforce/index.js +630 -0
- package/dist/enforce/index.js.map +1 -0
- package/dist/enforce/repository.d.ts +203 -0
- package/dist/enforce/repository.d.ts.map +1 -0
- package/dist/enforce/repository.js +359 -0
- package/dist/enforce/repository.js.map +1 -0
- package/dist/enforce/schema.d.ts +1198 -0
- package/dist/enforce/schema.d.ts.map +1 -0
- package/dist/enforce/schema.js +257 -0
- package/dist/enforce/schema.js.map +1 -0
- package/dist/friction/index.d.ts +235 -0
- package/dist/friction/index.d.ts.map +1 -0
- package/dist/friction/index.js +636 -0
- package/dist/friction/index.js.map +1 -0
- package/dist/friction/openapi.d.ts +23 -0
- package/dist/friction/openapi.d.ts.map +1 -0
- package/dist/friction/openapi.js +883 -0
- package/dist/friction/openapi.js.map +1 -0
- package/dist/friction/routes.d.ts +14 -0
- package/dist/friction/routes.d.ts.map +1 -0
- package/dist/friction/routes.js +206 -0
- package/dist/friction/routes.js.map +1 -0
- package/dist/governance/engine.d.ts +158 -0
- package/dist/governance/engine.d.ts.map +1 -0
- package/dist/governance/engine.js +248 -0
- package/dist/governance/engine.js.map +1 -0
- package/dist/governance/evaluator.d.ts +106 -0
- package/dist/governance/evaluator.d.ts.map +1 -0
- package/dist/governance/evaluator.js +277 -0
- package/dist/governance/evaluator.js.map +1 -0
- package/dist/governance/index.d.ts +11 -0
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/index.js +14 -0
- package/dist/governance/index.js.map +1 -0
- package/dist/governance/policy.d.ts +152 -0
- package/dist/governance/policy.d.ts.map +1 -0
- package/dist/governance/policy.js +152 -0
- package/dist/governance/policy.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/intent/adapters.d.ts +101 -0
- package/dist/intent/adapters.d.ts.map +1 -0
- package/dist/intent/adapters.js +250 -0
- package/dist/intent/adapters.js.map +1 -0
- package/dist/intent/audit.d.ts +119 -0
- package/dist/intent/audit.d.ts.map +1 -0
- package/dist/intent/audit.js +463 -0
- package/dist/intent/audit.js.map +1 -0
- package/dist/intent/classifier/index.d.ts +121 -0
- package/dist/intent/classifier/index.d.ts.map +1 -0
- package/dist/intent/classifier/index.js +232 -0
- package/dist/intent/classifier/index.js.map +1 -0
- package/dist/intent/classifier/patterns.d.ts +129 -0
- package/dist/intent/classifier/patterns.d.ts.map +1 -0
- package/dist/intent/classifier/patterns.js +471 -0
- package/dist/intent/classifier/patterns.js.map +1 -0
- package/dist/intent/classifier/risk.d.ts +177 -0
- package/dist/intent/classifier/risk.d.ts.map +1 -0
- package/dist/intent/classifier/risk.js +335 -0
- package/dist/intent/classifier/risk.js.map +1 -0
- package/dist/intent/cleanup.d.ts +24 -0
- package/dist/intent/cleanup.d.ts.map +1 -0
- package/dist/intent/cleanup.js +104 -0
- package/dist/intent/cleanup.js.map +1 -0
- package/dist/intent/consent.d.ts +238 -0
- package/dist/intent/consent.d.ts.map +1 -0
- package/dist/intent/consent.js +427 -0
- package/dist/intent/consent.js.map +1 -0
- package/dist/intent/escalation.d.ts +284 -0
- package/dist/intent/escalation.d.ts.map +1 -0
- package/dist/intent/escalation.js +618 -0
- package/dist/intent/escalation.js.map +1 -0
- package/dist/intent/gdpr-rate-limiter.d.ts +170 -0
- package/dist/intent/gdpr-rate-limiter.d.ts.map +1 -0
- package/dist/intent/gdpr-rate-limiter.js +385 -0
- package/dist/intent/gdpr-rate-limiter.js.map +1 -0
- package/dist/intent/gdpr.d.ts +323 -0
- package/dist/intent/gdpr.d.ts.map +1 -0
- package/dist/intent/gdpr.js +1013 -0
- package/dist/intent/gdpr.js.map +1 -0
- package/dist/intent/health.d.ts +214 -0
- package/dist/intent/health.d.ts.map +1 -0
- package/dist/intent/health.js +526 -0
- package/dist/intent/health.js.map +1 -0
- package/dist/intent/index.d.ts +565 -0
- package/dist/intent/index.d.ts.map +1 -0
- package/dist/intent/index.js +756 -0
- package/dist/intent/index.js.map +1 -0
- package/dist/intent/metrics.d.ts +399 -0
- package/dist/intent/metrics.d.ts.map +1 -0
- package/dist/intent/metrics.js +886 -0
- package/dist/intent/metrics.js.map +1 -0
- package/dist/intent/openapi.d.ts +22 -0
- package/dist/intent/openapi.d.ts.map +1 -0
- package/dist/intent/openapi.js +1674 -0
- package/dist/intent/openapi.js.map +1 -0
- package/dist/intent/planner/dependency.d.ts +78 -0
- package/dist/intent/planner/dependency.d.ts.map +1 -0
- package/dist/intent/planner/dependency.js +334 -0
- package/dist/intent/planner/dependency.js.map +1 -0
- package/dist/intent/planner/index.d.ts +130 -0
- package/dist/intent/planner/index.d.ts.map +1 -0
- package/dist/intent/planner/index.js +372 -0
- package/dist/intent/planner/index.js.map +1 -0
- package/dist/intent/planner/rollback.d.ts +92 -0
- package/dist/intent/planner/rollback.d.ts.map +1 -0
- package/dist/intent/planner/rollback.js +326 -0
- package/dist/intent/planner/rollback.js.map +1 -0
- package/dist/intent/planner/templates.d.ts +81 -0
- package/dist/intent/planner/templates.d.ts.map +1 -0
- package/dist/intent/planner/templates.js +560 -0
- package/dist/intent/planner/templates.js.map +1 -0
- package/dist/intent/planner/types.d.ts +38 -0
- package/dist/intent/planner/types.d.ts.map +1 -0
- package/dist/intent/planner/types.js +10 -0
- package/dist/intent/planner/types.js.map +1 -0
- package/dist/intent/queue.d.ts +150 -0
- package/dist/intent/queue.d.ts.map +1 -0
- package/dist/intent/queue.js +339 -0
- package/dist/intent/queue.js.map +1 -0
- package/dist/intent/queues.d.ts +176 -0
- package/dist/intent/queues.d.ts.map +1 -0
- package/dist/intent/queues.js +1393 -0
- package/dist/intent/queues.js.map +1 -0
- package/dist/intent/ratelimit.d.ts +147 -0
- package/dist/intent/ratelimit.d.ts.map +1 -0
- package/dist/intent/ratelimit.js +301 -0
- package/dist/intent/ratelimit.js.map +1 -0
- package/dist/intent/replay/comparator.d.ts +73 -0
- package/dist/intent/replay/comparator.d.ts.map +1 -0
- package/dist/intent/replay/comparator.js +320 -0
- package/dist/intent/replay/comparator.js.map +1 -0
- package/dist/intent/replay/index.d.ts +104 -0
- package/dist/intent/replay/index.d.ts.map +1 -0
- package/dist/intent/replay/index.js +487 -0
- package/dist/intent/replay/index.js.map +1 -0
- package/dist/intent/replay/simulator.d.ts +184 -0
- package/dist/intent/replay/simulator.d.ts.map +1 -0
- package/dist/intent/replay/simulator.js +512 -0
- package/dist/intent/replay/simulator.js.map +1 -0
- package/dist/intent/replay/snapshot.d.ts +149 -0
- package/dist/intent/replay/snapshot.d.ts.map +1 -0
- package/dist/intent/replay/snapshot.js +245 -0
- package/dist/intent/replay/snapshot.js.map +1 -0
- package/dist/intent/replay/types.d.ts +143 -0
- package/dist/intent/replay/types.d.ts.map +1 -0
- package/dist/intent/replay/types.js +10 -0
- package/dist/intent/replay/types.js.map +1 -0
- package/dist/intent/repository.d.ts +198 -0
- package/dist/intent/repository.d.ts.map +1 -0
- package/dist/intent/repository.js +538 -0
- package/dist/intent/repository.js.map +1 -0
- package/dist/intent/response-middleware.d.ts +156 -0
- package/dist/intent/response-middleware.d.ts.map +1 -0
- package/dist/intent/response-middleware.js +346 -0
- package/dist/intent/response-middleware.js.map +1 -0
- package/dist/intent/response.d.ts +267 -0
- package/dist/intent/response.d.ts.map +1 -0
- package/dist/intent/response.js +402 -0
- package/dist/intent/response.js.map +1 -0
- package/dist/intent/routes.d.ts +35 -0
- package/dist/intent/routes.d.ts.map +1 -0
- package/dist/intent/routes.js +1023 -0
- package/dist/intent/routes.js.map +1 -0
- package/dist/intent/scheduler.d.ts +45 -0
- package/dist/intent/scheduler.d.ts.map +1 -0
- package/dist/intent/scheduler.js +221 -0
- package/dist/intent/scheduler.js.map +1 -0
- package/dist/intent/schema.d.ts +3817 -0
- package/dist/intent/schema.d.ts.map +1 -0
- package/dist/intent/schema.js +631 -0
- package/dist/intent/schema.js.map +1 -0
- package/dist/intent/shutdown.d.ts +145 -0
- package/dist/intent/shutdown.d.ts.map +1 -0
- package/dist/intent/shutdown.js +468 -0
- package/dist/intent/shutdown.js.map +1 -0
- package/dist/intent/state-machine.d.ts +111 -0
- package/dist/intent/state-machine.d.ts.map +1 -0
- package/dist/intent/state-machine.js +242 -0
- package/dist/intent/state-machine.js.map +1 -0
- package/dist/intent/tracing.d.ts +152 -0
- package/dist/intent/tracing.d.ts.map +1 -0
- package/dist/intent/tracing.js +658 -0
- package/dist/intent/tracing.js.map +1 -0
- package/dist/intent/types.d.ts +188 -0
- package/dist/intent/types.d.ts.map +1 -0
- package/dist/intent/types.js +25 -0
- package/dist/intent/types.js.map +1 -0
- package/dist/intent/webhooks/delivery-repository.d.ts +80 -0
- package/dist/intent/webhooks/delivery-repository.d.ts.map +1 -0
- package/dist/intent/webhooks/delivery-repository.js +251 -0
- package/dist/intent/webhooks/delivery-repository.js.map +1 -0
- package/dist/intent/webhooks/dns-pinning.d.ts +30 -0
- package/dist/intent/webhooks/dns-pinning.d.ts.map +1 -0
- package/dist/intent/webhooks/dns-pinning.js +69 -0
- package/dist/intent/webhooks/dns-pinning.js.map +1 -0
- package/dist/intent/webhooks/index.d.ts +14 -0
- package/dist/intent/webhooks/index.d.ts.map +1 -0
- package/dist/intent/webhooks/index.js +17 -0
- package/dist/intent/webhooks/index.js.map +1 -0
- package/dist/intent/webhooks/signature.d.ts +47 -0
- package/dist/intent/webhooks/signature.d.ts.map +1 -0
- package/dist/intent/webhooks/signature.js +80 -0
- package/dist/intent/webhooks/signature.js.map +1 -0
- package/dist/intent/webhooks/ssrf-protection.d.ts +29 -0
- package/dist/intent/webhooks/ssrf-protection.d.ts.map +1 -0
- package/dist/intent/webhooks/ssrf-protection.js +161 -0
- package/dist/intent/webhooks/ssrf-protection.js.map +1 -0
- package/dist/intent/webhooks/types.d.ts +132 -0
- package/dist/intent/webhooks/types.d.ts.map +1 -0
- package/dist/intent/webhooks/types.js +14 -0
- package/dist/intent/webhooks/types.js.map +1 -0
- package/dist/intent/webhooks.d.ts +618 -0
- package/dist/intent/webhooks.d.ts.map +1 -0
- package/dist/intent/webhooks.js +1836 -0
- package/dist/intent/webhooks.js.map +1 -0
- package/dist/intent-gateway/ai-act-classifier.d.ts +18 -0
- package/dist/intent-gateway/ai-act-classifier.d.ts.map +1 -0
- package/dist/intent-gateway/ai-act-classifier.js +296 -0
- package/dist/intent-gateway/ai-act-classifier.js.map +1 -0
- package/dist/intent-gateway/index.d.ts +43 -0
- package/dist/intent-gateway/index.d.ts.map +1 -0
- package/dist/intent-gateway/index.js +236 -0
- package/dist/intent-gateway/index.js.map +1 -0
- package/dist/intent-gateway/jurisdiction-resolver.d.ts +19 -0
- package/dist/intent-gateway/jurisdiction-resolver.d.ts.map +1 -0
- package/dist/intent-gateway/jurisdiction-resolver.js +236 -0
- package/dist/intent-gateway/jurisdiction-resolver.js.map +1 -0
- package/dist/intent-gateway/policy-composer.d.ts +27 -0
- package/dist/intent-gateway/policy-composer.d.ts.map +1 -0
- package/dist/intent-gateway/policy-composer.js +418 -0
- package/dist/intent-gateway/policy-composer.js.map +1 -0
- package/dist/intent-gateway/regime-selector.d.ts +26 -0
- package/dist/intent-gateway/regime-selector.d.ts.map +1 -0
- package/dist/intent-gateway/regime-selector.js +185 -0
- package/dist/intent-gateway/regime-selector.js.map +1 -0
- package/dist/intent-gateway/types.d.ts +103 -0
- package/dist/intent-gateway/types.d.ts.map +1 -0
- package/dist/intent-gateway/types.js +85 -0
- package/dist/intent-gateway/types.js.map +1 -0
- package/dist/observability/alerts.d.ts +136 -0
- package/dist/observability/alerts.d.ts.map +1 -0
- package/dist/observability/alerts.js +485 -0
- package/dist/observability/alerts.js.map +1 -0
- package/dist/observability/health.d.ts +102 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/health.js +415 -0
- package/dist/observability/health.js.map +1 -0
- package/dist/observability/index.d.ts +29 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +72 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/logging.d.ts +90 -0
- package/dist/observability/logging.d.ts.map +1 -0
- package/dist/observability/logging.js +260 -0
- package/dist/observability/logging.js.map +1 -0
- package/dist/observability/metrics.d.ts +226 -0
- package/dist/observability/metrics.d.ts.map +1 -0
- package/dist/observability/metrics.js +527 -0
- package/dist/observability/metrics.js.map +1 -0
- package/dist/observability/tracing.d.ts +120 -0
- package/dist/observability/tracing.d.ts.map +1 -0
- package/dist/observability/tracing.js +285 -0
- package/dist/observability/tracing.js.map +1 -0
- package/dist/persistence/audit.d.ts +169 -0
- package/dist/persistence/audit.d.ts.map +1 -0
- package/dist/persistence/audit.js +342 -0
- package/dist/persistence/audit.js.map +1 -0
- package/dist/persistence/index.d.ts +13 -0
- package/dist/persistence/index.d.ts.map +1 -0
- package/dist/persistence/index.js +15 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/persistence/repository.d.ts +192 -0
- package/dist/persistence/repository.d.ts.map +1 -0
- package/dist/persistence/repository.js +223 -0
- package/dist/persistence/repository.js.map +1 -0
- package/dist/policy/diff.d.ts +88 -0
- package/dist/policy/diff.d.ts.map +1 -0
- package/dist/policy/diff.js +325 -0
- package/dist/policy/diff.js.map +1 -0
- package/dist/policy/distributed-cache.d.ts +205 -0
- package/dist/policy/distributed-cache.d.ts.map +1 -0
- package/dist/policy/distributed-cache.js +683 -0
- package/dist/policy/distributed-cache.js.map +1 -0
- package/dist/policy/evaluator.d.ts +102 -0
- package/dist/policy/evaluator.d.ts.map +1 -0
- package/dist/policy/evaluator.js +648 -0
- package/dist/policy/evaluator.js.map +1 -0
- package/dist/policy/index.d.ts +24 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +27 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/loader.d.ts +63 -0
- package/dist/policy/loader.d.ts.map +1 -0
- package/dist/policy/loader.js +176 -0
- package/dist/policy/loader.js.map +1 -0
- package/dist/policy/service.d.ts +240 -0
- package/dist/policy/service.d.ts.map +1 -0
- package/dist/policy/service.js +1032 -0
- package/dist/policy/service.js.map +1 -0
- package/dist/policy/types.d.ts +220 -0
- package/dist/policy/types.d.ts.map +1 -0
- package/dist/policy/types.js +36 -0
- package/dist/policy/types.js.map +1 -0
- package/dist/policy/visual-builder/index.d.ts +201 -0
- package/dist/policy/visual-builder/index.d.ts.map +1 -0
- package/dist/policy/visual-builder/index.js +727 -0
- package/dist/policy/visual-builder/index.js.map +1 -0
- package/dist/policy/visual-builder/inheritance.d.ts +151 -0
- package/dist/policy/visual-builder/inheritance.d.ts.map +1 -0
- package/dist/policy/visual-builder/inheritance.js +314 -0
- package/dist/policy/visual-builder/inheritance.js.map +1 -0
- package/dist/policy/visual-builder/propagation.d.ts +146 -0
- package/dist/policy/visual-builder/propagation.d.ts.map +1 -0
- package/dist/policy/visual-builder/propagation.js +299 -0
- package/dist/policy/visual-builder/propagation.js.map +1 -0
- package/dist/policy/visual-builder/routes.d.ts +14 -0
- package/dist/policy/visual-builder/routes.d.ts.map +1 -0
- package/dist/policy/visual-builder/routes.js +528 -0
- package/dist/policy/visual-builder/routes.js.map +1 -0
- package/dist/policy/visual-builder/simulator.d.ts +161 -0
- package/dist/policy/visual-builder/simulator.d.ts.map +1 -0
- package/dist/policy/visual-builder/simulator.js +413 -0
- package/dist/policy/visual-builder/simulator.js.map +1 -0
- package/dist/policy/visual-builder/templates.d.ts +119 -0
- package/dist/policy/visual-builder/templates.d.ts.map +1 -0
- package/dist/policy/visual-builder/templates.js +627 -0
- package/dist/policy/visual-builder/templates.js.map +1 -0
- package/dist/proof/chain/index.d.ts +271 -0
- package/dist/proof/chain/index.d.ts.map +1 -0
- package/dist/proof/chain/index.js +483 -0
- package/dist/proof/chain/index.js.map +1 -0
- package/dist/proof/index.d.ts +206 -0
- package/dist/proof/index.d.ts.map +1 -0
- package/dist/proof/index.js +597 -0
- package/dist/proof/index.js.map +1 -0
- package/dist/proof/merkle-service.d.ts +194 -0
- package/dist/proof/merkle-service.d.ts.map +1 -0
- package/dist/proof/merkle-service.js +463 -0
- package/dist/proof/merkle-service.js.map +1 -0
- package/dist/proof/merkle.d.ts +118 -0
- package/dist/proof/merkle.d.ts.map +1 -0
- package/dist/proof/merkle.js +265 -0
- package/dist/proof/merkle.js.map +1 -0
- package/dist/security/ai-governance/access-policy.d.ts +197 -0
- package/dist/security/ai-governance/access-policy.d.ts.map +1 -0
- package/dist/security/ai-governance/access-policy.js +522 -0
- package/dist/security/ai-governance/access-policy.js.map +1 -0
- package/dist/security/ai-governance/audit-trail.d.ts +241 -0
- package/dist/security/ai-governance/audit-trail.d.ts.map +1 -0
- package/dist/security/ai-governance/audit-trail.js +645 -0
- package/dist/security/ai-governance/audit-trail.js.map +1 -0
- package/dist/security/ai-governance/bias-detection.d.ts +221 -0
- package/dist/security/ai-governance/bias-detection.d.ts.map +1 -0
- package/dist/security/ai-governance/bias-detection.js +615 -0
- package/dist/security/ai-governance/bias-detection.js.map +1 -0
- package/dist/security/ai-governance/index.d.ts +92 -0
- package/dist/security/ai-governance/index.d.ts.map +1 -0
- package/dist/security/ai-governance/index.js +184 -0
- package/dist/security/ai-governance/index.js.map +1 -0
- package/dist/security/ai-governance/middleware.d.ts +110 -0
- package/dist/security/ai-governance/middleware.d.ts.map +1 -0
- package/dist/security/ai-governance/middleware.js +359 -0
- package/dist/security/ai-governance/middleware.js.map +1 -0
- package/dist/security/ai-governance/model-registry.d.ts +229 -0
- package/dist/security/ai-governance/model-registry.d.ts.map +1 -0
- package/dist/security/ai-governance/model-registry.js +535 -0
- package/dist/security/ai-governance/model-registry.js.map +1 -0
- package/dist/security/ai-governance/output-filter.d.ts +150 -0
- package/dist/security/ai-governance/output-filter.d.ts.map +1 -0
- package/dist/security/ai-governance/output-filter.js +561 -0
- package/dist/security/ai-governance/output-filter.js.map +1 -0
- package/dist/security/ai-governance/prompt-injection.d.ts +153 -0
- package/dist/security/ai-governance/prompt-injection.d.ts.map +1 -0
- package/dist/security/ai-governance/prompt-injection.js +614 -0
- package/dist/security/ai-governance/prompt-injection.js.map +1 -0
- package/dist/security/ai-governance/rate-limiter.d.ts +156 -0
- package/dist/security/ai-governance/rate-limiter.d.ts.map +1 -0
- package/dist/security/ai-governance/rate-limiter.js +541 -0
- package/dist/security/ai-governance/rate-limiter.js.map +1 -0
- package/dist/security/ai-governance/types.d.ts +594 -0
- package/dist/security/ai-governance/types.d.ts.map +1 -0
- package/dist/security/ai-governance/types.js +6 -0
- package/dist/security/ai-governance/types.js.map +1 -0
- package/dist/security/alerting/channels/base.d.ts +91 -0
- package/dist/security/alerting/channels/base.d.ts.map +1 -0
- package/dist/security/alerting/channels/base.js +128 -0
- package/dist/security/alerting/channels/base.js.map +1 -0
- package/dist/security/alerting/channels/email.d.ts +92 -0
- package/dist/security/alerting/channels/email.d.ts.map +1 -0
- package/dist/security/alerting/channels/email.js +418 -0
- package/dist/security/alerting/channels/email.js.map +1 -0
- package/dist/security/alerting/channels/http-base.d.ts +86 -0
- package/dist/security/alerting/channels/http-base.d.ts.map +1 -0
- package/dist/security/alerting/channels/http-base.js +133 -0
- package/dist/security/alerting/channels/http-base.js.map +1 -0
- package/dist/security/alerting/channels/index.d.ts +30 -0
- package/dist/security/alerting/channels/index.d.ts.map +1 -0
- package/dist/security/alerting/channels/index.js +22 -0
- package/dist/security/alerting/channels/index.js.map +1 -0
- package/dist/security/alerting/channels/pagerduty.d.ts +70 -0
- package/dist/security/alerting/channels/pagerduty.d.ts.map +1 -0
- package/dist/security/alerting/channels/pagerduty.js +248 -0
- package/dist/security/alerting/channels/pagerduty.js.map +1 -0
- package/dist/security/alerting/channels/slack.d.ts +55 -0
- package/dist/security/alerting/channels/slack.d.ts.map +1 -0
- package/dist/security/alerting/channels/slack.js +215 -0
- package/dist/security/alerting/channels/slack.js.map +1 -0
- package/dist/security/alerting/channels/sns.d.ts +87 -0
- package/dist/security/alerting/channels/sns.d.ts.map +1 -0
- package/dist/security/alerting/channels/sns.js +251 -0
- package/dist/security/alerting/channels/sns.js.map +1 -0
- package/dist/security/alerting/channels/webhook.d.ts +92 -0
- package/dist/security/alerting/channels/webhook.d.ts.map +1 -0
- package/dist/security/alerting/channels/webhook.js +203 -0
- package/dist/security/alerting/channels/webhook.js.map +1 -0
- package/dist/security/alerting/detector.d.ts +217 -0
- package/dist/security/alerting/detector.d.ts.map +1 -0
- package/dist/security/alerting/detector.js +725 -0
- package/dist/security/alerting/detector.js.map +1 -0
- package/dist/security/alerting/index.d.ts +57 -0
- package/dist/security/alerting/index.d.ts.map +1 -0
- package/dist/security/alerting/index.js +214 -0
- package/dist/security/alerting/index.js.map +1 -0
- package/dist/security/alerting/service.d.ts +190 -0
- package/dist/security/alerting/service.d.ts.map +1 -0
- package/dist/security/alerting/service.js +815 -0
- package/dist/security/alerting/service.js.map +1 -0
- package/dist/security/alerting/types.d.ts +2165 -0
- package/dist/security/alerting/types.d.ts.map +1 -0
- package/dist/security/alerting/types.js +278 -0
- package/dist/security/alerting/types.js.map +1 -0
- package/dist/security/anomaly/detectors/account-compromise.d.ts +198 -0
- package/dist/security/anomaly/detectors/account-compromise.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/account-compromise.js +815 -0
- package/dist/security/anomaly/detectors/account-compromise.js.map +1 -0
- package/dist/security/anomaly/detectors/data-exfiltration.d.ts +175 -0
- package/dist/security/anomaly/detectors/data-exfiltration.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/data-exfiltration.js +733 -0
- package/dist/security/anomaly/detectors/data-exfiltration.js.map +1 -0
- package/dist/security/anomaly/detectors/geographic.d.ts +100 -0
- package/dist/security/anomaly/detectors/geographic.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/geographic.js +348 -0
- package/dist/security/anomaly/detectors/geographic.js.map +1 -0
- package/dist/security/anomaly/detectors/index.d.ts +86 -0
- package/dist/security/anomaly/detectors/index.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/index.js +118 -0
- package/dist/security/anomaly/detectors/index.js.map +1 -0
- package/dist/security/anomaly/detectors/lateral-movement.d.ts +168 -0
- package/dist/security/anomaly/detectors/lateral-movement.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/lateral-movement.js +795 -0
- package/dist/security/anomaly/detectors/lateral-movement.js.map +1 -0
- package/dist/security/anomaly/detectors/privilege-escalation.d.ts +177 -0
- package/dist/security/anomaly/detectors/privilege-escalation.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/privilege-escalation.js +741 -0
- package/dist/security/anomaly/detectors/privilege-escalation.js.map +1 -0
- package/dist/security/anomaly/detectors/temporal.d.ts +71 -0
- package/dist/security/anomaly/detectors/temporal.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/temporal.js +398 -0
- package/dist/security/anomaly/detectors/temporal.js.map +1 -0
- package/dist/security/anomaly/detectors/volume.d.ts +97 -0
- package/dist/security/anomaly/detectors/volume.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/volume.js +424 -0
- package/dist/security/anomaly/detectors/volume.js.map +1 -0
- package/dist/security/anomaly/index.d.ts +128 -0
- package/dist/security/anomaly/index.d.ts.map +1 -0
- package/dist/security/anomaly/index.js +378 -0
- package/dist/security/anomaly/index.js.map +1 -0
- package/dist/security/anomaly/types.d.ts +1209 -0
- package/dist/security/anomaly/types.d.ts.map +1 -0
- package/dist/security/anomaly/types.js +193 -0
- package/dist/security/anomaly/types.js.map +1 -0
- package/dist/security/api-keys/cache.d.ts +255 -0
- package/dist/security/api-keys/cache.d.ts.map +1 -0
- package/dist/security/api-keys/cache.js +595 -0
- package/dist/security/api-keys/cache.js.map +1 -0
- package/dist/security/api-keys/db-store.d.ts +150 -0
- package/dist/security/api-keys/db-store.d.ts.map +1 -0
- package/dist/security/api-keys/db-store.js +694 -0
- package/dist/security/api-keys/db-store.js.map +1 -0
- package/dist/security/api-keys/index.d.ts +29 -0
- package/dist/security/api-keys/index.d.ts.map +1 -0
- package/dist/security/api-keys/index.js +81 -0
- package/dist/security/api-keys/index.js.map +1 -0
- package/dist/security/api-keys/middleware.d.ts +164 -0
- package/dist/security/api-keys/middleware.d.ts.map +1 -0
- package/dist/security/api-keys/middleware.js +392 -0
- package/dist/security/api-keys/middleware.js.map +1 -0
- package/dist/security/api-keys/service.d.ts +226 -0
- package/dist/security/api-keys/service.d.ts.map +1 -0
- package/dist/security/api-keys/service.js +861 -0
- package/dist/security/api-keys/service.js.map +1 -0
- package/dist/security/api-keys/store.d.ts +241 -0
- package/dist/security/api-keys/store.d.ts.map +1 -0
- package/dist/security/api-keys/store.js +360 -0
- package/dist/security/api-keys/store.js.map +1 -0
- package/dist/security/api-keys/types.d.ts +718 -0
- package/dist/security/api-keys/types.d.ts.map +1 -0
- package/dist/security/api-keys/types.js +162 -0
- package/dist/security/api-keys/types.js.map +1 -0
- package/dist/security/brute-force.d.ts +390 -0
- package/dist/security/brute-force.d.ts.map +1 -0
- package/dist/security/brute-force.js +677 -0
- package/dist/security/brute-force.js.map +1 -0
- package/dist/security/config-validator.d.ts +152 -0
- package/dist/security/config-validator.d.ts.map +1 -0
- package/dist/security/config-validator.js +667 -0
- package/dist/security/config-validator.js.map +1 -0
- package/dist/security/crypto/fips-mode.d.ts +726 -0
- package/dist/security/crypto/fips-mode.d.ts.map +1 -0
- package/dist/security/crypto/fips-mode.js +1297 -0
- package/dist/security/crypto/fips-mode.js.map +1 -0
- package/dist/security/crypto/index.d.ts +203 -0
- package/dist/security/crypto/index.d.ts.map +1 -0
- package/dist/security/crypto/index.js +293 -0
- package/dist/security/crypto/index.js.map +1 -0
- package/dist/security/crypto/post-quantum/benchmark.d.ts +125 -0
- package/dist/security/crypto/post-quantum/benchmark.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/benchmark.js +530 -0
- package/dist/security/crypto/post-quantum/benchmark.js.map +1 -0
- package/dist/security/crypto/post-quantum/dilithium.d.ts +146 -0
- package/dist/security/crypto/post-quantum/dilithium.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/dilithium.js +662 -0
- package/dist/security/crypto/post-quantum/dilithium.js.map +1 -0
- package/dist/security/crypto/post-quantum/hybrid.d.ts +267 -0
- package/dist/security/crypto/post-quantum/hybrid.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/hybrid.js +457 -0
- package/dist/security/crypto/post-quantum/hybrid.js.map +1 -0
- package/dist/security/crypto/post-quantum/index.d.ts +166 -0
- package/dist/security/crypto/post-quantum/index.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/index.js +236 -0
- package/dist/security/crypto/post-quantum/index.js.map +1 -0
- package/dist/security/crypto/post-quantum/kyber.d.ts +131 -0
- package/dist/security/crypto/post-quantum/kyber.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/kyber.js +640 -0
- package/dist/security/crypto/post-quantum/kyber.js.map +1 -0
- package/dist/security/crypto/post-quantum/migration.d.ts +230 -0
- package/dist/security/crypto/post-quantum/migration.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/migration.js +563 -0
- package/dist/security/crypto/post-quantum/migration.js.map +1 -0
- package/dist/security/crypto/post-quantum/types.d.ts +1056 -0
- package/dist/security/crypto/post-quantum/types.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/types.js +350 -0
- package/dist/security/crypto/post-quantum/types.js.map +1 -0
- package/dist/security/crypto/shamir/comparison.d.ts +128 -0
- package/dist/security/crypto/shamir/comparison.d.ts.map +1 -0
- package/dist/security/crypto/shamir/comparison.js +423 -0
- package/dist/security/crypto/shamir/comparison.js.map +1 -0
- package/dist/security/crypto/shamir/index.d.ts +76 -0
- package/dist/security/crypto/shamir/index.d.ts.map +1 -0
- package/dist/security/crypto/shamir/index.js +155 -0
- package/dist/security/crypto/shamir/index.js.map +1 -0
- package/dist/security/crypto/shamir/proofs.d.ts +259 -0
- package/dist/security/crypto/shamir/proofs.d.ts.map +1 -0
- package/dist/security/crypto/shamir/proofs.js +605 -0
- package/dist/security/crypto/shamir/proofs.js.map +1 -0
- package/dist/security/crypto/shamir/property-tests.d.ts +104 -0
- package/dist/security/crypto/shamir/property-tests.d.ts.map +1 -0
- package/dist/security/crypto/shamir/property-tests.js +480 -0
- package/dist/security/crypto/shamir/property-tests.js.map +1 -0
- package/dist/security/crypto/shamir/security-analysis.d.ts +97 -0
- package/dist/security/crypto/shamir/security-analysis.d.ts.map +1 -0
- package/dist/security/crypto/shamir/security-analysis.js +503 -0
- package/dist/security/crypto/shamir/security-analysis.js.map +1 -0
- package/dist/security/crypto/shamir/test-vectors.d.ts +116 -0
- package/dist/security/crypto/shamir/test-vectors.d.ts.map +1 -0
- package/dist/security/crypto/shamir/test-vectors.js +377 -0
- package/dist/security/crypto/shamir/test-vectors.js.map +1 -0
- package/dist/security/crypto/shamir/types.d.ts +281 -0
- package/dist/security/crypto/shamir/types.d.ts.map +1 -0
- package/dist/security/crypto/shamir/types.js +82 -0
- package/dist/security/crypto/shamir/types.js.map +1 -0
- package/dist/security/crypto/shamir/verified-shamir.d.ts +170 -0
- package/dist/security/crypto/shamir/verified-shamir.d.ts.map +1 -0
- package/dist/security/crypto/shamir/verified-shamir.js +624 -0
- package/dist/security/crypto/shamir/verified-shamir.js.map +1 -0
- package/dist/security/csrf.d.ts +215 -0
- package/dist/security/csrf.d.ts.map +1 -0
- package/dist/security/csrf.js +467 -0
- package/dist/security/csrf.js.map +1 -0
- package/dist/security/distributed-state.d.ts +331 -0
- package/dist/security/distributed-state.d.ts.map +1 -0
- package/dist/security/distributed-state.js +768 -0
- package/dist/security/distributed-state.js.map +1 -0
- package/dist/security/dlp/index.d.ts +27 -0
- package/dist/security/dlp/index.d.ts.map +1 -0
- package/dist/security/dlp/index.js +54 -0
- package/dist/security/dlp/index.js.map +1 -0
- package/dist/security/dlp/scanner.d.ts +451 -0
- package/dist/security/dlp/scanner.d.ts.map +1 -0
- package/dist/security/dlp/scanner.js +1241 -0
- package/dist/security/dlp/scanner.js.map +1 -0
- package/dist/security/dpop.d.ts +260 -0
- package/dist/security/dpop.d.ts.map +1 -0
- package/dist/security/dpop.js +1058 -0
- package/dist/security/dpop.js.map +1 -0
- package/dist/security/encryption/decorators.d.ts +263 -0
- package/dist/security/encryption/decorators.d.ts.map +1 -0
- package/dist/security/encryption/decorators.js +359 -0
- package/dist/security/encryption/decorators.js.map +1 -0
- package/dist/security/encryption/index.d.ts +83 -0
- package/dist/security/encryption/index.d.ts.map +1 -0
- package/dist/security/encryption/index.js +140 -0
- package/dist/security/encryption/index.js.map +1 -0
- package/dist/security/encryption/key-provider.d.ts +335 -0
- package/dist/security/encryption/key-provider.d.ts.map +1 -0
- package/dist/security/encryption/key-provider.js +853 -0
- package/dist/security/encryption/key-provider.js.map +1 -0
- package/dist/security/encryption/middleware.d.ts +279 -0
- package/dist/security/encryption/middleware.d.ts.map +1 -0
- package/dist/security/encryption/middleware.js +493 -0
- package/dist/security/encryption/middleware.js.map +1 -0
- package/dist/security/encryption/service.d.ts +164 -0
- package/dist/security/encryption/service.d.ts.map +1 -0
- package/dist/security/encryption/service.js +623 -0
- package/dist/security/encryption/service.js.map +1 -0
- package/dist/security/encryption/types.d.ts +745 -0
- package/dist/security/encryption/types.d.ts.map +1 -0
- package/dist/security/encryption/types.js +229 -0
- package/dist/security/encryption/types.js.map +1 -0
- package/dist/security/error-sanitizer.d.ts +329 -0
- package/dist/security/error-sanitizer.d.ts.map +1 -0
- package/dist/security/error-sanitizer.js +700 -0
- package/dist/security/error-sanitizer.js.map +1 -0
- package/dist/security/fingerprint-service.d.ts +139 -0
- package/dist/security/fingerprint-service.d.ts.map +1 -0
- package/dist/security/fingerprint-service.js +240 -0
- package/dist/security/fingerprint-service.js.map +1 -0
- package/dist/security/headers/csp.d.ts +270 -0
- package/dist/security/headers/csp.d.ts.map +1 -0
- package/dist/security/headers/csp.js +655 -0
- package/dist/security/headers/csp.js.map +1 -0
- package/dist/security/headers/hsts.d.ts +161 -0
- package/dist/security/headers/hsts.d.ts.map +1 -0
- package/dist/security/headers/hsts.js +346 -0
- package/dist/security/headers/hsts.js.map +1 -0
- package/dist/security/headers/index.d.ts +47 -0
- package/dist/security/headers/index.d.ts.map +1 -0
- package/dist/security/headers/index.js +110 -0
- package/dist/security/headers/index.js.map +1 -0
- package/dist/security/headers/middleware.d.ts +70 -0
- package/dist/security/headers/middleware.d.ts.map +1 -0
- package/dist/security/headers/middleware.js +549 -0
- package/dist/security/headers/middleware.js.map +1 -0
- package/dist/security/headers/permissions-policy.d.ts +189 -0
- package/dist/security/headers/permissions-policy.d.ts.map +1 -0
- package/dist/security/headers/permissions-policy.js +508 -0
- package/dist/security/headers/permissions-policy.js.map +1 -0
- package/dist/security/headers/types.d.ts +1570 -0
- package/dist/security/headers/types.d.ts.map +1 -0
- package/dist/security/headers/types.js +281 -0
- package/dist/security/headers/types.js.map +1 -0
- package/dist/security/headers/validator.d.ts +36 -0
- package/dist/security/headers/validator.d.ts.map +1 -0
- package/dist/security/headers/validator.js +616 -0
- package/dist/security/headers/validator.js.map +1 -0
- package/dist/security/hsm/aws-cloudhsm.d.ts +157 -0
- package/dist/security/hsm/aws-cloudhsm.d.ts.map +1 -0
- package/dist/security/hsm/aws-cloudhsm.js +712 -0
- package/dist/security/hsm/aws-cloudhsm.js.map +1 -0
- package/dist/security/hsm/azure-hsm.d.ts +174 -0
- package/dist/security/hsm/azure-hsm.d.ts.map +1 -0
- package/dist/security/hsm/azure-hsm.js +792 -0
- package/dist/security/hsm/azure-hsm.js.map +1 -0
- package/dist/security/hsm/gcp-hsm.d.ts +184 -0
- package/dist/security/hsm/gcp-hsm.d.ts.map +1 -0
- package/dist/security/hsm/gcp-hsm.js +817 -0
- package/dist/security/hsm/gcp-hsm.js.map +1 -0
- package/dist/security/hsm/hsm-service.d.ts +264 -0
- package/dist/security/hsm/hsm-service.d.ts.map +1 -0
- package/dist/security/hsm/hsm-service.js +772 -0
- package/dist/security/hsm/hsm-service.js.map +1 -0
- package/dist/security/hsm/index.d.ts +248 -0
- package/dist/security/hsm/index.d.ts.map +1 -0
- package/dist/security/hsm/index.js +329 -0
- package/dist/security/hsm/index.js.map +1 -0
- package/dist/security/hsm/key-ceremony.d.ts +214 -0
- package/dist/security/hsm/key-ceremony.d.ts.map +1 -0
- package/dist/security/hsm/key-ceremony.js +636 -0
- package/dist/security/hsm/key-ceremony.js.map +1 -0
- package/dist/security/hsm/key-operations.d.ts +218 -0
- package/dist/security/hsm/key-operations.d.ts.map +1 -0
- package/dist/security/hsm/key-operations.js +625 -0
- package/dist/security/hsm/key-operations.js.map +1 -0
- package/dist/security/hsm/local-softHSM.d.ts +122 -0
- package/dist/security/hsm/local-softHSM.d.ts.map +1 -0
- package/dist/security/hsm/local-softHSM.js +786 -0
- package/dist/security/hsm/local-softHSM.js.map +1 -0
- package/dist/security/hsm/pkcs11-wrapper.d.ts +386 -0
- package/dist/security/hsm/pkcs11-wrapper.d.ts.map +1 -0
- package/dist/security/hsm/pkcs11-wrapper.js +1149 -0
- package/dist/security/hsm/pkcs11-wrapper.js.map +1 -0
- package/dist/security/hsm/provider.d.ts +333 -0
- package/dist/security/hsm/provider.d.ts.map +1 -0
- package/dist/security/hsm/provider.js +264 -0
- package/dist/security/hsm/provider.js.map +1 -0
- package/dist/security/hsm/thales-luna.d.ts +209 -0
- package/dist/security/hsm/thales-luna.d.ts.map +1 -0
- package/dist/security/hsm/thales-luna.js +820 -0
- package/dist/security/hsm/thales-luna.js.map +1 -0
- package/dist/security/incident/actions/block-ip.d.ts +82 -0
- package/dist/security/incident/actions/block-ip.d.ts.map +1 -0
- package/dist/security/incident/actions/block-ip.js +454 -0
- package/dist/security/incident/actions/block-ip.js.map +1 -0
- package/dist/security/incident/actions/collect-evidence.d.ts +93 -0
- package/dist/security/incident/actions/collect-evidence.d.ts.map +1 -0
- package/dist/security/incident/actions/collect-evidence.js +449 -0
- package/dist/security/incident/actions/collect-evidence.js.map +1 -0
- package/dist/security/incident/actions/index.d.ts +39 -0
- package/dist/security/incident/actions/index.d.ts.map +1 -0
- package/dist/security/incident/actions/index.js +52 -0
- package/dist/security/incident/actions/index.js.map +1 -0
- package/dist/security/incident/actions/isolate-system.d.ts +61 -0
- package/dist/security/incident/actions/isolate-system.d.ts.map +1 -0
- package/dist/security/incident/actions/isolate-system.js +369 -0
- package/dist/security/incident/actions/isolate-system.js.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts +70 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.js +377 -0
- package/dist/security/incident/actions/notify-stakeholders.js.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts +75 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.js +320 -0
- package/dist/security/incident/actions/revoke-credentials.js.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts +88 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.js +473 -0
- package/dist/security/incident/actions/scale-monitoring.js.map +1 -0
- package/dist/security/incident/executor.d.ts +128 -0
- package/dist/security/incident/executor.d.ts.map +1 -0
- package/dist/security/incident/executor.js +695 -0
- package/dist/security/incident/executor.js.map +1 -0
- package/dist/security/incident/index.d.ts +220 -0
- package/dist/security/incident/index.d.ts.map +1 -0
- package/dist/security/incident/index.js +1284 -0
- package/dist/security/incident/index.js.map +1 -0
- package/dist/security/incident/notification.d.ts +68 -0
- package/dist/security/incident/notification.d.ts.map +1 -0
- package/dist/security/incident/notification.js +512 -0
- package/dist/security/incident/notification.js.map +1 -0
- package/dist/security/incident/playbooks/account-compromise.d.ts +13 -0
- package/dist/security/incident/playbooks/account-compromise.d.ts.map +1 -0
- package/dist/security/incident/playbooks/account-compromise.js +379 -0
- package/dist/security/incident/playbooks/account-compromise.js.map +1 -0
- package/dist/security/incident/playbooks/configuration-error.d.ts +17 -0
- package/dist/security/incident/playbooks/configuration-error.d.ts.map +1 -0
- package/dist/security/incident/playbooks/configuration-error.js +340 -0
- package/dist/security/incident/playbooks/configuration-error.js.map +1 -0
- package/dist/security/incident/playbooks/data-breach.d.ts +13 -0
- package/dist/security/incident/playbooks/data-breach.d.ts.map +1 -0
- package/dist/security/incident/playbooks/data-breach.js +394 -0
- package/dist/security/incident/playbooks/data-breach.js.map +1 -0
- package/dist/security/incident/playbooks/denial-of-service.d.ts +13 -0
- package/dist/security/incident/playbooks/denial-of-service.d.ts.map +1 -0
- package/dist/security/incident/playbooks/denial-of-service.js +540 -0
- package/dist/security/incident/playbooks/denial-of-service.js.map +1 -0
- package/dist/security/incident/playbooks/index.d.ts +36 -0
- package/dist/security/incident/playbooks/index.d.ts.map +1 -0
- package/dist/security/incident/playbooks/index.js +56 -0
- package/dist/security/incident/playbooks/index.js.map +1 -0
- package/dist/security/incident/playbooks/insider-threat.d.ts +18 -0
- package/dist/security/incident/playbooks/insider-threat.d.ts.map +1 -0
- package/dist/security/incident/playbooks/insider-threat.js +600 -0
- package/dist/security/incident/playbooks/insider-threat.js.map +1 -0
- package/dist/security/incident/playbooks/malware.d.ts +13 -0
- package/dist/security/incident/playbooks/malware.d.ts.map +1 -0
- package/dist/security/incident/playbooks/malware.js +515 -0
- package/dist/security/incident/playbooks/malware.js.map +1 -0
- package/dist/security/incident/playbooks/ransomware.d.ts +14 -0
- package/dist/security/incident/playbooks/ransomware.d.ts.map +1 -0
- package/dist/security/incident/playbooks/ransomware.js +693 -0
- package/dist/security/incident/playbooks/ransomware.js.map +1 -0
- package/dist/security/incident/playbooks/unauthorized-access.d.ts +13 -0
- package/dist/security/incident/playbooks/unauthorized-access.d.ts.map +1 -0
- package/dist/security/incident/playbooks/unauthorized-access.js +412 -0
- package/dist/security/incident/playbooks/unauthorized-access.js.map +1 -0
- package/dist/security/incident/triggers.d.ts +120 -0
- package/dist/security/incident/triggers.d.ts.map +1 -0
- package/dist/security/incident/triggers.js +708 -0
- package/dist/security/incident/triggers.js.map +1 -0
- package/dist/security/incident/types.d.ts +1517 -0
- package/dist/security/incident/types.d.ts.map +1 -0
- package/dist/security/incident/types.js +222 -0
- package/dist/security/incident/types.js.map +1 -0
- package/dist/security/index.d.ts +59 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +295 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/injection-detector.d.ts +510 -0
- package/dist/security/injection-detector.d.ts.map +1 -0
- package/dist/security/injection-detector.js +1325 -0
- package/dist/security/injection-detector.js.map +1 -0
- package/dist/security/introspection.d.ts +137 -0
- package/dist/security/introspection.d.ts.map +1 -0
- package/dist/security/introspection.js +451 -0
- package/dist/security/introspection.js.map +1 -0
- package/dist/security/key-rotation.d.ts +213 -0
- package/dist/security/key-rotation.d.ts.map +1 -0
- package/dist/security/key-rotation.js +530 -0
- package/dist/security/key-rotation.js.map +1 -0
- package/dist/security/kms/aws-kms.d.ts +152 -0
- package/dist/security/kms/aws-kms.d.ts.map +1 -0
- package/dist/security/kms/aws-kms.js +808 -0
- package/dist/security/kms/aws-kms.js.map +1 -0
- package/dist/security/kms/index.d.ts +165 -0
- package/dist/security/kms/index.d.ts.map +1 -0
- package/dist/security/kms/index.js +351 -0
- package/dist/security/kms/index.js.map +1 -0
- package/dist/security/kms/local.d.ts +127 -0
- package/dist/security/kms/local.d.ts.map +1 -0
- package/dist/security/kms/local.js +682 -0
- package/dist/security/kms/local.js.map +1 -0
- package/dist/security/kms/types.d.ts +1000 -0
- package/dist/security/kms/types.d.ts.map +1 -0
- package/dist/security/kms/types.js +167 -0
- package/dist/security/kms/types.js.map +1 -0
- package/dist/security/kms/vault.d.ts +165 -0
- package/dist/security/kms/vault.d.ts.map +1 -0
- package/dist/security/kms/vault.js +820 -0
- package/dist/security/kms/vault.js.map +1 -0
- package/dist/security/mfa/index.d.ts +17 -0
- package/dist/security/mfa/index.d.ts.map +1 -0
- package/dist/security/mfa/index.js +37 -0
- package/dist/security/mfa/index.js.map +1 -0
- package/dist/security/mfa/mfa-middleware.d.ts +74 -0
- package/dist/security/mfa/mfa-middleware.d.ts.map +1 -0
- package/dist/security/mfa/mfa-middleware.js +244 -0
- package/dist/security/mfa/mfa-middleware.js.map +1 -0
- package/dist/security/mfa/mfa-service.d.ts +115 -0
- package/dist/security/mfa/mfa-service.d.ts.map +1 -0
- package/dist/security/mfa/mfa-service.js +509 -0
- package/dist/security/mfa/mfa-service.js.map +1 -0
- package/dist/security/mfa/mfa-store.d.ts +615 -0
- package/dist/security/mfa/mfa-store.d.ts.map +1 -0
- package/dist/security/mfa/mfa-store.js +431 -0
- package/dist/security/mfa/mfa-store.js.map +1 -0
- package/dist/security/mfa/types.d.ts +417 -0
- package/dist/security/mfa/types.d.ts.map +1 -0
- package/dist/security/mfa/types.js +123 -0
- package/dist/security/mfa/types.js.map +1 -0
- package/dist/security/middleware.d.ts +179 -0
- package/dist/security/middleware.d.ts.map +1 -0
- package/dist/security/middleware.js +534 -0
- package/dist/security/middleware.js.map +1 -0
- package/dist/security/pairwise-did.d.ts +157 -0
- package/dist/security/pairwise-did.d.ts.map +1 -0
- package/dist/security/pairwise-did.js +450 -0
- package/dist/security/pairwise-did.js.map +1 -0
- package/dist/security/pam/break-glass.d.ts +776 -0
- package/dist/security/pam/break-glass.d.ts.map +1 -0
- package/dist/security/pam/break-glass.js +1137 -0
- package/dist/security/pam/break-glass.js.map +1 -0
- package/dist/security/pam/index.d.ts +120 -0
- package/dist/security/pam/index.d.ts.map +1 -0
- package/dist/security/pam/index.js +179 -0
- package/dist/security/pam/index.js.map +1 -0
- package/dist/security/pam/jit-access.d.ts +482 -0
- package/dist/security/pam/jit-access.d.ts.map +1 -0
- package/dist/security/pam/jit-access.js +1030 -0
- package/dist/security/pam/jit-access.js.map +1 -0
- package/dist/security/pam/session-recording.d.ts +1007 -0
- package/dist/security/pam/session-recording.d.ts.map +1 -0
- package/dist/security/pam/session-recording.js +1047 -0
- package/dist/security/pam/session-recording.js.map +1 -0
- package/dist/security/password-hashing.d.ts +199 -0
- package/dist/security/password-hashing.d.ts.map +1 -0
- package/dist/security/password-hashing.js +366 -0
- package/dist/security/password-hashing.js.map +1 -0
- package/dist/security/password-policy.d.ts +304 -0
- package/dist/security/password-policy.d.ts.map +1 -0
- package/dist/security/password-policy.js +730 -0
- package/dist/security/password-policy.js.map +1 -0
- package/dist/security/pkce.d.ts +269 -0
- package/dist/security/pkce.d.ts.map +1 -0
- package/dist/security/pkce.js +408 -0
- package/dist/security/pkce.js.map +1 -0
- package/dist/security/policy-engine/built-in-policies.d.ts +90 -0
- package/dist/security/policy-engine/built-in-policies.d.ts.map +1 -0
- package/dist/security/policy-engine/built-in-policies.js +627 -0
- package/dist/security/policy-engine/built-in-policies.js.map +1 -0
- package/dist/security/policy-engine/condition-evaluator.d.ts +129 -0
- package/dist/security/policy-engine/condition-evaluator.d.ts.map +1 -0
- package/dist/security/policy-engine/condition-evaluator.js +647 -0
- package/dist/security/policy-engine/condition-evaluator.js.map +1 -0
- package/dist/security/policy-engine/engine.d.ts +200 -0
- package/dist/security/policy-engine/engine.d.ts.map +1 -0
- package/dist/security/policy-engine/engine.js +752 -0
- package/dist/security/policy-engine/engine.js.map +1 -0
- package/dist/security/policy-engine/index.d.ts +58 -0
- package/dist/security/policy-engine/index.d.ts.map +1 -0
- package/dist/security/policy-engine/index.js +80 -0
- package/dist/security/policy-engine/index.js.map +1 -0
- package/dist/security/policy-engine/middleware.d.ts +77 -0
- package/dist/security/policy-engine/middleware.d.ts.map +1 -0
- package/dist/security/policy-engine/middleware.js +375 -0
- package/dist/security/policy-engine/middleware.js.map +1 -0
- package/dist/security/policy-engine/rule-evaluator.d.ts +140 -0
- package/dist/security/policy-engine/rule-evaluator.d.ts.map +1 -0
- package/dist/security/policy-engine/rule-evaluator.js +593 -0
- package/dist/security/policy-engine/rule-evaluator.js.map +1 -0
- package/dist/security/policy-engine/types.d.ts +2855 -0
- package/dist/security/policy-engine/types.d.ts.map +1 -0
- package/dist/security/policy-engine/types.js +443 -0
- package/dist/security/policy-engine/types.js.map +1 -0
- package/dist/security/rbac/index.d.ts +317 -0
- package/dist/security/rbac/index.d.ts.map +1 -0
- package/dist/security/rbac/index.js +618 -0
- package/dist/security/rbac/index.js.map +1 -0
- package/dist/security/rbac/permissions.d.ts +305 -0
- package/dist/security/rbac/permissions.d.ts.map +1 -0
- package/dist/security/rbac/permissions.js +947 -0
- package/dist/security/rbac/permissions.js.map +1 -0
- package/dist/security/rbac/policy-engine.d.ts +542 -0
- package/dist/security/rbac/policy-engine.d.ts.map +1 -0
- package/dist/security/rbac/policy-engine.js +1244 -0
- package/dist/security/rbac/policy-engine.js.map +1 -0
- package/dist/security/rbac/roles.d.ts +478 -0
- package/dist/security/rbac/roles.d.ts.map +1 -0
- package/dist/security/rbac/roles.js +363 -0
- package/dist/security/rbac/roles.js.map +1 -0
- package/dist/security/refresh-token.d.ts +305 -0
- package/dist/security/refresh-token.d.ts.map +1 -0
- package/dist/security/refresh-token.js +674 -0
- package/dist/security/refresh-token.js.map +1 -0
- package/dist/security/request-integrity.d.ts +289 -0
- package/dist/security/request-integrity.d.ts.map +1 -0
- package/dist/security/request-integrity.js +663 -0
- package/dist/security/request-integrity.js.map +1 -0
- package/dist/security/revocation-check.d.ts +188 -0
- package/dist/security/revocation-check.d.ts.map +1 -0
- package/dist/security/revocation-check.js +606 -0
- package/dist/security/revocation-check.js.map +1 -0
- package/dist/security/revocation.d.ts +191 -0
- package/dist/security/revocation.d.ts.map +1 -0
- package/dist/security/revocation.js +522 -0
- package/dist/security/revocation.js.map +1 -0
- package/dist/security/secrets-rotation.d.ts +501 -0
- package/dist/security/secrets-rotation.d.ts.map +1 -0
- package/dist/security/secrets-rotation.js +934 -0
- package/dist/security/secrets-rotation.js.map +1 -0
- package/dist/security/secure-memory.d.ts +325 -0
- package/dist/security/secure-memory.d.ts.map +1 -0
- package/dist/security/secure-memory.js +595 -0
- package/dist/security/secure-memory.js.map +1 -0
- package/dist/security/security-service.d.ts +186 -0
- package/dist/security/security-service.d.ts.map +1 -0
- package/dist/security/security-service.js +531 -0
- package/dist/security/security-service.js.map +1 -0
- package/dist/security/service-auth/index.d.ts +20 -0
- package/dist/security/service-auth/index.d.ts.map +1 -0
- package/dist/security/service-auth/index.js +61 -0
- package/dist/security/service-auth/index.js.map +1 -0
- package/dist/security/service-auth/service-account.d.ts +357 -0
- package/dist/security/service-auth/service-account.d.ts.map +1 -0
- package/dist/security/service-auth/service-account.js +475 -0
- package/dist/security/service-auth/service-account.js.map +1 -0
- package/dist/security/service-auth/service-auth-middleware.d.ts +174 -0
- package/dist/security/service-auth/service-auth-middleware.d.ts.map +1 -0
- package/dist/security/service-auth/service-auth-middleware.js +461 -0
- package/dist/security/service-auth/service-auth-middleware.js.map +1 -0
- package/dist/security/service-auth/service-token.d.ts +391 -0
- package/dist/security/service-auth/service-token.d.ts.map +1 -0
- package/dist/security/service-auth/service-token.js +472 -0
- package/dist/security/service-auth/service-token.js.map +1 -0
- package/dist/security/session-manager.d.ts +177 -0
- package/dist/security/session-manager.d.ts.map +1 -0
- package/dist/security/session-manager.js +353 -0
- package/dist/security/session-manager.js.map +1 -0
- package/dist/security/session-store.d.ts +205 -0
- package/dist/security/session-store.d.ts.map +1 -0
- package/dist/security/session-store.js +581 -0
- package/dist/security/session-store.js.map +1 -0
- package/dist/security/siem/connector.d.ts +147 -0
- package/dist/security/siem/connector.d.ts.map +1 -0
- package/dist/security/siem/connector.js +254 -0
- package/dist/security/siem/connector.js.map +1 -0
- package/dist/security/siem/datadog.d.ts +81 -0
- package/dist/security/siem/datadog.d.ts.map +1 -0
- package/dist/security/siem/datadog.js +362 -0
- package/dist/security/siem/datadog.js.map +1 -0
- package/dist/security/siem/elastic.d.ts +83 -0
- package/dist/security/siem/elastic.d.ts.map +1 -0
- package/dist/security/siem/elastic.js +514 -0
- package/dist/security/siem/elastic.js.map +1 -0
- package/dist/security/siem/enrichment.d.ts +133 -0
- package/dist/security/siem/enrichment.d.ts.map +1 -0
- package/dist/security/siem/enrichment.js +434 -0
- package/dist/security/siem/enrichment.js.map +1 -0
- package/dist/security/siem/formatter.d.ts +118 -0
- package/dist/security/siem/formatter.d.ts.map +1 -0
- package/dist/security/siem/formatter.js +381 -0
- package/dist/security/siem/formatter.js.map +1 -0
- package/dist/security/siem/hooks.d.ts +107 -0
- package/dist/security/siem/hooks.d.ts.map +1 -0
- package/dist/security/siem/hooks.js +459 -0
- package/dist/security/siem/hooks.js.map +1 -0
- package/dist/security/siem/index.d.ts +83 -0
- package/dist/security/siem/index.d.ts.map +1 -0
- package/dist/security/siem/index.js +95 -0
- package/dist/security/siem/index.js.map +1 -0
- package/dist/security/siem/service.d.ts +153 -0
- package/dist/security/siem/service.d.ts.map +1 -0
- package/dist/security/siem/service.js +615 -0
- package/dist/security/siem/service.js.map +1 -0
- package/dist/security/siem/splunk.d.ts +76 -0
- package/dist/security/siem/splunk.d.ts.map +1 -0
- package/dist/security/siem/splunk.js +283 -0
- package/dist/security/siem/splunk.js.map +1 -0
- package/dist/security/siem/types.d.ts +1980 -0
- package/dist/security/siem/types.d.ts.map +1 -0
- package/dist/security/siem/types.js +268 -0
- package/dist/security/siem/types.js.map +1 -0
- package/dist/security/tee-production.d.ts +157 -0
- package/dist/security/tee-production.d.ts.map +1 -0
- package/dist/security/tee-production.js +792 -0
- package/dist/security/tee-production.js.map +1 -0
- package/dist/security/tee.d.ts +182 -0
- package/dist/security/tee.d.ts.map +1 -0
- package/dist/security/tee.js +1031 -0
- package/dist/security/tee.js.map +1 -0
- package/dist/security/threat-intel/bot-detection.d.ts +275 -0
- package/dist/security/threat-intel/bot-detection.d.ts.map +1 -0
- package/dist/security/threat-intel/bot-detection.js +890 -0
- package/dist/security/threat-intel/bot-detection.js.map +1 -0
- package/dist/security/threat-intel/credential-stuffing.d.ts +368 -0
- package/dist/security/threat-intel/credential-stuffing.d.ts.map +1 -0
- package/dist/security/threat-intel/credential-stuffing.js +957 -0
- package/dist/security/threat-intel/credential-stuffing.js.map +1 -0
- package/dist/security/threat-intel/index.d.ts +10 -0
- package/dist/security/threat-intel/index.d.ts.map +1 -0
- package/dist/security/threat-intel/index.js +18 -0
- package/dist/security/threat-intel/index.js.map +1 -0
- package/dist/security/threat-intel/ip-reputation.d.ts +323 -0
- package/dist/security/threat-intel/ip-reputation.d.ts.map +1 -0
- package/dist/security/threat-intel/ip-reputation.js +923 -0
- package/dist/security/threat-intel/ip-reputation.js.map +1 -0
- package/dist/security/token-lifecycle.d.ts +272 -0
- package/dist/security/token-lifecycle.d.ts.map +1 -0
- package/dist/security/token-lifecycle.js +732 -0
- package/dist/security/token-lifecycle.js.map +1 -0
- package/dist/security/token-lifetime.d.ts +206 -0
- package/dist/security/token-lifetime.d.ts.map +1 -0
- package/dist/security/token-lifetime.js +388 -0
- package/dist/security/token-lifetime.js.map +1 -0
- package/dist/security/trust-oracle/alerts.d.ts +202 -0
- package/dist/security/trust-oracle/alerts.d.ts.map +1 -0
- package/dist/security/trust-oracle/alerts.js +763 -0
- package/dist/security/trust-oracle/alerts.js.map +1 -0
- package/dist/security/trust-oracle/api.d.ts +116 -0
- package/dist/security/trust-oracle/api.d.ts.map +1 -0
- package/dist/security/trust-oracle/api.js +721 -0
- package/dist/security/trust-oracle/api.js.map +1 -0
- package/dist/security/trust-oracle/continuous-monitoring.d.ts +105 -0
- package/dist/security/trust-oracle/continuous-monitoring.d.ts.map +1 -0
- package/dist/security/trust-oracle/continuous-monitoring.js +696 -0
- package/dist/security/trust-oracle/continuous-monitoring.js.map +1 -0
- package/dist/security/trust-oracle/data-sources.d.ts +126 -0
- package/dist/security/trust-oracle/data-sources.d.ts.map +1 -0
- package/dist/security/trust-oracle/data-sources.js +867 -0
- package/dist/security/trust-oracle/data-sources.js.map +1 -0
- package/dist/security/trust-oracle/index.d.ts +79 -0
- package/dist/security/trust-oracle/index.d.ts.map +1 -0
- package/dist/security/trust-oracle/index.js +206 -0
- package/dist/security/trust-oracle/index.js.map +1 -0
- package/dist/security/trust-oracle/oracle.d.ts +125 -0
- package/dist/security/trust-oracle/oracle.d.ts.map +1 -0
- package/dist/security/trust-oracle/oracle.js +489 -0
- package/dist/security/trust-oracle/oracle.js.map +1 -0
- package/dist/security/trust-oracle/reporting.d.ts +145 -0
- package/dist/security/trust-oracle/reporting.d.ts.map +1 -0
- package/dist/security/trust-oracle/reporting.js +1098 -0
- package/dist/security/trust-oracle/reporting.js.map +1 -0
- package/dist/security/trust-oracle/risk-scorer.d.ts +207 -0
- package/dist/security/trust-oracle/risk-scorer.d.ts.map +1 -0
- package/dist/security/trust-oracle/risk-scorer.js +1033 -0
- package/dist/security/trust-oracle/risk-scorer.js.map +1 -0
- package/dist/security/trust-oracle/types.d.ts +444 -0
- package/dist/security/trust-oracle/types.d.ts.map +1 -0
- package/dist/security/trust-oracle/types.js +6 -0
- package/dist/security/trust-oracle/types.js.map +1 -0
- package/dist/security/trust-oracle/vendor-registry.d.ts +228 -0
- package/dist/security/trust-oracle/vendor-registry.d.ts.map +1 -0
- package/dist/security/trust-oracle/vendor-registry.js +727 -0
- package/dist/security/trust-oracle/vendor-registry.js.map +1 -0
- package/dist/security/types.d.ts +1777 -0
- package/dist/security/types.d.ts.map +1 -0
- package/dist/security/types.js +388 -0
- package/dist/security/types.js.map +1 -0
- package/dist/security/webauthn/index.d.ts +47 -0
- package/dist/security/webauthn/index.d.ts.map +1 -0
- package/dist/security/webauthn/index.js +48 -0
- package/dist/security/webauthn/index.js.map +1 -0
- package/dist/security/webauthn/middleware.d.ts +109 -0
- package/dist/security/webauthn/middleware.d.ts.map +1 -0
- package/dist/security/webauthn/middleware.js +629 -0
- package/dist/security/webauthn/middleware.js.map +1 -0
- package/dist/security/webauthn/service.d.ts +179 -0
- package/dist/security/webauthn/service.d.ts.map +1 -0
- package/dist/security/webauthn/service.js +758 -0
- package/dist/security/webauthn/service.js.map +1 -0
- package/dist/security/webauthn/store.d.ts +240 -0
- package/dist/security/webauthn/store.d.ts.map +1 -0
- package/dist/security/webauthn/store.js +505 -0
- package/dist/security/webauthn/store.js.map +1 -0
- package/dist/security/webauthn/types.d.ts +678 -0
- package/dist/security/webauthn/types.d.ts.map +1 -0
- package/dist/security/webauthn/types.js +176 -0
- package/dist/security/webauthn/types.js.map +1 -0
- package/dist/security/zkp/circuits.d.ts +296 -0
- package/dist/security/zkp/circuits.d.ts.map +1 -0
- package/dist/security/zkp/circuits.js +771 -0
- package/dist/security/zkp/circuits.js.map +1 -0
- package/dist/security/zkp/commitment.d.ts +319 -0
- package/dist/security/zkp/commitment.d.ts.map +1 -0
- package/dist/security/zkp/commitment.js +591 -0
- package/dist/security/zkp/commitment.js.map +1 -0
- package/dist/security/zkp/compliance.d.ts +251 -0
- package/dist/security/zkp/compliance.d.ts.map +1 -0
- package/dist/security/zkp/compliance.js +734 -0
- package/dist/security/zkp/compliance.js.map +1 -0
- package/dist/security/zkp/index.d.ts +184 -0
- package/dist/security/zkp/index.d.ts.map +1 -0
- package/dist/security/zkp/index.js +285 -0
- package/dist/security/zkp/index.js.map +1 -0
- package/dist/security/zkp/integration.d.ts +289 -0
- package/dist/security/zkp/integration.d.ts.map +1 -0
- package/dist/security/zkp/integration.js +571 -0
- package/dist/security/zkp/integration.js.map +1 -0
- package/dist/security/zkp/prover.d.ts +158 -0
- package/dist/security/zkp/prover.d.ts.map +1 -0
- package/dist/security/zkp/prover.js +465 -0
- package/dist/security/zkp/prover.js.map +1 -0
- package/dist/security/zkp/snark-utils.d.ts +321 -0
- package/dist/security/zkp/snark-utils.d.ts.map +1 -0
- package/dist/security/zkp/snark-utils.js +640 -0
- package/dist/security/zkp/snark-utils.js.map +1 -0
- package/dist/security/zkp/types.d.ts +1192 -0
- package/dist/security/zkp/types.d.ts.map +1 -0
- package/dist/security/zkp/types.js +264 -0
- package/dist/security/zkp/types.js.map +1 -0
- package/dist/security/zkp/verifier.d.ts +111 -0
- package/dist/security/zkp/verifier.d.ts.map +1 -0
- package/dist/security/zkp/verifier.js +554 -0
- package/dist/security/zkp/verifier.js.map +1 -0
- package/dist/semantic-governance/context-validator.d.ts +158 -0
- package/dist/semantic-governance/context-validator.d.ts.map +1 -0
- package/dist/semantic-governance/context-validator.js +598 -0
- package/dist/semantic-governance/context-validator.js.map +1 -0
- package/dist/semantic-governance/credential-manager.d.ts +156 -0
- package/dist/semantic-governance/credential-manager.d.ts.map +1 -0
- package/dist/semantic-governance/credential-manager.js +438 -0
- package/dist/semantic-governance/credential-manager.js.map +1 -0
- package/dist/semantic-governance/dual-channel.d.ts +138 -0
- package/dist/semantic-governance/dual-channel.d.ts.map +1 -0
- package/dist/semantic-governance/dual-channel.js +333 -0
- package/dist/semantic-governance/dual-channel.js.map +1 -0
- package/dist/semantic-governance/index.d.ts +107 -0
- package/dist/semantic-governance/index.d.ts.map +1 -0
- package/dist/semantic-governance/index.js +141 -0
- package/dist/semantic-governance/index.js.map +1 -0
- package/dist/semantic-governance/inference-validator.d.ts +114 -0
- package/dist/semantic-governance/inference-validator.d.ts.map +1 -0
- package/dist/semantic-governance/inference-validator.js +390 -0
- package/dist/semantic-governance/inference-validator.js.map +1 -0
- package/dist/semantic-governance/instruction-validator.d.ts +146 -0
- package/dist/semantic-governance/instruction-validator.d.ts.map +1 -0
- package/dist/semantic-governance/instruction-validator.js +363 -0
- package/dist/semantic-governance/instruction-validator.js.map +1 -0
- package/dist/semantic-governance/integration.d.ts +253 -0
- package/dist/semantic-governance/integration.d.ts.map +1 -0
- package/dist/semantic-governance/integration.js +658 -0
- package/dist/semantic-governance/integration.js.map +1 -0
- package/dist/semantic-governance/output-validator.d.ts +135 -0
- package/dist/semantic-governance/output-validator.d.ts.map +1 -0
- package/dist/semantic-governance/output-validator.js +448 -0
- package/dist/semantic-governance/output-validator.js.map +1 -0
- package/dist/semantic-governance/service.d.ts +120 -0
- package/dist/semantic-governance/service.d.ts.map +1 -0
- package/dist/semantic-governance/service.js +527 -0
- package/dist/semantic-governance/service.js.map +1 -0
- package/dist/semantic-governance/types.d.ts +3925 -0
- package/dist/semantic-governance/types.d.ts.map +1 -0
- package/dist/semantic-governance/types.js +471 -0
- package/dist/semantic-governance/types.js.map +1 -0
- package/dist/trust-engine/car-integration.d.ts +263 -0
- package/dist/trust-engine/car-integration.d.ts.map +1 -0
- package/dist/trust-engine/car-integration.js +320 -0
- package/dist/trust-engine/car-integration.js.map +1 -0
- package/dist/trust-engine/context.d.ts +198 -0
- package/dist/trust-engine/context.d.ts.map +1 -0
- package/dist/trust-engine/context.js +308 -0
- package/dist/trust-engine/context.js.map +1 -0
- package/dist/trust-engine/diminishing-returns.d.ts +123 -0
- package/dist/trust-engine/diminishing-returns.d.ts.map +1 -0
- package/dist/trust-engine/diminishing-returns.js +197 -0
- package/dist/trust-engine/diminishing-returns.js.map +1 -0
- package/dist/trust-engine/index.d.ts +433 -0
- package/dist/trust-engine/index.d.ts.map +1 -0
- package/dist/trust-engine/index.js +1241 -0
- package/dist/trust-engine/index.js.map +1 -0
- package/dist/trust-engine/observability.d.ts +175 -0
- package/dist/trust-engine/observability.d.ts.map +1 -0
- package/dist/trust-engine/observability.js +246 -0
- package/dist/trust-engine/observability.js.map +1 -0
- package/dist/trust-engine/signal-diversity.d.ts +130 -0
- package/dist/trust-engine/signal-diversity.d.ts.map +1 -0
- package/dist/trust-engine/signal-diversity.js +238 -0
- package/dist/trust-engine/signal-diversity.js.map +1 -0
- package/dist/versioning/deprecation.d.ts +65 -0
- package/dist/versioning/deprecation.d.ts.map +1 -0
- package/dist/versioning/deprecation.js +199 -0
- package/dist/versioning/deprecation.js.map +1 -0
- package/dist/versioning/index.d.ts +46 -0
- package/dist/versioning/index.d.ts.map +1 -0
- package/dist/versioning/index.js +76 -0
- package/dist/versioning/index.js.map +1 -0
- package/dist/versioning/semver.d.ts +116 -0
- package/dist/versioning/semver.d.ts.map +1 -0
- package/dist/versioning/semver.js +321 -0
- package/dist/versioning/semver.js.map +1 -0
- package/package.json +161 -0
|
@@ -0,0 +1,2855 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Policy Engine Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the flexible security policy engine including:
|
|
5
|
+
* - Policy conditions (user, request, time, risk, resource attributes)
|
|
6
|
+
* - Policy rules (MFA, approval, block, rate-limit, encryption, audit)
|
|
7
|
+
* - Policy actions (allow, deny, challenge, notify, log, escalate, quarantine)
|
|
8
|
+
* - Policy DSL schema
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import { z } from 'zod';
|
|
13
|
+
export declare const ConditionOperator: {
|
|
14
|
+
readonly EQUALS: "equals";
|
|
15
|
+
readonly NOT_EQUALS: "not_equals";
|
|
16
|
+
readonly GREATER_THAN: "greater_than";
|
|
17
|
+
readonly LESS_THAN: "less_than";
|
|
18
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
19
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
20
|
+
readonly IN: "in";
|
|
21
|
+
readonly NOT_IN: "not_in";
|
|
22
|
+
readonly CONTAINS: "contains";
|
|
23
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
24
|
+
readonly STARTS_WITH: "starts_with";
|
|
25
|
+
readonly ENDS_WITH: "ends_with";
|
|
26
|
+
readonly MATCHES: "matches";
|
|
27
|
+
readonly EXISTS: "exists";
|
|
28
|
+
readonly NOT_EXISTS: "not_exists";
|
|
29
|
+
readonly BETWEEN: "between";
|
|
30
|
+
};
|
|
31
|
+
export type ConditionOperator = (typeof ConditionOperator)[keyof typeof ConditionOperator];
|
|
32
|
+
export declare const conditionOperatorSchema: z.ZodNativeEnum<{
|
|
33
|
+
readonly EQUALS: "equals";
|
|
34
|
+
readonly NOT_EQUALS: "not_equals";
|
|
35
|
+
readonly GREATER_THAN: "greater_than";
|
|
36
|
+
readonly LESS_THAN: "less_than";
|
|
37
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
38
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
39
|
+
readonly IN: "in";
|
|
40
|
+
readonly NOT_IN: "not_in";
|
|
41
|
+
readonly CONTAINS: "contains";
|
|
42
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
43
|
+
readonly STARTS_WITH: "starts_with";
|
|
44
|
+
readonly ENDS_WITH: "ends_with";
|
|
45
|
+
readonly MATCHES: "matches";
|
|
46
|
+
readonly EXISTS: "exists";
|
|
47
|
+
readonly NOT_EXISTS: "not_exists";
|
|
48
|
+
readonly BETWEEN: "between";
|
|
49
|
+
}>;
|
|
50
|
+
export declare const LogicalOperator: {
|
|
51
|
+
readonly AND: "and";
|
|
52
|
+
readonly OR: "or";
|
|
53
|
+
readonly NOT: "not";
|
|
54
|
+
};
|
|
55
|
+
export type LogicalOperator = (typeof LogicalOperator)[keyof typeof LogicalOperator];
|
|
56
|
+
export declare const logicalOperatorSchema: z.ZodNativeEnum<{
|
|
57
|
+
readonly AND: "and";
|
|
58
|
+
readonly OR: "or";
|
|
59
|
+
readonly NOT: "not";
|
|
60
|
+
}>;
|
|
61
|
+
export declare const ConditionType: {
|
|
62
|
+
readonly USER_ATTRIBUTE: "user_attribute";
|
|
63
|
+
readonly REQUEST_ATTRIBUTE: "request_attribute";
|
|
64
|
+
readonly TIME_BASED: "time_based";
|
|
65
|
+
readonly RISK_BASED: "risk_based";
|
|
66
|
+
readonly RESOURCE_ATTRIBUTE: "resource_attribute";
|
|
67
|
+
readonly COMPOSITE: "composite";
|
|
68
|
+
readonly CUSTOM: "custom";
|
|
69
|
+
};
|
|
70
|
+
export type ConditionType = (typeof ConditionType)[keyof typeof ConditionType];
|
|
71
|
+
export declare const conditionTypeSchema: z.ZodNativeEnum<{
|
|
72
|
+
readonly USER_ATTRIBUTE: "user_attribute";
|
|
73
|
+
readonly REQUEST_ATTRIBUTE: "request_attribute";
|
|
74
|
+
readonly TIME_BASED: "time_based";
|
|
75
|
+
readonly RISK_BASED: "risk_based";
|
|
76
|
+
readonly RESOURCE_ATTRIBUTE: "resource_attribute";
|
|
77
|
+
readonly COMPOSITE: "composite";
|
|
78
|
+
readonly CUSTOM: "custom";
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* User attributes that can be evaluated
|
|
82
|
+
*/
|
|
83
|
+
export interface UserAttributeCondition {
|
|
84
|
+
type: 'user_attribute';
|
|
85
|
+
field: 'role' | 'department' | 'tenant' | 'groups' | 'permissions' | 'email_domain' | 'custom';
|
|
86
|
+
customField?: string;
|
|
87
|
+
operator: ConditionOperator;
|
|
88
|
+
value: unknown;
|
|
89
|
+
}
|
|
90
|
+
export declare const userAttributeConditionSchema: z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"user_attribute">;
|
|
92
|
+
field: z.ZodEnum<["role", "department", "tenant", "groups", "permissions", "email_domain", "custom"]>;
|
|
93
|
+
customField: z.ZodOptional<z.ZodString>;
|
|
94
|
+
operator: z.ZodNativeEnum<{
|
|
95
|
+
readonly EQUALS: "equals";
|
|
96
|
+
readonly NOT_EQUALS: "not_equals";
|
|
97
|
+
readonly GREATER_THAN: "greater_than";
|
|
98
|
+
readonly LESS_THAN: "less_than";
|
|
99
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
100
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
101
|
+
readonly IN: "in";
|
|
102
|
+
readonly NOT_IN: "not_in";
|
|
103
|
+
readonly CONTAINS: "contains";
|
|
104
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
105
|
+
readonly STARTS_WITH: "starts_with";
|
|
106
|
+
readonly ENDS_WITH: "ends_with";
|
|
107
|
+
readonly MATCHES: "matches";
|
|
108
|
+
readonly EXISTS: "exists";
|
|
109
|
+
readonly NOT_EXISTS: "not_exists";
|
|
110
|
+
readonly BETWEEN: "between";
|
|
111
|
+
}>;
|
|
112
|
+
value: z.ZodUnknown;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
115
|
+
value?: unknown;
|
|
116
|
+
type?: "user_attribute";
|
|
117
|
+
field?: "custom" | "permissions" | "role" | "tenant" | "groups" | "department" | "email_domain";
|
|
118
|
+
customField?: string;
|
|
119
|
+
}, {
|
|
120
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
121
|
+
value?: unknown;
|
|
122
|
+
type?: "user_attribute";
|
|
123
|
+
field?: "custom" | "permissions" | "role" | "tenant" | "groups" | "department" | "email_domain";
|
|
124
|
+
customField?: string;
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Request attributes that can be evaluated
|
|
128
|
+
*/
|
|
129
|
+
export interface RequestAttributeCondition {
|
|
130
|
+
type: 'request_attribute';
|
|
131
|
+
field: 'ip' | 'user_agent' | 'path' | 'method' | 'header' | 'query' | 'body' | 'origin' | 'referer' | 'custom';
|
|
132
|
+
customField?: string;
|
|
133
|
+
headerName?: string;
|
|
134
|
+
queryParam?: string;
|
|
135
|
+
bodyPath?: string;
|
|
136
|
+
operator: ConditionOperator;
|
|
137
|
+
value: unknown;
|
|
138
|
+
}
|
|
139
|
+
export declare const requestAttributeConditionSchema: z.ZodObject<{
|
|
140
|
+
type: z.ZodLiteral<"request_attribute">;
|
|
141
|
+
field: z.ZodEnum<["ip", "user_agent", "path", "method", "header", "query", "body", "origin", "referer", "custom"]>;
|
|
142
|
+
customField: z.ZodOptional<z.ZodString>;
|
|
143
|
+
headerName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
queryParam: z.ZodOptional<z.ZodString>;
|
|
145
|
+
bodyPath: z.ZodOptional<z.ZodString>;
|
|
146
|
+
operator: z.ZodNativeEnum<{
|
|
147
|
+
readonly EQUALS: "equals";
|
|
148
|
+
readonly NOT_EQUALS: "not_equals";
|
|
149
|
+
readonly GREATER_THAN: "greater_than";
|
|
150
|
+
readonly LESS_THAN: "less_than";
|
|
151
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
152
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
153
|
+
readonly IN: "in";
|
|
154
|
+
readonly NOT_IN: "not_in";
|
|
155
|
+
readonly CONTAINS: "contains";
|
|
156
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
157
|
+
readonly STARTS_WITH: "starts_with";
|
|
158
|
+
readonly ENDS_WITH: "ends_with";
|
|
159
|
+
readonly MATCHES: "matches";
|
|
160
|
+
readonly EXISTS: "exists";
|
|
161
|
+
readonly NOT_EXISTS: "not_exists";
|
|
162
|
+
readonly BETWEEN: "between";
|
|
163
|
+
}>;
|
|
164
|
+
value: z.ZodUnknown;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
167
|
+
value?: unknown;
|
|
168
|
+
type?: "request_attribute";
|
|
169
|
+
field?: "path" | "custom" | "ip" | "method" | "query" | "user_agent" | "body" | "origin" | "referer" | "header";
|
|
170
|
+
headerName?: string;
|
|
171
|
+
customField?: string;
|
|
172
|
+
queryParam?: string;
|
|
173
|
+
bodyPath?: string;
|
|
174
|
+
}, {
|
|
175
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
176
|
+
value?: unknown;
|
|
177
|
+
type?: "request_attribute";
|
|
178
|
+
field?: "path" | "custom" | "ip" | "method" | "query" | "user_agent" | "body" | "origin" | "referer" | "header";
|
|
179
|
+
headerName?: string;
|
|
180
|
+
customField?: string;
|
|
181
|
+
queryParam?: string;
|
|
182
|
+
bodyPath?: string;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Time-based conditions
|
|
186
|
+
*/
|
|
187
|
+
export interface TimeBasedCondition {
|
|
188
|
+
type: 'time_based';
|
|
189
|
+
field: 'hour' | 'day_of_week' | 'date' | 'business_hours' | 'weekend' | 'holiday' | 'custom';
|
|
190
|
+
/** Timezone for evaluation (default: UTC) */
|
|
191
|
+
timezone?: string;
|
|
192
|
+
/** Start hour for business hours (0-23) */
|
|
193
|
+
startHour?: number;
|
|
194
|
+
/** End hour for business hours (0-23) */
|
|
195
|
+
endHour?: number;
|
|
196
|
+
/** Days of week (0=Sunday, 6=Saturday) */
|
|
197
|
+
daysOfWeek?: number[];
|
|
198
|
+
/** Specific dates to match (ISO format) */
|
|
199
|
+
dates?: string[];
|
|
200
|
+
/** Holiday calendar ID */
|
|
201
|
+
holidayCalendar?: string;
|
|
202
|
+
operator: ConditionOperator;
|
|
203
|
+
value: unknown;
|
|
204
|
+
}
|
|
205
|
+
export declare const timeBasedConditionSchema: z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"time_based">;
|
|
207
|
+
field: z.ZodEnum<["hour", "day_of_week", "date", "business_hours", "weekend", "holiday", "custom"]>;
|
|
208
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
209
|
+
startHour: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
endHour: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
212
|
+
dates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
213
|
+
holidayCalendar: z.ZodOptional<z.ZodString>;
|
|
214
|
+
operator: z.ZodNativeEnum<{
|
|
215
|
+
readonly EQUALS: "equals";
|
|
216
|
+
readonly NOT_EQUALS: "not_equals";
|
|
217
|
+
readonly GREATER_THAN: "greater_than";
|
|
218
|
+
readonly LESS_THAN: "less_than";
|
|
219
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
220
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
221
|
+
readonly IN: "in";
|
|
222
|
+
readonly NOT_IN: "not_in";
|
|
223
|
+
readonly CONTAINS: "contains";
|
|
224
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
225
|
+
readonly STARTS_WITH: "starts_with";
|
|
226
|
+
readonly ENDS_WITH: "ends_with";
|
|
227
|
+
readonly MATCHES: "matches";
|
|
228
|
+
readonly EXISTS: "exists";
|
|
229
|
+
readonly NOT_EXISTS: "not_exists";
|
|
230
|
+
readonly BETWEEN: "between";
|
|
231
|
+
}>;
|
|
232
|
+
value: z.ZodUnknown;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
235
|
+
value?: unknown;
|
|
236
|
+
type?: "time_based";
|
|
237
|
+
field?: "date" | "custom" | "hour" | "day_of_week" | "business_hours" | "weekend" | "holiday";
|
|
238
|
+
startHour?: number;
|
|
239
|
+
endHour?: number;
|
|
240
|
+
daysOfWeek?: number[];
|
|
241
|
+
timezone?: string;
|
|
242
|
+
dates?: string[];
|
|
243
|
+
holidayCalendar?: string;
|
|
244
|
+
}, {
|
|
245
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
246
|
+
value?: unknown;
|
|
247
|
+
type?: "time_based";
|
|
248
|
+
field?: "date" | "custom" | "hour" | "day_of_week" | "business_hours" | "weekend" | "holiday";
|
|
249
|
+
startHour?: number;
|
|
250
|
+
endHour?: number;
|
|
251
|
+
daysOfWeek?: number[];
|
|
252
|
+
timezone?: string;
|
|
253
|
+
dates?: string[];
|
|
254
|
+
holidayCalendar?: string;
|
|
255
|
+
}>;
|
|
256
|
+
/**
|
|
257
|
+
* Risk-based conditions
|
|
258
|
+
*/
|
|
259
|
+
export interface RiskBasedCondition {
|
|
260
|
+
type: 'risk_based';
|
|
261
|
+
field: 'user_risk_score' | 'ip_reputation' | 'device_trust' | 'session_risk' | 'anomaly_score' | 'threat_level' | 'custom';
|
|
262
|
+
customField?: string;
|
|
263
|
+
operator: ConditionOperator;
|
|
264
|
+
value: unknown;
|
|
265
|
+
/** Optional threshold for numeric comparisons */
|
|
266
|
+
threshold?: number;
|
|
267
|
+
}
|
|
268
|
+
export declare const riskBasedConditionSchema: z.ZodObject<{
|
|
269
|
+
type: z.ZodLiteral<"risk_based">;
|
|
270
|
+
field: z.ZodEnum<["user_risk_score", "ip_reputation", "device_trust", "session_risk", "anomaly_score", "threat_level", "custom"]>;
|
|
271
|
+
customField: z.ZodOptional<z.ZodString>;
|
|
272
|
+
operator: z.ZodNativeEnum<{
|
|
273
|
+
readonly EQUALS: "equals";
|
|
274
|
+
readonly NOT_EQUALS: "not_equals";
|
|
275
|
+
readonly GREATER_THAN: "greater_than";
|
|
276
|
+
readonly LESS_THAN: "less_than";
|
|
277
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
278
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
279
|
+
readonly IN: "in";
|
|
280
|
+
readonly NOT_IN: "not_in";
|
|
281
|
+
readonly CONTAINS: "contains";
|
|
282
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
283
|
+
readonly STARTS_WITH: "starts_with";
|
|
284
|
+
readonly ENDS_WITH: "ends_with";
|
|
285
|
+
readonly MATCHES: "matches";
|
|
286
|
+
readonly EXISTS: "exists";
|
|
287
|
+
readonly NOT_EXISTS: "not_exists";
|
|
288
|
+
readonly BETWEEN: "between";
|
|
289
|
+
}>;
|
|
290
|
+
value: z.ZodUnknown;
|
|
291
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
294
|
+
value?: unknown;
|
|
295
|
+
type?: "risk_based";
|
|
296
|
+
field?: "custom" | "user_risk_score" | "ip_reputation" | "device_trust" | "session_risk" | "anomaly_score" | "threat_level";
|
|
297
|
+
threshold?: number;
|
|
298
|
+
customField?: string;
|
|
299
|
+
}, {
|
|
300
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
301
|
+
value?: unknown;
|
|
302
|
+
type?: "risk_based";
|
|
303
|
+
field?: "custom" | "user_risk_score" | "ip_reputation" | "device_trust" | "session_risk" | "anomaly_score" | "threat_level";
|
|
304
|
+
threshold?: number;
|
|
305
|
+
customField?: string;
|
|
306
|
+
}>;
|
|
307
|
+
/**
|
|
308
|
+
* Resource attribute conditions
|
|
309
|
+
*/
|
|
310
|
+
export interface ResourceAttributeCondition {
|
|
311
|
+
type: 'resource_attribute';
|
|
312
|
+
field: 'sensitivity_level' | 'data_type' | 'classification' | 'owner' | 'department' | 'region' | 'tags' | 'custom';
|
|
313
|
+
customField?: string;
|
|
314
|
+
operator: ConditionOperator;
|
|
315
|
+
value: unknown;
|
|
316
|
+
}
|
|
317
|
+
export declare const resourceAttributeConditionSchema: z.ZodObject<{
|
|
318
|
+
type: z.ZodLiteral<"resource_attribute">;
|
|
319
|
+
field: z.ZodEnum<["sensitivity_level", "data_type", "classification", "owner", "department", "region", "tags", "custom"]>;
|
|
320
|
+
customField: z.ZodOptional<z.ZodString>;
|
|
321
|
+
operator: z.ZodNativeEnum<{
|
|
322
|
+
readonly EQUALS: "equals";
|
|
323
|
+
readonly NOT_EQUALS: "not_equals";
|
|
324
|
+
readonly GREATER_THAN: "greater_than";
|
|
325
|
+
readonly LESS_THAN: "less_than";
|
|
326
|
+
readonly GREATER_THAN_OR_EQUAL: "greater_than_or_equal";
|
|
327
|
+
readonly LESS_THAN_OR_EQUAL: "less_than_or_equal";
|
|
328
|
+
readonly IN: "in";
|
|
329
|
+
readonly NOT_IN: "not_in";
|
|
330
|
+
readonly CONTAINS: "contains";
|
|
331
|
+
readonly NOT_CONTAINS: "not_contains";
|
|
332
|
+
readonly STARTS_WITH: "starts_with";
|
|
333
|
+
readonly ENDS_WITH: "ends_with";
|
|
334
|
+
readonly MATCHES: "matches";
|
|
335
|
+
readonly EXISTS: "exists";
|
|
336
|
+
readonly NOT_EXISTS: "not_exists";
|
|
337
|
+
readonly BETWEEN: "between";
|
|
338
|
+
}>;
|
|
339
|
+
value: z.ZodUnknown;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
342
|
+
value?: unknown;
|
|
343
|
+
type?: "resource_attribute";
|
|
344
|
+
field?: "custom" | "region" | "tags" | "owner" | "classification" | "department" | "sensitivity_level" | "data_type";
|
|
345
|
+
customField?: string;
|
|
346
|
+
}, {
|
|
347
|
+
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists" | "starts_with" | "ends_with" | "between";
|
|
348
|
+
value?: unknown;
|
|
349
|
+
type?: "resource_attribute";
|
|
350
|
+
field?: "custom" | "region" | "tags" | "owner" | "classification" | "department" | "sensitivity_level" | "data_type";
|
|
351
|
+
customField?: string;
|
|
352
|
+
}>;
|
|
353
|
+
/**
|
|
354
|
+
* Forward declaration for recursive type
|
|
355
|
+
*/
|
|
356
|
+
export interface CompositeCondition {
|
|
357
|
+
type: 'composite';
|
|
358
|
+
operator: LogicalOperator;
|
|
359
|
+
conditions: PolicyCondition[];
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Custom condition using expression
|
|
363
|
+
*/
|
|
364
|
+
export interface CustomCondition {
|
|
365
|
+
type: 'custom';
|
|
366
|
+
/** Custom expression (e.g., JSONPath, CEL, custom DSL) */
|
|
367
|
+
expression: string;
|
|
368
|
+
/** Expression language */
|
|
369
|
+
language?: 'jsonpath' | 'cel' | 'jmespath' | 'custom';
|
|
370
|
+
/** Additional parameters for evaluation */
|
|
371
|
+
params?: Record<string, unknown>;
|
|
372
|
+
}
|
|
373
|
+
export declare const customConditionSchema: z.ZodObject<{
|
|
374
|
+
type: z.ZodLiteral<"custom">;
|
|
375
|
+
expression: z.ZodString;
|
|
376
|
+
language: z.ZodOptional<z.ZodEnum<["jsonpath", "cel", "jmespath", "custom"]>>;
|
|
377
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
expression?: string;
|
|
380
|
+
params?: Record<string, unknown>;
|
|
381
|
+
type?: "custom";
|
|
382
|
+
language?: "custom" | "jsonpath" | "cel" | "jmespath";
|
|
383
|
+
}, {
|
|
384
|
+
expression?: string;
|
|
385
|
+
params?: Record<string, unknown>;
|
|
386
|
+
type?: "custom";
|
|
387
|
+
language?: "custom" | "jsonpath" | "cel" | "jmespath";
|
|
388
|
+
}>;
|
|
389
|
+
export type PolicyCondition = UserAttributeCondition | RequestAttributeCondition | TimeBasedCondition | RiskBasedCondition | ResourceAttributeCondition | CompositeCondition | CustomCondition;
|
|
390
|
+
export declare const policyConditionSchema: z.ZodSchema<any>;
|
|
391
|
+
export declare const compositeConditionSchema: z.ZodObject<{
|
|
392
|
+
type: z.ZodLiteral<"composite">;
|
|
393
|
+
operator: z.ZodNativeEnum<{
|
|
394
|
+
readonly AND: "and";
|
|
395
|
+
readonly OR: "or";
|
|
396
|
+
readonly NOT: "not";
|
|
397
|
+
}>;
|
|
398
|
+
conditions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
operator?: "and" | "or" | "not";
|
|
401
|
+
type?: "composite";
|
|
402
|
+
conditions?: any[];
|
|
403
|
+
}, {
|
|
404
|
+
operator?: "and" | "or" | "not";
|
|
405
|
+
type?: "composite";
|
|
406
|
+
conditions?: any[];
|
|
407
|
+
}>;
|
|
408
|
+
export declare const PolicyRuleType: {
|
|
409
|
+
readonly REQUIRE_MFA: "require_mfa";
|
|
410
|
+
readonly REQUIRE_APPROVAL: "require_approval";
|
|
411
|
+
readonly BLOCK_ACCESS: "block_access";
|
|
412
|
+
readonly RATE_LIMIT: "rate_limit";
|
|
413
|
+
readonly REQUIRE_ENCRYPTION: "require_encryption";
|
|
414
|
+
readonly AUDIT_LOG: "audit_log";
|
|
415
|
+
readonly STEP_UP_AUTH: "step_up_auth";
|
|
416
|
+
readonly DATA_MASKING: "data_masking";
|
|
417
|
+
readonly SESSION_TIMEOUT: "session_timeout";
|
|
418
|
+
readonly GEO_RESTRICTION: "geo_restriction";
|
|
419
|
+
readonly CUSTOM: "custom";
|
|
420
|
+
};
|
|
421
|
+
export type PolicyRuleType = (typeof PolicyRuleType)[keyof typeof PolicyRuleType];
|
|
422
|
+
export declare const policyRuleTypeSchema: z.ZodNativeEnum<{
|
|
423
|
+
readonly REQUIRE_MFA: "require_mfa";
|
|
424
|
+
readonly REQUIRE_APPROVAL: "require_approval";
|
|
425
|
+
readonly BLOCK_ACCESS: "block_access";
|
|
426
|
+
readonly RATE_LIMIT: "rate_limit";
|
|
427
|
+
readonly REQUIRE_ENCRYPTION: "require_encryption";
|
|
428
|
+
readonly AUDIT_LOG: "audit_log";
|
|
429
|
+
readonly STEP_UP_AUTH: "step_up_auth";
|
|
430
|
+
readonly DATA_MASKING: "data_masking";
|
|
431
|
+
readonly SESSION_TIMEOUT: "session_timeout";
|
|
432
|
+
readonly GEO_RESTRICTION: "geo_restriction";
|
|
433
|
+
readonly CUSTOM: "custom";
|
|
434
|
+
}>;
|
|
435
|
+
/**
|
|
436
|
+
* MFA rule configuration
|
|
437
|
+
*/
|
|
438
|
+
export interface MFARule {
|
|
439
|
+
type: 'require_mfa';
|
|
440
|
+
enforced: boolean;
|
|
441
|
+
methods?: ('totp' | 'sms' | 'email' | 'push' | 'webauthn' | 'hardware_key')[];
|
|
442
|
+
timeout?: number;
|
|
443
|
+
rememberDevice?: boolean;
|
|
444
|
+
rememberDuration?: number;
|
|
445
|
+
}
|
|
446
|
+
export declare const mfaRuleSchema: z.ZodObject<{
|
|
447
|
+
type: z.ZodLiteral<"require_mfa">;
|
|
448
|
+
enforced: z.ZodBoolean;
|
|
449
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["totp", "sms", "email", "push", "webauthn", "hardware_key"]>, "many">>;
|
|
450
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
rememberDevice: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
rememberDuration: z.ZodOptional<z.ZodNumber>;
|
|
453
|
+
}, "strip", z.ZodTypeAny, {
|
|
454
|
+
timeout?: number;
|
|
455
|
+
type?: "require_mfa";
|
|
456
|
+
enforced?: boolean;
|
|
457
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
458
|
+
rememberDevice?: boolean;
|
|
459
|
+
rememberDuration?: number;
|
|
460
|
+
}, {
|
|
461
|
+
timeout?: number;
|
|
462
|
+
type?: "require_mfa";
|
|
463
|
+
enforced?: boolean;
|
|
464
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
465
|
+
rememberDevice?: boolean;
|
|
466
|
+
rememberDuration?: number;
|
|
467
|
+
}>;
|
|
468
|
+
/**
|
|
469
|
+
* Approval rule configuration
|
|
470
|
+
*/
|
|
471
|
+
export interface ApprovalRule {
|
|
472
|
+
type: 'require_approval';
|
|
473
|
+
enforced: boolean;
|
|
474
|
+
approvers?: string[];
|
|
475
|
+
approverRoles?: string[];
|
|
476
|
+
approvalTimeout?: number;
|
|
477
|
+
minApprovers?: number;
|
|
478
|
+
autoRejectOnTimeout?: boolean;
|
|
479
|
+
requireJustification?: boolean;
|
|
480
|
+
}
|
|
481
|
+
export declare const approvalRuleSchema: z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"require_approval">;
|
|
483
|
+
enforced: z.ZodBoolean;
|
|
484
|
+
approvers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
|
+
approverRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
486
|
+
approvalTimeout: z.ZodOptional<z.ZodNumber>;
|
|
487
|
+
minApprovers: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
autoRejectOnTimeout: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
requireJustification: z.ZodOptional<z.ZodBoolean>;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
type?: "require_approval";
|
|
492
|
+
requireJustification?: boolean;
|
|
493
|
+
enforced?: boolean;
|
|
494
|
+
approvers?: string[];
|
|
495
|
+
approverRoles?: string[];
|
|
496
|
+
approvalTimeout?: number;
|
|
497
|
+
minApprovers?: number;
|
|
498
|
+
autoRejectOnTimeout?: boolean;
|
|
499
|
+
}, {
|
|
500
|
+
type?: "require_approval";
|
|
501
|
+
requireJustification?: boolean;
|
|
502
|
+
enforced?: boolean;
|
|
503
|
+
approvers?: string[];
|
|
504
|
+
approverRoles?: string[];
|
|
505
|
+
approvalTimeout?: number;
|
|
506
|
+
minApprovers?: number;
|
|
507
|
+
autoRejectOnTimeout?: boolean;
|
|
508
|
+
}>;
|
|
509
|
+
/**
|
|
510
|
+
* Block access rule configuration
|
|
511
|
+
*/
|
|
512
|
+
export interface BlockAccessRule {
|
|
513
|
+
type: 'block_access';
|
|
514
|
+
enforced: boolean;
|
|
515
|
+
reason?: string;
|
|
516
|
+
errorCode?: string;
|
|
517
|
+
redirectUrl?: string;
|
|
518
|
+
}
|
|
519
|
+
export declare const blockAccessRuleSchema: z.ZodObject<{
|
|
520
|
+
type: z.ZodLiteral<"block_access">;
|
|
521
|
+
enforced: z.ZodBoolean;
|
|
522
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
523
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
524
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
reason?: string;
|
|
527
|
+
type?: "block_access";
|
|
528
|
+
errorCode?: string;
|
|
529
|
+
enforced?: boolean;
|
|
530
|
+
redirectUrl?: string;
|
|
531
|
+
}, {
|
|
532
|
+
reason?: string;
|
|
533
|
+
type?: "block_access";
|
|
534
|
+
errorCode?: string;
|
|
535
|
+
enforced?: boolean;
|
|
536
|
+
redirectUrl?: string;
|
|
537
|
+
}>;
|
|
538
|
+
/**
|
|
539
|
+
* Rate limit rule configuration
|
|
540
|
+
*/
|
|
541
|
+
export interface RateLimitRule {
|
|
542
|
+
type: 'rate_limit';
|
|
543
|
+
enforced: boolean;
|
|
544
|
+
limit: number;
|
|
545
|
+
window: number;
|
|
546
|
+
windowUnit?: 'second' | 'minute' | 'hour' | 'day';
|
|
547
|
+
keyBy?: ('user' | 'ip' | 'tenant' | 'api_key' | 'custom')[];
|
|
548
|
+
customKey?: string;
|
|
549
|
+
burstLimit?: number;
|
|
550
|
+
retryAfter?: number;
|
|
551
|
+
}
|
|
552
|
+
export declare const rateLimitRuleSchema: z.ZodObject<{
|
|
553
|
+
type: z.ZodLiteral<"rate_limit">;
|
|
554
|
+
enforced: z.ZodBoolean;
|
|
555
|
+
limit: z.ZodNumber;
|
|
556
|
+
window: z.ZodNumber;
|
|
557
|
+
windowUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
558
|
+
keyBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "ip", "tenant", "api_key", "custom"]>, "many">>;
|
|
559
|
+
customKey: z.ZodOptional<z.ZodString>;
|
|
560
|
+
burstLimit: z.ZodOptional<z.ZodNumber>;
|
|
561
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
limit?: number;
|
|
564
|
+
type?: "rate_limit";
|
|
565
|
+
retryAfter?: number;
|
|
566
|
+
window?: number;
|
|
567
|
+
enforced?: boolean;
|
|
568
|
+
burstLimit?: number;
|
|
569
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
570
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
571
|
+
customKey?: string;
|
|
572
|
+
}, {
|
|
573
|
+
limit?: number;
|
|
574
|
+
type?: "rate_limit";
|
|
575
|
+
retryAfter?: number;
|
|
576
|
+
window?: number;
|
|
577
|
+
enforced?: boolean;
|
|
578
|
+
burstLimit?: number;
|
|
579
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
580
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
581
|
+
customKey?: string;
|
|
582
|
+
}>;
|
|
583
|
+
/**
|
|
584
|
+
* Encryption rule configuration
|
|
585
|
+
*/
|
|
586
|
+
export interface EncryptionRule {
|
|
587
|
+
type: 'require_encryption';
|
|
588
|
+
enforced: boolean;
|
|
589
|
+
fields?: string[];
|
|
590
|
+
algorithm?: 'AES-256-GCM' | 'RSA-OAEP' | 'ChaCha20-Poly1305';
|
|
591
|
+
keyId?: string;
|
|
592
|
+
}
|
|
593
|
+
export declare const encryptionRuleSchema: z.ZodObject<{
|
|
594
|
+
type: z.ZodLiteral<"require_encryption">;
|
|
595
|
+
enforced: z.ZodBoolean;
|
|
596
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
597
|
+
algorithm: z.ZodOptional<z.ZodEnum<["AES-256-GCM", "RSA-OAEP", "ChaCha20-Poly1305"]>>;
|
|
598
|
+
keyId: z.ZodOptional<z.ZodString>;
|
|
599
|
+
}, "strip", z.ZodTypeAny, {
|
|
600
|
+
type?: "require_encryption";
|
|
601
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
602
|
+
fields?: string[];
|
|
603
|
+
enforced?: boolean;
|
|
604
|
+
keyId?: string;
|
|
605
|
+
}, {
|
|
606
|
+
type?: "require_encryption";
|
|
607
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
608
|
+
fields?: string[];
|
|
609
|
+
enforced?: boolean;
|
|
610
|
+
keyId?: string;
|
|
611
|
+
}>;
|
|
612
|
+
/**
|
|
613
|
+
* Audit log rule configuration
|
|
614
|
+
*/
|
|
615
|
+
export interface AuditLogRule {
|
|
616
|
+
type: 'audit_log';
|
|
617
|
+
enforced: boolean;
|
|
618
|
+
level?: 'basic' | 'detailed' | 'full';
|
|
619
|
+
includeRequest?: boolean;
|
|
620
|
+
includeResponse?: boolean;
|
|
621
|
+
includeHeaders?: boolean;
|
|
622
|
+
redactFields?: string[];
|
|
623
|
+
destination?: string;
|
|
624
|
+
}
|
|
625
|
+
export declare const auditLogRuleSchema: z.ZodObject<{
|
|
626
|
+
type: z.ZodLiteral<"audit_log">;
|
|
627
|
+
enforced: z.ZodBoolean;
|
|
628
|
+
level: z.ZodOptional<z.ZodEnum<["basic", "detailed", "full"]>>;
|
|
629
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
630
|
+
includeResponse: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
includeHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
632
|
+
redactFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
633
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
634
|
+
}, "strip", z.ZodTypeAny, {
|
|
635
|
+
level?: "full" | "detailed" | "basic";
|
|
636
|
+
type?: "audit_log";
|
|
637
|
+
enforced?: boolean;
|
|
638
|
+
includeRequest?: boolean;
|
|
639
|
+
includeResponse?: boolean;
|
|
640
|
+
includeHeaders?: boolean;
|
|
641
|
+
redactFields?: string[];
|
|
642
|
+
destination?: string;
|
|
643
|
+
}, {
|
|
644
|
+
level?: "full" | "detailed" | "basic";
|
|
645
|
+
type?: "audit_log";
|
|
646
|
+
enforced?: boolean;
|
|
647
|
+
includeRequest?: boolean;
|
|
648
|
+
includeResponse?: boolean;
|
|
649
|
+
includeHeaders?: boolean;
|
|
650
|
+
redactFields?: string[];
|
|
651
|
+
destination?: string;
|
|
652
|
+
}>;
|
|
653
|
+
/**
|
|
654
|
+
* Step-up authentication rule
|
|
655
|
+
*/
|
|
656
|
+
export interface StepUpAuthRule {
|
|
657
|
+
type: 'step_up_auth';
|
|
658
|
+
enforced: boolean;
|
|
659
|
+
requiredLevel: number;
|
|
660
|
+
method?: 'mfa' | 'password' | 'biometric';
|
|
661
|
+
timeout?: number;
|
|
662
|
+
}
|
|
663
|
+
export declare const stepUpAuthRuleSchema: z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"step_up_auth">;
|
|
665
|
+
enforced: z.ZodBoolean;
|
|
666
|
+
requiredLevel: z.ZodNumber;
|
|
667
|
+
method: z.ZodOptional<z.ZodEnum<["mfa", "password", "biometric"]>>;
|
|
668
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
}, "strip", z.ZodTypeAny, {
|
|
670
|
+
timeout?: number;
|
|
671
|
+
type?: "step_up_auth";
|
|
672
|
+
method?: "password" | "biometric" | "mfa";
|
|
673
|
+
requiredLevel?: number;
|
|
674
|
+
enforced?: boolean;
|
|
675
|
+
}, {
|
|
676
|
+
timeout?: number;
|
|
677
|
+
type?: "step_up_auth";
|
|
678
|
+
method?: "password" | "biometric" | "mfa";
|
|
679
|
+
requiredLevel?: number;
|
|
680
|
+
enforced?: boolean;
|
|
681
|
+
}>;
|
|
682
|
+
/**
|
|
683
|
+
* Data masking rule
|
|
684
|
+
*/
|
|
685
|
+
export interface DataMaskingRule {
|
|
686
|
+
type: 'data_masking';
|
|
687
|
+
enforced: boolean;
|
|
688
|
+
fields: string[];
|
|
689
|
+
maskType?: 'full' | 'partial' | 'hash' | 'tokenize';
|
|
690
|
+
partialMaskPattern?: string;
|
|
691
|
+
}
|
|
692
|
+
export declare const dataMaskingRuleSchema: z.ZodObject<{
|
|
693
|
+
type: z.ZodLiteral<"data_masking">;
|
|
694
|
+
enforced: z.ZodBoolean;
|
|
695
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
696
|
+
maskType: z.ZodOptional<z.ZodEnum<["full", "partial", "hash", "tokenize"]>>;
|
|
697
|
+
partialMaskPattern: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
type?: "data_masking";
|
|
700
|
+
fields?: string[];
|
|
701
|
+
enforced?: boolean;
|
|
702
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
703
|
+
partialMaskPattern?: string;
|
|
704
|
+
}, {
|
|
705
|
+
type?: "data_masking";
|
|
706
|
+
fields?: string[];
|
|
707
|
+
enforced?: boolean;
|
|
708
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
709
|
+
partialMaskPattern?: string;
|
|
710
|
+
}>;
|
|
711
|
+
/**
|
|
712
|
+
* Session timeout rule
|
|
713
|
+
*/
|
|
714
|
+
export interface SessionTimeoutRule {
|
|
715
|
+
type: 'session_timeout';
|
|
716
|
+
enforced: boolean;
|
|
717
|
+
maxDuration?: number;
|
|
718
|
+
idleTimeout?: number;
|
|
719
|
+
requireReauth?: boolean;
|
|
720
|
+
}
|
|
721
|
+
export declare const sessionTimeoutRuleSchema: z.ZodObject<{
|
|
722
|
+
type: z.ZodLiteral<"session_timeout">;
|
|
723
|
+
enforced: z.ZodBoolean;
|
|
724
|
+
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
idleTimeout: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
requireReauth: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
}, "strip", z.ZodTypeAny, {
|
|
728
|
+
type?: "session_timeout";
|
|
729
|
+
enforced?: boolean;
|
|
730
|
+
maxDuration?: number;
|
|
731
|
+
idleTimeout?: number;
|
|
732
|
+
requireReauth?: boolean;
|
|
733
|
+
}, {
|
|
734
|
+
type?: "session_timeout";
|
|
735
|
+
enforced?: boolean;
|
|
736
|
+
maxDuration?: number;
|
|
737
|
+
idleTimeout?: number;
|
|
738
|
+
requireReauth?: boolean;
|
|
739
|
+
}>;
|
|
740
|
+
/**
|
|
741
|
+
* Geo restriction rule
|
|
742
|
+
*/
|
|
743
|
+
export interface GeoRestrictionRule {
|
|
744
|
+
type: 'geo_restriction';
|
|
745
|
+
enforced: boolean;
|
|
746
|
+
allowedCountries?: string[];
|
|
747
|
+
blockedCountries?: string[];
|
|
748
|
+
allowedRegions?: string[];
|
|
749
|
+
blockedRegions?: string[];
|
|
750
|
+
}
|
|
751
|
+
export declare const geoRestrictionRuleSchema: z.ZodObject<{
|
|
752
|
+
type: z.ZodLiteral<"geo_restriction">;
|
|
753
|
+
enforced: z.ZodBoolean;
|
|
754
|
+
allowedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
755
|
+
blockedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
756
|
+
allowedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
757
|
+
blockedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
759
|
+
type?: "geo_restriction";
|
|
760
|
+
enforced?: boolean;
|
|
761
|
+
allowedCountries?: string[];
|
|
762
|
+
blockedCountries?: string[];
|
|
763
|
+
allowedRegions?: string[];
|
|
764
|
+
blockedRegions?: string[];
|
|
765
|
+
}, {
|
|
766
|
+
type?: "geo_restriction";
|
|
767
|
+
enforced?: boolean;
|
|
768
|
+
allowedCountries?: string[];
|
|
769
|
+
blockedCountries?: string[];
|
|
770
|
+
allowedRegions?: string[];
|
|
771
|
+
blockedRegions?: string[];
|
|
772
|
+
}>;
|
|
773
|
+
/**
|
|
774
|
+
* Custom rule
|
|
775
|
+
*/
|
|
776
|
+
export interface CustomRule {
|
|
777
|
+
type: 'custom';
|
|
778
|
+
enforced: boolean;
|
|
779
|
+
handler: string;
|
|
780
|
+
config?: Record<string, unknown>;
|
|
781
|
+
}
|
|
782
|
+
export declare const customRuleSchema: z.ZodObject<{
|
|
783
|
+
type: z.ZodLiteral<"custom">;
|
|
784
|
+
enforced: z.ZodBoolean;
|
|
785
|
+
handler: z.ZodString;
|
|
786
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
type?: "custom";
|
|
789
|
+
config?: Record<string, unknown>;
|
|
790
|
+
handler?: string;
|
|
791
|
+
enforced?: boolean;
|
|
792
|
+
}, {
|
|
793
|
+
type?: "custom";
|
|
794
|
+
config?: Record<string, unknown>;
|
|
795
|
+
handler?: string;
|
|
796
|
+
enforced?: boolean;
|
|
797
|
+
}>;
|
|
798
|
+
/**
|
|
799
|
+
* Union of all rule types
|
|
800
|
+
*/
|
|
801
|
+
export type PolicyRule = MFARule | ApprovalRule | BlockAccessRule | RateLimitRule | EncryptionRule | AuditLogRule | StepUpAuthRule | DataMaskingRule | SessionTimeoutRule | GeoRestrictionRule | CustomRule;
|
|
802
|
+
export declare const policyRuleSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
803
|
+
type: z.ZodLiteral<"require_mfa">;
|
|
804
|
+
enforced: z.ZodBoolean;
|
|
805
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["totp", "sms", "email", "push", "webauthn", "hardware_key"]>, "many">>;
|
|
806
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
rememberDevice: z.ZodOptional<z.ZodBoolean>;
|
|
808
|
+
rememberDuration: z.ZodOptional<z.ZodNumber>;
|
|
809
|
+
}, "strip", z.ZodTypeAny, {
|
|
810
|
+
timeout?: number;
|
|
811
|
+
type?: "require_mfa";
|
|
812
|
+
enforced?: boolean;
|
|
813
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
814
|
+
rememberDevice?: boolean;
|
|
815
|
+
rememberDuration?: number;
|
|
816
|
+
}, {
|
|
817
|
+
timeout?: number;
|
|
818
|
+
type?: "require_mfa";
|
|
819
|
+
enforced?: boolean;
|
|
820
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
821
|
+
rememberDevice?: boolean;
|
|
822
|
+
rememberDuration?: number;
|
|
823
|
+
}>, z.ZodObject<{
|
|
824
|
+
type: z.ZodLiteral<"require_approval">;
|
|
825
|
+
enforced: z.ZodBoolean;
|
|
826
|
+
approvers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
827
|
+
approverRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
828
|
+
approvalTimeout: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
minApprovers: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
autoRejectOnTimeout: z.ZodOptional<z.ZodBoolean>;
|
|
831
|
+
requireJustification: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
+
}, "strip", z.ZodTypeAny, {
|
|
833
|
+
type?: "require_approval";
|
|
834
|
+
requireJustification?: boolean;
|
|
835
|
+
enforced?: boolean;
|
|
836
|
+
approvers?: string[];
|
|
837
|
+
approverRoles?: string[];
|
|
838
|
+
approvalTimeout?: number;
|
|
839
|
+
minApprovers?: number;
|
|
840
|
+
autoRejectOnTimeout?: boolean;
|
|
841
|
+
}, {
|
|
842
|
+
type?: "require_approval";
|
|
843
|
+
requireJustification?: boolean;
|
|
844
|
+
enforced?: boolean;
|
|
845
|
+
approvers?: string[];
|
|
846
|
+
approverRoles?: string[];
|
|
847
|
+
approvalTimeout?: number;
|
|
848
|
+
minApprovers?: number;
|
|
849
|
+
autoRejectOnTimeout?: boolean;
|
|
850
|
+
}>, z.ZodObject<{
|
|
851
|
+
type: z.ZodLiteral<"block_access">;
|
|
852
|
+
enforced: z.ZodBoolean;
|
|
853
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
854
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
855
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
reason?: string;
|
|
858
|
+
type?: "block_access";
|
|
859
|
+
errorCode?: string;
|
|
860
|
+
enforced?: boolean;
|
|
861
|
+
redirectUrl?: string;
|
|
862
|
+
}, {
|
|
863
|
+
reason?: string;
|
|
864
|
+
type?: "block_access";
|
|
865
|
+
errorCode?: string;
|
|
866
|
+
enforced?: boolean;
|
|
867
|
+
redirectUrl?: string;
|
|
868
|
+
}>, z.ZodObject<{
|
|
869
|
+
type: z.ZodLiteral<"rate_limit">;
|
|
870
|
+
enforced: z.ZodBoolean;
|
|
871
|
+
limit: z.ZodNumber;
|
|
872
|
+
window: z.ZodNumber;
|
|
873
|
+
windowUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
874
|
+
keyBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "ip", "tenant", "api_key", "custom"]>, "many">>;
|
|
875
|
+
customKey: z.ZodOptional<z.ZodString>;
|
|
876
|
+
burstLimit: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
limit?: number;
|
|
880
|
+
type?: "rate_limit";
|
|
881
|
+
retryAfter?: number;
|
|
882
|
+
window?: number;
|
|
883
|
+
enforced?: boolean;
|
|
884
|
+
burstLimit?: number;
|
|
885
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
886
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
887
|
+
customKey?: string;
|
|
888
|
+
}, {
|
|
889
|
+
limit?: number;
|
|
890
|
+
type?: "rate_limit";
|
|
891
|
+
retryAfter?: number;
|
|
892
|
+
window?: number;
|
|
893
|
+
enforced?: boolean;
|
|
894
|
+
burstLimit?: number;
|
|
895
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
896
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
897
|
+
customKey?: string;
|
|
898
|
+
}>, z.ZodObject<{
|
|
899
|
+
type: z.ZodLiteral<"require_encryption">;
|
|
900
|
+
enforced: z.ZodBoolean;
|
|
901
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
902
|
+
algorithm: z.ZodOptional<z.ZodEnum<["AES-256-GCM", "RSA-OAEP", "ChaCha20-Poly1305"]>>;
|
|
903
|
+
keyId: z.ZodOptional<z.ZodString>;
|
|
904
|
+
}, "strip", z.ZodTypeAny, {
|
|
905
|
+
type?: "require_encryption";
|
|
906
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
907
|
+
fields?: string[];
|
|
908
|
+
enforced?: boolean;
|
|
909
|
+
keyId?: string;
|
|
910
|
+
}, {
|
|
911
|
+
type?: "require_encryption";
|
|
912
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
913
|
+
fields?: string[];
|
|
914
|
+
enforced?: boolean;
|
|
915
|
+
keyId?: string;
|
|
916
|
+
}>, z.ZodObject<{
|
|
917
|
+
type: z.ZodLiteral<"audit_log">;
|
|
918
|
+
enforced: z.ZodBoolean;
|
|
919
|
+
level: z.ZodOptional<z.ZodEnum<["basic", "detailed", "full"]>>;
|
|
920
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
921
|
+
includeResponse: z.ZodOptional<z.ZodBoolean>;
|
|
922
|
+
includeHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
923
|
+
redactFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
924
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
level?: "full" | "detailed" | "basic";
|
|
927
|
+
type?: "audit_log";
|
|
928
|
+
enforced?: boolean;
|
|
929
|
+
includeRequest?: boolean;
|
|
930
|
+
includeResponse?: boolean;
|
|
931
|
+
includeHeaders?: boolean;
|
|
932
|
+
redactFields?: string[];
|
|
933
|
+
destination?: string;
|
|
934
|
+
}, {
|
|
935
|
+
level?: "full" | "detailed" | "basic";
|
|
936
|
+
type?: "audit_log";
|
|
937
|
+
enforced?: boolean;
|
|
938
|
+
includeRequest?: boolean;
|
|
939
|
+
includeResponse?: boolean;
|
|
940
|
+
includeHeaders?: boolean;
|
|
941
|
+
redactFields?: string[];
|
|
942
|
+
destination?: string;
|
|
943
|
+
}>, z.ZodObject<{
|
|
944
|
+
type: z.ZodLiteral<"step_up_auth">;
|
|
945
|
+
enforced: z.ZodBoolean;
|
|
946
|
+
requiredLevel: z.ZodNumber;
|
|
947
|
+
method: z.ZodOptional<z.ZodEnum<["mfa", "password", "biometric"]>>;
|
|
948
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
timeout?: number;
|
|
951
|
+
type?: "step_up_auth";
|
|
952
|
+
method?: "password" | "biometric" | "mfa";
|
|
953
|
+
requiredLevel?: number;
|
|
954
|
+
enforced?: boolean;
|
|
955
|
+
}, {
|
|
956
|
+
timeout?: number;
|
|
957
|
+
type?: "step_up_auth";
|
|
958
|
+
method?: "password" | "biometric" | "mfa";
|
|
959
|
+
requiredLevel?: number;
|
|
960
|
+
enforced?: boolean;
|
|
961
|
+
}>, z.ZodObject<{
|
|
962
|
+
type: z.ZodLiteral<"data_masking">;
|
|
963
|
+
enforced: z.ZodBoolean;
|
|
964
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
965
|
+
maskType: z.ZodOptional<z.ZodEnum<["full", "partial", "hash", "tokenize"]>>;
|
|
966
|
+
partialMaskPattern: z.ZodOptional<z.ZodString>;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
type?: "data_masking";
|
|
969
|
+
fields?: string[];
|
|
970
|
+
enforced?: boolean;
|
|
971
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
972
|
+
partialMaskPattern?: string;
|
|
973
|
+
}, {
|
|
974
|
+
type?: "data_masking";
|
|
975
|
+
fields?: string[];
|
|
976
|
+
enforced?: boolean;
|
|
977
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
978
|
+
partialMaskPattern?: string;
|
|
979
|
+
}>, z.ZodObject<{
|
|
980
|
+
type: z.ZodLiteral<"session_timeout">;
|
|
981
|
+
enforced: z.ZodBoolean;
|
|
982
|
+
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
983
|
+
idleTimeout: z.ZodOptional<z.ZodNumber>;
|
|
984
|
+
requireReauth: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
+
}, "strip", z.ZodTypeAny, {
|
|
986
|
+
type?: "session_timeout";
|
|
987
|
+
enforced?: boolean;
|
|
988
|
+
maxDuration?: number;
|
|
989
|
+
idleTimeout?: number;
|
|
990
|
+
requireReauth?: boolean;
|
|
991
|
+
}, {
|
|
992
|
+
type?: "session_timeout";
|
|
993
|
+
enforced?: boolean;
|
|
994
|
+
maxDuration?: number;
|
|
995
|
+
idleTimeout?: number;
|
|
996
|
+
requireReauth?: boolean;
|
|
997
|
+
}>, z.ZodObject<{
|
|
998
|
+
type: z.ZodLiteral<"geo_restriction">;
|
|
999
|
+
enforced: z.ZodBoolean;
|
|
1000
|
+
allowedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1001
|
+
blockedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1002
|
+
allowedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1003
|
+
blockedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1004
|
+
}, "strip", z.ZodTypeAny, {
|
|
1005
|
+
type?: "geo_restriction";
|
|
1006
|
+
enforced?: boolean;
|
|
1007
|
+
allowedCountries?: string[];
|
|
1008
|
+
blockedCountries?: string[];
|
|
1009
|
+
allowedRegions?: string[];
|
|
1010
|
+
blockedRegions?: string[];
|
|
1011
|
+
}, {
|
|
1012
|
+
type?: "geo_restriction";
|
|
1013
|
+
enforced?: boolean;
|
|
1014
|
+
allowedCountries?: string[];
|
|
1015
|
+
blockedCountries?: string[];
|
|
1016
|
+
allowedRegions?: string[];
|
|
1017
|
+
blockedRegions?: string[];
|
|
1018
|
+
}>, z.ZodObject<{
|
|
1019
|
+
type: z.ZodLiteral<"custom">;
|
|
1020
|
+
enforced: z.ZodBoolean;
|
|
1021
|
+
handler: z.ZodString;
|
|
1022
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1023
|
+
}, "strip", z.ZodTypeAny, {
|
|
1024
|
+
type?: "custom";
|
|
1025
|
+
config?: Record<string, unknown>;
|
|
1026
|
+
handler?: string;
|
|
1027
|
+
enforced?: boolean;
|
|
1028
|
+
}, {
|
|
1029
|
+
type?: "custom";
|
|
1030
|
+
config?: Record<string, unknown>;
|
|
1031
|
+
handler?: string;
|
|
1032
|
+
enforced?: boolean;
|
|
1033
|
+
}>]>;
|
|
1034
|
+
export declare const PolicyActionType: {
|
|
1035
|
+
readonly ALLOW: "allow";
|
|
1036
|
+
readonly DENY: "deny";
|
|
1037
|
+
readonly CHALLENGE: "challenge";
|
|
1038
|
+
readonly NOTIFY: "notify";
|
|
1039
|
+
readonly LOG: "log";
|
|
1040
|
+
readonly ESCALATE: "escalate";
|
|
1041
|
+
readonly QUARANTINE: "quarantine";
|
|
1042
|
+
readonly REDIRECT: "redirect";
|
|
1043
|
+
readonly MODIFY: "modify";
|
|
1044
|
+
};
|
|
1045
|
+
export type PolicyActionType = (typeof PolicyActionType)[keyof typeof PolicyActionType];
|
|
1046
|
+
export declare const policyActionTypeSchema: z.ZodNativeEnum<{
|
|
1047
|
+
readonly ALLOW: "allow";
|
|
1048
|
+
readonly DENY: "deny";
|
|
1049
|
+
readonly CHALLENGE: "challenge";
|
|
1050
|
+
readonly NOTIFY: "notify";
|
|
1051
|
+
readonly LOG: "log";
|
|
1052
|
+
readonly ESCALATE: "escalate";
|
|
1053
|
+
readonly QUARANTINE: "quarantine";
|
|
1054
|
+
readonly REDIRECT: "redirect";
|
|
1055
|
+
readonly MODIFY: "modify";
|
|
1056
|
+
}>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Allow action
|
|
1059
|
+
*/
|
|
1060
|
+
export interface AllowAction {
|
|
1061
|
+
type: 'allow';
|
|
1062
|
+
message?: string;
|
|
1063
|
+
metadata?: Record<string, unknown>;
|
|
1064
|
+
}
|
|
1065
|
+
export declare const allowActionSchema: z.ZodObject<{
|
|
1066
|
+
type: z.ZodLiteral<"allow">;
|
|
1067
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1069
|
+
}, "strip", z.ZodTypeAny, {
|
|
1070
|
+
message?: string;
|
|
1071
|
+
type?: "allow";
|
|
1072
|
+
metadata?: Record<string, unknown>;
|
|
1073
|
+
}, {
|
|
1074
|
+
message?: string;
|
|
1075
|
+
type?: "allow";
|
|
1076
|
+
metadata?: Record<string, unknown>;
|
|
1077
|
+
}>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Deny action
|
|
1080
|
+
*/
|
|
1081
|
+
export interface DenyAction {
|
|
1082
|
+
type: 'deny';
|
|
1083
|
+
reason: string;
|
|
1084
|
+
errorCode?: string;
|
|
1085
|
+
httpStatus?: number;
|
|
1086
|
+
retryable?: boolean;
|
|
1087
|
+
retryAfter?: number;
|
|
1088
|
+
}
|
|
1089
|
+
export declare const denyActionSchema: z.ZodObject<{
|
|
1090
|
+
type: z.ZodLiteral<"deny">;
|
|
1091
|
+
reason: z.ZodString;
|
|
1092
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1094
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1095
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
1096
|
+
}, "strip", z.ZodTypeAny, {
|
|
1097
|
+
reason?: string;
|
|
1098
|
+
type?: "deny";
|
|
1099
|
+
retryAfter?: number;
|
|
1100
|
+
errorCode?: string;
|
|
1101
|
+
httpStatus?: number;
|
|
1102
|
+
retryable?: boolean;
|
|
1103
|
+
}, {
|
|
1104
|
+
reason?: string;
|
|
1105
|
+
type?: "deny";
|
|
1106
|
+
retryAfter?: number;
|
|
1107
|
+
errorCode?: string;
|
|
1108
|
+
httpStatus?: number;
|
|
1109
|
+
retryable?: boolean;
|
|
1110
|
+
}>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Challenge action (request additional authentication)
|
|
1113
|
+
*/
|
|
1114
|
+
export interface ChallengeAction {
|
|
1115
|
+
type: 'challenge';
|
|
1116
|
+
method: 'mfa' | 'password' | 'captcha' | 'approval' | 'custom';
|
|
1117
|
+
timeout?: number;
|
|
1118
|
+
redirectUrl?: string;
|
|
1119
|
+
customChallenge?: string;
|
|
1120
|
+
}
|
|
1121
|
+
export declare const challengeActionSchema: z.ZodObject<{
|
|
1122
|
+
type: z.ZodLiteral<"challenge">;
|
|
1123
|
+
method: z.ZodEnum<["mfa", "password", "captcha", "approval", "custom"]>;
|
|
1124
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1125
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
customChallenge: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
}, "strip", z.ZodTypeAny, {
|
|
1128
|
+
timeout?: number;
|
|
1129
|
+
type?: "challenge";
|
|
1130
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1131
|
+
redirectUrl?: string;
|
|
1132
|
+
customChallenge?: string;
|
|
1133
|
+
}, {
|
|
1134
|
+
timeout?: number;
|
|
1135
|
+
type?: "challenge";
|
|
1136
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1137
|
+
redirectUrl?: string;
|
|
1138
|
+
customChallenge?: string;
|
|
1139
|
+
}>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Notify action (alert security team)
|
|
1142
|
+
*/
|
|
1143
|
+
export interface NotifyAction {
|
|
1144
|
+
type: 'notify';
|
|
1145
|
+
channels: ('email' | 'slack' | 'pagerduty' | 'webhook' | 'sms')[];
|
|
1146
|
+
recipients?: string[];
|
|
1147
|
+
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
1148
|
+
template?: string;
|
|
1149
|
+
includeContext?: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
export declare const notifyActionSchema: z.ZodObject<{
|
|
1152
|
+
type: z.ZodLiteral<"notify">;
|
|
1153
|
+
channels: z.ZodArray<z.ZodEnum<["email", "slack", "pagerduty", "webhook", "sms"]>, "many">;
|
|
1154
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1155
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1156
|
+
template: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
type?: "notify";
|
|
1160
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1161
|
+
template?: string;
|
|
1162
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1163
|
+
recipients?: string[];
|
|
1164
|
+
includeContext?: boolean;
|
|
1165
|
+
}, {
|
|
1166
|
+
type?: "notify";
|
|
1167
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1168
|
+
template?: string;
|
|
1169
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1170
|
+
recipients?: string[];
|
|
1171
|
+
includeContext?: boolean;
|
|
1172
|
+
}>;
|
|
1173
|
+
/**
|
|
1174
|
+
* Log action (audit trail)
|
|
1175
|
+
*/
|
|
1176
|
+
export interface LogAction {
|
|
1177
|
+
type: 'log';
|
|
1178
|
+
level: 'debug' | 'info' | 'warn' | 'error';
|
|
1179
|
+
message?: string;
|
|
1180
|
+
includeContext?: boolean;
|
|
1181
|
+
includeRequest?: boolean;
|
|
1182
|
+
includeUser?: boolean;
|
|
1183
|
+
destination?: string;
|
|
1184
|
+
tags?: string[];
|
|
1185
|
+
}
|
|
1186
|
+
export declare const logActionSchema: z.ZodObject<{
|
|
1187
|
+
type: z.ZodLiteral<"log">;
|
|
1188
|
+
level: z.ZodEnum<["debug", "info", "warn", "error"]>;
|
|
1189
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1191
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
1192
|
+
includeUser: z.ZodOptional<z.ZodBoolean>;
|
|
1193
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1196
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1197
|
+
message?: string;
|
|
1198
|
+
type?: "log";
|
|
1199
|
+
tags?: string[];
|
|
1200
|
+
includeRequest?: boolean;
|
|
1201
|
+
destination?: string;
|
|
1202
|
+
includeContext?: boolean;
|
|
1203
|
+
includeUser?: boolean;
|
|
1204
|
+
}, {
|
|
1205
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1206
|
+
message?: string;
|
|
1207
|
+
type?: "log";
|
|
1208
|
+
tags?: string[];
|
|
1209
|
+
includeRequest?: boolean;
|
|
1210
|
+
destination?: string;
|
|
1211
|
+
includeContext?: boolean;
|
|
1212
|
+
includeUser?: boolean;
|
|
1213
|
+
}>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Escalate action (create incident)
|
|
1216
|
+
*/
|
|
1217
|
+
export interface EscalateAction {
|
|
1218
|
+
type: 'escalate';
|
|
1219
|
+
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
1220
|
+
assignTo?: string[];
|
|
1221
|
+
assignToRoles?: string[];
|
|
1222
|
+
createIncident?: boolean;
|
|
1223
|
+
incidentType?: string;
|
|
1224
|
+
timeout?: number;
|
|
1225
|
+
autoResolve?: boolean;
|
|
1226
|
+
}
|
|
1227
|
+
export declare const escalateActionSchema: z.ZodObject<{
|
|
1228
|
+
type: z.ZodLiteral<"escalate">;
|
|
1229
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1230
|
+
assignTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1231
|
+
assignToRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1232
|
+
createIncident: z.ZodOptional<z.ZodBoolean>;
|
|
1233
|
+
incidentType: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1235
|
+
autoResolve: z.ZodOptional<z.ZodBoolean>;
|
|
1236
|
+
}, "strip", z.ZodTypeAny, {
|
|
1237
|
+
timeout?: number;
|
|
1238
|
+
type?: "escalate";
|
|
1239
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1240
|
+
incidentType?: string;
|
|
1241
|
+
assignTo?: string[];
|
|
1242
|
+
assignToRoles?: string[];
|
|
1243
|
+
createIncident?: boolean;
|
|
1244
|
+
autoResolve?: boolean;
|
|
1245
|
+
}, {
|
|
1246
|
+
timeout?: number;
|
|
1247
|
+
type?: "escalate";
|
|
1248
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1249
|
+
incidentType?: string;
|
|
1250
|
+
assignTo?: string[];
|
|
1251
|
+
assignToRoles?: string[];
|
|
1252
|
+
createIncident?: boolean;
|
|
1253
|
+
autoResolve?: boolean;
|
|
1254
|
+
}>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Quarantine action (temporary block)
|
|
1257
|
+
*/
|
|
1258
|
+
export interface QuarantineAction {
|
|
1259
|
+
type: 'quarantine';
|
|
1260
|
+
duration: number;
|
|
1261
|
+
durationUnit?: 'second' | 'minute' | 'hour' | 'day';
|
|
1262
|
+
reason: string;
|
|
1263
|
+
notifyUser?: boolean;
|
|
1264
|
+
notifyAdmin?: boolean;
|
|
1265
|
+
allowAppeal?: boolean;
|
|
1266
|
+
}
|
|
1267
|
+
export declare const quarantineActionSchema: z.ZodObject<{
|
|
1268
|
+
type: z.ZodLiteral<"quarantine">;
|
|
1269
|
+
duration: z.ZodNumber;
|
|
1270
|
+
durationUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
1271
|
+
reason: z.ZodString;
|
|
1272
|
+
notifyUser: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
+
notifyAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
1274
|
+
allowAppeal: z.ZodOptional<z.ZodBoolean>;
|
|
1275
|
+
}, "strip", z.ZodTypeAny, {
|
|
1276
|
+
reason?: string;
|
|
1277
|
+
type?: "quarantine";
|
|
1278
|
+
duration?: number;
|
|
1279
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1280
|
+
notifyUser?: boolean;
|
|
1281
|
+
notifyAdmin?: boolean;
|
|
1282
|
+
allowAppeal?: boolean;
|
|
1283
|
+
}, {
|
|
1284
|
+
reason?: string;
|
|
1285
|
+
type?: "quarantine";
|
|
1286
|
+
duration?: number;
|
|
1287
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1288
|
+
notifyUser?: boolean;
|
|
1289
|
+
notifyAdmin?: boolean;
|
|
1290
|
+
allowAppeal?: boolean;
|
|
1291
|
+
}>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Redirect action
|
|
1294
|
+
*/
|
|
1295
|
+
export interface RedirectAction {
|
|
1296
|
+
type: 'redirect';
|
|
1297
|
+
url: string;
|
|
1298
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1299
|
+
preserveQuery?: boolean;
|
|
1300
|
+
}
|
|
1301
|
+
export declare const redirectActionSchema: z.ZodObject<{
|
|
1302
|
+
type: z.ZodLiteral<"redirect">;
|
|
1303
|
+
url: z.ZodString;
|
|
1304
|
+
statusCode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1305
|
+
preserveQuery: z.ZodOptional<z.ZodBoolean>;
|
|
1306
|
+
}, "strip", z.ZodTypeAny, {
|
|
1307
|
+
type?: "redirect";
|
|
1308
|
+
url?: string;
|
|
1309
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1310
|
+
preserveQuery?: boolean;
|
|
1311
|
+
}, {
|
|
1312
|
+
type?: "redirect";
|
|
1313
|
+
url?: string;
|
|
1314
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1315
|
+
preserveQuery?: boolean;
|
|
1316
|
+
}>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Modify action (modify request/response)
|
|
1319
|
+
*/
|
|
1320
|
+
export interface ModifyAction {
|
|
1321
|
+
type: 'modify';
|
|
1322
|
+
addHeaders?: Record<string, string>;
|
|
1323
|
+
removeHeaders?: string[];
|
|
1324
|
+
modifyBody?: Record<string, unknown>;
|
|
1325
|
+
addClaims?: Record<string, unknown>;
|
|
1326
|
+
}
|
|
1327
|
+
export declare const modifyActionSchema: z.ZodObject<{
|
|
1328
|
+
type: z.ZodLiteral<"modify">;
|
|
1329
|
+
addHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1330
|
+
removeHeaders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1331
|
+
modifyBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1332
|
+
addClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1333
|
+
}, "strip", z.ZodTypeAny, {
|
|
1334
|
+
type?: "modify";
|
|
1335
|
+
addHeaders?: Record<string, string>;
|
|
1336
|
+
removeHeaders?: string[];
|
|
1337
|
+
modifyBody?: Record<string, unknown>;
|
|
1338
|
+
addClaims?: Record<string, unknown>;
|
|
1339
|
+
}, {
|
|
1340
|
+
type?: "modify";
|
|
1341
|
+
addHeaders?: Record<string, string>;
|
|
1342
|
+
removeHeaders?: string[];
|
|
1343
|
+
modifyBody?: Record<string, unknown>;
|
|
1344
|
+
addClaims?: Record<string, unknown>;
|
|
1345
|
+
}>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Union of all action types
|
|
1348
|
+
*/
|
|
1349
|
+
export type PolicyAction = AllowAction | DenyAction | ChallengeAction | NotifyAction | LogAction | EscalateAction | QuarantineAction | RedirectAction | ModifyAction;
|
|
1350
|
+
export declare const policyActionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1351
|
+
type: z.ZodLiteral<"allow">;
|
|
1352
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
|
1355
|
+
message?: string;
|
|
1356
|
+
type?: "allow";
|
|
1357
|
+
metadata?: Record<string, unknown>;
|
|
1358
|
+
}, {
|
|
1359
|
+
message?: string;
|
|
1360
|
+
type?: "allow";
|
|
1361
|
+
metadata?: Record<string, unknown>;
|
|
1362
|
+
}>, z.ZodObject<{
|
|
1363
|
+
type: z.ZodLiteral<"deny">;
|
|
1364
|
+
reason: z.ZodString;
|
|
1365
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1367
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
+
}, "strip", z.ZodTypeAny, {
|
|
1370
|
+
reason?: string;
|
|
1371
|
+
type?: "deny";
|
|
1372
|
+
retryAfter?: number;
|
|
1373
|
+
errorCode?: string;
|
|
1374
|
+
httpStatus?: number;
|
|
1375
|
+
retryable?: boolean;
|
|
1376
|
+
}, {
|
|
1377
|
+
reason?: string;
|
|
1378
|
+
type?: "deny";
|
|
1379
|
+
retryAfter?: number;
|
|
1380
|
+
errorCode?: string;
|
|
1381
|
+
httpStatus?: number;
|
|
1382
|
+
retryable?: boolean;
|
|
1383
|
+
}>, z.ZodObject<{
|
|
1384
|
+
type: z.ZodLiteral<"challenge">;
|
|
1385
|
+
method: z.ZodEnum<["mfa", "password", "captcha", "approval", "custom"]>;
|
|
1386
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1387
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
customChallenge: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
}, "strip", z.ZodTypeAny, {
|
|
1390
|
+
timeout?: number;
|
|
1391
|
+
type?: "challenge";
|
|
1392
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1393
|
+
redirectUrl?: string;
|
|
1394
|
+
customChallenge?: string;
|
|
1395
|
+
}, {
|
|
1396
|
+
timeout?: number;
|
|
1397
|
+
type?: "challenge";
|
|
1398
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1399
|
+
redirectUrl?: string;
|
|
1400
|
+
customChallenge?: string;
|
|
1401
|
+
}>, z.ZodObject<{
|
|
1402
|
+
type: z.ZodLiteral<"notify">;
|
|
1403
|
+
channels: z.ZodArray<z.ZodEnum<["email", "slack", "pagerduty", "webhook", "sms"]>, "many">;
|
|
1404
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1405
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1406
|
+
template: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1408
|
+
}, "strip", z.ZodTypeAny, {
|
|
1409
|
+
type?: "notify";
|
|
1410
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1411
|
+
template?: string;
|
|
1412
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1413
|
+
recipients?: string[];
|
|
1414
|
+
includeContext?: boolean;
|
|
1415
|
+
}, {
|
|
1416
|
+
type?: "notify";
|
|
1417
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1418
|
+
template?: string;
|
|
1419
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1420
|
+
recipients?: string[];
|
|
1421
|
+
includeContext?: boolean;
|
|
1422
|
+
}>, z.ZodObject<{
|
|
1423
|
+
type: z.ZodLiteral<"log">;
|
|
1424
|
+
level: z.ZodEnum<["debug", "info", "warn", "error"]>;
|
|
1425
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1427
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
1428
|
+
includeUser: z.ZodOptional<z.ZodBoolean>;
|
|
1429
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1431
|
+
}, "strip", z.ZodTypeAny, {
|
|
1432
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1433
|
+
message?: string;
|
|
1434
|
+
type?: "log";
|
|
1435
|
+
tags?: string[];
|
|
1436
|
+
includeRequest?: boolean;
|
|
1437
|
+
destination?: string;
|
|
1438
|
+
includeContext?: boolean;
|
|
1439
|
+
includeUser?: boolean;
|
|
1440
|
+
}, {
|
|
1441
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1442
|
+
message?: string;
|
|
1443
|
+
type?: "log";
|
|
1444
|
+
tags?: string[];
|
|
1445
|
+
includeRequest?: boolean;
|
|
1446
|
+
destination?: string;
|
|
1447
|
+
includeContext?: boolean;
|
|
1448
|
+
includeUser?: boolean;
|
|
1449
|
+
}>, z.ZodObject<{
|
|
1450
|
+
type: z.ZodLiteral<"escalate">;
|
|
1451
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1452
|
+
assignTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1453
|
+
assignToRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1454
|
+
createIncident: z.ZodOptional<z.ZodBoolean>;
|
|
1455
|
+
incidentType: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
+
autoResolve: z.ZodOptional<z.ZodBoolean>;
|
|
1458
|
+
}, "strip", z.ZodTypeAny, {
|
|
1459
|
+
timeout?: number;
|
|
1460
|
+
type?: "escalate";
|
|
1461
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1462
|
+
incidentType?: string;
|
|
1463
|
+
assignTo?: string[];
|
|
1464
|
+
assignToRoles?: string[];
|
|
1465
|
+
createIncident?: boolean;
|
|
1466
|
+
autoResolve?: boolean;
|
|
1467
|
+
}, {
|
|
1468
|
+
timeout?: number;
|
|
1469
|
+
type?: "escalate";
|
|
1470
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1471
|
+
incidentType?: string;
|
|
1472
|
+
assignTo?: string[];
|
|
1473
|
+
assignToRoles?: string[];
|
|
1474
|
+
createIncident?: boolean;
|
|
1475
|
+
autoResolve?: boolean;
|
|
1476
|
+
}>, z.ZodObject<{
|
|
1477
|
+
type: z.ZodLiteral<"quarantine">;
|
|
1478
|
+
duration: z.ZodNumber;
|
|
1479
|
+
durationUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
1480
|
+
reason: z.ZodString;
|
|
1481
|
+
notifyUser: z.ZodOptional<z.ZodBoolean>;
|
|
1482
|
+
notifyAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
1483
|
+
allowAppeal: z.ZodOptional<z.ZodBoolean>;
|
|
1484
|
+
}, "strip", z.ZodTypeAny, {
|
|
1485
|
+
reason?: string;
|
|
1486
|
+
type?: "quarantine";
|
|
1487
|
+
duration?: number;
|
|
1488
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1489
|
+
notifyUser?: boolean;
|
|
1490
|
+
notifyAdmin?: boolean;
|
|
1491
|
+
allowAppeal?: boolean;
|
|
1492
|
+
}, {
|
|
1493
|
+
reason?: string;
|
|
1494
|
+
type?: "quarantine";
|
|
1495
|
+
duration?: number;
|
|
1496
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1497
|
+
notifyUser?: boolean;
|
|
1498
|
+
notifyAdmin?: boolean;
|
|
1499
|
+
allowAppeal?: boolean;
|
|
1500
|
+
}>, z.ZodObject<{
|
|
1501
|
+
type: z.ZodLiteral<"redirect">;
|
|
1502
|
+
url: z.ZodString;
|
|
1503
|
+
statusCode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1504
|
+
preserveQuery: z.ZodOptional<z.ZodBoolean>;
|
|
1505
|
+
}, "strip", z.ZodTypeAny, {
|
|
1506
|
+
type?: "redirect";
|
|
1507
|
+
url?: string;
|
|
1508
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1509
|
+
preserveQuery?: boolean;
|
|
1510
|
+
}, {
|
|
1511
|
+
type?: "redirect";
|
|
1512
|
+
url?: string;
|
|
1513
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1514
|
+
preserveQuery?: boolean;
|
|
1515
|
+
}>, z.ZodObject<{
|
|
1516
|
+
type: z.ZodLiteral<"modify">;
|
|
1517
|
+
addHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1518
|
+
removeHeaders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1519
|
+
modifyBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1520
|
+
addClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1521
|
+
}, "strip", z.ZodTypeAny, {
|
|
1522
|
+
type?: "modify";
|
|
1523
|
+
addHeaders?: Record<string, string>;
|
|
1524
|
+
removeHeaders?: string[];
|
|
1525
|
+
modifyBody?: Record<string, unknown>;
|
|
1526
|
+
addClaims?: Record<string, unknown>;
|
|
1527
|
+
}, {
|
|
1528
|
+
type?: "modify";
|
|
1529
|
+
addHeaders?: Record<string, string>;
|
|
1530
|
+
removeHeaders?: string[];
|
|
1531
|
+
modifyBody?: Record<string, unknown>;
|
|
1532
|
+
addClaims?: Record<string, unknown>;
|
|
1533
|
+
}>]>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Security policy definition
|
|
1536
|
+
*/
|
|
1537
|
+
export interface SecurityPolicy {
|
|
1538
|
+
/** Unique policy identifier */
|
|
1539
|
+
id: string;
|
|
1540
|
+
/** Human-readable policy name */
|
|
1541
|
+
name: string;
|
|
1542
|
+
/** Policy description */
|
|
1543
|
+
description: string;
|
|
1544
|
+
/** Policy priority (higher = evaluated first) */
|
|
1545
|
+
priority: number;
|
|
1546
|
+
/** Whether policy is enabled */
|
|
1547
|
+
enabled: boolean;
|
|
1548
|
+
/** Conditions that determine when policy applies */
|
|
1549
|
+
conditions: PolicyCondition[];
|
|
1550
|
+
/** Rules that define what to enforce */
|
|
1551
|
+
rules: PolicyRule[];
|
|
1552
|
+
/** Actions to take when policy matches */
|
|
1553
|
+
actions: PolicyAction[];
|
|
1554
|
+
/** Policy version */
|
|
1555
|
+
version: string;
|
|
1556
|
+
/** Policy tags for categorization */
|
|
1557
|
+
tags?: string[];
|
|
1558
|
+
/** Metadata */
|
|
1559
|
+
metadata?: Record<string, unknown>;
|
|
1560
|
+
/** Created timestamp */
|
|
1561
|
+
createdAt: string;
|
|
1562
|
+
/** Updated timestamp */
|
|
1563
|
+
updatedAt: string;
|
|
1564
|
+
/** Created by user ID */
|
|
1565
|
+
createdBy?: string;
|
|
1566
|
+
/** Updated by user ID */
|
|
1567
|
+
updatedBy?: string;
|
|
1568
|
+
}
|
|
1569
|
+
export declare const securityPolicySchema: z.ZodObject<{
|
|
1570
|
+
id: z.ZodString;
|
|
1571
|
+
name: z.ZodString;
|
|
1572
|
+
description: z.ZodString;
|
|
1573
|
+
priority: z.ZodNumber;
|
|
1574
|
+
enabled: z.ZodBoolean;
|
|
1575
|
+
conditions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
1576
|
+
rules: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1577
|
+
type: z.ZodLiteral<"require_mfa">;
|
|
1578
|
+
enforced: z.ZodBoolean;
|
|
1579
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["totp", "sms", "email", "push", "webauthn", "hardware_key"]>, "many">>;
|
|
1580
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1581
|
+
rememberDevice: z.ZodOptional<z.ZodBoolean>;
|
|
1582
|
+
rememberDuration: z.ZodOptional<z.ZodNumber>;
|
|
1583
|
+
}, "strip", z.ZodTypeAny, {
|
|
1584
|
+
timeout?: number;
|
|
1585
|
+
type?: "require_mfa";
|
|
1586
|
+
enforced?: boolean;
|
|
1587
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
1588
|
+
rememberDevice?: boolean;
|
|
1589
|
+
rememberDuration?: number;
|
|
1590
|
+
}, {
|
|
1591
|
+
timeout?: number;
|
|
1592
|
+
type?: "require_mfa";
|
|
1593
|
+
enforced?: boolean;
|
|
1594
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
1595
|
+
rememberDevice?: boolean;
|
|
1596
|
+
rememberDuration?: number;
|
|
1597
|
+
}>, z.ZodObject<{
|
|
1598
|
+
type: z.ZodLiteral<"require_approval">;
|
|
1599
|
+
enforced: z.ZodBoolean;
|
|
1600
|
+
approvers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1601
|
+
approverRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1602
|
+
approvalTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1603
|
+
minApprovers: z.ZodOptional<z.ZodNumber>;
|
|
1604
|
+
autoRejectOnTimeout: z.ZodOptional<z.ZodBoolean>;
|
|
1605
|
+
requireJustification: z.ZodOptional<z.ZodBoolean>;
|
|
1606
|
+
}, "strip", z.ZodTypeAny, {
|
|
1607
|
+
type?: "require_approval";
|
|
1608
|
+
requireJustification?: boolean;
|
|
1609
|
+
enforced?: boolean;
|
|
1610
|
+
approvers?: string[];
|
|
1611
|
+
approverRoles?: string[];
|
|
1612
|
+
approvalTimeout?: number;
|
|
1613
|
+
minApprovers?: number;
|
|
1614
|
+
autoRejectOnTimeout?: boolean;
|
|
1615
|
+
}, {
|
|
1616
|
+
type?: "require_approval";
|
|
1617
|
+
requireJustification?: boolean;
|
|
1618
|
+
enforced?: boolean;
|
|
1619
|
+
approvers?: string[];
|
|
1620
|
+
approverRoles?: string[];
|
|
1621
|
+
approvalTimeout?: number;
|
|
1622
|
+
minApprovers?: number;
|
|
1623
|
+
autoRejectOnTimeout?: boolean;
|
|
1624
|
+
}>, z.ZodObject<{
|
|
1625
|
+
type: z.ZodLiteral<"block_access">;
|
|
1626
|
+
enforced: z.ZodBoolean;
|
|
1627
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1628
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
1629
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
}, "strip", z.ZodTypeAny, {
|
|
1631
|
+
reason?: string;
|
|
1632
|
+
type?: "block_access";
|
|
1633
|
+
errorCode?: string;
|
|
1634
|
+
enforced?: boolean;
|
|
1635
|
+
redirectUrl?: string;
|
|
1636
|
+
}, {
|
|
1637
|
+
reason?: string;
|
|
1638
|
+
type?: "block_access";
|
|
1639
|
+
errorCode?: string;
|
|
1640
|
+
enforced?: boolean;
|
|
1641
|
+
redirectUrl?: string;
|
|
1642
|
+
}>, z.ZodObject<{
|
|
1643
|
+
type: z.ZodLiteral<"rate_limit">;
|
|
1644
|
+
enforced: z.ZodBoolean;
|
|
1645
|
+
limit: z.ZodNumber;
|
|
1646
|
+
window: z.ZodNumber;
|
|
1647
|
+
windowUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
1648
|
+
keyBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "ip", "tenant", "api_key", "custom"]>, "many">>;
|
|
1649
|
+
customKey: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
burstLimit: z.ZodOptional<z.ZodNumber>;
|
|
1651
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
1652
|
+
}, "strip", z.ZodTypeAny, {
|
|
1653
|
+
limit?: number;
|
|
1654
|
+
type?: "rate_limit";
|
|
1655
|
+
retryAfter?: number;
|
|
1656
|
+
window?: number;
|
|
1657
|
+
enforced?: boolean;
|
|
1658
|
+
burstLimit?: number;
|
|
1659
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
1660
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
1661
|
+
customKey?: string;
|
|
1662
|
+
}, {
|
|
1663
|
+
limit?: number;
|
|
1664
|
+
type?: "rate_limit";
|
|
1665
|
+
retryAfter?: number;
|
|
1666
|
+
window?: number;
|
|
1667
|
+
enforced?: boolean;
|
|
1668
|
+
burstLimit?: number;
|
|
1669
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
1670
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
1671
|
+
customKey?: string;
|
|
1672
|
+
}>, z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"require_encryption">;
|
|
1674
|
+
enforced: z.ZodBoolean;
|
|
1675
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1676
|
+
algorithm: z.ZodOptional<z.ZodEnum<["AES-256-GCM", "RSA-OAEP", "ChaCha20-Poly1305"]>>;
|
|
1677
|
+
keyId: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
}, "strip", z.ZodTypeAny, {
|
|
1679
|
+
type?: "require_encryption";
|
|
1680
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
1681
|
+
fields?: string[];
|
|
1682
|
+
enforced?: boolean;
|
|
1683
|
+
keyId?: string;
|
|
1684
|
+
}, {
|
|
1685
|
+
type?: "require_encryption";
|
|
1686
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
1687
|
+
fields?: string[];
|
|
1688
|
+
enforced?: boolean;
|
|
1689
|
+
keyId?: string;
|
|
1690
|
+
}>, z.ZodObject<{
|
|
1691
|
+
type: z.ZodLiteral<"audit_log">;
|
|
1692
|
+
enforced: z.ZodBoolean;
|
|
1693
|
+
level: z.ZodOptional<z.ZodEnum<["basic", "detailed", "full"]>>;
|
|
1694
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
1695
|
+
includeResponse: z.ZodOptional<z.ZodBoolean>;
|
|
1696
|
+
includeHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
1697
|
+
redactFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1698
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
}, "strip", z.ZodTypeAny, {
|
|
1700
|
+
level?: "full" | "detailed" | "basic";
|
|
1701
|
+
type?: "audit_log";
|
|
1702
|
+
enforced?: boolean;
|
|
1703
|
+
includeRequest?: boolean;
|
|
1704
|
+
includeResponse?: boolean;
|
|
1705
|
+
includeHeaders?: boolean;
|
|
1706
|
+
redactFields?: string[];
|
|
1707
|
+
destination?: string;
|
|
1708
|
+
}, {
|
|
1709
|
+
level?: "full" | "detailed" | "basic";
|
|
1710
|
+
type?: "audit_log";
|
|
1711
|
+
enforced?: boolean;
|
|
1712
|
+
includeRequest?: boolean;
|
|
1713
|
+
includeResponse?: boolean;
|
|
1714
|
+
includeHeaders?: boolean;
|
|
1715
|
+
redactFields?: string[];
|
|
1716
|
+
destination?: string;
|
|
1717
|
+
}>, z.ZodObject<{
|
|
1718
|
+
type: z.ZodLiteral<"step_up_auth">;
|
|
1719
|
+
enforced: z.ZodBoolean;
|
|
1720
|
+
requiredLevel: z.ZodNumber;
|
|
1721
|
+
method: z.ZodOptional<z.ZodEnum<["mfa", "password", "biometric"]>>;
|
|
1722
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1723
|
+
}, "strip", z.ZodTypeAny, {
|
|
1724
|
+
timeout?: number;
|
|
1725
|
+
type?: "step_up_auth";
|
|
1726
|
+
method?: "password" | "biometric" | "mfa";
|
|
1727
|
+
requiredLevel?: number;
|
|
1728
|
+
enforced?: boolean;
|
|
1729
|
+
}, {
|
|
1730
|
+
timeout?: number;
|
|
1731
|
+
type?: "step_up_auth";
|
|
1732
|
+
method?: "password" | "biometric" | "mfa";
|
|
1733
|
+
requiredLevel?: number;
|
|
1734
|
+
enforced?: boolean;
|
|
1735
|
+
}>, z.ZodObject<{
|
|
1736
|
+
type: z.ZodLiteral<"data_masking">;
|
|
1737
|
+
enforced: z.ZodBoolean;
|
|
1738
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1739
|
+
maskType: z.ZodOptional<z.ZodEnum<["full", "partial", "hash", "tokenize"]>>;
|
|
1740
|
+
partialMaskPattern: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
type?: "data_masking";
|
|
1743
|
+
fields?: string[];
|
|
1744
|
+
enforced?: boolean;
|
|
1745
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
1746
|
+
partialMaskPattern?: string;
|
|
1747
|
+
}, {
|
|
1748
|
+
type?: "data_masking";
|
|
1749
|
+
fields?: string[];
|
|
1750
|
+
enforced?: boolean;
|
|
1751
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
1752
|
+
partialMaskPattern?: string;
|
|
1753
|
+
}>, z.ZodObject<{
|
|
1754
|
+
type: z.ZodLiteral<"session_timeout">;
|
|
1755
|
+
enforced: z.ZodBoolean;
|
|
1756
|
+
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
1757
|
+
idleTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
+
requireReauth: z.ZodOptional<z.ZodBoolean>;
|
|
1759
|
+
}, "strip", z.ZodTypeAny, {
|
|
1760
|
+
type?: "session_timeout";
|
|
1761
|
+
enforced?: boolean;
|
|
1762
|
+
maxDuration?: number;
|
|
1763
|
+
idleTimeout?: number;
|
|
1764
|
+
requireReauth?: boolean;
|
|
1765
|
+
}, {
|
|
1766
|
+
type?: "session_timeout";
|
|
1767
|
+
enforced?: boolean;
|
|
1768
|
+
maxDuration?: number;
|
|
1769
|
+
idleTimeout?: number;
|
|
1770
|
+
requireReauth?: boolean;
|
|
1771
|
+
}>, z.ZodObject<{
|
|
1772
|
+
type: z.ZodLiteral<"geo_restriction">;
|
|
1773
|
+
enforced: z.ZodBoolean;
|
|
1774
|
+
allowedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1775
|
+
blockedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1776
|
+
allowedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1777
|
+
blockedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1778
|
+
}, "strip", z.ZodTypeAny, {
|
|
1779
|
+
type?: "geo_restriction";
|
|
1780
|
+
enforced?: boolean;
|
|
1781
|
+
allowedCountries?: string[];
|
|
1782
|
+
blockedCountries?: string[];
|
|
1783
|
+
allowedRegions?: string[];
|
|
1784
|
+
blockedRegions?: string[];
|
|
1785
|
+
}, {
|
|
1786
|
+
type?: "geo_restriction";
|
|
1787
|
+
enforced?: boolean;
|
|
1788
|
+
allowedCountries?: string[];
|
|
1789
|
+
blockedCountries?: string[];
|
|
1790
|
+
allowedRegions?: string[];
|
|
1791
|
+
blockedRegions?: string[];
|
|
1792
|
+
}>, z.ZodObject<{
|
|
1793
|
+
type: z.ZodLiteral<"custom">;
|
|
1794
|
+
enforced: z.ZodBoolean;
|
|
1795
|
+
handler: z.ZodString;
|
|
1796
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1797
|
+
}, "strip", z.ZodTypeAny, {
|
|
1798
|
+
type?: "custom";
|
|
1799
|
+
config?: Record<string, unknown>;
|
|
1800
|
+
handler?: string;
|
|
1801
|
+
enforced?: boolean;
|
|
1802
|
+
}, {
|
|
1803
|
+
type?: "custom";
|
|
1804
|
+
config?: Record<string, unknown>;
|
|
1805
|
+
handler?: string;
|
|
1806
|
+
enforced?: boolean;
|
|
1807
|
+
}>]>, "many">;
|
|
1808
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1809
|
+
type: z.ZodLiteral<"allow">;
|
|
1810
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1812
|
+
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
message?: string;
|
|
1814
|
+
type?: "allow";
|
|
1815
|
+
metadata?: Record<string, unknown>;
|
|
1816
|
+
}, {
|
|
1817
|
+
message?: string;
|
|
1818
|
+
type?: "allow";
|
|
1819
|
+
metadata?: Record<string, unknown>;
|
|
1820
|
+
}>, z.ZodObject<{
|
|
1821
|
+
type: z.ZodLiteral<"deny">;
|
|
1822
|
+
reason: z.ZodString;
|
|
1823
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
1824
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1825
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1826
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
1827
|
+
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
reason?: string;
|
|
1829
|
+
type?: "deny";
|
|
1830
|
+
retryAfter?: number;
|
|
1831
|
+
errorCode?: string;
|
|
1832
|
+
httpStatus?: number;
|
|
1833
|
+
retryable?: boolean;
|
|
1834
|
+
}, {
|
|
1835
|
+
reason?: string;
|
|
1836
|
+
type?: "deny";
|
|
1837
|
+
retryAfter?: number;
|
|
1838
|
+
errorCode?: string;
|
|
1839
|
+
httpStatus?: number;
|
|
1840
|
+
retryable?: boolean;
|
|
1841
|
+
}>, z.ZodObject<{
|
|
1842
|
+
type: z.ZodLiteral<"challenge">;
|
|
1843
|
+
method: z.ZodEnum<["mfa", "password", "captcha", "approval", "custom"]>;
|
|
1844
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1845
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
customChallenge: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
}, "strip", z.ZodTypeAny, {
|
|
1848
|
+
timeout?: number;
|
|
1849
|
+
type?: "challenge";
|
|
1850
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1851
|
+
redirectUrl?: string;
|
|
1852
|
+
customChallenge?: string;
|
|
1853
|
+
}, {
|
|
1854
|
+
timeout?: number;
|
|
1855
|
+
type?: "challenge";
|
|
1856
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
1857
|
+
redirectUrl?: string;
|
|
1858
|
+
customChallenge?: string;
|
|
1859
|
+
}>, z.ZodObject<{
|
|
1860
|
+
type: z.ZodLiteral<"notify">;
|
|
1861
|
+
channels: z.ZodArray<z.ZodEnum<["email", "slack", "pagerduty", "webhook", "sms"]>, "many">;
|
|
1862
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1863
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1864
|
+
template: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
type?: "notify";
|
|
1868
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1869
|
+
template?: string;
|
|
1870
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1871
|
+
recipients?: string[];
|
|
1872
|
+
includeContext?: boolean;
|
|
1873
|
+
}, {
|
|
1874
|
+
type?: "notify";
|
|
1875
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1876
|
+
template?: string;
|
|
1877
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
1878
|
+
recipients?: string[];
|
|
1879
|
+
includeContext?: boolean;
|
|
1880
|
+
}>, z.ZodObject<{
|
|
1881
|
+
type: z.ZodLiteral<"log">;
|
|
1882
|
+
level: z.ZodEnum<["debug", "info", "warn", "error"]>;
|
|
1883
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
1885
|
+
includeRequest: z.ZodOptional<z.ZodBoolean>;
|
|
1886
|
+
includeUser: z.ZodOptional<z.ZodBoolean>;
|
|
1887
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1888
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1889
|
+
}, "strip", z.ZodTypeAny, {
|
|
1890
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1891
|
+
message?: string;
|
|
1892
|
+
type?: "log";
|
|
1893
|
+
tags?: string[];
|
|
1894
|
+
includeRequest?: boolean;
|
|
1895
|
+
destination?: string;
|
|
1896
|
+
includeContext?: boolean;
|
|
1897
|
+
includeUser?: boolean;
|
|
1898
|
+
}, {
|
|
1899
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
1900
|
+
message?: string;
|
|
1901
|
+
type?: "log";
|
|
1902
|
+
tags?: string[];
|
|
1903
|
+
includeRequest?: boolean;
|
|
1904
|
+
destination?: string;
|
|
1905
|
+
includeContext?: boolean;
|
|
1906
|
+
includeUser?: boolean;
|
|
1907
|
+
}>, z.ZodObject<{
|
|
1908
|
+
type: z.ZodLiteral<"escalate">;
|
|
1909
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
1910
|
+
assignTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1911
|
+
assignToRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1912
|
+
createIncident: z.ZodOptional<z.ZodBoolean>;
|
|
1913
|
+
incidentType: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1915
|
+
autoResolve: z.ZodOptional<z.ZodBoolean>;
|
|
1916
|
+
}, "strip", z.ZodTypeAny, {
|
|
1917
|
+
timeout?: number;
|
|
1918
|
+
type?: "escalate";
|
|
1919
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1920
|
+
incidentType?: string;
|
|
1921
|
+
assignTo?: string[];
|
|
1922
|
+
assignToRoles?: string[];
|
|
1923
|
+
createIncident?: boolean;
|
|
1924
|
+
autoResolve?: boolean;
|
|
1925
|
+
}, {
|
|
1926
|
+
timeout?: number;
|
|
1927
|
+
type?: "escalate";
|
|
1928
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
1929
|
+
incidentType?: string;
|
|
1930
|
+
assignTo?: string[];
|
|
1931
|
+
assignToRoles?: string[];
|
|
1932
|
+
createIncident?: boolean;
|
|
1933
|
+
autoResolve?: boolean;
|
|
1934
|
+
}>, z.ZodObject<{
|
|
1935
|
+
type: z.ZodLiteral<"quarantine">;
|
|
1936
|
+
duration: z.ZodNumber;
|
|
1937
|
+
durationUnit: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day"]>>;
|
|
1938
|
+
reason: z.ZodString;
|
|
1939
|
+
notifyUser: z.ZodOptional<z.ZodBoolean>;
|
|
1940
|
+
notifyAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
1941
|
+
allowAppeal: z.ZodOptional<z.ZodBoolean>;
|
|
1942
|
+
}, "strip", z.ZodTypeAny, {
|
|
1943
|
+
reason?: string;
|
|
1944
|
+
type?: "quarantine";
|
|
1945
|
+
duration?: number;
|
|
1946
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1947
|
+
notifyUser?: boolean;
|
|
1948
|
+
notifyAdmin?: boolean;
|
|
1949
|
+
allowAppeal?: boolean;
|
|
1950
|
+
}, {
|
|
1951
|
+
reason?: string;
|
|
1952
|
+
type?: "quarantine";
|
|
1953
|
+
duration?: number;
|
|
1954
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
1955
|
+
notifyUser?: boolean;
|
|
1956
|
+
notifyAdmin?: boolean;
|
|
1957
|
+
allowAppeal?: boolean;
|
|
1958
|
+
}>, z.ZodObject<{
|
|
1959
|
+
type: z.ZodLiteral<"redirect">;
|
|
1960
|
+
url: z.ZodString;
|
|
1961
|
+
statusCode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1962
|
+
preserveQuery: z.ZodOptional<z.ZodBoolean>;
|
|
1963
|
+
}, "strip", z.ZodTypeAny, {
|
|
1964
|
+
type?: "redirect";
|
|
1965
|
+
url?: string;
|
|
1966
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1967
|
+
preserveQuery?: boolean;
|
|
1968
|
+
}, {
|
|
1969
|
+
type?: "redirect";
|
|
1970
|
+
url?: string;
|
|
1971
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
1972
|
+
preserveQuery?: boolean;
|
|
1973
|
+
}>, z.ZodObject<{
|
|
1974
|
+
type: z.ZodLiteral<"modify">;
|
|
1975
|
+
addHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1976
|
+
removeHeaders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1977
|
+
modifyBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1978
|
+
addClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
|
+
type?: "modify";
|
|
1981
|
+
addHeaders?: Record<string, string>;
|
|
1982
|
+
removeHeaders?: string[];
|
|
1983
|
+
modifyBody?: Record<string, unknown>;
|
|
1984
|
+
addClaims?: Record<string, unknown>;
|
|
1985
|
+
}, {
|
|
1986
|
+
type?: "modify";
|
|
1987
|
+
addHeaders?: Record<string, string>;
|
|
1988
|
+
removeHeaders?: string[];
|
|
1989
|
+
modifyBody?: Record<string, unknown>;
|
|
1990
|
+
addClaims?: Record<string, unknown>;
|
|
1991
|
+
}>]>, "many">;
|
|
1992
|
+
version: z.ZodString;
|
|
1993
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1994
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1995
|
+
createdAt: z.ZodString;
|
|
1996
|
+
updatedAt: z.ZodString;
|
|
1997
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
}, "strip", z.ZodTypeAny, {
|
|
2000
|
+
version?: string;
|
|
2001
|
+
name?: string;
|
|
2002
|
+
priority?: number;
|
|
2003
|
+
id?: string;
|
|
2004
|
+
description?: string;
|
|
2005
|
+
enabled?: boolean;
|
|
2006
|
+
conditions?: any[];
|
|
2007
|
+
metadata?: Record<string, unknown>;
|
|
2008
|
+
rules?: ({
|
|
2009
|
+
timeout?: number;
|
|
2010
|
+
type?: "require_mfa";
|
|
2011
|
+
enforced?: boolean;
|
|
2012
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
2013
|
+
rememberDevice?: boolean;
|
|
2014
|
+
rememberDuration?: number;
|
|
2015
|
+
} | {
|
|
2016
|
+
type?: "require_approval";
|
|
2017
|
+
requireJustification?: boolean;
|
|
2018
|
+
enforced?: boolean;
|
|
2019
|
+
approvers?: string[];
|
|
2020
|
+
approverRoles?: string[];
|
|
2021
|
+
approvalTimeout?: number;
|
|
2022
|
+
minApprovers?: number;
|
|
2023
|
+
autoRejectOnTimeout?: boolean;
|
|
2024
|
+
} | {
|
|
2025
|
+
reason?: string;
|
|
2026
|
+
type?: "block_access";
|
|
2027
|
+
errorCode?: string;
|
|
2028
|
+
enforced?: boolean;
|
|
2029
|
+
redirectUrl?: string;
|
|
2030
|
+
} | {
|
|
2031
|
+
limit?: number;
|
|
2032
|
+
type?: "rate_limit";
|
|
2033
|
+
retryAfter?: number;
|
|
2034
|
+
window?: number;
|
|
2035
|
+
enforced?: boolean;
|
|
2036
|
+
burstLimit?: number;
|
|
2037
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
2038
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
2039
|
+
customKey?: string;
|
|
2040
|
+
} | {
|
|
2041
|
+
type?: "require_encryption";
|
|
2042
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
2043
|
+
fields?: string[];
|
|
2044
|
+
enforced?: boolean;
|
|
2045
|
+
keyId?: string;
|
|
2046
|
+
} | {
|
|
2047
|
+
level?: "full" | "detailed" | "basic";
|
|
2048
|
+
type?: "audit_log";
|
|
2049
|
+
enforced?: boolean;
|
|
2050
|
+
includeRequest?: boolean;
|
|
2051
|
+
includeResponse?: boolean;
|
|
2052
|
+
includeHeaders?: boolean;
|
|
2053
|
+
redactFields?: string[];
|
|
2054
|
+
destination?: string;
|
|
2055
|
+
} | {
|
|
2056
|
+
timeout?: number;
|
|
2057
|
+
type?: "step_up_auth";
|
|
2058
|
+
method?: "password" | "biometric" | "mfa";
|
|
2059
|
+
requiredLevel?: number;
|
|
2060
|
+
enforced?: boolean;
|
|
2061
|
+
} | {
|
|
2062
|
+
type?: "data_masking";
|
|
2063
|
+
fields?: string[];
|
|
2064
|
+
enforced?: boolean;
|
|
2065
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
2066
|
+
partialMaskPattern?: string;
|
|
2067
|
+
} | {
|
|
2068
|
+
type?: "session_timeout";
|
|
2069
|
+
enforced?: boolean;
|
|
2070
|
+
maxDuration?: number;
|
|
2071
|
+
idleTimeout?: number;
|
|
2072
|
+
requireReauth?: boolean;
|
|
2073
|
+
} | {
|
|
2074
|
+
type?: "geo_restriction";
|
|
2075
|
+
enforced?: boolean;
|
|
2076
|
+
allowedCountries?: string[];
|
|
2077
|
+
blockedCountries?: string[];
|
|
2078
|
+
allowedRegions?: string[];
|
|
2079
|
+
blockedRegions?: string[];
|
|
2080
|
+
} | {
|
|
2081
|
+
type?: "custom";
|
|
2082
|
+
config?: Record<string, unknown>;
|
|
2083
|
+
handler?: string;
|
|
2084
|
+
enforced?: boolean;
|
|
2085
|
+
})[];
|
|
2086
|
+
createdAt?: string;
|
|
2087
|
+
updatedAt?: string;
|
|
2088
|
+
tags?: string[];
|
|
2089
|
+
createdBy?: string;
|
|
2090
|
+
actions?: ({
|
|
2091
|
+
message?: string;
|
|
2092
|
+
type?: "allow";
|
|
2093
|
+
metadata?: Record<string, unknown>;
|
|
2094
|
+
} | {
|
|
2095
|
+
reason?: string;
|
|
2096
|
+
type?: "deny";
|
|
2097
|
+
retryAfter?: number;
|
|
2098
|
+
errorCode?: string;
|
|
2099
|
+
httpStatus?: number;
|
|
2100
|
+
retryable?: boolean;
|
|
2101
|
+
} | {
|
|
2102
|
+
timeout?: number;
|
|
2103
|
+
type?: "challenge";
|
|
2104
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
2105
|
+
redirectUrl?: string;
|
|
2106
|
+
customChallenge?: string;
|
|
2107
|
+
} | {
|
|
2108
|
+
type?: "notify";
|
|
2109
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
2110
|
+
template?: string;
|
|
2111
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
2112
|
+
recipients?: string[];
|
|
2113
|
+
includeContext?: boolean;
|
|
2114
|
+
} | {
|
|
2115
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
2116
|
+
message?: string;
|
|
2117
|
+
type?: "log";
|
|
2118
|
+
tags?: string[];
|
|
2119
|
+
includeRequest?: boolean;
|
|
2120
|
+
destination?: string;
|
|
2121
|
+
includeContext?: boolean;
|
|
2122
|
+
includeUser?: boolean;
|
|
2123
|
+
} | {
|
|
2124
|
+
timeout?: number;
|
|
2125
|
+
type?: "escalate";
|
|
2126
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
2127
|
+
incidentType?: string;
|
|
2128
|
+
assignTo?: string[];
|
|
2129
|
+
assignToRoles?: string[];
|
|
2130
|
+
createIncident?: boolean;
|
|
2131
|
+
autoResolve?: boolean;
|
|
2132
|
+
} | {
|
|
2133
|
+
reason?: string;
|
|
2134
|
+
type?: "quarantine";
|
|
2135
|
+
duration?: number;
|
|
2136
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
2137
|
+
notifyUser?: boolean;
|
|
2138
|
+
notifyAdmin?: boolean;
|
|
2139
|
+
allowAppeal?: boolean;
|
|
2140
|
+
} | {
|
|
2141
|
+
type?: "redirect";
|
|
2142
|
+
url?: string;
|
|
2143
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
2144
|
+
preserveQuery?: boolean;
|
|
2145
|
+
} | {
|
|
2146
|
+
type?: "modify";
|
|
2147
|
+
addHeaders?: Record<string, string>;
|
|
2148
|
+
removeHeaders?: string[];
|
|
2149
|
+
modifyBody?: Record<string, unknown>;
|
|
2150
|
+
addClaims?: Record<string, unknown>;
|
|
2151
|
+
})[];
|
|
2152
|
+
updatedBy?: string;
|
|
2153
|
+
}, {
|
|
2154
|
+
version?: string;
|
|
2155
|
+
name?: string;
|
|
2156
|
+
priority?: number;
|
|
2157
|
+
id?: string;
|
|
2158
|
+
description?: string;
|
|
2159
|
+
enabled?: boolean;
|
|
2160
|
+
conditions?: any[];
|
|
2161
|
+
metadata?: Record<string, unknown>;
|
|
2162
|
+
rules?: ({
|
|
2163
|
+
timeout?: number;
|
|
2164
|
+
type?: "require_mfa";
|
|
2165
|
+
enforced?: boolean;
|
|
2166
|
+
methods?: ("push" | "email" | "totp" | "webauthn" | "sms" | "hardware_key")[];
|
|
2167
|
+
rememberDevice?: boolean;
|
|
2168
|
+
rememberDuration?: number;
|
|
2169
|
+
} | {
|
|
2170
|
+
type?: "require_approval";
|
|
2171
|
+
requireJustification?: boolean;
|
|
2172
|
+
enforced?: boolean;
|
|
2173
|
+
approvers?: string[];
|
|
2174
|
+
approverRoles?: string[];
|
|
2175
|
+
approvalTimeout?: number;
|
|
2176
|
+
minApprovers?: number;
|
|
2177
|
+
autoRejectOnTimeout?: boolean;
|
|
2178
|
+
} | {
|
|
2179
|
+
reason?: string;
|
|
2180
|
+
type?: "block_access";
|
|
2181
|
+
errorCode?: string;
|
|
2182
|
+
enforced?: boolean;
|
|
2183
|
+
redirectUrl?: string;
|
|
2184
|
+
} | {
|
|
2185
|
+
limit?: number;
|
|
2186
|
+
type?: "rate_limit";
|
|
2187
|
+
retryAfter?: number;
|
|
2188
|
+
window?: number;
|
|
2189
|
+
enforced?: boolean;
|
|
2190
|
+
burstLimit?: number;
|
|
2191
|
+
windowUnit?: "hour" | "day" | "second" | "minute";
|
|
2192
|
+
keyBy?: ("user" | "custom" | "ip" | "api_key" | "tenant")[];
|
|
2193
|
+
customKey?: string;
|
|
2194
|
+
} | {
|
|
2195
|
+
type?: "require_encryption";
|
|
2196
|
+
algorithm?: "AES-256-GCM" | "RSA-OAEP" | "ChaCha20-Poly1305";
|
|
2197
|
+
fields?: string[];
|
|
2198
|
+
enforced?: boolean;
|
|
2199
|
+
keyId?: string;
|
|
2200
|
+
} | {
|
|
2201
|
+
level?: "full" | "detailed" | "basic";
|
|
2202
|
+
type?: "audit_log";
|
|
2203
|
+
enforced?: boolean;
|
|
2204
|
+
includeRequest?: boolean;
|
|
2205
|
+
includeResponse?: boolean;
|
|
2206
|
+
includeHeaders?: boolean;
|
|
2207
|
+
redactFields?: string[];
|
|
2208
|
+
destination?: string;
|
|
2209
|
+
} | {
|
|
2210
|
+
timeout?: number;
|
|
2211
|
+
type?: "step_up_auth";
|
|
2212
|
+
method?: "password" | "biometric" | "mfa";
|
|
2213
|
+
requiredLevel?: number;
|
|
2214
|
+
enforced?: boolean;
|
|
2215
|
+
} | {
|
|
2216
|
+
type?: "data_masking";
|
|
2217
|
+
fields?: string[];
|
|
2218
|
+
enforced?: boolean;
|
|
2219
|
+
maskType?: "hash" | "partial" | "full" | "tokenize";
|
|
2220
|
+
partialMaskPattern?: string;
|
|
2221
|
+
} | {
|
|
2222
|
+
type?: "session_timeout";
|
|
2223
|
+
enforced?: boolean;
|
|
2224
|
+
maxDuration?: number;
|
|
2225
|
+
idleTimeout?: number;
|
|
2226
|
+
requireReauth?: boolean;
|
|
2227
|
+
} | {
|
|
2228
|
+
type?: "geo_restriction";
|
|
2229
|
+
enforced?: boolean;
|
|
2230
|
+
allowedCountries?: string[];
|
|
2231
|
+
blockedCountries?: string[];
|
|
2232
|
+
allowedRegions?: string[];
|
|
2233
|
+
blockedRegions?: string[];
|
|
2234
|
+
} | {
|
|
2235
|
+
type?: "custom";
|
|
2236
|
+
config?: Record<string, unknown>;
|
|
2237
|
+
handler?: string;
|
|
2238
|
+
enforced?: boolean;
|
|
2239
|
+
})[];
|
|
2240
|
+
createdAt?: string;
|
|
2241
|
+
updatedAt?: string;
|
|
2242
|
+
tags?: string[];
|
|
2243
|
+
createdBy?: string;
|
|
2244
|
+
actions?: ({
|
|
2245
|
+
message?: string;
|
|
2246
|
+
type?: "allow";
|
|
2247
|
+
metadata?: Record<string, unknown>;
|
|
2248
|
+
} | {
|
|
2249
|
+
reason?: string;
|
|
2250
|
+
type?: "deny";
|
|
2251
|
+
retryAfter?: number;
|
|
2252
|
+
errorCode?: string;
|
|
2253
|
+
httpStatus?: number;
|
|
2254
|
+
retryable?: boolean;
|
|
2255
|
+
} | {
|
|
2256
|
+
timeout?: number;
|
|
2257
|
+
type?: "challenge";
|
|
2258
|
+
method?: "password" | "custom" | "approval" | "mfa" | "captcha";
|
|
2259
|
+
redirectUrl?: string;
|
|
2260
|
+
customChallenge?: string;
|
|
2261
|
+
} | {
|
|
2262
|
+
type?: "notify";
|
|
2263
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
2264
|
+
template?: string;
|
|
2265
|
+
channels?: ("email" | "webhook" | "slack" | "pagerduty" | "sms")[];
|
|
2266
|
+
recipients?: string[];
|
|
2267
|
+
includeContext?: boolean;
|
|
2268
|
+
} | {
|
|
2269
|
+
level?: "error" | "warn" | "info" | "debug";
|
|
2270
|
+
message?: string;
|
|
2271
|
+
type?: "log";
|
|
2272
|
+
tags?: string[];
|
|
2273
|
+
includeRequest?: boolean;
|
|
2274
|
+
destination?: string;
|
|
2275
|
+
includeContext?: boolean;
|
|
2276
|
+
includeUser?: boolean;
|
|
2277
|
+
} | {
|
|
2278
|
+
timeout?: number;
|
|
2279
|
+
type?: "escalate";
|
|
2280
|
+
severity?: "critical" | "low" | "medium" | "high";
|
|
2281
|
+
incidentType?: string;
|
|
2282
|
+
assignTo?: string[];
|
|
2283
|
+
assignToRoles?: string[];
|
|
2284
|
+
createIncident?: boolean;
|
|
2285
|
+
autoResolve?: boolean;
|
|
2286
|
+
} | {
|
|
2287
|
+
reason?: string;
|
|
2288
|
+
type?: "quarantine";
|
|
2289
|
+
duration?: number;
|
|
2290
|
+
durationUnit?: "hour" | "day" | "second" | "minute";
|
|
2291
|
+
notifyUser?: boolean;
|
|
2292
|
+
notifyAdmin?: boolean;
|
|
2293
|
+
allowAppeal?: boolean;
|
|
2294
|
+
} | {
|
|
2295
|
+
type?: "redirect";
|
|
2296
|
+
url?: string;
|
|
2297
|
+
statusCode?: 301 | 302 | 303 | 307 | 308;
|
|
2298
|
+
preserveQuery?: boolean;
|
|
2299
|
+
} | {
|
|
2300
|
+
type?: "modify";
|
|
2301
|
+
addHeaders?: Record<string, string>;
|
|
2302
|
+
removeHeaders?: string[];
|
|
2303
|
+
modifyBody?: Record<string, unknown>;
|
|
2304
|
+
addClaims?: Record<string, unknown>;
|
|
2305
|
+
})[];
|
|
2306
|
+
updatedBy?: string;
|
|
2307
|
+
}>;
|
|
2308
|
+
/**
|
|
2309
|
+
* User information in policy context
|
|
2310
|
+
*/
|
|
2311
|
+
export interface PolicyContextUser {
|
|
2312
|
+
id: string;
|
|
2313
|
+
email?: string;
|
|
2314
|
+
role?: string;
|
|
2315
|
+
roles?: string[];
|
|
2316
|
+
department?: string;
|
|
2317
|
+
tenant?: string;
|
|
2318
|
+
groups?: string[];
|
|
2319
|
+
permissions?: string[];
|
|
2320
|
+
attributes?: Record<string, unknown>;
|
|
2321
|
+
riskScore?: number;
|
|
2322
|
+
mfaVerified?: boolean;
|
|
2323
|
+
lastMfaAt?: string;
|
|
2324
|
+
sessionStartedAt?: string;
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Request information in policy context
|
|
2328
|
+
*/
|
|
2329
|
+
export interface PolicyContextRequest {
|
|
2330
|
+
id: string;
|
|
2331
|
+
method: string;
|
|
2332
|
+
path: string;
|
|
2333
|
+
url: string;
|
|
2334
|
+
ip: string;
|
|
2335
|
+
userAgent?: string;
|
|
2336
|
+
origin?: string;
|
|
2337
|
+
referer?: string;
|
|
2338
|
+
headers?: Record<string, string | string[] | undefined>;
|
|
2339
|
+
query?: Record<string, string | string[]>;
|
|
2340
|
+
body?: unknown;
|
|
2341
|
+
contentType?: string;
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* Resource information in policy context
|
|
2345
|
+
*/
|
|
2346
|
+
export interface PolicyContextResource {
|
|
2347
|
+
id?: string;
|
|
2348
|
+
type?: string;
|
|
2349
|
+
sensitivityLevel?: 'public' | 'internal' | 'confidential' | 'restricted' | 'top_secret';
|
|
2350
|
+
dataType?: string;
|
|
2351
|
+
classification?: string;
|
|
2352
|
+
owner?: string;
|
|
2353
|
+
department?: string;
|
|
2354
|
+
region?: string;
|
|
2355
|
+
tags?: string[];
|
|
2356
|
+
attributes?: Record<string, unknown>;
|
|
2357
|
+
}
|
|
2358
|
+
/**
|
|
2359
|
+
* Risk information in policy context
|
|
2360
|
+
*/
|
|
2361
|
+
export interface PolicyContextRisk {
|
|
2362
|
+
userRiskScore?: number;
|
|
2363
|
+
ipReputation?: number;
|
|
2364
|
+
deviceTrust?: number;
|
|
2365
|
+
sessionRisk?: number;
|
|
2366
|
+
anomalyScore?: number;
|
|
2367
|
+
threatLevel?: 'none' | 'low' | 'medium' | 'high' | 'critical';
|
|
2368
|
+
riskFactors?: string[];
|
|
2369
|
+
}
|
|
2370
|
+
/**
|
|
2371
|
+
* Environment information in policy context
|
|
2372
|
+
*/
|
|
2373
|
+
export interface PolicyContextEnvironment {
|
|
2374
|
+
timestamp: string;
|
|
2375
|
+
timezone: string;
|
|
2376
|
+
dayOfWeek: number;
|
|
2377
|
+
hour: number;
|
|
2378
|
+
isBusinessHours?: boolean;
|
|
2379
|
+
isWeekend?: boolean;
|
|
2380
|
+
isHoliday?: boolean;
|
|
2381
|
+
geoLocation?: {
|
|
2382
|
+
country?: string;
|
|
2383
|
+
region?: string;
|
|
2384
|
+
city?: string;
|
|
2385
|
+
};
|
|
2386
|
+
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Full policy evaluation context
|
|
2389
|
+
*/
|
|
2390
|
+
export interface PolicyContext {
|
|
2391
|
+
/** User making the request */
|
|
2392
|
+
user?: PolicyContextUser;
|
|
2393
|
+
/** Request details */
|
|
2394
|
+
request: PolicyContextRequest;
|
|
2395
|
+
/** Resource being accessed */
|
|
2396
|
+
resource?: PolicyContextResource;
|
|
2397
|
+
/** Risk assessment */
|
|
2398
|
+
risk?: PolicyContextRisk;
|
|
2399
|
+
/** Environment context */
|
|
2400
|
+
environment?: PolicyContextEnvironment;
|
|
2401
|
+
/** Custom context data */
|
|
2402
|
+
custom?: Record<string, unknown>;
|
|
2403
|
+
/** Break-glass override token */
|
|
2404
|
+
breakGlassToken?: string;
|
|
2405
|
+
}
|
|
2406
|
+
export declare const policyContextSchema: z.ZodObject<{
|
|
2407
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
2408
|
+
id: z.ZodString;
|
|
2409
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2410
|
+
role: z.ZodOptional<z.ZodString>;
|
|
2411
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2412
|
+
department: z.ZodOptional<z.ZodString>;
|
|
2413
|
+
tenant: z.ZodOptional<z.ZodString>;
|
|
2414
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2415
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2416
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2417
|
+
riskScore: z.ZodOptional<z.ZodNumber>;
|
|
2418
|
+
mfaVerified: z.ZodOptional<z.ZodBoolean>;
|
|
2419
|
+
lastMfaAt: z.ZodOptional<z.ZodString>;
|
|
2420
|
+
sessionStartedAt: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
id?: string;
|
|
2423
|
+
email?: string;
|
|
2424
|
+
roles?: string[];
|
|
2425
|
+
permissions?: string[];
|
|
2426
|
+
role?: string;
|
|
2427
|
+
tenant?: string;
|
|
2428
|
+
attributes?: Record<string, unknown>;
|
|
2429
|
+
riskScore?: number;
|
|
2430
|
+
groups?: string[];
|
|
2431
|
+
department?: string;
|
|
2432
|
+
mfaVerified?: boolean;
|
|
2433
|
+
lastMfaAt?: string;
|
|
2434
|
+
sessionStartedAt?: string;
|
|
2435
|
+
}, {
|
|
2436
|
+
id?: string;
|
|
2437
|
+
email?: string;
|
|
2438
|
+
roles?: string[];
|
|
2439
|
+
permissions?: string[];
|
|
2440
|
+
role?: string;
|
|
2441
|
+
tenant?: string;
|
|
2442
|
+
attributes?: Record<string, unknown>;
|
|
2443
|
+
riskScore?: number;
|
|
2444
|
+
groups?: string[];
|
|
2445
|
+
department?: string;
|
|
2446
|
+
mfaVerified?: boolean;
|
|
2447
|
+
lastMfaAt?: string;
|
|
2448
|
+
sessionStartedAt?: string;
|
|
2449
|
+
}>>;
|
|
2450
|
+
request: z.ZodObject<{
|
|
2451
|
+
id: z.ZodString;
|
|
2452
|
+
method: z.ZodString;
|
|
2453
|
+
path: z.ZodString;
|
|
2454
|
+
url: z.ZodString;
|
|
2455
|
+
ip: z.ZodString;
|
|
2456
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
2457
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
referer: z.ZodOptional<z.ZodString>;
|
|
2459
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodUndefined]>>>;
|
|
2460
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
2461
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
2462
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
2463
|
+
}, "strip", z.ZodTypeAny, {
|
|
2464
|
+
path?: string;
|
|
2465
|
+
id?: string;
|
|
2466
|
+
url?: string;
|
|
2467
|
+
ip?: string;
|
|
2468
|
+
userAgent?: string;
|
|
2469
|
+
method?: string;
|
|
2470
|
+
query?: Record<string, string | string[]>;
|
|
2471
|
+
headers?: Record<string, string | string[]>;
|
|
2472
|
+
body?: unknown;
|
|
2473
|
+
origin?: string;
|
|
2474
|
+
referer?: string;
|
|
2475
|
+
contentType?: string;
|
|
2476
|
+
}, {
|
|
2477
|
+
path?: string;
|
|
2478
|
+
id?: string;
|
|
2479
|
+
url?: string;
|
|
2480
|
+
ip?: string;
|
|
2481
|
+
userAgent?: string;
|
|
2482
|
+
method?: string;
|
|
2483
|
+
query?: Record<string, string | string[]>;
|
|
2484
|
+
headers?: Record<string, string | string[]>;
|
|
2485
|
+
body?: unknown;
|
|
2486
|
+
origin?: string;
|
|
2487
|
+
referer?: string;
|
|
2488
|
+
contentType?: string;
|
|
2489
|
+
}>;
|
|
2490
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
2491
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2492
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2493
|
+
sensitivityLevel: z.ZodOptional<z.ZodEnum<["public", "internal", "confidential", "restricted", "top_secret"]>>;
|
|
2494
|
+
dataType: z.ZodOptional<z.ZodString>;
|
|
2495
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
2496
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2497
|
+
department: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
region: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2500
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2501
|
+
}, "strip", z.ZodTypeAny, {
|
|
2502
|
+
id?: string;
|
|
2503
|
+
type?: string;
|
|
2504
|
+
region?: string;
|
|
2505
|
+
dataType?: string;
|
|
2506
|
+
tags?: string[];
|
|
2507
|
+
owner?: string;
|
|
2508
|
+
classification?: string;
|
|
2509
|
+
attributes?: Record<string, unknown>;
|
|
2510
|
+
department?: string;
|
|
2511
|
+
sensitivityLevel?: "confidential" | "public" | "internal" | "restricted" | "top_secret";
|
|
2512
|
+
}, {
|
|
2513
|
+
id?: string;
|
|
2514
|
+
type?: string;
|
|
2515
|
+
region?: string;
|
|
2516
|
+
dataType?: string;
|
|
2517
|
+
tags?: string[];
|
|
2518
|
+
owner?: string;
|
|
2519
|
+
classification?: string;
|
|
2520
|
+
attributes?: Record<string, unknown>;
|
|
2521
|
+
department?: string;
|
|
2522
|
+
sensitivityLevel?: "confidential" | "public" | "internal" | "restricted" | "top_secret";
|
|
2523
|
+
}>>;
|
|
2524
|
+
risk: z.ZodOptional<z.ZodObject<{
|
|
2525
|
+
userRiskScore: z.ZodOptional<z.ZodNumber>;
|
|
2526
|
+
ipReputation: z.ZodOptional<z.ZodNumber>;
|
|
2527
|
+
deviceTrust: z.ZodOptional<z.ZodNumber>;
|
|
2528
|
+
sessionRisk: z.ZodOptional<z.ZodNumber>;
|
|
2529
|
+
anomalyScore: z.ZodOptional<z.ZodNumber>;
|
|
2530
|
+
threatLevel: z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>;
|
|
2531
|
+
riskFactors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2532
|
+
}, "strip", z.ZodTypeAny, {
|
|
2533
|
+
ipReputation?: number;
|
|
2534
|
+
userRiskScore?: number;
|
|
2535
|
+
deviceTrust?: number;
|
|
2536
|
+
sessionRisk?: number;
|
|
2537
|
+
anomalyScore?: number;
|
|
2538
|
+
threatLevel?: "none" | "critical" | "low" | "medium" | "high";
|
|
2539
|
+
riskFactors?: string[];
|
|
2540
|
+
}, {
|
|
2541
|
+
ipReputation?: number;
|
|
2542
|
+
userRiskScore?: number;
|
|
2543
|
+
deviceTrust?: number;
|
|
2544
|
+
sessionRisk?: number;
|
|
2545
|
+
anomalyScore?: number;
|
|
2546
|
+
threatLevel?: "none" | "critical" | "low" | "medium" | "high";
|
|
2547
|
+
riskFactors?: string[];
|
|
2548
|
+
}>>;
|
|
2549
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
2550
|
+
timestamp: z.ZodString;
|
|
2551
|
+
timezone: z.ZodString;
|
|
2552
|
+
dayOfWeek: z.ZodNumber;
|
|
2553
|
+
hour: z.ZodNumber;
|
|
2554
|
+
isBusinessHours: z.ZodOptional<z.ZodBoolean>;
|
|
2555
|
+
isWeekend: z.ZodOptional<z.ZodBoolean>;
|
|
2556
|
+
isHoliday: z.ZodOptional<z.ZodBoolean>;
|
|
2557
|
+
geoLocation: z.ZodOptional<z.ZodObject<{
|
|
2558
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
region: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
city: z.ZodOptional<z.ZodString>;
|
|
2561
|
+
}, "strip", z.ZodTypeAny, {
|
|
2562
|
+
region?: string;
|
|
2563
|
+
country?: string;
|
|
2564
|
+
city?: string;
|
|
2565
|
+
}, {
|
|
2566
|
+
region?: string;
|
|
2567
|
+
country?: string;
|
|
2568
|
+
city?: string;
|
|
2569
|
+
}>>;
|
|
2570
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
|
+
timestamp?: string;
|
|
2572
|
+
hour?: number;
|
|
2573
|
+
dayOfWeek?: number;
|
|
2574
|
+
timezone?: string;
|
|
2575
|
+
geoLocation?: {
|
|
2576
|
+
region?: string;
|
|
2577
|
+
country?: string;
|
|
2578
|
+
city?: string;
|
|
2579
|
+
};
|
|
2580
|
+
isBusinessHours?: boolean;
|
|
2581
|
+
isWeekend?: boolean;
|
|
2582
|
+
isHoliday?: boolean;
|
|
2583
|
+
}, {
|
|
2584
|
+
timestamp?: string;
|
|
2585
|
+
hour?: number;
|
|
2586
|
+
dayOfWeek?: number;
|
|
2587
|
+
timezone?: string;
|
|
2588
|
+
geoLocation?: {
|
|
2589
|
+
region?: string;
|
|
2590
|
+
country?: string;
|
|
2591
|
+
city?: string;
|
|
2592
|
+
};
|
|
2593
|
+
isBusinessHours?: boolean;
|
|
2594
|
+
isWeekend?: boolean;
|
|
2595
|
+
isHoliday?: boolean;
|
|
2596
|
+
}>>;
|
|
2597
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2598
|
+
breakGlassToken: z.ZodOptional<z.ZodString>;
|
|
2599
|
+
}, "strip", z.ZodTypeAny, {
|
|
2600
|
+
user?: {
|
|
2601
|
+
id?: string;
|
|
2602
|
+
email?: string;
|
|
2603
|
+
roles?: string[];
|
|
2604
|
+
permissions?: string[];
|
|
2605
|
+
role?: string;
|
|
2606
|
+
tenant?: string;
|
|
2607
|
+
attributes?: Record<string, unknown>;
|
|
2608
|
+
riskScore?: number;
|
|
2609
|
+
groups?: string[];
|
|
2610
|
+
department?: string;
|
|
2611
|
+
mfaVerified?: boolean;
|
|
2612
|
+
lastMfaAt?: string;
|
|
2613
|
+
sessionStartedAt?: string;
|
|
2614
|
+
};
|
|
2615
|
+
custom?: Record<string, unknown>;
|
|
2616
|
+
environment?: {
|
|
2617
|
+
timestamp?: string;
|
|
2618
|
+
hour?: number;
|
|
2619
|
+
dayOfWeek?: number;
|
|
2620
|
+
timezone?: string;
|
|
2621
|
+
geoLocation?: {
|
|
2622
|
+
region?: string;
|
|
2623
|
+
country?: string;
|
|
2624
|
+
city?: string;
|
|
2625
|
+
};
|
|
2626
|
+
isBusinessHours?: boolean;
|
|
2627
|
+
isWeekend?: boolean;
|
|
2628
|
+
isHoliday?: boolean;
|
|
2629
|
+
};
|
|
2630
|
+
request?: {
|
|
2631
|
+
path?: string;
|
|
2632
|
+
id?: string;
|
|
2633
|
+
url?: string;
|
|
2634
|
+
ip?: string;
|
|
2635
|
+
userAgent?: string;
|
|
2636
|
+
method?: string;
|
|
2637
|
+
query?: Record<string, string | string[]>;
|
|
2638
|
+
headers?: Record<string, string | string[]>;
|
|
2639
|
+
body?: unknown;
|
|
2640
|
+
origin?: string;
|
|
2641
|
+
referer?: string;
|
|
2642
|
+
contentType?: string;
|
|
2643
|
+
};
|
|
2644
|
+
resource?: {
|
|
2645
|
+
id?: string;
|
|
2646
|
+
type?: string;
|
|
2647
|
+
region?: string;
|
|
2648
|
+
dataType?: string;
|
|
2649
|
+
tags?: string[];
|
|
2650
|
+
owner?: string;
|
|
2651
|
+
classification?: string;
|
|
2652
|
+
attributes?: Record<string, unknown>;
|
|
2653
|
+
department?: string;
|
|
2654
|
+
sensitivityLevel?: "confidential" | "public" | "internal" | "restricted" | "top_secret";
|
|
2655
|
+
};
|
|
2656
|
+
risk?: {
|
|
2657
|
+
ipReputation?: number;
|
|
2658
|
+
userRiskScore?: number;
|
|
2659
|
+
deviceTrust?: number;
|
|
2660
|
+
sessionRisk?: number;
|
|
2661
|
+
anomalyScore?: number;
|
|
2662
|
+
threatLevel?: "none" | "critical" | "low" | "medium" | "high";
|
|
2663
|
+
riskFactors?: string[];
|
|
2664
|
+
};
|
|
2665
|
+
breakGlassToken?: string;
|
|
2666
|
+
}, {
|
|
2667
|
+
user?: {
|
|
2668
|
+
id?: string;
|
|
2669
|
+
email?: string;
|
|
2670
|
+
roles?: string[];
|
|
2671
|
+
permissions?: string[];
|
|
2672
|
+
role?: string;
|
|
2673
|
+
tenant?: string;
|
|
2674
|
+
attributes?: Record<string, unknown>;
|
|
2675
|
+
riskScore?: number;
|
|
2676
|
+
groups?: string[];
|
|
2677
|
+
department?: string;
|
|
2678
|
+
mfaVerified?: boolean;
|
|
2679
|
+
lastMfaAt?: string;
|
|
2680
|
+
sessionStartedAt?: string;
|
|
2681
|
+
};
|
|
2682
|
+
custom?: Record<string, unknown>;
|
|
2683
|
+
environment?: {
|
|
2684
|
+
timestamp?: string;
|
|
2685
|
+
hour?: number;
|
|
2686
|
+
dayOfWeek?: number;
|
|
2687
|
+
timezone?: string;
|
|
2688
|
+
geoLocation?: {
|
|
2689
|
+
region?: string;
|
|
2690
|
+
country?: string;
|
|
2691
|
+
city?: string;
|
|
2692
|
+
};
|
|
2693
|
+
isBusinessHours?: boolean;
|
|
2694
|
+
isWeekend?: boolean;
|
|
2695
|
+
isHoliday?: boolean;
|
|
2696
|
+
};
|
|
2697
|
+
request?: {
|
|
2698
|
+
path?: string;
|
|
2699
|
+
id?: string;
|
|
2700
|
+
url?: string;
|
|
2701
|
+
ip?: string;
|
|
2702
|
+
userAgent?: string;
|
|
2703
|
+
method?: string;
|
|
2704
|
+
query?: Record<string, string | string[]>;
|
|
2705
|
+
headers?: Record<string, string | string[]>;
|
|
2706
|
+
body?: unknown;
|
|
2707
|
+
origin?: string;
|
|
2708
|
+
referer?: string;
|
|
2709
|
+
contentType?: string;
|
|
2710
|
+
};
|
|
2711
|
+
resource?: {
|
|
2712
|
+
id?: string;
|
|
2713
|
+
type?: string;
|
|
2714
|
+
region?: string;
|
|
2715
|
+
dataType?: string;
|
|
2716
|
+
tags?: string[];
|
|
2717
|
+
owner?: string;
|
|
2718
|
+
classification?: string;
|
|
2719
|
+
attributes?: Record<string, unknown>;
|
|
2720
|
+
department?: string;
|
|
2721
|
+
sensitivityLevel?: "confidential" | "public" | "internal" | "restricted" | "top_secret";
|
|
2722
|
+
};
|
|
2723
|
+
risk?: {
|
|
2724
|
+
ipReputation?: number;
|
|
2725
|
+
userRiskScore?: number;
|
|
2726
|
+
deviceTrust?: number;
|
|
2727
|
+
sessionRisk?: number;
|
|
2728
|
+
anomalyScore?: number;
|
|
2729
|
+
threatLevel?: "none" | "critical" | "low" | "medium" | "high";
|
|
2730
|
+
riskFactors?: string[];
|
|
2731
|
+
};
|
|
2732
|
+
breakGlassToken?: string;
|
|
2733
|
+
}>;
|
|
2734
|
+
/**
|
|
2735
|
+
* Decision outcome
|
|
2736
|
+
*/
|
|
2737
|
+
export declare const DecisionOutcome: {
|
|
2738
|
+
readonly ALLOW: "allow";
|
|
2739
|
+
readonly DENY: "deny";
|
|
2740
|
+
readonly CHALLENGE: "challenge";
|
|
2741
|
+
readonly PENDING: "pending";
|
|
2742
|
+
};
|
|
2743
|
+
export type DecisionOutcome = (typeof DecisionOutcome)[keyof typeof DecisionOutcome];
|
|
2744
|
+
/**
|
|
2745
|
+
* Individual policy evaluation result
|
|
2746
|
+
*/
|
|
2747
|
+
export interface PolicyEvaluationResult {
|
|
2748
|
+
policyId: string;
|
|
2749
|
+
policyName: string;
|
|
2750
|
+
policyVersion: string;
|
|
2751
|
+
matched: boolean;
|
|
2752
|
+
conditionResults: ConditionEvaluationResult[];
|
|
2753
|
+
ruleResults: RuleEvaluationResult[];
|
|
2754
|
+
actions: PolicyAction[];
|
|
2755
|
+
durationMs: number;
|
|
2756
|
+
evaluatedAt: string;
|
|
2757
|
+
}
|
|
2758
|
+
/**
|
|
2759
|
+
* Condition evaluation result
|
|
2760
|
+
*/
|
|
2761
|
+
export interface ConditionEvaluationResult {
|
|
2762
|
+
conditionType: ConditionType | 'composite';
|
|
2763
|
+
field?: string;
|
|
2764
|
+
operator?: ConditionOperator | LogicalOperator;
|
|
2765
|
+
expected?: unknown;
|
|
2766
|
+
actual?: unknown;
|
|
2767
|
+
matched: boolean;
|
|
2768
|
+
error?: string;
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* Rule evaluation result
|
|
2772
|
+
*/
|
|
2773
|
+
export interface RuleEvaluationResult {
|
|
2774
|
+
ruleType: PolicyRuleType;
|
|
2775
|
+
enforced: boolean;
|
|
2776
|
+
passed: boolean;
|
|
2777
|
+
reason?: string;
|
|
2778
|
+
metadata?: Record<string, unknown>;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2781
|
+
* Final policy decision
|
|
2782
|
+
*/
|
|
2783
|
+
export interface PolicyDecision {
|
|
2784
|
+
/** Decision ID */
|
|
2785
|
+
id: string;
|
|
2786
|
+
/** Request ID */
|
|
2787
|
+
requestId: string;
|
|
2788
|
+
/** Decision outcome */
|
|
2789
|
+
outcome: DecisionOutcome;
|
|
2790
|
+
/** Primary reason for decision */
|
|
2791
|
+
reason: string;
|
|
2792
|
+
/** Actions to execute */
|
|
2793
|
+
actions: PolicyAction[];
|
|
2794
|
+
/** All evaluated policies */
|
|
2795
|
+
evaluatedPolicies: PolicyEvaluationResult[];
|
|
2796
|
+
/** Matched policies (subset of evaluated) */
|
|
2797
|
+
matchedPolicies: PolicyEvaluationResult[];
|
|
2798
|
+
/** Whether break-glass was used */
|
|
2799
|
+
breakGlassUsed: boolean;
|
|
2800
|
+
/** Total evaluation time */
|
|
2801
|
+
totalDurationMs: number;
|
|
2802
|
+
/** Decision timestamp */
|
|
2803
|
+
decidedAt: string;
|
|
2804
|
+
/** Metadata */
|
|
2805
|
+
metadata?: Record<string, unknown>;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* Policy version record
|
|
2809
|
+
*/
|
|
2810
|
+
export interface PolicyVersionRecord {
|
|
2811
|
+
id: string;
|
|
2812
|
+
policyId: string;
|
|
2813
|
+
version: string;
|
|
2814
|
+
policy: SecurityPolicy;
|
|
2815
|
+
changeSummary?: string;
|
|
2816
|
+
createdBy?: string;
|
|
2817
|
+
createdAt: string;
|
|
2818
|
+
}
|
|
2819
|
+
/**
|
|
2820
|
+
* Simulation request
|
|
2821
|
+
*/
|
|
2822
|
+
export interface PolicySimulationRequest {
|
|
2823
|
+
context: PolicyContext;
|
|
2824
|
+
policies?: string[];
|
|
2825
|
+
includeDisabled?: boolean;
|
|
2826
|
+
verbose?: boolean;
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Simulation result
|
|
2830
|
+
*/
|
|
2831
|
+
export interface PolicySimulationResult {
|
|
2832
|
+
decision: PolicyDecision;
|
|
2833
|
+
whatIf: {
|
|
2834
|
+
withoutPolicy?: Record<string, PolicyDecision>;
|
|
2835
|
+
withModifiedContext?: Record<string, PolicyDecision>;
|
|
2836
|
+
};
|
|
2837
|
+
recommendations?: string[];
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* Policy validation error
|
|
2841
|
+
*/
|
|
2842
|
+
export interface PolicyValidationError {
|
|
2843
|
+
path: string;
|
|
2844
|
+
message: string;
|
|
2845
|
+
code: string;
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
* Policy validation result
|
|
2849
|
+
*/
|
|
2850
|
+
export interface PolicyValidationResult {
|
|
2851
|
+
valid: boolean;
|
|
2852
|
+
errors: PolicyValidationError[];
|
|
2853
|
+
warnings: string[];
|
|
2854
|
+
}
|
|
2855
|
+
//# sourceMappingURL=types.d.ts.map
|