solidprivacy commited on
Commit
24795c8
·
1 Parent(s): 8400f19

Add machine-readable processed-text selection contract

Browse files
test_cases/processed_text_selection_masking/contract.json ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "approved_at": "2026-08-04T00:09:00+02:00",
4
+ "actions": {
5
+ "inspect": "inspect_selection",
6
+ "commit": "commit_manual_mask"
7
+ },
8
+ "scope": "all_exact",
9
+ "limits": {
10
+ "max_payload_utf8_bytes": 8192,
11
+ "max_selection_codepoints": 160,
12
+ "max_selection_lines": 1,
13
+ "replay_event_history": 128,
14
+ "ready_max_occurrences": 5,
15
+ "confirmation_max_occurrences": 20
16
+ },
17
+ "formats": {
18
+ "event_id_regex": "^[A-Za-z0-9_-]{16,80}$",
19
+ "document_scope_key_regex": "^[0-9a-f]{16}$",
20
+ "processed_text_hash_regex": "^[0-9a-f]{64}$",
21
+ "offset_unit": "utf16_code_units"
22
+ },
23
+ "inspection_statuses": [
24
+ "ready",
25
+ "confirmation_required",
26
+ "blocked"
27
+ ],
28
+ "quick_types": [
29
+ {
30
+ "key": "person",
31
+ "user_label": "Persoon",
32
+ "manual_label": "Persoon",
33
+ "entity_type": "PERSON",
34
+ "placeholder_prefix": "PERSOON"
35
+ },
36
+ {
37
+ "key": "organization",
38
+ "user_label": "Organisatie",
39
+ "manual_label": "Organisatie",
40
+ "entity_type": "ORGANIZATION",
41
+ "placeholder_prefix": "ORGANISATIE"
42
+ },
43
+ {
44
+ "key": "location",
45
+ "user_label": "Adres of locatie",
46
+ "manual_label": "Adres of locatie",
47
+ "entity_type": "LOCATION",
48
+ "placeholder_prefix": "LOCATIE"
49
+ },
50
+ {
51
+ "key": "email",
52
+ "user_label": "E-mailadres",
53
+ "manual_label": "E-mailadres",
54
+ "entity_type": "EMAIL_ADDRESS",
55
+ "placeholder_prefix": "EMAIL"
56
+ },
57
+ {
58
+ "key": "phone",
59
+ "user_label": "Telefoonnummer",
60
+ "manual_label": "Telefoonnummer",
61
+ "entity_type": "NL_PHONE_NUMBER",
62
+ "placeholder_prefix": "TELEFOON"
63
+ },
64
+ {
65
+ "key": "date_time",
66
+ "user_label": "Datum of tijd",
67
+ "manual_label": "Datum of tijd",
68
+ "entity_type": "DATE_TIME",
69
+ "placeholder_prefix": "DATUM"
70
+ },
71
+ {
72
+ "key": "reference",
73
+ "user_label": "Nummer of referentie",
74
+ "manual_label": "Nummer of referentie",
75
+ "entity_type": "NL_OTHER_REFERENCE",
76
+ "placeholder_prefix": "OVERIGE_REFERENTIE"
77
+ },
78
+ {
79
+ "key": "other",
80
+ "user_label": "Overige waarde",
81
+ "manual_label": "Overige waarde",
82
+ "entity_type": "MANUAL",
83
+ "placeholder_prefix": "WAARDE"
84
+ }
85
+ ],
86
+ "row_contract": {
87
+ "include": true,
88
+ "remember": false,
89
+ "source": "manual_selection",
90
+ "source_label": "Handmatig uit tekst",
91
+ "review_status": "manual"
92
+ },
93
+ "collision_policy": {
94
+ "block_embedded_substrings": true,
95
+ "block_exact_duplicate_rows": true,
96
+ "block_nested_included_find_values": true,
97
+ "block_marked_range_intersection": true,
98
+ "token_continuation_categories": [
99
+ "unicode_letter",
100
+ "unicode_number",
101
+ "unicode_combining_mark",
102
+ "underscore",
103
+ "hyphen_or_dash",
104
+ "apostrophe"
105
+ ]
106
+ },
107
+ "confirmation_policy": {
108
+ "ready": "1_to_5",
109
+ "confirmation_required": "6_to_20",
110
+ "blocked": "more_than_20"
111
+ },
112
+ "fallbacks": {
113
+ "manual_form": "Gemiste waarde toevoegen",
114
+ "visible_action": "Masker selectie",
115
+ "undo": "Ongedaan maken"
116
+ },
117
+ "security": {
118
+ "server_authoritative": true,
119
+ "external_network_calls": false,
120
+ "browser_persistence": false,
121
+ "external_assets": false,
122
+ "frontend_placeholder_creation": false,
123
+ "frontend_table_mutation": false,
124
+ "scrub_key_semantics_changed": false,
125
+ "export_semantics_changed": false,
126
+ "reinsert_semantics_changed": false
127
+ }
128
+ }