Skip to main content

Variable: DataPatternMatchingRulesSchema

const DataPatternMatchingRulesSchema: ZodObject<{
delimiter: ZodOptional<ZodNullable<ZodString>>;
proximity_distance: ZodOptional<ZodNullable<ZodNumber>>;
proximity_keywords: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
regexes: ZodOptional<ZodNullable<ZodArray<ZodObject<{
regex: ZodString;
weight: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">>>;
metadata_criteria: ZodOptional<ZodNullable<ZodArray<ZodObject<{
comparisonOperatorType: ZodOptional<ZodNullable<ZodEnum<[..., ..., ..., ..., ...]>>>;
name: ZodOptional<ZodNullable<ZodString>>;
type: ZodOptional<ZodNullable<ZodString>>;
value: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
comparisonOperatorType: ZodOptional<ZodNullable<ZodEnum<...>>>;
name: ZodOptional<ZodNullable<ZodString>>;
type: ZodOptional<ZodNullable<ZodString>>;
value: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
comparisonOperatorType: ZodOptional<ZodNullable<ZodEnum<...>>>;
name: ZodOptional<ZodNullable<ZodString>>;
type: ZodOptional<ZodNullable<ZodString>>;
value: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>, "many">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
delimiter: ZodOptional<ZodNullable<ZodString>>;
proximity_distance: ZodOptional<ZodNullable<ZodNumber>>;
proximity_keywords: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
regexes: ZodOptional<ZodNullable<ZodArray<ZodObject<{
regex: ZodString;
weight: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">>>;
metadata_criteria: ZodOptional<ZodNullable<ZodArray<ZodObject<{
comparisonOperatorType: ZodOptional<ZodNullable<ZodEnum<...>>>;
name: ZodOptional<ZodNullable<ZodString>>;
type: ZodOptional<ZodNullable<ZodString>>;
value: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
comparisonOperatorType: ZodOptional<ZodNullable<...>>;
name: ZodOptional<ZodNullable<...>>;
type: ZodOptional<ZodNullable<...>>;
value: ZodOptional<ZodNullable<...>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
comparisonOperatorType: ZodOptional<ZodNullable<...>>;
name: ZodOptional<ZodNullable<...>>;
type: ZodOptional<ZodNullable<...>>;
value: ZodOptional<ZodNullable<...>>;
}, ZodTypeAny, "passthrough">>, "many">>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
delimiter: ZodOptional<ZodNullable<ZodString>>;
proximity_distance: ZodOptional<ZodNullable<ZodNumber>>;
proximity_keywords: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
regexes: ZodOptional<ZodNullable<ZodArray<ZodObject<{
regex: ZodString;
weight: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
regex: ZodString;
weight: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">>>;
metadata_criteria: ZodOptional<ZodNullable<ZodArray<ZodObject<{
comparisonOperatorType: ZodOptional<ZodNullable<ZodEnum<...>>>;
name: ZodOptional<ZodNullable<ZodString>>;
type: ZodOptional<ZodNullable<ZodString>>;
value: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
comparisonOperatorType: ZodOptional<ZodNullable<...>>;
name: ZodOptional<ZodNullable<...>>;
type: ZodOptional<ZodNullable<...>>;
value: ZodOptional<ZodNullable<...>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
comparisonOperatorType: ZodOptional<ZodNullable<...>>;
name: ZodOptional<ZodNullable<...>>;
type: ZodOptional<ZodNullable<...>>;
value: ZodOptional<ZodNullable<...>>;
}, ZodTypeAny, "passthrough">>, "many">>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/dlp-data-pattern.ts:99

Matching rules — controls proximity, delimiters, regex weights, and metadata filters.

Every inner field is .nullish() — live API confirmed to emit null for unset values (issue #160). proximity_distance keeps the 2..1000 bound only when a number is provided.