Defines Arcjet Guard types for security decisions and sensitive data detection.
// Source: https://github.com/arcjet/arcjet-js | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Public SDK types for `@arcjet/guard`.
*
* Concrete per-rule discriminated unions. No generics. Each rule kind
* gets its own `RuleWithConfig*` and `RuleWithInput*` type with a
* `type` discriminant for narrowing.
*
* @packageDocumentation
*/
import type {
DetectSensitiveInfoFunction,
SensitiveInfoEntities,
SensitiveInfoResult,
} from "@arcjet/analyze";
import type { ArcjetMetadata } from "./metadata.ts";
export type { ArcjetMetadata } from "./metadata.ts";
/** The outcome of a guard decision — only `"ALLOW"` or `"DENY"`. */
export type Conclusion = "ALLOW" | "DENY
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key