@bloodhound-rs/core 0.1.1 → 0.2.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.
@@ -1,542 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://bloodhound.dev/schemas/report-v1.json",
4
- "type": "object",
5
- "properties": {
6
- "schemaVersion": {
7
- "const": 1
8
- },
9
- "indexSchemaVersion": {
10
- "const": 1
11
- },
12
- "scannerVersion": {
13
- "type": "string"
14
- },
15
- "scanId": {
16
- "type": "string"
17
- },
18
- "scopeKey": {
19
- "type": "string"
20
- },
21
- "scanStatus": {
22
- "enum": ["completed", "partial", "failed"]
23
- },
24
- "runStatus": {
25
- "enum": ["finished", "cancelled"]
26
- },
27
- "startedAt": {
28
- "type": "string"
29
- },
30
- "finishedAt": {
31
- "type": "string"
32
- },
33
- "configuration": {
34
- "type": "object",
35
- "properties": {
36
- "context": {
37
- "$ref": "#/$defs/context"
38
- },
39
- "budgets": {
40
- "type": "object"
41
- },
42
- "dependencyMode": {
43
- "enum": ["single", "recursive"]
44
- }
45
- },
46
- "required": ["context", "budgets", "dependencyMode"],
47
- "additionalProperties": false
48
- },
49
- "entryAnalysisIds": {
50
- "type": "array",
51
- "items": {
52
- "type": "string"
53
- }
54
- },
55
- "resources": {
56
- "type": "array",
57
- "items": {
58
- "$ref": "#/$defs/resource"
59
- }
60
- },
61
- "analysisInstances": {
62
- "type": "array",
63
- "items": {
64
- "$ref": "#/$defs/analysis"
65
- }
66
- },
67
- "references": {
68
- "type": "array",
69
- "items": {
70
- "$ref": "#/$defs/reference"
71
- }
72
- },
73
- "globalTargets": {
74
- "type": "array",
75
- "items": {
76
- "$ref": "#/$defs/target"
77
- }
78
- },
79
- "globalAccesses": {
80
- "type": "array",
81
- "items": {
82
- "$ref": "#/$defs/access"
83
- }
84
- },
85
- "findings": {
86
- "type": "array",
87
- "items": {
88
- "$ref": "#/$defs/finding"
89
- }
90
- },
91
- "unresolved": {
92
- "type": "array",
93
- "items": {
94
- "$ref": "#/$defs/unresolved"
95
- }
96
- },
97
- "coverage": {
98
- "type": "object",
99
- "properties": {
100
- "analyzed": {
101
- "type": "number"
102
- },
103
- "failed": {
104
- "type": "number"
105
- },
106
- "unresolved": {
107
- "type": "number"
108
- },
109
- "bytes": {
110
- "type": "number"
111
- },
112
- "dependencyMode": {
113
- "enum": ["single", "recursive"]
114
- },
115
- "sourceMapped": {
116
- "type": "number"
117
- },
118
- "elapsedMs": {
119
- "type": "number"
120
- }
121
- },
122
- "required": [
123
- "analyzed",
124
- "failed",
125
- "unresolved",
126
- "bytes",
127
- "dependencyMode",
128
- "sourceMapped",
129
- "elapsedMs"
130
- ],
131
- "additionalProperties": false
132
- }
133
- },
134
- "required": [
135
- "schemaVersion",
136
- "indexSchemaVersion",
137
- "scannerVersion",
138
- "scanId",
139
- "scopeKey",
140
- "scanStatus",
141
- "runStatus",
142
- "startedAt",
143
- "finishedAt",
144
- "configuration",
145
- "entryAnalysisIds",
146
- "resources",
147
- "analysisInstances",
148
- "references",
149
- "globalTargets",
150
- "globalAccesses",
151
- "findings",
152
- "unresolved",
153
- "coverage"
154
- ],
155
- "additionalProperties": false,
156
- "$defs": {
157
- "location": {
158
- "type": "object",
159
- "properties": {
160
- "start": {
161
- "type": "number"
162
- },
163
- "end": {
164
- "type": "number"
165
- },
166
- "line": {
167
- "type": "number"
168
- },
169
- "column": {
170
- "type": "number"
171
- },
172
- "endLine": {
173
- "type": "number"
174
- },
175
- "endColumn": {
176
- "type": "number"
177
- },
178
- "offsetEncoding": {
179
- "const": "utf16"
180
- },
181
- "original": {
182
- "type": "object",
183
- "properties": {
184
- "source": {
185
- "type": "string"
186
- },
187
- "line": {
188
- "type": "number"
189
- },
190
- "column": {
191
- "type": "number"
192
- },
193
- "name": {
194
- "type": "string"
195
- }
196
- },
197
- "required": ["source", "line", "column"],
198
- "additionalProperties": false
199
- },
200
- "container": {
201
- "type": "object",
202
- "properties": {
203
- "resourceUrl": {
204
- "type": "string"
205
- },
206
- "offset": {
207
- "type": "number"
208
- },
209
- "line": {
210
- "type": "number"
211
- },
212
- "column": {
213
- "type": "number"
214
- },
215
- "approximate": {
216
- "type": "boolean"
217
- }
218
- },
219
- "required": ["resourceUrl", "offset", "line", "column"],
220
- "additionalProperties": false
221
- }
222
- },
223
- "required": ["start", "end", "line", "column", "endLine", "endColumn", "offsetEncoding"],
224
- "additionalProperties": false
225
- },
226
- "context": {
227
- "type": "object",
228
- "properties": {
229
- "scriptMode": {
230
- "enum": ["classic", "module", "unknown"]
231
- },
232
- "executionEnvironment": {
233
- "enum": ["window", "worker", "unknown"]
234
- },
235
- "scopeKey": {
236
- "type": "string"
237
- },
238
- "versions": {
239
- "type": "object",
240
- "additionalProperties": {
241
- "type": "string"
242
- }
243
- },
244
- "baseUrl": {
245
- "type": "string"
246
- },
247
- "importMap": {
248
- "type": "object"
249
- },
250
- "importMapBaseUrl": {
251
- "type": "string"
252
- },
253
- "publicPath": {
254
- "type": "string"
255
- }
256
- },
257
- "required": ["scriptMode", "executionEnvironment", "scopeKey", "versions"],
258
- "additionalProperties": false
259
- },
260
- "resource": {
261
- "type": "object",
262
- "properties": {
263
- "resourceId": {
264
- "type": "string"
265
- },
266
- "requestedUrl": {
267
- "type": "string"
268
- },
269
- "finalUrl": {
270
- "type": "string"
271
- },
272
- "contentHash": {
273
- "type": "string"
274
- },
275
- "kind": {
276
- "enum": ["js", "html", "css", "asset"]
277
- },
278
- "bytes": {
279
- "type": "number"
280
- },
281
- "scmId": {
282
- "type": "string"
283
- },
284
- "inline": {
285
- "type": "object",
286
- "properties": {
287
- "parentUrl": {
288
- "type": "string"
289
- },
290
- "offset": {
291
- "type": "number"
292
- },
293
- "approximate": {
294
- "type": "boolean"
295
- }
296
- },
297
- "required": ["parentUrl", "offset"],
298
- "additionalProperties": false
299
- }
300
- },
301
- "required": ["resourceId", "requestedUrl", "finalUrl", "contentHash", "kind", "bytes"],
302
- "additionalProperties": false
303
- },
304
- "analysis": {
305
- "type": "object",
306
- "properties": {
307
- "analysisId": {
308
- "type": "string"
309
- },
310
- "resourceId": {
311
- "type": "string"
312
- },
313
- "contextHash": {
314
- "type": "string"
315
- },
316
- "context": {
317
- "$ref": "#/$defs/context"
318
- },
319
- "scanStatus": {
320
- "enum": ["completed", "partial", "failed"]
321
- },
322
- "exports": {
323
- "type": "object"
324
- },
325
- "sourceMapStatus": {
326
- "enum": ["absent", "mapped", "unavailable"]
327
- }
328
- },
329
- "required": [
330
- "analysisId",
331
- "resourceId",
332
- "contextHash",
333
- "context",
334
- "scanStatus",
335
- "exports",
336
- "sourceMapStatus"
337
- ],
338
- "additionalProperties": false
339
- },
340
- "reference": {
341
- "type": "object",
342
- "properties": {
343
- "referenceId": {
344
- "type": "string"
345
- },
346
- "fromAnalysisId": {
347
- "type": "string"
348
- },
349
- "toAnalysisIds": {
350
- "type": "array",
351
- "items": {
352
- "type": "string"
353
- }
354
- },
355
- "kind": {
356
- "type": "string"
357
- },
358
- "specifier": {
359
- "type": "string"
360
- },
361
- "resolvedUrl": {
362
- "type": "string"
363
- },
364
- "resolution": {
365
- "enum": ["resolved", "candidate", "unresolved", "not-followed"]
366
- },
367
- "location": {
368
- "$ref": "#/$defs/location"
369
- },
370
- "condition": {
371
- "type": "string"
372
- },
373
- "attributes": {
374
- "type": "object",
375
- "additionalProperties": {
376
- "type": "string"
377
- }
378
- },
379
- "reason": {
380
- "type": "string"
381
- }
382
- },
383
- "required": [
384
- "referenceId",
385
- "fromAnalysisId",
386
- "toAnalysisIds",
387
- "kind",
388
- "resolution",
389
- "location"
390
- ],
391
- "additionalProperties": false
392
- },
393
- "target": {
394
- "type": "object",
395
- "properties": {
396
- "targetId": {
397
- "type": "string"
398
- },
399
- "scopeKey": {
400
- "type": "string"
401
- },
402
- "namespace": {
403
- "type": "string"
404
- },
405
- "pathSegments": {
406
- "type": "array",
407
- "items": {
408
- "type": "string"
409
- }
410
- },
411
- "keyKind": {
412
- "type": "string"
413
- }
414
- },
415
- "required": ["targetId", "scopeKey", "namespace", "pathSegments", "keyKind"],
416
- "additionalProperties": false
417
- },
418
- "access": {
419
- "type": "object",
420
- "properties": {
421
- "accessId": {
422
- "type": "string"
423
- },
424
- "analysisId": {
425
- "type": "string"
426
- },
427
- "targetRefs": {
428
- "type": "array",
429
- "items": {
430
- "type": "string"
431
- }
432
- },
433
- "operation": {
434
- "type": "string"
435
- },
436
- "valueType": {
437
- "type": "string"
438
- },
439
- "location": {
440
- "$ref": "#/$defs/location"
441
- },
442
- "evidence": {
443
- "type": "array",
444
- "items": {
445
- "type": "string"
446
- }
447
- },
448
- "fingerprint": {
449
- "type": "string"
450
- }
451
- },
452
- "required": [
453
- "accessId",
454
- "analysisId",
455
- "targetRefs",
456
- "operation",
457
- "valueType",
458
- "location",
459
- "evidence",
460
- "fingerprint"
461
- ],
462
- "additionalProperties": false
463
- },
464
- "finding": {
465
- "type": "object",
466
- "properties": {
467
- "findingId": {
468
- "type": "string"
469
- },
470
- "ruleId": {
471
- "type": "string"
472
- },
473
- "kind": {
474
- "enum": ["global", "dom", "css"]
475
- },
476
- "analysisId": {
477
- "type": "string"
478
- },
479
- "accessRefs": {
480
- "type": "array",
481
- "items": {
482
- "type": "string"
483
- }
484
- },
485
- "location": {
486
- "$ref": "#/$defs/location"
487
- },
488
- "details": {
489
- "type": "object"
490
- },
491
- "fingerprint": {
492
- "type": "string"
493
- }
494
- },
495
- "required": [
496
- "findingId",
497
- "ruleId",
498
- "kind",
499
- "analysisId",
500
- "accessRefs",
501
- "location",
502
- "details",
503
- "fingerprint"
504
- ],
505
- "additionalProperties": false
506
- },
507
- "unresolved": {
508
- "type": "object",
509
- "properties": {
510
- "analysisId": {
511
- "type": "string"
512
- },
513
- "referenceId": {
514
- "type": "string"
515
- },
516
- "location": {
517
- "$ref": "#/$defs/location"
518
- },
519
- "reason": {
520
- "type": "string"
521
- },
522
- "affectedCapabilities": {
523
- "type": "array",
524
- "items": {
525
- "type": "string"
526
- }
527
- },
528
- "detail": {
529
- "type": "string"
530
- },
531
- "start": {
532
- "type": "number"
533
- },
534
- "end": {
535
- "type": "number"
536
- }
537
- },
538
- "required": ["reason", "affectedCapabilities"],
539
- "additionalProperties": false
540
- }
541
- }
542
- }