@serve.zone/interfaces 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-09 - 7.2.0
4
+
5
+ ### Features
6
+
7
+ - add node management typed request contracts (node-requests)
8
+ - Adds getNodes, getNodeById, getNodeDeletionImpact, and deleteNodeById request interfaces.
9
+ - Includes deletion impact response data for related cluster, deployments, bare metal hosts, blockers, and deletion eligibility.
10
+
3
11
  ## 2026-06-09 - 7.1.0
4
12
 
5
13
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.1.0',
6
+ version: '7.2.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -1,4 +1,6 @@
1
1
  import * as plugins from '../plugins.js';
2
+ import type { IBareMetal } from '../data/baremetal.js';
3
+ import type { ICluster } from '../data/cluster.js';
2
4
  import type { IClusterNode, IClusterNodeMetrics, ISparkNodeRuntimeInfo } from '../data/clusternode.js';
3
5
  import type { IDeployment } from '../data/deployment.js';
4
6
  import type { IIdentity } from '../data/user.js';
@@ -46,6 +48,51 @@ export interface IReq_Any_Cloudly_CreateNodeJumpCommand extends plugins.typedreq
46
48
  expiresAt: number;
47
49
  };
48
50
  }
51
+ export interface IReq_Any_Cloudly_GetNodes extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetNodes> {
52
+ method: 'getNodes';
53
+ request: {
54
+ identity: IIdentity;
55
+ clusterId?: string;
56
+ };
57
+ response: {
58
+ nodes: IClusterNode[];
59
+ };
60
+ }
61
+ export interface IReq_Any_Cloudly_GetNodeById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetNodeById> {
62
+ method: 'getNodeById';
63
+ request: {
64
+ identity: IIdentity;
65
+ nodeId: string;
66
+ };
67
+ response: {
68
+ node: IClusterNode;
69
+ };
70
+ }
71
+ export interface IReq_Any_Cloudly_GetNodeDeletionImpact extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetNodeDeletionImpact> {
72
+ method: 'getNodeDeletionImpact';
73
+ request: {
74
+ identity: IIdentity;
75
+ nodeId: string;
76
+ };
77
+ response: {
78
+ node: IClusterNode;
79
+ cluster?: ICluster;
80
+ deployments: IDeployment[];
81
+ baremetals: IBareMetal[];
82
+ blockers: string[];
83
+ canDelete: boolean;
84
+ };
85
+ }
86
+ export interface IReq_Any_Cloudly_DeleteNodeById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeleteNodeById> {
87
+ method: 'deleteNodeById';
88
+ request: {
89
+ identity: IIdentity;
90
+ nodeId: string;
91
+ };
92
+ response: {
93
+ ok: boolean;
94
+ };
95
+ }
49
96
  export interface IRequest_Spark_Cloudly_SendHeartbeat extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Spark_Cloudly_SendHeartbeat> {
50
97
  method: 'sparkNodeHeartbeat';
51
98
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.1.0',
6
+ version: '7.2.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }
@@ -1,4 +1,6 @@
1
1
  import * as plugins from '../plugins.js';
2
+ import type { IBareMetal } from '../data/baremetal.js';
3
+ import type { ICluster } from '../data/cluster.js';
2
4
  import type { IClusterNode, IClusterNodeMetrics, ISparkNodeRuntimeInfo } from '../data/clusternode.js';
3
5
  import type { IDeployment } from '../data/deployment.js';
4
6
  import type { IIdentity } from '../data/user.js';
@@ -54,6 +56,67 @@ export interface IReq_Any_Cloudly_CreateNodeJumpCommand extends plugins.typedreq
54
56
  };
55
57
  }
56
58
 
59
+ export interface IReq_Any_Cloudly_GetNodes extends plugins.typedrequestInterfaces.implementsTR<
60
+ plugins.typedrequestInterfaces.ITypedRequest,
61
+ IReq_Any_Cloudly_GetNodes
62
+ > {
63
+ method: 'getNodes';
64
+ request: {
65
+ identity: IIdentity;
66
+ clusterId?: string;
67
+ };
68
+ response: {
69
+ nodes: IClusterNode[];
70
+ };
71
+ }
72
+
73
+ export interface IReq_Any_Cloudly_GetNodeById extends plugins.typedrequestInterfaces.implementsTR<
74
+ plugins.typedrequestInterfaces.ITypedRequest,
75
+ IReq_Any_Cloudly_GetNodeById
76
+ > {
77
+ method: 'getNodeById';
78
+ request: {
79
+ identity: IIdentity;
80
+ nodeId: string;
81
+ };
82
+ response: {
83
+ node: IClusterNode;
84
+ };
85
+ }
86
+
87
+ export interface IReq_Any_Cloudly_GetNodeDeletionImpact extends plugins.typedrequestInterfaces.implementsTR<
88
+ plugins.typedrequestInterfaces.ITypedRequest,
89
+ IReq_Any_Cloudly_GetNodeDeletionImpact
90
+ > {
91
+ method: 'getNodeDeletionImpact';
92
+ request: {
93
+ identity: IIdentity;
94
+ nodeId: string;
95
+ };
96
+ response: {
97
+ node: IClusterNode;
98
+ cluster?: ICluster;
99
+ deployments: IDeployment[];
100
+ baremetals: IBareMetal[];
101
+ blockers: string[];
102
+ canDelete: boolean;
103
+ };
104
+ }
105
+
106
+ export interface IReq_Any_Cloudly_DeleteNodeById extends plugins.typedrequestInterfaces.implementsTR<
107
+ plugins.typedrequestInterfaces.ITypedRequest,
108
+ IReq_Any_Cloudly_DeleteNodeById
109
+ > {
110
+ method: 'deleteNodeById';
111
+ request: {
112
+ identity: IIdentity;
113
+ nodeId: string;
114
+ };
115
+ response: {
116
+ ok: boolean;
117
+ };
118
+ }
119
+
57
120
  export interface IRequest_Spark_Cloudly_SendHeartbeat extends plugins.typedrequestInterfaces.implementsTR<
58
121
  plugins.typedrequestInterfaces.ITypedRequest,
59
122
  IRequest_Spark_Cloudly_SendHeartbeat