@cyvest/cyvest-js 4.1.0 → 4.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.
package/dist/index.d.mts CHANGED
@@ -37,9 +37,7 @@ type CheckLinks = string[];
37
37
  */
38
38
  type PropagationMode = "LOCAL_ONLY" | "GLOBAL";
39
39
  type ObservableLinks = ObservableLink[];
40
- type Taxonomies = {
41
- [k: string]: unknown;
42
- }[];
40
+ type Taxonomies = Taxonomy[];
43
41
  type Checks1 = string[];
44
42
  /**
45
43
  * Root observable type used during data extraction.
@@ -229,6 +227,14 @@ interface ThreatIntel {
229
227
  interface Extra2 {
230
228
  [k: string]: unknown;
231
229
  }
230
+ /**
231
+ * Represents a structured taxonomy entry for threat intelligence.
232
+ */
233
+ interface Taxonomy {
234
+ level: Level;
235
+ name: string;
236
+ value: string;
237
+ }
232
238
  /**
233
239
  * Enrichment entries keyed by their unique key.
234
240
  */
@@ -1356,4 +1362,4 @@ declare function getRelationshipsForObservable(inv: CyvestInvestigation, observa
1356
1362
  }>;
1357
1363
  };
1358
1364
 
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 };
1365
+ 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 Taxonomy, 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
@@ -37,9 +37,7 @@ type CheckLinks = string[];
37
37
  */
38
38
  type PropagationMode = "LOCAL_ONLY" | "GLOBAL";
39
39
  type ObservableLinks = ObservableLink[];
40
- type Taxonomies = {
41
- [k: string]: unknown;
42
- }[];
40
+ type Taxonomies = Taxonomy[];
43
41
  type Checks1 = string[];
44
42
  /**
45
43
  * Root observable type used during data extraction.
@@ -229,6 +227,14 @@ interface ThreatIntel {
229
227
  interface Extra2 {
230
228
  [k: string]: unknown;
231
229
  }
230
+ /**
231
+ * Represents a structured taxonomy entry for threat intelligence.
232
+ */
233
+ interface Taxonomy {
234
+ level: Level;
235
+ name: string;
236
+ value: string;
237
+ }
232
238
  /**
233
239
  * Enrichment entries keyed by their unique key.
234
240
  */
@@ -1356,4 +1362,4 @@ declare function getRelationshipsForObservable(inv: CyvestInvestigation, observa
1356
1362
  }>;
1357
1363
  };
1358
1364
 
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 };
1365
+ 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 Taxonomy, 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
@@ -730,6 +730,30 @@ var cyvest_schema_default = {
730
730
  title: "StatisticsSchema",
731
731
  type: "object"
732
732
  },
733
+ Taxonomy: {
734
+ additionalProperties: false,
735
+ description: "Represents a structured taxonomy entry for threat intelligence.",
736
+ properties: {
737
+ level: {
738
+ $ref: "#/$defs/Level"
739
+ },
740
+ name: {
741
+ title: "Name",
742
+ type: "string"
743
+ },
744
+ value: {
745
+ title: "Value",
746
+ type: "string"
747
+ }
748
+ },
749
+ required: [
750
+ "level",
751
+ "name",
752
+ "value"
753
+ ],
754
+ title: "Taxonomy",
755
+ type: "object"
756
+ },
733
757
  ThreatIntel: {
734
758
  description: "Represents threat intelligence from an external source.\n\nThreat intelligence provides verdicts about observables from sources\nlike VirusTotal, URLScan.io, etc.",
735
759
  properties: {
@@ -759,8 +783,7 @@ var cyvest_schema_default = {
759
783
  },
760
784
  taxonomies: {
761
785
  items: {
762
- additionalProperties: true,
763
- type: "object"
786
+ $ref: "#/$defs/Taxonomy"
764
787
  },
765
788
  title: "Taxonomies",
766
789
  type: "array"
package/dist/index.mjs CHANGED
@@ -597,6 +597,30 @@ var cyvest_schema_default = {
597
597
  title: "StatisticsSchema",
598
598
  type: "object"
599
599
  },
600
+ Taxonomy: {
601
+ additionalProperties: false,
602
+ description: "Represents a structured taxonomy entry for threat intelligence.",
603
+ properties: {
604
+ level: {
605
+ $ref: "#/$defs/Level"
606
+ },
607
+ name: {
608
+ title: "Name",
609
+ type: "string"
610
+ },
611
+ value: {
612
+ title: "Value",
613
+ type: "string"
614
+ }
615
+ },
616
+ required: [
617
+ "level",
618
+ "name",
619
+ "value"
620
+ ],
621
+ title: "Taxonomy",
622
+ type: "object"
623
+ },
600
624
  ThreatIntel: {
601
625
  description: "Represents threat intelligence from an external source.\n\nThreat intelligence provides verdicts about observables from sources\nlike VirusTotal, URLScan.io, etc.",
602
626
  properties: {
@@ -626,8 +650,7 @@ var cyvest_schema_default = {
626
650
  },
627
651
  taxonomies: {
628
652
  items: {
629
- additionalProperties: true,
630
- type: "object"
653
+ $ref: "#/$defs/Taxonomy"
631
654
  },
632
655
  title: "Taxonomies",
633
656
  type: "array"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyvest/cyvest-js",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -39,9 +39,7 @@ export type CheckLinks = string[];
39
39
  */
40
40
  export type PropagationMode = "LOCAL_ONLY" | "GLOBAL";
41
41
  export type ObservableLinks = ObservableLink[];
42
- export type Taxonomies = {
43
- [k: string]: unknown;
44
- }[];
42
+ export type Taxonomies = Taxonomy[];
45
43
  export type Checks1 = string[];
46
44
  /**
47
45
  * Root observable type used during data extraction.
@@ -232,6 +230,14 @@ export interface ThreatIntel {
232
230
  export interface Extra2 {
233
231
  [k: string]: unknown;
234
232
  }
233
+ /**
234
+ * Represents a structured taxonomy entry for threat intelligence.
235
+ */
236
+ export interface Taxonomy {
237
+ level: Level;
238
+ name: string;
239
+ value: string;
240
+ }
235
241
  /**
236
242
  * Enrichment entries keyed by their unique key.
237
243
  */
@@ -190,7 +190,7 @@ function createTestInvestigation(): CyvestInvestigation {
190
190
  score: 5,
191
191
  score_display: "5.00",
192
192
  level: "MALICIOUS",
193
- taxonomies: [{ verdict: "malicious" }],
193
+ taxonomies: [{ level: "MALICIOUS", name: "verdict", value: "malicious" }],
194
194
  },
195
195
  },
196
196
  enrichments: {