An asset: its identity, kind and state, and for every capability either the system that owns it or the reason it is not offered, so that nothing is silently dropped. An asset is refused where it names an owner for a capability its state does not offer, or leaves a capability it does offer with no owner.
type AssetInput = {
readonly id: string;
readonly kind: string;
readonly state: AssetState;
/** Where it came fr…(618 characters)
typeAssetInput= {
readonlyid:string;
readonlykind:string;
readonlystate:AssetState;
/** Where it came from; a managed asset is `provisioned` by default, and only a managed asset can be. An asset that is not provisioned was installed by someone else. */readonlyorigin?:Origin;
/** For each capability the state offers, the system that owns it. */readonlyowners:Readonly<Partial<Record<Capability, string>>>;
/** The attributes of the asset, checked against the catalog of its kind where the kind has one (`kinds.ts`). */readonlyattributes?:Readonly<Record<string, AttributeValue>>;
};
type Asset = {
readonly id: AssetId;
readonly kind: AssetKind;
readonly state: AssetState;
/** Where it came fro…(431 characters)
typeAsset= {
readonlyid:AssetId;
readonlykind:AssetKind;
readonlystate:AssetState;
/** Where it came from, where that is known. */readonlyorigin?:Origin;
/** The attributes it states, checked against the catalog of its kind. */readonlyattributes?:Readonly<Record<string, AttributeValue>>;
/** Every capability, in the order of the closed list. */readonlycapabilities:readonlyCapabilityLine[];
};