feat: add baseos contracts
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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[];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user