Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions libs/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions libs/types/models/ApplicationImageDigest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
/* 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 = {
/**
* Image reference as it appears in the rendered application spec.
*/
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;
};
Expand Down
4 changes: 2 additions & 2 deletions libs/types/models/ConditionBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
1 change: 1 addition & 0 deletions libs/types/models/ConditionType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export enum ConditionType {
ResourceSyncAccessible = 'Accessible',
ResourceSyncResourceParsed = 'ResourceParsed',
ResourceSyncSynced = 'Synced',
LabelSyncMappingReady = 'Ready',
FleetValid = 'Valid',
FleetRolloutInProgress = 'RolloutInProgress',
DeviceUpdating = 'Updating',
Expand Down
6 changes: 3 additions & 3 deletions libs/types/models/DeviceApplicationStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export type DeviceApplicationStatus = {
volumes?: Array<ApplicationVolumeStatus>;
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<ApplicationImageDigest>;
/**
* 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;
};

13 changes: 13 additions & 0 deletions libs/types/models/DeviceDeltaApplyOutcomeType.ts
Original file line number Diff line number Diff line change
@@ -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',
}
10 changes: 4 additions & 6 deletions libs/types/models/DeviceDeltaApplyStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

4 changes: 2 additions & 2 deletions libs/types/models/DeviceOsSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

4 changes: 4 additions & 0 deletions libs/types/models/DeviceOsStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

2 changes: 2 additions & 0 deletions libs/types/models/DeviceStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
/**
Expand Down Expand Up @@ -51,5 +52,6 @@ export type DeviceStatus = {
capabilities?: DeviceCapabilities;
deltaGeneration?: DeltaGenerationStatus;
enrollmentHooks?: DeviceEnrollmentHooksStatus;
systemInfoStatus?: DeviceSystemInfoStatus;
};

14 changes: 14 additions & 0 deletions libs/types/models/DeviceSystemInfoStatus.ts
Original file line number Diff line number Diff line change
@@ -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;
};

19 changes: 19 additions & 0 deletions libs/types/models/DeviceSystemInfoStatuses.ts
Original file line number Diff line number Diff line change
@@ -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<string, SystemInfoSourceStatus>;
/**
* Per-source collection status for custom device information.
*/
customInfo: Record<string, SystemInfoSourceStatus>;
};

12 changes: 12 additions & 0 deletions libs/types/models/DeviceSystemInfoSummaryStatus.ts
Original file line number Diff line number Diff line change
@@ -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;
};

2 changes: 1 addition & 1 deletion libs/types/models/ImageDeltaHint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
/**
Expand Down
8 changes: 4 additions & 4 deletions libs/types/models/ImageSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ImageDeltaHint>;
readonly deltaImages?: Array<ImageDeltaHint>;
};

4 changes: 2 additions & 2 deletions libs/types/models/InlineApplicationProviderSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export type InlineApplicationProviderSpec = {
*/
inline: Array<ApplicationContent>;
/**
* 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<ImageDeltaHint>;
readonly deltaImages?: Array<ImageDeltaHint>;
};

30 changes: 30 additions & 0 deletions libs/types/models/LabelSyncMapping.ts
Original file line number Diff line number Diff line change
@@ -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',
}
}

23 changes: 23 additions & 0 deletions libs/types/models/LabelSyncMappingList.ts
Original file line number Diff line number Diff line change
@@ -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<LabelSyncMapping>;
};

30 changes: 30 additions & 0 deletions libs/types/models/LabelSyncMappingSpec.ts
Original file line number Diff line number Diff line change
@@ -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',
}
}

15 changes: 15 additions & 0 deletions libs/types/models/LabelSyncMappingStatus.ts
Original file line number Diff line number Diff line change
@@ -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<Condition>;
};

20 changes: 20 additions & 0 deletions libs/types/models/SystemInfoSourceStatus.ts
Original file line number Diff line number Diff line change
@@ -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;
};

12 changes: 12 additions & 0 deletions libs/types/models/SystemInfoSourceStatusType.ts
Original file line number Diff line number Diff line change
@@ -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',
}
Loading
Loading