@intentic/sandbox-contract 1.397.0 → 1.398.0
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/dist/contracts/privacy.contract.d.ts +330 -0
- package/dist/contracts/privacy.contract.d.ts.map +1 -1
- package/dist/contracts/privacy.contract.js +89 -0
- package/dist/contracts/privacy.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +246 -246
- package/dist/schemas/privacy-leaks.d.ts +487 -0
- package/dist/schemas/privacy-leaks.d.ts.map +1 -0
- package/dist/schemas/privacy-leaks.js +129 -0
- package/dist/schemas/privacy-leaks.js.map +1 -0
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +1 -0
- package/dist/state/auth-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/privacy.contract.ts +107 -0
- package/src/schemas/privacy-leaks.ts +212 -0
- package/src/state/auth-state.ts +3 -0
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PRIVACY_LEAKS_MAX = 500;
|
|
3
|
+
export declare const PRIVACY_LEAK_CONTEXT_REACH = 200;
|
|
4
|
+
export declare const PRIVACY_LEAK_VALUE_MAX = 500;
|
|
5
|
+
export declare const PRIVACY_PROPOSALS_MAX = 20;
|
|
6
|
+
export declare const PRIVACY_SCAN_CONVERSATIONS_MAX = 100;
|
|
7
|
+
export declare const PRIVACY_SCAN_CONVERSATIONS_DEFAULT = 20;
|
|
8
|
+
export declare const PRIVACY_LEAK_ID: RegExp;
|
|
9
|
+
export declare const PRIVACY_PROPOSAL_ID: RegExp;
|
|
10
|
+
export declare const PrivacyLeakOriginSchema: z.ZodEnum<{
|
|
11
|
+
reported: "reported";
|
|
12
|
+
scan: "scan";
|
|
13
|
+
}>;
|
|
14
|
+
export type PrivacyLeakOrigin = z.infer<typeof PrivacyLeakOriginSchema>;
|
|
15
|
+
export declare const PrivacyLeakStateSchema: z.ZodEnum<{
|
|
16
|
+
confirmed: "confirmed";
|
|
17
|
+
dismissed: "dismissed";
|
|
18
|
+
suspected: "suspected";
|
|
19
|
+
}>;
|
|
20
|
+
export type PrivacyLeakState = z.infer<typeof PrivacyLeakStateSchema>;
|
|
21
|
+
export declare const PrivacyLeakSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
at: z.ZodString;
|
|
24
|
+
class: z.ZodEnum<{
|
|
25
|
+
address: "address";
|
|
26
|
+
"bank-account": "bank-account";
|
|
27
|
+
email: "email";
|
|
28
|
+
"identity-document": "identity-document";
|
|
29
|
+
"national-id": "national-id";
|
|
30
|
+
"payment-card": "payment-card";
|
|
31
|
+
"person-name": "person-name";
|
|
32
|
+
phone: "phone";
|
|
33
|
+
"tax-id": "tax-id";
|
|
34
|
+
}>;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
context: z.ZodDefault<z.ZodString>;
|
|
37
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
origin: z.ZodEnum<{
|
|
39
|
+
reported: "reported";
|
|
40
|
+
scan: "scan";
|
|
41
|
+
}>;
|
|
42
|
+
state: z.ZodEnum<{
|
|
43
|
+
confirmed: "confirmed";
|
|
44
|
+
dismissed: "dismissed";
|
|
45
|
+
suspected: "suspected";
|
|
46
|
+
}>;
|
|
47
|
+
why: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type PrivacyLeak = z.infer<typeof PrivacyLeakSchema>;
|
|
50
|
+
export declare const PrivacyLeakWordFactsSchema: z.ZodObject<{
|
|
51
|
+
outline: z.ZodString;
|
|
52
|
+
firstName: z.ZodBoolean;
|
|
53
|
+
surname: z.ZodBoolean;
|
|
54
|
+
surnameForm: z.ZodBoolean;
|
|
55
|
+
ambiguous: z.ZodBoolean;
|
|
56
|
+
never: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type PrivacyLeakWordFacts = z.infer<typeof PrivacyLeakWordFactsSchema>;
|
|
59
|
+
export declare const PrivacyLeakCaughtSchema: z.ZodEnum<{
|
|
60
|
+
detector: "detector";
|
|
61
|
+
model: "model";
|
|
62
|
+
no: "no";
|
|
63
|
+
rule: "rule";
|
|
64
|
+
}>;
|
|
65
|
+
export type PrivacyLeakCaught = z.infer<typeof PrivacyLeakCaughtSchema>;
|
|
66
|
+
export declare const PrivacyLeakViewSchema: z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
at: z.ZodString;
|
|
69
|
+
class: z.ZodEnum<{
|
|
70
|
+
address: "address";
|
|
71
|
+
"bank-account": "bank-account";
|
|
72
|
+
email: "email";
|
|
73
|
+
"identity-document": "identity-document";
|
|
74
|
+
"national-id": "national-id";
|
|
75
|
+
"payment-card": "payment-card";
|
|
76
|
+
"person-name": "person-name";
|
|
77
|
+
phone: "phone";
|
|
78
|
+
"tax-id": "tax-id";
|
|
79
|
+
}>;
|
|
80
|
+
origin: z.ZodEnum<{
|
|
81
|
+
reported: "reported";
|
|
82
|
+
scan: "scan";
|
|
83
|
+
}>;
|
|
84
|
+
state: z.ZodEnum<{
|
|
85
|
+
confirmed: "confirmed";
|
|
86
|
+
dismissed: "dismissed";
|
|
87
|
+
suspected: "suspected";
|
|
88
|
+
}>;
|
|
89
|
+
why: z.ZodOptional<z.ZodString>;
|
|
90
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
outline: z.ZodString;
|
|
92
|
+
length: z.ZodNumber;
|
|
93
|
+
label: z.ZodOptional<z.ZodString>;
|
|
94
|
+
words: z.ZodArray<z.ZodObject<{
|
|
95
|
+
outline: z.ZodString;
|
|
96
|
+
firstName: z.ZodBoolean;
|
|
97
|
+
surname: z.ZodBoolean;
|
|
98
|
+
surnameForm: z.ZodBoolean;
|
|
99
|
+
ambiguous: z.ZodBoolean;
|
|
100
|
+
never: z.ZodBoolean;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
caught: z.ZodEnum<{
|
|
103
|
+
detector: "detector";
|
|
104
|
+
model: "model";
|
|
105
|
+
no: "no";
|
|
106
|
+
rule: "rule";
|
|
107
|
+
}>;
|
|
108
|
+
value: z.ZodOptional<z.ZodString>;
|
|
109
|
+
context: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type PrivacyLeakView = z.infer<typeof PrivacyLeakViewSchema>;
|
|
112
|
+
export declare const PrivacyLeakWordSchema: z.ZodObject<{
|
|
113
|
+
leak: z.ZodString;
|
|
114
|
+
word: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type PrivacyLeakWord = z.infer<typeof PrivacyLeakWordSchema>;
|
|
117
|
+
export declare const PrivacyProposedRuleSchema: z.ZodObject<{
|
|
118
|
+
title: z.ZodString;
|
|
119
|
+
class: z.ZodEnum<{
|
|
120
|
+
address: "address";
|
|
121
|
+
"bank-account": "bank-account";
|
|
122
|
+
email: "email";
|
|
123
|
+
"identity-document": "identity-document";
|
|
124
|
+
"national-id": "national-id";
|
|
125
|
+
"payment-card": "payment-card";
|
|
126
|
+
"person-name": "person-name";
|
|
127
|
+
phone: "phone";
|
|
128
|
+
"tax-id": "tax-id";
|
|
129
|
+
}>;
|
|
130
|
+
match: z.ZodEnum<{
|
|
131
|
+
pattern: "pattern";
|
|
132
|
+
terms: "terms";
|
|
133
|
+
}>;
|
|
134
|
+
terms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
135
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
136
|
+
matchCase: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type PrivacyProposedRule = z.infer<typeof PrivacyProposedRuleSchema>;
|
|
139
|
+
export declare const PrivacyProposedListSchema: z.ZodObject<{
|
|
140
|
+
title: z.ZodString;
|
|
141
|
+
kind: z.ZodEnum<{
|
|
142
|
+
ambiguous: "ambiguous";
|
|
143
|
+
"first-name": "first-name";
|
|
144
|
+
never: "never";
|
|
145
|
+
surname: "surname";
|
|
146
|
+
title: "title";
|
|
147
|
+
}>;
|
|
148
|
+
matching: z.ZodDefault<z.ZodEnum<{
|
|
149
|
+
"as-written": "as-written";
|
|
150
|
+
inflected: "inflected";
|
|
151
|
+
}>>;
|
|
152
|
+
words: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
153
|
+
fromLeaks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
154
|
+
leak: z.ZodString;
|
|
155
|
+
word: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>>>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type PrivacyProposedList = z.infer<typeof PrivacyProposedListSchema>;
|
|
159
|
+
export declare const PrivacyHardeningSchema: z.ZodObject<{
|
|
160
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
161
|
+
title: z.ZodString;
|
|
162
|
+
class: z.ZodEnum<{
|
|
163
|
+
address: "address";
|
|
164
|
+
"bank-account": "bank-account";
|
|
165
|
+
email: "email";
|
|
166
|
+
"identity-document": "identity-document";
|
|
167
|
+
"national-id": "national-id";
|
|
168
|
+
"payment-card": "payment-card";
|
|
169
|
+
"person-name": "person-name";
|
|
170
|
+
phone: "phone";
|
|
171
|
+
"tax-id": "tax-id";
|
|
172
|
+
}>;
|
|
173
|
+
match: z.ZodEnum<{
|
|
174
|
+
pattern: "pattern";
|
|
175
|
+
terms: "terms";
|
|
176
|
+
}>;
|
|
177
|
+
terms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
178
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
179
|
+
matchCase: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
}, z.core.$strip>>>;
|
|
181
|
+
lists: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
182
|
+
title: z.ZodString;
|
|
183
|
+
kind: z.ZodEnum<{
|
|
184
|
+
ambiguous: "ambiguous";
|
|
185
|
+
"first-name": "first-name";
|
|
186
|
+
never: "never";
|
|
187
|
+
surname: "surname";
|
|
188
|
+
title: "title";
|
|
189
|
+
}>;
|
|
190
|
+
matching: z.ZodDefault<z.ZodEnum<{
|
|
191
|
+
"as-written": "as-written";
|
|
192
|
+
inflected: "inflected";
|
|
193
|
+
}>>;
|
|
194
|
+
words: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
195
|
+
fromLeaks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
|
+
leak: z.ZodString;
|
|
197
|
+
word: z.ZodNumber;
|
|
198
|
+
}, z.core.$strip>>>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export type PrivacyHardening = z.infer<typeof PrivacyHardeningSchema>;
|
|
202
|
+
export declare const PrivacyHardeningSampleSchema: z.ZodObject<{
|
|
203
|
+
class: z.ZodEnum<{
|
|
204
|
+
address: "address";
|
|
205
|
+
"bank-account": "bank-account";
|
|
206
|
+
email: "email";
|
|
207
|
+
"identity-document": "identity-document";
|
|
208
|
+
"national-id": "national-id";
|
|
209
|
+
"payment-card": "payment-card";
|
|
210
|
+
"person-name": "person-name";
|
|
211
|
+
phone: "phone";
|
|
212
|
+
"tax-id": "tax-id";
|
|
213
|
+
}>;
|
|
214
|
+
outline: z.ZodString;
|
|
215
|
+
label: z.ZodOptional<z.ZodString>;
|
|
216
|
+
value: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
export type PrivacyHardeningSample = z.infer<typeof PrivacyHardeningSampleSchema>;
|
|
219
|
+
export declare const PrivacyHardeningMeasureSchema: z.ZodObject<{
|
|
220
|
+
leaks: z.ZodObject<{
|
|
221
|
+
total: z.ZodNumber;
|
|
222
|
+
before: z.ZodNumber;
|
|
223
|
+
after: z.ZodNumber;
|
|
224
|
+
missed: z.ZodArray<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
control: z.ZodObject<{
|
|
227
|
+
conversations: z.ZodNumber;
|
|
228
|
+
chars: z.ZodNumber;
|
|
229
|
+
added: z.ZodNumber;
|
|
230
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
231
|
+
class: z.ZodEnum<{
|
|
232
|
+
address: "address";
|
|
233
|
+
"bank-account": "bank-account";
|
|
234
|
+
email: "email";
|
|
235
|
+
"identity-document": "identity-document";
|
|
236
|
+
"national-id": "national-id";
|
|
237
|
+
"payment-card": "payment-card";
|
|
238
|
+
"person-name": "person-name";
|
|
239
|
+
phone: "phone";
|
|
240
|
+
"tax-id": "tax-id";
|
|
241
|
+
}>;
|
|
242
|
+
outline: z.ZodString;
|
|
243
|
+
label: z.ZodOptional<z.ZodString>;
|
|
244
|
+
value: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
problems: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
export type PrivacyHardeningMeasure = z.infer<typeof PrivacyHardeningMeasureSchema>;
|
|
250
|
+
export declare const PrivacyProposalSchema: z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
at: z.ZodString;
|
|
253
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
254
|
+
title: z.ZodString;
|
|
255
|
+
why: z.ZodDefault<z.ZodString>;
|
|
256
|
+
hardening: z.ZodObject<{
|
|
257
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
258
|
+
title: z.ZodString;
|
|
259
|
+
class: z.ZodEnum<{
|
|
260
|
+
address: "address";
|
|
261
|
+
"bank-account": "bank-account";
|
|
262
|
+
email: "email";
|
|
263
|
+
"identity-document": "identity-document";
|
|
264
|
+
"national-id": "national-id";
|
|
265
|
+
"payment-card": "payment-card";
|
|
266
|
+
"person-name": "person-name";
|
|
267
|
+
phone: "phone";
|
|
268
|
+
"tax-id": "tax-id";
|
|
269
|
+
}>;
|
|
270
|
+
match: z.ZodEnum<{
|
|
271
|
+
pattern: "pattern";
|
|
272
|
+
terms: "terms";
|
|
273
|
+
}>;
|
|
274
|
+
terms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
275
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
276
|
+
matchCase: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
}, z.core.$strip>>>;
|
|
278
|
+
lists: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
279
|
+
title: z.ZodString;
|
|
280
|
+
kind: z.ZodEnum<{
|
|
281
|
+
ambiguous: "ambiguous";
|
|
282
|
+
"first-name": "first-name";
|
|
283
|
+
never: "never";
|
|
284
|
+
surname: "surname";
|
|
285
|
+
title: "title";
|
|
286
|
+
}>;
|
|
287
|
+
matching: z.ZodDefault<z.ZodEnum<{
|
|
288
|
+
"as-written": "as-written";
|
|
289
|
+
inflected: "inflected";
|
|
290
|
+
}>>;
|
|
291
|
+
words: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
292
|
+
fromLeaks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
293
|
+
leak: z.ZodString;
|
|
294
|
+
word: z.ZodNumber;
|
|
295
|
+
}, z.core.$strip>>>;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
measured: z.ZodObject<{
|
|
299
|
+
leaks: z.ZodObject<{
|
|
300
|
+
total: z.ZodNumber;
|
|
301
|
+
before: z.ZodNumber;
|
|
302
|
+
after: z.ZodNumber;
|
|
303
|
+
missed: z.ZodArray<z.ZodString>;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
control: z.ZodObject<{
|
|
306
|
+
conversations: z.ZodNumber;
|
|
307
|
+
chars: z.ZodNumber;
|
|
308
|
+
added: z.ZodNumber;
|
|
309
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
310
|
+
class: z.ZodEnum<{
|
|
311
|
+
address: "address";
|
|
312
|
+
"bank-account": "bank-account";
|
|
313
|
+
email: "email";
|
|
314
|
+
"identity-document": "identity-document";
|
|
315
|
+
"national-id": "national-id";
|
|
316
|
+
"payment-card": "payment-card";
|
|
317
|
+
"person-name": "person-name";
|
|
318
|
+
phone: "phone";
|
|
319
|
+
"tax-id": "tax-id";
|
|
320
|
+
}>;
|
|
321
|
+
outline: z.ZodString;
|
|
322
|
+
label: z.ZodOptional<z.ZodString>;
|
|
323
|
+
value: z.ZodOptional<z.ZodString>;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
problems: z.ZodArray<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
export type PrivacyProposal = z.infer<typeof PrivacyProposalSchema>;
|
|
330
|
+
export declare const PrivacyLeaksSchema: z.ZodObject<{
|
|
331
|
+
leaks: z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
at: z.ZodString;
|
|
334
|
+
class: z.ZodEnum<{
|
|
335
|
+
address: "address";
|
|
336
|
+
"bank-account": "bank-account";
|
|
337
|
+
email: "email";
|
|
338
|
+
"identity-document": "identity-document";
|
|
339
|
+
"national-id": "national-id";
|
|
340
|
+
"payment-card": "payment-card";
|
|
341
|
+
"person-name": "person-name";
|
|
342
|
+
phone: "phone";
|
|
343
|
+
"tax-id": "tax-id";
|
|
344
|
+
}>;
|
|
345
|
+
origin: z.ZodEnum<{
|
|
346
|
+
reported: "reported";
|
|
347
|
+
scan: "scan";
|
|
348
|
+
}>;
|
|
349
|
+
state: z.ZodEnum<{
|
|
350
|
+
confirmed: "confirmed";
|
|
351
|
+
dismissed: "dismissed";
|
|
352
|
+
suspected: "suspected";
|
|
353
|
+
}>;
|
|
354
|
+
why: z.ZodOptional<z.ZodString>;
|
|
355
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
356
|
+
outline: z.ZodString;
|
|
357
|
+
length: z.ZodNumber;
|
|
358
|
+
label: z.ZodOptional<z.ZodString>;
|
|
359
|
+
words: z.ZodArray<z.ZodObject<{
|
|
360
|
+
outline: z.ZodString;
|
|
361
|
+
firstName: z.ZodBoolean;
|
|
362
|
+
surname: z.ZodBoolean;
|
|
363
|
+
surnameForm: z.ZodBoolean;
|
|
364
|
+
ambiguous: z.ZodBoolean;
|
|
365
|
+
never: z.ZodBoolean;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
caught: z.ZodEnum<{
|
|
368
|
+
detector: "detector";
|
|
369
|
+
model: "model";
|
|
370
|
+
no: "no";
|
|
371
|
+
rule: "rule";
|
|
372
|
+
}>;
|
|
373
|
+
value: z.ZodOptional<z.ZodString>;
|
|
374
|
+
context: z.ZodOptional<z.ZodString>;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
377
|
+
id: z.ZodString;
|
|
378
|
+
at: z.ZodString;
|
|
379
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
380
|
+
title: z.ZodString;
|
|
381
|
+
why: z.ZodDefault<z.ZodString>;
|
|
382
|
+
hardening: z.ZodObject<{
|
|
383
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
384
|
+
title: z.ZodString;
|
|
385
|
+
class: z.ZodEnum<{
|
|
386
|
+
address: "address";
|
|
387
|
+
"bank-account": "bank-account";
|
|
388
|
+
email: "email";
|
|
389
|
+
"identity-document": "identity-document";
|
|
390
|
+
"national-id": "national-id";
|
|
391
|
+
"payment-card": "payment-card";
|
|
392
|
+
"person-name": "person-name";
|
|
393
|
+
phone: "phone";
|
|
394
|
+
"tax-id": "tax-id";
|
|
395
|
+
}>;
|
|
396
|
+
match: z.ZodEnum<{
|
|
397
|
+
pattern: "pattern";
|
|
398
|
+
terms: "terms";
|
|
399
|
+
}>;
|
|
400
|
+
terms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
401
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
402
|
+
matchCase: z.ZodDefault<z.ZodBoolean>;
|
|
403
|
+
}, z.core.$strip>>>;
|
|
404
|
+
lists: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
405
|
+
title: z.ZodString;
|
|
406
|
+
kind: z.ZodEnum<{
|
|
407
|
+
ambiguous: "ambiguous";
|
|
408
|
+
"first-name": "first-name";
|
|
409
|
+
never: "never";
|
|
410
|
+
surname: "surname";
|
|
411
|
+
title: "title";
|
|
412
|
+
}>;
|
|
413
|
+
matching: z.ZodDefault<z.ZodEnum<{
|
|
414
|
+
"as-written": "as-written";
|
|
415
|
+
inflected: "inflected";
|
|
416
|
+
}>>;
|
|
417
|
+
words: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
418
|
+
fromLeaks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
419
|
+
leak: z.ZodString;
|
|
420
|
+
word: z.ZodNumber;
|
|
421
|
+
}, z.core.$strip>>>;
|
|
422
|
+
}, z.core.$strip>>>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
measured: z.ZodObject<{
|
|
425
|
+
leaks: z.ZodObject<{
|
|
426
|
+
total: z.ZodNumber;
|
|
427
|
+
before: z.ZodNumber;
|
|
428
|
+
after: z.ZodNumber;
|
|
429
|
+
missed: z.ZodArray<z.ZodString>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
control: z.ZodObject<{
|
|
432
|
+
conversations: z.ZodNumber;
|
|
433
|
+
chars: z.ZodNumber;
|
|
434
|
+
added: z.ZodNumber;
|
|
435
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
436
|
+
class: z.ZodEnum<{
|
|
437
|
+
address: "address";
|
|
438
|
+
"bank-account": "bank-account";
|
|
439
|
+
email: "email";
|
|
440
|
+
"identity-document": "identity-document";
|
|
441
|
+
"national-id": "national-id";
|
|
442
|
+
"payment-card": "payment-card";
|
|
443
|
+
"person-name": "person-name";
|
|
444
|
+
phone: "phone";
|
|
445
|
+
"tax-id": "tax-id";
|
|
446
|
+
}>;
|
|
447
|
+
outline: z.ZodString;
|
|
448
|
+
label: z.ZodOptional<z.ZodString>;
|
|
449
|
+
value: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
problems: z.ZodArray<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
words: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
456
|
+
revealed: z.ZodBoolean;
|
|
457
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
458
|
+
conversationId: z.ZodString;
|
|
459
|
+
at: z.ZodString;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export type PrivacyLeaks = z.infer<typeof PrivacyLeaksSchema>;
|
|
463
|
+
export declare const PrivacyLeakReportSchema: z.ZodObject<{
|
|
464
|
+
value: z.ZodString;
|
|
465
|
+
class: z.ZodEnum<{
|
|
466
|
+
address: "address";
|
|
467
|
+
"bank-account": "bank-account";
|
|
468
|
+
email: "email";
|
|
469
|
+
"identity-document": "identity-document";
|
|
470
|
+
"national-id": "national-id";
|
|
471
|
+
"payment-card": "payment-card";
|
|
472
|
+
"person-name": "person-name";
|
|
473
|
+
phone: "phone";
|
|
474
|
+
"tax-id": "tax-id";
|
|
475
|
+
}>;
|
|
476
|
+
context: z.ZodOptional<z.ZodString>;
|
|
477
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
export type PrivacyLeakReport = z.infer<typeof PrivacyLeakReportSchema>;
|
|
480
|
+
export declare const PRIVACY_LEAK_SOURCE_PREFIX = "leak:";
|
|
481
|
+
export declare const leakSource: (id: string) => string;
|
|
482
|
+
export declare const leakWordKey: (word: {
|
|
483
|
+
readonly leak: string;
|
|
484
|
+
readonly word: number;
|
|
485
|
+
}) => string;
|
|
486
|
+
export declare const leakWordsOf: (value: string) => string[];
|
|
487
|
+
//#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,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAClD,eAAO,MAAM,UAAU,OAAQ,MAAM,KAAG,MAA8C,CAAC;AAGvF,eAAO,MAAM,WAAW,SAAU;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,MAA6C,CAAC;AAGnI,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,MAAM,EAA4D,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PersonalDataClassSchema, PrivacyNameListKindSchema, PrivacyNameMatchingSchema, PRIVACY_PATTERN_MAX, PRIVACY_RULE_TERMS_MAX, PRIVACY_TERM_MAX, PRIVACY_TITLE_MAX, PRIVACY_WORD_MAX, PrivacyRuleMatchSchema, } from "./privacy.js";
|
|
3
|
+
export const PRIVACY_LEAKS_MAX = 500;
|
|
4
|
+
export const PRIVACY_LEAK_CONTEXT_REACH = 200;
|
|
5
|
+
export const PRIVACY_LEAK_VALUE_MAX = 500;
|
|
6
|
+
export const PRIVACY_PROPOSALS_MAX = 20;
|
|
7
|
+
export const PRIVACY_SCAN_CONVERSATIONS_MAX = 100;
|
|
8
|
+
export const PRIVACY_SCAN_CONVERSATIONS_DEFAULT = 20;
|
|
9
|
+
export const PRIVACY_LEAK_ID = /^L[1-9]\d{0,6}$/u;
|
|
10
|
+
export const PRIVACY_PROPOSAL_ID = /^P[1-9]\d{0,6}$/u;
|
|
11
|
+
export const PrivacyLeakOriginSchema = z.enum(["reported", "scan"]);
|
|
12
|
+
export const PrivacyLeakStateSchema = z.enum(["suspected", "confirmed", "dismissed"]);
|
|
13
|
+
export const PrivacyLeakSchema = z.object({
|
|
14
|
+
id: z.string().regex(PRIVACY_LEAK_ID),
|
|
15
|
+
at: z.string().describe("When it was reported or found, as an ISO timestamp."),
|
|
16
|
+
class: PersonalDataClassSchema,
|
|
17
|
+
value: z.string().min(2).max(PRIVACY_LEAK_VALUE_MAX),
|
|
18
|
+
context: z
|
|
19
|
+
.string()
|
|
20
|
+
.max(PRIVACY_LEAK_CONTEXT_REACH * 2 + PRIVACY_LEAK_VALUE_MAX)
|
|
21
|
+
.default("")
|
|
22
|
+
.describe("The text around the value as it was written, the value in it; empty when it was reported alone."),
|
|
23
|
+
conversationId: z.string().max(200).optional(),
|
|
24
|
+
origin: PrivacyLeakOriginSchema,
|
|
25
|
+
state: PrivacyLeakStateSchema,
|
|
26
|
+
why: z.string().max(200).optional().describe("Why a scan suspects it: the field label it stood under, or the name model."),
|
|
27
|
+
});
|
|
28
|
+
export const PrivacyLeakWordFactsSchema = z.object({
|
|
29
|
+
outline: z.string().describe("The word with each capital as A, small letter as a, digit as 9; anything else as it is."),
|
|
30
|
+
firstName: z.boolean(),
|
|
31
|
+
surname: z.boolean(),
|
|
32
|
+
surnameForm: z.boolean().describe("Shaped like a Polish surname (-ski, -cki, -wicz…)."),
|
|
33
|
+
ambiguous: z.boolean().describe("Also an ordinary word in some language."),
|
|
34
|
+
never: z.boolean(),
|
|
35
|
+
});
|
|
36
|
+
export const PrivacyLeakCaughtSchema = z.enum(["rule", "detector", "model", "no"]);
|
|
37
|
+
export const PrivacyLeakViewSchema = z.object({
|
|
38
|
+
id: z.string(),
|
|
39
|
+
at: z.string(),
|
|
40
|
+
class: PersonalDataClassSchema,
|
|
41
|
+
origin: PrivacyLeakOriginSchema,
|
|
42
|
+
state: PrivacyLeakStateSchema,
|
|
43
|
+
why: z.string().optional(),
|
|
44
|
+
conversationId: z.string().optional(),
|
|
45
|
+
outline: z.string().describe("The value with each capital as A, small letter as a, digit as 9; separators as they are."),
|
|
46
|
+
length: z.number().int(),
|
|
47
|
+
label: z
|
|
48
|
+
.string()
|
|
49
|
+
.optional()
|
|
50
|
+
.describe("Up to four words just before the value on its line or in the cell before it (a field's label: `Nr paszportu`), each word that could be a name or holds a digit written as its outline."),
|
|
51
|
+
words: z.array(PrivacyLeakWordFactsSchema).describe("Each word of the value, in order: what a list proposal names by its position."),
|
|
52
|
+
caught: PrivacyLeakCaughtSchema.describe("What finds it now with the policy as saved, its exact copy in the vault set aside."),
|
|
53
|
+
value: z.string().optional().describe("Only for someone who may read it."),
|
|
54
|
+
context: z.string().optional().describe("Only for someone who may read it."),
|
|
55
|
+
});
|
|
56
|
+
export const PrivacyLeakWordSchema = z.object({
|
|
57
|
+
leak: z.string().regex(PRIVACY_LEAK_ID),
|
|
58
|
+
word: z.number().int().min(0).max(20),
|
|
59
|
+
});
|
|
60
|
+
export const PrivacyProposedRuleSchema = z.object({
|
|
61
|
+
title: z.string().min(1).max(PRIVACY_TITLE_MAX),
|
|
62
|
+
class: PersonalDataClassSchema,
|
|
63
|
+
match: PrivacyRuleMatchSchema,
|
|
64
|
+
terms: z.array(z.string().min(1).max(PRIVACY_TERM_MAX)).max(PRIVACY_RULE_TERMS_MAX).default([]),
|
|
65
|
+
pattern: z.string().max(PRIVACY_PATTERN_MAX).default(""),
|
|
66
|
+
matchCase: z.boolean().default(false),
|
|
67
|
+
});
|
|
68
|
+
export const PrivacyProposedListSchema = z.object({
|
|
69
|
+
title: z.string().min(1).max(PRIVACY_TITLE_MAX),
|
|
70
|
+
kind: PrivacyNameListKindSchema,
|
|
71
|
+
matching: PrivacyNameMatchingSchema.default("inflected"),
|
|
72
|
+
words: z.array(z.string().min(1).max(PRIVACY_WORD_MAX)).max(500).default([]),
|
|
73
|
+
fromLeaks: z.array(PrivacyLeakWordSchema).max(500).default([]),
|
|
74
|
+
});
|
|
75
|
+
export const PrivacyHardeningSchema = z.object({
|
|
76
|
+
rules: z.array(PrivacyProposedRuleSchema).max(20).default([]),
|
|
77
|
+
lists: z.array(PrivacyProposedListSchema).max(10).default([]),
|
|
78
|
+
});
|
|
79
|
+
export const PrivacyHardeningSampleSchema = z.object({
|
|
80
|
+
class: PersonalDataClassSchema,
|
|
81
|
+
outline: z.string(),
|
|
82
|
+
label: z.string().optional(),
|
|
83
|
+
value: z.string().optional().describe("Only for someone who may read it."),
|
|
84
|
+
});
|
|
85
|
+
export const PrivacyHardeningMeasureSchema = z.object({
|
|
86
|
+
leaks: z.object({
|
|
87
|
+
total: z.number().int().describe("Confirmed leaks measured against."),
|
|
88
|
+
before: z.number().int().describe("Caught by the policy as saved, without the vault's exact copies."),
|
|
89
|
+
after: z.number().int().describe("Caught with the additions."),
|
|
90
|
+
missed: z.array(z.string()).describe("Ids of the confirmed leaks still not caught."),
|
|
91
|
+
}),
|
|
92
|
+
control: z.object({
|
|
93
|
+
conversations: z.number().int(),
|
|
94
|
+
chars: z.number().int(),
|
|
95
|
+
added: z.number().int().describe("Values the additions would mask there that nothing masks today, the leaks themselves left out."),
|
|
96
|
+
samples: z.array(PrivacyHardeningSampleSchema).max(12),
|
|
97
|
+
}),
|
|
98
|
+
problems: z.array(z.string()).describe("Rules that cannot be saved as written, each with why."),
|
|
99
|
+
});
|
|
100
|
+
export const PrivacyProposalSchema = z.object({
|
|
101
|
+
id: z.string().regex(PRIVACY_PROPOSAL_ID),
|
|
102
|
+
at: z.string(),
|
|
103
|
+
conversationId: z.string().max(200).optional(),
|
|
104
|
+
title: z.string().min(1).max(PRIVACY_TITLE_MAX),
|
|
105
|
+
why: z.string().max(2000).default(""),
|
|
106
|
+
hardening: PrivacyHardeningSchema,
|
|
107
|
+
measured: PrivacyHardeningMeasureSchema,
|
|
108
|
+
});
|
|
109
|
+
export const PrivacyLeaksSchema = z.object({
|
|
110
|
+
leaks: z.array(PrivacyLeakViewSchema),
|
|
111
|
+
proposals: z.array(PrivacyProposalSchema),
|
|
112
|
+
words: z.record(z.string(), z.string()),
|
|
113
|
+
revealed: z.boolean().describe("Whether this reader is shown values: a person who runs the shield, or a session on a trusted or local provider."),
|
|
114
|
+
session: z
|
|
115
|
+
.object({ conversationId: z.string(), at: z.string() })
|
|
116
|
+
.optional()
|
|
117
|
+
.describe("The hardening session last started from the page."),
|
|
118
|
+
});
|
|
119
|
+
export const PrivacyLeakReportSchema = z.object({
|
|
120
|
+
value: z.string().trim().min(2).max(PRIVACY_LEAK_VALUE_MAX),
|
|
121
|
+
class: PersonalDataClassSchema,
|
|
122
|
+
context: z.string().max(20_000).optional().describe("The text it stood in; the daemon keeps the stretch around the value."),
|
|
123
|
+
conversationId: z.string().max(200).optional(),
|
|
124
|
+
});
|
|
125
|
+
export const PRIVACY_LEAK_SOURCE_PREFIX = "leak:";
|
|
126
|
+
export const leakSource = (id) => `${PRIVACY_LEAK_SOURCE_PREFIX}${id}`;
|
|
127
|
+
export const leakWordKey = (word) => `${word.leak}:${String(word.word)}`;
|
|
128
|
+
export const leakWordsOf = (value) => value.split(/[\s,;|]+/u).filter((word) => word !== "");
|
|
129
|
+
//# sourceMappingURL=privacy-leaks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privacy-leaks.js","sourceRoot":"","sources":["../../src/schemas/privacy-leaks.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,GACzB,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,iBAAiB,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M,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sEAAsE,CAAC;IAC3H,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,GAAG,0BAA0B,GAAG,EAAE,EAAE,CAAC;AAGvF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAsD,EAAU,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAGnI,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAY,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBxD,eAAO,MAAM,sBAAsB,2BAAqE,CAAC;AAGzG,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBxD,eAAO,MAAM,sBAAsB,2BAAqE,CAAC;AAGzG,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAyEhD,CAAC"}
|
package/dist/state/auth-state.js
CHANGED
|
@@ -11,6 +11,7 @@ export const AUTH_STATE_FILES = [
|
|
|
11
11
|
{ path: "extension-secrets.json", portability: "secret" },
|
|
12
12
|
{ path: "privacy-vault.json", portability: "secret" },
|
|
13
13
|
{ path: "privacy-images/", portability: "secret" },
|
|
14
|
+
{ path: "privacy-leaks.json", portability: "secret" },
|
|
14
15
|
{ path: "ssh-keys/", portability: "secret" },
|
|
15
16
|
{ path: "converting/", portability: "secret" },
|
|
16
17
|
{ path: "owner-grants.json", portability: "identity", note: "Give sandbox-wide permissions again from the Access tab." },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.js","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,SAAS,gBAAsD,CAAC;AAGzG,MAAM,CAAC,MAAM,gBAAgB,GAAyB;IAIlD,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,OAAO,EAAE;IAEvD,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE;IAEnD,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,EAAE,OAAO,EAAE;IAErD,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE;IAGnD,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,EAAE;IAIpD,EAAE,IAAI,EAAE,sBAAsB,EAAE,WAAW,EAAE,QAAQ,EAAE;IACvD,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,QAAQ,EAAE;IAC1D,EAAE,IAAI,EAAE,wBAAwB,EAAE,WAAW,EAAE,QAAQ,EAAE;IAEzD,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,QAAQ,EAAE;IACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"auth-state.js","sourceRoot":"","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