@kinotic-ai/os-api 1.10.0 → 1.12.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 +24 -2
- package/dist/index.d.cts +80 -7
- package/dist/index.d.ts +80 -7
- package/dist/index.js +24 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -56,12 +56,14 @@ __export(exports_src, {
|
|
|
56
56
|
TenantSelectionC3Type: () => TenantSelectionC3Type,
|
|
57
57
|
TenantIdDecorator: () => TenantIdDecorator,
|
|
58
58
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
59
|
+
RepositoryConnectionStatus: () => RepositoryConnectionStatus,
|
|
59
60
|
QueryOptionsC3Type: () => QueryOptionsC3Type,
|
|
60
61
|
QueryDecorator: () => QueryDecorator,
|
|
61
62
|
ProjectType: () => ProjectType,
|
|
62
63
|
ProjectService: () => ProjectService,
|
|
63
64
|
Project: () => Project,
|
|
64
65
|
ProgressType: () => ProgressType,
|
|
66
|
+
PortProtocol: () => PortProtocol,
|
|
65
67
|
PendingInviteSummary: () => PendingInviteSummary,
|
|
66
68
|
ParticipantType: () => ParticipantType,
|
|
67
69
|
PageableC3Type: () => PageableC3Type,
|
|
@@ -312,8 +314,9 @@ class Project {
|
|
|
312
314
|
sourceOfTruth = null;
|
|
313
315
|
repoFullName;
|
|
314
316
|
repoId;
|
|
315
|
-
|
|
317
|
+
repoDefaultBranch;
|
|
316
318
|
repoPrivate = true;
|
|
319
|
+
repoConnectionStatus = null;
|
|
317
320
|
updated = null;
|
|
318
321
|
constructor(id, applicationId, name, description) {
|
|
319
322
|
this.id = id;
|
|
@@ -327,6 +330,13 @@ var ProjectType;
|
|
|
327
330
|
((ProjectType2) => {
|
|
328
331
|
ProjectType2["TYPESCRIPT"] = "TYPESCRIPT";
|
|
329
332
|
})(ProjectType ||= {});
|
|
333
|
+
// packages/os-api/src/api/model/RepositoryConnectionStatus.ts
|
|
334
|
+
var RepositoryConnectionStatus;
|
|
335
|
+
((RepositoryConnectionStatus2) => {
|
|
336
|
+
RepositoryConnectionStatus2["CONNECTED"] = "CONNECTED";
|
|
337
|
+
RepositoryConnectionStatus2["INITIALIZATION_FAILED"] = "INITIALIZATION_FAILED";
|
|
338
|
+
RepositoryConnectionStatus2["DISCONNECTED"] = "DISCONNECTED";
|
|
339
|
+
})(RepositoryConnectionStatus ||= {});
|
|
330
340
|
// packages/os-api/src/api/model/EntityDefinition.ts
|
|
331
341
|
class EntityDefinition {
|
|
332
342
|
id;
|
|
@@ -408,7 +418,10 @@ class Workload {
|
|
|
408
418
|
diskSizeMb = 1024;
|
|
409
419
|
status = "PENDING" /* PENDING */;
|
|
410
420
|
environment = {};
|
|
411
|
-
portMappings =
|
|
421
|
+
portMappings = [];
|
|
422
|
+
volumeMounts = [];
|
|
423
|
+
entrypoint = [];
|
|
424
|
+
cmd = [];
|
|
412
425
|
created = null;
|
|
413
426
|
updated = null;
|
|
414
427
|
constructor(name, image) {
|
|
@@ -416,6 +429,12 @@ class Workload {
|
|
|
416
429
|
this.image = image;
|
|
417
430
|
}
|
|
418
431
|
}
|
|
432
|
+
// packages/os-api/src/api/model/workload/PortProtocol.ts
|
|
433
|
+
var PortProtocol;
|
|
434
|
+
((PortProtocol2) => {
|
|
435
|
+
PortProtocol2["TCP"] = "TCP";
|
|
436
|
+
PortProtocol2["UDP"] = "UDP";
|
|
437
|
+
})(PortProtocol ||= {});
|
|
419
438
|
// packages/os-api/src/api/model/workload/VmNodeStatus.ts
|
|
420
439
|
var VmNodeStatus;
|
|
421
440
|
((VmNodeStatus2) => {
|
|
@@ -616,6 +635,9 @@ class ProjectService extends import_core3.CrudServiceProxy {
|
|
|
616
635
|
findAllForApplicationSinglePage(applicationId, pageable) {
|
|
617
636
|
return this.serviceProxy.invoke("findAllForApplication", [applicationId, pageable]);
|
|
618
637
|
}
|
|
638
|
+
retryRepoInitialization(projectId) {
|
|
639
|
+
return this.serviceProxy.invoke("retryRepoInitialization", [projectId]);
|
|
640
|
+
}
|
|
619
641
|
syncIndex() {
|
|
620
642
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
621
643
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -174,6 +174,25 @@ import { Identifiable as Identifiable3 } from "@kinotic-ai/core";
|
|
|
174
174
|
declare enum ProjectType {
|
|
175
175
|
TYPESCRIPT = "TYPESCRIPT"
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Connection state between a project and its backing GitHub repository.
|
|
179
|
+
* Stamped {@link RepositoryConnectionStatus.CONNECTED} when the repo is provisioned and
|
|
180
|
+
* its baseline rendered; left {@link RepositoryConnectionStatus.INITIALIZATION_FAILED}
|
|
181
|
+
* when the repo was created but rendering the baseline did not complete;
|
|
182
|
+
* {@link RepositoryConnectionStatus.DISCONNECTED} when GitHub revokes the platform's
|
|
183
|
+
* access to the repo.
|
|
184
|
+
*/
|
|
185
|
+
declare enum RepositoryConnectionStatus {
|
|
186
|
+
/** Backing repo is reachable through the org's GitHub installation and its baseline is rendered. */
|
|
187
|
+
CONNECTED = "CONNECTED",
|
|
188
|
+
/**
|
|
189
|
+
* Backing repo was created but its rendered baseline was not committed. Initialization
|
|
190
|
+
* can be re-run against the existing repo to reach {@link RepositoryConnectionStatus.CONNECTED}.
|
|
191
|
+
*/
|
|
192
|
+
INITIALIZATION_FAILED = "INITIALIZATION_FAILED",
|
|
193
|
+
/** Installation no longer has access to the repo; operator must re-link. */
|
|
194
|
+
DISCONNECTED = "DISCONNECTED"
|
|
195
|
+
}
|
|
177
196
|
declare class Project implements Identifiable3<string> {
|
|
178
197
|
/**
|
|
179
198
|
* The id of the project.
|
|
@@ -215,13 +234,19 @@ declare class Project implements Identifiable3<string> {
|
|
|
215
234
|
/**
|
|
216
235
|
* Default branch of the backing repository at the time it was provisioned.
|
|
217
236
|
*/
|
|
218
|
-
|
|
237
|
+
repoDefaultBranch: string;
|
|
219
238
|
/**
|
|
220
239
|
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
221
240
|
* this before save; the platform passes it through to GitHub.
|
|
222
241
|
*/
|
|
223
242
|
repoPrivate: boolean;
|
|
224
243
|
/**
|
|
244
|
+
* Connection state of the backing repository. A project left
|
|
245
|
+
* {@link RepositoryConnectionStatus.INITIALIZATION_FAILED} by creation can have its
|
|
246
|
+
* repository initialization retried.
|
|
247
|
+
*/
|
|
248
|
+
repoConnectionStatus: RepositoryConnectionStatus | null;
|
|
249
|
+
/**
|
|
225
250
|
* The date and time the project was updated.
|
|
226
251
|
*/
|
|
227
252
|
updated: number | null;
|
|
@@ -415,6 +440,34 @@ declare enum VmProviderType {
|
|
|
415
440
|
CLOUD_HYPERVISOR = "CLOUD_HYPERVISOR"
|
|
416
441
|
}
|
|
417
442
|
/**
|
|
443
|
+
* A host directory exposed inside a workload's guest VM.
|
|
444
|
+
*/
|
|
445
|
+
interface VolumeMount {
|
|
446
|
+
/** Absolute path on the host to mount into the guest. */
|
|
447
|
+
hostPath: string;
|
|
448
|
+
/** Absolute path inside the guest where the host path is mounted. */
|
|
449
|
+
guestPath: string;
|
|
450
|
+
/** When true, the mount is exposed read-only inside the guest. Defaults to false. */
|
|
451
|
+
readOnly?: boolean;
|
|
452
|
+
}
|
|
453
|
+
declare enum PortProtocol {
|
|
454
|
+
TCP = "TCP",
|
|
455
|
+
UDP = "UDP"
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* A guest port exposed on the host for a workload's VM.
|
|
459
|
+
*/
|
|
460
|
+
interface PortMapping {
|
|
461
|
+
/** Host port to expose. When omitted, the provider assigns one. */
|
|
462
|
+
hostPort?: number;
|
|
463
|
+
/** Guest port to map to the host. */
|
|
464
|
+
guestPort: number;
|
|
465
|
+
/** Transport protocol. When omitted, the provider's default applies. */
|
|
466
|
+
protocol?: PortProtocol;
|
|
467
|
+
/** Host interface to bind on. When omitted, the provider's default applies. */
|
|
468
|
+
hostIp?: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
418
471
|
* Represents a workload to be managed by the VM manager.
|
|
419
472
|
* A workload defines the configuration for a micro VM instance.
|
|
420
473
|
*/
|
|
@@ -460,9 +513,21 @@ declare class Workload implements Identifiable6<string> {
|
|
|
460
513
|
*/
|
|
461
514
|
environment: Record<string, string>;
|
|
462
515
|
/**
|
|
463
|
-
*
|
|
516
|
+
* Port mappings that expose guest ports on the host.
|
|
464
517
|
*/
|
|
465
|
-
portMappings:
|
|
518
|
+
portMappings: PortMapping[];
|
|
519
|
+
/**
|
|
520
|
+
* Volume mounts that expose host directories inside the guest VM.
|
|
521
|
+
*/
|
|
522
|
+
volumeMounts: VolumeMount[];
|
|
523
|
+
/**
|
|
524
|
+
* Overrides the image entrypoint. Empty keeps the image default.
|
|
525
|
+
*/
|
|
526
|
+
entrypoint: string[];
|
|
527
|
+
/**
|
|
528
|
+
* Overrides the image command (CMD). Empty keeps the image default.
|
|
529
|
+
*/
|
|
530
|
+
cmd: string[];
|
|
466
531
|
/**
|
|
467
532
|
* The date and time the workload was created.
|
|
468
533
|
*/
|
|
@@ -561,7 +626,7 @@ declare class IamUser implements Identifiable8<string> {
|
|
|
561
626
|
updated: number | null;
|
|
562
627
|
}
|
|
563
628
|
/**
|
|
564
|
-
* Sent to {@code POST /api/signup} to start an email/password organization sign-up.
|
|
629
|
+
* Sent to {@code POST /api/auth/org/signup} to start an email/password organization sign-up.
|
|
565
630
|
* Only the user's identity is collected up front; the organization name and password are
|
|
566
631
|
* provided after email verification (see {@link SignUpCompleteRequest}).
|
|
567
632
|
*/
|
|
@@ -570,7 +635,7 @@ interface SignUpRequest {
|
|
|
570
635
|
displayName: string;
|
|
571
636
|
}
|
|
572
637
|
/**
|
|
573
|
-
* Sent to {@code POST /api/signup/complete} after the user clicks the verification link.
|
|
638
|
+
* Sent to {@code POST /api/auth/org/signup/complete} after the user clicks the verification link.
|
|
574
639
|
* The {@link token} comes from that link; {@link orgName} (with optional {@link orgDescription})
|
|
575
640
|
* names the organization to create, and {@link password} is the chosen account password.
|
|
576
641
|
*/
|
|
@@ -581,7 +646,7 @@ interface SignUpCompleteRequest {
|
|
|
581
646
|
password: string;
|
|
582
647
|
}
|
|
583
648
|
/**
|
|
584
|
-
* Sent to {@code POST /api/signup/complete
|
|
649
|
+
* Sent to {@code POST /api/auth/org/signup/social/complete} to finish an OIDC sign-up by naming the
|
|
585
650
|
* organization to create. The verified identity is held server-side, keyed by {@link token}.
|
|
586
651
|
*/
|
|
587
652
|
interface CompleteOrgRequest {
|
|
@@ -923,6 +988,13 @@ interface IProjectService extends ICrudServiceProxy3<Project> {
|
|
|
923
988
|
*/
|
|
924
989
|
findAllForApplication(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
925
990
|
/**
|
|
991
|
+
* Re-runs repository initialization for a project left
|
|
992
|
+
* {@link RepositoryConnectionStatus.INITIALIZATION_FAILED} by creation.
|
|
993
|
+
* @param projectId the id of the project to retry
|
|
994
|
+
* @return Promise emitting the project, marked {@link RepositoryConnectionStatus.CONNECTED} on success
|
|
995
|
+
*/
|
|
996
|
+
retryRepoInitialization(projectId: string): Promise<Project>;
|
|
997
|
+
/**
|
|
926
998
|
* This operation makes all the recent writes immediately available for search.
|
|
927
999
|
* @return a Promise that resolves when the operation is complete
|
|
928
1000
|
*/
|
|
@@ -934,6 +1006,7 @@ declare class ProjectService extends CrudServiceProxy3<Project> implements IProj
|
|
|
934
1006
|
createProjectIfNotExist(project: Project): Promise<Project>;
|
|
935
1007
|
findAllForApplication(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
936
1008
|
findAllForApplicationSinglePage(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
1009
|
+
retryRepoInitialization(projectId: string): Promise<Project>;
|
|
937
1010
|
syncIndex(): Promise<void>;
|
|
938
1011
|
}
|
|
939
1012
|
import { IKinotic as IKinotic4 } from "@kinotic-ai/core";
|
|
@@ -1273,4 +1346,4 @@ declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
|
1273
1346
|
declare module "@kinotic-ai/core" {
|
|
1274
1347
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1275
1348
|
}
|
|
1276
|
-
export { isSystemParticipant, isOrganizationParticipant, isApplicationParticipant, WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PendingInviteSummary, ParticipantType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, MemberService, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InviteEmailTemplateService, InviteEmailTemplate, InsightRequest, InsightProgress, IdDecorator, IamUser, IWorkloadService, IVmNodeService, ISystemParticipant, IProjectService, IOsApiExtension, IOrganizationService, IOrganizationParticipant, INamedQueriesDefinitionService, IMigrationService, IMemberService, ILogManager, IInviteEmailTemplateService, IGitHubAppInstallationService, IEntityDefinitionService, IDeviceApprovalService, IDataInsightsService, IApplicationService, IApplicationParticipant, GroupLoggerLevelsDescriptor, GitHubToken, GitHubRepoToken, GitHubInstallCompletion, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DeviceApprovalService, DataInsightsService, DataInsightsComponent, CompleteOrgRequest, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
|
1349
|
+
export { isSystemParticipant, isOrganizationParticipant, isApplicationParticipant, WorkloadStatus, WorkloadServiceProxy, Workload, VolumeMount, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, RepositoryConnectionStatus, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PortProtocol, PortMapping, PendingInviteSummary, ParticipantType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, MemberService, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InviteEmailTemplateService, InviteEmailTemplate, InsightRequest, InsightProgress, IdDecorator, IamUser, IWorkloadService, IVmNodeService, ISystemParticipant, IProjectService, IOsApiExtension, IOrganizationService, IOrganizationParticipant, INamedQueriesDefinitionService, IMigrationService, IMemberService, ILogManager, IInviteEmailTemplateService, IGitHubAppInstallationService, IEntityDefinitionService, IDeviceApprovalService, IDataInsightsService, IApplicationService, IApplicationParticipant, GroupLoggerLevelsDescriptor, GitHubToken, GitHubRepoToken, GitHubInstallCompletion, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DeviceApprovalService, DataInsightsService, DataInsightsComponent, CompleteOrgRequest, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,25 @@ import { Identifiable as Identifiable3 } from "@kinotic-ai/core";
|
|
|
174
174
|
declare enum ProjectType {
|
|
175
175
|
TYPESCRIPT = "TYPESCRIPT"
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Connection state between a project and its backing GitHub repository.
|
|
179
|
+
* Stamped {@link RepositoryConnectionStatus.CONNECTED} when the repo is provisioned and
|
|
180
|
+
* its baseline rendered; left {@link RepositoryConnectionStatus.INITIALIZATION_FAILED}
|
|
181
|
+
* when the repo was created but rendering the baseline did not complete;
|
|
182
|
+
* {@link RepositoryConnectionStatus.DISCONNECTED} when GitHub revokes the platform's
|
|
183
|
+
* access to the repo.
|
|
184
|
+
*/
|
|
185
|
+
declare enum RepositoryConnectionStatus {
|
|
186
|
+
/** Backing repo is reachable through the org's GitHub installation and its baseline is rendered. */
|
|
187
|
+
CONNECTED = "CONNECTED",
|
|
188
|
+
/**
|
|
189
|
+
* Backing repo was created but its rendered baseline was not committed. Initialization
|
|
190
|
+
* can be re-run against the existing repo to reach {@link RepositoryConnectionStatus.CONNECTED}.
|
|
191
|
+
*/
|
|
192
|
+
INITIALIZATION_FAILED = "INITIALIZATION_FAILED",
|
|
193
|
+
/** Installation no longer has access to the repo; operator must re-link. */
|
|
194
|
+
DISCONNECTED = "DISCONNECTED"
|
|
195
|
+
}
|
|
177
196
|
declare class Project implements Identifiable3<string> {
|
|
178
197
|
/**
|
|
179
198
|
* The id of the project.
|
|
@@ -215,13 +234,19 @@ declare class Project implements Identifiable3<string> {
|
|
|
215
234
|
/**
|
|
216
235
|
* Default branch of the backing repository at the time it was provisioned.
|
|
217
236
|
*/
|
|
218
|
-
|
|
237
|
+
repoDefaultBranch: string;
|
|
219
238
|
/**
|
|
220
239
|
* Visibility chosen for the backing repository at create time. The SPA sets
|
|
221
240
|
* this before save; the platform passes it through to GitHub.
|
|
222
241
|
*/
|
|
223
242
|
repoPrivate: boolean;
|
|
224
243
|
/**
|
|
244
|
+
* Connection state of the backing repository. A project left
|
|
245
|
+
* {@link RepositoryConnectionStatus.INITIALIZATION_FAILED} by creation can have its
|
|
246
|
+
* repository initialization retried.
|
|
247
|
+
*/
|
|
248
|
+
repoConnectionStatus: RepositoryConnectionStatus | null;
|
|
249
|
+
/**
|
|
225
250
|
* The date and time the project was updated.
|
|
226
251
|
*/
|
|
227
252
|
updated: number | null;
|
|
@@ -415,6 +440,34 @@ declare enum VmProviderType {
|
|
|
415
440
|
CLOUD_HYPERVISOR = "CLOUD_HYPERVISOR"
|
|
416
441
|
}
|
|
417
442
|
/**
|
|
443
|
+
* A host directory exposed inside a workload's guest VM.
|
|
444
|
+
*/
|
|
445
|
+
interface VolumeMount {
|
|
446
|
+
/** Absolute path on the host to mount into the guest. */
|
|
447
|
+
hostPath: string;
|
|
448
|
+
/** Absolute path inside the guest where the host path is mounted. */
|
|
449
|
+
guestPath: string;
|
|
450
|
+
/** When true, the mount is exposed read-only inside the guest. Defaults to false. */
|
|
451
|
+
readOnly?: boolean;
|
|
452
|
+
}
|
|
453
|
+
declare enum PortProtocol {
|
|
454
|
+
TCP = "TCP",
|
|
455
|
+
UDP = "UDP"
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* A guest port exposed on the host for a workload's VM.
|
|
459
|
+
*/
|
|
460
|
+
interface PortMapping {
|
|
461
|
+
/** Host port to expose. When omitted, the provider assigns one. */
|
|
462
|
+
hostPort?: number;
|
|
463
|
+
/** Guest port to map to the host. */
|
|
464
|
+
guestPort: number;
|
|
465
|
+
/** Transport protocol. When omitted, the provider's default applies. */
|
|
466
|
+
protocol?: PortProtocol;
|
|
467
|
+
/** Host interface to bind on. When omitted, the provider's default applies. */
|
|
468
|
+
hostIp?: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
418
471
|
* Represents a workload to be managed by the VM manager.
|
|
419
472
|
* A workload defines the configuration for a micro VM instance.
|
|
420
473
|
*/
|
|
@@ -460,9 +513,21 @@ declare class Workload implements Identifiable6<string> {
|
|
|
460
513
|
*/
|
|
461
514
|
environment: Record<string, string>;
|
|
462
515
|
/**
|
|
463
|
-
*
|
|
516
|
+
* Port mappings that expose guest ports on the host.
|
|
464
517
|
*/
|
|
465
|
-
portMappings:
|
|
518
|
+
portMappings: PortMapping[];
|
|
519
|
+
/**
|
|
520
|
+
* Volume mounts that expose host directories inside the guest VM.
|
|
521
|
+
*/
|
|
522
|
+
volumeMounts: VolumeMount[];
|
|
523
|
+
/**
|
|
524
|
+
* Overrides the image entrypoint. Empty keeps the image default.
|
|
525
|
+
*/
|
|
526
|
+
entrypoint: string[];
|
|
527
|
+
/**
|
|
528
|
+
* Overrides the image command (CMD). Empty keeps the image default.
|
|
529
|
+
*/
|
|
530
|
+
cmd: string[];
|
|
466
531
|
/**
|
|
467
532
|
* The date and time the workload was created.
|
|
468
533
|
*/
|
|
@@ -561,7 +626,7 @@ declare class IamUser implements Identifiable8<string> {
|
|
|
561
626
|
updated: number | null;
|
|
562
627
|
}
|
|
563
628
|
/**
|
|
564
|
-
* Sent to {@code POST /api/signup} to start an email/password organization sign-up.
|
|
629
|
+
* Sent to {@code POST /api/auth/org/signup} to start an email/password organization sign-up.
|
|
565
630
|
* Only the user's identity is collected up front; the organization name and password are
|
|
566
631
|
* provided after email verification (see {@link SignUpCompleteRequest}).
|
|
567
632
|
*/
|
|
@@ -570,7 +635,7 @@ interface SignUpRequest {
|
|
|
570
635
|
displayName: string;
|
|
571
636
|
}
|
|
572
637
|
/**
|
|
573
|
-
* Sent to {@code POST /api/signup/complete} after the user clicks the verification link.
|
|
638
|
+
* Sent to {@code POST /api/auth/org/signup/complete} after the user clicks the verification link.
|
|
574
639
|
* The {@link token} comes from that link; {@link orgName} (with optional {@link orgDescription})
|
|
575
640
|
* names the organization to create, and {@link password} is the chosen account password.
|
|
576
641
|
*/
|
|
@@ -581,7 +646,7 @@ interface SignUpCompleteRequest {
|
|
|
581
646
|
password: string;
|
|
582
647
|
}
|
|
583
648
|
/**
|
|
584
|
-
* Sent to {@code POST /api/signup/complete
|
|
649
|
+
* Sent to {@code POST /api/auth/org/signup/social/complete} to finish an OIDC sign-up by naming the
|
|
585
650
|
* organization to create. The verified identity is held server-side, keyed by {@link token}.
|
|
586
651
|
*/
|
|
587
652
|
interface CompleteOrgRequest {
|
|
@@ -923,6 +988,13 @@ interface IProjectService extends ICrudServiceProxy3<Project> {
|
|
|
923
988
|
*/
|
|
924
989
|
findAllForApplication(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
925
990
|
/**
|
|
991
|
+
* Re-runs repository initialization for a project left
|
|
992
|
+
* {@link RepositoryConnectionStatus.INITIALIZATION_FAILED} by creation.
|
|
993
|
+
* @param projectId the id of the project to retry
|
|
994
|
+
* @return Promise emitting the project, marked {@link RepositoryConnectionStatus.CONNECTED} on success
|
|
995
|
+
*/
|
|
996
|
+
retryRepoInitialization(projectId: string): Promise<Project>;
|
|
997
|
+
/**
|
|
926
998
|
* This operation makes all the recent writes immediately available for search.
|
|
927
999
|
* @return a Promise that resolves when the operation is complete
|
|
928
1000
|
*/
|
|
@@ -934,6 +1006,7 @@ declare class ProjectService extends CrudServiceProxy3<Project> implements IProj
|
|
|
934
1006
|
createProjectIfNotExist(project: Project): Promise<Project>;
|
|
935
1007
|
findAllForApplication(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
936
1008
|
findAllForApplicationSinglePage(applicationId: string, pageable: Pageable): Promise<IterablePage<Project>>;
|
|
1009
|
+
retryRepoInitialization(projectId: string): Promise<Project>;
|
|
937
1010
|
syncIndex(): Promise<void>;
|
|
938
1011
|
}
|
|
939
1012
|
import { IKinotic as IKinotic4 } from "@kinotic-ai/core";
|
|
@@ -1273,4 +1346,4 @@ declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
|
|
|
1273
1346
|
declare module "@kinotic-ai/core" {
|
|
1274
1347
|
interface KinoticSingleton extends IOsApiExtension {}
|
|
1275
1348
|
}
|
|
1276
|
-
export { isSystemParticipant, isOrganizationParticipant, isApplicationParticipant, WorkloadStatus, WorkloadServiceProxy, Workload, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PendingInviteSummary, ParticipantType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, MemberService, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InviteEmailTemplateService, InviteEmailTemplate, InsightRequest, InsightProgress, IdDecorator, IamUser, IWorkloadService, IVmNodeService, ISystemParticipant, IProjectService, IOsApiExtension, IOrganizationService, IOrganizationParticipant, INamedQueriesDefinitionService, IMigrationService, IMemberService, ILogManager, IInviteEmailTemplateService, IGitHubAppInstallationService, IEntityDefinitionService, IDeviceApprovalService, IDataInsightsService, IApplicationService, IApplicationParticipant, GroupLoggerLevelsDescriptor, GitHubToken, GitHubRepoToken, GitHubInstallCompletion, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DeviceApprovalService, DataInsightsService, DataInsightsComponent, CompleteOrgRequest, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
|
1349
|
+
export { isSystemParticipant, isOrganizationParticipant, isApplicationParticipant, WorkloadStatus, WorkloadServiceProxy, Workload, VolumeMount, VmProviderType, VmNodeStatus, VmNodeServiceProxy, VmNode, VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, SignUpRequest, SignUpCompleteRequest, RepositoryConnectionStatus, QueryOptionsC3Type, QueryDecorator, ProjectType, ProjectService, Project, ProgressType, PortProtocol, PortMapping, PendingInviteSummary, ParticipantType, PageableC3Type, PageC3Type, OsApiPlugin, OrganizationService, Organization, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, MemberService, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticProjectConfig, InviteEmailTemplateService, InviteEmailTemplate, InsightRequest, InsightProgress, IdDecorator, IamUser, IWorkloadService, IVmNodeService, ISystemParticipant, IProjectService, IOsApiExtension, IOrganizationService, IOrganizationParticipant, INamedQueriesDefinitionService, IMigrationService, IMemberService, ILogManager, IInviteEmailTemplateService, IGitHubAppInstallationService, IEntityDefinitionService, IDeviceApprovalService, IDataInsightsService, IApplicationService, IApplicationParticipant, GroupLoggerLevelsDescriptor, GitHubToken, GitHubRepoToken, GitHubInstallCompletion, GitHubAppInstallationService, GitHubAppInstallation, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, EntitiesPathConfig, DiscriminatorDecorator, DeviceApprovalService, DataInsightsService, DataInsightsComponent, CompleteOrgRequest, AutoGeneratedIdDecorator, AuthType, ApplicationService, Application };
|
package/dist/index.js
CHANGED
|
@@ -205,8 +205,9 @@ class Project {
|
|
|
205
205
|
sourceOfTruth = null;
|
|
206
206
|
repoFullName;
|
|
207
207
|
repoId;
|
|
208
|
-
|
|
208
|
+
repoDefaultBranch;
|
|
209
209
|
repoPrivate = true;
|
|
210
|
+
repoConnectionStatus = null;
|
|
210
211
|
updated = null;
|
|
211
212
|
constructor(id, applicationId, name, description) {
|
|
212
213
|
this.id = id;
|
|
@@ -220,6 +221,13 @@ var ProjectType;
|
|
|
220
221
|
((ProjectType2) => {
|
|
221
222
|
ProjectType2["TYPESCRIPT"] = "TYPESCRIPT";
|
|
222
223
|
})(ProjectType ||= {});
|
|
224
|
+
// packages/os-api/src/api/model/RepositoryConnectionStatus.ts
|
|
225
|
+
var RepositoryConnectionStatus;
|
|
226
|
+
((RepositoryConnectionStatus2) => {
|
|
227
|
+
RepositoryConnectionStatus2["CONNECTED"] = "CONNECTED";
|
|
228
|
+
RepositoryConnectionStatus2["INITIALIZATION_FAILED"] = "INITIALIZATION_FAILED";
|
|
229
|
+
RepositoryConnectionStatus2["DISCONNECTED"] = "DISCONNECTED";
|
|
230
|
+
})(RepositoryConnectionStatus ||= {});
|
|
223
231
|
// packages/os-api/src/api/model/EntityDefinition.ts
|
|
224
232
|
class EntityDefinition {
|
|
225
233
|
id;
|
|
@@ -301,7 +309,10 @@ class Workload {
|
|
|
301
309
|
diskSizeMb = 1024;
|
|
302
310
|
status = "PENDING" /* PENDING */;
|
|
303
311
|
environment = {};
|
|
304
|
-
portMappings =
|
|
312
|
+
portMappings = [];
|
|
313
|
+
volumeMounts = [];
|
|
314
|
+
entrypoint = [];
|
|
315
|
+
cmd = [];
|
|
305
316
|
created = null;
|
|
306
317
|
updated = null;
|
|
307
318
|
constructor(name, image) {
|
|
@@ -309,6 +320,12 @@ class Workload {
|
|
|
309
320
|
this.image = image;
|
|
310
321
|
}
|
|
311
322
|
}
|
|
323
|
+
// packages/os-api/src/api/model/workload/PortProtocol.ts
|
|
324
|
+
var PortProtocol;
|
|
325
|
+
((PortProtocol2) => {
|
|
326
|
+
PortProtocol2["TCP"] = "TCP";
|
|
327
|
+
PortProtocol2["UDP"] = "UDP";
|
|
328
|
+
})(PortProtocol ||= {});
|
|
312
329
|
// packages/os-api/src/api/model/workload/VmNodeStatus.ts
|
|
313
330
|
var VmNodeStatus;
|
|
314
331
|
((VmNodeStatus2) => {
|
|
@@ -509,6 +526,9 @@ class ProjectService extends CrudServiceProxy3 {
|
|
|
509
526
|
findAllForApplicationSinglePage(applicationId, pageable) {
|
|
510
527
|
return this.serviceProxy.invoke("findAllForApplication", [applicationId, pageable]);
|
|
511
528
|
}
|
|
529
|
+
retryRepoInitialization(projectId) {
|
|
530
|
+
return this.serviceProxy.invoke("retryRepoInitialization", [projectId]);
|
|
531
|
+
}
|
|
512
532
|
syncIndex() {
|
|
513
533
|
return this.serviceProxy.invoke("syncIndex", []);
|
|
514
534
|
}
|
|
@@ -768,12 +788,14 @@ export {
|
|
|
768
788
|
TenantSelectionC3Type,
|
|
769
789
|
TenantIdDecorator,
|
|
770
790
|
SingleLoggerLevelsDescriptor,
|
|
791
|
+
RepositoryConnectionStatus,
|
|
771
792
|
QueryOptionsC3Type,
|
|
772
793
|
QueryDecorator,
|
|
773
794
|
ProjectType,
|
|
774
795
|
ProjectService,
|
|
775
796
|
Project,
|
|
776
797
|
ProgressType,
|
|
798
|
+
PortProtocol,
|
|
777
799
|
PendingInviteSummary,
|
|
778
800
|
ParticipantType,
|
|
779
801
|
PageableC3Type,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/os-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"type-check": "tsc --noEmit",
|
|
31
|
-
"test": "vitest run",
|
|
31
|
+
"test": "vitest run --passWithNoTests",
|
|
32
32
|
"coverage": "vitest run --coverage",
|
|
33
33
|
"ui-test": "vitest --ui --coverage.enabled=true --mode development"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@kinotic-ai/core": ">=1.
|
|
36
|
+
"@kinotic-ai/core": ">=1.7.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@kinotic-ai/idl": "1.0.9",
|
|
40
|
-
"@kinotic-ai/persistence": "1.
|
|
40
|
+
"@kinotic-ai/persistence": "1.4.0",
|
|
41
41
|
"rxjs": "^7.8.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@kinotic-ai/core": "1.
|
|
44
|
+
"@kinotic-ai/core": "1.7.0",
|
|
45
45
|
"@types/node": "^25.3.2",
|
|
46
46
|
"@vitest/coverage-v8": "^4.0.18",
|
|
47
47
|
"@vitest/runner": "^4.0.18",
|