37 lines
780 B
TypeScript
37 lines
780 B
TypeScript
import type {
|
|
IBaseOsHeartbeatResult,
|
|
IBaseOsNode,
|
|
IBaseOsRegisterResult,
|
|
IBaseOsRuntimeInfo,
|
|
} from '../data/baseos.js';
|
|
import type { IIdentity } from '../data/user.js';
|
|
|
|
export interface IRequest_BaseOs_Cloudly_RegisterNode {
|
|
method: 'baseOsRegisterNode';
|
|
request: {
|
|
joinToken?: string;
|
|
nodeToken?: string;
|
|
status: IBaseOsRuntimeInfo;
|
|
};
|
|
response: IBaseOsRegisterResult;
|
|
}
|
|
|
|
export interface IRequest_BaseOs_Cloudly_SendHeartbeat {
|
|
method: 'baseOsSendHeartbeat';
|
|
request: {
|
|
nodeToken: string;
|
|
status: IBaseOsRuntimeInfo;
|
|
};
|
|
response: IBaseOsHeartbeatResult;
|
|
}
|
|
|
|
export interface IRequest_Any_Cloudly_GetBaseOsNodes {
|
|
method: 'getBaseOsNodes';
|
|
request: {
|
|
identity: IIdentity;
|
|
};
|
|
response: {
|
|
nodes: IBaseOsNode[];
|
|
};
|
|
}
|