@kinotic-ai/system-api 5.0.0-beta.12 → 5.0.0-beta.14

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;
@@ -328,6 +329,37 @@ class SystemOrganizationService {
328
329
  }
329
330
  }
330
331
 
332
+ // packages/system-api/src/api/services/ISystemMemberService.ts
333
+ var import_management_api8 = require("@kinotic-ai/management-api");
334
+
335
+ class SystemMemberService {
336
+ serviceProxy;
337
+ constructor(kinotic) {
338
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api8.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemMemberService`);
339
+ }
340
+ findUsers(pageable) {
341
+ return this.serviceProxy.invoke("findUsers", [pageable]);
342
+ }
343
+ searchUsers(searchText, pageable) {
344
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
345
+ }
346
+ findMachines(pageable) {
347
+ return this.serviceProxy.invoke("findMachines", [pageable]);
348
+ }
349
+ createMachine(displayName) {
350
+ return this.serviceProxy.invoke("createMachine", [displayName]);
351
+ }
352
+ rotateSecret(machineId) {
353
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
354
+ }
355
+ setMachineEnabled(machineId, enabled) {
356
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
357
+ }
358
+ removeMachine(machineId) {
359
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
360
+ }
361
+ }
362
+
331
363
  // packages/system-api/src/api/SystemApiPlugin.ts
332
364
  var SystemApiPlugin = {
333
365
  install(kinotic) {
@@ -337,7 +369,8 @@ var SystemApiPlugin = {
337
369
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
338
370
  logManager: new LogManager(kinotic),
339
371
  clusterInfo: new KinoticClusterInfoService(kinotic),
340
- systemOrganizations: new SystemOrganizationService(kinotic)
372
+ systemOrganizations: new SystemOrganizationService(kinotic),
373
+ systemMembers: new SystemMemberService(kinotic)
341
374
  };
342
375
  }
343
376
  };
package/dist/index.d.cts CHANGED
@@ -426,6 +426,53 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
426
426
  searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
427
427
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
428
428
  }
429
+ import { MachineParticipantIdentity, MachineProvisionResult, UserParticipantIdentity as UserParticipantIdentity2 } from "@kinotic-ai/management-api";
430
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
431
+ /**
432
+ * The platform's own members: the operators who sign in to the system console, and the
433
+ * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
434
+ * Published in the system zone, which only SYSTEM participants may address; every method works
435
+ * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
436
+ * manage through IMachineService.
437
+ */
438
+ interface ISystemMemberService {
439
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
440
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
441
+ /** Lists the platform's machines, disabled ones included. */
442
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
443
+ /**
444
+ * Provisions a platform machine and returns it together with its generated client secret.
445
+ * The secret is disclosed exactly once — it cannot be retrieved later.
446
+ */
447
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
448
+ /**
449
+ * Replaces a platform machine's client secret, returning the new secret exactly once. The
450
+ * old secret stops working immediately; a connection the machine already holds lasts until
451
+ * it disconnects.
452
+ */
453
+ rotateSecret(machineId: string): Promise<string>;
454
+ /**
455
+ * Enables or disables a platform machine. A disabled machine is cut off on its next
456
+ * connection, and enabling it restores access with the same credential.
457
+ */
458
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
459
+ /**
460
+ * Permanently removes a platform machine, including its stored credential. A removed
461
+ * machine's id cannot authenticate again.
462
+ */
463
+ removeMachine(machineId: string): Promise<void>;
464
+ }
465
+ declare class SystemMemberService implements ISystemMemberService {
466
+ private readonly serviceProxy;
467
+ constructor(kinotic: IKinotic7);
468
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
469
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
470
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
471
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
472
+ rotateSecret(machineId: string): Promise<string>;
473
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
474
+ removeMachine(machineId: string): Promise<void>;
475
+ }
429
476
  interface ISystemApiExtension {
430
477
  vmNodes: IVmNodeService;
431
478
  workloads: IWorkloadService;
@@ -433,12 +480,13 @@ interface ISystemApiExtension {
433
480
  logManager: ILogManager;
434
481
  clusterInfo: IKinoticClusterInfoService;
435
482
  systemOrganizations: ISystemOrganizationService;
483
+ systemMembers: ISystemMemberService;
436
484
  }
437
485
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
438
- import { IKinotic as IKinotic7 } from "@kinotic-ai/core";
486
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
439
487
  declare class LogManager implements ILogManager {
440
488
  private readonly serviceProxy;
441
- constructor(kinotic: IKinotic7);
489
+ constructor(kinotic: IKinotic8);
442
490
  loggers(nodeId: string): Promise<LoggersDescriptor>;
443
491
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
444
492
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -448,4 +496,4 @@ declare class LogManager implements ILogManager {
448
496
  declare module "@kinotic-ai/core" {
449
497
  interface KinoticSingleton extends ISystemApiExtension {}
450
498
  }
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 };
499
+ export { WorkloadStatusReport, WorkloadServiceProxy, 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
@@ -426,6 +426,53 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
426
426
  searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
427
427
  findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
428
428
  }
429
+ import { MachineParticipantIdentity, MachineProvisionResult, UserParticipantIdentity as UserParticipantIdentity2 } from "@kinotic-ai/management-api";
430
+ import { IKinotic as IKinotic7, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
431
+ /**
432
+ * The platform's own members: the operators who sign in to the system console, and the
433
+ * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
434
+ * Published in the system zone, which only SYSTEM participants may address; every method works
435
+ * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
436
+ * manage through IMachineService.
437
+ */
438
+ interface ISystemMemberService {
439
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
440
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
441
+ /** Lists the platform's machines, disabled ones included. */
442
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
443
+ /**
444
+ * Provisions a platform machine and returns it together with its generated client secret.
445
+ * The secret is disclosed exactly once — it cannot be retrieved later.
446
+ */
447
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
448
+ /**
449
+ * Replaces a platform machine's client secret, returning the new secret exactly once. The
450
+ * old secret stops working immediately; a connection the machine already holds lasts until
451
+ * it disconnects.
452
+ */
453
+ rotateSecret(machineId: string): Promise<string>;
454
+ /**
455
+ * Enables or disables a platform machine. A disabled machine is cut off on its next
456
+ * connection, and enabling it restores access with the same credential.
457
+ */
458
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
459
+ /**
460
+ * Permanently removes a platform machine, including its stored credential. A removed
461
+ * machine's id cannot authenticate again.
462
+ */
463
+ removeMachine(machineId: string): Promise<void>;
464
+ }
465
+ declare class SystemMemberService implements ISystemMemberService {
466
+ private readonly serviceProxy;
467
+ constructor(kinotic: IKinotic7);
468
+ findUsers(pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
469
+ searchUsers(searchText: string, pageable: Pageable3): Promise<Page3<UserParticipantIdentity2>>;
470
+ findMachines(pageable: Pageable3): Promise<Page3<MachineParticipantIdentity>>;
471
+ createMachine(displayName: string): Promise<MachineProvisionResult>;
472
+ rotateSecret(machineId: string): Promise<string>;
473
+ setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
474
+ removeMachine(machineId: string): Promise<void>;
475
+ }
429
476
  interface ISystemApiExtension {
430
477
  vmNodes: IVmNodeService;
431
478
  workloads: IWorkloadService;
@@ -433,12 +480,13 @@ interface ISystemApiExtension {
433
480
  logManager: ILogManager;
434
481
  clusterInfo: IKinoticClusterInfoService;
435
482
  systemOrganizations: ISystemOrganizationService;
483
+ systemMembers: ISystemMemberService;
436
484
  }
437
485
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
438
- import { IKinotic as IKinotic7 } from "@kinotic-ai/core";
486
+ import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
439
487
  declare class LogManager implements ILogManager {
440
488
  private readonly serviceProxy;
441
- constructor(kinotic: IKinotic7);
489
+ constructor(kinotic: IKinotic8);
442
490
  loggers(nodeId: string): Promise<LoggersDescriptor>;
443
491
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
444
492
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -448,4 +496,4 @@ declare class LogManager implements ILogManager {
448
496
  declare module "@kinotic-ai/core" {
449
497
  interface KinoticSingleton extends ISystemApiExtension {}
450
498
  }
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 };
499
+ export { WorkloadStatusReport, WorkloadServiceProxy, 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;
@@ -265,6 +265,39 @@ class SystemOrganizationService {
265
265
  }
266
266
  }
267
267
 
268
+ // packages/system-api/src/api/services/ISystemMemberService.ts
269
+ import {
270
+ SYSTEM_API_ZONE as SYSTEM_API_ZONE8
271
+ } from "@kinotic-ai/management-api";
272
+
273
+ class SystemMemberService {
274
+ serviceProxy;
275
+ constructor(kinotic) {
276
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.SystemMemberService`);
277
+ }
278
+ findUsers(pageable) {
279
+ return this.serviceProxy.invoke("findUsers", [pageable]);
280
+ }
281
+ searchUsers(searchText, pageable) {
282
+ return this.serviceProxy.invoke("searchUsers", [searchText, pageable]);
283
+ }
284
+ findMachines(pageable) {
285
+ return this.serviceProxy.invoke("findMachines", [pageable]);
286
+ }
287
+ createMachine(displayName) {
288
+ return this.serviceProxy.invoke("createMachine", [displayName]);
289
+ }
290
+ rotateSecret(machineId) {
291
+ return this.serviceProxy.invoke("rotateSecret", [machineId]);
292
+ }
293
+ setMachineEnabled(machineId, enabled) {
294
+ return this.serviceProxy.invoke("setMachineEnabled", [machineId, enabled]);
295
+ }
296
+ removeMachine(machineId) {
297
+ return this.serviceProxy.invoke("removeMachine", [machineId]);
298
+ }
299
+ }
300
+
268
301
  // packages/system-api/src/api/SystemApiPlugin.ts
269
302
  var SystemApiPlugin = {
270
303
  install(kinotic) {
@@ -274,7 +307,8 @@ var SystemApiPlugin = {
274
307
  workloadOrchestration: new WorkloadOrchestrationService(kinotic),
275
308
  logManager: new LogManager(kinotic),
276
309
  clusterInfo: new KinoticClusterInfoService(kinotic),
277
- systemOrganizations: new SystemOrganizationService(kinotic)
310
+ systemOrganizations: new SystemOrganizationService(kinotic),
311
+ systemMembers: new SystemMemberService(kinotic)
278
312
  };
279
313
  }
280
314
  };
@@ -308,9 +342,10 @@ export {
308
342
  VmNode,
309
343
  TraceLogProperties,
310
344
  SystemOrganizationService,
345
+ SystemMemberService,
311
346
  SystemApiPlugin,
312
347
  SingleLoggerLevelsDescriptor,
313
- SYSTEM_API_ZONE8 as SYSTEM_API_ZONE,
348
+ SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
314
349
  LoggersDescriptor,
315
350
  LoggerLevelsDescriptor,
316
351
  LogManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.12",
3
+ "version": "5.0.0-beta.14",
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": [
@@ -38,12 +38,12 @@
38
38
  "coverage": "bun test --coverage --pass-with-no-tests"
39
39
  },
40
40
  "peerDependencies": {
41
- "@kinotic-ai/core": "^5.0.0-beta.11",
42
- "@kinotic-ai/management-api": "^5.0.0-beta.30"
41
+ "@kinotic-ai/core": "^5.0.0-beta.13",
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.32"
43
43
  },
44
44
  "devDependencies": {
45
- "@kinotic-ai/core": "5.0.0-beta.11",
46
- "@kinotic-ai/management-api": "5.0.0-beta.30",
45
+ "@kinotic-ai/core": "5.0.0-beta.13",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.32",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }