From 9b67039239b9d9e42a491f5da415c6d7e897b74f Mon Sep 17 00:00:00 2001 From: Celia Amador Date: Thu, 1 Oct 2026 08:53:03 +0200 Subject: [PATCH] Update types to Oct 1st 2026 Made-with: Cursor --- libs/types/index.ts | 11 +++++++ libs/types/models/ApplicationImageDigest.ts | 4 +-- libs/types/models/ConditionBase.ts | 4 +-- libs/types/models/ConditionType.ts | 1 + libs/types/models/DeviceApplicationStatus.ts | 6 ++-- .../models/DeviceDeltaApplyOutcomeType.ts | 13 ++++++++ libs/types/models/DeviceDeltaApplyStatus.ts | 10 +++---- libs/types/models/DeviceOsSpec.ts | 4 +-- libs/types/models/DeviceOsStatus.ts | 4 +++ libs/types/models/DeviceStatus.ts | 2 ++ libs/types/models/DeviceSystemInfoStatus.ts | 14 +++++++++ libs/types/models/DeviceSystemInfoStatuses.ts | 19 ++++++++++++ .../models/DeviceSystemInfoSummaryStatus.ts | 12 ++++++++ libs/types/models/ImageDeltaHint.ts | 2 +- libs/types/models/ImageSpec.ts | 8 ++--- .../models/InlineApplicationProviderSpec.ts | 4 +-- libs/types/models/LabelSyncMapping.ts | 30 +++++++++++++++++++ libs/types/models/LabelSyncMappingList.ts | 23 ++++++++++++++ libs/types/models/LabelSyncMappingSpec.ts | 30 +++++++++++++++++++ libs/types/models/LabelSyncMappingStatus.ts | 15 ++++++++++ libs/types/models/SystemInfoSourceStatus.ts | 20 +++++++++++++ .../models/SystemInfoSourceStatusType.ts | 12 ++++++++ .../models/SystemInfoSummaryStatusType.ts | 13 ++++++++ .../ApplicationDeltaStatusFields.tsx | 4 +-- .../DeviceDeltaUpdateStatusFields.tsx | 5 ++-- 25 files changed, 243 insertions(+), 27 deletions(-) create mode 100644 libs/types/models/DeviceDeltaApplyOutcomeType.ts create mode 100644 libs/types/models/DeviceSystemInfoStatus.ts create mode 100644 libs/types/models/DeviceSystemInfoStatuses.ts create mode 100644 libs/types/models/DeviceSystemInfoSummaryStatus.ts create mode 100644 libs/types/models/LabelSyncMapping.ts create mode 100644 libs/types/models/LabelSyncMappingList.ts create mode 100644 libs/types/models/LabelSyncMappingSpec.ts create mode 100644 libs/types/models/LabelSyncMappingStatus.ts create mode 100644 libs/types/models/SystemInfoSourceStatus.ts create mode 100644 libs/types/models/SystemInfoSourceStatusType.ts create mode 100644 libs/types/models/SystemInfoSummaryStatusType.ts diff --git a/libs/types/index.ts b/libs/types/index.ts index ebe2d72169..01497eda17 100644 --- a/libs/types/index.ts +++ b/libs/types/index.ts @@ -73,6 +73,7 @@ export type { DeviceConfigStatus } from './models/DeviceConfigStatus'; export type { DeviceConsole } from './models/DeviceConsole'; export type { DeviceDecommission } from './models/DeviceDecommission'; export { DeviceDecommissionTargetType } from './models/DeviceDecommissionTargetType'; +export { DeviceDeltaApplyOutcomeType } from './models/DeviceDeltaApplyOutcomeType'; export type { DeviceDeltaApplyStatus } from './models/DeviceDeltaApplyStatus'; export type { DeviceEnrollmentHooksStatus } from './models/DeviceEnrollmentHooksStatus'; export type { DeviceIntegrityCheckStatus } from './models/DeviceIntegrityCheckStatus'; @@ -100,6 +101,9 @@ export type { DeviceStatus } from './models/DeviceStatus'; export type { DeviceSummaryStatus } from './models/DeviceSummaryStatus'; export { DeviceSummaryStatusType } from './models/DeviceSummaryStatusType'; export type { DeviceSystemInfo } from './models/DeviceSystemInfo'; +export type { DeviceSystemInfoStatus } from './models/DeviceSystemInfoStatus'; +export type { DeviceSystemInfoStatuses } from './models/DeviceSystemInfoStatuses'; +export type { DeviceSystemInfoSummaryStatus } from './models/DeviceSystemInfoSummaryStatus'; export type { DeviceUpdatedStatus } from './models/DeviceUpdatedStatus'; export { DeviceUpdatedStatusType } from './models/DeviceUpdatedStatusType'; export type { DeviceUpdatePolicySpec } from './models/DeviceUpdatePolicySpec'; @@ -178,6 +182,10 @@ export type { K8sProviderSpec } from './models/K8sProviderSpec'; export type { KubernetesSecretProviderSpec } from './models/KubernetesSecretProviderSpec'; export type { LabelList } from './models/LabelList'; export type { LabelSelector } from './models/LabelSelector'; +export { LabelSyncMapping } from './models/LabelSyncMapping'; +export type { LabelSyncMappingList } from './models/LabelSyncMappingList'; +export { LabelSyncMappingSpec } from './models/LabelSyncMappingSpec'; +export type { LabelSyncMappingStatus } from './models/LabelSyncMappingStatus'; export type { ListMeta } from './models/ListMeta'; export { MatchExpression } from './models/MatchExpression'; export type { MatchExpressions } from './models/MatchExpressions'; @@ -234,6 +242,9 @@ export { SystemdActiveStateType } from './models/SystemdActiveStateType'; export { SystemdEnableStateType } from './models/SystemdEnableStateType'; export { SystemdLoadStateType } from './models/SystemdLoadStateType'; export type { SystemdUnitStatus } from './models/SystemdUnitStatus'; +export type { SystemInfoSourceStatus } from './models/SystemInfoSourceStatus'; +export { SystemInfoSourceStatusType } from './models/SystemInfoSourceStatusType'; +export { SystemInfoSummaryStatusType } from './models/SystemInfoSummaryStatusType'; export type { TemplateVersion } from './models/TemplateVersion'; export type { TemplateVersionList } from './models/TemplateVersionList'; export type { TemplateVersionSpec } from './models/TemplateVersionSpec'; diff --git a/libs/types/models/ApplicationImageDigest.ts b/libs/types/models/ApplicationImageDigest.ts index c72fd4009f..b10564e07d 100644 --- a/libs/types/models/ApplicationImageDigest.ts +++ b/libs/types/models/ApplicationImageDigest.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * An image reference and, when known, its content digest in local storage. + * An image reference and its known registry image digest. */ export type ApplicationImageDigest = { /** @@ -11,7 +11,7 @@ export type ApplicationImageDigest = { */ image: string; /** - * Content digest of the image in local storage (e.g. sha256:abc...). Omitted when the local digest is unknown. + * Registry digest associated with this image. If the runtime identifies a platform-specific image, this may differ from the digest in the image reference. Omitted when unavailable. */ digest?: string; }; diff --git a/libs/types/models/ConditionBase.ts b/libs/types/models/ConditionBase.ts index be2b88520a..08b78c979a 100644 --- a/libs/types/models/ConditionBase.ts +++ b/libs/types/models/ConditionBase.ts @@ -17,11 +17,11 @@ export type ConditionBase = { */ lastTransitionTime: string; /** - * Human readable message indicating details about last transition. + * A human-readable message describing the condition, including details or progress. Consumers should not parse this field. */ message: string; /** - * A (brief) reason for the condition's last transition. + * A brief, machine-readable reason for the condition's last transition. Use a stable CamelCase identifier and put human-readable details in message. */ reason: string; }; diff --git a/libs/types/models/ConditionType.ts b/libs/types/models/ConditionType.ts index 22dcdd65ae..55ca935cb5 100644 --- a/libs/types/models/ConditionType.ts +++ b/libs/types/models/ConditionType.ts @@ -16,6 +16,7 @@ export enum ConditionType { ResourceSyncAccessible = 'Accessible', ResourceSyncResourceParsed = 'ResourceParsed', ResourceSyncSynced = 'Synced', + LabelSyncMappingReady = 'Ready', FleetValid = 'Valid', FleetRolloutInProgress = 'RolloutInProgress', DeviceUpdating = 'Updating', diff --git a/libs/types/models/DeviceApplicationStatus.ts b/libs/types/models/DeviceApplicationStatus.ts index 2f39fb2daa..6fa6da8ab9 100644 --- a/libs/types/models/DeviceApplicationStatus.ts +++ b/libs/types/models/DeviceApplicationStatus.ts @@ -36,12 +36,12 @@ export type DeviceApplicationStatus = { volumes?: Array; lastDelta?: DeviceDeltaApplyStatus; /** - * Image references this application uses and their known content digests in local storage. image is the ref from the current rendered spec (tag or digest). digest is omitted when the local digest is unknown. When image is already a digest ref, digest matches the ref's digest. + * Image references this application uses and the registry digest associated with each image. image is the ref from the current rendered spec (tag or digest). For a multi-platform index, digest is the platform-specific manifest selected by the runtime when available; if the runtime exposes only an opaque ID, an immutable image reference's digest may be reported. digest is omitted when no registry digest is known. */ imageDigests?: Array; /** - * Expected total download size for this application update in IEC units (e.g. "245.3 MiB", "1 GiB"). Computed as the sum of all required image pair sizes (parent + nested + volumes), using delta payload size when available or full image payload size otherwise. Absent when no image download is required or any required image size is unknown. + * Expected total size of control-plane generated delta images for this application update in IEC units (e.g. "245.3 MiB", "1 GiB"). Computed as the sum of generated delta image sizes across the application. Absent when no delta image was generated or any generated delta image size is unknown. Full image sizes are not included. */ - size?: string; + deltaSize?: string; }; diff --git a/libs/types/models/DeviceDeltaApplyOutcomeType.ts b/libs/types/models/DeviceDeltaApplyOutcomeType.ts new file mode 100644 index 0000000000..31e1f1d6c3 --- /dev/null +++ b/libs/types/models/DeviceDeltaApplyOutcomeType.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * Result reported by the agent for an update target. NotUsed means the agent skipped delta application without a delta-apply failure; it may still use a full image pull. Applied means all delta work for the target succeeded. Fallback means a delta attempt failed and the agent attempted a full image pull. Partial means an application applied at least one delta while another image target used a full image pull or skipped delta application. + */ +export enum DeviceDeltaApplyOutcomeType { + DeviceDeltaApplyOutcomeNotUsed = 'NotUsed', + DeviceDeltaApplyOutcomeApplied = 'Applied', + DeviceDeltaApplyOutcomeFallback = 'Fallback', + DeviceDeltaApplyOutcomePartial = 'Partial', +} diff --git a/libs/types/models/DeviceDeltaApplyStatus.ts b/libs/types/models/DeviceDeltaApplyStatus.ts index 235423cb35..f4d1192737 100644 --- a/libs/types/models/DeviceDeltaApplyStatus.ts +++ b/libs/types/models/DeviceDeltaApplyStatus.ts @@ -2,17 +2,15 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { DeviceDeltaApplyOutcomeType } from './DeviceDeltaApplyOutcomeType'; /** - * Result of the most recent delta apply attempt for this update target. + * Agent-reported result for delta apply attempts for this update target. For an application with multiple image targets, the outcome is aggregated across image targets. The lastDelta field is omitted until the agent reports an outcome; server-side delta preparation is reported separately. */ export type DeviceDeltaApplyStatus = { + outcome: DeviceDeltaApplyOutcomeType; /** - * Set when the most recent update attempt fell back from a delta to a full image pull. Absent if no delta was attempted or the delta succeeded. Cleared when the next update attempt for this target starts. + * Set when one or more delta attempts failed and the agent attempted a full image pull. For an application with multiple image targets, this reports one representative failure reason. */ fallbackReason?: string; - /** - * Expected delta size in IEC units (KiB, MiB, GiB, or TiB). Absent when the size is not yet known. - */ - size?: string; }; diff --git a/libs/types/models/DeviceOsSpec.ts b/libs/types/models/DeviceOsSpec.ts index 4d3da1ace1..40faa1d523 100644 --- a/libs/types/models/DeviceOsSpec.ts +++ b/libs/types/models/DeviceOsSpec.ts @@ -8,8 +8,8 @@ import type { ImageOrCatalogItemRefSpec } from './ImageOrCatalogItemRefSpec'; */ export type DeviceOsSpec = (ImageOrCatalogItemRefSpec & { /** - * Optional hint: a reference to a delta artifact the control plane's generation records indicate may be applicable to reach `image` from this device's current image. Absent does not imply no delta exists — the device independently discovers candidate delta artifacts (e.g. deltas published by a customer's own CI) regardless of this field, and falls back to a full pull only if none is usable. + * Optional hint: a reference to a delta artifact the control plane's generation records indicate may be applicable to reach `image` from this device's current image. Absent does not imply no delta exists — the device independently discovers candidate delta artifacts (e.g. deltas published by a customer's own CI) regardless of this field, and falls back to a full pull only if none is usable. Read-only: generated by the control plane and only present in the rendered device spec delivered to the agent. */ - deltaImage?: string; + readonly deltaImage?: string; }); diff --git a/libs/types/models/DeviceOsStatus.ts b/libs/types/models/DeviceOsStatus.ts index b65222aab5..ccb99e428d 100644 --- a/libs/types/models/DeviceOsStatus.ts +++ b/libs/types/models/DeviceOsStatus.ts @@ -15,6 +15,10 @@ export type DeviceOsStatus = { * The digest of the OS image (e.g. sha256:a0...). */ imageDigest: string; + /** + * Size of the control-plane generated OS delta image in IEC units (e.g. "245.3 MiB", "1 GiB"). Absent when no delta image was generated or its size is unknown. + */ + deltaSize?: string; lastDelta?: DeviceDeltaApplyStatus; }; diff --git a/libs/types/models/DeviceStatus.ts b/libs/types/models/DeviceStatus.ts index 3e4256f757..db8d4b244b 100644 --- a/libs/types/models/DeviceStatus.ts +++ b/libs/types/models/DeviceStatus.ts @@ -16,6 +16,7 @@ import type { DeviceOsStatus } from './DeviceOsStatus'; import type { DeviceResourceStatus } from './DeviceResourceStatus'; import type { DeviceSummaryStatus } from './DeviceSummaryStatus'; import type { DeviceSystemInfo } from './DeviceSystemInfo'; +import type { DeviceSystemInfoStatus } from './DeviceSystemInfoStatus'; import type { DeviceUpdatedStatus } from './DeviceUpdatedStatus'; import type { SystemdUnitStatus } from './SystemdUnitStatus'; /** @@ -51,5 +52,6 @@ export type DeviceStatus = { capabilities?: DeviceCapabilities; deltaGeneration?: DeltaGenerationStatus; enrollmentHooks?: DeviceEnrollmentHooksStatus; + systemInfoStatus?: DeviceSystemInfoStatus; }; diff --git a/libs/types/models/DeviceSystemInfoStatus.ts b/libs/types/models/DeviceSystemInfoStatus.ts new file mode 100644 index 0000000000..a2b8ae8613 --- /dev/null +++ b/libs/types/models/DeviceSystemInfoStatus.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { DeviceSystemInfoStatuses } from './DeviceSystemInfoStatuses'; +import type { DeviceSystemInfoSummaryStatus } from './DeviceSystemInfoSummaryStatus'; +/** + * Status of the system information collection sources for a device. + */ +export type DeviceSystemInfoStatus = { + summary: DeviceSystemInfoSummaryStatus; + statuses: DeviceSystemInfoStatuses; +}; + diff --git a/libs/types/models/DeviceSystemInfoStatuses.ts b/libs/types/models/DeviceSystemInfoStatuses.ts new file mode 100644 index 0000000000..2fd125d5e1 --- /dev/null +++ b/libs/types/models/DeviceSystemInfoStatuses.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { SystemInfoSourceStatus } from './SystemInfoSourceStatus'; +/** + * Collection statuses for built-in and custom information sources. + */ +export type DeviceSystemInfoStatuses = { + /** + * Per-source collection status for built-in system information. + */ + systemInfo: Record; + /** + * Per-source collection status for custom device information. + */ + customInfo: Record; +}; + diff --git a/libs/types/models/DeviceSystemInfoSummaryStatus.ts b/libs/types/models/DeviceSystemInfoSummaryStatus.ts new file mode 100644 index 0000000000..d7a15525a1 --- /dev/null +++ b/libs/types/models/DeviceSystemInfoSummaryStatus.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { SystemInfoSummaryStatusType } from './SystemInfoSummaryStatusType'; +/** + * Aggregate summary of the system information collection health. + */ +export type DeviceSystemInfoSummaryStatus = { + status: SystemInfoSummaryStatusType; +}; + diff --git a/libs/types/models/ImageDeltaHint.ts b/libs/types/models/ImageDeltaHint.ts index 5c28a06217..f2f8bee502 100644 --- a/libs/types/models/ImageDeltaHint.ts +++ b/libs/types/models/ImageDeltaHint.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ /** - * A delta hint for a nested image within an application. + * A control-plane-generated delta hint for a nested image within an application. Present only in rendered application specs delivered to the agent. */ export type ImageDeltaHint = { /** diff --git a/libs/types/models/ImageSpec.ts b/libs/types/models/ImageSpec.ts index fe7157564c..295cadc05f 100644 --- a/libs/types/models/ImageSpec.ts +++ b/libs/types/models/ImageSpec.ts @@ -12,12 +12,12 @@ export type ImageSpec = { */ image: string; /** - * Optional hint: a reference to a delta artifact for the main image. Set by the control plane when a successful delta generation record exists for the current-to-target digest transition. + * Optional hint: a reference to a delta artifact for the main image. Set by the control plane when a successful delta generation record exists for the current-to-target digest transition. Read-only: generated by the control plane and only present in the rendered application spec delivered to the agent. */ - deltaImage?: string; + readonly deltaImage?: string; /** - * Optional hints for nested images within this application (e.g. service images in a compose app, OCI volume images). Each entry identifies a target image reference and digest and names its delta artifact reference. + * Optional hints for nested images within this application (e.g. service images in a compose app, OCI volume images). Each entry identifies a target image reference and digest and names its delta artifact reference. Read-only: generated by the control plane and only present in the rendered application spec delivered to the agent. */ - deltaImages?: Array; + readonly deltaImages?: Array; }; diff --git a/libs/types/models/InlineApplicationProviderSpec.ts b/libs/types/models/InlineApplicationProviderSpec.ts index b3cdd7dc2b..77be533fec 100644 --- a/libs/types/models/InlineApplicationProviderSpec.ts +++ b/libs/types/models/InlineApplicationProviderSpec.ts @@ -10,8 +10,8 @@ export type InlineApplicationProviderSpec = { */ inline: Array; /** - * Optional hints for nested OCI images referenced by this inline application. Each entry identifies a target image reference and digest and names its delta artifact. + * Optional hints for nested OCI images referenced by this inline application. Each entry identifies a target image reference and digest and names its delta artifact. Read-only: generated by the control plane and only present in the rendered application spec delivered to the agent. */ - deltaImages?: Array; + readonly deltaImages?: Array; }; diff --git a/libs/types/models/LabelSyncMapping.ts b/libs/types/models/LabelSyncMapping.ts new file mode 100644 index 0000000000..b4f85c8d48 --- /dev/null +++ b/libs/types/models/LabelSyncMapping.ts @@ -0,0 +1,30 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiVersion } from './ApiVersion'; +import type { LabelSyncMappingSpec } from './LabelSyncMappingSpec'; +import type { LabelSyncMappingStatus } from './LabelSyncMappingStatus'; +import type { ObjectMeta } from './ObjectMeta'; +/** + * LabelSyncMapping defines an organization-scoped device label mapping. + */ +export type LabelSyncMapping = { + apiVersion: ApiVersion; + /** + * Kind is a string value representing this resource type. + */ + kind: LabelSyncMapping.kind; + metadata: ObjectMeta; + spec: LabelSyncMappingSpec; + status?: LabelSyncMappingStatus; +}; +export namespace LabelSyncMapping { + /** + * Kind is a string value representing this resource type. + */ + export enum kind { + LabelSyncMappingKindLabelSyncMapping = 'LabelSyncMapping', + } +} + diff --git a/libs/types/models/LabelSyncMappingList.ts b/libs/types/models/LabelSyncMappingList.ts new file mode 100644 index 0000000000..6d015f1519 --- /dev/null +++ b/libs/types/models/LabelSyncMappingList.ts @@ -0,0 +1,23 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiVersion } from './ApiVersion'; +import type { LabelSyncMapping } from './LabelSyncMapping'; +import type { ListMeta } from './ListMeta'; +/** + * LabelSyncMappingList is a list of LabelSyncMapping resources. + */ +export type LabelSyncMappingList = { + apiVersion: ApiVersion; + /** + * Kind is a string value representing the REST resource this object represents. + */ + kind: string; + metadata: ListMeta; + /** + * List of LabelSyncMapping resources. + */ + items: Array; +}; + diff --git a/libs/types/models/LabelSyncMappingSpec.ts b/libs/types/models/LabelSyncMappingSpec.ts new file mode 100644 index 0000000000..989f853f47 --- /dev/null +++ b/libs/types/models/LabelSyncMappingSpec.ts @@ -0,0 +1,30 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * Desired state for a label synchronization mapping. + */ +export type LabelSyncMappingSpec = { + /** + * Immutable resource type evaluated by the mapping. + */ + resourceType: LabelSyncMappingSpec.resourceType; + /** + * Complete destination label key for scalar mode. Omitted or null selects map mode; no prefix is added. + */ + key?: string | null; + /** + * CEL expression evaluated for the selected resource type. + */ + expression: string; +}; +export namespace LabelSyncMappingSpec { + /** + * Immutable resource type evaluated by the mapping. + */ + export enum resourceType { + LabelSyncMappingSpecResourceTypeDevice = 'Device', + } +} + diff --git a/libs/types/models/LabelSyncMappingStatus.ts b/libs/types/models/LabelSyncMappingStatus.ts new file mode 100644 index 0000000000..129e98b974 --- /dev/null +++ b/libs/types/models/LabelSyncMappingStatus.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { Condition } from './Condition'; +/** + * Current propagation state for a label synchronization mapping. + */ +export type LabelSyncMappingStatus = { + /** + * The Ready condition reports Pending, Degraded, or Success state. + */ + conditions?: Array; +}; + diff --git a/libs/types/models/SystemInfoSourceStatus.ts b/libs/types/models/SystemInfoSourceStatus.ts new file mode 100644 index 0000000000..a81839f3e4 --- /dev/null +++ b/libs/types/models/SystemInfoSourceStatus.ts @@ -0,0 +1,20 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { SystemInfoSourceStatusType } from './SystemInfoSourceStatusType'; +/** + * Collection status for a single system information source. + */ +export type SystemInfoSourceStatus = { + status: SystemInfoSourceStatusType; + /** + * The last time the collection status of this source changed. + */ + lastTransitionTime: string; + /** + * Human readable message providing details about the source status. + */ + message?: string; +}; + diff --git a/libs/types/models/SystemInfoSourceStatusType.ts b/libs/types/models/SystemInfoSourceStatusType.ts new file mode 100644 index 0000000000..f693e68c34 --- /dev/null +++ b/libs/types/models/SystemInfoSourceStatusType.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * Collection health of a single system information source. + */ +export enum SystemInfoSourceStatusType { + SystemInfoSourceStatusHealthy = 'Healthy', + SystemInfoSourceStatusError = 'Error', + SystemInfoSourceStatusUnknown = 'Unknown', +} diff --git a/libs/types/models/SystemInfoSummaryStatusType.ts b/libs/types/models/SystemInfoSummaryStatusType.ts new file mode 100644 index 0000000000..777ec72cb9 --- /dev/null +++ b/libs/types/models/SystemInfoSummaryStatusType.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * Aggregate health of the system information collection. + */ +export enum SystemInfoSummaryStatusType { + SystemInfoSummaryStatusHealthy = 'Healthy', + SystemInfoSummaryStatusDegraded = 'Degraded', + SystemInfoSummaryStatusError = 'Error', + SystemInfoSummaryStatusUnknown = 'Unknown', +} diff --git a/libs/ui-components/src/components/Application/ApplicationDeltaStatusFields.tsx b/libs/ui-components/src/components/Application/ApplicationDeltaStatusFields.tsx index 8cd3d2e653..c4cf4b66c0 100644 --- a/libs/ui-components/src/components/Application/ApplicationDeltaStatusFields.tsx +++ b/libs/ui-components/src/components/Application/ApplicationDeltaStatusFields.tsx @@ -8,8 +8,8 @@ import LabelWithHelperText from '../common/WithHelperText'; const ApplicationDeltaStatusFields = ({ appStatus }: { appStatus: DeviceApplicationStatus }) => { const { t } = useTranslation(); - // Applications use the "status.applications.size" field - const deltaSize = appStatus.size; + // Applications use the "status.applications.deltaSize" field + const deltaSize = appStatus.deltaSize; const fallbackReason = appStatus.lastDelta?.fallbackReason; if (!deltaSize && !fallbackReason) { return null; diff --git a/libs/ui-components/src/components/Device/DeviceDetails/DeviceDeltaUpdateStatusFields.tsx b/libs/ui-components/src/components/Device/DeviceDetails/DeviceDeltaUpdateStatusFields.tsx index 7e03a4c48a..1c03e79190 100644 --- a/libs/ui-components/src/components/Device/DeviceDetails/DeviceDeltaUpdateStatusFields.tsx +++ b/libs/ui-components/src/components/Device/DeviceDetails/DeviceDeltaUpdateStatusFields.tsx @@ -17,9 +17,8 @@ import { getCondition } from '../../../utils/api'; const DeviceDeltaUpdateStatusFields = ({ deviceStatus }: { deviceStatus?: DeviceStatus }) => { const { t } = useTranslation(); - const lastDelta = deviceStatus?.os?.lastDelta; - const downloadSize = lastDelta?.size; - const fallbackReason = lastDelta?.fallbackReason; + const downloadSize = deviceStatus?.os?.deltaSize; + const fallbackReason = deviceStatus?.os?.lastDelta?.fallbackReason; const deltaGeneration = deviceStatus?.deltaGeneration; const deltaPreparingCondition = getCondition(deviceStatus?.conditions, ConditionType.DeviceDeltaPreparing); const showProgress = Boolean(deltaPreparingCondition && deltaGeneration);