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