@vorionsys/security 1.0.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 +85 -0
- package/dist/aci-extensions/aci-string-extensions.d.ts +334 -0
- package/dist/aci-extensions/aci-string-extensions.d.ts.map +1 -0
- package/dist/aci-extensions/aci-string-extensions.js +435 -0
- package/dist/aci-extensions/aci-string-extensions.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/audit.d.ts +88 -0
- package/dist/aci-extensions/builtin-extensions/audit.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/audit.js +444 -0
- package/dist/aci-extensions/builtin-extensions/audit.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/governance.d.ts +32 -0
- package/dist/aci-extensions/builtin-extensions/governance.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/governance.js +533 -0
- package/dist/aci-extensions/builtin-extensions/governance.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.d.ts +43 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.js +416 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.js.map +1 -0
- package/dist/aci-extensions/executor.d.ts +208 -0
- package/dist/aci-extensions/executor.d.ts.map +1 -0
- package/dist/aci-extensions/executor.js +789 -0
- package/dist/aci-extensions/executor.js.map +1 -0
- package/dist/aci-extensions/index.d.ts +6 -0
- package/dist/aci-extensions/index.d.ts.map +1 -0
- package/dist/aci-extensions/index.js +6 -0
- package/dist/aci-extensions/index.js.map +1 -0
- package/dist/aci-extensions/registry.d.ts +217 -0
- package/dist/aci-extensions/registry.d.ts.map +1 -0
- package/dist/aci-extensions/registry.js +443 -0
- package/dist/aci-extensions/registry.js.map +1 -0
- package/dist/aci-extensions/service.d.ts +220 -0
- package/dist/aci-extensions/service.d.ts.map +1 -0
- package/dist/aci-extensions/service.js +484 -0
- package/dist/aci-extensions/service.js.map +1 -0
- package/dist/aci-extensions/types.d.ts +2265 -0
- package/dist/aci-extensions/types.d.ts.map +1 -0
- package/dist/aci-extensions/types.js +389 -0
- package/dist/aci-extensions/types.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 +306 -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 +16 -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 +23 -0
- package/dist/api/middleware/index.d.ts.map +1 -0
- package/dist/api/middleware/index.js +41 -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.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/routes/extensions.d.ts +40 -0
- package/dist/api/routes/extensions.d.ts.map +1 -0
- package/dist/api/routes/extensions.js +434 -0
- package/dist/api/routes/extensions.js.map +1 -0
- package/dist/api/routes/mfa.d.ts +44 -0
- package/dist/api/routes/mfa.d.ts.map +1 -0
- package/dist/api/routes/mfa.js +270 -0
- package/dist/api/routes/mfa.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 +1967 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/v1/admin.d.ts +11 -0
- package/dist/api/v1/admin.d.ts.map +1 -0
- package/dist/api/v1/admin.js +207 -0
- package/dist/api/v1/admin.js.map +1 -0
- package/dist/api/v1/audit.d.ts +14 -0
- package/dist/api/v1/audit.d.ts.map +1 -0
- package/dist/api/v1/audit.js +376 -0
- package/dist/api/v1/audit.js.map +1 -0
- package/dist/api/v1/auth.d.ts +17 -0
- package/dist/api/v1/auth.d.ts.map +1 -0
- package/dist/api/v1/auth.js +637 -0
- package/dist/api/v1/auth.js.map +1 -0
- package/dist/api/v1/compliance.d.ts +62 -0
- package/dist/api/v1/compliance.d.ts.map +1 -0
- package/dist/api/v1/compliance.js +858 -0
- package/dist/api/v1/compliance.js.map +1 -0
- package/dist/api/v1/constraints.d.ts +11 -0
- package/dist/api/v1/constraints.d.ts.map +1 -0
- package/dist/api/v1/constraints.js +71 -0
- package/dist/api/v1/constraints.js.map +1 -0
- package/dist/api/v1/dashboard.d.ts +224 -0
- package/dist/api/v1/dashboard.d.ts.map +1 -0
- package/dist/api/v1/dashboard.js +833 -0
- package/dist/api/v1/dashboard.js.map +1 -0
- package/dist/api/v1/docs.d.ts +11 -0
- package/dist/api/v1/docs.d.ts.map +1 -0
- package/dist/api/v1/docs.js +95 -0
- package/dist/api/v1/docs.js.map +1 -0
- package/dist/api/v1/escalations.d.ts +11 -0
- package/dist/api/v1/escalations.d.ts.map +1 -0
- package/dist/api/v1/escalations.js +857 -0
- package/dist/api/v1/escalations.js.map +1 -0
- package/dist/api/v1/gdpr.d.ts +11 -0
- package/dist/api/v1/gdpr.d.ts.map +1 -0
- package/dist/api/v1/gdpr.js +220 -0
- package/dist/api/v1/gdpr.js.map +1 -0
- package/dist/api/v1/health.d.ts +22 -0
- package/dist/api/v1/health.d.ts.map +1 -0
- package/dist/api/v1/health.js +512 -0
- package/dist/api/v1/health.js.map +1 -0
- package/dist/api/v1/index.d.ts +22 -0
- package/dist/api/v1/index.d.ts.map +1 -0
- package/dist/api/v1/index.js +81 -0
- package/dist/api/v1/index.js.map +1 -0
- package/dist/api/v1/intents.d.ts +11 -0
- package/dist/api/v1/intents.d.ts.map +1 -0
- package/dist/api/v1/intents.js +239 -0
- package/dist/api/v1/intents.js.map +1 -0
- package/dist/api/v1/operations.d.ts +21 -0
- package/dist/api/v1/operations.d.ts.map +1 -0
- package/dist/api/v1/operations.js +140 -0
- package/dist/api/v1/operations.js.map +1 -0
- package/dist/api/v1/policies.d.ts +11 -0
- package/dist/api/v1/policies.d.ts.map +1 -0
- package/dist/api/v1/policies.js +763 -0
- package/dist/api/v1/policies.js.map +1 -0
- package/dist/api/v1/proofs.d.ts +13 -0
- package/dist/api/v1/proofs.d.ts.map +1 -0
- package/dist/api/v1/proofs.js +239 -0
- package/dist/api/v1/proofs.js.map +1 -0
- package/dist/api/v1/security-dashboard.d.ts +1090 -0
- package/dist/api/v1/security-dashboard.d.ts.map +1 -0
- package/dist/api/v1/security-dashboard.js +755 -0
- package/dist/api/v1/security-dashboard.js.map +1 -0
- package/dist/api/v1/service-accounts.d.ts +16 -0
- package/dist/api/v1/service-accounts.d.ts.map +1 -0
- package/dist/api/v1/service-accounts.js +563 -0
- package/dist/api/v1/service-accounts.js.map +1 -0
- package/dist/api/v1/sessions.d.ts +36 -0
- package/dist/api/v1/sessions.d.ts.map +1 -0
- package/dist/api/v1/sessions.js +333 -0
- package/dist/api/v1/sessions.js.map +1 -0
- package/dist/api/v1/trust.d.ts +14 -0
- package/dist/api/v1/trust.d.ts.map +1 -0
- package/dist/api/v1/trust.js +578 -0
- package/dist/api/v1/trust.js.map +1 -0
- package/dist/api/v1/webhooks.d.ts +11 -0
- package/dist/api/v1/webhooks.d.ts.map +1 -0
- package/dist/api/v1/webhooks.js +250 -0
- package/dist/api/v1/webhooks.js.map +1 -0
- package/dist/api/v2/trust.d.ts +20 -0
- package/dist/api/v2/trust.d.ts.map +1 -0
- package/dist/api/v2/trust.js +362 -0
- package/dist/api/v2/trust.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/api/versioning/backward-compat.d.ts +28 -0
- package/dist/api/versioning/backward-compat.d.ts.map +1 -0
- package/dist/api/versioning/backward-compat.js +161 -0
- package/dist/api/versioning/backward-compat.js.map +1 -0
- package/dist/api/versioning/index.d.ts +112 -0
- package/dist/api/versioning/index.d.ts.map +1 -0
- package/dist/api/versioning/index.js +199 -0
- package/dist/api/versioning/index.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 +411 -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 +405 -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 +374 -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 +405 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +121 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/auth/mfa/index.d.ts +66 -0
- package/dist/auth/mfa/index.d.ts.map +1 -0
- package/dist/auth/mfa/index.js +15 -0
- package/dist/auth/mfa/index.js.map +1 -0
- package/dist/auth/mfa/totp.d.ts +221 -0
- package/dist/auth/mfa/totp.d.ts.map +1 -0
- package/dist/auth/mfa/totp.js +324 -0
- package/dist/auth/mfa/totp.js.map +1 -0
- package/dist/auth/mfa/webauthn.d.ts +224 -0
- package/dist/auth/mfa/webauthn.d.ts.map +1 -0
- package/dist/auth/mfa/webauthn.js +409 -0
- package/dist/auth/mfa/webauthn.js.map +1 -0
- package/dist/auth/sso/index.d.ts +247 -0
- package/dist/auth/sso/index.d.ts.map +1 -0
- package/dist/auth/sso/index.js +763 -0
- package/dist/auth/sso/index.js.map +1 -0
- package/dist/auth/sso/oidc-provider.d.ts +146 -0
- package/dist/auth/sso/oidc-provider.d.ts.map +1 -0
- package/dist/auth/sso/oidc-provider.js +589 -0
- package/dist/auth/sso/oidc-provider.js.map +1 -0
- package/dist/auth/sso/types.d.ts +488 -0
- package/dist/auth/sso/types.d.ts.map +1 -0
- package/dist/auth/sso/types.js +73 -0
- package/dist/auth/sso/types.js.map +1 -0
- package/dist/basis/evaluator.d.ts +70 -0
- package/dist/basis/evaluator.d.ts.map +1 -0
- package/dist/basis/evaluator.js +269 -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 +174 -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/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 +444 -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 +533 -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 +334 -0
- package/dist/car-extensions/car-string-extensions.d.ts.map +1 -0
- package/dist/car-extensions/car-string-extensions.js +435 -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 +157 -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 +443 -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 +484 -0
- package/dist/car-extensions/service.js.map +1 -0
- package/dist/car-extensions/types.d.ts +2265 -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 +139 -0
- package/dist/cognigate/index.d.ts.map +1 -0
- package/dist/cognigate/index.js +404 -0
- package/dist/cognigate/index.js.map +1 -0
- package/dist/cognigate/lua-scripts.d.ts +96 -0
- package/dist/cognigate/lua-scripts.d.ts.map +1 -0
- package/dist/cognigate/lua-scripts.js +264 -0
- package/dist/cognigate/lua-scripts.js.map +1 -0
- package/dist/cognigate/metrics.d.ts +112 -0
- package/dist/cognigate/metrics.d.ts.map +1 -0
- package/dist/cognigate/metrics.js +229 -0
- package/dist/cognigate/metrics.js.map +1 -0
- package/dist/cognigate/output-integration.d.ts +86 -0
- package/dist/cognigate/output-integration.d.ts.map +1 -0
- package/dist/cognigate/output-integration.js +184 -0
- package/dist/cognigate/output-integration.js.map +1 -0
- package/dist/cognigate/resource-interceptors.d.ts +77 -0
- package/dist/cognigate/resource-interceptors.d.ts.map +1 -0
- package/dist/cognigate/resource-interceptors.js +143 -0
- package/dist/cognigate/resource-interceptors.js.map +1 -0
- package/dist/cognigate/resource-state-provider.d.ts +103 -0
- package/dist/cognigate/resource-state-provider.d.ts.map +1 -0
- package/dist/cognigate/resource-state-provider.js +195 -0
- package/dist/cognigate/resource-state-provider.js.map +1 -0
- package/dist/cognigate/resource-tracker.d.ts +85 -0
- package/dist/cognigate/resource-tracker.d.ts.map +1 -0
- package/dist/cognigate/resource-tracker.js +216 -0
- package/dist/cognigate/resource-tracker.js.map +1 -0
- package/dist/cognigate/types.d.ts +199 -0
- package/dist/cognigate/types.d.ts.map +1 -0
- package/dist/cognigate/types.js +11 -0
- package/dist/cognigate/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/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 +151 -0
- package/dist/common/canonical-bridge.d.ts.map +1 -0
- package/dist/common/canonical-bridge.js +231 -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 +850 -0
- package/dist/common/circuit-breaker.js.map +1 -0
- package/dist/common/config.d.ts +1678 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +1057 -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.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/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 +131 -0
- package/dist/common/encryption.d.ts.map +1 -0
- package/dist/common/encryption.js +255 -0
- package/dist/common/encryption.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 +227 -0
- package/dist/common/metrics.d.ts.map +1 -0
- package/dist/common/metrics.js +524 -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/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/security-mode.d.ts +101 -0
- package/dist/common/security-mode.d.ts.map +1 -0
- package/dist/common/security-mode.js +304 -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-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 +328 -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/compliance/export/evidence-collector.d.ts +252 -0
- package/dist/compliance/export/evidence-collector.d.ts.map +1 -0
- package/dist/compliance/export/evidence-collector.js +488 -0
- package/dist/compliance/export/evidence-collector.js.map +1 -0
- package/dist/compliance/export/hash-verifier.d.ts +181 -0
- package/dist/compliance/export/hash-verifier.d.ts.map +1 -0
- package/dist/compliance/export/hash-verifier.js +425 -0
- package/dist/compliance/export/hash-verifier.js.map +1 -0
- package/dist/compliance/export/index.d.ts +14 -0
- package/dist/compliance/export/index.d.ts.map +1 -0
- package/dist/compliance/export/index.js +41 -0
- package/dist/compliance/export/index.js.map +1 -0
- package/dist/compliance/export/report-generator.d.ts +264 -0
- package/dist/compliance/export/report-generator.d.ts.map +1 -0
- package/dist/compliance/export/report-generator.js +890 -0
- package/dist/compliance/export/report-generator.js.map +1 -0
- package/dist/compliance/export/scheduled-exports.d.ts +256 -0
- package/dist/compliance/export/scheduled-exports.d.ts.map +1 -0
- package/dist/compliance/export/scheduled-exports.js +545 -0
- package/dist/compliance/export/scheduled-exports.js.map +1 -0
- package/dist/compliance/export/service.d.ts +191 -0
- package/dist/compliance/export/service.d.ts.map +1 -0
- package/dist/compliance/export/service.js +382 -0
- package/dist/compliance/export/service.js.map +1 -0
- package/dist/compliance/fedramp/assessment.d.ts +654 -0
- package/dist/compliance/fedramp/assessment.d.ts.map +1 -0
- package/dist/compliance/fedramp/assessment.js +721 -0
- package/dist/compliance/fedramp/assessment.js.map +1 -0
- package/dist/compliance/fedramp/boundary.d.ts +932 -0
- package/dist/compliance/fedramp/boundary.d.ts.map +1 -0
- package/dist/compliance/fedramp/boundary.js +645 -0
- package/dist/compliance/fedramp/boundary.js.map +1 -0
- package/dist/compliance/fedramp/continuous-monitoring.d.ts +705 -0
- package/dist/compliance/fedramp/continuous-monitoring.d.ts.map +1 -0
- package/dist/compliance/fedramp/continuous-monitoring.js +616 -0
- package/dist/compliance/fedramp/continuous-monitoring.js.map +1 -0
- package/dist/compliance/fedramp/controls.d.ts +128 -0
- package/dist/compliance/fedramp/controls.d.ts.map +1 -0
- package/dist/compliance/fedramp/controls.js +1110 -0
- package/dist/compliance/fedramp/controls.js.map +1 -0
- package/dist/compliance/fedramp/incident-reporting.d.ts +1001 -0
- package/dist/compliance/fedramp/incident-reporting.d.ts.map +1 -0
- package/dist/compliance/fedramp/incident-reporting.js +764 -0
- package/dist/compliance/fedramp/incident-reporting.js.map +1 -0
- package/dist/compliance/fedramp/index.d.ts +87 -0
- package/dist/compliance/fedramp/index.d.ts.map +1 -0
- package/dist/compliance/fedramp/index.js +192 -0
- package/dist/compliance/fedramp/index.js.map +1 -0
- package/dist/compliance/fedramp/metrics.d.ts +288 -0
- package/dist/compliance/fedramp/metrics.d.ts.map +1 -0
- package/dist/compliance/fedramp/metrics.js +560 -0
- package/dist/compliance/fedramp/metrics.js.map +1 -0
- package/dist/compliance/fedramp/poam.d.ts +635 -0
- package/dist/compliance/fedramp/poam.d.ts.map +1 -0
- package/dist/compliance/fedramp/poam.js +602 -0
- package/dist/compliance/fedramp/poam.js.map +1 -0
- package/dist/compliance/fedramp/ssp-generator.d.ts +368 -0
- package/dist/compliance/fedramp/ssp-generator.d.ts.map +1 -0
- package/dist/compliance/fedramp/ssp-generator.js +543 -0
- package/dist/compliance/fedramp/ssp-generator.js.map +1 -0
- package/dist/compliance/frameworks/nist-800-53.d.ts +35 -0
- package/dist/compliance/frameworks/nist-800-53.d.ts.map +1 -0
- package/dist/compliance/frameworks/nist-800-53.js +892 -0
- package/dist/compliance/frameworks/nist-800-53.js.map +1 -0
- package/dist/compliance/frameworks/pci-dss.d.ts +407 -0
- package/dist/compliance/frameworks/pci-dss.d.ts.map +1 -0
- package/dist/compliance/frameworks/pci-dss.js +1873 -0
- package/dist/compliance/frameworks/pci-dss.js.map +1 -0
- package/dist/compliance/frameworks/soc2.d.ts +42 -0
- package/dist/compliance/frameworks/soc2.d.ts.map +1 -0
- package/dist/compliance/frameworks/soc2.js +669 -0
- package/dist/compliance/frameworks/soc2.js.map +1 -0
- package/dist/compliance/gdpr/data-transfers.d.ts +493 -0
- package/dist/compliance/gdpr/data-transfers.d.ts.map +1 -0
- package/dist/compliance/gdpr/data-transfers.js +1242 -0
- package/dist/compliance/gdpr/data-transfers.js.map +1 -0
- package/dist/compliance/gdpr/index.d.ts +7 -0
- package/dist/compliance/gdpr/index.d.ts.map +1 -0
- package/dist/compliance/gdpr/index.js +7 -0
- package/dist/compliance/gdpr/index.js.map +1 -0
- package/dist/compliance/index.d.ts +148 -0
- package/dist/compliance/index.d.ts.map +1 -0
- package/dist/compliance/index.js +532 -0
- package/dist/compliance/index.js.map +1 -0
- package/dist/compliance/reports.d.ts +141 -0
- package/dist/compliance/reports.d.ts.map +1 -0
- package/dist/compliance/reports.js +495 -0
- package/dist/compliance/reports.js.map +1 -0
- package/dist/compliance/retention/index.d.ts +19 -0
- package/dist/compliance/retention/index.d.ts.map +1 -0
- package/dist/compliance/retention/index.js +46 -0
- package/dist/compliance/retention/index.js.map +1 -0
- package/dist/compliance/retention/retention-enforcer.d.ts +128 -0
- package/dist/compliance/retention/retention-enforcer.d.ts.map +1 -0
- package/dist/compliance/retention/retention-enforcer.js +695 -0
- package/dist/compliance/retention/retention-enforcer.js.map +1 -0
- package/dist/compliance/retention/retention-policy.d.ts +307 -0
- package/dist/compliance/retention/retention-policy.d.ts.map +1 -0
- package/dist/compliance/retention/retention-policy.js +102 -0
- package/dist/compliance/retention/retention-policy.js.map +1 -0
- package/dist/compliance/retention/retention-scheduler.d.ts +124 -0
- package/dist/compliance/retention/retention-scheduler.d.ts.map +1 -0
- package/dist/compliance/retention/retention-scheduler.js +391 -0
- package/dist/compliance/retention/retention-scheduler.js.map +1 -0
- package/dist/compliance/types.d.ts +1162 -0
- package/dist/compliance/types.d.ts.map +1 -0
- package/dist/compliance/types.js +191 -0
- package/dist/compliance/types.js.map +1 -0
- package/dist/db/migration-checker.d.ts +183 -0
- package/dist/db/migration-checker.d.ts.map +1 -0
- package/dist/db/migration-checker.js +680 -0
- package/dist/db/migration-checker.js.map +1 -0
- package/dist/db/schema/api-keys.d.ts +506 -0
- package/dist/db/schema/api-keys.d.ts.map +1 -0
- package/dist/db/schema/api-keys.js +98 -0
- package/dist/db/schema/api-keys.js.map +1 -0
- package/dist/db/schema/escalations.d.ts +554 -0
- package/dist/db/schema/escalations.d.ts.map +1 -0
- package/dist/db/schema/escalations.js +97 -0
- package/dist/db/schema/escalations.js.map +1 -0
- package/dist/db/schema/index.d.ts +19 -0
- package/dist/db/schema/index.d.ts.map +1 -0
- package/dist/db/schema/index.js +19 -0
- package/dist/db/schema/index.js.map +1 -0
- package/dist/db/schema/intents.d.ts +535 -0
- package/dist/db/schema/intents.d.ts.map +1 -0
- package/dist/db/schema/intents.js +90 -0
- package/dist/db/schema/intents.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/operations.d.ts +256 -0
- package/dist/db/schema/operations.d.ts.map +1 -0
- package/dist/db/schema/operations.js +65 -0
- package/dist/db/schema/operations.js.map +1 -0
- package/dist/db/schema/policy-versions.d.ts +149 -0
- package/dist/db/schema/policy-versions.d.ts.map +1 -0
- package/dist/db/schema/policy-versions.js +40 -0
- package/dist/db/schema/policy-versions.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/db/schema/service-accounts.d.ts +783 -0
- package/dist/db/schema/service-accounts.d.ts.map +1 -0
- package/dist/db/schema/service-accounts.js +176 -0
- package/dist/db/schema/service-accounts.js.map +1 -0
- package/dist/db/schema/trust.d.ts +593 -0
- package/dist/db/schema/trust.d.ts.map +1 -0
- package/dist/db/schema/trust.js +98 -0
- package/dist/db/schema/trust.js.map +1 -0
- package/dist/db/schema/users.d.ts +487 -0
- package/dist/db/schema/users.d.ts.map +1 -0
- package/dist/db/schema/users.js +133 -0
- package/dist/db/schema/users.js.map +1 -0
- package/dist/db/schema/webhooks.d.ts +382 -0
- package/dist/db/schema/webhooks.d.ts.map +1 -0
- package/dist/db/schema/webhooks.js +91 -0
- package/dist/db/schema/webhooks.js.map +1 -0
- package/dist/enforce/constraint-evaluator.d.ts +385 -0
- package/dist/enforce/constraint-evaluator.d.ts.map +1 -0
- package/dist/enforce/constraint-evaluator.js +648 -0
- package/dist/enforce/constraint-evaluator.js.map +1 -0
- package/dist/enforce/decision-aggregator.d.ts +269 -0
- package/dist/enforce/decision-aggregator.d.ts.map +1 -0
- package/dist/enforce/decision-aggregator.js +560 -0
- package/dist/enforce/decision-aggregator.js.map +1 -0
- package/dist/enforce/escalation-rules.d.ts +411 -0
- package/dist/enforce/escalation-rules.d.ts.map +1 -0
- package/dist/enforce/escalation-rules.js +681 -0
- package/dist/enforce/escalation-rules.js.map +1 -0
- package/dist/enforce/index.d.ts +175 -0
- package/dist/enforce/index.d.ts.map +1 -0
- package/dist/enforce/index.js +402 -0
- package/dist/enforce/index.js.map +1 -0
- package/dist/enforce/policy-engine.d.ts +390 -0
- package/dist/enforce/policy-engine.d.ts.map +1 -0
- package/dist/enforce/policy-engine.js +652 -0
- package/dist/enforce/policy-engine.js.map +1 -0
- package/dist/enforce/runtime-config.d.ts +387 -0
- package/dist/enforce/runtime-config.d.ts.map +1 -0
- package/dist/enforce/runtime-config.js +709 -0
- package/dist/enforce/runtime-config.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +74 -0
- package/dist/index.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 +457 -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 +208 -0
- package/dist/intent/escalation.d.ts.map +1 -0
- package/dist/intent/escalation.js +550 -0
- package/dist/intent/escalation.js.map +1 -0
- package/dist/intent/gdpr.d.ts +245 -0
- package/dist/intent/gdpr.d.ts.map +1 -0
- package/dist/intent/gdpr.js +580 -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 +447 -0
- package/dist/intent/index.d.ts.map +1 -0
- package/dist/intent/index.js +685 -0
- package/dist/intent/index.js.map +1 -0
- package/dist/intent/metrics.d.ts +391 -0
- package/dist/intent/metrics.d.ts.map +1 -0
- package/dist/intent/metrics.js +885 -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 +157 -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/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 +1382 -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 +148 -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 +159 -0
- package/dist/intent/replay/index.d.ts.map +1 -0
- package/dist/intent/replay/index.js +486 -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 +510 -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/repository.d.ts +198 -0
- package/dist/intent/repository.d.ts.map +1 -0
- package/dist/intent/repository.js +526 -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 +337 -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 +801 -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 +2997 -0
- package/dist/intent/schema.d.ts.map +1 -0
- package/dist/intent/schema.js +447 -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 +175 -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 +610 -0
- package/dist/intent/webhooks.d.ts.map +1 -0
- package/dist/intent/webhooks.js +1793 -0
- package/dist/intent/webhooks.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/evaluator.d.ts +102 -0
- package/dist/policy/evaluator.d.ts.map +1 -0
- package/dist/policy/evaluator.js +647 -0
- package/dist/policy/evaluator.js.map +1 -0
- package/dist/policy/index.d.ts +16 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +19 -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 +173 -0
- package/dist/policy/loader.js.map +1 -0
- package/dist/policy/service.d.ts +150 -0
- package/dist/policy/service.d.ts.map +1 -0
- package/dist/policy/service.js +782 -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/proof/hybrid-signing.d.ts +82 -0
- package/dist/proof/hybrid-signing.d.ts.map +1 -0
- package/dist/proof/hybrid-signing.js +239 -0
- package/dist/proof/hybrid-signing.js.map +1 -0
- package/dist/proof/index.d.ts +203 -0
- package/dist/proof/index.d.ts.map +1 -0
- package/dist/proof/index.js +610 -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 +772 -0
- package/dist/security/crypto/fips-mode.d.ts.map +1 -0
- package/dist/security/crypto/fips-mode.js +1363 -0
- package/dist/security/crypto/fips-mode.js.map +1 -0
- package/dist/security/crypto/index.d.ts +202 -0
- package/dist/security/crypto/index.d.ts.map +1 -0
- package/dist/security/crypto/index.js +292 -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 +144 -0
- package/dist/security/crypto/post-quantum/dilithium.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/dilithium.js +675 -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 +129 -0
- package/dist/security/crypto/post-quantum/kyber.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/kyber.js +649 -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 +693 -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 +132 -0
- package/dist/security/hsm/index.d.ts.map +1 -0
- package/dist/security/hsm/index.js +198 -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/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/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 +84 -0
- package/dist/security/incident/actions/block-ip.d.ts.map +1 -0
- package/dist/security/incident/actions/block-ip.js +464 -0
- package/dist/security/incident/actions/block-ip.js.map +1 -0
- package/dist/security/incident/actions/collect-evidence.d.ts +95 -0
- package/dist/security/incident/actions/collect-evidence.d.ts.map +1 -0
- package/dist/security/incident/actions/collect-evidence.js +458 -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 +63 -0
- package/dist/security/incident/actions/isolate-system.d.ts.map +1 -0
- package/dist/security/incident/actions/isolate-system.js +379 -0
- package/dist/security/incident/actions/isolate-system.js.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts +72 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.js +387 -0
- package/dist/security/incident/actions/notify-stakeholders.js.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts +77 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.js +329 -0
- package/dist/security/incident/actions/revoke-credentials.js.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts +90 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.js +483 -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 +56 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +267 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/injection-detector.d.ts +375 -0
- package/dist/security/injection-detector.d.ts.map +1 -0
- package/dist/security/injection-detector.js +969 -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 +508 -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/policy-engine/atsf-adapter.d.ts +93 -0
- package/dist/security/policy-engine/atsf-adapter.d.ts.map +1 -0
- package/dist/security/policy-engine/atsf-adapter.js +265 -0
- package/dist/security/policy-engine/atsf-adapter.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 +59 -0
- package/dist/security/policy-engine/index.d.ts.map +1 -0
- package/dist/security/policy-engine/index.js +84 -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/refresh-token.d.ts +305 -0
- package/dist/security/refresh-token.d.ts.map +1 -0
- package/dist/security/refresh-token.js +678 -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.d.ts +157 -0
- package/dist/security/tee.d.ts.map +1 -0
- package/dist/security/tee.js +1073 -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 +710 -0
- package/dist/security/trust-oracle/continuous-monitoring.js.map +1 -0
- package/dist/security/trust-oracle/data-sources.d.ts +102 -0
- package/dist/security/trust-oracle/data-sources.d.ts.map +1 -0
- package/dist/security/trust-oracle/data-sources.js +794 -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 +1796 -0
- package/dist/security/types.d.ts.map +1 -0
- package/dist/security/types.js +389 -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 +757 -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 +159 -0
- package/dist/semantic-governance/context-validator.d.ts.map +1 -0
- package/dist/semantic-governance/context-validator.js +599 -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 +357 -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 +657 -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 +442 -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 +3916 -0
- package/dist/semantic-governance/types.d.ts.map +1 -0
- package/dist/semantic-governance/types.js +462 -0
- package/dist/semantic-governance/types.js.map +1 -0
- package/dist/trust-engine/aci-integration.d.ts +6 -0
- package/dist/trust-engine/aci-integration.d.ts.map +1 -0
- package/dist/trust-engine/aci-integration.js +6 -0
- package/dist/trust-engine/aci-integration.js.map +1 -0
- package/dist/trust-engine/car-integration.d.ts +244 -0
- package/dist/trust-engine/car-integration.d.ts.map +1 -0
- package/dist/trust-engine/car-integration.js +332 -0
- package/dist/trust-engine/car-integration.js.map +1 -0
- package/dist/trust-engine/context.d.ts +197 -0
- package/dist/trust-engine/context.d.ts.map +1 -0
- package/dist/trust-engine/context.js +307 -0
- package/dist/trust-engine/context.js.map +1 -0
- package/dist/trust-engine/index.d.ts +410 -0
- package/dist/trust-engine/index.d.ts.map +1 -0
- package/dist/trust-engine/index.js +1221 -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 +244 -0
- package/dist/trust-engine/observability.js.map +1 -0
- package/package.json +200 -0
|
@@ -0,0 +1,857 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1 Escalation Routes
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import { createLogger } from '../../common/logger.js';
|
|
8
|
+
import { getConfig } from '../../common/config.js';
|
|
9
|
+
import { createIntentService } from '../../intent/index.js';
|
|
10
|
+
import { createEscalationService } from '../../intent/escalation.js';
|
|
11
|
+
import { ForbiddenError } from '../../common/errors.js';
|
|
12
|
+
import { requireTenantMembership } from '../../common/tenant-verification.js';
|
|
13
|
+
import { verifyGroupMembership, isAssignedApprover, assignApprover, removeApprover, listApprovers, } from '../../common/group-membership.js';
|
|
14
|
+
import { withRateLimit } from '../rate-limit.js';
|
|
15
|
+
import { recordAuditEvent } from '../middleware/audit.js';
|
|
16
|
+
import { getOperationTracker } from '../../common/operation-tracker.js';
|
|
17
|
+
import { createEndpointRateLimit } from '../middleware/rate-limits.js';
|
|
18
|
+
const escalationLogger = createLogger({ component: 'api-v1-escalations' });
|
|
19
|
+
// Rate limit configurations for escalation endpoints
|
|
20
|
+
const escalationRateLimits = {
|
|
21
|
+
acknowledge: createEndpointRateLimit({ max: 60, windowSeconds: 60 }),
|
|
22
|
+
approve: createEndpointRateLimit({ max: 30, windowSeconds: 60 }),
|
|
23
|
+
reject: createEndpointRateLimit({ max: 30, windowSeconds: 60 }),
|
|
24
|
+
assign: createEndpointRateLimit({ max: 30, windowSeconds: 60 }),
|
|
25
|
+
removeAssign: createEndpointRateLimit({ max: 20, windowSeconds: 3600 }),
|
|
26
|
+
bulkApprove: createEndpointRateLimit({ max: 5, windowSeconds: 60 }),
|
|
27
|
+
bulkReject: createEndpointRateLimit({ max: 5, windowSeconds: 60 }),
|
|
28
|
+
};
|
|
29
|
+
const intentService = createIntentService();
|
|
30
|
+
const escalationService = createEscalationService();
|
|
31
|
+
const config = getConfig();
|
|
32
|
+
// =============================================================================
|
|
33
|
+
// ZOD SCHEMAS
|
|
34
|
+
// =============================================================================
|
|
35
|
+
const escalationIdParamsSchema = z.object({
|
|
36
|
+
id: z.string().uuid(),
|
|
37
|
+
});
|
|
38
|
+
const intentIdParamsSchema = z.object({
|
|
39
|
+
id: z.string().uuid(),
|
|
40
|
+
});
|
|
41
|
+
const escalationResolveBodySchema = z.object({
|
|
42
|
+
notes: z.string().max(1000).optional(),
|
|
43
|
+
});
|
|
44
|
+
const assignApproverBodySchema = z.object({
|
|
45
|
+
userId: z.string().min(1).max(255),
|
|
46
|
+
});
|
|
47
|
+
/** Valid escalation statuses for filtering */
|
|
48
|
+
const escalationStatusSchema = z.enum(['pending', 'acknowledged', 'approved', 'rejected', 'timeout', 'cancelled']);
|
|
49
|
+
/** Query schema for listing escalations with cursor-based pagination */
|
|
50
|
+
const listEscalationsQuerySchema = z.object({
|
|
51
|
+
status: escalationStatusSchema.optional(),
|
|
52
|
+
escalatedTo: z.string().min(1).max(255).optional(),
|
|
53
|
+
slaBreached: z.coerce.boolean().optional(),
|
|
54
|
+
cursor: z.string().uuid().optional(),
|
|
55
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
56
|
+
});
|
|
57
|
+
/** Schema for bulk operations request body */
|
|
58
|
+
const bulkEscalationIdsSchema = z.object({
|
|
59
|
+
ids: z.array(z.string().uuid()).min(1).max(100),
|
|
60
|
+
notes: z.string().max(1000).optional(),
|
|
61
|
+
});
|
|
62
|
+
/** Schema for filter-based bulk operations */
|
|
63
|
+
const bulkEscalationFilterSchema = z.object({
|
|
64
|
+
filter: z.object({
|
|
65
|
+
status: z.enum(['pending', 'acknowledged']).optional(),
|
|
66
|
+
escalatedTo: z.string().min(1).max(255).optional(),
|
|
67
|
+
olderThanMinutes: z.number().int().min(1).optional(),
|
|
68
|
+
olderThanHours: z.number().int().min(1).optional(),
|
|
69
|
+
slaBreached: z.boolean().optional(),
|
|
70
|
+
maxCount: z.number().int().min(1).max(1000).optional().default(100),
|
|
71
|
+
}),
|
|
72
|
+
notes: z.string().max(1000).optional(),
|
|
73
|
+
});
|
|
74
|
+
/** Schema for SLA metrics query */
|
|
75
|
+
const slaMetricsQuerySchema = z.object({
|
|
76
|
+
startDate: z.string().datetime().optional(),
|
|
77
|
+
endDate: z.string().datetime().optional(),
|
|
78
|
+
});
|
|
79
|
+
async function getTenantId(request) {
|
|
80
|
+
const payload = await request.jwtVerify();
|
|
81
|
+
if (!payload.tenantId) {
|
|
82
|
+
throw new ForbiddenError('Tenant context missing from token');
|
|
83
|
+
}
|
|
84
|
+
if (!payload.sub) {
|
|
85
|
+
throw new ForbiddenError('User identifier missing from token');
|
|
86
|
+
}
|
|
87
|
+
await requireTenantMembership(payload.sub, payload.tenantId);
|
|
88
|
+
return payload.tenantId;
|
|
89
|
+
}
|
|
90
|
+
async function canResolveEscalation(user, escalation, userTenantId) {
|
|
91
|
+
const userId = user.sub;
|
|
92
|
+
const escalationId = escalation.id;
|
|
93
|
+
if (userTenantId !== escalation.tenantId) {
|
|
94
|
+
escalationLogger.warn({ userId, escalationId, userTenantId, escalationTenantId: escalation.tenantId }, 'Authorization denied: tenant mismatch');
|
|
95
|
+
return { allowed: false, reason: 'Escalation belongs to different tenant' };
|
|
96
|
+
}
|
|
97
|
+
const roles = user.roles ?? [];
|
|
98
|
+
if (roles.includes('admin') || roles.includes('tenant:admin') || roles.includes('escalation:admin')) {
|
|
99
|
+
escalationLogger.info({ userId, escalationId, authMethod: 'admin_role' }, 'Authorization granted: admin role');
|
|
100
|
+
return { allowed: true, authMethod: 'admin_role' };
|
|
101
|
+
}
|
|
102
|
+
const escalatedTo = escalation.escalatedTo;
|
|
103
|
+
if (userId && escalatedTo === userId) {
|
|
104
|
+
escalationLogger.info({ userId, escalationId, authMethod: 'direct_assignment' }, 'Authorization granted: direct user assignment');
|
|
105
|
+
return { allowed: true, authMethod: 'direct_assignment' };
|
|
106
|
+
}
|
|
107
|
+
if (userId) {
|
|
108
|
+
try {
|
|
109
|
+
const approverResult = await isAssignedApprover(escalationId, userId, userTenantId);
|
|
110
|
+
if (approverResult.isApprover) {
|
|
111
|
+
escalationLogger.info({ userId, escalationId, authMethod: 'explicit_approver', assignedAt: approverResult.assignedAt }, 'Authorization granted: explicitly assigned approver');
|
|
112
|
+
return { allowed: true, authMethod: 'explicit_approver' };
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
escalationLogger.error({ error, userId, escalationId }, 'Error checking explicit approver assignment');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (userId) {
|
|
120
|
+
try {
|
|
121
|
+
const groupResult = await verifyGroupMembership(userId, escalatedTo, userTenantId);
|
|
122
|
+
if (groupResult.isMember) {
|
|
123
|
+
escalationLogger.info({ userId, escalationId, groupName: escalatedTo, authMethod: 'verified_group_membership', source: groupResult.source }, 'Authorization granted: verified group membership');
|
|
124
|
+
return { allowed: true, authMethod: 'verified_group_membership' };
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
escalationLogger.error({ error, userId, escalationId, groupName: escalatedTo }, 'Error verifying group membership');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
escalationLogger.warn({ userId, escalationId, escalatedTo }, 'Authorization denied: no valid authorization method found');
|
|
132
|
+
return {
|
|
133
|
+
allowed: false,
|
|
134
|
+
reason: `User not authorized to resolve escalation (escalatedTo: ${escalatedTo}). Authorization requires: admin role, explicit approver assignment, or verified group membership.`,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
// =============================================================================
|
|
138
|
+
// HELPER FUNCTIONS
|
|
139
|
+
// =============================================================================
|
|
140
|
+
/**
|
|
141
|
+
* Check if user has admin role
|
|
142
|
+
*/
|
|
143
|
+
function isAdmin(user) {
|
|
144
|
+
const roles = user.roles ?? [];
|
|
145
|
+
return roles.includes('admin') || roles.includes('tenant:admin') || roles.includes('escalation:admin');
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Register v1 escalation routes
|
|
149
|
+
*/
|
|
150
|
+
export async function registerEscalationRoutesV1(fastify) {
|
|
151
|
+
// =============================================================================
|
|
152
|
+
// LIST ESCALATIONS - Cursor-based pagination with filters
|
|
153
|
+
// =============================================================================
|
|
154
|
+
fastify.get('/escalations', async (request, reply) => {
|
|
155
|
+
const tenantId = await getTenantId(request);
|
|
156
|
+
const query = listEscalationsQuerySchema.parse(request.query ?? {});
|
|
157
|
+
const { status, escalatedTo, slaBreached, cursor, limit } = query;
|
|
158
|
+
// Build filter options for the escalation service
|
|
159
|
+
const filterOptions = {
|
|
160
|
+
tenantId,
|
|
161
|
+
limit: limit + 1, // Fetch one extra to determine hasMore
|
|
162
|
+
};
|
|
163
|
+
if (status) {
|
|
164
|
+
filterOptions.status = status;
|
|
165
|
+
}
|
|
166
|
+
if (escalatedTo) {
|
|
167
|
+
filterOptions.escalatedTo = escalatedTo;
|
|
168
|
+
}
|
|
169
|
+
if (cursor) {
|
|
170
|
+
filterOptions.cursor = cursor;
|
|
171
|
+
}
|
|
172
|
+
if (slaBreached !== undefined) {
|
|
173
|
+
filterOptions.includeSlaBreached = slaBreached;
|
|
174
|
+
}
|
|
175
|
+
const escalationsList = await escalationService.list(filterOptions);
|
|
176
|
+
// Determine if there are more results
|
|
177
|
+
const hasMore = escalationsList.length > limit;
|
|
178
|
+
const items = hasMore ? escalationsList.slice(0, limit) : escalationsList;
|
|
179
|
+
// Get next cursor from last item
|
|
180
|
+
const nextCursor = hasMore && items.length > 0 ? items[items.length - 1].id : null;
|
|
181
|
+
// Get total count for the filtered query
|
|
182
|
+
const slaStats = await escalationService.getSlaStats(tenantId);
|
|
183
|
+
const total = slaStats.total;
|
|
184
|
+
const response = {
|
|
185
|
+
data: items,
|
|
186
|
+
pagination: {
|
|
187
|
+
cursor: nextCursor,
|
|
188
|
+
hasMore,
|
|
189
|
+
total,
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
return reply.send(response);
|
|
193
|
+
});
|
|
194
|
+
// Get escalation by ID
|
|
195
|
+
fastify.get('/escalations/:id', async (request, reply) => {
|
|
196
|
+
const tenantId = await getTenantId(request);
|
|
197
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
198
|
+
const escalation = await escalationService.get(params.id, tenantId);
|
|
199
|
+
if (!escalation) {
|
|
200
|
+
return reply.status(404).send({
|
|
201
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
return reply.send(escalation);
|
|
205
|
+
});
|
|
206
|
+
// Get escalation for intent
|
|
207
|
+
fastify.get('/intents/:id/escalation', async (request, reply) => {
|
|
208
|
+
const tenantId = await getTenantId(request);
|
|
209
|
+
const params = intentIdParamsSchema.parse(request.params ?? {});
|
|
210
|
+
const intent = await intentService.get(params.id, tenantId);
|
|
211
|
+
if (!intent) {
|
|
212
|
+
return reply.status(404).send({
|
|
213
|
+
error: { code: 'INTENT_NOT_FOUND', message: 'Intent not found' },
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
const escalation = await escalationService.getByIntentId(params.id, tenantId);
|
|
217
|
+
if (!escalation) {
|
|
218
|
+
return reply.status(404).send({
|
|
219
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'No escalation for this intent' },
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return reply.send(escalation);
|
|
223
|
+
});
|
|
224
|
+
// Acknowledge escalation
|
|
225
|
+
fastify.post('/escalations/:id/acknowledge', {
|
|
226
|
+
preHandler: escalationRateLimits.acknowledge,
|
|
227
|
+
}, async (request, reply) => {
|
|
228
|
+
const tenantId = await getTenantId(request);
|
|
229
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
230
|
+
const user = request.user;
|
|
231
|
+
const escalation = await escalationService.acknowledge(params.id, tenantId, user.sub ?? 'unknown');
|
|
232
|
+
if (!escalation) {
|
|
233
|
+
return reply.status(404).send({
|
|
234
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
return reply.send(escalation);
|
|
238
|
+
});
|
|
239
|
+
// Approve escalation
|
|
240
|
+
fastify.post('/escalations/:id/approve', {
|
|
241
|
+
preHandler: escalationRateLimits.approve,
|
|
242
|
+
}, async (request, reply) => {
|
|
243
|
+
const tenantId = await getTenantId(request);
|
|
244
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
245
|
+
const body = escalationResolveBodySchema.parse(request.body ?? {});
|
|
246
|
+
const user = request.user;
|
|
247
|
+
const escalationToCheck = await escalationService.get(params.id);
|
|
248
|
+
if (!escalationToCheck) {
|
|
249
|
+
return reply.status(404).send({
|
|
250
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
const authResult = await canResolveEscalation(user, escalationToCheck, tenantId);
|
|
254
|
+
if (!authResult.allowed) {
|
|
255
|
+
escalationLogger.warn({ escalationId: params.id, userId: user.sub, reason: authResult.reason }, 'Unauthorized escalation approval attempt');
|
|
256
|
+
return reply.status(403).send({
|
|
257
|
+
error: {
|
|
258
|
+
code: 'FORBIDDEN',
|
|
259
|
+
message: authResult.reason ?? 'Not authorized to approve this escalation',
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
const resolveOptions = body.notes
|
|
264
|
+
? { resolvedBy: user.sub ?? 'unknown', notes: body.notes }
|
|
265
|
+
: { resolvedBy: user.sub ?? 'unknown' };
|
|
266
|
+
const escalation = await escalationService.approve(params.id, tenantId, resolveOptions);
|
|
267
|
+
if (!escalation) {
|
|
268
|
+
return reply.status(404).send({
|
|
269
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
if (escalation.status === 'approved') {
|
|
273
|
+
await intentService.updateStatus(escalation.intentId, escalation.tenantId, 'approved', 'escalated');
|
|
274
|
+
}
|
|
275
|
+
// Record audit event for escalation approval
|
|
276
|
+
await recordAuditEvent(request, {
|
|
277
|
+
eventType: 'escalation.approved',
|
|
278
|
+
resourceType: 'escalation',
|
|
279
|
+
resourceId: escalation.id,
|
|
280
|
+
beforeState: escalationToCheck,
|
|
281
|
+
afterState: escalation,
|
|
282
|
+
metadata: {
|
|
283
|
+
intentId: escalation.intentId,
|
|
284
|
+
escalatedTo: escalation.escalatedTo,
|
|
285
|
+
authMethod: authResult.authMethod,
|
|
286
|
+
notes: body.notes,
|
|
287
|
+
},
|
|
288
|
+
});
|
|
289
|
+
return reply.send(escalation);
|
|
290
|
+
});
|
|
291
|
+
// Reject escalation
|
|
292
|
+
fastify.post('/escalations/:id/reject', {
|
|
293
|
+
preHandler: escalationRateLimits.reject,
|
|
294
|
+
}, async (request, reply) => {
|
|
295
|
+
const tenantId = await getTenantId(request);
|
|
296
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
297
|
+
const body = escalationResolveBodySchema.parse(request.body ?? {});
|
|
298
|
+
const user = request.user;
|
|
299
|
+
const escalationToCheck = await escalationService.get(params.id);
|
|
300
|
+
if (!escalationToCheck) {
|
|
301
|
+
return reply.status(404).send({
|
|
302
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
const authResult = await canResolveEscalation(user, escalationToCheck, tenantId);
|
|
306
|
+
if (!authResult.allowed) {
|
|
307
|
+
escalationLogger.warn({ escalationId: params.id, userId: user.sub, reason: authResult.reason }, 'Unauthorized escalation rejection attempt');
|
|
308
|
+
return reply.status(403).send({
|
|
309
|
+
error: {
|
|
310
|
+
code: 'FORBIDDEN',
|
|
311
|
+
message: authResult.reason ?? 'Not authorized to reject this escalation',
|
|
312
|
+
},
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
const rejectOptions = body.notes
|
|
316
|
+
? { resolvedBy: user.sub ?? 'unknown', notes: body.notes }
|
|
317
|
+
: { resolvedBy: user.sub ?? 'unknown' };
|
|
318
|
+
const escalation = await escalationService.reject(params.id, tenantId, rejectOptions);
|
|
319
|
+
if (!escalation) {
|
|
320
|
+
return reply.status(404).send({
|
|
321
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
if (escalation.status === 'rejected') {
|
|
325
|
+
await intentService.updateStatus(escalation.intentId, escalation.tenantId, 'denied', 'escalated');
|
|
326
|
+
}
|
|
327
|
+
// Record audit event for escalation rejection
|
|
328
|
+
await recordAuditEvent(request, {
|
|
329
|
+
eventType: 'escalation.rejected',
|
|
330
|
+
resourceType: 'escalation',
|
|
331
|
+
resourceId: escalation.id,
|
|
332
|
+
beforeState: escalationToCheck,
|
|
333
|
+
afterState: escalation,
|
|
334
|
+
metadata: {
|
|
335
|
+
intentId: escalation.intentId,
|
|
336
|
+
escalatedTo: escalation.escalatedTo,
|
|
337
|
+
authMethod: authResult.authMethod,
|
|
338
|
+
notes: body.notes,
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
return reply.send(escalation);
|
|
342
|
+
});
|
|
343
|
+
// Assign approver
|
|
344
|
+
fastify.post('/escalations/:id/assign', {
|
|
345
|
+
preHandler: escalationRateLimits.assign,
|
|
346
|
+
}, async (request, reply) => {
|
|
347
|
+
const tenantId = await getTenantId(request);
|
|
348
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
349
|
+
const body = assignApproverBodySchema.parse(request.body ?? {});
|
|
350
|
+
const user = request.user;
|
|
351
|
+
const roles = user.roles ?? [];
|
|
352
|
+
const isAdmin = roles.includes('admin') || roles.includes('tenant:admin') || roles.includes('escalation:admin');
|
|
353
|
+
if (!isAdmin) {
|
|
354
|
+
return reply.status(403).send({
|
|
355
|
+
error: {
|
|
356
|
+
code: 'FORBIDDEN',
|
|
357
|
+
message: 'Only administrators can assign approvers to escalations',
|
|
358
|
+
},
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
const escalation = await escalationService.get(params.id, tenantId);
|
|
362
|
+
if (!escalation) {
|
|
363
|
+
return reply.status(404).send({
|
|
364
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
if (!['pending', 'acknowledged'].includes(escalation.status)) {
|
|
368
|
+
return reply.status(400).send({
|
|
369
|
+
error: {
|
|
370
|
+
code: 'INVALID_STATE',
|
|
371
|
+
message: `Cannot assign approvers to escalation in ${escalation.status} status`,
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
try {
|
|
376
|
+
const assignment = await assignApprover({
|
|
377
|
+
escalationId: params.id,
|
|
378
|
+
userId: body.userId,
|
|
379
|
+
tenantId,
|
|
380
|
+
assignedBy: user.sub ?? 'unknown',
|
|
381
|
+
});
|
|
382
|
+
// Record audit event for approver assignment
|
|
383
|
+
await recordAuditEvent(request, {
|
|
384
|
+
eventType: 'escalation.assigned',
|
|
385
|
+
resourceType: 'escalation',
|
|
386
|
+
resourceId: params.id,
|
|
387
|
+
afterState: {
|
|
388
|
+
assignmentId: assignment.id,
|
|
389
|
+
escalationId: params.id,
|
|
390
|
+
userId: body.userId,
|
|
391
|
+
assignedAt: assignment.assignedAt,
|
|
392
|
+
},
|
|
393
|
+
metadata: {
|
|
394
|
+
intentId: escalation.intentId,
|
|
395
|
+
assignedUserId: body.userId,
|
|
396
|
+
},
|
|
397
|
+
});
|
|
398
|
+
escalationLogger.info({ escalationId: params.id, assignedUserId: body.userId, assignedBy: user.sub }, 'Approver assigned to escalation');
|
|
399
|
+
return reply.status(201).send({
|
|
400
|
+
id: assignment.id,
|
|
401
|
+
escalationId: params.id,
|
|
402
|
+
userId: body.userId,
|
|
403
|
+
assignedAt: assignment.assignedAt,
|
|
404
|
+
assignedBy: user.sub,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
catch (error) {
|
|
408
|
+
escalationLogger.error({ error, escalationId: params.id, userId: body.userId }, 'Failed to assign approver');
|
|
409
|
+
throw error;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
// Remove approver
|
|
413
|
+
fastify.delete('/escalations/:id/assign/:userId', {
|
|
414
|
+
preHandler: escalationRateLimits.removeAssign,
|
|
415
|
+
}, async (request, reply) => {
|
|
416
|
+
const tenantId = await getTenantId(request);
|
|
417
|
+
const params = z.object({
|
|
418
|
+
id: z.string().uuid(),
|
|
419
|
+
userId: z.string().min(1),
|
|
420
|
+
}).parse(request.params ?? {});
|
|
421
|
+
const user = request.user;
|
|
422
|
+
const roles = user.roles ?? [];
|
|
423
|
+
const isAdmin = roles.includes('admin') || roles.includes('tenant:admin') || roles.includes('escalation:admin');
|
|
424
|
+
if (!isAdmin) {
|
|
425
|
+
return reply.status(403).send({
|
|
426
|
+
error: {
|
|
427
|
+
code: 'FORBIDDEN',
|
|
428
|
+
message: 'Only administrators can remove approvers from escalations',
|
|
429
|
+
},
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
const escalation = await escalationService.get(params.id, tenantId);
|
|
433
|
+
if (!escalation) {
|
|
434
|
+
return reply.status(404).send({
|
|
435
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
const removed = await removeApprover(params.id, params.userId, tenantId);
|
|
439
|
+
if (!removed) {
|
|
440
|
+
return reply.status(404).send({
|
|
441
|
+
error: { code: 'APPROVER_NOT_FOUND', message: 'Approver assignment not found' },
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
escalationLogger.info({ escalationId: params.id, removedUserId: params.userId, removedBy: user.sub }, 'Approver removed from escalation');
|
|
445
|
+
return reply.status(204).send();
|
|
446
|
+
});
|
|
447
|
+
// List approvers
|
|
448
|
+
fastify.get('/escalations/:id/approvers', async (request, reply) => {
|
|
449
|
+
const tenantId = await getTenantId(request);
|
|
450
|
+
const params = escalationIdParamsSchema.parse(request.params ?? {});
|
|
451
|
+
const escalation = await escalationService.get(params.id, tenantId);
|
|
452
|
+
if (!escalation) {
|
|
453
|
+
return reply.status(404).send({
|
|
454
|
+
error: { code: 'ESCALATION_NOT_FOUND', message: 'Escalation not found' },
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
const approvers = await listApprovers(params.id, tenantId);
|
|
458
|
+
return reply.send({
|
|
459
|
+
data: approvers,
|
|
460
|
+
escalationId: params.id,
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
// =============================================================================
|
|
464
|
+
// BULK OPERATIONS - Admin only, rate limited
|
|
465
|
+
// =============================================================================
|
|
466
|
+
/**
|
|
467
|
+
* Bulk approve multiple escalations
|
|
468
|
+
* Requires admin role
|
|
469
|
+
*/
|
|
470
|
+
fastify.post('/escalations/bulk/approve', {
|
|
471
|
+
preHandler: [escalationRateLimits.bulkApprove, withRateLimit({ requestsPerMinute: 10, burstLimit: 5 })],
|
|
472
|
+
config: {
|
|
473
|
+
rateLimit: {
|
|
474
|
+
max: config.api.bulkRateLimit ?? 10,
|
|
475
|
+
timeWindow: '1 minute',
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
}, async (request, reply) => {
|
|
479
|
+
const tenantId = await getTenantId(request);
|
|
480
|
+
const user = request.user;
|
|
481
|
+
// Require admin role for bulk operations
|
|
482
|
+
if (!isAdmin(user)) {
|
|
483
|
+
escalationLogger.warn({ userId: user.sub, tenantId }, 'Unauthorized bulk approve attempt - admin role required');
|
|
484
|
+
return reply.status(403).send({
|
|
485
|
+
error: {
|
|
486
|
+
code: 'FORBIDDEN',
|
|
487
|
+
message: 'Bulk operations require administrator role',
|
|
488
|
+
},
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
const body = bulkEscalationIdsSchema.parse(request.body ?? {});
|
|
492
|
+
const { ids, notes } = body;
|
|
493
|
+
escalationLogger.info({ userId: user.sub, tenantId, escalationCount: ids.length }, 'Processing bulk approve request');
|
|
494
|
+
const results = [];
|
|
495
|
+
for (const escalationId of ids) {
|
|
496
|
+
try {
|
|
497
|
+
const escalation = await escalationService.get(escalationId, tenantId);
|
|
498
|
+
if (!escalation) {
|
|
499
|
+
results.push({ id: escalationId, success: false, error: 'Escalation not found' });
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
if (!['pending', 'acknowledged'].includes(escalation.status)) {
|
|
503
|
+
results.push({
|
|
504
|
+
id: escalationId,
|
|
505
|
+
success: false,
|
|
506
|
+
error: `Cannot approve escalation in ${escalation.status} status`,
|
|
507
|
+
});
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
const resolveOptions = notes
|
|
511
|
+
? { resolvedBy: user.sub ?? 'unknown', notes }
|
|
512
|
+
: { resolvedBy: user.sub ?? 'unknown' };
|
|
513
|
+
const approved = await escalationService.approve(escalationId, tenantId, resolveOptions);
|
|
514
|
+
if (approved && approved.status === 'approved') {
|
|
515
|
+
await intentService.updateStatus(approved.intentId, approved.tenantId, 'approved', 'escalated');
|
|
516
|
+
results.push({ id: escalationId, success: true });
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
results.push({ id: escalationId, success: false, error: 'Failed to approve escalation' });
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
catch (error) {
|
|
523
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
524
|
+
escalationLogger.error({ error, escalationId, userId: user.sub }, 'Error during bulk approve');
|
|
525
|
+
results.push({ id: escalationId, success: false, error: errorMessage });
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const succeeded = results.filter((r) => r.success).length;
|
|
529
|
+
const failed = results.filter((r) => !r.success).length;
|
|
530
|
+
escalationLogger.info({ userId: user.sub, tenantId, succeeded, failed, total: ids.length }, 'Bulk approve completed');
|
|
531
|
+
// Return 207 Multi-Status if partial success
|
|
532
|
+
const status = failed === 0 ? 200 : succeeded === 0 ? 400 : 207;
|
|
533
|
+
return reply.status(status).send({
|
|
534
|
+
results,
|
|
535
|
+
summary: {
|
|
536
|
+
total: ids.length,
|
|
537
|
+
succeeded,
|
|
538
|
+
failed,
|
|
539
|
+
},
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
/**
|
|
543
|
+
* Bulk reject multiple escalations
|
|
544
|
+
* Requires admin role
|
|
545
|
+
*/
|
|
546
|
+
fastify.post('/escalations/bulk/reject', {
|
|
547
|
+
preHandler: [escalationRateLimits.bulkReject, withRateLimit({ requestsPerMinute: 10, burstLimit: 5 })],
|
|
548
|
+
config: {
|
|
549
|
+
rateLimit: {
|
|
550
|
+
max: config.api.bulkRateLimit ?? 10,
|
|
551
|
+
timeWindow: '1 minute',
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
}, async (request, reply) => {
|
|
555
|
+
const tenantId = await getTenantId(request);
|
|
556
|
+
const user = request.user;
|
|
557
|
+
// Require admin role for bulk operations
|
|
558
|
+
if (!isAdmin(user)) {
|
|
559
|
+
escalationLogger.warn({ userId: user.sub, tenantId }, 'Unauthorized bulk reject attempt - admin role required');
|
|
560
|
+
return reply.status(403).send({
|
|
561
|
+
error: {
|
|
562
|
+
code: 'FORBIDDEN',
|
|
563
|
+
message: 'Bulk operations require administrator role',
|
|
564
|
+
},
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
const body = bulkEscalationIdsSchema.parse(request.body ?? {});
|
|
568
|
+
const { ids, notes } = body;
|
|
569
|
+
escalationLogger.info({ userId: user.sub, tenantId, escalationCount: ids.length }, 'Processing bulk reject request');
|
|
570
|
+
const results = [];
|
|
571
|
+
for (const escalationId of ids) {
|
|
572
|
+
try {
|
|
573
|
+
const escalation = await escalationService.get(escalationId, tenantId);
|
|
574
|
+
if (!escalation) {
|
|
575
|
+
results.push({ id: escalationId, success: false, error: 'Escalation not found' });
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
if (!['pending', 'acknowledged'].includes(escalation.status)) {
|
|
579
|
+
results.push({
|
|
580
|
+
id: escalationId,
|
|
581
|
+
success: false,
|
|
582
|
+
error: `Cannot reject escalation in ${escalation.status} status`,
|
|
583
|
+
});
|
|
584
|
+
continue;
|
|
585
|
+
}
|
|
586
|
+
const rejectOptions = notes
|
|
587
|
+
? { resolvedBy: user.sub ?? 'unknown', notes }
|
|
588
|
+
: { resolvedBy: user.sub ?? 'unknown' };
|
|
589
|
+
const rejected = await escalationService.reject(escalationId, tenantId, rejectOptions);
|
|
590
|
+
if (rejected && rejected.status === 'rejected') {
|
|
591
|
+
await intentService.updateStatus(rejected.intentId, rejected.tenantId, 'denied', 'escalated');
|
|
592
|
+
results.push({ id: escalationId, success: true });
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
results.push({ id: escalationId, success: false, error: 'Failed to reject escalation' });
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
catch (error) {
|
|
599
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
600
|
+
escalationLogger.error({ error, escalationId, userId: user.sub }, 'Error during bulk reject');
|
|
601
|
+
results.push({ id: escalationId, success: false, error: errorMessage });
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
const succeeded = results.filter((r) => r.success).length;
|
|
605
|
+
const failed = results.filter((r) => !r.success).length;
|
|
606
|
+
escalationLogger.info({ userId: user.sub, tenantId, succeeded, failed, total: ids.length }, 'Bulk reject completed');
|
|
607
|
+
// Return 207 Multi-Status if partial success
|
|
608
|
+
const status = failed === 0 ? 200 : succeeded === 0 ? 400 : 207;
|
|
609
|
+
return reply.status(status).send({
|
|
610
|
+
results,
|
|
611
|
+
summary: {
|
|
612
|
+
total: ids.length,
|
|
613
|
+
succeeded,
|
|
614
|
+
failed,
|
|
615
|
+
},
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
// =============================================================================
|
|
619
|
+
// FILTER-BASED BULK OPERATIONS WITH ASYNC TRACKING
|
|
620
|
+
// =============================================================================
|
|
621
|
+
const operationTracker = getOperationTracker();
|
|
622
|
+
/**
|
|
623
|
+
* Bulk approve escalations by filter
|
|
624
|
+
* POST /escalations/bulk-approve
|
|
625
|
+
*
|
|
626
|
+
* Supports filter-based selection (e.g., approve all pending older than X minutes)
|
|
627
|
+
* Returns 202 Accepted with operation ID for tracking progress.
|
|
628
|
+
*/
|
|
629
|
+
fastify.post('/escalations/bulk-approve', {
|
|
630
|
+
config: {
|
|
631
|
+
rateLimit: {
|
|
632
|
+
max: config.api.bulkRateLimit ?? 10,
|
|
633
|
+
timeWindow: '1 minute',
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
preHandler: [withRateLimit({ requestsPerMinute: 10, burstLimit: 5 })],
|
|
637
|
+
}, async (request, reply) => {
|
|
638
|
+
const tenantId = await getTenantId(request);
|
|
639
|
+
const user = request.user;
|
|
640
|
+
if (!isAdmin(user)) {
|
|
641
|
+
return reply.status(403).send({
|
|
642
|
+
error: { code: 'FORBIDDEN', message: 'Bulk operations require administrator role' },
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
const body = bulkEscalationFilterSchema.parse(request.body ?? {});
|
|
646
|
+
const { filter, notes } = body;
|
|
647
|
+
const listFilter = {
|
|
648
|
+
tenantId,
|
|
649
|
+
status: filter.status ?? 'pending',
|
|
650
|
+
limit: filter.maxCount ?? 100,
|
|
651
|
+
};
|
|
652
|
+
if (filter.escalatedTo)
|
|
653
|
+
listFilter.escalatedTo = filter.escalatedTo;
|
|
654
|
+
if (filter.slaBreached !== undefined)
|
|
655
|
+
listFilter.includeSlaBreached = filter.slaBreached;
|
|
656
|
+
let escalationsToProcess = await escalationService.list(listFilter);
|
|
657
|
+
if (filter.olderThanMinutes || filter.olderThanHours) {
|
|
658
|
+
const cutoffMs = (filter.olderThanHours ?? 0) * 3600000 + (filter.olderThanMinutes ?? 0) * 60000;
|
|
659
|
+
const cutoffTime = Date.now() - cutoffMs;
|
|
660
|
+
escalationsToProcess = escalationsToProcess.filter((e) => new Date(e.createdAt).getTime() < cutoffTime);
|
|
661
|
+
}
|
|
662
|
+
if (escalationsToProcess.length === 0) {
|
|
663
|
+
return reply.status(200).send({ message: 'No escalations match the specified filter', filter, matched: 0 });
|
|
664
|
+
}
|
|
665
|
+
const operationId = await operationTracker.createOperation({
|
|
666
|
+
type: 'bulk_approve',
|
|
667
|
+
tenantId,
|
|
668
|
+
createdBy: user.sub,
|
|
669
|
+
totalItems: escalationsToProcess.length,
|
|
670
|
+
metadata: { filter, escalationCount: escalationsToProcess.length, initiatedBy: user.sub },
|
|
671
|
+
});
|
|
672
|
+
const escalationIds = escalationsToProcess.map((e) => e.id);
|
|
673
|
+
setImmediate(async () => {
|
|
674
|
+
const results = [];
|
|
675
|
+
try {
|
|
676
|
+
for (let i = 0; i < escalationIds.length; i++) {
|
|
677
|
+
const escalationId = escalationIds[i];
|
|
678
|
+
try {
|
|
679
|
+
const resolveOptions = notes ? { resolvedBy: user.sub ?? 'unknown', notes } : { resolvedBy: user.sub ?? 'unknown' };
|
|
680
|
+
const approved = await escalationService.approve(escalationId, tenantId, resolveOptions);
|
|
681
|
+
if (approved?.status === 'approved') {
|
|
682
|
+
await intentService.updateStatus(approved.intentId, approved.tenantId, 'approved', 'escalated');
|
|
683
|
+
results.push({ id: escalationId, success: true });
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
results.push({ id: escalationId, success: false, error: 'Failed to approve' });
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
catch (error) {
|
|
690
|
+
results.push({ id: escalationId, success: false, error: error instanceof Error ? error.message : 'Unknown error' });
|
|
691
|
+
}
|
|
692
|
+
await operationTracker.updateProgress(operationId, i + 1, escalationIds.length);
|
|
693
|
+
}
|
|
694
|
+
const succeeded = results.filter((r) => r.success).length;
|
|
695
|
+
await operationTracker.completeOperation(operationId, { results, summary: { total: escalationIds.length, succeeded, failed: results.length - succeeded } });
|
|
696
|
+
}
|
|
697
|
+
catch (error) {
|
|
698
|
+
await operationTracker.failOperation(operationId, error instanceof Error ? error.message : 'Unknown error');
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
const protocol = request.headers['x-forwarded-proto'] ?? 'http';
|
|
702
|
+
const host = request.headers['x-forwarded-host'] ?? request.headers.host ?? 'localhost';
|
|
703
|
+
const baseUrl = `${protocol}://${host}`;
|
|
704
|
+
return reply.status(202).send({
|
|
705
|
+
operationId,
|
|
706
|
+
status: 'pending',
|
|
707
|
+
message: 'Bulk approve operation started. Use the operationId to track progress.',
|
|
708
|
+
matched: escalationsToProcess.length,
|
|
709
|
+
filter,
|
|
710
|
+
statusUrl: `${baseUrl}/api/v1/operations/${operationId}`,
|
|
711
|
+
});
|
|
712
|
+
});
|
|
713
|
+
/**
|
|
714
|
+
* Bulk reject escalations by filter
|
|
715
|
+
* POST /escalations/bulk-reject
|
|
716
|
+
*/
|
|
717
|
+
fastify.post('/escalations/bulk-reject', {
|
|
718
|
+
config: {
|
|
719
|
+
rateLimit: {
|
|
720
|
+
max: config.api.bulkRateLimit ?? 10,
|
|
721
|
+
timeWindow: '1 minute',
|
|
722
|
+
},
|
|
723
|
+
},
|
|
724
|
+
preHandler: [withRateLimit({ requestsPerMinute: 10, burstLimit: 5 })],
|
|
725
|
+
}, async (request, reply) => {
|
|
726
|
+
const tenantId = await getTenantId(request);
|
|
727
|
+
const user = request.user;
|
|
728
|
+
if (!isAdmin(user)) {
|
|
729
|
+
return reply.status(403).send({
|
|
730
|
+
error: { code: 'FORBIDDEN', message: 'Bulk operations require administrator role' },
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
const body = bulkEscalationFilterSchema.parse(request.body ?? {});
|
|
734
|
+
const { filter, notes } = body;
|
|
735
|
+
const listFilter = {
|
|
736
|
+
tenantId,
|
|
737
|
+
status: filter.status ?? 'pending',
|
|
738
|
+
limit: filter.maxCount ?? 100,
|
|
739
|
+
};
|
|
740
|
+
if (filter.escalatedTo)
|
|
741
|
+
listFilter.escalatedTo = filter.escalatedTo;
|
|
742
|
+
if (filter.slaBreached !== undefined)
|
|
743
|
+
listFilter.includeSlaBreached = filter.slaBreached;
|
|
744
|
+
let escalationsToProcess = await escalationService.list(listFilter);
|
|
745
|
+
if (filter.olderThanMinutes || filter.olderThanHours) {
|
|
746
|
+
const cutoffMs = (filter.olderThanHours ?? 0) * 3600000 + (filter.olderThanMinutes ?? 0) * 60000;
|
|
747
|
+
const cutoffTime = Date.now() - cutoffMs;
|
|
748
|
+
escalationsToProcess = escalationsToProcess.filter((e) => new Date(e.createdAt).getTime() < cutoffTime);
|
|
749
|
+
}
|
|
750
|
+
if (escalationsToProcess.length === 0) {
|
|
751
|
+
return reply.status(200).send({ message: 'No escalations match the specified filter', filter, matched: 0 });
|
|
752
|
+
}
|
|
753
|
+
const operationId = await operationTracker.createOperation({
|
|
754
|
+
type: 'bulk_reject',
|
|
755
|
+
tenantId,
|
|
756
|
+
createdBy: user.sub,
|
|
757
|
+
totalItems: escalationsToProcess.length,
|
|
758
|
+
metadata: { filter, escalationCount: escalationsToProcess.length, initiatedBy: user.sub },
|
|
759
|
+
});
|
|
760
|
+
const escalationIds = escalationsToProcess.map((e) => e.id);
|
|
761
|
+
setImmediate(async () => {
|
|
762
|
+
const results = [];
|
|
763
|
+
try {
|
|
764
|
+
for (let i = 0; i < escalationIds.length; i++) {
|
|
765
|
+
const escalationId = escalationIds[i];
|
|
766
|
+
try {
|
|
767
|
+
const resolveOptions = notes ? { resolvedBy: user.sub ?? 'unknown', notes } : { resolvedBy: user.sub ?? 'unknown' };
|
|
768
|
+
const rejected = await escalationService.reject(escalationId, tenantId, resolveOptions);
|
|
769
|
+
if (rejected?.status === 'rejected') {
|
|
770
|
+
await intentService.updateStatus(rejected.intentId, rejected.tenantId, 'denied', 'escalated');
|
|
771
|
+
results.push({ id: escalationId, success: true });
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
results.push({ id: escalationId, success: false, error: 'Failed to reject' });
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
catch (error) {
|
|
778
|
+
results.push({ id: escalationId, success: false, error: error instanceof Error ? error.message : 'Unknown error' });
|
|
779
|
+
}
|
|
780
|
+
await operationTracker.updateProgress(operationId, i + 1, escalationIds.length);
|
|
781
|
+
}
|
|
782
|
+
const succeeded = results.filter((r) => r.success).length;
|
|
783
|
+
await operationTracker.completeOperation(operationId, { results, summary: { total: escalationIds.length, succeeded, failed: results.length - succeeded } });
|
|
784
|
+
}
|
|
785
|
+
catch (error) {
|
|
786
|
+
await operationTracker.failOperation(operationId, error instanceof Error ? error.message : 'Unknown error');
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
const protocol = request.headers['x-forwarded-proto'] ?? 'http';
|
|
790
|
+
const host = request.headers['x-forwarded-host'] ?? request.headers.host ?? 'localhost';
|
|
791
|
+
const baseUrl = `${protocol}://${host}`;
|
|
792
|
+
return reply.status(202).send({
|
|
793
|
+
operationId,
|
|
794
|
+
status: 'pending',
|
|
795
|
+
message: 'Bulk reject operation started. Use the operationId to track progress.',
|
|
796
|
+
matched: escalationsToProcess.length,
|
|
797
|
+
filter,
|
|
798
|
+
statusUrl: `${baseUrl}/api/v1/operations/${operationId}`,
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
// =============================================================================
|
|
802
|
+
// SLA METRICS ENDPOINT
|
|
803
|
+
// =============================================================================
|
|
804
|
+
/**
|
|
805
|
+
* Get SLA metrics for escalations
|
|
806
|
+
* Includes: total count, breached count, average response time
|
|
807
|
+
* Supports filtering by time range
|
|
808
|
+
*/
|
|
809
|
+
fastify.get('/escalations/metrics/sla', async (request, reply) => {
|
|
810
|
+
const tenantId = await getTenantId(request);
|
|
811
|
+
const query = slaMetricsQuerySchema.parse(request.query ?? {});
|
|
812
|
+
// Calculate time range
|
|
813
|
+
let sinceDate;
|
|
814
|
+
if (query.startDate) {
|
|
815
|
+
sinceDate = new Date(query.startDate);
|
|
816
|
+
}
|
|
817
|
+
// Get SLA statistics from the escalation service
|
|
818
|
+
const stats = await escalationService.getSlaStats(tenantId, sinceDate);
|
|
819
|
+
// Format response
|
|
820
|
+
const response = {
|
|
821
|
+
metrics: {
|
|
822
|
+
total: stats.total,
|
|
823
|
+
breached: stats.breached,
|
|
824
|
+
breachRate: Math.round(stats.breachRate * 10000) / 100, // Convert to percentage with 2 decimal places
|
|
825
|
+
averageResponseTime: {
|
|
826
|
+
seconds: Math.round(stats.avgResolutionTime),
|
|
827
|
+
formatted: formatDuration(stats.avgResolutionTime),
|
|
828
|
+
},
|
|
829
|
+
},
|
|
830
|
+
timeRange: {
|
|
831
|
+
start: query.startDate ?? null,
|
|
832
|
+
end: query.endDate ?? new Date().toISOString(),
|
|
833
|
+
},
|
|
834
|
+
tenantId,
|
|
835
|
+
generatedAt: new Date().toISOString(),
|
|
836
|
+
};
|
|
837
|
+
return reply.send(response);
|
|
838
|
+
});
|
|
839
|
+
escalationLogger.debug('Escalation routes registered');
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Format duration in seconds to human-readable string
|
|
843
|
+
*/
|
|
844
|
+
function formatDuration(seconds) {
|
|
845
|
+
if (seconds < 60) {
|
|
846
|
+
return `${Math.round(seconds)}s`;
|
|
847
|
+
}
|
|
848
|
+
if (seconds < 3600) {
|
|
849
|
+
const minutes = Math.floor(seconds / 60);
|
|
850
|
+
const remainingSeconds = Math.round(seconds % 60);
|
|
851
|
+
return remainingSeconds > 0 ? `${minutes}m ${remainingSeconds}s` : `${minutes}m`;
|
|
852
|
+
}
|
|
853
|
+
const hours = Math.floor(seconds / 3600);
|
|
854
|
+
const minutes = Math.floor((seconds % 3600) / 60);
|
|
855
|
+
return minutes > 0 ? `${hours}h ${minutes}m` : `${hours}h`;
|
|
856
|
+
}
|
|
857
|
+
//# sourceMappingURL=escalations.js.map
|