Add interfaces package
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
|
||||
export interface IReq_ListAgents
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_ListAgents
|
||||
> {
|
||||
method: 'listAgents';
|
||||
request: {};
|
||||
response: {
|
||||
agents: data.IAgentDefinition[];
|
||||
statuses: data.IAgentStatus[];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
|
||||
export interface IReq_ListApprovals
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_ListApprovals
|
||||
> {
|
||||
method: 'listApprovals';
|
||||
request: {
|
||||
status?: data.IApprovalRequest['status'];
|
||||
};
|
||||
response: {
|
||||
approvals: data.IApprovalRequest[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_SubmitApproval
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_SubmitApproval
|
||||
> {
|
||||
method: 'submitApproval';
|
||||
request: {
|
||||
approvalId: string;
|
||||
decision: 'approved' | 'rejected';
|
||||
};
|
||||
response: {
|
||||
approval: data.IApprovalRequest;
|
||||
receipt: data.IAuditReceipt;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
|
||||
export interface IReq_ListDevices
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_ListDevices
|
||||
> {
|
||||
method: 'listDevices';
|
||||
request: {
|
||||
room?: string;
|
||||
capability?: data.TDeviceCapability;
|
||||
};
|
||||
response: {
|
||||
devices: data.IDeviceDefinition[];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
|
||||
export interface IReq_GetHomeSnapshot
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_GetHomeSnapshot
|
||||
> {
|
||||
method: 'getHomeSnapshot';
|
||||
request: {};
|
||||
response: {
|
||||
snapshot: data.IHomeSnapshot;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export * from './agent.js';
|
||||
export * from './approval.js';
|
||||
export * from './device.js';
|
||||
export * from './home.js';
|
||||
export * from './tool.js';
|
||||
@@ -0,0 +1,28 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
|
||||
export interface IReq_ListTools
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_ListTools
|
||||
> {
|
||||
method: 'listTools';
|
||||
request: {
|
||||
ownerId?: string;
|
||||
};
|
||||
response: {
|
||||
tools: data.IToolDefinition[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_ExecuteToolPlan
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_ExecuteToolPlan
|
||||
> {
|
||||
method: 'executeToolPlan';
|
||||
request: {
|
||||
plan: data.IToolPlan;
|
||||
};
|
||||
response: data.IToolPlanResult;
|
||||
}
|
||||
Reference in New Issue
Block a user