@cyvest/cyvest-js 4.0.0 → 4.1.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/index.d.mts CHANGED
@@ -44,7 +44,7 @@ type Checks1 = string[];
44
44
  /**
45
45
  * Root observable type used during data extraction.
46
46
  */
47
- type RootType = string | null;
47
+ type RootType = ("file" | "artifact") | null;
48
48
  /**
49
49
  * Score calculation mode for observables.
50
50
  */
@@ -87,7 +87,6 @@ interface CyvestInvestigation {
87
87
  enrichments: Enrichments;
88
88
  containers: Containers;
89
89
  stats: StatisticsSchema;
90
- stats_checks: StatsChecksSchema;
91
90
  data_extraction: DataExtractionSchema;
92
91
  /**
93
92
  * Global investigation score formatted as fixed-point x.xx.
@@ -321,19 +320,12 @@ interface ThreatIntelBySource {
321
320
  interface ThreatIntelByLevel {
322
321
  [k: string]: number;
323
322
  }
324
- /**
325
- * Schema for check statistics summary.
326
- */
327
- interface StatsChecksSchema {
328
- checks: number;
329
- applied: number;
330
- }
331
323
  /**
332
324
  * Schema for data extraction metadata.
333
325
  */
334
326
  interface DataExtractionSchema {
335
327
  root_type?: RootType;
336
- score_mode: ScoreMode;
328
+ score_mode_obs: ScoreMode;
337
329
  }
338
330
 
339
331
  declare function parseCyvest(json: unknown): CyvestInvestigation;
@@ -826,13 +818,6 @@ declare function getWhitelists(inv: CyvestInvestigation): Whitelists;
826
818
  * @returns Statistics object
827
819
  */
828
820
  declare function getStats(inv: CyvestInvestigation): StatisticsSchema;
829
- /**
830
- * Get the investigation check statistics.
831
- *
832
- * @param inv - The investigation
833
- * @returns Check statistics object
834
- */
835
- declare function getStatsChecks(inv: CyvestInvestigation): StatsChecksSchema;
836
821
  /**
837
822
  * Get the data extraction configuration.
838
823
  *
@@ -1371,4 +1356,4 @@ declare function getRelationshipsForObservable(inv: CyvestInvestigation, observa
1371
1356
  }>;
1372
1357
  };
1373
1358
 
1374
- export { type Actor, type AuditEvent, type Check, type CheckLinks, type Checks, type Checks1, type ChecksByLevel, type ChecksByLevel1, type ChecksByScope, type Container, type Containers, type CyvestInvestigation, type Data, type DataExtractionSchema, type Details, type Enrichment, type Enrichments, type EventLog, type Extra, type Extra1, type Extra2, type GraphEdge, type GraphNode, type InvestigationCounts, type InvestigationGraph, type InvestigationName, type InvestigationWhitelist, type Justification, type KeyType, LEVEL_COLORS, LEVEL_ORDER, LEVEL_VALUES, type Level, type ObjectKey, type ObjectType, type Observable, type ObservableLink, type ObservableLinks, type Observables, type ObservablesByLevel, type ObservablesByType, type ObservablesByTypeAndLevel, type PropagationMode, type Reason, type Relationship, type RelationshipDirection, type Relationships, type RootType, type ScoreMode, type StatisticsSchema, type StatsChecksSchema, type SubContainers, type Taxonomies, type ThreatIntel, type ThreatIntelByLevel, type ThreatIntelBySource, type ThreatIntels, type ThreatIntels1, type Tool, type Whitelists, areConnected, compareLevels, countRelationshipsByType, findChecksAtLeast, findChecksByCheckId, findChecksByLevel, findChecksByScope, findContainersAtLeast, findContainersByLevel, findExternalObservables, findInternalObservables, findLeafObservables, findObservablesAtLeast, findObservablesByLevel, findObservablesByType, findObservablesByValue, findObservablesContaining, findObservablesMatching, findObservablesWithThreatIntel, findOrphanObservables, findPath, findRootObservables, findThreatIntelAtLeast, findThreatIntelByLevel, findThreatIntelBySource, findWhitelistedObservables, generateCheckKey, generateContainerKey, generateEnrichmentKey, generateObservableKey, generateThreatIntelKey, getAllChecks, getAllContainers, getAllEnrichments, getAllObservableTypes, getAllObservables, getAllRelationshipTypes, getAllScopes, getAllThreatIntelSources, getAllThreatIntels, getCheck, getCheckByIdScope, getChecksForContainer, getChecksForObservable, getColorForLevel, getColorForScore, getContainer, getContainerByPath, getCounts, getDataExtraction, getEnrichment, getEnrichmentByName, getEntityLevel, getHighestScoringChecks, getHighestScoringObservables, getLevelFromScore, getMaliciousChecks, getMaliciousObservables, getObservable, getObservableByTypeValue, getObservableChildren, getObservableGraph, getObservableParents, getObservablesForCheck, getReachableObservables, getRelatedObservables, getRelatedObservablesByDirection, getRelatedObservablesByType, getRelationshipsForObservable, getStats, getStatsChecks, getSuspiciousChecks, getSuspiciousObservables, getThreatIntel, getThreatIntelBySourceObservable, getThreatIntelsForObservable, getWhitelists, hasLevel, isCyvest, isLevelAtLeast, isLevelHigherThan, isLevelLowerThan, isValidLevel, maxLevel, minLevel, normalizeLevel, parseCheckKey, parseCyvest, parseKeyType, parseObservableKey, parseThreatIntelKey, sortChecksByLevel, sortChecksByScore, sortObservablesByLevel, sortObservablesByScore, validateKey };
1359
+ export { type Actor, type AuditEvent, type Check, type CheckLinks, type Checks, type Checks1, type ChecksByLevel, type ChecksByLevel1, type ChecksByScope, type Container, type Containers, type CyvestInvestigation, type Data, type DataExtractionSchema, type Details, type Enrichment, type Enrichments, type EventLog, type Extra, type Extra1, type Extra2, type GraphEdge, type GraphNode, type InvestigationCounts, type InvestigationGraph, type InvestigationName, type InvestigationWhitelist, type Justification, type KeyType, LEVEL_COLORS, LEVEL_ORDER, LEVEL_VALUES, type Level, type ObjectKey, type ObjectType, type Observable, type ObservableLink, type ObservableLinks, type Observables, type ObservablesByLevel, type ObservablesByType, type ObservablesByTypeAndLevel, type PropagationMode, type Reason, type Relationship, type RelationshipDirection, type Relationships, type RootType, type ScoreMode, type StatisticsSchema, type SubContainers, type Taxonomies, type ThreatIntel, type ThreatIntelByLevel, type ThreatIntelBySource, type ThreatIntels, type ThreatIntels1, type Tool, type Whitelists, areConnected, compareLevels, countRelationshipsByType, findChecksAtLeast, findChecksByCheckId, findChecksByLevel, findChecksByScope, findContainersAtLeast, findContainersByLevel, findExternalObservables, findInternalObservables, findLeafObservables, findObservablesAtLeast, findObservablesByLevel, findObservablesByType, findObservablesByValue, findObservablesContaining, findObservablesMatching, findObservablesWithThreatIntel, findOrphanObservables, findPath, findRootObservables, findThreatIntelAtLeast, findThreatIntelByLevel, findThreatIntelBySource, findWhitelistedObservables, generateCheckKey, generateContainerKey, generateEnrichmentKey, generateObservableKey, generateThreatIntelKey, getAllChecks, getAllContainers, getAllEnrichments, getAllObservableTypes, getAllObservables, getAllRelationshipTypes, getAllScopes, getAllThreatIntelSources, getAllThreatIntels, getCheck, getCheckByIdScope, getChecksForContainer, getChecksForObservable, getColorForLevel, getColorForScore, getContainer, getContainerByPath, getCounts, getDataExtraction, getEnrichment, getEnrichmentByName, getEntityLevel, getHighestScoringChecks, getHighestScoringObservables, getLevelFromScore, getMaliciousChecks, getMaliciousObservables, getObservable, getObservableByTypeValue, getObservableChildren, getObservableGraph, getObservableParents, getObservablesForCheck, getReachableObservables, getRelatedObservables, getRelatedObservablesByDirection, getRelatedObservablesByType, getRelationshipsForObservable, getStats, getSuspiciousChecks, getSuspiciousObservables, getThreatIntel, getThreatIntelBySourceObservable, getThreatIntelsForObservable, getWhitelists, hasLevel, isCyvest, isLevelAtLeast, isLevelHigherThan, isLevelLowerThan, isValidLevel, maxLevel, minLevel, normalizeLevel, parseCheckKey, parseCyvest, parseKeyType, parseObservableKey, parseThreatIntelKey, sortChecksByLevel, sortChecksByScore, sortObservablesByLevel, sortObservablesByScore, validateKey };
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ type Checks1 = string[];
44
44
  /**
45
45
  * Root observable type used during data extraction.
46
46
  */
47
- type RootType = string | null;
47
+ type RootType = ("file" | "artifact") | null;
48
48
  /**
49
49
  * Score calculation mode for observables.
50
50
  */
@@ -87,7 +87,6 @@ interface CyvestInvestigation {
87
87
  enrichments: Enrichments;
88
88
  containers: Containers;
89
89
  stats: StatisticsSchema;
90
- stats_checks: StatsChecksSchema;
91
90
  data_extraction: DataExtractionSchema;
92
91
  /**
93
92
  * Global investigation score formatted as fixed-point x.xx.
@@ -321,19 +320,12 @@ interface ThreatIntelBySource {
321
320
  interface ThreatIntelByLevel {
322
321
  [k: string]: number;
323
322
  }
324
- /**
325
- * Schema for check statistics summary.
326
- */
327
- interface StatsChecksSchema {
328
- checks: number;
329
- applied: number;
330
- }
331
323
  /**
332
324
  * Schema for data extraction metadata.
333
325
  */
334
326
  interface DataExtractionSchema {
335
327
  root_type?: RootType;
336
- score_mode: ScoreMode;
328
+ score_mode_obs: ScoreMode;
337
329
  }
338
330
 
339
331
  declare function parseCyvest(json: unknown): CyvestInvestigation;
@@ -826,13 +818,6 @@ declare function getWhitelists(inv: CyvestInvestigation): Whitelists;
826
818
  * @returns Statistics object
827
819
  */
828
820
  declare function getStats(inv: CyvestInvestigation): StatisticsSchema;
829
- /**
830
- * Get the investigation check statistics.
831
- *
832
- * @param inv - The investigation
833
- * @returns Check statistics object
834
- */
835
- declare function getStatsChecks(inv: CyvestInvestigation): StatsChecksSchema;
836
821
  /**
837
822
  * Get the data extraction configuration.
838
823
  *
@@ -1371,4 +1356,4 @@ declare function getRelationshipsForObservable(inv: CyvestInvestigation, observa
1371
1356
  }>;
1372
1357
  };
1373
1358
 
1374
- export { type Actor, type AuditEvent, type Check, type CheckLinks, type Checks, type Checks1, type ChecksByLevel, type ChecksByLevel1, type ChecksByScope, type Container, type Containers, type CyvestInvestigation, type Data, type DataExtractionSchema, type Details, type Enrichment, type Enrichments, type EventLog, type Extra, type Extra1, type Extra2, type GraphEdge, type GraphNode, type InvestigationCounts, type InvestigationGraph, type InvestigationName, type InvestigationWhitelist, type Justification, type KeyType, LEVEL_COLORS, LEVEL_ORDER, LEVEL_VALUES, type Level, type ObjectKey, type ObjectType, type Observable, type ObservableLink, type ObservableLinks, type Observables, type ObservablesByLevel, type ObservablesByType, type ObservablesByTypeAndLevel, type PropagationMode, type Reason, type Relationship, type RelationshipDirection, type Relationships, type RootType, type ScoreMode, type StatisticsSchema, type StatsChecksSchema, type SubContainers, type Taxonomies, type ThreatIntel, type ThreatIntelByLevel, type ThreatIntelBySource, type ThreatIntels, type ThreatIntels1, type Tool, type Whitelists, areConnected, compareLevels, countRelationshipsByType, findChecksAtLeast, findChecksByCheckId, findChecksByLevel, findChecksByScope, findContainersAtLeast, findContainersByLevel, findExternalObservables, findInternalObservables, findLeafObservables, findObservablesAtLeast, findObservablesByLevel, findObservablesByType, findObservablesByValue, findObservablesContaining, findObservablesMatching, findObservablesWithThreatIntel, findOrphanObservables, findPath, findRootObservables, findThreatIntelAtLeast, findThreatIntelByLevel, findThreatIntelBySource, findWhitelistedObservables, generateCheckKey, generateContainerKey, generateEnrichmentKey, generateObservableKey, generateThreatIntelKey, getAllChecks, getAllContainers, getAllEnrichments, getAllObservableTypes, getAllObservables, getAllRelationshipTypes, getAllScopes, getAllThreatIntelSources, getAllThreatIntels, getCheck, getCheckByIdScope, getChecksForContainer, getChecksForObservable, getColorForLevel, getColorForScore, getContainer, getContainerByPath, getCounts, getDataExtraction, getEnrichment, getEnrichmentByName, getEntityLevel, getHighestScoringChecks, getHighestScoringObservables, getLevelFromScore, getMaliciousChecks, getMaliciousObservables, getObservable, getObservableByTypeValue, getObservableChildren, getObservableGraph, getObservableParents, getObservablesForCheck, getReachableObservables, getRelatedObservables, getRelatedObservablesByDirection, getRelatedObservablesByType, getRelationshipsForObservable, getStats, getStatsChecks, getSuspiciousChecks, getSuspiciousObservables, getThreatIntel, getThreatIntelBySourceObservable, getThreatIntelsForObservable, getWhitelists, hasLevel, isCyvest, isLevelAtLeast, isLevelHigherThan, isLevelLowerThan, isValidLevel, maxLevel, minLevel, normalizeLevel, parseCheckKey, parseCyvest, parseKeyType, parseObservableKey, parseThreatIntelKey, sortChecksByLevel, sortChecksByScore, sortObservablesByLevel, sortObservablesByScore, validateKey };
1359
+ export { type Actor, type AuditEvent, type Check, type CheckLinks, type Checks, type Checks1, type ChecksByLevel, type ChecksByLevel1, type ChecksByScope, type Container, type Containers, type CyvestInvestigation, type Data, type DataExtractionSchema, type Details, type Enrichment, type Enrichments, type EventLog, type Extra, type Extra1, type Extra2, type GraphEdge, type GraphNode, type InvestigationCounts, type InvestigationGraph, type InvestigationName, type InvestigationWhitelist, type Justification, type KeyType, LEVEL_COLORS, LEVEL_ORDER, LEVEL_VALUES, type Level, type ObjectKey, type ObjectType, type Observable, type ObservableLink, type ObservableLinks, type Observables, type ObservablesByLevel, type ObservablesByType, type ObservablesByTypeAndLevel, type PropagationMode, type Reason, type Relationship, type RelationshipDirection, type Relationships, type RootType, type ScoreMode, type StatisticsSchema, type SubContainers, type Taxonomies, type ThreatIntel, type ThreatIntelByLevel, type ThreatIntelBySource, type ThreatIntels, type ThreatIntels1, type Tool, type Whitelists, areConnected, compareLevels, countRelationshipsByType, findChecksAtLeast, findChecksByCheckId, findChecksByLevel, findChecksByScope, findContainersAtLeast, findContainersByLevel, findExternalObservables, findInternalObservables, findLeafObservables, findObservablesAtLeast, findObservablesByLevel, findObservablesByType, findObservablesByValue, findObservablesContaining, findObservablesMatching, findObservablesWithThreatIntel, findOrphanObservables, findPath, findRootObservables, findThreatIntelAtLeast, findThreatIntelByLevel, findThreatIntelBySource, findWhitelistedObservables, generateCheckKey, generateContainerKey, generateEnrichmentKey, generateObservableKey, generateThreatIntelKey, getAllChecks, getAllContainers, getAllEnrichments, getAllObservableTypes, getAllObservables, getAllRelationshipTypes, getAllScopes, getAllThreatIntelSources, getAllThreatIntels, getCheck, getCheckByIdScope, getChecksForContainer, getChecksForObservable, getColorForLevel, getColorForScore, getContainer, getContainerByPath, getCounts, getDataExtraction, getEnrichment, getEnrichmentByName, getEntityLevel, getHighestScoringChecks, getHighestScoringObservables, getLevelFromScore, getMaliciousChecks, getMaliciousObservables, getObservable, getObservableByTypeValue, getObservableChildren, getObservableGraph, getObservableParents, getObservablesForCheck, getReachableObservables, getRelatedObservables, getRelatedObservablesByDirection, getRelatedObservablesByType, getRelationshipsForObservable, getStats, getSuspiciousChecks, getSuspiciousObservables, getThreatIntel, getThreatIntelBySourceObservable, getThreatIntelsForObservable, getWhitelists, hasLevel, isCyvest, isLevelAtLeast, isLevelHigherThan, isLevelLowerThan, isValidLevel, maxLevel, minLevel, normalizeLevel, parseCheckKey, parseCyvest, parseKeyType, parseObservableKey, parseThreatIntelKey, sortChecksByLevel, sortChecksByScore, sortObservablesByLevel, sortObservablesByScore, validateKey };
package/dist/index.js CHANGED
@@ -103,7 +103,6 @@ __export(index_exports, {
103
103
  getRelatedObservablesByType: () => getRelatedObservablesByType,
104
104
  getRelationshipsForObservable: () => getRelationshipsForObservable,
105
105
  getStats: () => getStats,
106
- getStatsChecks: () => getStatsChecks,
107
106
  getSuspiciousChecks: () => getSuspiciousChecks,
108
107
  getSuspiciousObservables: () => getSuspiciousObservables,
109
108
  getThreatIntel: () => getThreatIntel,
@@ -358,6 +357,10 @@ var cyvest_schema_default = {
358
357
  root_type: {
359
358
  anyOf: [
360
359
  {
360
+ enum: [
361
+ "file",
362
+ "artifact"
363
+ ],
361
364
  type: "string"
362
365
  },
363
366
  {
@@ -368,13 +371,13 @@ var cyvest_schema_default = {
368
371
  description: "Root observable type used during data extraction.",
369
372
  title: "Root Type"
370
373
  },
371
- score_mode: {
374
+ score_mode_obs: {
372
375
  $ref: "#/$defs/ScoreMode",
373
- description: "Score aggregation mode: 'max' takes highest score, 'sum' adds all scores."
376
+ description: "Observable score aggregation mode: 'max' takes highest score, 'sum' adds all scores."
374
377
  }
375
378
  },
376
379
  required: [
377
- "score_mode"
380
+ "score_mode_obs"
378
381
  ],
379
382
  title: "DataExtractionSchema",
380
383
  type: "object"
@@ -727,28 +730,6 @@ var cyvest_schema_default = {
727
730
  title: "StatisticsSchema",
728
731
  type: "object"
729
732
  },
730
- StatsChecksSchema: {
731
- additionalProperties: false,
732
- description: "Schema for check statistics summary.",
733
- properties: {
734
- checks: {
735
- minimum: 0,
736
- title: "Checks",
737
- type: "integer"
738
- },
739
- applied: {
740
- minimum: 0,
741
- title: "Applied",
742
- type: "integer"
743
- }
744
- },
745
- required: [
746
- "checks",
747
- "applied"
748
- ],
749
- title: "StatsChecksSchema",
750
- type: "object"
751
- },
752
733
  ThreatIntel: {
753
734
  description: "Represents threat intelligence from an external source.\n\nThreat intelligence provides verdicts about observables from sources\nlike VirusTotal, URLScan.io, etc.",
754
735
  properties: {
@@ -926,10 +907,6 @@ var cyvest_schema_default = {
926
907
  $ref: "#/$defs/StatisticsSchema",
927
908
  description: "Investigation statistics summary."
928
909
  },
929
- stats_checks: {
930
- $ref: "#/$defs/StatsChecksSchema",
931
- description: "Check statistics summary."
932
- },
933
910
  data_extraction: {
934
911
  $ref: "#/$defs/DataExtractionSchema",
935
912
  description: "Data extraction metadata."
@@ -955,7 +932,6 @@ var cyvest_schema_default = {
955
932
  "enrichments",
956
933
  "containers",
957
934
  "stats",
958
- "stats_checks",
959
935
  "data_extraction",
960
936
  "score_display"
961
937
  ],
@@ -1328,9 +1304,6 @@ function getWhitelists(inv) {
1328
1304
  function getStats(inv) {
1329
1305
  return inv.stats;
1330
1306
  }
1331
- function getStatsChecks(inv) {
1332
- return inv.stats_checks;
1333
- }
1334
1307
  function getDataExtraction(inv) {
1335
1308
  return inv.data_extraction;
1336
1309
  }
@@ -1955,7 +1928,6 @@ function getRelationshipsForObservable(inv, observableKey) {
1955
1928
  getRelatedObservablesByType,
1956
1929
  getRelationshipsForObservable,
1957
1930
  getStats,
1958
- getStatsChecks,
1959
1931
  getSuspiciousChecks,
1960
1932
  getSuspiciousObservables,
1961
1933
  getThreatIntel,
package/dist/index.mjs CHANGED
@@ -224,6 +224,10 @@ var cyvest_schema_default = {
224
224
  root_type: {
225
225
  anyOf: [
226
226
  {
227
+ enum: [
228
+ "file",
229
+ "artifact"
230
+ ],
227
231
  type: "string"
228
232
  },
229
233
  {
@@ -234,13 +238,13 @@ var cyvest_schema_default = {
234
238
  description: "Root observable type used during data extraction.",
235
239
  title: "Root Type"
236
240
  },
237
- score_mode: {
241
+ score_mode_obs: {
238
242
  $ref: "#/$defs/ScoreMode",
239
- description: "Score aggregation mode: 'max' takes highest score, 'sum' adds all scores."
243
+ description: "Observable score aggregation mode: 'max' takes highest score, 'sum' adds all scores."
240
244
  }
241
245
  },
242
246
  required: [
243
- "score_mode"
247
+ "score_mode_obs"
244
248
  ],
245
249
  title: "DataExtractionSchema",
246
250
  type: "object"
@@ -593,28 +597,6 @@ var cyvest_schema_default = {
593
597
  title: "StatisticsSchema",
594
598
  type: "object"
595
599
  },
596
- StatsChecksSchema: {
597
- additionalProperties: false,
598
- description: "Schema for check statistics summary.",
599
- properties: {
600
- checks: {
601
- minimum: 0,
602
- title: "Checks",
603
- type: "integer"
604
- },
605
- applied: {
606
- minimum: 0,
607
- title: "Applied",
608
- type: "integer"
609
- }
610
- },
611
- required: [
612
- "checks",
613
- "applied"
614
- ],
615
- title: "StatsChecksSchema",
616
- type: "object"
617
- },
618
600
  ThreatIntel: {
619
601
  description: "Represents threat intelligence from an external source.\n\nThreat intelligence provides verdicts about observables from sources\nlike VirusTotal, URLScan.io, etc.",
620
602
  properties: {
@@ -792,10 +774,6 @@ var cyvest_schema_default = {
792
774
  $ref: "#/$defs/StatisticsSchema",
793
775
  description: "Investigation statistics summary."
794
776
  },
795
- stats_checks: {
796
- $ref: "#/$defs/StatsChecksSchema",
797
- description: "Check statistics summary."
798
- },
799
777
  data_extraction: {
800
778
  $ref: "#/$defs/DataExtractionSchema",
801
779
  description: "Data extraction metadata."
@@ -821,7 +799,6 @@ var cyvest_schema_default = {
821
799
  "enrichments",
822
800
  "containers",
823
801
  "stats",
824
- "stats_checks",
825
802
  "data_extraction",
826
803
  "score_display"
827
804
  ],
@@ -1194,9 +1171,6 @@ function getWhitelists(inv) {
1194
1171
  function getStats(inv) {
1195
1172
  return inv.stats;
1196
1173
  }
1197
- function getStatsChecks(inv) {
1198
- return inv.stats_checks;
1199
- }
1200
1174
  function getDataExtraction(inv) {
1201
1175
  return inv.data_extraction;
1202
1176
  }
@@ -1820,7 +1794,6 @@ export {
1820
1794
  getRelatedObservablesByType,
1821
1795
  getRelationshipsForObservable,
1822
1796
  getStats,
1823
- getStatsChecks,
1824
1797
  getSuspiciousChecks,
1825
1798
  getSuspiciousObservables,
1826
1799
  getThreatIntel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyvest/cyvest-js",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/getters.ts CHANGED
@@ -359,16 +359,6 @@ export function getStats(inv: CyvestInvestigation) {
359
359
  return inv.stats;
360
360
  }
361
361
 
362
- /**
363
- * Get the investigation check statistics.
364
- *
365
- * @param inv - The investigation
366
- * @returns Check statistics object
367
- */
368
- export function getStatsChecks(inv: CyvestInvestigation) {
369
- return inv.stats_checks;
370
- }
371
-
372
362
  /**
373
363
  * Get the data extraction configuration.
374
364
  *
@@ -46,7 +46,7 @@ export type Checks1 = string[];
46
46
  /**
47
47
  * Root observable type used during data extraction.
48
48
  */
49
- export type RootType = string | null;
49
+ export type RootType = ("file" | "artifact") | null;
50
50
  /**
51
51
  * Score calculation mode for observables.
52
52
  */
@@ -90,7 +90,6 @@ export interface CyvestInvestigation {
90
90
  enrichments: Enrichments;
91
91
  containers: Containers;
92
92
  stats: StatisticsSchema;
93
- stats_checks: StatsChecksSchema;
94
93
  data_extraction: DataExtractionSchema;
95
94
  /**
96
95
  * Global investigation score formatted as fixed-point x.xx.
@@ -324,17 +323,10 @@ export interface ThreatIntelBySource {
324
323
  export interface ThreatIntelByLevel {
325
324
  [k: string]: number;
326
325
  }
327
- /**
328
- * Schema for check statistics summary.
329
- */
330
- export interface StatsChecksSchema {
331
- checks: number;
332
- applied: number;
333
- }
334
326
  /**
335
327
  * Schema for data extraction metadata.
336
328
  */
337
329
  export interface DataExtractionSchema {
338
330
  root_type?: RootType;
339
- score_mode: ScoreMode;
331
+ score_mode_obs: ScoreMode;
340
332
  }
@@ -239,13 +239,9 @@ function createTestInvestigation(): CyvestInvestigation {
239
239
  threat_intel_by_level: { MALICIOUS: 1 },
240
240
  total_containers: 2,
241
241
  },
242
- stats_checks: {
243
- checks: 3,
244
- applied: 2,
245
- },
246
242
  data_extraction: {
247
- root_type: "email-message",
248
- score_mode: "max",
243
+ root_type: "file",
244
+ score_mode_obs: "max",
249
245
  },
250
246
  };
251
247
  }
@@ -144,13 +144,9 @@ function createGraphTestInvestigation(): CyvestInvestigation {
144
144
  threat_intel_by_level: {},
145
145
  total_containers: 0,
146
146
  },
147
- stats_checks: {
148
- checks: 0,
149
- applied: 0,
150
- },
151
147
  data_extraction: {
152
- root_type: "email-message",
153
- score_mode: "max",
148
+ root_type: "file",
149
+ score_mode_obs: "max",
154
150
  },
155
151
  };
156
152
  }