feat: extend baseos image contracts
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@serve.zone/interfaces",
|
||||
"version": "5.4.6",
|
||||
"version": "5.5.0",
|
||||
"private": false,
|
||||
"description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
|
||||
"exports": {
|
||||
|
||||
@@ -63,6 +63,10 @@ export interface IBaseOsNode {
|
||||
|
||||
export type TBaseOsImageArchitecture = 'amd64' | 'arm64' | 'rpi';
|
||||
export type TBaseOsImageKind = 'ubuntu-iso' | 'balena-raw';
|
||||
export type TBaseOsImageSourcePreset =
|
||||
| 'balena-generic-amd64'
|
||||
| 'balena-generic-aarch64'
|
||||
| 'balena-raspberrypi4-64';
|
||||
|
||||
export type TBaseOsImageBuildStatus = 'queued' | 'building' | 'ready' | 'failed' | 'cancelled';
|
||||
|
||||
@@ -89,6 +93,8 @@ export interface IBaseOsImageBuild {
|
||||
imageKind?: TBaseOsImageKind;
|
||||
cloudlyUrl: string;
|
||||
sourceImageUrl?: string;
|
||||
sourceImagePreset?: TBaseOsImageSourcePreset;
|
||||
balenaOsVersion?: string;
|
||||
ubuntuVersion?: string;
|
||||
hostname?: string;
|
||||
wifiSsid?: string;
|
||||
@@ -109,6 +115,8 @@ export interface IBaseOsImageBuildRequest {
|
||||
imageKind?: TBaseOsImageKind;
|
||||
cloudlyUrl?: string;
|
||||
sourceImageUrl?: string;
|
||||
sourceImagePreset?: TBaseOsImageSourcePreset;
|
||||
balenaOsVersion?: string;
|
||||
ubuntuVersion?: string;
|
||||
hostname?: string;
|
||||
wifi?: IBaseOsWifiConfig;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type {
|
||||
IBaseOsHeartbeatResult,
|
||||
IBaseOsDesiredState,
|
||||
IBaseOsImageBuild,
|
||||
IBaseOsImageBuildRequest,
|
||||
IBaseOsImageDownloadUrl,
|
||||
@@ -38,6 +39,18 @@ export interface IRequest_Any_Cloudly_GetBaseOsNodes {
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_Any_Cloudly_SetBaseOsNodeDesiredState {
|
||||
method: 'setBaseOsNodeDesiredState';
|
||||
request: {
|
||||
identity: IIdentity;
|
||||
nodeId: string;
|
||||
desiredState: IBaseOsDesiredState;
|
||||
};
|
||||
response: {
|
||||
node: IBaseOsNode;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_Any_Cloudly_CreateBaseOsImageBuild {
|
||||
method: 'createBaseOsImageBuild';
|
||||
request: {
|
||||
|
||||
Reference in New Issue
Block a user