open-privacy-protocol 0.0.0-stage → 0.1.0-alpha.2
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/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +106 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +27 -0
- package/dist/client.d.ts +47 -0
- package/dist/client.js +70 -0
- package/dist/core.d.ts +72 -0
- package/dist/core.js +300 -0
- package/dist/data.d.ts +972 -0
- package/dist/data.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/package.json +67 -4
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
export declare const SCHEMAS: {
|
|
2
|
+
readonly catalog: {
|
|
3
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
4
|
+
readonly $id: "https://openprivacyprotocol.com/schema/0.1/catalog.schema.json";
|
|
5
|
+
readonly title: "OPP catalog";
|
|
6
|
+
readonly type: "object";
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly opp: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly minLength: 1;
|
|
11
|
+
};
|
|
12
|
+
readonly name: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly minLength: 1;
|
|
15
|
+
};
|
|
16
|
+
readonly version: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly minLength: 1;
|
|
19
|
+
};
|
|
20
|
+
readonly description: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
};
|
|
23
|
+
readonly extends: {
|
|
24
|
+
readonly type: "array";
|
|
25
|
+
readonly items: {
|
|
26
|
+
readonly $ref: "#/$defs/CatalogRef";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly groups: {
|
|
30
|
+
readonly type: "array";
|
|
31
|
+
readonly minItems: 1;
|
|
32
|
+
readonly items: {
|
|
33
|
+
readonly $ref: "#/$defs/Group";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly classes: {
|
|
37
|
+
readonly type: "array";
|
|
38
|
+
readonly minItems: 1;
|
|
39
|
+
readonly items: {
|
|
40
|
+
readonly $ref: "#/$defs/Class";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly references: {
|
|
44
|
+
readonly type: "array";
|
|
45
|
+
readonly items: {
|
|
46
|
+
readonly $ref: "#/$defs/ReferenceSource";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["opp", "name", "version", "groups", "classes"];
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
readonly $defs: {
|
|
53
|
+
readonly Sensitivity: {
|
|
54
|
+
readonly enum: readonly ["public", "internal", "confidential", "restricted"];
|
|
55
|
+
};
|
|
56
|
+
readonly Handling: {
|
|
57
|
+
readonly enum: readonly ["allow", "generalize", "pseudonymize", "redact", "block"];
|
|
58
|
+
};
|
|
59
|
+
readonly Destination: {
|
|
60
|
+
readonly enum: readonly ["internal", "partner", "external_ai", "public"];
|
|
61
|
+
};
|
|
62
|
+
readonly Action: {
|
|
63
|
+
readonly enum: readonly ["allow", "generalize", "pseudonymize", "redact", "block", "review", "handling"];
|
|
64
|
+
};
|
|
65
|
+
readonly Status: {
|
|
66
|
+
readonly enum: readonly ["proposed", "certified"];
|
|
67
|
+
};
|
|
68
|
+
readonly CatalogRef: {
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly name: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
};
|
|
75
|
+
readonly version: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly minLength: 1;
|
|
78
|
+
};
|
|
79
|
+
readonly url: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
readonly minLength: 1;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly required: readonly ["name", "version"];
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
};
|
|
87
|
+
readonly Extension: {
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly vendor_name: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly minLength: 1;
|
|
93
|
+
};
|
|
94
|
+
readonly data: {
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly required: readonly ["vendor_name", "data"];
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
};
|
|
101
|
+
readonly Group: {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly id: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
107
|
+
};
|
|
108
|
+
readonly label: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly minLength: 1;
|
|
111
|
+
};
|
|
112
|
+
readonly description: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly required: readonly ["id", "label"];
|
|
117
|
+
readonly additionalProperties: false;
|
|
118
|
+
};
|
|
119
|
+
readonly ReferenceSource: {
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly properties: {
|
|
122
|
+
readonly id: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
125
|
+
};
|
|
126
|
+
readonly title: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly minLength: 1;
|
|
129
|
+
};
|
|
130
|
+
readonly url: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly minLength: 1;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly required: readonly ["id", "title"];
|
|
136
|
+
readonly additionalProperties: false;
|
|
137
|
+
};
|
|
138
|
+
readonly Reference: {
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly properties: {
|
|
141
|
+
readonly source: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
144
|
+
};
|
|
145
|
+
readonly item: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly minLength: 1;
|
|
148
|
+
};
|
|
149
|
+
readonly note: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly required: readonly ["source", "item"];
|
|
154
|
+
readonly additionalProperties: false;
|
|
155
|
+
};
|
|
156
|
+
readonly Hints: {
|
|
157
|
+
readonly type: "object";
|
|
158
|
+
readonly properties: {
|
|
159
|
+
readonly name_hints: {
|
|
160
|
+
readonly type: "array";
|
|
161
|
+
readonly items: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly minLength: 1;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly value_types: {
|
|
167
|
+
readonly type: "array";
|
|
168
|
+
readonly items: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly minLength: 1;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly cues: {
|
|
174
|
+
readonly type: "array";
|
|
175
|
+
readonly items: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly minLength: 1;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly required: readonly [];
|
|
182
|
+
readonly additionalProperties: false;
|
|
183
|
+
};
|
|
184
|
+
readonly Class: {
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly properties: {
|
|
187
|
+
readonly id: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
190
|
+
};
|
|
191
|
+
readonly label: {
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
readonly minLength: 1;
|
|
194
|
+
};
|
|
195
|
+
readonly description: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
readonly minLength: 1;
|
|
198
|
+
};
|
|
199
|
+
readonly group: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
202
|
+
};
|
|
203
|
+
readonly kind: {
|
|
204
|
+
readonly enum: readonly ["value", "topic"];
|
|
205
|
+
};
|
|
206
|
+
readonly sensitivity: {
|
|
207
|
+
readonly $ref: "#/$defs/Sensitivity";
|
|
208
|
+
};
|
|
209
|
+
readonly handling: {
|
|
210
|
+
readonly $ref: "#/$defs/Handling";
|
|
211
|
+
};
|
|
212
|
+
readonly refs: {
|
|
213
|
+
readonly type: "array";
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly $ref: "#/$defs/Reference";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly hints: {
|
|
219
|
+
readonly $ref: "#/$defs/Hints";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
readonly required: readonly ["id", "label", "description", "group", "kind", "sensitivity", "handling"];
|
|
223
|
+
readonly additionalProperties: false;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly model: {
|
|
228
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
229
|
+
readonly $id: "https://openprivacyprotocol.com/schema/0.1/model.schema.json";
|
|
230
|
+
readonly title: "OPP privacy model";
|
|
231
|
+
readonly type: "object";
|
|
232
|
+
readonly properties: {
|
|
233
|
+
readonly opp: {
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
readonly minLength: 1;
|
|
236
|
+
};
|
|
237
|
+
readonly name: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly minLength: 1;
|
|
240
|
+
};
|
|
241
|
+
readonly organization: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly minLength: 1;
|
|
244
|
+
};
|
|
245
|
+
readonly description: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
};
|
|
248
|
+
readonly catalog: {
|
|
249
|
+
readonly $ref: "#/$defs/CatalogRef";
|
|
250
|
+
};
|
|
251
|
+
readonly sources: {
|
|
252
|
+
readonly type: "array";
|
|
253
|
+
readonly items: {
|
|
254
|
+
readonly $ref: "#/$defs/Source";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly concepts: {
|
|
258
|
+
readonly type: "array";
|
|
259
|
+
readonly items: {
|
|
260
|
+
readonly $ref: "#/$defs/Concept";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly identifiers: {
|
|
264
|
+
readonly type: "array";
|
|
265
|
+
readonly items: {
|
|
266
|
+
readonly $ref: "#/$defs/Identifier";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly terms: {
|
|
270
|
+
readonly type: "array";
|
|
271
|
+
readonly items: {
|
|
272
|
+
readonly $ref: "#/$defs/Term";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
readonly rules: {
|
|
276
|
+
readonly $ref: "#/$defs/Rules";
|
|
277
|
+
};
|
|
278
|
+
readonly provenance: {
|
|
279
|
+
readonly $ref: "#/$defs/Provenance";
|
|
280
|
+
};
|
|
281
|
+
readonly extensions: {
|
|
282
|
+
readonly type: "array";
|
|
283
|
+
readonly items: {
|
|
284
|
+
readonly $ref: "#/$defs/Extension";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly classifications: {
|
|
288
|
+
readonly type: "array";
|
|
289
|
+
readonly items: {
|
|
290
|
+
readonly $ref: "#/$defs/Classification_setting";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
readonly required: readonly ["opp", "name", "organization", "catalog", "sources"];
|
|
295
|
+
readonly additionalProperties: false;
|
|
296
|
+
readonly $defs: {
|
|
297
|
+
readonly Sensitivity: {
|
|
298
|
+
readonly enum: readonly ["public", "internal", "confidential", "restricted"];
|
|
299
|
+
};
|
|
300
|
+
readonly Handling: {
|
|
301
|
+
readonly enum: readonly ["allow", "generalize", "pseudonymize", "redact", "block"];
|
|
302
|
+
};
|
|
303
|
+
readonly Destination: {
|
|
304
|
+
readonly enum: readonly ["internal", "partner", "external_ai", "public"];
|
|
305
|
+
};
|
|
306
|
+
readonly Action: {
|
|
307
|
+
readonly enum: readonly ["allow", "generalize", "pseudonymize", "redact", "block", "review", "handling"];
|
|
308
|
+
};
|
|
309
|
+
readonly Status: {
|
|
310
|
+
readonly enum: readonly ["proposed", "certified"];
|
|
311
|
+
};
|
|
312
|
+
readonly CatalogRef: {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly properties: {
|
|
315
|
+
readonly name: {
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
readonly minLength: 1;
|
|
318
|
+
};
|
|
319
|
+
readonly version: {
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
readonly minLength: 1;
|
|
322
|
+
};
|
|
323
|
+
readonly url: {
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
readonly minLength: 1;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
readonly required: readonly ["name", "version"];
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
};
|
|
331
|
+
readonly Extension: {
|
|
332
|
+
readonly type: "object";
|
|
333
|
+
readonly properties: {
|
|
334
|
+
readonly vendor_name: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 1;
|
|
337
|
+
};
|
|
338
|
+
readonly data: {
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly required: readonly ["vendor_name", "data"];
|
|
343
|
+
readonly additionalProperties: false;
|
|
344
|
+
};
|
|
345
|
+
readonly Evidence: {
|
|
346
|
+
readonly type: "object";
|
|
347
|
+
readonly properties: {
|
|
348
|
+
readonly kind: {
|
|
349
|
+
readonly enum: readonly ["name", "values", "detector", "person"];
|
|
350
|
+
};
|
|
351
|
+
readonly detail: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly minLength: 1;
|
|
354
|
+
};
|
|
355
|
+
readonly share: {
|
|
356
|
+
readonly type: "number";
|
|
357
|
+
readonly minimum: 0;
|
|
358
|
+
readonly maximum: 1;
|
|
359
|
+
};
|
|
360
|
+
readonly sampled: {
|
|
361
|
+
readonly type: "integer";
|
|
362
|
+
readonly minimum: 0;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly required: readonly ["kind", "detail"];
|
|
366
|
+
readonly additionalProperties: false;
|
|
367
|
+
};
|
|
368
|
+
readonly Classification: {
|
|
369
|
+
readonly type: "object";
|
|
370
|
+
readonly properties: {
|
|
371
|
+
readonly class: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
374
|
+
};
|
|
375
|
+
readonly confidence: {
|
|
376
|
+
readonly type: "number";
|
|
377
|
+
readonly minimum: 0;
|
|
378
|
+
readonly maximum: 1;
|
|
379
|
+
};
|
|
380
|
+
readonly status: {
|
|
381
|
+
readonly $ref: "#/$defs/Status";
|
|
382
|
+
};
|
|
383
|
+
readonly evidence: {
|
|
384
|
+
readonly type: "array";
|
|
385
|
+
readonly items: {
|
|
386
|
+
readonly $ref: "#/$defs/Evidence";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
readonly required: readonly ["class", "confidence", "status"];
|
|
391
|
+
readonly additionalProperties: false;
|
|
392
|
+
};
|
|
393
|
+
readonly Field: {
|
|
394
|
+
readonly type: "object";
|
|
395
|
+
readonly properties: {
|
|
396
|
+
readonly name: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly minLength: 1;
|
|
399
|
+
};
|
|
400
|
+
readonly datatype: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
};
|
|
403
|
+
readonly classes: {
|
|
404
|
+
readonly type: "array";
|
|
405
|
+
readonly items: {
|
|
406
|
+
readonly $ref: "#/$defs/Classification";
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly sensitivity: {
|
|
410
|
+
readonly $ref: "#/$defs/Sensitivity";
|
|
411
|
+
};
|
|
412
|
+
readonly handling: {
|
|
413
|
+
readonly $ref: "#/$defs/Handling";
|
|
414
|
+
};
|
|
415
|
+
readonly identifier: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
418
|
+
};
|
|
419
|
+
readonly ossie_field: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly minLength: 1;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
readonly required: readonly ["name"];
|
|
425
|
+
readonly additionalProperties: false;
|
|
426
|
+
};
|
|
427
|
+
readonly Dataset: {
|
|
428
|
+
readonly type: "object";
|
|
429
|
+
readonly properties: {
|
|
430
|
+
readonly name: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly minLength: 1;
|
|
433
|
+
};
|
|
434
|
+
readonly type: {
|
|
435
|
+
readonly enum: readonly ["table", "collection", "file", "document", "page"];
|
|
436
|
+
};
|
|
437
|
+
readonly description: {
|
|
438
|
+
readonly type: "string";
|
|
439
|
+
};
|
|
440
|
+
readonly fields: {
|
|
441
|
+
readonly type: "array";
|
|
442
|
+
readonly items: {
|
|
443
|
+
readonly $ref: "#/$defs/Field";
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly topics: {
|
|
447
|
+
readonly type: "array";
|
|
448
|
+
readonly items: {
|
|
449
|
+
readonly $ref: "#/$defs/Classification";
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
readonly sensitivity: {
|
|
453
|
+
readonly $ref: "#/$defs/Sensitivity";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly required: readonly ["name", "type"];
|
|
457
|
+
readonly additionalProperties: false;
|
|
458
|
+
};
|
|
459
|
+
readonly OssieRef: {
|
|
460
|
+
readonly type: "object";
|
|
461
|
+
readonly properties: {
|
|
462
|
+
readonly name: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly minLength: 1;
|
|
465
|
+
};
|
|
466
|
+
readonly url: {
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
readonly minLength: 1;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly required: readonly ["name"];
|
|
472
|
+
readonly additionalProperties: false;
|
|
473
|
+
};
|
|
474
|
+
readonly Source: {
|
|
475
|
+
readonly type: "object";
|
|
476
|
+
readonly properties: {
|
|
477
|
+
readonly id: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
480
|
+
};
|
|
481
|
+
readonly type: {
|
|
482
|
+
readonly enum: readonly ["database", "file", "document", "web", "api"];
|
|
483
|
+
};
|
|
484
|
+
readonly locator: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly minLength: 1;
|
|
487
|
+
};
|
|
488
|
+
readonly description: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
};
|
|
491
|
+
readonly datasets: {
|
|
492
|
+
readonly type: "array";
|
|
493
|
+
readonly items: {
|
|
494
|
+
readonly $ref: "#/$defs/Dataset";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly ossie: {
|
|
498
|
+
readonly $ref: "#/$defs/OssieRef";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
readonly required: readonly ["id", "type", "locator", "datasets"];
|
|
502
|
+
readonly additionalProperties: false;
|
|
503
|
+
};
|
|
504
|
+
readonly Concept: {
|
|
505
|
+
readonly type: "object";
|
|
506
|
+
readonly properties: {
|
|
507
|
+
readonly id: {
|
|
508
|
+
readonly type: "string";
|
|
509
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
510
|
+
};
|
|
511
|
+
readonly label: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly minLength: 1;
|
|
514
|
+
};
|
|
515
|
+
readonly description: {
|
|
516
|
+
readonly type: "string";
|
|
517
|
+
readonly minLength: 1;
|
|
518
|
+
};
|
|
519
|
+
readonly extends: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
522
|
+
};
|
|
523
|
+
readonly sensitivity: {
|
|
524
|
+
readonly $ref: "#/$defs/Sensitivity";
|
|
525
|
+
};
|
|
526
|
+
readonly handling: {
|
|
527
|
+
readonly $ref: "#/$defs/Handling";
|
|
528
|
+
};
|
|
529
|
+
readonly synonyms: {
|
|
530
|
+
readonly type: "array";
|
|
531
|
+
readonly items: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly minLength: 1;
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
readonly cues: {
|
|
537
|
+
readonly type: "array";
|
|
538
|
+
readonly items: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
readonly minLength: 1;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
readonly status: {
|
|
544
|
+
readonly $ref: "#/$defs/Status";
|
|
545
|
+
};
|
|
546
|
+
readonly name_hints: {
|
|
547
|
+
readonly type: "array";
|
|
548
|
+
readonly items: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
readonly required: readonly ["id", "label", "description", "extends", "status"];
|
|
555
|
+
readonly additionalProperties: false;
|
|
556
|
+
};
|
|
557
|
+
readonly Identifier: {
|
|
558
|
+
readonly type: "object";
|
|
559
|
+
readonly properties: {
|
|
560
|
+
readonly id: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
563
|
+
};
|
|
564
|
+
readonly label: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
readonly minLength: 1;
|
|
567
|
+
};
|
|
568
|
+
readonly class: {
|
|
569
|
+
readonly type: "string";
|
|
570
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
571
|
+
};
|
|
572
|
+
readonly pattern: {
|
|
573
|
+
readonly type: "string";
|
|
574
|
+
readonly minLength: 1;
|
|
575
|
+
};
|
|
576
|
+
readonly keywords: {
|
|
577
|
+
readonly type: "array";
|
|
578
|
+
readonly items: {
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
readonly minLength: 1;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
readonly status: {
|
|
584
|
+
readonly $ref: "#/$defs/Status";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly required: readonly ["id", "label", "class", "pattern", "status"];
|
|
588
|
+
readonly additionalProperties: false;
|
|
589
|
+
};
|
|
590
|
+
readonly Term: {
|
|
591
|
+
readonly type: "object";
|
|
592
|
+
readonly properties: {
|
|
593
|
+
readonly term: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly minLength: 1;
|
|
596
|
+
};
|
|
597
|
+
readonly class: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
600
|
+
};
|
|
601
|
+
readonly status: {
|
|
602
|
+
readonly $ref: "#/$defs/Status";
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly required: readonly ["term", "class", "status"];
|
|
606
|
+
readonly additionalProperties: false;
|
|
607
|
+
};
|
|
608
|
+
readonly Rules: {
|
|
609
|
+
readonly type: "object";
|
|
610
|
+
readonly properties: {
|
|
611
|
+
readonly default: {
|
|
612
|
+
readonly type: "object";
|
|
613
|
+
readonly propertyNames: {
|
|
614
|
+
readonly enum: readonly ["public", "internal", "confidential", "restricted"];
|
|
615
|
+
};
|
|
616
|
+
readonly additionalProperties: {
|
|
617
|
+
readonly type: "object";
|
|
618
|
+
readonly propertyNames: {
|
|
619
|
+
readonly enum: readonly ["internal", "partner", "external_ai", "public"];
|
|
620
|
+
};
|
|
621
|
+
readonly additionalProperties: {
|
|
622
|
+
readonly $ref: "#/$defs/Action";
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
readonly overrides: {
|
|
627
|
+
readonly type: "array";
|
|
628
|
+
readonly items: {
|
|
629
|
+
readonly type: "object";
|
|
630
|
+
readonly properties: {
|
|
631
|
+
readonly target: {
|
|
632
|
+
readonly type: "string";
|
|
633
|
+
readonly minLength: 1;
|
|
634
|
+
};
|
|
635
|
+
readonly destination: {
|
|
636
|
+
readonly $ref: "#/$defs/Destination";
|
|
637
|
+
};
|
|
638
|
+
readonly action: {
|
|
639
|
+
readonly $ref: "#/$defs/Action";
|
|
640
|
+
};
|
|
641
|
+
readonly reason: {
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
readonly required: readonly ["target", "destination", "action"];
|
|
646
|
+
readonly additionalProperties: false;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
readonly required: readonly [];
|
|
651
|
+
readonly additionalProperties: false;
|
|
652
|
+
};
|
|
653
|
+
readonly Provenance: {
|
|
654
|
+
readonly type: "object";
|
|
655
|
+
readonly properties: {
|
|
656
|
+
readonly generator: {
|
|
657
|
+
readonly type: "string";
|
|
658
|
+
readonly minLength: 1;
|
|
659
|
+
};
|
|
660
|
+
readonly generated_at: {
|
|
661
|
+
readonly type: "string";
|
|
662
|
+
readonly format: "date-time";
|
|
663
|
+
};
|
|
664
|
+
readonly reviewed_by: {
|
|
665
|
+
readonly type: "array";
|
|
666
|
+
readonly items: {
|
|
667
|
+
readonly type: "string";
|
|
668
|
+
readonly minLength: 1;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
readonly notes: {
|
|
672
|
+
readonly type: "string";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly required: readonly [];
|
|
676
|
+
readonly additionalProperties: false;
|
|
677
|
+
};
|
|
678
|
+
readonly Classification_setting: {
|
|
679
|
+
readonly type: "object";
|
|
680
|
+
readonly properties: {
|
|
681
|
+
readonly class: {
|
|
682
|
+
readonly type: "string";
|
|
683
|
+
readonly pattern: "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$";
|
|
684
|
+
};
|
|
685
|
+
readonly sensitivity: {
|
|
686
|
+
readonly $ref: "#/$defs/Sensitivity";
|
|
687
|
+
};
|
|
688
|
+
readonly handling: {
|
|
689
|
+
readonly $ref: "#/$defs/Handling";
|
|
690
|
+
};
|
|
691
|
+
readonly name_hints: {
|
|
692
|
+
readonly type: "array";
|
|
693
|
+
readonly items: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly minLength: 1;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
readonly cues: {
|
|
699
|
+
readonly type: "array";
|
|
700
|
+
readonly items: {
|
|
701
|
+
readonly type: "string";
|
|
702
|
+
readonly minLength: 1;
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
readonly reason: {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly minLength: 1;
|
|
708
|
+
};
|
|
709
|
+
readonly status: {
|
|
710
|
+
readonly $ref: "#/$defs/Status";
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
readonly required: readonly ["class", "reason", "status"];
|
|
714
|
+
readonly additionalProperties: false;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
readonly presets: {
|
|
719
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
720
|
+
readonly $id: "https://openprivacyprotocol.com/schema/0.1/presets.schema.json";
|
|
721
|
+
readonly title: "OPP industry presets";
|
|
722
|
+
readonly type: "object";
|
|
723
|
+
readonly additionalProperties: false;
|
|
724
|
+
readonly required: readonly ["opp", "name", "version", "presets"];
|
|
725
|
+
readonly properties: {
|
|
726
|
+
readonly opp: {
|
|
727
|
+
readonly type: "string";
|
|
728
|
+
readonly minLength: 1;
|
|
729
|
+
};
|
|
730
|
+
readonly name: {
|
|
731
|
+
readonly type: "string";
|
|
732
|
+
readonly minLength: 1;
|
|
733
|
+
};
|
|
734
|
+
readonly version: {
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
readonly minLength: 1;
|
|
737
|
+
};
|
|
738
|
+
readonly description: {
|
|
739
|
+
readonly type: "string";
|
|
740
|
+
};
|
|
741
|
+
readonly presets: {
|
|
742
|
+
readonly type: "array";
|
|
743
|
+
readonly minItems: 1;
|
|
744
|
+
readonly items: {
|
|
745
|
+
readonly type: "object";
|
|
746
|
+
readonly additionalProperties: false;
|
|
747
|
+
readonly required: readonly ["id", "label", "naics_prefixes", "focus_classes"];
|
|
748
|
+
readonly properties: {
|
|
749
|
+
readonly id: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
752
|
+
};
|
|
753
|
+
readonly label: {
|
|
754
|
+
readonly type: "string";
|
|
755
|
+
readonly minLength: 1;
|
|
756
|
+
};
|
|
757
|
+
readonly description: {
|
|
758
|
+
readonly type: "string";
|
|
759
|
+
};
|
|
760
|
+
readonly naics_prefixes: {
|
|
761
|
+
readonly type: "array";
|
|
762
|
+
readonly items: {
|
|
763
|
+
readonly type: "string";
|
|
764
|
+
readonly pattern: "^[0-9]{2,6}$";
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
readonly focus_classes: {
|
|
768
|
+
readonly type: "array";
|
|
769
|
+
readonly items: {
|
|
770
|
+
readonly type: "string";
|
|
771
|
+
readonly minLength: 1;
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
readonly typical_identifiers: {
|
|
775
|
+
readonly type: "array";
|
|
776
|
+
readonly items: {
|
|
777
|
+
readonly type: "string";
|
|
778
|
+
readonly minLength: 1;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
readonly typical_documents: {
|
|
782
|
+
readonly type: "array";
|
|
783
|
+
readonly items: {
|
|
784
|
+
readonly type: "string";
|
|
785
|
+
readonly minLength: 1;
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
export declare const BASELINE_CATALOG: {
|
|
795
|
+
opp: string;
|
|
796
|
+
name: string;
|
|
797
|
+
version: string;
|
|
798
|
+
description: string;
|
|
799
|
+
references: ({
|
|
800
|
+
id: string;
|
|
801
|
+
title: string;
|
|
802
|
+
url: string;
|
|
803
|
+
} | {
|
|
804
|
+
id: string;
|
|
805
|
+
title: string;
|
|
806
|
+
url?: undefined;
|
|
807
|
+
})[];
|
|
808
|
+
groups: {
|
|
809
|
+
id: string;
|
|
810
|
+
label: string;
|
|
811
|
+
description: string;
|
|
812
|
+
}[];
|
|
813
|
+
classes: ({
|
|
814
|
+
id: string;
|
|
815
|
+
label: string;
|
|
816
|
+
description: string;
|
|
817
|
+
group: string;
|
|
818
|
+
kind: string;
|
|
819
|
+
sensitivity: string;
|
|
820
|
+
handling: string;
|
|
821
|
+
refs: ({
|
|
822
|
+
source: string;
|
|
823
|
+
item: string;
|
|
824
|
+
note: string;
|
|
825
|
+
} | {
|
|
826
|
+
source: string;
|
|
827
|
+
item: string;
|
|
828
|
+
note?: undefined;
|
|
829
|
+
})[];
|
|
830
|
+
hints: {
|
|
831
|
+
name_hints: string[];
|
|
832
|
+
value_types: string[];
|
|
833
|
+
cues?: undefined;
|
|
834
|
+
};
|
|
835
|
+
} | {
|
|
836
|
+
id: string;
|
|
837
|
+
label: string;
|
|
838
|
+
description: string;
|
|
839
|
+
group: string;
|
|
840
|
+
kind: string;
|
|
841
|
+
sensitivity: string;
|
|
842
|
+
handling: string;
|
|
843
|
+
hints: {
|
|
844
|
+
name_hints: string[];
|
|
845
|
+
value_types: string[];
|
|
846
|
+
cues?: undefined;
|
|
847
|
+
};
|
|
848
|
+
refs?: undefined;
|
|
849
|
+
} | {
|
|
850
|
+
id: string;
|
|
851
|
+
label: string;
|
|
852
|
+
description: string;
|
|
853
|
+
group: string;
|
|
854
|
+
kind: string;
|
|
855
|
+
sensitivity: string;
|
|
856
|
+
handling: string;
|
|
857
|
+
refs: {
|
|
858
|
+
source: string;
|
|
859
|
+
item: string;
|
|
860
|
+
}[];
|
|
861
|
+
hints: {
|
|
862
|
+
name_hints: string[];
|
|
863
|
+
value_types?: undefined;
|
|
864
|
+
cues?: undefined;
|
|
865
|
+
};
|
|
866
|
+
} | {
|
|
867
|
+
id: string;
|
|
868
|
+
label: string;
|
|
869
|
+
description: string;
|
|
870
|
+
group: string;
|
|
871
|
+
kind: string;
|
|
872
|
+
sensitivity: string;
|
|
873
|
+
handling: string;
|
|
874
|
+
refs: {
|
|
875
|
+
source: string;
|
|
876
|
+
item: string;
|
|
877
|
+
}[];
|
|
878
|
+
hints: {
|
|
879
|
+
name_hints: string[];
|
|
880
|
+
cues: string[];
|
|
881
|
+
value_types?: undefined;
|
|
882
|
+
};
|
|
883
|
+
} | {
|
|
884
|
+
id: string;
|
|
885
|
+
label: string;
|
|
886
|
+
description: string;
|
|
887
|
+
group: string;
|
|
888
|
+
kind: string;
|
|
889
|
+
sensitivity: string;
|
|
890
|
+
handling: string;
|
|
891
|
+
refs: {
|
|
892
|
+
source: string;
|
|
893
|
+
item: string;
|
|
894
|
+
}[];
|
|
895
|
+
hints: {
|
|
896
|
+
cues: string[];
|
|
897
|
+
name_hints?: undefined;
|
|
898
|
+
value_types?: undefined;
|
|
899
|
+
};
|
|
900
|
+
} | {
|
|
901
|
+
id: string;
|
|
902
|
+
label: string;
|
|
903
|
+
description: string;
|
|
904
|
+
group: string;
|
|
905
|
+
kind: string;
|
|
906
|
+
sensitivity: string;
|
|
907
|
+
handling: string;
|
|
908
|
+
hints: {
|
|
909
|
+
name_hints: string[];
|
|
910
|
+
cues: string[];
|
|
911
|
+
value_types?: undefined;
|
|
912
|
+
};
|
|
913
|
+
refs?: undefined;
|
|
914
|
+
} | {
|
|
915
|
+
id: string;
|
|
916
|
+
label: string;
|
|
917
|
+
description: string;
|
|
918
|
+
group: string;
|
|
919
|
+
kind: string;
|
|
920
|
+
sensitivity: string;
|
|
921
|
+
handling: string;
|
|
922
|
+
hints: {
|
|
923
|
+
cues: string[];
|
|
924
|
+
name_hints?: undefined;
|
|
925
|
+
value_types?: undefined;
|
|
926
|
+
};
|
|
927
|
+
refs?: undefined;
|
|
928
|
+
} | {
|
|
929
|
+
id: string;
|
|
930
|
+
label: string;
|
|
931
|
+
description: string;
|
|
932
|
+
group: string;
|
|
933
|
+
kind: string;
|
|
934
|
+
sensitivity: string;
|
|
935
|
+
handling: string;
|
|
936
|
+
hints: {
|
|
937
|
+
name_hints: string[];
|
|
938
|
+
value_types: string[];
|
|
939
|
+
cues: string[];
|
|
940
|
+
};
|
|
941
|
+
refs?: undefined;
|
|
942
|
+
} | {
|
|
943
|
+
id: string;
|
|
944
|
+
label: string;
|
|
945
|
+
description: string;
|
|
946
|
+
group: string;
|
|
947
|
+
kind: string;
|
|
948
|
+
sensitivity: string;
|
|
949
|
+
handling: string;
|
|
950
|
+
hints: {
|
|
951
|
+
name_hints: string[];
|
|
952
|
+
value_types?: undefined;
|
|
953
|
+
cues?: undefined;
|
|
954
|
+
};
|
|
955
|
+
refs?: undefined;
|
|
956
|
+
})[];
|
|
957
|
+
};
|
|
958
|
+
export declare const PRESETS_DOCUMENT: {
|
|
959
|
+
opp: string;
|
|
960
|
+
name: string;
|
|
961
|
+
version: string;
|
|
962
|
+
description: string;
|
|
963
|
+
presets: {
|
|
964
|
+
id: string;
|
|
965
|
+
label: string;
|
|
966
|
+
description: string;
|
|
967
|
+
naics_prefixes: string[];
|
|
968
|
+
focus_classes: string[];
|
|
969
|
+
typical_identifiers: string[];
|
|
970
|
+
typical_documents: string[];
|
|
971
|
+
}[];
|
|
972
|
+
};
|