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