SeededDiscoverableSensitive
This is the SeededDiscoverableSensitive, this has every property that the seededSensitive has except this one is all optionally passed in. and will override our classification if provided.
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
asset | string |
text | string |
mechanism | MechanismEnum |
category | SensitiveCategoryEnum |
severity | SensitiveSeverityEnum |
name | string |
description | string |
metadata | SensitiveMetadata |
Example
import { SeededDiscoverableSensitive } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: SeededDiscoverableSensitive = {
"schema": null,
"asset": null,
"text": null,
"mechanism": null,
"category": null,
"severity": null,
"name": null,
"description": null,
"metadata": null,
}
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as SeededDiscoverableSensitive
console.log(exampleParsed)