Sensitive
This is a fully referenced representation of a sensitive pieces of data.
Properties
| Name | Type |
|---|---|
| schema | EmbeddedModelSchema |
| id | string |
| created | GroupedTimestamp |
| updated | GroupedTimestamp |
| deleted | GroupedTimestamp |
| asset | FlattenedAsset |
| text | string |
| mechanism | MechanismEnum |
| category | SensitiveCategoryEnum |
| severity | SensitiveSeverityEnum |
| name | string |
| description | string |
| metadata | SensitiveMetadata |
| interactions | number |
| score | Score |
Example
import { Sensitive } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: Sensitive = {
"schema": null,
"id": null,
"created": null,
"updated": null,
"deleted": null,
"asset": null,
"text": null,
"mechanism": null,
"category": null,
"severity": null,
"name": null,
"description": null,
"metadata": null,
"interactions": null,
"score": 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 Sensitive
console.log(exampleParsed)