@kinotic-ai/system-api 5.0.0-beta.24 → 5.0.0-beta.25
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 +4 -31
- package/dist/index.d.cts +15 -53
- package/dist/index.d.ts +15 -53
- package/dist/index.js +4 -33
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -53,9 +53,8 @@ __export(exports_src, {
|
|
|
53
53
|
SystemOrganizationService: () => SystemOrganizationService,
|
|
54
54
|
SystemMemberService: () => SystemMemberService,
|
|
55
55
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
56
|
-
SystemAccessService: () => SystemAccessService,
|
|
57
56
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
58
|
-
SYSTEM_API_ZONE: () =>
|
|
57
|
+
SYSTEM_API_ZONE: () => import_management_api10.SYSTEM_API_ZONE,
|
|
59
58
|
LoggersDescriptor: () => LoggersDescriptor,
|
|
60
59
|
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
61
60
|
LogManager: () => LogManager,
|
|
@@ -66,7 +65,7 @@ __export(exports_src, {
|
|
|
66
65
|
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
|
|
67
66
|
});
|
|
68
67
|
module.exports = __toCommonJS(exports_src);
|
|
69
|
-
var
|
|
68
|
+
var import_management_api10 = require("@kinotic-ai/management-api");
|
|
70
69
|
|
|
71
70
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
72
71
|
var import_management_api = require("@kinotic-ai/management-api");
|
|
@@ -364,39 +363,14 @@ class SystemMemberService {
|
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
365
|
|
|
367
|
-
// packages/system-api/src/api/services/ISystemAccessService.ts
|
|
368
|
-
var import_management_api9 = require("@kinotic-ai/management-api");
|
|
369
|
-
|
|
370
|
-
class SystemAccessService {
|
|
371
|
-
serviceProxy;
|
|
372
|
-
constructor(kinotic) {
|
|
373
|
-
this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemAccessService`);
|
|
374
|
-
}
|
|
375
|
-
findRoles() {
|
|
376
|
-
return this.serviceProxy.invoke("findRoles", []);
|
|
377
|
-
}
|
|
378
|
-
findGrants() {
|
|
379
|
-
return this.serviceProxy.invoke("findGrants", []);
|
|
380
|
-
}
|
|
381
|
-
grant(subject, roleId) {
|
|
382
|
-
return this.serviceProxy.invoke("grant", [subject, roleId]);
|
|
383
|
-
}
|
|
384
|
-
revoke(grantId) {
|
|
385
|
-
return this.serviceProxy.invoke("revoke", [grantId]);
|
|
386
|
-
}
|
|
387
|
-
explain(subject, permission) {
|
|
388
|
-
return this.serviceProxy.invoke("explain", [subject, permission]);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
366
|
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
393
|
-
var
|
|
367
|
+
var import_management_api9 = require("@kinotic-ai/management-api");
|
|
394
368
|
var import_core3 = require("@kinotic-ai/core");
|
|
395
369
|
|
|
396
370
|
class WatchEventService {
|
|
397
371
|
serviceProxy;
|
|
398
372
|
constructor(kinotic) {
|
|
399
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
373
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api9.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WatchEventService`);
|
|
400
374
|
}
|
|
401
375
|
async findAll(pageable) {
|
|
402
376
|
const page = await this.findAllSinglePage(pageable);
|
|
@@ -418,7 +392,6 @@ var SystemApiPlugin = {
|
|
|
418
392
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
419
393
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
420
394
|
systemMembers: new SystemMemberService(kinotic),
|
|
421
|
-
systemAccess: new SystemAccessService(kinotic),
|
|
422
395
|
watchEvents: new WatchEventService(kinotic)
|
|
423
396
|
};
|
|
424
397
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -425,7 +425,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
|
|
|
425
425
|
constructor(kinotic: IKinotic5);
|
|
426
426
|
getClusterInfo(): Promise<KinoticClusterInfo>;
|
|
427
427
|
}
|
|
428
|
-
import { Application, Organization, Project, PendingInviteSummary,
|
|
428
|
+
import { Application, Organization, Project, PendingInviteSummary, Member } from "@kinotic-ai/management-api";
|
|
429
429
|
import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
430
430
|
/**
|
|
431
431
|
* Cross-organization reads for platform operators. Published in the system zone, which only
|
|
@@ -441,8 +441,8 @@ interface ISystemOrganizationService {
|
|
|
441
441
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
442
442
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
443
443
|
/** applicationId null = the organization's members */
|
|
444
|
-
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
445
|
-
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
444
|
+
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
445
|
+
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
446
446
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
447
447
|
}
|
|
448
448
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
@@ -454,11 +454,11 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
|
454
454
|
countOrganizations(): Promise<number>;
|
|
455
455
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
456
456
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
457
|
-
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
458
|
-
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
457
|
+
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
458
|
+
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
459
459
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
460
460
|
}
|
|
461
|
-
import { MachineParticipantIdentity, MachineProvisionResult,
|
|
461
|
+
import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
|
|
462
462
|
import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
463
463
|
/**
|
|
464
464
|
* The platform's own members: the operators who sign in to the system console, and the
|
|
@@ -468,8 +468,8 @@ import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
468
468
|
* manage through IMachineService.
|
|
469
469
|
*/
|
|
470
470
|
interface ISystemMemberService {
|
|
471
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
472
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
471
|
+
findUsers(pageable: Pageable4): Promise<Page4<Member2>>;
|
|
472
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<Member2>>;
|
|
473
473
|
/** Lists the platform's machines, disabled ones included. */
|
|
474
474
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
475
475
|
/**
|
|
@@ -497,53 +497,16 @@ interface ISystemMemberService {
|
|
|
497
497
|
declare class SystemMemberService implements ISystemMemberService {
|
|
498
498
|
private readonly serviceProxy;
|
|
499
499
|
constructor(kinotic: IKinotic7);
|
|
500
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
501
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
500
|
+
findUsers(pageable: Pageable4): Promise<Page4<Member2>>;
|
|
501
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<Member2>>;
|
|
502
502
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
503
503
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
504
504
|
rotateSecret(machineId: string): Promise<string>;
|
|
505
505
|
setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
|
|
506
506
|
removeMachine(machineId: string): Promise<void>;
|
|
507
507
|
}
|
|
508
|
-
import { AccessExplanation, Grant, RoleDefinition, Subject } from "@kinotic-ai/management-api";
|
|
509
|
-
import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
|
|
510
|
-
/**
|
|
511
|
-
* Access control of the platform itself: the roles the platform's operators and machines can be
|
|
512
|
-
* granted, and the grants made on the platform, which reach every organization and node on it. A
|
|
513
|
-
* subject named must be one of the platform's own operators or machines.
|
|
514
|
-
*/
|
|
515
|
-
interface ISystemAccessService {
|
|
516
|
-
/** The built-in roles the model defines, each with the permissions it bundles. */
|
|
517
|
-
findRoles(): Promise<RoleDefinition[]>;
|
|
518
|
-
/** The grants made on the platform. */
|
|
519
|
-
findGrants(): Promise<Grant[]>;
|
|
520
|
-
/**
|
|
521
|
-
* Grants a role to a platform operator or machine on the platform: the subject holds every
|
|
522
|
-
* permission the role bundles on the platform and on everything on it.
|
|
523
|
-
* @param subject a user naming an operator's or a machine's identity id
|
|
524
|
-
* @param roleId a built-in role's id
|
|
525
|
-
*/
|
|
526
|
-
grant(subject: Subject, roleId: string): Promise<Grant>;
|
|
527
|
-
/** Revokes a grant made on the platform. */
|
|
528
|
-
revoke(grantId: string): Promise<void>;
|
|
529
|
-
/**
|
|
530
|
-
* Whether a platform operator or machine holds a permission of the platform, and the grants it
|
|
531
|
-
* holds the permission through.
|
|
532
|
-
* @param permission the permission's short name, such as can_manage_workloads
|
|
533
|
-
*/
|
|
534
|
-
explain(subject: Subject, permission: string): Promise<AccessExplanation>;
|
|
535
|
-
}
|
|
536
|
-
declare class SystemAccessService implements ISystemAccessService {
|
|
537
|
-
private readonly serviceProxy;
|
|
538
|
-
constructor(kinotic: IKinotic8);
|
|
539
|
-
findRoles(): Promise<RoleDefinition[]>;
|
|
540
|
-
findGrants(): Promise<Grant[]>;
|
|
541
|
-
grant(subject: Subject, roleId: string): Promise<Grant>;
|
|
542
|
-
revoke(grantId: string): Promise<void>;
|
|
543
|
-
explain(subject: Subject, permission: string): Promise<AccessExplanation>;
|
|
544
|
-
}
|
|
545
508
|
import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
|
|
546
|
-
import { IKinotic as
|
|
509
|
+
import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
|
|
547
510
|
import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
|
|
548
511
|
/**
|
|
549
512
|
* The ledger of every watched record on the platform.
|
|
@@ -560,7 +523,7 @@ interface IWatchEventService {
|
|
|
560
523
|
}
|
|
561
524
|
declare class WatchEventService implements IWatchEventService {
|
|
562
525
|
private readonly serviceProxy;
|
|
563
|
-
constructor(kinotic:
|
|
526
|
+
constructor(kinotic: IKinotic8);
|
|
564
527
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
565
528
|
private findAllSinglePage;
|
|
566
529
|
}
|
|
@@ -572,14 +535,13 @@ interface ISystemApiExtension {
|
|
|
572
535
|
clusterInfo: IKinoticClusterInfoService;
|
|
573
536
|
systemOrganizations: ISystemOrganizationService;
|
|
574
537
|
systemMembers: ISystemMemberService;
|
|
575
|
-
systemAccess: ISystemAccessService;
|
|
576
538
|
watchEvents: IWatchEventService;
|
|
577
539
|
}
|
|
578
540
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
579
|
-
import { IKinotic as
|
|
541
|
+
import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
|
|
580
542
|
declare class LogManager implements ILogManager {
|
|
581
543
|
private readonly serviceProxy;
|
|
582
|
-
constructor(kinotic:
|
|
544
|
+
constructor(kinotic: IKinotic9);
|
|
583
545
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
584
546
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
585
547
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -589,4 +551,4 @@ declare class LogManager implements ILogManager {
|
|
|
589
551
|
declare module "@kinotic-ai/core" {
|
|
590
552
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
591
553
|
}
|
|
592
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -425,7 +425,7 @@ declare class KinoticClusterInfoService implements IKinoticClusterInfoService {
|
|
|
425
425
|
constructor(kinotic: IKinotic5);
|
|
426
426
|
getClusterInfo(): Promise<KinoticClusterInfo>;
|
|
427
427
|
}
|
|
428
|
-
import { Application, Organization, Project, PendingInviteSummary,
|
|
428
|
+
import { Application, Organization, Project, PendingInviteSummary, Member } from "@kinotic-ai/management-api";
|
|
429
429
|
import { IKinotic as IKinotic6, Page as Page3, Pageable as Pageable3 } from "@kinotic-ai/core";
|
|
430
430
|
/**
|
|
431
431
|
* Cross-organization reads for platform operators. Published in the system zone, which only
|
|
@@ -441,8 +441,8 @@ interface ISystemOrganizationService {
|
|
|
441
441
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
442
442
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
443
443
|
/** applicationId null = the organization's members */
|
|
444
|
-
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
445
|
-
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
444
|
+
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
445
|
+
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
446
446
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
447
447
|
}
|
|
448
448
|
declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
@@ -454,11 +454,11 @@ declare class SystemOrganizationService implements ISystemOrganizationService {
|
|
|
454
454
|
countOrganizations(): Promise<number>;
|
|
455
455
|
findApplications(organizationId: string, pageable: Pageable3): Promise<Page3<Application>>;
|
|
456
456
|
findProjects(organizationId: string, pageable: Pageable3): Promise<Page3<Project>>;
|
|
457
|
-
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
458
|
-
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<
|
|
457
|
+
findMembers(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
458
|
+
searchMembers(searchText: string, organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<Member>>;
|
|
459
459
|
findPendingInvites(organizationId: string, applicationId: string | null, pageable: Pageable3): Promise<Page3<PendingInviteSummary>>;
|
|
460
460
|
}
|
|
461
|
-
import { MachineParticipantIdentity, MachineProvisionResult,
|
|
461
|
+
import { MachineParticipantIdentity, MachineProvisionResult, Member as Member2 } from "@kinotic-ai/management-api";
|
|
462
462
|
import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@kinotic-ai/core";
|
|
463
463
|
/**
|
|
464
464
|
* The platform's own members: the operators who sign in to the system console, and the
|
|
@@ -468,8 +468,8 @@ import { IKinotic as IKinotic7, Page as Page4, Pageable as Pageable4 } from "@ki
|
|
|
468
468
|
* manage through IMachineService.
|
|
469
469
|
*/
|
|
470
470
|
interface ISystemMemberService {
|
|
471
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
472
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
471
|
+
findUsers(pageable: Pageable4): Promise<Page4<Member2>>;
|
|
472
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<Member2>>;
|
|
473
473
|
/** Lists the platform's machines, disabled ones included. */
|
|
474
474
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
475
475
|
/**
|
|
@@ -497,53 +497,16 @@ interface ISystemMemberService {
|
|
|
497
497
|
declare class SystemMemberService implements ISystemMemberService {
|
|
498
498
|
private readonly serviceProxy;
|
|
499
499
|
constructor(kinotic: IKinotic7);
|
|
500
|
-
findUsers(pageable: Pageable4): Promise<Page4<
|
|
501
|
-
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<
|
|
500
|
+
findUsers(pageable: Pageable4): Promise<Page4<Member2>>;
|
|
501
|
+
searchUsers(searchText: string, pageable: Pageable4): Promise<Page4<Member2>>;
|
|
502
502
|
findMachines(pageable: Pageable4): Promise<Page4<MachineParticipantIdentity>>;
|
|
503
503
|
createMachine(displayName: string): Promise<MachineProvisionResult>;
|
|
504
504
|
rotateSecret(machineId: string): Promise<string>;
|
|
505
505
|
setMachineEnabled(machineId: string, enabled: boolean): Promise<void>;
|
|
506
506
|
removeMachine(machineId: string): Promise<void>;
|
|
507
507
|
}
|
|
508
|
-
import { AccessExplanation, Grant, RoleDefinition, Subject } from "@kinotic-ai/management-api";
|
|
509
|
-
import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
|
|
510
|
-
/**
|
|
511
|
-
* Access control of the platform itself: the roles the platform's operators and machines can be
|
|
512
|
-
* granted, and the grants made on the platform, which reach every organization and node on it. A
|
|
513
|
-
* subject named must be one of the platform's own operators or machines.
|
|
514
|
-
*/
|
|
515
|
-
interface ISystemAccessService {
|
|
516
|
-
/** The built-in roles the model defines, each with the permissions it bundles. */
|
|
517
|
-
findRoles(): Promise<RoleDefinition[]>;
|
|
518
|
-
/** The grants made on the platform. */
|
|
519
|
-
findGrants(): Promise<Grant[]>;
|
|
520
|
-
/**
|
|
521
|
-
* Grants a role to a platform operator or machine on the platform: the subject holds every
|
|
522
|
-
* permission the role bundles on the platform and on everything on it.
|
|
523
|
-
* @param subject a user naming an operator's or a machine's identity id
|
|
524
|
-
* @param roleId a built-in role's id
|
|
525
|
-
*/
|
|
526
|
-
grant(subject: Subject, roleId: string): Promise<Grant>;
|
|
527
|
-
/** Revokes a grant made on the platform. */
|
|
528
|
-
revoke(grantId: string): Promise<void>;
|
|
529
|
-
/**
|
|
530
|
-
* Whether a platform operator or machine holds a permission of the platform, and the grants it
|
|
531
|
-
* holds the permission through.
|
|
532
|
-
* @param permission the permission's short name, such as can_manage_workloads
|
|
533
|
-
*/
|
|
534
|
-
explain(subject: Subject, permission: string): Promise<AccessExplanation>;
|
|
535
|
-
}
|
|
536
|
-
declare class SystemAccessService implements ISystemAccessService {
|
|
537
|
-
private readonly serviceProxy;
|
|
538
|
-
constructor(kinotic: IKinotic8);
|
|
539
|
-
findRoles(): Promise<RoleDefinition[]>;
|
|
540
|
-
findGrants(): Promise<Grant[]>;
|
|
541
|
-
grant(subject: Subject, roleId: string): Promise<Grant>;
|
|
542
|
-
revoke(grantId: string): Promise<void>;
|
|
543
|
-
explain(subject: Subject, permission: string): Promise<AccessExplanation>;
|
|
544
|
-
}
|
|
545
508
|
import { WatchEvent as WatchEvent3 } from "@kinotic-ai/management-api";
|
|
546
|
-
import { IKinotic as
|
|
509
|
+
import { IKinotic as IKinotic8 } from "@kinotic-ai/core";
|
|
547
510
|
import { IterablePage as IterablePage3, Pageable as Pageable5 } from "@kinotic-ai/core";
|
|
548
511
|
/**
|
|
549
512
|
* The ledger of every watched record on the platform.
|
|
@@ -560,7 +523,7 @@ interface IWatchEventService {
|
|
|
560
523
|
}
|
|
561
524
|
declare class WatchEventService implements IWatchEventService {
|
|
562
525
|
private readonly serviceProxy;
|
|
563
|
-
constructor(kinotic:
|
|
526
|
+
constructor(kinotic: IKinotic8);
|
|
564
527
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
565
528
|
private findAllSinglePage;
|
|
566
529
|
}
|
|
@@ -572,14 +535,13 @@ interface ISystemApiExtension {
|
|
|
572
535
|
clusterInfo: IKinoticClusterInfoService;
|
|
573
536
|
systemOrganizations: ISystemOrganizationService;
|
|
574
537
|
systemMembers: ISystemMemberService;
|
|
575
|
-
systemAccess: ISystemAccessService;
|
|
576
538
|
watchEvents: IWatchEventService;
|
|
577
539
|
}
|
|
578
540
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
579
|
-
import { IKinotic as
|
|
541
|
+
import { IKinotic as IKinotic9 } from "@kinotic-ai/core";
|
|
580
542
|
declare class LogManager implements ILogManager {
|
|
581
543
|
private readonly serviceProxy;
|
|
582
|
-
constructor(kinotic:
|
|
544
|
+
constructor(kinotic: IKinotic9);
|
|
583
545
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
584
546
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
585
547
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -589,4 +551,4 @@ declare class LogManager implements ILogManager {
|
|
|
589
551
|
declare module "@kinotic-ai/core" {
|
|
590
552
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
591
553
|
}
|
|
592
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/system-api/src/index.ts
|
|
2
|
-
import { SYSTEM_API_ZONE as
|
|
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/VmNode.ts
|
|
5
5
|
import { ReconcileState } from "@kinotic-ai/management-api";
|
|
@@ -301,41 +301,14 @@ class SystemMemberService {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
// packages/system-api/src/api/services/ISystemAccessService.ts
|
|
305
|
-
import {
|
|
306
|
-
SYSTEM_API_ZONE as SYSTEM_API_ZONE8
|
|
307
|
-
} from "@kinotic-ai/management-api";
|
|
308
|
-
|
|
309
|
-
class SystemAccessService {
|
|
310
|
-
serviceProxy;
|
|
311
|
-
constructor(kinotic) {
|
|
312
|
-
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.SystemAccessService`);
|
|
313
|
-
}
|
|
314
|
-
findRoles() {
|
|
315
|
-
return this.serviceProxy.invoke("findRoles", []);
|
|
316
|
-
}
|
|
317
|
-
findGrants() {
|
|
318
|
-
return this.serviceProxy.invoke("findGrants", []);
|
|
319
|
-
}
|
|
320
|
-
grant(subject, roleId) {
|
|
321
|
-
return this.serviceProxy.invoke("grant", [subject, roleId]);
|
|
322
|
-
}
|
|
323
|
-
revoke(grantId) {
|
|
324
|
-
return this.serviceProxy.invoke("revoke", [grantId]);
|
|
325
|
-
}
|
|
326
|
-
explain(subject, permission) {
|
|
327
|
-
return this.serviceProxy.invoke("explain", [subject, permission]);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
304
|
// packages/system-api/src/api/services/IWatchEventService.ts
|
|
332
|
-
import { SYSTEM_API_ZONE as
|
|
305
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE8 } from "@kinotic-ai/management-api";
|
|
333
306
|
import { FunctionalIterablePage as FunctionalIterablePage3 } from "@kinotic-ai/core";
|
|
334
307
|
|
|
335
308
|
class WatchEventService {
|
|
336
309
|
serviceProxy;
|
|
337
310
|
constructor(kinotic) {
|
|
338
|
-
this.serviceProxy = kinotic.serviceProxy(`${
|
|
311
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE8}~org.kinotic.system.api.services.WatchEventService`);
|
|
339
312
|
}
|
|
340
313
|
async findAll(pageable) {
|
|
341
314
|
const page = await this.findAllSinglePage(pageable);
|
|
@@ -357,7 +330,6 @@ var SystemApiPlugin = {
|
|
|
357
330
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
358
331
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
359
332
|
systemMembers: new SystemMemberService(kinotic),
|
|
360
|
-
systemAccess: new SystemAccessService(kinotic),
|
|
361
333
|
watchEvents: new WatchEventService(kinotic)
|
|
362
334
|
};
|
|
363
335
|
}
|
|
@@ -395,9 +367,8 @@ export {
|
|
|
395
367
|
SystemOrganizationService,
|
|
396
368
|
SystemMemberService,
|
|
397
369
|
SystemApiPlugin,
|
|
398
|
-
SystemAccessService,
|
|
399
370
|
SingleLoggerLevelsDescriptor,
|
|
400
|
-
|
|
371
|
+
SYSTEM_API_ZONE9 as SYSTEM_API_ZONE,
|
|
401
372
|
LoggersDescriptor,
|
|
402
373
|
LoggerLevelsDescriptor,
|
|
403
374
|
LogManager,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/system-api",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.25",
|
|
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.17",
|
|
42
|
-
"@kinotic-ai/management-api": "^5.0.0-beta.
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.55"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@kinotic-ai/core": "5.0.0-beta.17",
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.55",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|