@serve.zone/interfaces 32.71.0 → 32.73.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.
@@ -3,6 +3,7 @@ import type { IBareMetal } from '../data/baremetal.js';
3
3
  import type { ICluster } from '../data/cluster.js';
4
4
  import type { IClusterNode, INodeAction, INodeMetricsSample, TNodeActionName } from '../data/clusternode.js';
5
5
  import type { IDeployment } from '../data/deployment.js';
6
+ import type { ILocationScope } from '../data/location.js';
6
7
  import type { INodeActionConfirmation, INodeActionPreview } from '../data/nodeaction.js';
7
8
  import type { ISparkFleetTarget, ISparkFleetTargetChange, ISparkNodeTargetHold } from '../data/sparkfleettarget.js';
8
9
  import type { IIdentity } from '../data/user.js';
@@ -159,6 +160,14 @@ export interface IReq_Any_Cloudly_CreateNodeJumpCommand extends plugins.typedreq
159
160
  * its name is proposed from that (`data.proposeClusterNodeName`).
160
161
  */
161
162
  nodeName?: string;
163
+ /**
164
+ * The location the new node stands in. Named, the location must exist (`location-not-found`)
165
+ * and, when the cluster has nodes, be the cluster's (`location-mismatch`); the jump code keeps
166
+ * it and the claim checks it again against the cluster as it stands then. Absent, the claim
167
+ * places the node in the cluster's location, or for a cluster without nodes in the location
168
+ * that receives unnamed creates (the initial location).
169
+ */
170
+ locationId?: string;
162
171
  };
163
172
  response: {
164
173
  jumpCode: string;
@@ -177,9 +186,16 @@ export interface IReq_Any_Cloudly_GetNodes extends plugins.typedrequestInterface
177
186
  request: {
178
187
  identity: IIdentity;
179
188
  clusterId?: string;
189
+ /** Only the nodes whose `data.locationId` is this location. */
190
+ locationScope?: ILocationScope;
180
191
  };
181
192
  response: {
182
193
  nodes: IClusterNode[];
194
+ /**
195
+ * The scope Cloudly applied, echoing `locationScope`. Absent from a Cloudly that ignored the
196
+ * scope (one without locations): its list is unscoped and must not be shown as scoped.
197
+ */
198
+ appliedLocationScope?: ILocationScope;
183
199
  };
184
200
  }
185
201