feat(interfaces): add desired state, backup replication, and cluster update request fields

This commit is contained in:
2026-05-08 13:08:34 +00:00
parent 13c6806da7
commit a3618dc685
7 changed files with 856 additions and 1228 deletions
+8
View File
@@ -1,5 +1,13 @@
# Changelog # Changelog
## 2026-05-08 - 5.6.0 - feat(interfaces)
add desired state, backup replication, and cluster update request fields
- add optional desiredState to base OS registration results
- add optional replicate flag to backup creation requests
- require clusterId in updateCluster requests
- bump tsclass and development tooling dependencies
## 2026-04-25 - 5.4.3 - fix(repo) ## 2026-04-25 - 5.4.3 - fix(repo)
no changes to commit no changes to commit
+4 -4
View File
@@ -17,14 +17,14 @@
"dependencies": { "dependencies": {
"@api.global/typedrequest-interfaces": "^3.0.19", "@api.global/typedrequest-interfaces": "^3.0.19",
"@push.rocks/smartlog-interfaces": "^3.0.2", "@push.rocks/smartlog-interfaces": "^3.0.2",
"@tsclass/tsclass": "^9.2.0" "@tsclass/tsclass": "^9.5.1"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^4.4.0", "@git.zone/tsbuild": "^4.4.0",
"@git.zone/tsdoc": "^2.0.2", "@git.zone/tsdoc": "^2.0.3",
"@git.zone/tsrun": "^2.0.2", "@git.zone/tsrun": "^2.0.3",
"@git.zone/tstest": "^3.6.3", "@git.zone/tstest": "^3.6.3",
"@types/node": "^25.6.0" "@types/node": "^25.6.1"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",
+840 -1223
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/interfaces', name: '@serve.zone/interfaces',
version: '5.4.3', version: '5.6.0',
description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.' description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
} }
+1
View File
@@ -134,6 +134,7 @@ export interface IBaseOsRegisterResult {
nodeToken?: string; nodeToken?: string;
accepted: boolean; accepted: boolean;
message?: string; message?: string;
desiredState?: IBaseOsDesiredState;
} }
export interface IBaseOsHeartbeatResult { export interface IBaseOsHeartbeatResult {
+1
View File
@@ -20,6 +20,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
serviceId: string; serviceId: string;
clusterId?: string; clusterId?: string;
tags?: Record<string, string>; tags?: Record<string, string>;
replicate?: boolean;
}; };
response: { response: {
backup: IBackupRecord; backup: IBackupRecord;
+1
View File
@@ -58,6 +58,7 @@ export interface IReq_Any_Cloudly_UpdateCluster extends plugins.typedrequestInte
method: 'updateCluster'; method: 'updateCluster';
request: { request: {
identity: userInterfaces.IIdentity; identity: userInterfaces.IIdentity;
clusterId: string;
clusterData: clusterInterfaces.ICluster['data']; clusterData: clusterInterfaces.ICluster['data'];
}; };
response: { response: {