SeededAssetMetadata
This is optional metadata sent with the SeededAsset and other SeededAssets ie (UE, Jetbrains...) Note: if a user/develop didnt explicitly state a mechanism we will default to manual(user Driven only)
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
name | string |
mechanism | MechanismEnum |
tags | Array<SeededAssetTag> |
websites | Array<SeededAssetWebsite> |
sensitives | Array<SeededAssetSensitive> |
persons | Array<SeededPerson> |
annotations | Array<SeededAnnotation> |
hints | Array<SeededHint> |
anchors | Array<SeededAnchor> |
Example
import { SeededAssetMetadata } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: SeededAssetMetadata = {
"schema": null,
"name": null,
"mechanism": null,
"tags": null,
"websites": null,
"sensitives": null,
"persons": null,
"annotations": null,
"hints": null,
"anchors": 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 SeededAssetMetadata
console.log(exampleParsed)