@kinotic-ai/system-api 5.0.0-beta.1

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.
@@ -0,0 +1,622 @@
1
+ import { SYSTEM_API_ZONE } from "@kinotic-ai/management-api";
2
+ /**
3
+ * How much of a workload's log output is kept on the node. The workload's own image and
4
+ * entrypoint have no say in it: the policy is applied by the VM provider, which owns the
5
+ * log files, so a workload cannot fill the node by writing to stdout.
6
+ */
7
+ declare class LogPolicy {
8
+ /**
9
+ * Size at which the workload's current log file is rotated.
10
+ */
11
+ maxSizeMb: number;
12
+ /**
13
+ * How many rotated files are kept alongside the current one. The oldest is discarded
14
+ * once this many exist, so a workload's logs occupy at most maxSizeMb * (maxFiles + 1).
15
+ */
16
+ maxFiles: number;
17
+ }
18
+ declare enum NetworkMode {
19
+ ENABLED = "ENABLED",
20
+ /**
21
+ * No network access. Nothing outside the VM is reachable, by name or by address, and
22
+ * any NetworkPolicy.allowedHosts the workload declares does not apply.
23
+ */
24
+ DISABLED = "DISABLED"
25
+ }
26
+ /**
27
+ * The network access granted to a workload's VM. The workload's own image and entrypoint
28
+ * have no say in it: the policy is applied by the VM provider when the VM is created,
29
+ * which is what makes it safe to run code the platform does not trust.
30
+ */
31
+ declare class NetworkPolicy {
32
+ /**
33
+ * Whether the VM has network access at all.
34
+ */
35
+ mode: NetworkMode;
36
+ /**
37
+ * The outbound destinations the VM may reach, including the api-gateway the workload is
38
+ * deployed to talk to. An empty list denies every destination, leaving the VM able to
39
+ * resolve names and reach nothing. Applies only when mode is ENABLED.
40
+ *
41
+ * What an entry may be follows the provider of the node the workload is placed on:
42
+ * CLOUD_HYPERVISOR takes IPv4 addresses and CIDRs, enforced by the node's firewall, and
43
+ * BOXLITE takes hostnames, enforced on the connection so an unlisted destination is
44
+ * unreachable by name and by raw IP alike.
45
+ */
46
+ allowedHosts: string[];
47
+ }
48
+ declare enum PortProtocol {
49
+ TCP = "TCP",
50
+ UDP = "UDP"
51
+ }
52
+ /**
53
+ * A guest port exposed on the host for a workload's VM.
54
+ */
55
+ interface PortMapping {
56
+ /** Host port to expose. When omitted, the provider assigns one. */
57
+ hostPort?: number;
58
+ /** Guest port to map to the host. */
59
+ guestPort: number;
60
+ /** Transport protocol. When omitted, the provider's default applies. */
61
+ protocol?: PortProtocol;
62
+ /** Host interface to bind on. When omitted, the provider's default applies. */
63
+ hostIp?: string;
64
+ }
65
+ import { Identifiable } from "@kinotic-ai/core";
66
+ declare enum VmNodeStatusType {
67
+ ONLINE = "ONLINE",
68
+ OFFLINE = "OFFLINE",
69
+ DRAINING = "DRAINING"
70
+ }
71
+ /**
72
+ * Whether a node is fit to receive workloads, and why when it is not.
73
+ */
74
+ declare class VmNodeStatus {
75
+ /**
76
+ * Whether the node is taking workloads.
77
+ */
78
+ type: VmNodeStatusType;
79
+ /**
80
+ * Why the node is not taking workloads, or null when it is. Set from the node's own report
81
+ * of the guarantees it can still make — a data root that stopped enforcing disk limits, or
82
+ * a firewall that stopped hiding host credentials from guests.
83
+ */
84
+ healthMessage: string | null;
85
+ }
86
+ declare enum VmProviderType {
87
+ BOXLITE = "BOXLITE",
88
+ CLOUD_HYPERVISOR = "CLOUD_HYPERVISOR"
89
+ }
90
+ /**
91
+ * Represents a node in the cluster that is running a VmManager process
92
+ * and is capable of hosting workloads.
93
+ */
94
+ declare class VmNode implements Identifiable<string> {
95
+ /**
96
+ * Unique identifier for this node.
97
+ */
98
+ id: string;
99
+ /**
100
+ * Human-readable name for the node.
101
+ */
102
+ name: string;
103
+ /**
104
+ * The hostname or address of the node.
105
+ */
106
+ hostname: string;
107
+ /**
108
+ * Whether the node is fit to receive workloads, and why when it is not.
109
+ */
110
+ status: VmNodeStatus;
111
+ /**
112
+ * The VM provider this node runs every workload on, determined by how the node was
113
+ * provisioned and reported when it registers.
114
+ */
115
+ providerType: VmProviderType;
116
+ /**
117
+ * Total number of vCPUs available on this node.
118
+ */
119
+ totalCpus: number;
120
+ /**
121
+ * Total memory available on this node in megabytes.
122
+ */
123
+ totalMemoryMb: number;
124
+ /**
125
+ * Total disk space available on this node in megabytes.
126
+ */
127
+ totalDiskMb: number;
128
+ /**
129
+ * Number of vCPUs currently allocated to workloads.
130
+ */
131
+ allocatedCpus: number;
132
+ /**
133
+ * Memory currently allocated to workloads in megabytes.
134
+ */
135
+ allocatedMemoryMb: number;
136
+ /**
137
+ * Disk space currently allocated to workloads in megabytes.
138
+ */
139
+ allocatedDiskMb: number;
140
+ /**
141
+ * The date and time the node was last seen/heartbeat.
142
+ */
143
+ lastSeen: number | null;
144
+ /**
145
+ * Base directory every workload volume mount on this node must live under. Reported by
146
+ * the node at registration; deployment flows compose host paths under it.
147
+ */
148
+ workloadDataDir: string | null;
149
+ constructor(id: string, name: string, hostname: string);
150
+ }
151
+ /**
152
+ * A host directory exposed inside a workload's guest VM.
153
+ */
154
+ interface VolumeMount {
155
+ /** Absolute path on the host to mount into the guest. */
156
+ hostPath: string;
157
+ /** Absolute path inside the guest where the host path is mounted. */
158
+ guestPath: string;
159
+ /** When true, the mount is exposed read-only inside the guest. Defaults to false. */
160
+ readOnly?: boolean;
161
+ /**
162
+ * Hard cap in megabytes on what the guest may write through this mount. Unset leaves the
163
+ * mount bounded only by the host filesystem it comes from. Applies to writable mounts,
164
+ * since a read-only mount is already unwritable.
165
+ */
166
+ sizeLimitMb?: number;
167
+ }
168
+ import { Identifiable as Identifiable2 } from "@kinotic-ai/core";
169
+ declare enum WorkloadStatus {
170
+ PENDING = "PENDING",
171
+ STARTING = "STARTING",
172
+ RUNNING = "RUNNING",
173
+ STOPPING = "STOPPING",
174
+ STOPPED = "STOPPED",
175
+ FAILED = "FAILED"
176
+ }
177
+ /**
178
+ * Represents a workload to be managed by the VM manager.
179
+ * A workload defines the configuration for a micro VM instance.
180
+ */
181
+ declare class Workload implements Identifiable2<string> {
182
+ /**
183
+ * Unique identifier for this workload.
184
+ */
185
+ id: string | null;
186
+ /**
187
+ * Human-readable name for the workload.
188
+ */
189
+ name: string;
190
+ /**
191
+ * Optional description of the workload.
192
+ */
193
+ description?: string;
194
+ /**
195
+ * The id of the node this workload is deployed to, assigned by the orchestrator
196
+ * during deployment, or set by the caller before deploying to pin the workload to a
197
+ * specific node. Null until the workload has been placed.
198
+ */
199
+ nodeId: string | null;
200
+ /**
201
+ * The Organization this workload runs on behalf of, and which may view its logs.
202
+ * Null for platform workloads (SYSTEM scope).
203
+ */
204
+ organizationId: string | null;
205
+ /**
206
+ * The Application this workload runs on behalf of, or null if none.
207
+ * When set, organizationId must also be set.
208
+ */
209
+ applicationId: string | null;
210
+ /**
211
+ * The image or rootfs to use for the VM.
212
+ */
213
+ image: string;
214
+ /**
215
+ * Number of vCPUs allocated to the VM.
216
+ */
217
+ vcpus: number;
218
+ /**
219
+ * Memory allocated to the VM in megabytes.
220
+ */
221
+ memoryMb: number;
222
+ /**
223
+ * Disk size allocated to the VM in megabytes.
224
+ */
225
+ diskSizeMb: number;
226
+ /**
227
+ * The network access granted to this workload's VM.
228
+ */
229
+ network: NetworkPolicy;
230
+ /**
231
+ * How much of this workload's log output the node keeps.
232
+ */
233
+ logPolicy: LogPolicy;
234
+ /**
235
+ * When true the VM runs detached from the vm-manager process and survives its restarts,
236
+ * and calls that start its run (deploy, restart) complete as soon as it is running.
237
+ * When false the workload runs in the foreground: it ends when the vm-manager exits,
238
+ * and calls that start its run complete only once the run has ended — STOPPED or
239
+ * FAILED, with the exit code set.
240
+ */
241
+ detached: boolean;
242
+ /**
243
+ * When true the VM and its disk are discarded when the workload stops, so a
244
+ * stopped workload cannot be restarted. When false the disk is kept and the
245
+ * workload may be restarted in place.
246
+ */
247
+ autoRemove: boolean;
248
+ /**
249
+ * Current status of the workload.
250
+ */
251
+ status: WorkloadStatus;
252
+ /**
253
+ * The exit status of the workload's process once it has stopped, null while it has not.
254
+ * A workload killed by a signal reports 128 plus the signal number, so 137 is a SIGKILL —
255
+ * which is what a workload that exceeded its memory limit receives, with no chance to
256
+ * shut down first. FAILED alone does not distinguish that from code that threw.
257
+ */
258
+ exitCode: number | null;
259
+ /**
260
+ * Optional environment variables to pass to the VM. Persisted verbatim on the workload
261
+ * record — put values that must not be readable there in secrets instead.
262
+ */
263
+ environment: Record<string, string>;
264
+ /**
265
+ * Optional secret environment variables to pass to the VM, delivered to the guest
266
+ * exactly like environment and overriding it on a duplicate key. The persisted workload
267
+ * record holds a masked value for every entry — reading a workload back returns the keys
268
+ * but never the values, which only the node receives.
269
+ */
270
+ secrets: Record<string, string>;
271
+ /**
272
+ * Port mappings that expose guest ports on the host.
273
+ */
274
+ portMappings: PortMapping[];
275
+ /**
276
+ * Volume mounts that expose host directories inside the guest VM.
277
+ */
278
+ volumeMounts: VolumeMount[];
279
+ /**
280
+ * Overrides the image entrypoint. Empty keeps the image default.
281
+ */
282
+ entrypoint: string[];
283
+ /**
284
+ * Overrides the image command (CMD). Empty keeps the image default, unless
285
+ * entrypoint is declared — then the image CMD is dropped so the entrypoint
286
+ * runs exactly as given.
287
+ */
288
+ cmd: string[];
289
+ /**
290
+ * The date and time the workload was created.
291
+ */
292
+ created: number | null;
293
+ /**
294
+ * The date and time the workload was last updated.
295
+ */
296
+ updated: number | null;
297
+ constructor(name: string, image: string);
298
+ }
299
+ /**
300
+ * DTO sent by a vm-manager process when it registers with the server.
301
+ * Contains only the information the node knows about itself.
302
+ */
303
+ declare class VmNodeRegistration {
304
+ /**
305
+ * Unique identifier for this node.
306
+ */
307
+ id: string;
308
+ /**
309
+ * Human-readable name for the node.
310
+ */
311
+ name: string;
312
+ /**
313
+ * The hostname or address of the node.
314
+ */
315
+ hostname: string;
316
+ /**
317
+ * The VM provider this node runs every workload on.
318
+ */
319
+ providerType: VmProviderType;
320
+ /**
321
+ * Total number of vCPUs available on this node.
322
+ */
323
+ totalCpus: number;
324
+ /**
325
+ * Total memory available on this node in megabytes.
326
+ */
327
+ totalMemoryMb: number;
328
+ /**
329
+ * Total disk space available on this node in megabytes.
330
+ */
331
+ totalDiskMb: number;
332
+ /**
333
+ * Base directory every workload volume mount on this node must live under.
334
+ */
335
+ workloadDataDir: string | null;
336
+ constructor(id: string, name: string, hostname: string);
337
+ }
338
+ /**
339
+ * A vm-manager node's view of one workload's status, reported to the orchestrator.
340
+ */
341
+ interface WorkloadStatusReport {
342
+ /** Id of the workload the report is about. */
343
+ workloadId: string;
344
+ /** The workload's status on the node. */
345
+ status: WorkloadStatus;
346
+ /** The exit status of the workload's process once its run has ended, null while it has not. */
347
+ exitCode: number | null;
348
+ /** When the node recorded this status, in epoch milliseconds. */
349
+ updated: number;
350
+ }
351
+ import { IKinotic } from "@kinotic-ai/core";
352
+ import { CrudServiceProxy, ICrudServiceProxy } from "@kinotic-ai/core";
353
+ interface IVmNodeService extends ICrudServiceProxy<VmNode> {
354
+ /**
355
+ * Finds a node with sufficient resources to host a workload with the given requirements.
356
+ * @param requiredCpus the number of vCPUs required
357
+ * @param requiredMemoryMb the amount of memory required in megabytes
358
+ * @param requiredDiskMb the amount of disk space required in megabytes
359
+ * @return a Promise resolving to a suitable node, or null if none available
360
+ */
361
+ findAvailableNode(requiredCpus: number, requiredMemoryMb: number, requiredDiskMb: number): Promise<VmNode | null>;
362
+ /**
363
+ * This operation makes all the recent writes immediately available for search.
364
+ * @return a Promise that resolves when the operation is complete
365
+ */
366
+ syncIndex(): Promise<void>;
367
+ }
368
+ declare class VmNodeServiceProxy extends CrudServiceProxy<VmNode> implements IVmNodeService {
369
+ constructor(kinotic: IKinotic);
370
+ findAvailableNode(requiredCpus: number, requiredMemoryMb: number, requiredDiskMb: number): Promise<VmNode | null>;
371
+ syncIndex(): Promise<void>;
372
+ }
373
+ import { CrudServiceProxy as CrudServiceProxy2, IKinotic as IKinotic2, ICrudServiceProxy as ICrudServiceProxy2, IterablePage, Page, Pageable } from "@kinotic-ai/core";
374
+ interface IWorkloadService extends ICrudServiceProxy2<Workload> {
375
+ /**
376
+ * Finds all workloads deployed on the given node.
377
+ * @param nodeId the id of the node to find workloads for
378
+ * @param pageable the page to return
379
+ * @return a Promise resolving to a page of workloads
380
+ */
381
+ findAllForNode(nodeId: string, pageable: Pageable): Promise<IterablePage<Workload>>;
382
+ /**
383
+ * Counts all workloads deployed on the given node.
384
+ * @param nodeId the id of the node to count workloads for
385
+ * @return a Promise resolving to the number of workloads
386
+ */
387
+ countForNode(nodeId: string): Promise<number>;
388
+ /**
389
+ * This operation makes all the recent writes immediately available for search.
390
+ * @return a Promise that resolves when the operation is complete
391
+ */
392
+ syncIndex(): Promise<void>;
393
+ }
394
+ declare class WorkloadServiceProxy extends CrudServiceProxy2<Workload> implements IWorkloadService {
395
+ constructor(kinotic: IKinotic2);
396
+ findAllForNode(nodeId: string, pageable: Pageable): Promise<IterablePage<Workload>>;
397
+ findAllForNodeSinglePage(nodeId: string, pageable: Pageable): Promise<Page<Workload>>;
398
+ countForNode(nodeId: string): Promise<number>;
399
+ syncIndex(): Promise<void>;
400
+ }
401
+ import { IKinotic as IKinotic3 } from "@kinotic-ai/core";
402
+ /**
403
+ * Orchestrates workload deployment across the cluster, acting as the intermediary between
404
+ * clients and the VmManager on each node. For querying workloads use {@link IWorkloadService}.
405
+ */
406
+ interface IWorkloadOrchestrationService {
407
+ /**
408
+ * Deploys a new workload to an appropriate node in the cluster. A workload carrying a
409
+ * nodeId is deployed to that node instead, failing when the node is not registered, not
410
+ * taking workloads, or lacks the capacity the workload requires. When the workload is not
411
+ * detached the returned Promise resolves only once the run has ended — STOPPED or
412
+ * FAILED, with the exit code set; otherwise it resolves as soon as the workload is
413
+ * started.
414
+ * @param workload the workload configuration to deploy
415
+ * @return a Promise resolving to the deployed workload (including assigned nodeId and id)
416
+ */
417
+ deployWorkload(workload: Workload): Promise<Workload>;
418
+ /**
419
+ * Restarts a stopped workload in place on the node it is deployed to. Fails unless the
420
+ * workload is stopped; a workload stopped with autoRemove true has no VM left to restart.
421
+ * Honors the workload's detached flag the same way as {@link deployWorkload}.
422
+ * @param workloadId the id of the workload to restart
423
+ * @return a Promise resolving to the restarted workload
424
+ */
425
+ restartWorkload(workloadId: string): Promise<Workload>;
426
+ /**
427
+ * Stops a running workload.
428
+ * @param workloadId the id of the workload to stop
429
+ * @return a Promise that resolves when the workload has been stopped
430
+ */
431
+ stopWorkload(workloadId: string): Promise<void>;
432
+ /**
433
+ * Destroys a workload, removing it from the node and cleaning up all resources.
434
+ * @param workloadId the id of the workload to destroy
435
+ * @return a Promise that resolves when the workload has been destroyed
436
+ */
437
+ destroyWorkload(workloadId: string): Promise<void>;
438
+ }
439
+ declare class WorkloadOrchestrationService implements IWorkloadOrchestrationService {
440
+ private readonly serviceProxy;
441
+ constructor(kinotic: IKinotic3);
442
+ deployWorkload(workload: Workload): Promise<Workload>;
443
+ restartWorkload(workloadId: string): Promise<Workload>;
444
+ stopWorkload(workloadId: string): Promise<void>;
445
+ destroyWorkload(workloadId: string): Promise<void>;
446
+ }
447
+ import { IKinotic as IKinotic4 } from "@kinotic-ai/core";
448
+ /**
449
+ * Proxy for communicating with the VmNodeOrchestrationService on the Kinotic server.
450
+ * Used by the vm-manager to register itself and send heartbeats.
451
+ */
452
+ declare class VmNodeOrchestrationServiceProxy {
453
+ private readonly serviceProxy;
454
+ constructor(kinotic: IKinotic4);
455
+ /**
456
+ * Registers this node with the orchestrator.
457
+ * @param registration the node registration info
458
+ * @return a Promise resolving to the registered VmNode
459
+ */
460
+ registerNode(registration: VmNodeRegistration): Promise<VmNode>;
461
+ /**
462
+ * Sends a heartbeat to indicate this node is still alive, carrying what it can still
463
+ * guarantee. A node reporting problems stops receiving workloads until it reports none.
464
+ * @param nodeId the id of this node
465
+ * @param problems what the node can no longer guarantee, empty when it is fit
466
+ * @return a Promise resolving to the updated VmNode
467
+ */
468
+ heartbeat(nodeId: string, problems: string[]): Promise<VmNode>;
469
+ /**
470
+ * Reports the actual status of workloads on this node so the server's records track
471
+ * transitions the orchestrator did not initiate.
472
+ * @param nodeId the id of this node
473
+ * @param reports one report per workload
474
+ */
475
+ reportWorkloadStatus(nodeId: string, reports: WorkloadStatusReport[]): Promise<void>;
476
+ /**
477
+ * Deregisters this node from the orchestrator.
478
+ * @param nodeId the id of this node
479
+ */
480
+ deregisterNode(nodeId: string): Promise<void>;
481
+ }
482
+ import { KinoticPlugin } from "@kinotic-ai/core";
483
+ declare enum LogLevel {
484
+ TRACE = "TRACE",
485
+ DEBUG = "DEBUG",
486
+ INFO = "INFO",
487
+ WARN = "WARN",
488
+ ERROR = "ERROR",
489
+ FATAL = "FATAL",
490
+ OFF = "OFF"
491
+ }
492
+ declare class LoggerLevelsDescriptor {
493
+ configuredLevel?: LogLevel;
494
+ }
495
+ declare class GroupLoggerLevelsDescriptor extends LoggerLevelsDescriptor {
496
+ members: string[];
497
+ }
498
+ declare class SingleLoggerLevelsDescriptor extends LoggerLevelsDescriptor {
499
+ effectiveLevel?: LogLevel;
500
+ }
501
+ /**
502
+ * Description of loggers
503
+ */
504
+ declare class LoggersDescriptor {
505
+ levels: LogLevel[];
506
+ loggerLevels: Map<string, SingleLoggerLevelsDescriptor>;
507
+ groups: Map<string, GroupLoggerLevelsDescriptor>;
508
+ }
509
+ /**
510
+ * Provides the ability to manage loggers
511
+ */
512
+ interface ILogManager {
513
+ /**
514
+ * @param nodeId the kinotic node to get the LoggersDescriptor from
515
+ * @return a {@link LoggersDescriptor} containing all the loggers and their levels
516
+ */
517
+ loggers(nodeId: string): Promise<LoggersDescriptor>;
518
+ /**
519
+ * @param nodeId the kinotic node to get the LoggerLevelsDescriptor from
520
+ * @param name the name of the logger to get
521
+ * @return a {@link LoggerLevelsDescriptor} containing the logger and its levels
522
+ */
523
+ loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
524
+ /**
525
+ * Configures the log level for the logger with the given name
526
+ * @param nodeId the kinotic node to set the log level on
527
+ * @param name the name of the logger to set
528
+ * @param level the {@link LogLevel} to set for the logger with the given name
529
+ */
530
+ configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
531
+ }
532
+ import { IKinotic as IKinotic5 } from "@kinotic-ai/core";
533
+ /**
534
+ * A single kinotic-server node in the cluster. Mirrors the server's
535
+ * {@code org.kinotic.domain.api.model.cluster.KinoticNodeInfo}.
536
+ */
537
+ declare class KinoticNodeInfo {
538
+ nodeId: string;
539
+ order: number;
540
+ local: boolean;
541
+ version: string;
542
+ }
543
+ /**
544
+ * The kinotic-server cluster's current topology and state. Mirrors the server's
545
+ * {@code org.kinotic.domain.api.model.cluster.KinoticClusterInfo}.
546
+ */
547
+ declare class KinoticClusterInfo {
548
+ localNodeId: string;
549
+ serverNodeCount: number;
550
+ topologyVersion: number;
551
+ clusterState: string;
552
+ nodes: KinoticNodeInfo[];
553
+ active: boolean;
554
+ }
555
+ /**
556
+ * Queries the kinotic-server cluster's topology and state.
557
+ */
558
+ interface IKinoticClusterInfoService {
559
+ /**
560
+ * @return the cluster's current {@link KinoticClusterInfo}
561
+ */
562
+ getClusterInfo(): Promise<KinoticClusterInfo>;
563
+ }
564
+ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
565
+ private readonly serviceProxy;
566
+ constructor(kinotic: IKinotic5);
567
+ getClusterInfo(): Promise<KinoticClusterInfo>;
568
+ }
569
+ import { Application, Organization, Project, PendingInviteSummary, UserParticipantIdentity } from "@kinotic-ai/management-api";
570
+ import { IKinotic as IKinotic6, Page as Page2, Pageable as Pageable2 } from "@kinotic-ai/core";
571
+ /**
572
+ * Cross-organization reads for platform operators. Published in the system zone, which only
573
+ * SYSTEM participants may address, so every method takes the target organization explicitly
574
+ * instead of resolving it from the caller's scope.
575
+ */
576
+ interface ISystemOrganizationService {
577
+ findOrganizations(pageable: Pageable2): Promise<Page2<Organization>>;
578
+ searchOrganizations(searchText: string, pageable: Pageable2): Promise<Page2<Organization>>;
579
+ /** Resolves null when no organization has the given id. */
580
+ findOrganizationById(organizationId: string): Promise<Organization | null>;
581
+ countOrganizations(): Promise<number>;
582
+ findApplications(organizationId: string, pageable: Pageable2): Promise<Page2<Application>>;
583
+ findProjects(organizationId: string, pageable: Pageable2): Promise<Page2<Project>>;
584
+ /** applicationId null = the organization's members */
585
+ findMembers(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
586
+ searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
587
+ findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
588
+ }
589
+ declare class SystemOrganizationService implements ISystemOrganizationService {
590
+ private readonly serviceProxy;
591
+ constructor(kinotic: IKinotic6);
592
+ findOrganizations(pageable: Pageable2): Promise<Page2<Organization>>;
593
+ searchOrganizations(searchText: string, pageable: Pageable2): Promise<Page2<Organization>>;
594
+ findOrganizationById(organizationId: string): Promise<Organization | null>;
595
+ countOrganizations(): Promise<number>;
596
+ findApplications(organizationId: string, pageable: Pageable2): Promise<Page2<Application>>;
597
+ findProjects(organizationId: string, pageable: Pageable2): Promise<Page2<Project>>;
598
+ findMembers(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
599
+ searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<UserParticipantIdentity>>;
600
+ findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable2): Promise<Page2<PendingInviteSummary>>;
601
+ }
602
+ interface ISystemApiExtension {
603
+ vmNodes: IVmNodeService;
604
+ workloads: IWorkloadService;
605
+ workloadOrchestration: IWorkloadOrchestrationService;
606
+ logManager: ILogManager;
607
+ clusterInfo: IKinoticClusterInfoService;
608
+ systemOrganizations: ISystemOrganizationService;
609
+ }
610
+ declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
611
+ import { IKinotic as IKinotic7 } from "@kinotic-ai/core";
612
+ declare class LogManager implements ILogManager {
613
+ private readonly serviceProxy;
614
+ constructor(kinotic: IKinotic7);
615
+ loggers(nodeId: string): Promise<LoggersDescriptor>;
616
+ loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
617
+ configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
618
+ }
619
+ declare module "@kinotic-ai/core" {
620
+ interface KinoticSingleton extends ISystemApiExtension {}
621
+ }
622
+ export { WorkloadStatusReport, WorkloadStatus, WorkloadServiceProxy, WorkloadOrchestrationService, Workload, VolumeMount, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, PortProtocol, PortMapping, NetworkPolicy, NetworkMode, LoggersDescriptor, LoggerLevelsDescriptor, LogPolicy, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };