o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
24 lines (19 loc) • 405 B
text/typescript
import { sendMessage } from '../../messaging';
import { Command } from '../../constants';
interface GetDDOInput {
identity: string;
}
interface OntIdAttribute {
key: string;
type: string;
value: string;
}
interface OntIdDDO {
attributes: OntIdAttribute[];
}
export function getDDO(data: GetDDOInput): Promise<OntIdDDO> {
return sendMessage({
command: Command.getDDO,
data,
});
}