Skip to main content

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

NameType
schemaEmbeddedModelSchema
assetstring
textstring
mechanismMechanismEnum
categorySensitiveCategoryEnum
severitySensitiveSeverityEnum
namestring
descriptionstring
metadataSensitiveMetadata

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)