feat: add baseos image build contracts

This commit is contained in:
2026-05-07 17:44:31 +00:00
parent ff144e2826
commit dbcb75c460
3 changed files with 105 additions and 0 deletions
+57
View File
@@ -61,6 +61,63 @@ export interface IBaseOsNode {
};
}
export type TBaseOsImageArchitecture = 'amd64' | 'arm64' | 'rpi';
export type TBaseOsImageBuildStatus = 'queued' | 'building' | 'ready' | 'failed' | 'cancelled';
export interface IBaseOsWifiConfig {
ssid: string;
password?: string;
}
export interface IBaseOsImageArtifact {
bucketName: string;
key: string;
filename: string;
contentType: string;
size: number;
sha256: string;
createdAt: number;
}
export interface IBaseOsImageBuild {
id: string;
data: {
status: TBaseOsImageBuildStatus;
architecture: TBaseOsImageArchitecture;
cloudlyUrl: string;
sourceImageUrl?: string;
ubuntuVersion?: string;
hostname?: string;
wifiSsid?: string;
sshPublicKey?: string;
artifact?: IBaseOsImageArtifact;
errorText?: string;
logs: string[];
createdAt: number;
updatedAt: number;
startedAt?: number;
completedAt?: number;
expiresAt?: number;
};
}
export interface IBaseOsImageBuildRequest {
architecture: TBaseOsImageArchitecture;
cloudlyUrl?: string;
sourceImageUrl?: string;
ubuntuVersion?: string;
hostname?: string;
wifi?: IBaseOsWifiConfig;
sshPublicKey?: string;
artifactRetentionMs?: number;
}
export interface IBaseOsImageDownloadUrl {
url: string;
expiresAt: number;
}
export interface IBaseOsRegisterResult {
nodeId?: string;
nodeToken?: string;
+4
View File
@@ -11,6 +11,10 @@ export interface ICloudlySettings {
// BaseOS enrollment
baseosJoinToken?: string;
// CoreBuild worker used for image generation
corebuildWorkerUrl?: string;
corebuildWorkerToken?: string;
// AWS Credentials
awsAccessKey?: string;