clawsec 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +560 -0
- package/dist/bin/clawsec.d.ts +7 -0
- package/dist/bin/clawsec.d.ts.map +1 -0
- package/dist/bin/clawsec.js +12 -0
- package/dist/bin/clawsec.js.map +1 -0
- package/dist/src/actions/block.d.ts +22 -0
- package/dist/src/actions/block.d.ts.map +1 -0
- package/dist/src/actions/block.js +83 -0
- package/dist/src/actions/block.js.map +1 -0
- package/dist/src/actions/confirm.d.ts +35 -0
- package/dist/src/actions/confirm.d.ts.map +1 -0
- package/dist/src/actions/confirm.js +156 -0
- package/dist/src/actions/confirm.js.map +1 -0
- package/dist/src/actions/executor.d.ts +64 -0
- package/dist/src/actions/executor.d.ts.map +1 -0
- package/dist/src/actions/executor.js +114 -0
- package/dist/src/actions/executor.js.map +1 -0
- package/dist/src/actions/index.d.ts +13 -0
- package/dist/src/actions/index.d.ts.map +1 -0
- package/dist/src/actions/index.js +15 -0
- package/dist/src/actions/index.js.map +1 -0
- package/dist/src/actions/log.d.ts +19 -0
- package/dist/src/actions/log.d.ts.map +1 -0
- package/dist/src/actions/log.js +63 -0
- package/dist/src/actions/log.js.map +1 -0
- package/dist/src/actions/types.d.ts +85 -0
- package/dist/src/actions/types.d.ts.map +1 -0
- package/dist/src/actions/types.js +78 -0
- package/dist/src/actions/types.js.map +1 -0
- package/dist/src/actions/warn.d.ts +22 -0
- package/dist/src/actions/warn.d.ts.map +1 -0
- package/dist/src/actions/warn.js +84 -0
- package/dist/src/actions/warn.js.map +1 -0
- package/dist/src/approval/agent-confirm.d.ts +104 -0
- package/dist/src/approval/agent-confirm.d.ts.map +1 -0
- package/dist/src/approval/agent-confirm.js +173 -0
- package/dist/src/approval/agent-confirm.js.map +1 -0
- package/dist/src/approval/index.d.ts +14 -0
- package/dist/src/approval/index.d.ts.map +1 -0
- package/dist/src/approval/index.js +9 -0
- package/dist/src/approval/index.js.map +1 -0
- package/dist/src/approval/native.d.ts +56 -0
- package/dist/src/approval/native.d.ts.map +1 -0
- package/dist/src/approval/native.js +196 -0
- package/dist/src/approval/native.js.map +1 -0
- package/dist/src/approval/store.d.ts +88 -0
- package/dist/src/approval/store.d.ts.map +1 -0
- package/dist/src/approval/store.js +192 -0
- package/dist/src/approval/store.js.map +1 -0
- package/dist/src/approval/types.d.ts +119 -0
- package/dist/src/approval/types.d.ts.map +1 -0
- package/dist/src/approval/types.js +6 -0
- package/dist/src/approval/types.js.map +1 -0
- package/dist/src/approval/webhook.d.ts +170 -0
- package/dist/src/approval/webhook.d.ts.map +1 -0
- package/dist/src/approval/webhook.js +362 -0
- package/dist/src/approval/webhook.js.map +1 -0
- package/dist/src/cli/commands/audit.d.ts +43 -0
- package/dist/src/cli/commands/audit.d.ts.map +1 -0
- package/dist/src/cli/commands/audit.js +115 -0
- package/dist/src/cli/commands/audit.js.map +1 -0
- package/dist/src/cli/commands/feedback.d.ts +27 -0
- package/dist/src/cli/commands/feedback.d.ts.map +1 -0
- package/dist/src/cli/commands/feedback.js +228 -0
- package/dist/src/cli/commands/feedback.js.map +1 -0
- package/dist/src/cli/commands/index.d.ts +11 -0
- package/dist/src/cli/commands/index.d.ts.map +1 -0
- package/dist/src/cli/commands/index.js +13 -0
- package/dist/src/cli/commands/index.js.map +1 -0
- package/dist/src/cli/commands/status.d.ts +20 -0
- package/dist/src/cli/commands/status.d.ts.map +1 -0
- package/dist/src/cli/commands/status.js +122 -0
- package/dist/src/cli/commands/status.js.map +1 -0
- package/dist/src/cli/commands/test.d.ts +23 -0
- package/dist/src/cli/commands/test.d.ts.map +1 -0
- package/dist/src/cli/commands/test.js +134 -0
- package/dist/src/cli/commands/test.js.map +1 -0
- package/dist/src/cli/commands/types.d.ts +81 -0
- package/dist/src/cli/commands/types.d.ts.map +1 -0
- package/dist/src/cli/commands/types.js +6 -0
- package/dist/src/cli/commands/types.js.map +1 -0
- package/dist/src/cli/index.d.ts +17 -0
- package/dist/src/cli/index.d.ts.map +1 -0
- package/dist/src/cli/index.js +267 -0
- package/dist/src/cli/index.js.map +1 -0
- package/dist/src/config/defaults.d.ts +20 -0
- package/dist/src/config/defaults.d.ts.map +1 -0
- package/dist/src/config/defaults.js +123 -0
- package/dist/src/config/defaults.js.map +1 -0
- package/dist/src/config/index.d.ts +8 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +41 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/loader.d.ts +99 -0
- package/dist/src/config/loader.d.ts.map +1 -0
- package/dist/src/config/loader.js +242 -0
- package/dist/src/config/loader.js.map +1 -0
- package/dist/src/config/schema.d.ts +627 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/schema.js +585 -0
- package/dist/src/config/schema.js.map +1 -0
- package/dist/src/detectors/destructive/cloud-detector.d.ts +51 -0
- package/dist/src/detectors/destructive/cloud-detector.d.ts.map +1 -0
- package/dist/src/detectors/destructive/cloud-detector.js +556 -0
- package/dist/src/detectors/destructive/cloud-detector.js.map +1 -0
- package/dist/src/detectors/destructive/code-detector.d.ts +59 -0
- package/dist/src/detectors/destructive/code-detector.d.ts.map +1 -0
- package/dist/src/detectors/destructive/code-detector.js +558 -0
- package/dist/src/detectors/destructive/code-detector.js.map +1 -0
- package/dist/src/detectors/destructive/index.d.ts +54 -0
- package/dist/src/detectors/destructive/index.d.ts.map +1 -0
- package/dist/src/detectors/destructive/index.js +168 -0
- package/dist/src/detectors/destructive/index.js.map +1 -0
- package/dist/src/detectors/destructive/shell-detector.d.ts +43 -0
- package/dist/src/detectors/destructive/shell-detector.d.ts.map +1 -0
- package/dist/src/detectors/destructive/shell-detector.js +302 -0
- package/dist/src/detectors/destructive/shell-detector.js.map +1 -0
- package/dist/src/detectors/destructive/types.d.ts +143 -0
- package/dist/src/detectors/destructive/types.d.ts.map +1 -0
- package/dist/src/detectors/destructive/types.js +6 -0
- package/dist/src/detectors/destructive/types.js.map +1 -0
- package/dist/src/detectors/exfiltration/cloud-detector.d.ts +51 -0
- package/dist/src/detectors/exfiltration/cloud-detector.d.ts.map +1 -0
- package/dist/src/detectors/exfiltration/cloud-detector.js +427 -0
- package/dist/src/detectors/exfiltration/cloud-detector.js.map +1 -0
- package/dist/src/detectors/exfiltration/http-detector.d.ts +47 -0
- package/dist/src/detectors/exfiltration/http-detector.d.ts.map +1 -0
- package/dist/src/detectors/exfiltration/http-detector.js +429 -0
- package/dist/src/detectors/exfiltration/http-detector.js.map +1 -0
- package/dist/src/detectors/exfiltration/index.d.ts +44 -0
- package/dist/src/detectors/exfiltration/index.d.ts.map +1 -0
- package/dist/src/detectors/exfiltration/index.js +118 -0
- package/dist/src/detectors/exfiltration/index.js.map +1 -0
- package/dist/src/detectors/exfiltration/network-detector.d.ts +55 -0
- package/dist/src/detectors/exfiltration/network-detector.d.ts.map +1 -0
- package/dist/src/detectors/exfiltration/network-detector.js +504 -0
- package/dist/src/detectors/exfiltration/network-detector.js.map +1 -0
- package/dist/src/detectors/exfiltration/types.d.ts +139 -0
- package/dist/src/detectors/exfiltration/types.d.ts.map +1 -0
- package/dist/src/detectors/exfiltration/types.js +6 -0
- package/dist/src/detectors/exfiltration/types.js.map +1 -0
- package/dist/src/detectors/purchase/domain-detector.d.ts +44 -0
- package/dist/src/detectors/purchase/domain-detector.d.ts.map +1 -0
- package/dist/src/detectors/purchase/domain-detector.js +296 -0
- package/dist/src/detectors/purchase/domain-detector.js.map +1 -0
- package/dist/src/detectors/purchase/form-detector.d.ts +27 -0
- package/dist/src/detectors/purchase/form-detector.d.ts.map +1 -0
- package/dist/src/detectors/purchase/form-detector.js +344 -0
- package/dist/src/detectors/purchase/form-detector.js.map +1 -0
- package/dist/src/detectors/purchase/index.d.ts +65 -0
- package/dist/src/detectors/purchase/index.d.ts.map +1 -0
- package/dist/src/detectors/purchase/index.js +216 -0
- package/dist/src/detectors/purchase/index.js.map +1 -0
- package/dist/src/detectors/purchase/spend-tracker.d.ts +132 -0
- package/dist/src/detectors/purchase/spend-tracker.d.ts.map +1 -0
- package/dist/src/detectors/purchase/spend-tracker.js +313 -0
- package/dist/src/detectors/purchase/spend-tracker.js.map +1 -0
- package/dist/src/detectors/purchase/types.d.ts +139 -0
- package/dist/src/detectors/purchase/types.d.ts.map +1 -0
- package/dist/src/detectors/purchase/types.js +6 -0
- package/dist/src/detectors/purchase/types.js.map +1 -0
- package/dist/src/detectors/purchase/url-detector.d.ts +31 -0
- package/dist/src/detectors/purchase/url-detector.d.ts.map +1 -0
- package/dist/src/detectors/purchase/url-detector.js +292 -0
- package/dist/src/detectors/purchase/url-detector.js.map +1 -0
- package/dist/src/detectors/secrets/api-key-detector.d.ts +30 -0
- package/dist/src/detectors/secrets/api-key-detector.d.ts.map +1 -0
- package/dist/src/detectors/secrets/api-key-detector.js +297 -0
- package/dist/src/detectors/secrets/api-key-detector.js.map +1 -0
- package/dist/src/detectors/secrets/index.d.ts +43 -0
- package/dist/src/detectors/secrets/index.d.ts.map +1 -0
- package/dist/src/detectors/secrets/index.js +261 -0
- package/dist/src/detectors/secrets/index.js.map +1 -0
- package/dist/src/detectors/secrets/pii-detector.d.ts +54 -0
- package/dist/src/detectors/secrets/pii-detector.d.ts.map +1 -0
- package/dist/src/detectors/secrets/pii-detector.js +286 -0
- package/dist/src/detectors/secrets/pii-detector.js.map +1 -0
- package/dist/src/detectors/secrets/token-detector.d.ts +51 -0
- package/dist/src/detectors/secrets/token-detector.d.ts.map +1 -0
- package/dist/src/detectors/secrets/token-detector.js +233 -0
- package/dist/src/detectors/secrets/token-detector.js.map +1 -0
- package/dist/src/detectors/secrets/types.d.ts +157 -0
- package/dist/src/detectors/secrets/types.d.ts.map +1 -0
- package/dist/src/detectors/secrets/types.js +6 -0
- package/dist/src/detectors/secrets/types.js.map +1 -0
- package/dist/src/detectors/website/category-detector.d.ts +22 -0
- package/dist/src/detectors/website/category-detector.d.ts.map +1 -0
- package/dist/src/detectors/website/category-detector.js +162 -0
- package/dist/src/detectors/website/category-detector.js.map +1 -0
- package/dist/src/detectors/website/index.d.ts +53 -0
- package/dist/src/detectors/website/index.d.ts.map +1 -0
- package/dist/src/detectors/website/index.js +232 -0
- package/dist/src/detectors/website/index.js.map +1 -0
- package/dist/src/detectors/website/pattern-matcher.d.ts +33 -0
- package/dist/src/detectors/website/pattern-matcher.d.ts.map +1 -0
- package/dist/src/detectors/website/pattern-matcher.js +121 -0
- package/dist/src/detectors/website/pattern-matcher.js.map +1 -0
- package/dist/src/detectors/website/types.d.ts +105 -0
- package/dist/src/detectors/website/types.d.ts.map +1 -0
- package/dist/src/detectors/website/types.js +6 -0
- package/dist/src/detectors/website/types.js.map +1 -0
- package/dist/src/engine/analyzer.d.ts +87 -0
- package/dist/src/engine/analyzer.d.ts.map +1 -0
- package/dist/src/engine/analyzer.js +427 -0
- package/dist/src/engine/analyzer.js.map +1 -0
- package/dist/src/engine/cache.d.ts +80 -0
- package/dist/src/engine/cache.d.ts.map +1 -0
- package/dist/src/engine/cache.js +167 -0
- package/dist/src/engine/cache.js.map +1 -0
- package/dist/src/engine/index.d.ts +11 -0
- package/dist/src/engine/index.d.ts.map +1 -0
- package/dist/src/engine/index.js +11 -0
- package/dist/src/engine/index.js.map +1 -0
- package/dist/src/engine/llm-client.d.ts +210 -0
- package/dist/src/engine/llm-client.d.ts.map +1 -0
- package/dist/src/engine/llm-client.js +506 -0
- package/dist/src/engine/llm-client.js.map +1 -0
- package/dist/src/engine/types.d.ts +163 -0
- package/dist/src/engine/types.d.ts.map +1 -0
- package/dist/src/engine/types.js +21 -0
- package/dist/src/engine/types.js.map +1 -0
- package/dist/src/feedback/index.d.ts +9 -0
- package/dist/src/feedback/index.d.ts.map +1 -0
- package/dist/src/feedback/index.js +8 -0
- package/dist/src/feedback/index.js.map +1 -0
- package/dist/src/feedback/learner.d.ts +222 -0
- package/dist/src/feedback/learner.d.ts.map +1 -0
- package/dist/src/feedback/learner.js +401 -0
- package/dist/src/feedback/learner.js.map +1 -0
- package/dist/src/feedback/store.d.ts +113 -0
- package/dist/src/feedback/store.d.ts.map +1 -0
- package/dist/src/feedback/store.js +228 -0
- package/dist/src/feedback/store.js.map +1 -0
- package/dist/src/feedback/types.d.ts +126 -0
- package/dist/src/feedback/types.d.ts.map +1 -0
- package/dist/src/feedback/types.js +6 -0
- package/dist/src/feedback/types.js.map +1 -0
- package/dist/src/hooks/before-agent-start/handler.d.ts +37 -0
- package/dist/src/hooks/before-agent-start/handler.d.ts.map +1 -0
- package/dist/src/hooks/before-agent-start/handler.js +109 -0
- package/dist/src/hooks/before-agent-start/handler.js.map +1 -0
- package/dist/src/hooks/before-agent-start/index.d.ts +8 -0
- package/dist/src/hooks/before-agent-start/index.d.ts.map +1 -0
- package/dist/src/hooks/before-agent-start/index.js +7 -0
- package/dist/src/hooks/before-agent-start/index.js.map +1 -0
- package/dist/src/hooks/before-agent-start/prompts.d.ts +48 -0
- package/dist/src/hooks/before-agent-start/prompts.d.ts.map +1 -0
- package/dist/src/hooks/before-agent-start/prompts.js +103 -0
- package/dist/src/hooks/before-agent-start/prompts.js.map +1 -0
- package/dist/src/hooks/before-tool-call/handler.d.ts +42 -0
- package/dist/src/hooks/before-tool-call/handler.d.ts.map +1 -0
- package/dist/src/hooks/before-tool-call/handler.js +226 -0
- package/dist/src/hooks/before-tool-call/handler.js.map +1 -0
- package/dist/src/hooks/before-tool-call/index.d.ts +7 -0
- package/dist/src/hooks/before-tool-call/index.d.ts.map +1 -0
- package/dist/src/hooks/before-tool-call/index.js +6 -0
- package/dist/src/hooks/before-tool-call/index.js.map +1 -0
- package/dist/src/hooks/tool-result-persist/filter.d.ts +72 -0
- package/dist/src/hooks/tool-result-persist/filter.d.ts.map +1 -0
- package/dist/src/hooks/tool-result-persist/filter.js +305 -0
- package/dist/src/hooks/tool-result-persist/filter.js.map +1 -0
- package/dist/src/hooks/tool-result-persist/handler.d.ts +49 -0
- package/dist/src/hooks/tool-result-persist/handler.d.ts.map +1 -0
- package/dist/src/hooks/tool-result-persist/handler.js +217 -0
- package/dist/src/hooks/tool-result-persist/handler.js.map +1 -0
- package/dist/src/hooks/tool-result-persist/index.d.ts +11 -0
- package/dist/src/hooks/tool-result-persist/index.d.ts.map +1 -0
- package/dist/src/hooks/tool-result-persist/index.js +11 -0
- package/dist/src/hooks/tool-result-persist/index.js.map +1 -0
- package/dist/src/index.d.ts +256 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +222 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/notifications/discord.d.ts +10 -0
- package/dist/src/notifications/discord.d.ts.map +1 -0
- package/dist/src/notifications/discord.js +218 -0
- package/dist/src/notifications/discord.js.map +1 -0
- package/dist/src/notifications/index.d.ts +37 -0
- package/dist/src/notifications/index.d.ts.map +1 -0
- package/dist/src/notifications/index.js +68 -0
- package/dist/src/notifications/index.js.map +1 -0
- package/dist/src/notifications/slack.d.ts +10 -0
- package/dist/src/notifications/slack.d.ts.map +1 -0
- package/dist/src/notifications/slack.js +218 -0
- package/dist/src/notifications/slack.js.map +1 -0
- package/dist/src/notifications/telegram.d.ts +10 -0
- package/dist/src/notifications/telegram.d.ts.map +1 -0
- package/dist/src/notifications/telegram.js +242 -0
- package/dist/src/notifications/telegram.js.map +1 -0
- package/dist/src/notifications/types.d.ts +119 -0
- package/dist/src/notifications/types.d.ts.map +1 -0
- package/dist/src/notifications/types.js +6 -0
- package/dist/src/notifications/types.js.map +1 -0
- package/dist/src/proxy/index.d.ts +8 -0
- package/dist/src/proxy/index.d.ts.map +1 -0
- package/dist/src/proxy/index.js +9 -0
- package/dist/src/proxy/index.js.map +1 -0
- package/dist/src/proxy/middleware.d.ts +55 -0
- package/dist/src/proxy/middleware.d.ts.map +1 -0
- package/dist/src/proxy/middleware.js +215 -0
- package/dist/src/proxy/middleware.js.map +1 -0
- package/dist/src/proxy/server.d.ts +57 -0
- package/dist/src/proxy/server.d.ts.map +1 -0
- package/dist/src/proxy/server.js +298 -0
- package/dist/src/proxy/server.js.map +1 -0
- package/dist/src/proxy/types.d.ts +136 -0
- package/dist/src/proxy/types.d.ts.map +1 -0
- package/dist/src/proxy/types.js +6 -0
- package/dist/src/proxy/types.js.map +1 -0
- package/dist/src/sanitization/index.d.ts +10 -0
- package/dist/src/sanitization/index.d.ts.map +1 -0
- package/dist/src/sanitization/index.js +9 -0
- package/dist/src/sanitization/index.js.map +1 -0
- package/dist/src/sanitization/patterns.d.ts +51 -0
- package/dist/src/sanitization/patterns.d.ts.map +1 -0
- package/dist/src/sanitization/patterns.js +266 -0
- package/dist/src/sanitization/patterns.js.map +1 -0
- package/dist/src/sanitization/scanner.d.ts +29 -0
- package/dist/src/sanitization/scanner.d.ts.map +1 -0
- package/dist/src/sanitization/scanner.js +328 -0
- package/dist/src/sanitization/scanner.js.map +1 -0
- package/dist/src/sanitization/types.d.ts +57 -0
- package/dist/src/sanitization/types.d.ts.map +1 -0
- package/dist/src/sanitization/types.js +5 -0
- package/dist/src/sanitization/types.js.map +1 -0
- package/openclaw.plugin.json +114 -0
- package/package.json +63 -0
- package/rules/builtin/README.md +139 -0
- package/rules/builtin/ai-services.yaml +70 -0
- package/rules/builtin/api-keys.yaml +64 -0
- package/rules/builtin/authentication.yaml +56 -0
- package/rules/builtin/aws-security.yaml +57 -0
- package/rules/builtin/azure-security.yaml +58 -0
- package/rules/builtin/cicd-security.yaml +64 -0
- package/rules/builtin/cloud-storage.yaml +64 -0
- package/rules/builtin/container-registry.yaml +55 -0
- package/rules/builtin/crypto-wallets.yaml +71 -0
- package/rules/builtin/database-nosql.yaml +58 -0
- package/rules/builtin/database-sql.yaml +62 -0
- package/rules/builtin/development-env.yaml +67 -0
- package/rules/builtin/docker.yaml +57 -0
- package/rules/builtin/filesystem.yaml +71 -0
- package/rules/builtin/financial-pci.yaml +61 -0
- package/rules/builtin/gcp-security.yaml +57 -0
- package/rules/builtin/git-operations.yaml +68 -0
- package/rules/builtin/healthcare-hipaa.yaml +64 -0
- package/rules/builtin/kubernetes.yaml +60 -0
- package/rules/builtin/messaging-services.yaml +53 -0
- package/rules/builtin/minimal.yaml +47 -0
- package/rules/builtin/mobile-development.yaml +61 -0
- package/rules/builtin/monitoring.yaml +63 -0
- package/rules/builtin/network-security.yaml +57 -0
- package/rules/builtin/package-managers.yaml +74 -0
- package/rules/builtin/payment-processing.yaml +66 -0
- package/rules/builtin/pii-protection.yaml +48 -0
- package/rules/builtin/production-strict.yaml +55 -0
- package/rules/builtin/secrets-management.yaml +63 -0
- package/rules/builtin/serverless.yaml +74 -0
- package/rules/builtin/ssh-security.yaml +66 -0
- package/rules/builtin/terraform.yaml +51 -0
- package/rules/builtin/web-security.yaml +62 -0
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clawsec Configuration Schema
|
|
3
|
+
* Zod schemas and TypeScript types for the security plugin configuration
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Severity levels for security detections
|
|
8
|
+
*/
|
|
9
|
+
export declare const SeveritySchema: z.ZodEnum<{
|
|
10
|
+
critical: "critical";
|
|
11
|
+
high: "high";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
low: "low";
|
|
14
|
+
}>;
|
|
15
|
+
export type Severity = z.infer<typeof SeveritySchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Actions that can be taken when a threat is detected
|
|
18
|
+
*/
|
|
19
|
+
export declare const ActionSchema: z.ZodEnum<{
|
|
20
|
+
block: "block";
|
|
21
|
+
confirm: "confirm";
|
|
22
|
+
"agent-confirm": "agent-confirm";
|
|
23
|
+
warn: "warn";
|
|
24
|
+
log: "log";
|
|
25
|
+
}>;
|
|
26
|
+
export type Action = z.infer<typeof ActionSchema>;
|
|
27
|
+
/**
|
|
28
|
+
* Log levels for the plugin
|
|
29
|
+
*/
|
|
30
|
+
export declare const LogLevelSchema: z.ZodEnum<{
|
|
31
|
+
warn: "warn";
|
|
32
|
+
debug: "debug";
|
|
33
|
+
info: "info";
|
|
34
|
+
error: "error";
|
|
35
|
+
}>;
|
|
36
|
+
export type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* Mode for domain/website filtering
|
|
39
|
+
*/
|
|
40
|
+
export declare const FilterModeSchema: z.ZodEnum<{
|
|
41
|
+
blocklist: "blocklist";
|
|
42
|
+
allowlist: "allowlist";
|
|
43
|
+
}>;
|
|
44
|
+
export type FilterMode = z.infer<typeof FilterModeSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* Global plugin settings
|
|
47
|
+
*/
|
|
48
|
+
export declare const GlobalConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
49
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
warn: "warn";
|
|
52
|
+
debug: "debug";
|
|
53
|
+
info: "info";
|
|
54
|
+
error: "error";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
export type GlobalConfig = z.infer<typeof GlobalConfigSchema>;
|
|
58
|
+
/**
|
|
59
|
+
* LLM integration settings
|
|
60
|
+
*/
|
|
61
|
+
export declare const LLMConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
62
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
+
model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
export type LLMConfig = z.infer<typeof LLMConfigSchema>;
|
|
66
|
+
/**
|
|
67
|
+
* Spending limits for purchase protection
|
|
68
|
+
*/
|
|
69
|
+
export declare const SpendLimitsSchema: z.ZodDefault<z.ZodObject<{
|
|
70
|
+
perTransaction: z.ZodDefault<z.ZodNumber>;
|
|
71
|
+
daily: z.ZodDefault<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
export type SpendLimits = z.infer<typeof SpendLimitsSchema>;
|
|
74
|
+
/**
|
|
75
|
+
* Domain filtering configuration for purchases
|
|
76
|
+
*/
|
|
77
|
+
export declare const PurchaseDomainsSchema: z.ZodDefault<z.ZodObject<{
|
|
78
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
blocklist: "blocklist";
|
|
80
|
+
allowlist: "allowlist";
|
|
81
|
+
}>>;
|
|
82
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
export type PurchaseDomains = z.infer<typeof PurchaseDomainsSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* Purchase protection rule configuration
|
|
87
|
+
*/
|
|
88
|
+
export declare const PurchaseRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
89
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
91
|
+
critical: "critical";
|
|
92
|
+
high: "high";
|
|
93
|
+
medium: "medium";
|
|
94
|
+
low: "low";
|
|
95
|
+
}>>;
|
|
96
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
block: "block";
|
|
98
|
+
confirm: "confirm";
|
|
99
|
+
"agent-confirm": "agent-confirm";
|
|
100
|
+
warn: "warn";
|
|
101
|
+
log: "log";
|
|
102
|
+
}>>;
|
|
103
|
+
spendLimits: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
104
|
+
perTransaction: z.ZodDefault<z.ZodNumber>;
|
|
105
|
+
daily: z.ZodDefault<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strip>>>>;
|
|
107
|
+
domains: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
108
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
blocklist: "blocklist";
|
|
110
|
+
allowlist: "allowlist";
|
|
111
|
+
}>>;
|
|
112
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
113
|
+
}, z.core.$strip>>>>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
export type PurchaseRule = z.infer<typeof PurchaseRuleSchema>;
|
|
116
|
+
/**
|
|
117
|
+
* Website control rule configuration
|
|
118
|
+
*/
|
|
119
|
+
export declare const WebsiteRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
120
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
121
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
blocklist: "blocklist";
|
|
123
|
+
allowlist: "allowlist";
|
|
124
|
+
}>>;
|
|
125
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
126
|
+
critical: "critical";
|
|
127
|
+
high: "high";
|
|
128
|
+
medium: "medium";
|
|
129
|
+
low: "low";
|
|
130
|
+
}>>;
|
|
131
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
132
|
+
block: "block";
|
|
133
|
+
confirm: "confirm";
|
|
134
|
+
"agent-confirm": "agent-confirm";
|
|
135
|
+
warn: "warn";
|
|
136
|
+
log: "log";
|
|
137
|
+
}>>;
|
|
138
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
139
|
+
allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
export type WebsiteRule = z.infer<typeof WebsiteRuleSchema>;
|
|
142
|
+
/**
|
|
143
|
+
* Shell command protection configuration
|
|
144
|
+
*/
|
|
145
|
+
export declare const ShellProtectionSchema: z.ZodDefault<z.ZodObject<{
|
|
146
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
export type ShellProtection = z.infer<typeof ShellProtectionSchema>;
|
|
149
|
+
/**
|
|
150
|
+
* Cloud operation protection configuration
|
|
151
|
+
*/
|
|
152
|
+
export declare const CloudProtectionSchema: z.ZodDefault<z.ZodObject<{
|
|
153
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
export type CloudProtection = z.infer<typeof CloudProtectionSchema>;
|
|
156
|
+
/**
|
|
157
|
+
* Code pattern protection configuration
|
|
158
|
+
*/
|
|
159
|
+
export declare const CodeProtectionSchema: z.ZodDefault<z.ZodObject<{
|
|
160
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
export type CodeProtection = z.infer<typeof CodeProtectionSchema>;
|
|
163
|
+
/**
|
|
164
|
+
* Destructive commands rule configuration
|
|
165
|
+
*/
|
|
166
|
+
export declare const DestructiveRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
167
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
critical: "critical";
|
|
170
|
+
high: "high";
|
|
171
|
+
medium: "medium";
|
|
172
|
+
low: "low";
|
|
173
|
+
}>>;
|
|
174
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
175
|
+
block: "block";
|
|
176
|
+
confirm: "confirm";
|
|
177
|
+
"agent-confirm": "agent-confirm";
|
|
178
|
+
warn: "warn";
|
|
179
|
+
log: "log";
|
|
180
|
+
}>>;
|
|
181
|
+
shell: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
182
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
183
|
+
}, z.core.$strip>>>>;
|
|
184
|
+
cloud: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
185
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
+
}, z.core.$strip>>>>;
|
|
187
|
+
code: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
188
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
189
|
+
}, z.core.$strip>>>>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
export type DestructiveRule = z.infer<typeof DestructiveRuleSchema>;
|
|
192
|
+
/**
|
|
193
|
+
* Injection scanner category configuration
|
|
194
|
+
*/
|
|
195
|
+
export declare const InjectionCategoriesSchema: z.ZodDefault<z.ZodObject<{
|
|
196
|
+
instructionOverride: z.ZodDefault<z.ZodBoolean>;
|
|
197
|
+
systemLeak: z.ZodDefault<z.ZodBoolean>;
|
|
198
|
+
jailbreak: z.ZodDefault<z.ZodBoolean>;
|
|
199
|
+
encodedPayload: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
export type InjectionCategories = z.infer<typeof InjectionCategoriesSchema>;
|
|
202
|
+
/**
|
|
203
|
+
* Output sanitization rule configuration
|
|
204
|
+
*/
|
|
205
|
+
export declare const SanitizationRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
206
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
207
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
208
|
+
critical: "critical";
|
|
209
|
+
high: "high";
|
|
210
|
+
medium: "medium";
|
|
211
|
+
low: "low";
|
|
212
|
+
}>>;
|
|
213
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
214
|
+
block: "block";
|
|
215
|
+
confirm: "confirm";
|
|
216
|
+
"agent-confirm": "agent-confirm";
|
|
217
|
+
warn: "warn";
|
|
218
|
+
log: "log";
|
|
219
|
+
}>>;
|
|
220
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
221
|
+
redactMatches: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
+
categories: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
223
|
+
instructionOverride: z.ZodDefault<z.ZodBoolean>;
|
|
224
|
+
systemLeak: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
+
jailbreak: z.ZodDefault<z.ZodBoolean>;
|
|
226
|
+
encodedPayload: z.ZodDefault<z.ZodBoolean>;
|
|
227
|
+
}, z.core.$strip>>>>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
export type SanitizationRule = z.infer<typeof SanitizationRuleSchema>;
|
|
230
|
+
/**
|
|
231
|
+
* Secrets and PII detection rule configuration
|
|
232
|
+
*/
|
|
233
|
+
export declare const SecretsRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
234
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
235
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
236
|
+
critical: "critical";
|
|
237
|
+
high: "high";
|
|
238
|
+
medium: "medium";
|
|
239
|
+
low: "low";
|
|
240
|
+
}>>;
|
|
241
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
242
|
+
block: "block";
|
|
243
|
+
confirm: "confirm";
|
|
244
|
+
"agent-confirm": "agent-confirm";
|
|
245
|
+
warn: "warn";
|
|
246
|
+
log: "log";
|
|
247
|
+
}>>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
export type SecretsRule = z.infer<typeof SecretsRuleSchema>;
|
|
250
|
+
/**
|
|
251
|
+
* Data exfiltration detection rule configuration
|
|
252
|
+
*/
|
|
253
|
+
export declare const ExfiltrationRuleSchema: z.ZodDefault<z.ZodObject<{
|
|
254
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
255
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
256
|
+
critical: "critical";
|
|
257
|
+
high: "high";
|
|
258
|
+
medium: "medium";
|
|
259
|
+
low: "low";
|
|
260
|
+
}>>;
|
|
261
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
262
|
+
block: "block";
|
|
263
|
+
confirm: "confirm";
|
|
264
|
+
"agent-confirm": "agent-confirm";
|
|
265
|
+
warn: "warn";
|
|
266
|
+
log: "log";
|
|
267
|
+
}>>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
export type ExfiltrationRule = z.infer<typeof ExfiltrationRuleSchema>;
|
|
270
|
+
/**
|
|
271
|
+
* All security rules configuration
|
|
272
|
+
*/
|
|
273
|
+
export declare const RulesConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
274
|
+
purchase: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
275
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
276
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
277
|
+
critical: "critical";
|
|
278
|
+
high: "high";
|
|
279
|
+
medium: "medium";
|
|
280
|
+
low: "low";
|
|
281
|
+
}>>;
|
|
282
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
283
|
+
block: "block";
|
|
284
|
+
confirm: "confirm";
|
|
285
|
+
"agent-confirm": "agent-confirm";
|
|
286
|
+
warn: "warn";
|
|
287
|
+
log: "log";
|
|
288
|
+
}>>;
|
|
289
|
+
spendLimits: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
290
|
+
perTransaction: z.ZodDefault<z.ZodNumber>;
|
|
291
|
+
daily: z.ZodDefault<z.ZodNumber>;
|
|
292
|
+
}, z.core.$strip>>>>;
|
|
293
|
+
domains: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
294
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
295
|
+
blocklist: "blocklist";
|
|
296
|
+
allowlist: "allowlist";
|
|
297
|
+
}>>;
|
|
298
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
299
|
+
}, z.core.$strip>>>>;
|
|
300
|
+
}, z.core.$strip>>>>;
|
|
301
|
+
website: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
302
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
303
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
304
|
+
blocklist: "blocklist";
|
|
305
|
+
allowlist: "allowlist";
|
|
306
|
+
}>>;
|
|
307
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
308
|
+
critical: "critical";
|
|
309
|
+
high: "high";
|
|
310
|
+
medium: "medium";
|
|
311
|
+
low: "low";
|
|
312
|
+
}>>;
|
|
313
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
314
|
+
block: "block";
|
|
315
|
+
confirm: "confirm";
|
|
316
|
+
"agent-confirm": "agent-confirm";
|
|
317
|
+
warn: "warn";
|
|
318
|
+
log: "log";
|
|
319
|
+
}>>;
|
|
320
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
321
|
+
allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
322
|
+
}, z.core.$strip>>>>;
|
|
323
|
+
destructive: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
324
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
326
|
+
critical: "critical";
|
|
327
|
+
high: "high";
|
|
328
|
+
medium: "medium";
|
|
329
|
+
low: "low";
|
|
330
|
+
}>>;
|
|
331
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
332
|
+
block: "block";
|
|
333
|
+
confirm: "confirm";
|
|
334
|
+
"agent-confirm": "agent-confirm";
|
|
335
|
+
warn: "warn";
|
|
336
|
+
log: "log";
|
|
337
|
+
}>>;
|
|
338
|
+
shell: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
339
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
340
|
+
}, z.core.$strip>>>>;
|
|
341
|
+
cloud: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
342
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
+
}, z.core.$strip>>>>;
|
|
344
|
+
code: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
345
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
346
|
+
}, z.core.$strip>>>>;
|
|
347
|
+
}, z.core.$strip>>>>;
|
|
348
|
+
secrets: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
349
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
351
|
+
critical: "critical";
|
|
352
|
+
high: "high";
|
|
353
|
+
medium: "medium";
|
|
354
|
+
low: "low";
|
|
355
|
+
}>>;
|
|
356
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
357
|
+
block: "block";
|
|
358
|
+
confirm: "confirm";
|
|
359
|
+
"agent-confirm": "agent-confirm";
|
|
360
|
+
warn: "warn";
|
|
361
|
+
log: "log";
|
|
362
|
+
}>>;
|
|
363
|
+
}, z.core.$strip>>>>;
|
|
364
|
+
exfiltration: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
365
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
366
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
367
|
+
critical: "critical";
|
|
368
|
+
high: "high";
|
|
369
|
+
medium: "medium";
|
|
370
|
+
low: "low";
|
|
371
|
+
}>>;
|
|
372
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
373
|
+
block: "block";
|
|
374
|
+
confirm: "confirm";
|
|
375
|
+
"agent-confirm": "agent-confirm";
|
|
376
|
+
warn: "warn";
|
|
377
|
+
log: "log";
|
|
378
|
+
}>>;
|
|
379
|
+
}, z.core.$strip>>>>;
|
|
380
|
+
sanitization: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
381
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
382
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
383
|
+
critical: "critical";
|
|
384
|
+
high: "high";
|
|
385
|
+
medium: "medium";
|
|
386
|
+
low: "low";
|
|
387
|
+
}>>;
|
|
388
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
389
|
+
block: "block";
|
|
390
|
+
confirm: "confirm";
|
|
391
|
+
"agent-confirm": "agent-confirm";
|
|
392
|
+
warn: "warn";
|
|
393
|
+
log: "log";
|
|
394
|
+
}>>;
|
|
395
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
396
|
+
redactMatches: z.ZodDefault<z.ZodBoolean>;
|
|
397
|
+
categories: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
398
|
+
instructionOverride: z.ZodDefault<z.ZodBoolean>;
|
|
399
|
+
systemLeak: z.ZodDefault<z.ZodBoolean>;
|
|
400
|
+
jailbreak: z.ZodDefault<z.ZodBoolean>;
|
|
401
|
+
encodedPayload: z.ZodDefault<z.ZodBoolean>;
|
|
402
|
+
}, z.core.$strip>>>>;
|
|
403
|
+
}, z.core.$strip>>>>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
export type RulesConfig = z.infer<typeof RulesConfigSchema>;
|
|
406
|
+
/**
|
|
407
|
+
* Native approval flow configuration
|
|
408
|
+
*/
|
|
409
|
+
export declare const NativeApprovalSchema: z.ZodDefault<z.ZodObject<{
|
|
410
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
411
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
412
|
+
}, z.core.$strip>>;
|
|
413
|
+
export type NativeApproval = z.infer<typeof NativeApprovalSchema>;
|
|
414
|
+
/**
|
|
415
|
+
* Agent confirm approval flow configuration
|
|
416
|
+
*/
|
|
417
|
+
export declare const AgentConfirmSchema: z.ZodDefault<z.ZodObject<{
|
|
418
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
419
|
+
parameterName: z.ZodDefault<z.ZodString>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
export type AgentConfirm = z.infer<typeof AgentConfirmSchema>;
|
|
422
|
+
/**
|
|
423
|
+
* Webhook approval flow configuration
|
|
424
|
+
*/
|
|
425
|
+
export declare const WebhookApprovalSchema: z.ZodDefault<z.ZodObject<{
|
|
426
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
427
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
428
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
429
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
export type WebhookApproval = z.infer<typeof WebhookApprovalSchema>;
|
|
432
|
+
/**
|
|
433
|
+
* Approval flow configuration
|
|
434
|
+
*/
|
|
435
|
+
export declare const ApprovalConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
436
|
+
native: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
437
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
438
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
439
|
+
}, z.core.$strip>>>>;
|
|
440
|
+
agentConfirm: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
441
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
442
|
+
parameterName: z.ZodDefault<z.ZodString>;
|
|
443
|
+
}, z.core.$strip>>>>;
|
|
444
|
+
webhook: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
445
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
446
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
447
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
448
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
449
|
+
}, z.core.$strip>>>>;
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
export type ApprovalConfig = z.infer<typeof ApprovalConfigSchema>;
|
|
452
|
+
/**
|
|
453
|
+
* Root configuration schema for clawsec.yaml
|
|
454
|
+
*/
|
|
455
|
+
export declare const ClawsecConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
456
|
+
version: z.ZodDefault<z.ZodString>;
|
|
457
|
+
global: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
458
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
460
|
+
warn: "warn";
|
|
461
|
+
debug: "debug";
|
|
462
|
+
info: "info";
|
|
463
|
+
error: "error";
|
|
464
|
+
}>>;
|
|
465
|
+
}, z.core.$strip>>>>;
|
|
466
|
+
llm: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
467
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
468
|
+
model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
}, z.core.$strip>>>>;
|
|
470
|
+
rules: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
471
|
+
purchase: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
472
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
473
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
474
|
+
critical: "critical";
|
|
475
|
+
high: "high";
|
|
476
|
+
medium: "medium";
|
|
477
|
+
low: "low";
|
|
478
|
+
}>>;
|
|
479
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
480
|
+
block: "block";
|
|
481
|
+
confirm: "confirm";
|
|
482
|
+
"agent-confirm": "agent-confirm";
|
|
483
|
+
warn: "warn";
|
|
484
|
+
log: "log";
|
|
485
|
+
}>>;
|
|
486
|
+
spendLimits: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
487
|
+
perTransaction: z.ZodDefault<z.ZodNumber>;
|
|
488
|
+
daily: z.ZodDefault<z.ZodNumber>;
|
|
489
|
+
}, z.core.$strip>>>>;
|
|
490
|
+
domains: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
491
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
492
|
+
blocklist: "blocklist";
|
|
493
|
+
allowlist: "allowlist";
|
|
494
|
+
}>>;
|
|
495
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
496
|
+
}, z.core.$strip>>>>;
|
|
497
|
+
}, z.core.$strip>>>>;
|
|
498
|
+
website: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
499
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
500
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
501
|
+
blocklist: "blocklist";
|
|
502
|
+
allowlist: "allowlist";
|
|
503
|
+
}>>;
|
|
504
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
505
|
+
critical: "critical";
|
|
506
|
+
high: "high";
|
|
507
|
+
medium: "medium";
|
|
508
|
+
low: "low";
|
|
509
|
+
}>>;
|
|
510
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
511
|
+
block: "block";
|
|
512
|
+
confirm: "confirm";
|
|
513
|
+
"agent-confirm": "agent-confirm";
|
|
514
|
+
warn: "warn";
|
|
515
|
+
log: "log";
|
|
516
|
+
}>>;
|
|
517
|
+
blocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
518
|
+
allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
519
|
+
}, z.core.$strip>>>>;
|
|
520
|
+
destructive: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
521
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
522
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
523
|
+
critical: "critical";
|
|
524
|
+
high: "high";
|
|
525
|
+
medium: "medium";
|
|
526
|
+
low: "low";
|
|
527
|
+
}>>;
|
|
528
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
529
|
+
block: "block";
|
|
530
|
+
confirm: "confirm";
|
|
531
|
+
"agent-confirm": "agent-confirm";
|
|
532
|
+
warn: "warn";
|
|
533
|
+
log: "log";
|
|
534
|
+
}>>;
|
|
535
|
+
shell: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
536
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
537
|
+
}, z.core.$strip>>>>;
|
|
538
|
+
cloud: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
539
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
540
|
+
}, z.core.$strip>>>>;
|
|
541
|
+
code: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
542
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
543
|
+
}, z.core.$strip>>>>;
|
|
544
|
+
}, z.core.$strip>>>>;
|
|
545
|
+
secrets: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
546
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
547
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
548
|
+
critical: "critical";
|
|
549
|
+
high: "high";
|
|
550
|
+
medium: "medium";
|
|
551
|
+
low: "low";
|
|
552
|
+
}>>;
|
|
553
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
554
|
+
block: "block";
|
|
555
|
+
confirm: "confirm";
|
|
556
|
+
"agent-confirm": "agent-confirm";
|
|
557
|
+
warn: "warn";
|
|
558
|
+
log: "log";
|
|
559
|
+
}>>;
|
|
560
|
+
}, z.core.$strip>>>>;
|
|
561
|
+
exfiltration: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
562
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
563
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
564
|
+
critical: "critical";
|
|
565
|
+
high: "high";
|
|
566
|
+
medium: "medium";
|
|
567
|
+
low: "low";
|
|
568
|
+
}>>;
|
|
569
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
570
|
+
block: "block";
|
|
571
|
+
confirm: "confirm";
|
|
572
|
+
"agent-confirm": "agent-confirm";
|
|
573
|
+
warn: "warn";
|
|
574
|
+
log: "log";
|
|
575
|
+
}>>;
|
|
576
|
+
}, z.core.$strip>>>>;
|
|
577
|
+
sanitization: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
578
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
579
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
580
|
+
critical: "critical";
|
|
581
|
+
high: "high";
|
|
582
|
+
medium: "medium";
|
|
583
|
+
low: "low";
|
|
584
|
+
}>>;
|
|
585
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
586
|
+
block: "block";
|
|
587
|
+
confirm: "confirm";
|
|
588
|
+
"agent-confirm": "agent-confirm";
|
|
589
|
+
warn: "warn";
|
|
590
|
+
log: "log";
|
|
591
|
+
}>>;
|
|
592
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
593
|
+
redactMatches: z.ZodDefault<z.ZodBoolean>;
|
|
594
|
+
categories: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
595
|
+
instructionOverride: z.ZodDefault<z.ZodBoolean>;
|
|
596
|
+
systemLeak: z.ZodDefault<z.ZodBoolean>;
|
|
597
|
+
jailbreak: z.ZodDefault<z.ZodBoolean>;
|
|
598
|
+
encodedPayload: z.ZodDefault<z.ZodBoolean>;
|
|
599
|
+
}, z.core.$strip>>>>;
|
|
600
|
+
}, z.core.$strip>>>>;
|
|
601
|
+
}, z.core.$strip>>>>;
|
|
602
|
+
approval: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
603
|
+
native: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
604
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
605
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
606
|
+
}, z.core.$strip>>>>;
|
|
607
|
+
agentConfirm: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
608
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
609
|
+
parameterName: z.ZodDefault<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>>>>;
|
|
611
|
+
webhook: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
612
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
613
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
614
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
615
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
616
|
+
}, z.core.$strip>>>>;
|
|
617
|
+
}, z.core.$strip>>>>;
|
|
618
|
+
}, z.core.$strip>>;
|
|
619
|
+
/**
|
|
620
|
+
* Main configuration type for Clawsec
|
|
621
|
+
*/
|
|
622
|
+
export type ClawsecConfig = z.infer<typeof ClawsecConfigSchema>;
|
|
623
|
+
/**
|
|
624
|
+
* Partial configuration type (for merging with defaults)
|
|
625
|
+
*/
|
|
626
|
+
export type PartialClawsecConfig = z.input<typeof ClawsecConfigSchema>;
|
|
627
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/config/schema.ts"],"names":[],"mappings":"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"}
|