diff --git a/libs/i18n/locales/en/translation.json b/libs/i18n/locales/en/translation.json index 367eb8512..06a8435c9 100644 --- a/libs/i18n/locales/en/translation.json +++ b/libs/i18n/locales/en/translation.json @@ -879,6 +879,11 @@ "Device specification is invalid": "Device specification is invalid", "Device is paused after database restore": "Device is paused after database restore", "Device conflict has been resolved": "Device conflict has been resolved", + "DeviceOS image changed": "DeviceOS image changed", + "Dependency change detected": "Dependency change detected", + "Critical vulnerability detected": "Critical vulnerability detected", + "Vulnerability resolved": "Vulnerability resolved", + "Moderate vulnerability detected": "Moderate vulnerability detected", "Enrollment request was approved": "Enrollment request was approved", "Enrollment request approval failed": "Enrollment request approval failed", "Internal task failed": "Internal task failed", diff --git a/libs/types/index.ts b/libs/types/index.ts index fbc858a7f..22088bb02 100644 --- a/libs/types/index.ts +++ b/libs/types/index.ts @@ -49,7 +49,7 @@ export type { ContainerApplicationProperties } from './models/ContainerApplicati export type { CpuResourceMonitorSpec } from './models/CpuResourceMonitorSpec'; export type { CronExpression } from './models/CronExpression'; export type { CustomDeviceInfo } from './models/CustomDeviceInfo'; -export type { DependenciesSync } from './models/DependenciesSync'; +export type { DependencyChangeDetectedDetails } from './models/DependencyChangeDetectedDetails'; export type { Device } from './models/Device'; export type { DeviceApplicationsSummaryStatus } from './models/DeviceApplicationsSummaryStatus'; export type { DeviceApplicationStatus } from './models/DeviceApplicationStatus'; diff --git a/libs/types/models/ConditionType.ts b/libs/types/models/ConditionType.ts index 2b2a23a02..734dacb5f 100644 --- a/libs/types/models/ConditionType.ts +++ b/libs/types/models/ConditionType.ts @@ -7,9 +7,11 @@ */ export enum ConditionType { EnrollmentRequestApproved = 'Approved', + EnrollmentRequestTPMVerified = 'TPMVerified', CertificateSigningRequestApproved = 'Approved', CertificateSigningRequestDenied = 'Denied', CertificateSigningRequestFailed = 'Failed', + CertificateSigningRequestTPMVerified = 'TPMVerified', RepositoryAccessible = 'Accessible', ResourceSyncAccessible = 'Accessible', ResourceSyncResourceParsed = 'ResourceParsed', diff --git a/libs/types/models/DependenciesSync.ts b/libs/types/models/DependenciesSync.ts deleted file mode 100644 index 65ca79739..000000000 --- a/libs/types/models/DependenciesSync.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Duration } from './Duration'; -/** - * Configuration for automated dependency synchronization. - */ -export type DependenciesSync = { - /** - * Whether automated dependency synchronization is enabled. - */ - enabled?: boolean; - pollInterval?: Duration; -}; - diff --git a/libs/types/models/DependencyChangeDetectedDetails.ts b/libs/types/models/DependencyChangeDetectedDetails.ts new file mode 100644 index 000000000..2320bedee --- /dev/null +++ b/libs/types/models/DependencyChangeDetectedDetails.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type DependencyChangeDetectedDetails = { + /** + * The type of detail for discriminator purposes. + */ + detailType: 'DependencyChangeDetected'; + /** + * The resource key identifying the dependency that changed (e.g. "git:my-repo/main"). + */ + resourceKey: string; + /** + * The new fingerprint (e.g. commit SHA) of the changed dependency. + */ + fingerprint: string; +}; + diff --git a/libs/types/models/DeviceSpec.ts b/libs/types/models/DeviceSpec.ts index 515a7c9fe..96253fe30 100644 --- a/libs/types/models/DeviceSpec.ts +++ b/libs/types/models/DeviceSpec.ts @@ -4,7 +4,6 @@ /* eslint-disable */ import type { ApplicationProviderSpec } from './ApplicationProviderSpec'; import type { ConfigProviderSpec } from './ConfigProviderSpec'; -import type { DependenciesSync } from './DependenciesSync'; import type { DeviceConsole } from './DeviceConsole'; import type { DeviceDecommission } from './DeviceDecommission'; import type { DeviceOsSpec } from './DeviceOsSpec'; @@ -14,7 +13,6 @@ import type { ResourceMonitor } from './ResourceMonitor'; * DeviceSpec describes a device. */ export type DeviceSpec = { - dependenciesSync?: DependenciesSync; updatePolicy?: DeviceUpdatePolicySpec; os?: DeviceOsSpec; /** diff --git a/libs/types/models/Event.ts b/libs/types/models/Event.ts index a22cf0085..109e6646a 100644 --- a/libs/types/models/Event.ts +++ b/libs/types/models/Event.ts @@ -71,6 +71,10 @@ export namespace Event { DEVICE_CONTENT_OUT_OF_DATE = 'DeviceContentOutOfDate', DEVICE_CONTENT_UPDATING = 'DeviceContentUpdating', DEVICE_UPDATE_FAILED = 'DeviceUpdateFailed', + DEVICE_VULNERABILITY_CVECRITICAL = 'DeviceVulnerabilityCVECritical', + DEVICE_VULNERABILITY_CVERESOLVED = 'DeviceVulnerabilityCVEResolved', + DEVICE_VULNERABILITY_CVEWARNING = 'DeviceVulnerabilityCVEWarning', + DEVICE_OSIMAGE_CHANGED = 'DeviceOSImageChanged', ENROLLMENT_REQUEST_APPROVED = 'EnrollmentRequestApproved', ENROLLMENT_REQUEST_APPROVAL_FAILED = 'EnrollmentRequestApprovalFailed', DEVICE_MULTIPLE_OWNERS_DETECTED = 'DeviceMultipleOwnersDetected', @@ -98,6 +102,7 @@ export namespace Event { RESOURCE_SYNC_PARSING_FAILED = 'ResourceSyncParsingFailed', RESOURCE_SYNC_SYNCED = 'ResourceSyncSynced', RESOURCE_SYNC_SYNC_FAILED = 'ResourceSyncSyncFailed', + DEPENDENCY_CHANGE_DETECTED = 'DependencyChangeDetected', SYSTEM_RESTORED = 'SystemRestored', } /** diff --git a/libs/types/models/EventDetails.ts b/libs/types/models/EventDetails.ts index cd201f2e0..fc0aa4dba 100644 --- a/libs/types/models/EventDetails.ts +++ b/libs/types/models/EventDetails.ts @@ -2,6 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { DependencyChangeDetectedDetails } from './DependencyChangeDetectedDetails'; import type { DeviceMultipleOwnersDetectedDetails } from './DeviceMultipleOwnersDetectedDetails'; import type { DeviceMultipleOwnersResolvedDetails } from './DeviceMultipleOwnersResolvedDetails'; import type { DeviceOwnershipChangedDetails } from './DeviceOwnershipChangedDetails'; @@ -20,5 +21,5 @@ import type { ResourceUpdatedDetails } from './ResourceUpdatedDetails'; /** * Event-specific details, structured based on event type. */ -export type EventDetails = (ResourceUpdatedDetails | DeviceOwnershipChangedDetails | DeviceMultipleOwnersDetectedDetails | DeviceMultipleOwnersResolvedDetails | InternalTaskFailedDetails | InternalTaskPermanentlyFailedDetails | ResourceSyncCompletedDetails | ReferencedRepositoryUpdatedDetails | FleetRolloutStartedDetails | FleetRolloutFailedDetails | FleetRolloutCompletedDetails | FleetRolloutBatchDispatchedDetails | FleetRolloutBatchCompletedDetails | FleetRolloutDeviceSelectedDetails); +export type EventDetails = (ResourceUpdatedDetails | DeviceOwnershipChangedDetails | DeviceMultipleOwnersDetectedDetails | DeviceMultipleOwnersResolvedDetails | InternalTaskFailedDetails | InternalTaskPermanentlyFailedDetails | ResourceSyncCompletedDetails | ReferencedRepositoryUpdatedDetails | FleetRolloutStartedDetails | FleetRolloutFailedDetails | FleetRolloutCompletedDetails | FleetRolloutBatchDispatchedDetails | FleetRolloutBatchCompletedDetails | FleetRolloutDeviceSelectedDetails | DeviceVulnerabilityCveDetails | DependencyChangeDetectedDetails); diff --git a/libs/types/models/FleetSpec.ts b/libs/types/models/FleetSpec.ts index d1e7bba58..c30194a88 100644 --- a/libs/types/models/FleetSpec.ts +++ b/libs/types/models/FleetSpec.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { DependenciesSync } from './DependenciesSync'; import type { DeviceSpec } from './DeviceSpec'; import type { LabelSelector } from './LabelSelector'; import type { ObjectMeta } from './ObjectMeta'; @@ -13,7 +12,6 @@ import type { RolloutPolicy } from './RolloutPolicy'; export type FleetSpec = { selector?: LabelSelector; rolloutPolicy?: RolloutPolicy; - dependenciesSync?: DependenciesSync; /** * The template for the devices in the fleet. */ diff --git a/libs/ui-components/src/components/Events/useEvents.ts b/libs/ui-components/src/components/Events/useEvents.ts index 46efaa196..2284082ed 100644 --- a/libs/ui-components/src/components/Events/useEvents.ts +++ b/libs/ui-components/src/components/Events/useEvents.ts @@ -79,6 +79,12 @@ const getEventReasonTitles = (t: TFunction, kindType: string): Record