@kinotic-ai/system-api 5.0.0-beta.13 → 5.0.0-beta.15

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/dist/index.cjs CHANGED
@@ -51,9 +51,10 @@ __export(exports_src, {
51
51
  VmNode: () => VmNode,
52
52
  TraceLogProperties: () => TraceLogProperties,
53
53
  SystemOrganizationService: () => SystemOrganizationService,
54
+ SystemMemberService: () => SystemMemberService,
54
55
  SystemApiPlugin: () => SystemApiPlugin,
55
56
  SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
56
- SYSTEM_API_ZONE: () => import_management_api8.SYSTEM_API_ZONE,
57
+ SYSTEM_API_ZONE: () => import_management_api9.SYSTEM_API_ZONE,
57
58
  LoggersDescriptor: () => LoggersDescriptor,
58
59
  LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
59
60
  LogManager: () => LogManager,
@@ -64,7 +65,7 @@ __export(exports_src, {
64
65
  GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
65
66
  });
66
67
  module.exports = __toCommonJS(exports_src);
67
- var import_management_api8 = require("@kinotic-ai/management-api");
68
+ var import_management_api9 = require("@kinotic-ai/management-api");
68
69
 
69
70
  // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
70
71
  var VmNodeStatusType;
@@ -101,6 +102,7 @@ class VmNode {
101
102
  availableCpus = 0;
102
103
  availableMemoryMb = 0;
103
104
  availableDiskMb = 0;
105
+ reservations = [];
104
106
  lastSeen = null;
105
107
  workloadDataDir = null;
106
108
  constructor(id, name, hostname) {
@@ -328,6 +330,37 @@ class SystemOrganizationService {
328
330
  }
329
331
  }
330
332
 
333
+ // packages/system-api/src/api/services/ISystemMemberService.ts
334
+ var import_management_api8 = require("@kinotic-ai/management-api");
335
+
336
+ class SystemMemberService {
337
+ serviceProxy;
338
+ constructor(kinotic) {
339
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
340
+ }
341
+ findUsers(pageable) {
342
+ return this.serviceProxy.invoke("findUsers", [pageable]);
343
+ }
344
+ searchUsers(searchText, pageable) {
345
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
346
+ }
347
+ findMachines(pageable) {
348
+ return this.serviceProxy.invoke("findMachines", [pageable]);
349
+ }
350
+ createMachine(displayName) {
351
+ return this.serviceProxy.invoke("createMachine", [displayName]);
352
+ }
353
+ rotateSecret(machineId) {
354
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
355
+ }
356
+ setMachineEnabled(machineId, enabled) {
357
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
358
+ }
359
+ removeMachine(machineId) {
360
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
361
+ }
362
+ }
363
+
331
364
  // packages/system-api/src/api/SystemApiPlugin.ts
332
365
  var SystemApiPlugin = {
333
366
  install(kinotic) {
@@ -337,7 +370,8 @@ var SystemApiPlugin = {
337
370
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
338
371
  logManager: new LogManager(kinotic),
339
372
  clusterInfo: new KinoticClusterInfoService(kinotic),
340
- systemOrganizations: new SystemOrganizationService(kinotic)
373
+ systemOrganizations: new SystemOrganizationService(kinotic),
374
+ systemMembers: new SystemMemberService(kinotic)
341
375
  };
342
376
  }
343
377
  };
package/dist/index.d.cts CHANGED
@@ -21,6 +21,26 @@ declare class VmNodeStatus {
21
21
  */
22
22
  healthMessage: string | null;
23
23
  }
24
+ /**
25
+ * The room one workload holds on a VmNode: its CPU, memory and disk while its VM runs, and its
26
+ * disk alone once the run has ended, since a VM that is kept for a restart keeps its disk on the
27
+ * node. A workload holds at most one reservation per node, keyed by its id.
28
+ */
29
+ interface WorkloadReservation {
30
+ /** The id of the workload holding the reservation. */
31
+ workloadId: string;
32
+ /** CPU the workload's VM is allotted, in cores; a fraction is a share of one core. */
33
+ cpus: number;
34
+ /** Memory the workload's VM is allotted, in megabytes. */
35
+ memoryMb: number;
36
+ /** Disk the workload's VM is allotted, in megabytes. */
37
+ diskMb: number;
38
+ /**
39
+ * True while the workload's run holds its CPU and memory; false once the run has ended and
40
+ * only the disk is still held.
41
+ */
42
+ running: boolean;
43
+ }
24
44
  declare enum VmProviderType {
25
45
  BOXLITE = "BOXLITE",
26
46
  CLOUD_HYPERVISOR = "CLOUD_HYPERVISOR"
@@ -64,8 +84,8 @@ declare class VmNode implements Identifiable<string> {
64
84
  */
65
85
  totalDiskMb: number;
66
86
  /**
67
- * Number of vCPUs not allocated to any workload. What is allocated is
68
- * totalCpus - availableCpus.
87
+ * CPU not allocated to any workload, in cores. What is allocated is
88
+ * totalCpus - availableCpus, the sum of the reservations that are running.
69
89
  */
70
90
  availableCpus: number;
71
91
  /**
@@ -77,6 +97,12 @@ declare class VmNode implements Identifiable<string> {
77
97
  */
78
98
  availableDiskMb: number;
79
99
  /**
100
+ * The room each workload placed on this node holds, one entry per workload. The available*
101
+ * fields are the totals less what these hold, so a workload's room is reserved and released
102
+ * by its id and never counted twice.
103
+ */
104
+ reservations: WorkloadReservation[];
105
+ /**
80
106
  * The date and time the node was last seen/heartbeat.
81
107
  */
82
108
  lastSeen: number | null;
@@ -145,7 +171,7 @@ import { CrudServiceProxy, ICrudServiceProxy } from "@kinotic-ai/core";
145
171
  interface IVmNodeService extends ICrudServiceProxy<VmNode> {
146
172
  /**
147
173
  * Finds a node with sufficient resources to host a workload with the given requirements.
148
- * @param requiredCpus the number of vCPUs required
174
+ * @param requiredCpus the CPU required, in cores
149
175
  * @param requiredMemoryMb the amount of memory required in megabytes
150
176
  * @param requiredDiskMb the amount of disk space required in megabytes
151
177
  * @return a Promise resolving to a suitable node, or null if none available
@@ -426,6 +452,53 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
426
452
  searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
427
453
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
428
454
  }
455
+ import { MachineParticipantIdentity, MachineProvisionResult, UserParticipantIdentity as UserParticipantIdentity2 } from "@kinotic-ai/management-api";
456
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
457
+ /**
458
+ * The platform's own members: the operators who sign in to the system console, and the
459
+ * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
460
+ * Published in the system zone, which only SYSTEM participants may address; every method works
461
+ * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
462
+ * manage through IMachineService.
463
+ */
464
+ interface ISystemMemberService {
465
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
466
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
467
+ /** Lists the platform's machines, disabled ones included. */
468
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
469
+ /**
470
+ * Provisions a platform machine and returns it together with its generated client secret.
471
+ * The secret is disclosed exactly once — it cannot be retrieved later.
472
+ */
473
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
474
+ /**
475
+ * Replaces a platform machine's client secret, returning the new secret exactly once. The
476
+ * old secret stops working immediately; a connection the machine already holds lasts until
477
+ * it disconnects.
478
+ */
479
+ rotateSecret(machineId: string): Promise<string>;
480
+ /**
481
+ * Enables or disables a platform machine. A disabled machine is cut off on its next
482
+ * connection, and enabling it restores access with the same credential.
483
+ */
484
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
485
+ /**
486
+ * Permanently removes a platform machine, including its stored credential. A removed
487
+ * machine's id cannot authenticate again.
488
+ */
489
+ removeMachine(machineId: string): Promise<void>;
490
+ }
491
+ declare class SystemMemberService implements ISystemMemberService {
492
+ private readonly serviceProxy;
493
+ constructor(kinotic: IKinotic7);
494
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
495
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
496
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
497
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
498
+ rotateSecret(machineId: string): Promise<string>;
499
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
500
+ removeMachine(machineId: string): Promise<void>;
501
+ }
429
502
  interface ISystemApiExtension {
430
503
  vmNodes: IVmNodeService;
431
504
  workloads: IWorkloadService;
@@ -433,12 +506,13 @@ interface ISystemApiExtension {
433
506
  logManager: ILogManager;
434
507
  clusterInfo: IKinoticClusterInfoService;
435
508
  systemOrganizations: ISystemOrganizationService;
509
+ systemMembers: ISystemMemberService;
436
510
  }
437
511
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
438
- import { IKinotic as IKinotic7 } from "@kinotic-ai/core";
512
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
439
513
  declare class LogManager implements ILogManager {
440
514
  private readonly serviceProxy;
441
- constructor(kinotic: IKinotic7);
515
+ constructor(kinotic: IKinotic8);
442
516
  loggers(nodeId: string): Promise<LoggersDescriptor>;
443
517
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
444
518
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -448,4 +522,4 @@ declare class LogManager implements ILogManager {
448
522
  declare module "@kinotic-ai/core" {
449
523
  interface KinoticSingleton extends ISystemApiExtension {}
450
524
  }
451
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
525
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadReservation, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,26 @@ declare class VmNodeStatus {
21
21
  */
22
22
  healthMessage: string | null;
23
23
  }
24
+ /**
25
+ * The room one workload holds on a VmNode: its CPU, memory and disk while its VM runs, and its
26
+ * disk alone once the run has ended, since a VM that is kept for a restart keeps its disk on the
27
+ * node. A workload holds at most one reservation per node, keyed by its id.
28
+ */
29
+ interface WorkloadReservation {
30
+ /** The id of the workload holding the reservation. */
31
+ workloadId: string;
32
+ /** CPU the workload's VM is allotted, in cores; a fraction is a share of one core. */
33
+ cpus: number;
34
+ /** Memory the workload's VM is allotted, in megabytes. */
35
+ memoryMb: number;
36
+ /** Disk the workload's VM is allotted, in megabytes. */
37
+ diskMb: number;
38
+ /**
39
+ * True while the workload's run holds its CPU and memory; false once the run has ended and
40
+ * only the disk is still held.
41
+ */
42
+ running: boolean;
43
+ }
24
44
  declare enum VmProviderType {
25
45
  BOXLITE = "BOXLITE",
26
46
  CLOUD_HYPERVISOR = "CLOUD_HYPERVISOR"
@@ -64,8 +84,8 @@ declare class VmNode implements Identifiable<string> {
64
84
  */
65
85
  totalDiskMb: number;
66
86
  /**
67
- * Number of vCPUs not allocated to any workload. What is allocated is
68
- * totalCpus - availableCpus.
87
+ * CPU not allocated to any workload, in cores. What is allocated is
88
+ * totalCpus - availableCpus, the sum of the reservations that are running.
69
89
  */
70
90
  availableCpus: number;
71
91
  /**
@@ -77,6 +97,12 @@ declare class VmNode implements Identifiable<string> {
77
97
  */
78
98
  availableDiskMb: number;
79
99
  /**
100
+ * The room each workload placed on this node holds, one entry per workload. The available*
101
+ * fields are the totals less what these hold, so a workload's room is reserved and released
102
+ * by its id and never counted twice.
103
+ */
104
+ reservations: WorkloadReservation[];
105
+ /**
80
106
  * The date and time the node was last seen/heartbeat.
81
107
  */
82
108
  lastSeen: number | null;
@@ -145,7 +171,7 @@ import { CrudServiceProxy, ICrudServiceProxy } from "@kinotic-ai/core";
145
171
  interface IVmNodeService extends ICrudServiceProxy<VmNode> {
146
172
  /**
147
173
  * Finds a node with sufficient resources to host a workload with the given requirements.
148
- * @param requiredCpus the number of vCPUs required
174
+ * @param requiredCpus the CPU required, in cores
149
175
  * @param requiredMemoryMb the amount of memory required in megabytes
150
176
  * @param requiredDiskMb the amount of disk space required in megabytes
151
177
  * @return a Promise resolving to a suitable node, or null if none available
@@ -426,6 +452,53 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
426
452
  searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
427
453
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
428
454
  }
455
+ import { MachineParticipantIdentity, MachineProvisionResult, UserParticipantIdentity as UserParticipantIdentity2 } from "@kinotic-ai/management-api";
456
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
457
+ /**
458
+ * The platform's own members: the operators who sign in to the system console, and the
459
+ * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
460
+ * Published in the system zone, which only SYSTEM participants may address; every method works
461
+ * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
462
+ * manage through IMachineService.
463
+ */
464
+ interface ISystemMemberService {
465
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
466
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
467
+ /** Lists the platform's machines, disabled ones included. */
468
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
469
+ /**
470
+ * Provisions a platform machine and returns it together with its generated client secret.
471
+ * The secret is disclosed exactly once — it cannot be retrieved later.
472
+ */
473
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
474
+ /**
475
+ * Replaces a platform machine's client secret, returning the new secret exactly once. The
476
+ * old secret stops working immediately; a connection the machine already holds lasts until
477
+ * it disconnects.
478
+ */
479
+ rotateSecret(machineId: string): Promise<string>;
480
+ /**
481
+ * Enables or disables a platform machine. A disabled machine is cut off on its next
482
+ * connection, and enabling it restores access with the same credential.
483
+ */
484
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
485
+ /**
486
+ * Permanently removes a platform machine, including its stored credential. A removed
487
+ * machine's id cannot authenticate again.
488
+ */
489
+ removeMachine(machineId: string): Promise<void>;
490
+ }
491
+ declare class SystemMemberService implements ISystemMemberService {
492
+ private readonly serviceProxy;
493
+ constructor(kinotic: IKinotic7);
494
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
495
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
496
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
497
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
498
+ rotateSecret(machineId: string): Promise<string>;
499
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
500
+ removeMachine(machineId: string): Promise<void>;
501
+ }
429
502
  interface ISystemApiExtension {
430
503
  vmNodes: IVmNodeService;
431
504
  workloads: IWorkloadService;
@@ -433,12 +506,13 @@ interface ISystemApiExtension {
433
506
  logManager: ILogManager;
434
507
  clusterInfo: IKinoticClusterInfoService;
435
508
  systemOrganizations: ISystemOrganizationService;
509
+ systemMembers: ISystemMemberService;
436
510
  }
437
511
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
438
- import { IKinotic as IKinotic7 } from "@kinotic-ai/core";
512
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
439
513
  declare class LogManager implements ILogManager {
440
514
  private readonly serviceProxy;
441
- constructor(kinotic: IKinotic7);
515
+ constructor(kinotic: IKinotic8);
442
516
  loggers(nodeId: string): Promise<LoggersDescriptor>;
443
517
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
444
518
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -448,4 +522,4 @@ declare class LogManager implements ILogManager {
448
522
  declare module "@kinotic-ai/core" {
449
523
  interface KinoticSingleton extends ISystemApiExtension {}
450
524
  }
451
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
525
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadReservation, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // packages/system-api/src/index.ts
2
- import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
2
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
3
3
 
4
4
  // packages/system-api/src/api/model/workload/VmNodeStatusType.ts
5
5
  var VmNodeStatusType;
@@ -36,6 +36,7 @@ class VmNode {
36
36
  availableCpus = 0;
37
37
  availableMemoryMb = 0;
38
38
  availableDiskMb = 0;
39
+ reservations = [];
39
40
  lastSeen = null;
40
41
  workloadDataDir = null;
41
42
  constructor(id, name, hostname) {
@@ -265,6 +266,39 @@ class SystemOrganizationService {
265
266
  }
266
267
  }
267
268
 
269
+ // packages/system-api/src/api/services/ISystemMemberService.ts
270
+ import {
271
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE8
272
+ } from "@kinotic-ai/management-api";
273
+
274
+ class SystemMemberService {
275
+ serviceProxy;
276
+ constructor(kinotic) {
277
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.SystemMemberService`);
278
+ }
279
+ findUsers(pageable) {
280
+ return this.serviceProxy.invoke("findUsers", [pageable]);
281
+ }
282
+ searchUsers(searchText, pageable) {
283
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
284
+ }
285
+ findMachines(pageable) {
286
+ return this.serviceProxy.invoke("findMachines", [pageable]);
287
+ }
288
+ createMachine(displayName) {
289
+ return this.serviceProxy.invoke("createMachine", [displayName]);
290
+ }
291
+ rotateSecret(machineId) {
292
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
293
+ }
294
+ setMachineEnabled(machineId, enabled) {
295
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
296
+ }
297
+ removeMachine(machineId) {
298
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
299
+ }
300
+ }
301
+
268
302
  // packages/system-api/src/api/SystemApiPlugin.ts
269
303
  var SystemApiPlugin = {
270
304
  install(kinotic) {
@@ -274,7 +308,8 @@ var SystemApiPlugin = {
274
308
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
275
309
  logManager: new LogManager(kinotic),
276
310
  clusterInfo: new KinoticClusterInfoService(kinotic),
277
- systemOrganizations: new SystemOrganizationService(kinotic)
311
+ systemOrganizations: new SystemOrganizationService(kinotic),
312
+ systemMembers: new SystemMemberService(kinotic)
278
313
  };
279
314
  }
280
315
  };
@@ -308,9 +343,10 @@ export {
308
343
  VmNode,
309
344
  TraceLogProperties,
310
345
  SystemOrganizationService,
346
+ SystemMemberService,
311
347
  SystemApiPlugin,
312
348
  SingleLoggerLevelsDescriptor,
313
- SYSTEM_API_ZONE8 as SYSTEM_API_ZONE,
349
+ SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
314
350
  LoggersDescriptor,
315
351
  LoggerLevelsDescriptor,
316
352
  LogManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.13",
3
+ "version": "5.0.0-beta.15",
4
4
  "type": "module",
5
5
  "description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
6
6
  "files": [
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@kinotic-ai/core": "^5.0.0-beta.13",
42
- "@kinotic-ai/management-api": "^5.0.0-beta.31"
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.33"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@kinotic-ai/core": "5.0.0-beta.13",
46
- "@kinotic-ai/management-api": "5.0.0-beta.31",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.33",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }