@kinotic-ai/os-api 1.2.0 → 1.4.0
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 +42 -2
- package/dist/index.d.cts +79 -2
- package/dist/index.d.ts +79 -2
- package/dist/index.js +42 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -78,6 +78,9 @@ __export(exports_src, {
|
|
|
78
78
|
IamUserService: () => IamUserService,
|
|
79
79
|
IamUser: () => IamUser,
|
|
80
80
|
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
|
|
81
|
+
GitHubInstallationToken: () => GitHubInstallationToken,
|
|
82
|
+
GitHubAppInstallationService: () => GitHubAppInstallationService,
|
|
83
|
+
GitHubAppInstallation: () => GitHubAppInstallation,
|
|
81
84
|
FlattenedDecorator: () => FlattenedDecorator,
|
|
82
85
|
EsIndexConfigurationDecorator: () => EsIndexConfigurationDecorator,
|
|
83
86
|
EntityDefinitionService: () => EntityDefinitionService,
|
|
@@ -296,6 +299,10 @@ class Project {
|
|
|
296
299
|
name;
|
|
297
300
|
description;
|
|
298
301
|
sourceOfTruth = null;
|
|
302
|
+
repoFullName = null;
|
|
303
|
+
repoId = null;
|
|
304
|
+
defaultBranch = null;
|
|
305
|
+
repoPrivate = true;
|
|
299
306
|
updated = null;
|
|
300
307
|
constructor(id, applicationId, name, description) {
|
|
301
308
|
this.id = id;
|
|
@@ -445,6 +452,24 @@ class IamUser {
|
|
|
445
452
|
created = null;
|
|
446
453
|
updated = null;
|
|
447
454
|
}
|
|
455
|
+
// packages/os-api/src/api/model/github/GitHubAppInstallation.ts
|
|
456
|
+
class GitHubAppInstallation {
|
|
457
|
+
id = null;
|
|
458
|
+
organizationId = "";
|
|
459
|
+
githubInstallationId = 0;
|
|
460
|
+
accountLogin = "";
|
|
461
|
+
accountType = "";
|
|
462
|
+
suspendedAt = null;
|
|
463
|
+
created = null;
|
|
464
|
+
updated = null;
|
|
465
|
+
}
|
|
466
|
+
// packages/os-api/src/api/model/github/GitHubInstallationToken.ts
|
|
467
|
+
class GitHubInstallationToken {
|
|
468
|
+
token = "";
|
|
469
|
+
expiresAt = 0;
|
|
470
|
+
cloneUrl = "";
|
|
471
|
+
defaultBranch = "";
|
|
472
|
+
}
|
|
448
473
|
// packages/os-api/src/api/model/KinoticProjectConfig.ts
|
|
449
474
|
class KinoticProjectConfig {
|
|
450
475
|
name;
|
|
@@ -672,7 +697,7 @@ class WorkloadServiceProxy extends import_core7.CrudServiceProxy {
|
|
|
672
697
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
673
698
|
}
|
|
674
699
|
}
|
|
675
|
-
// packages/os-api/src/api/services/
|
|
700
|
+
// packages/os-api/src/api/services/IIamUserService.ts
|
|
676
701
|
var import_core8 = require("@kinotic-ai/core");
|
|
677
702
|
|
|
678
703
|
class IamUserService extends import_core8.CrudServiceProxy {
|
|
@@ -698,6 +723,20 @@ class IamUserService extends import_core8.CrudServiceProxy {
|
|
|
698
723
|
return this.serviceProxy.invoke("findFirstByEmailInScopeType", [email, authScopeType]);
|
|
699
724
|
}
|
|
700
725
|
}
|
|
726
|
+
// packages/os-api/src/api/services/IGitHubAppInstallationService.ts
|
|
727
|
+
var import_core9 = require("@kinotic-ai/core");
|
|
728
|
+
|
|
729
|
+
class GitHubAppInstallationService extends import_core9.CrudServiceProxy {
|
|
730
|
+
constructor(kinotic) {
|
|
731
|
+
super(kinotic.serviceProxy("org.kinotic.github.api.services.GitHubAppInstallationService"));
|
|
732
|
+
}
|
|
733
|
+
startInstall() {
|
|
734
|
+
return this.serviceProxy.invoke("startInstall", []);
|
|
735
|
+
}
|
|
736
|
+
findForCurrentOrg() {
|
|
737
|
+
return this.serviceProxy.invoke("findForCurrentOrg", []);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
701
740
|
// packages/os-api/src/api/OsApiPlugin.ts
|
|
702
741
|
var OsApiPlugin = {
|
|
703
742
|
install(kinotic) {
|
|
@@ -712,7 +751,8 @@ var OsApiPlugin = {
|
|
|
712
751
|
dataInsights: new DataInsightsService(kinotic),
|
|
713
752
|
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
714
753
|
workloads: new WorkloadServiceProxy(kinotic),
|
|
715
|
-
iamUsers: new IamUserService(kinotic)
|
|
754
|
+
iamUsers: new IamUserService(kinotic),
|
|
755
|
+
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
716
756
|
};
|
|
717
757
|
}
|
|
718
758
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -198,6 +198,25 @@ declare class Project implements Identifiable3<string> {
|
|
|
198
198
|
*/
|
|
199
199
|
sourceOfTruth: ProjectType | null;
|
|
200
200
|
/**
|
|
201
|
+
* Full name ({@code owner/repo}) of the GitHub repository backing this project.
|
|
202
|
+
* Stamped at create time by the server-side repo provisioner.
|
|
203
|
+
*/
|
|
204
|
+
repoFullName: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* GitHub's stable repository id. Survives renames on the GitHub side.
|
|
207
|
+
*/
|
|
208
|
+
repoId: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Default branch of the backing repository at the time it was provisioned.
|
|
211
|
+
*/
|
|
212
|
+
defaultBranch: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
215
|
+
* this on the create call; the platform passes it through to GitHub. Snapshot
|
|
216
|
+
* only — not synced back if changed on GitHub later.
|
|
217
|
+
*/
|
|
218
|
+
repoPrivate: boolean;
|
|
219
|
+
/**
|
|
201
220
|
* The date and time the project was updated.
|
|
202
221
|
*/
|
|
203
222
|
updated: number | null;
|
|
@@ -562,6 +581,39 @@ interface SignUpCompleteRequest {
|
|
|
562
581
|
token: string;
|
|
563
582
|
password: string;
|
|
564
583
|
}
|
|
584
|
+
import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
585
|
+
/**
|
|
586
|
+
* Persisted record of one GitHub App installation that a Kinotic Org has authorised.
|
|
587
|
+
* The durable binding that says "Org X has access to GitHub install Y" — without it,
|
|
588
|
+
* no installation token can be minted on behalf of the org and webhook deliveries
|
|
589
|
+
* can't be matched to a project.
|
|
590
|
+
*/
|
|
591
|
+
declare class GitHubAppInstallation implements Identifiable9<string> {
|
|
592
|
+
id: string | null;
|
|
593
|
+
organizationId: string;
|
|
594
|
+
githubInstallationId: number;
|
|
595
|
+
accountLogin: string;
|
|
596
|
+
accountType: string;
|
|
597
|
+
suspendedAt: number | null;
|
|
598
|
+
created: number | null;
|
|
599
|
+
updated: number | null;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* What worker nodes receive when they ask for clone credentials. The token is a
|
|
603
|
+
* short-lived GitHub installation access token scoped to a single repository with
|
|
604
|
+
* {@code contents:read} permission; {@code expiresAt} is the absolute UTC instant
|
|
605
|
+
* (epoch milliseconds).
|
|
606
|
+
*/
|
|
607
|
+
declare class GitHubInstallationToken {
|
|
608
|
+
/** Bearer token to send as {@code Authorization: Bearer <token>} on git over HTTPS. */
|
|
609
|
+
token: string;
|
|
610
|
+
/** Absolute expiry (epoch milliseconds). Workers should not use the token beyond this point. */
|
|
611
|
+
expiresAt: number;
|
|
612
|
+
/** {@code https://github.com/<owner>/<repo>.git} for the linked repo. */
|
|
613
|
+
cloneUrl: string;
|
|
614
|
+
/** Default branch on the linked repo (e.g. {@code main}). */
|
|
615
|
+
defaultBranch: string;
|
|
616
|
+
}
|
|
565
617
|
/**
|
|
566
618
|
* Configuration for a single entities path and its corresponding repository output.
|
|
567
619
|
*/
|
|
@@ -630,7 +682,8 @@ import { IKinotic } from "@kinotic-ai/core";
|
|
|
630
682
|
import { CrudServiceProxy, ICrudServiceProxy } from "@kinotic-ai/core";
|
|
631
683
|
interface IApplicationService extends ICrudServiceProxy<Application> {
|
|
632
684
|
/**
|
|
633
|
-
* Creates a new application if it does not already exist.
|
|
685
|
+
* Creates a new application if it does not already exist. The organization id is derived
|
|
686
|
+
* from the authenticated participant on the server.
|
|
634
687
|
* @param id the id of the application to create
|
|
635
688
|
* @param description the description of the application to create
|
|
636
689
|
* @return {@link Promise} emitting the created application
|
|
@@ -1004,6 +1057,29 @@ declare class IamUserService extends CrudServiceProxy8<IamUser> implements IIamU
|
|
|
1004
1057
|
resetPassword(userId: string, newPassword: string): Promise<void>;
|
|
1005
1058
|
findFirstByEmailInScopeType(email: string, authScopeType: string): Promise<IamUser | null>;
|
|
1006
1059
|
}
|
|
1060
|
+
import { CrudServiceProxy as CrudServiceProxy9, IKinotic as IKinotic12, ICrudServiceProxy as ICrudServiceProxy9 } from "@kinotic-ai/core";
|
|
1061
|
+
interface IGitHubAppInstallationService extends ICrudServiceProxy9<GitHubAppInstallation> {
|
|
1062
|
+
/**
|
|
1063
|
+
* Stages a single-use {@code state} token bound to the caller's organization in
|
|
1064
|
+
* a cluster-wide store, then returns the GitHub install URL with that state
|
|
1065
|
+
* embedded. The SPA performs {@code window.location = url}.
|
|
1066
|
+
* <p>
|
|
1067
|
+
* Caller must be authenticated under {@code ORGANIZATION} scope; the org is read
|
|
1068
|
+
* from the participant. The state expires after 10 minutes if unused.
|
|
1069
|
+
*/
|
|
1070
|
+
startInstall(): Promise<string>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Returns the (at-most-one) installation bound to the caller's organization, or
|
|
1073
|
+
* {@code null} if GitHub is not yet linked. Drives the "linked / not linked"
|
|
1074
|
+
* indicator in the org-settings UI.
|
|
1075
|
+
*/
|
|
1076
|
+
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1077
|
+
}
|
|
1078
|
+
declare class GitHubAppInstallationService extends CrudServiceProxy9<GitHubAppInstallation> implements IGitHubAppInstallationService {
|
|
1079
|
+
constructor(kinotic: IKinotic12);
|
|
1080
|
+
startInstall(): Promise<string>;
|
|
1081
|
+
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1082
|
+
}
|
|
1007
1083
|
import { KinoticPlugin } from "@kinotic-ai/core";
|
|
1008
1084
|
interface IOsApiExtension {
|
|
1009
1085
|
applications: IApplicationService;
|
|
@@ -1017,9 +1093,10 @@ interface IOsApiExtension {
|
|
|
1017
1093
|
vmNodes: IVmNodeService;
|
|
1018
1094
|
workloads: IWorkloadService;
|
|
1019
1095
|
iamUsers: IIamUserService;
|
|
1096
|
+
githubAppInstallations: IGitHubAppInstallationService;
|
|
1020
1097
|
}
|
|
1021
1098
|
declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
1022
1099
|
declare module "@kinotic-ai/core" {
|
|
1023
1100
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1024
1101
|
}
|
|
1025
|
-
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
|
1102
|
+
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IGitHubAppInstallationService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, GitHubInstallationToken, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.d.ts
CHANGED
|
@@ -198,6 +198,25 @@ declare class Project implements Identifiable3<string> {
|
|
|
198
198
|
*/
|
|
199
199
|
sourceOfTruth: ProjectType | null;
|
|
200
200
|
/**
|
|
201
|
+
* Full name ({@code owner/repo}) of the GitHub repository backing this project.
|
|
202
|
+
* Stamped at create time by the server-side repo provisioner.
|
|
203
|
+
*/
|
|
204
|
+
repoFullName: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* GitHub's stable repository id. Survives renames on the GitHub side.
|
|
207
|
+
*/
|
|
208
|
+
repoId: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Default branch of the backing repository at the time it was provisioned.
|
|
211
|
+
*/
|
|
212
|
+
defaultBranch: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
215
|
+
* this on the create call; the platform passes it through to GitHub. Snapshot
|
|
216
|
+
* only — not synced back if changed on GitHub later.
|
|
217
|
+
*/
|
|
218
|
+
repoPrivate: boolean;
|
|
219
|
+
/**
|
|
201
220
|
* The date and time the project was updated.
|
|
202
221
|
*/
|
|
203
222
|
updated: number | null;
|
|
@@ -562,6 +581,39 @@ interface SignUpCompleteRequest {
|
|
|
562
581
|
token: string;
|
|
563
582
|
password: string;
|
|
564
583
|
}
|
|
584
|
+
import { Identifiable as Identifiable9 } from "@kinotic-ai/core";
|
|
585
|
+
/**
|
|
586
|
+
* Persisted record of one GitHub App installation that a Kinotic Org has authorised.
|
|
587
|
+
* The durable binding that says "Org X has access to GitHub install Y" — without it,
|
|
588
|
+
* no installation token can be minted on behalf of the org and webhook deliveries
|
|
589
|
+
* can't be matched to a project.
|
|
590
|
+
*/
|
|
591
|
+
declare class GitHubAppInstallation implements Identifiable9<string> {
|
|
592
|
+
id: string | null;
|
|
593
|
+
organizationId: string;
|
|
594
|
+
githubInstallationId: number;
|
|
595
|
+
accountLogin: string;
|
|
596
|
+
accountType: string;
|
|
597
|
+
suspendedAt: number | null;
|
|
598
|
+
created: number | null;
|
|
599
|
+
updated: number | null;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* What worker nodes receive when they ask for clone credentials. The token is a
|
|
603
|
+
* short-lived GitHub installation access token scoped to a single repository with
|
|
604
|
+
* {@code contents:read} permission; {@code expiresAt} is the absolute UTC instant
|
|
605
|
+
* (epoch milliseconds).
|
|
606
|
+
*/
|
|
607
|
+
declare class GitHubInstallationToken {
|
|
608
|
+
/** Bearer token to send as {@code Authorization: Bearer <token>} on git over HTTPS. */
|
|
609
|
+
token: string;
|
|
610
|
+
/** Absolute expiry (epoch milliseconds). Workers should not use the token beyond this point. */
|
|
611
|
+
expiresAt: number;
|
|
612
|
+
/** {@code https://github.com/<owner>/<repo>.git} for the linked repo. */
|
|
613
|
+
cloneUrl: string;
|
|
614
|
+
/** Default branch on the linked repo (e.g. {@code main}). */
|
|
615
|
+
defaultBranch: string;
|
|
616
|
+
}
|
|
565
617
|
/**
|
|
566
618
|
* Configuration for a single entities path and its corresponding repository output.
|
|
567
619
|
*/
|
|
@@ -630,7 +682,8 @@ import { IKinotic } from "@kinotic-ai/core";
|
|
|
630
682
|
import { CrudServiceProxy, ICrudServiceProxy } from "@kinotic-ai/core";
|
|
631
683
|
interface IApplicationService extends ICrudServiceProxy<Application> {
|
|
632
684
|
/**
|
|
633
|
-
* Creates a new application if it does not already exist.
|
|
685
|
+
* Creates a new application if it does not already exist. The organization id is derived
|
|
686
|
+
* from the authenticated participant on the server.
|
|
634
687
|
* @param id the id of the application to create
|
|
635
688
|
* @param description the description of the application to create
|
|
636
689
|
* @return {@link Promise} emitting the created application
|
|
@@ -1004,6 +1057,29 @@ declare class IamUserService extends CrudServiceProxy8<IamUser> implements IIamU
|
|
|
1004
1057
|
resetPassword(userId: string, newPassword: string): Promise<void>;
|
|
1005
1058
|
findFirstByEmailInScopeType(email: string, authScopeType: string): Promise<IamUser | null>;
|
|
1006
1059
|
}
|
|
1060
|
+
import { CrudServiceProxy as CrudServiceProxy9, IKinotic as IKinotic12, ICrudServiceProxy as ICrudServiceProxy9 } from "@kinotic-ai/core";
|
|
1061
|
+
interface IGitHubAppInstallationService extends ICrudServiceProxy9<GitHubAppInstallation> {
|
|
1062
|
+
/**
|
|
1063
|
+
* Stages a single-use {@code state} token bound to the caller's organization in
|
|
1064
|
+
* a cluster-wide store, then returns the GitHub install URL with that state
|
|
1065
|
+
* embedded. The SPA performs {@code window.location = url}.
|
|
1066
|
+
* <p>
|
|
1067
|
+
* Caller must be authenticated under {@code ORGANIZATION} scope; the org is read
|
|
1068
|
+
* from the participant. The state expires after 10 minutes if unused.
|
|
1069
|
+
*/
|
|
1070
|
+
startInstall(): Promise<string>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Returns the (at-most-one) installation bound to the caller's organization, or
|
|
1073
|
+
* {@code null} if GitHub is not yet linked. Drives the "linked / not linked"
|
|
1074
|
+
* indicator in the org-settings UI.
|
|
1075
|
+
*/
|
|
1076
|
+
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1077
|
+
}
|
|
1078
|
+
declare class GitHubAppInstallationService extends CrudServiceProxy9<GitHubAppInstallation> implements IGitHubAppInstallationService {
|
|
1079
|
+
constructor(kinotic: IKinotic12);
|
|
1080
|
+
startInstall(): Promise<string>;
|
|
1081
|
+
findForCurrentOrg(): Promise<GitHubAppInstallation | null>;
|
|
1082
|
+
}
|
|
1007
1083
|
import { KinoticPlugin } from "@kinotic-ai/core";
|
|
1008
1084
|
interface IOsApiExtension {
|
|
1009
1085
|
applications: IApplicationService;
|
|
@@ -1017,9 +1093,10 @@ interface IOsApiExtension {
|
|
|
1017
1093
|
vmNodes: IVmNodeService;
|
|
1018
1094
|
workloads: IWorkloadService;
|
|
1019
1095
|
iamUsers: IIamUserService;
|
|
1096
|
+
githubAppInstallations: IGitHubAppInstallationService;
|
|
1020
1097
|
}
|
|
1021
1098
|
declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
1022
1099
|
declare module "@kinotic-ai/core" {
|
|
1023
1100
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1024
1101
|
}
|
|
1025
|
-
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
|
1102
|
+
export { WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InsightRequest, InsightProgress, IdDecorator, IamUserService, IamUser, IWorkloadService, IVmNodeService, IProjectService, IOsApiExtension, IOrganizationService, INamedQueriesDefinitionService, IMigrationService, ILogManager, IIamUserService, IGitHubAppInstallationService, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, GitHubInstallationToken, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.js
CHANGED
|
@@ -202,6 +202,10 @@ class Project {
|
|
|
202
202
|
name;
|
|
203
203
|
description;
|
|
204
204
|
sourceOfTruth = null;
|
|
205
|
+
repoFullName = null;
|
|
206
|
+
repoId = null;
|
|
207
|
+
defaultBranch = null;
|
|
208
|
+
repoPrivate = true;
|
|
205
209
|
updated = null;
|
|
206
210
|
constructor(id, applicationId, name, description) {
|
|
207
211
|
this.id = id;
|
|
@@ -351,6 +355,24 @@ class IamUser {
|
|
|
351
355
|
created = null;
|
|
352
356
|
updated = null;
|
|
353
357
|
}
|
|
358
|
+
// packages/os-api/src/api/model/github/GitHubAppInstallation.ts
|
|
359
|
+
class GitHubAppInstallation {
|
|
360
|
+
id = null;
|
|
361
|
+
organizationId = "";
|
|
362
|
+
githubInstallationId = 0;
|
|
363
|
+
accountLogin = "";
|
|
364
|
+
accountType = "";
|
|
365
|
+
suspendedAt = null;
|
|
366
|
+
created = null;
|
|
367
|
+
updated = null;
|
|
368
|
+
}
|
|
369
|
+
// packages/os-api/src/api/model/github/GitHubInstallationToken.ts
|
|
370
|
+
class GitHubInstallationToken {
|
|
371
|
+
token = "";
|
|
372
|
+
expiresAt = 0;
|
|
373
|
+
cloneUrl = "";
|
|
374
|
+
defaultBranch = "";
|
|
375
|
+
}
|
|
354
376
|
// packages/os-api/src/api/model/KinoticProjectConfig.ts
|
|
355
377
|
class KinoticProjectConfig {
|
|
356
378
|
name;
|
|
@@ -578,7 +600,7 @@ class WorkloadServiceProxy extends CrudServiceProxy7 {
|
|
|
578
600
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
579
601
|
}
|
|
580
602
|
}
|
|
581
|
-
// packages/os-api/src/api/services/
|
|
603
|
+
// packages/os-api/src/api/services/IIamUserService.ts
|
|
582
604
|
import { CrudServiceProxy as CrudServiceProxy8 } from "@kinotic-ai/core";
|
|
583
605
|
|
|
584
606
|
class IamUserService extends CrudServiceProxy8 {
|
|
@@ -604,6 +626,20 @@ class IamUserService extends CrudServiceProxy8 {
|
|
|
604
626
|
return this.serviceProxy.invoke("findFirstByEmailInScopeType", [email, authScopeType]);
|
|
605
627
|
}
|
|
606
628
|
}
|
|
629
|
+
// packages/os-api/src/api/services/IGitHubAppInstallationService.ts
|
|
630
|
+
import { CrudServiceProxy as CrudServiceProxy9 } from "@kinotic-ai/core";
|
|
631
|
+
|
|
632
|
+
class GitHubAppInstallationService extends CrudServiceProxy9 {
|
|
633
|
+
constructor(kinotic) {
|
|
634
|
+
super(kinotic.serviceProxy("org.kinotic.github.api.services.GitHubAppInstallationService"));
|
|
635
|
+
}
|
|
636
|
+
startInstall() {
|
|
637
|
+
return this.serviceProxy.invoke("startInstall", []);
|
|
638
|
+
}
|
|
639
|
+
findForCurrentOrg() {
|
|
640
|
+
return this.serviceProxy.invoke("findForCurrentOrg", []);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
607
643
|
// packages/os-api/src/api/OsApiPlugin.ts
|
|
608
644
|
var OsApiPlugin = {
|
|
609
645
|
install(kinotic) {
|
|
@@ -618,7 +654,8 @@ var OsApiPlugin = {
|
|
|
618
654
|
dataInsights: new DataInsightsService(kinotic),
|
|
619
655
|
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
620
656
|
workloads: new WorkloadServiceProxy(kinotic),
|
|
621
|
-
iamUsers: new IamUserService(kinotic)
|
|
657
|
+
iamUsers: new IamUserService(kinotic),
|
|
658
|
+
githubAppInstallations: new GitHubAppInstallationService(kinotic)
|
|
622
659
|
};
|
|
623
660
|
}
|
|
624
661
|
};
|
|
@@ -661,6 +698,9 @@ export {
|
|
|
661
698
|
IamUserService,
|
|
662
699
|
IamUser,
|
|
663
700
|
GroupLoggerLevelsDescriptor,
|
|
701
|
+
GitHubInstallationToken,
|
|
702
|
+
GitHubAppInstallationService,
|
|
703
|
+
GitHubAppInstallation,
|
|
664
704
|
FlattenedDecorator,
|
|
665
705
|
EsIndexConfigurationDecorator,
|
|
666
706
|
EntityDefinitionService,
|