@kinotic-ai/system-api 5.0.0-beta.25 → 5.0.0-beta.27

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
@@ -52,20 +52,24 @@ __export(exports_src, {
52
52
  TraceLogProperties: () => TraceLogProperties,
53
53
  SystemOrganizationService: () => SystemOrganizationService,
54
54
  SystemMemberService: () => SystemMemberService,
55
+ SystemJobService: () => SystemJobService,
55
56
  SystemApiPlugin: () => SystemApiPlugin,
56
57
  SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
57
- SYSTEM_API_ZONE: () => import_management_api10.SYSTEM_API_ZONE,
58
+ SYSTEM_API_ZONE: () => import_management_api12.SYSTEM_API_ZONE,
58
59
  LoggersDescriptor: () => LoggersDescriptor,
59
60
  LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
60
61
  LogManager: () => LogManager,
61
62
  LogLevel: () => LogLevel,
63
+ LlmProviderType: () => LlmProviderType,
64
+ LlmConfigurationService: () => LlmConfigurationService,
65
+ LlmConfiguration: () => LlmConfiguration,
62
66
  KinoticNodeInfo: () => KinoticNodeInfo,
63
67
  KinoticClusterInfoService: () => KinoticClusterInfoService,
64
68
  KinoticClusterInfo: () => KinoticClusterInfo,
65
69
  GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
66
70
  });
67
71
  module.exports = __toCommonJS(exports_src);
68
- var import_management_api10 = require("@kinotic-ai/management-api");
72
+ var import_management_api12 = require("@kinotic-ai/management-api");
69
73
 
70
74
  // packages/system-api/src/api/model/workload/VmNode.ts
71
75
  var import_management_api = require("@kinotic-ai/management-api");
@@ -121,6 +125,30 @@ class VmNodeRegistration {
121
125
  this.hostname = hostname;
122
126
  }
123
127
  }
128
+ // packages/system-api/src/api/model/llm/LlmConfiguration.ts
129
+ class LlmConfiguration {
130
+ id = null;
131
+ name;
132
+ provider;
133
+ model;
134
+ endpoint = null;
135
+ maxTokens = null;
136
+ temperature = null;
137
+ apiKeyHeld = false;
138
+ created = null;
139
+ updated = null;
140
+ constructor(name, provider, model) {
141
+ this.name = name;
142
+ this.provider = provider;
143
+ this.model = model;
144
+ }
145
+ }
146
+ // packages/system-api/src/api/model/llm/LlmProviderType.ts
147
+ var LlmProviderType;
148
+ ((LlmProviderType2) => {
149
+ LlmProviderType2["ANTHROPIC"] = "ANTHROPIC";
150
+ LlmProviderType2["OPENAI"] = "OPENAI";
151
+ })(LlmProviderType ||= {});
124
152
  // packages/system-api/src/api/services/workload/IVmNodeService.ts
125
153
  var import_management_api2 = require("@kinotic-ai/management-api");
126
154
  var import_core = require("@kinotic-ai/core");
@@ -381,6 +409,47 @@ class WatchEventService {
381
409
  }
382
410
  }
383
411
 
412
+ // packages/system-api/src/api/services/ILlmConfigurationService.ts
413
+ var import_management_api10 = require("@kinotic-ai/management-api");
414
+
415
+ class LlmConfigurationService {
416
+ serviceProxy;
417
+ constructor(kinotic) {
418
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
419
+ }
420
+ findAll(pageable) {
421
+ return this.serviceProxy.invoke("findAll", [pageable]);
422
+ }
423
+ findById(id) {
424
+ return this.serviceProxy.invoke("findById", [id]);
425
+ }
426
+ findByName(name) {
427
+ return this.serviceProxy.invoke("findByName", [name]);
428
+ }
429
+ save(configuration, apiKey) {
430
+ return this.serviceProxy.invoke("save", [configuration, apiKey]);
431
+ }
432
+ deleteById(id) {
433
+ return this.serviceProxy.invoke("deleteById", [id]);
434
+ }
435
+ }
436
+
437
+ // packages/system-api/src/api/services/ISystemJobService.ts
438
+ var import_management_api11 = require("@kinotic-ai/management-api");
439
+
440
+ class SystemJobService {
441
+ serviceProxy;
442
+ constructor(kinotic) {
443
+ this.serviceProxy = kinotic.serviceProxy(`${import_management_api11.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemJobService`);
444
+ }
445
+ findSystemJobs() {
446
+ return this.serviceProxy.invoke("findSystemJobs", []);
447
+ }
448
+ startSystemJob(name) {
449
+ return this.serviceProxy.invoke("startSystemJob", [name]);
450
+ }
451
+ }
452
+
384
453
  // packages/system-api/src/api/SystemApiPlugin.ts
385
454
  var SystemApiPlugin = {
386
455
  install(kinotic) {
@@ -392,7 +461,9 @@ var SystemApiPlugin = {
392
461
  clusterInfo: new KinoticClusterInfoService(kinotic),
393
462
  systemOrganizations: new SystemOrganizationService(kinotic),
394
463
  systemMembers: new SystemMemberService(kinotic),
395
- watchEvents: new WatchEventService(kinotic)
464
+ watchEvents: new WatchEventService(kinotic),
465
+ llmConfigurations: new LlmConfigurationService(kinotic),
466
+ systemJobs: new SystemJobService(kinotic)
396
467
  };
397
468
  }
398
469
  };
package/dist/index.d.cts CHANGED
@@ -149,6 +149,39 @@ interface WorkloadStatusReport {
149
149
  /** When the node recorded this status, in epoch milliseconds. */
150
150
  updated: number;
151
151
  }
152
+ /**
153
+ * The provider whose API an LlmConfiguration calls.
154
+ */
155
+ declare enum LlmProviderType {
156
+ /** Anthropic's Messages API, serving the Claude models. */
157
+ ANTHROPIC = "ANTHROPIC",
158
+ /** OpenAI's Chat Completions API, or a server compatible with it. */
159
+ OPENAI = "OPENAI"
160
+ }
161
+ /**
162
+ * A large language model the platform's services call: the provider, the model, where the provider's API is
163
+ * reached and the options each request carries. The API key the provider is called with is held in the secret
164
+ * storage and is never a field of the configuration; apiKeyHeld says whether one is held.
165
+ */
166
+ declare class LlmConfiguration {
167
+ id: string | null;
168
+ /** The name a service selects the configuration by, unique across the platform. */
169
+ name: string;
170
+ provider: LlmProviderType;
171
+ /** The provider's id of the model, such as claude-opus-5-5. */
172
+ model: string;
173
+ /** The base URL of the provider's API, or null for the provider's public API. */
174
+ endpoint: string | null;
175
+ /** The most tokens a response may hold, or null for the calling service's default. */
176
+ maxTokens: number | null;
177
+ /** The sampling temperature, or null for the provider's default. */
178
+ temperature: number | null;
179
+ /** Whether an API key is held for the configuration. */
180
+ apiKeyHeld: boolean;
181
+ created: string | null;
182
+ updated: string | null;
183
+ constructor(name: string, provider: LlmProviderType, model: string);
184
+ }
152
185
  import { WatchEvent } from "@kinotic-ai/management-api";
153
186
  import { IKinotic } from "@kinotic-ai/core";
154
187
  import { CrudServiceProxy, ICrudServiceProxy, IterablePage, Page, Pageable } from "@kinotic-ai/core";
@@ -428,7 +461,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
428
461
  import { Application, Organization, Project, PendingInviteSummary, Member } from "@kinotic-ai/management-api";
429
462
  import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
430
463
  /**
431
- * Cross-organization reads for platform operators. Published in the system zone, which only
464
+ * Cross-organization reads for system users. Published in the system zone, which only
432
465
  * SYSTEM participants may address, so every method takes the target organization explicitly
433
466
  * instead of resolving it from the caller's scope.
434
467
  */
@@ -461,7 +494,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
461
494
  import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
462
495
  import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
463
496
  /**
464
- * The platform's own members: the operators who sign in to the system console, and the
497
+ * The platform's own members: the system users who sign in to the system console, and the
465
498
  * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
466
499
  * Published in the system zone, which only SYSTEM participants may address; every method works
467
500
  * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
@@ -527,6 +560,79 @@ declare class WatchEventService implements IWatchEventService {
527
560
  findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
528
561
  private findAllSinglePage;
529
562
  }
563
+ import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
564
+ /**
565
+ * The large language models the platform's services call, each an LlmConfiguration that system users
566
+ * manage and a service selects by name. A configuration's API key is given on save and held in the platform's
567
+ * scope of the secret storage until a save gives another or the configuration is deleted. Published in the
568
+ * system zone, which only SYSTEM participants and the platform's own cluster members may address.
569
+ */
570
+ interface ILlmConfigurationService {
571
+ findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
572
+ /** Resolves null when no configuration has the given id. */
573
+ findById(id: string): Promise<LlmConfiguration | null>;
574
+ /** Resolves null when no configuration has the given name. */
575
+ findByName(name: string): Promise<LlmConfiguration | null>;
576
+ /**
577
+ * Saves a configuration, new or changed, and makes apiKey, when given, the key it calls its provider with.
578
+ * A null or blank apiKey keeps the key held for the configuration, if any. Its name must be one no other
579
+ * configuration has.
580
+ */
581
+ save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
582
+ /** Deletes the configuration and the API key held for it. */
583
+ deleteById(id: string): Promise<void>;
584
+ }
585
+ declare class LlmConfigurationService implements ILlmConfigurationService {
586
+ private readonly serviceProxy;
587
+ constructor(kinotic: IKinotic9);
588
+ findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
589
+ findById(id: string): Promise<LlmConfiguration | null>;
590
+ findByName(name: string): Promise<LlmConfiguration | null>;
591
+ save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
592
+ deleteById(id: string): Promise<void>;
593
+ }
594
+ import { JobRun } from "@kinotic-ai/management-api";
595
+ import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
596
+ /**
597
+ * A grind job the platform's operators can start on demand, as the console lists it.
598
+ */
599
+ interface SystemJobDescriptor {
600
+ /**
601
+ * The name identifying the job, which is also the name recorded on each of its runs.
602
+ */
603
+ readonly name: string;
604
+ /**
605
+ * The version of the job's definition, recorded on each of its runs.
606
+ */
607
+ readonly version: string | null;
608
+ /**
609
+ * What the job does.
610
+ */
611
+ readonly description: string | null;
612
+ }
613
+ /**
614
+ * Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
615
+ * node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
616
+ * other job run.
617
+ */
618
+ interface ISystemJobService {
619
+ /**
620
+ * Lists the system jobs that can be started, ordered by name.
621
+ */
622
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
623
+ /**
624
+ * Starts a run of the named system job, resolving with the run once it and its task ledger are
625
+ * recorded; rejects when no system job has the given name.
626
+ * @param name the name of the job to run
627
+ */
628
+ startSystemJob(name: string): Promise<JobRun>;
629
+ }
630
+ declare class SystemJobService implements ISystemJobService {
631
+ private readonly serviceProxy;
632
+ constructor(kinotic: IKinotic10);
633
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
634
+ startSystemJob(name: string): Promise<JobRun>;
635
+ }
530
636
  interface ISystemApiExtension {
531
637
  vmNodes: IVmNodeService;
532
638
  workloads: IWorkloadService;
@@ -536,12 +642,14 @@ interface ISystemApiExtension {
536
642
  systemOrganizations: ISystemOrganizationService;
537
643
  systemMembers: ISystemMemberService;
538
644
  watchEvents: IWatchEventService;
645
+ llmConfigurations: ILlmConfigurationService;
646
+ systemJobs: ISystemJobService;
539
647
  }
540
648
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
541
- import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
649
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
542
650
  declare class LogManager implements ILogManager {
543
651
  private readonly serviceProxy;
544
- constructor(kinotic: IKinotic9);
652
+ constructor(kinotic: IKinotic11);
545
653
  loggers(nodeId: string): Promise<LoggersDescriptor>;
546
654
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
547
655
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -551,4 +659,4 @@ declare class LogManager implements ILogManager {
551
659
  declare module "@kinotic-ai/core" {
552
660
  interface KinoticSingleton extends ISystemApiExtension {}
553
661
  }
554
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
662
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemJobService, SystemJobDescriptor, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemJobService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
package/dist/index.d.ts CHANGED
@@ -149,6 +149,39 @@ interface WorkloadStatusReport {
149
149
  /** When the node recorded this status, in epoch milliseconds. */
150
150
  updated: number;
151
151
  }
152
+ /**
153
+ * The provider whose API an LlmConfiguration calls.
154
+ */
155
+ declare enum LlmProviderType {
156
+ /** Anthropic's Messages API, serving the Claude models. */
157
+ ANTHROPIC = "ANTHROPIC",
158
+ /** OpenAI's Chat Completions API, or a server compatible with it. */
159
+ OPENAI = "OPENAI"
160
+ }
161
+ /**
162
+ * A large language model the platform's services call: the provider, the model, where the provider's API is
163
+ * reached and the options each request carries. The API key the provider is called with is held in the secret
164
+ * storage and is never a field of the configuration; apiKeyHeld says whether one is held.
165
+ */
166
+ declare class LlmConfiguration {
167
+ id: string | null;
168
+ /** The name a service selects the configuration by, unique across the platform. */
169
+ name: string;
170
+ provider: LlmProviderType;
171
+ /** The provider's id of the model, such as claude-opus-5-5. */
172
+ model: string;
173
+ /** The base URL of the provider's API, or null for the provider's public API. */
174
+ endpoint: string | null;
175
+ /** The most tokens a response may hold, or null for the calling service's default. */
176
+ maxTokens: number | null;
177
+ /** The sampling temperature, or null for the provider's default. */
178
+ temperature: number | null;
179
+ /** Whether an API key is held for the configuration. */
180
+ apiKeyHeld: boolean;
181
+ created: string | null;
182
+ updated: string | null;
183
+ constructor(name: string, provider: LlmProviderType, model: string);
184
+ }
152
185
  import { WatchEvent } from "@kinotic-ai/management-api";
153
186
  import { IKinotic } from "@kinotic-ai/core";
154
187
  import { CrudServiceProxy, ICrudServiceProxy, IterablePage, Page, Pageable } from "@kinotic-ai/core";
@@ -428,7 +461,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
428
461
  import { Application, Organization, Project, PendingInviteSummary, Member } from "@kinotic-ai/management-api";
429
462
  import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
430
463
  /**
431
- * Cross-organization reads for platform operators. Published in the system zone, which only
464
+ * Cross-organization reads for system users. Published in the system zone, which only
432
465
  * SYSTEM participants may address, so every method takes the target organization explicitly
433
466
  * instead of resolving it from the caller's scope.
434
467
  */
@@ -461,7 +494,7 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
461
494
  import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
462
495
  import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
463
496
  /**
464
- * The platform's own members: the operators who sign in to the system console, and the
497
+ * The platform's own members: the system users who sign in to the system console, and the
465
498
  * SYSTEM-scope machines that connect as platform daemons, such as a worker node's vm-manager.
466
499
  * Published in the system zone, which only SYSTEM participants may address; every method works
467
500
  * on SYSTEM scope alone, so an organization's users and machines stay that organization's to
@@ -527,6 +560,79 @@ declare class WatchEventService implements IWatchEventService {
527
560
  findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
528
561
  private findAllSinglePage;
529
562
  }
563
+ import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
564
+ /**
565
+ * The large language models the platform's services call, each an LlmConfiguration that system users
566
+ * manage and a service selects by name. A configuration's API key is given on save and held in the platform's
567
+ * scope of the secret storage until a save gives another or the configuration is deleted. Published in the
568
+ * system zone, which only SYSTEM participants and the platform's own cluster members may address.
569
+ */
570
+ interface ILlmConfigurationService {
571
+ findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
572
+ /** Resolves null when no configuration has the given id. */
573
+ findById(id: string): Promise<LlmConfiguration | null>;
574
+ /** Resolves null when no configuration has the given name. */
575
+ findByName(name: string): Promise<LlmConfiguration | null>;
576
+ /**
577
+ * Saves a configuration, new or changed, and makes apiKey, when given, the key it calls its provider with.
578
+ * A null or blank apiKey keeps the key held for the configuration, if any. Its name must be one no other
579
+ * configuration has.
580
+ */
581
+ save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
582
+ /** Deletes the configuration and the API key held for it. */
583
+ deleteById(id: string): Promise<void>;
584
+ }
585
+ declare class LlmConfigurationService implements ILlmConfigurationService {
586
+ private readonly serviceProxy;
587
+ constructor(kinotic: IKinotic9);
588
+ findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
589
+ findById(id: string): Promise<LlmConfiguration | null>;
590
+ findByName(name: string): Promise<LlmConfiguration | null>;
591
+ save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
592
+ deleteById(id: string): Promise<void>;
593
+ }
594
+ import { JobRun } from "@kinotic-ai/management-api";
595
+ import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
596
+ /**
597
+ * A grind job the platform's operators can start on demand, as the console lists it.
598
+ */
599
+ interface SystemJobDescriptor {
600
+ /**
601
+ * The name identifying the job, which is also the name recorded on each of its runs.
602
+ */
603
+ readonly name: string;
604
+ /**
605
+ * The version of the job's definition, recorded on each of its runs.
606
+ */
607
+ readonly version: string | null;
608
+ /**
609
+ * What the job does.
610
+ */
611
+ readonly description: string | null;
612
+ }
613
+ /**
614
+ * Starts the platform's system jobs on demand. A run is owned by the platform and executes on the
615
+ * node that started it, and is listed, watched and read through Kinotic.jobMonitoring like any
616
+ * other job run.
617
+ */
618
+ interface ISystemJobService {
619
+ /**
620
+ * Lists the system jobs that can be started, ordered by name.
621
+ */
622
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
623
+ /**
624
+ * Starts a run of the named system job, resolving with the run once it and its task ledger are
625
+ * recorded; rejects when no system job has the given name.
626
+ * @param name the name of the job to run
627
+ */
628
+ startSystemJob(name: string): Promise<JobRun>;
629
+ }
630
+ declare class SystemJobService implements ISystemJobService {
631
+ private readonly serviceProxy;
632
+ constructor(kinotic: IKinotic10);
633
+ findSystemJobs(): Promise<SystemJobDescriptor[]>;
634
+ startSystemJob(name: string): Promise<JobRun>;
635
+ }
530
636
  interface ISystemApiExtension {
531
637
  vmNodes: IVmNodeService;
532
638
  workloads: IWorkloadService;
@@ -536,12 +642,14 @@ interface ISystemApiExtension {
536
642
  systemOrganizations: ISystemOrganizationService;
537
643
  systemMembers: ISystemMemberService;
538
644
  watchEvents: IWatchEventService;
645
+ llmConfigurations: ILlmConfigurationService;
646
+ systemJobs: ISystemJobService;
539
647
  }
540
648
  declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
541
- import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
649
+ import { IKinotic as IKinotic11 } from "@kinotic-ai/core";
542
650
  declare class LogManager implements ILogManager {
543
651
  private readonly serviceProxy;
544
- constructor(kinotic: IKinotic9);
652
+ constructor(kinotic: IKinotic11);
545
653
  loggers(nodeId: string): Promise<LoggersDescriptor>;
546
654
  loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
547
655
  configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
@@ -551,4 +659,4 @@ declare class LogManager implements ILogManager {
551
659
  declare module "@kinotic-ai/core" {
552
660
  interface KinoticSingleton extends ISystemApiExtension {}
553
661
  }
554
- export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
662
+ export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemJobService, SystemJobDescriptor, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemJobService, ISystemApiExtension, ILogManager, ILlmConfigurationService, 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_ZONE9 } from "@kinotic-ai/management-api";
2
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE11 } from "@kinotic-ai/management-api";
3
3
 
4
4
  // packages/system-api/src/api/model/workload/VmNode.ts
5
5
  import { ReconcileState } from "@kinotic-ai/management-api";
@@ -55,6 +55,30 @@ class VmNodeRegistration {
55
55
  this.hostname = hostname;
56
56
  }
57
57
  }
58
+ // packages/system-api/src/api/model/llm/LlmConfiguration.ts
59
+ class LlmConfiguration {
60
+ id = null;
61
+ name;
62
+ provider;
63
+ model;
64
+ endpoint = null;
65
+ maxTokens = null;
66
+ temperature = null;
67
+ apiKeyHeld = false;
68
+ created = null;
69
+ updated = null;
70
+ constructor(name, provider, model) {
71
+ this.name = name;
72
+ this.provider = provider;
73
+ this.model = model;
74
+ }
75
+ }
76
+ // packages/system-api/src/api/model/llm/LlmProviderType.ts
77
+ var LlmProviderType;
78
+ ((LlmProviderType2) => {
79
+ LlmProviderType2["ANTHROPIC"] = "ANTHROPIC";
80
+ LlmProviderType2["OPENAI"] = "OPENAI";
81
+ })(LlmProviderType ||= {});
58
82
  // packages/system-api/src/api/services/workload/IVmNodeService.ts
59
83
  import { SYSTEM_API_ZONE } from "@kinotic-ai/management-api";
60
84
  import { CrudServiceProxy, FunctionalIterablePage } from "@kinotic-ai/core";
@@ -319,6 +343,47 @@ class WatchEventService {
319
343
  }
320
344
  }
321
345
 
346
+ // packages/system-api/src/api/services/ILlmConfigurationService.ts
347
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
348
+
349
+ class LlmConfigurationService {
350
+ serviceProxy;
351
+ constructor(kinotic) {
352
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.LlmConfigurationService`);
353
+ }
354
+ findAll(pageable) {
355
+ return this.serviceProxy.invoke("findAll", [pageable]);
356
+ }
357
+ findById(id) {
358
+ return this.serviceProxy.invoke("findById", [id]);
359
+ }
360
+ findByName(name) {
361
+ return this.serviceProxy.invoke("findByName", [name]);
362
+ }
363
+ save(configuration, apiKey) {
364
+ return this.serviceProxy.invoke("save", [configuration, apiKey]);
365
+ }
366
+ deleteById(id) {
367
+ return this.serviceProxy.invoke("deleteById", [id]);
368
+ }
369
+ }
370
+
371
+ // packages/system-api/src/api/services/ISystemJobService.ts
372
+ import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
373
+
374
+ class SystemJobService {
375
+ serviceProxy;
376
+ constructor(kinotic) {
377
+ this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE10}~org.kinotic.system.api.services.SystemJobService`);
378
+ }
379
+ findSystemJobs() {
380
+ return this.serviceProxy.invoke("findSystemJobs", []);
381
+ }
382
+ startSystemJob(name) {
383
+ return this.serviceProxy.invoke("startSystemJob", [name]);
384
+ }
385
+ }
386
+
322
387
  // packages/system-api/src/api/SystemApiPlugin.ts
323
388
  var SystemApiPlugin = {
324
389
  install(kinotic) {
@@ -330,7 +395,9 @@ var SystemApiPlugin = {
330
395
  clusterInfo: new KinoticClusterInfoService(kinotic),
331
396
  systemOrganizations: new SystemOrganizationService(kinotic),
332
397
  systemMembers: new SystemMemberService(kinotic),
333
- watchEvents: new WatchEventService(kinotic)
398
+ watchEvents: new WatchEventService(kinotic),
399
+ llmConfigurations: new LlmConfigurationService(kinotic),
400
+ systemJobs: new SystemJobService(kinotic)
334
401
  };
335
402
  }
336
403
  };
@@ -366,13 +433,17 @@ export {
366
433
  TraceLogProperties,
367
434
  SystemOrganizationService,
368
435
  SystemMemberService,
436
+ SystemJobService,
369
437
  SystemApiPlugin,
370
438
  SingleLoggerLevelsDescriptor,
371
- SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
439
+ SYSTEM_API_ZONE11 as SYSTEM_API_ZONE,
372
440
  LoggersDescriptor,
373
441
  LoggerLevelsDescriptor,
374
442
  LogManager,
375
443
  LogLevel,
444
+ LlmProviderType,
445
+ LlmConfigurationService,
446
+ LlmConfiguration,
376
447
  KinoticNodeInfo,
377
448
  KinoticClusterInfoService,
378
449
  KinoticClusterInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/system-api",
3
- "version": "5.0.0-beta.25",
3
+ "version": "5.0.0-beta.27",
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.17",
42
- "@kinotic-ai/management-api": "^5.0.0-beta.55"
41
+ "@kinotic-ai/core": "^5.0.0-beta.25",
42
+ "@kinotic-ai/management-api": "^5.0.0-beta.60"
43
43
  },
44
44
  "devDependencies": {
45
- "@kinotic-ai/core": "5.0.0-beta.17",
46
- "@kinotic-ai/management-api": "5.0.0-beta.55",
45
+ "@kinotic-ai/core": "5.0.0-beta.25",
46
+ "@kinotic-ai/management-api": "5.0.0-beta.60",
47
47
  "@types/bun": "^1.3.9",
48
48
  "typescript": "^5.9.3"
49
49
  }