addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / enable / additionalProperties
Added value: +false
addedInput schema / properties / enable / description
Added value: +"Per-type detection toggles; each key defaults to true (detected) when omitted. Set a key to false to skip that PII type."
addedInput schema / properties / enable / properties / cc / description
Added value: +"Detect credit card numbers (Luhn validated)."
addedInput schema / properties / enable / properties / date / description
Added value: +"Detect ISO-8601 dates."
addedInput schema / properties / enable / properties / email / description
Added value: +"Detect email addresses."
addedInput schema / properties / enable / properties / iban / description
Added value: +"Detect IBAN account numbers (mod-97 validated)."
addedInput schema / properties / enable / properties / ip / description
Added value: +"Detect IPv4 and IPv6 addresses."
addedInput schema / properties / enable / properties / phone / description
Added value: +"Detect NANP or E.164 phone numbers."
addedInput schema / properties / enable / properties / ssn / description
Added value: +"Detect US Social Security Numbers."
removedInput schema / properties / enable / required
Removed value: -[
- "email",
- "phone",
- "ssn",
- "iban",
- "cc",
- "ip",
- "date"
-]
addedInput schema / properties / mask / default
Added value: +"token"
addedInput schema / properties / mask / description
Added value: +"Masking mode. token replaces each match with a bracketed type label; partial redacts the middle and keeps a few leading and trailing characters; counter substitutes per-type sequential ids such as email-1."
addedInput schema / properties / mask / enum
Added value: +[
+ "token",
+ "partial",
+ "counter"
+]
addedInput schema / properties / text / description
Added value: +"Text to scan for PII. Maximum 1000000 characters; longer input is rejected."
changedInput schema / required
Previous value: -[
- "text",
- "mask",
- "enable"
-]New value: +[
+ "text"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "result": {
+ "description": "The anonymization output.",
+ "properties": {
+ "anonymized": {
+ "description": "The text with all detected PII replaced.",
+ "type": "string"
+ },
+ "counts": {
+ "description": "Count of matches per PII type.",
+ "properties": {
+ "cc": {
+ "description": "Credit card matches.",
+ "type": "integer"
+ },
+ "date": {
+ "description": "Date matches.",
+ "type": "integer"
+ },
+ "email": {
+ "description": "Email matches.",
+ "type": "integer"
+ },
+ "iban": {
+ "description": "IBAN matches.",
+ "type": "integer"
+ },
+ "ip": {
+ "description": "IP matches.",
+ "type": "integer"
+ },
+ "phone": {
+ "description": "Phone matches.",
+ "type": "integer"
+ },
+ "ssn": {
+ "description": "SSN matches.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "mask": {
+ "description": "The masking mode applied (token, partial, or counter).",
+ "type": "string"
+ },
+ "replacements": {
+ "description": "One entry per replaced match, in input order.",
+ "items": {
+ "properties": {
+ "offset": {
+ "description": "Zero-based start index of the match in the original text.",
+ "type": "integer"
+ },
+ "original": {
+ "description": "The matched substring before masking.",
+ "type": "string"
+ },
+ "replacement": {
+ "description": "The value it was replaced with.",
+ "type": "string"
+ },
+ "type": {
+ "description": "PII type (email, phone, ssn, iban, cc, ip, or date).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "description": "The original submitted text, echoed back.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "Whether anonymization succeeded.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}