@neurosity/sdk
Version:
Neurosity SDK
69 lines (68 loc) • 1.13 kB
TypeScript
import { Observable } from "rxjs";
/**
* @hidden
*/
declare type SkillProps = {
[key: string]: string | number | boolean;
};
/**
* @hidden
*/
export interface Skill {
id: string;
bundleId: string;
spec: string;
name: string;
description: string;
props?: SkillProps;
organization?: string;
metrics: string[];
userId: string;
timestamp: number;
status: string;
thumbnail: string;
}
/**
* @hidden
*/
export interface DeviceSkill {
id: string;
bundleId: string;
installedDate: number;
manifest: {
[key: string]: any;
};
status: string;
}
/**
* @hidden
*/
declare type SkillMetric = {
[key: string]: any;
};
/**
* @hidden
*/
interface SkillMetricNext {
next(value: SkillMetric): void;
}
/**
* @hidden
*/
export interface SkillInstance {
props?: SkillProps;
metric(metric: string): Observable<SkillMetric> | SkillMetricNext;
}
/**
* @hidden
*/
export interface SkillSubscription {
unsubscribe(): void;
}
/**
* @hidden
*/
export interface SkillsClient {
get: (id: string) => Promise<DeviceSkill>;
}
export {};