diff --git a/.eslintrc.js b/.eslintrc.js index ce79f920b..67111f3f7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,13 +20,6 @@ module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], extends: ['plugin:@typescript-eslint/recommended'], - overrides: [ - { - // 3) Now we enable eslint-plugin-testing-library rules or preset only for matching testing files! - files: ['**/?(*.)+(spec).ts?(x)'], - extends: ['plugin:testing-library/react'], - }, - ], rules: { 'react/prop-types': 'off', '@typescript-eslint/no-unused-vars': 'error', @@ -110,7 +103,6 @@ module.exports = { 'import/no-unresolved': 'off', 'import/extensions': 'off', 'no-console': 'error', - 'testing-library/prefer-user-event': 'error', '@typescript-eslint/no-misused-promises': 'off', '@typescript-eslint/no-floating-promises': 'off', '@typescript-eslint/no-unsafe-enum-comparison': 'off', diff --git a/libs/cypress/e2e/fleets/createFleet.cy.ts b/libs/cypress/e2e/fleets/createFleet.cy.ts index d6e868065..da7b21330 100644 --- a/libs/cypress/e2e/fleets/createFleet.cy.ts +++ b/libs/cypress/e2e/fleets/createFleet.cy.ts @@ -39,13 +39,15 @@ describe('Create fleet form', () => { createFleetWizardPage.newFleetTargetReferenceField.type('main'); createFleetWizardPage.newFleetRepositoryPathField.type('/file-path'); - createFleetWizardPage.nextFleetWizardButton.should('be.enabled').click(); + + // Fleet spec step + createFleetWizardPage.nextFleetWizardButton.should('have.text', 'Next').should('be.enabled').click(); // Updates step - createFleetWizardPage.nextFleetWizardButton.should('be.enabled').click(); + createFleetWizardPage.nextFleetWizardButton.should('have.text', 'Next').should('be.enabled').click(); // Review and create step - createFleetWizardPage.createFleetFormSubmitButton.should('be.enabled').click(); + createFleetWizardPage.createFleetFormSubmitButton.should('have.text', 'Create fleet').should('be.enabled').click(); cy.wait('@create-new-fleet').then(({ request }) => { expect(request.body, 'Create fleet request').to.nested.include({ diff --git a/libs/cypress/fixtures/repositories/initialRepositories.ts b/libs/cypress/fixtures/repositories/initialRepositories.ts index 9bb40f5a1..dad8cb9fc 100644 --- a/libs/cypress/fixtures/repositories/initialRepositories.ts +++ b/libs/cypress/fixtures/repositories/initialRepositories.ts @@ -11,7 +11,7 @@ const repoList: Repository[] = [ }, spec: { url: 'https://github.com/flightctl/flightctl-demos', - type: RepoSpecType.GIT, + type: RepoSpecType.Git, }, status: { conditions: [ diff --git a/libs/types/models/AbsolutePath.ts b/libs/types/models/AbsolutePath.ts deleted file mode 100644 index d090343a9..000000000 --- a/libs/types/models/AbsolutePath.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Represents an absolute file path. - */ -export type AbsolutePath = { - /** - * The absolute path to a file on the system. Note that any existing file will be overwritten. - */ - path?: string; -}; - diff --git a/libs/types/models/ApplicationContent.ts b/libs/types/models/ApplicationContent.ts deleted file mode 100644 index cfb6b30be..000000000 --- a/libs/types/models/ApplicationContent.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { FileContent } from './FileContent'; -import type { RelativePath } from './RelativePath'; -export type ApplicationContent = (FileContent & RelativePath & Record); - diff --git a/libs/types/models/ApplicationEnvVars.ts b/libs/types/models/ApplicationEnvVars.ts deleted file mode 100644 index fd88f2960..000000000 --- a/libs/types/models/ApplicationEnvVars.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ApplicationEnvVars = { - /** - * Environment variable key-value pairs, injected during runtime. The key and value each must be between 1 and 253 characters. - */ - envVars?: Record; -}; - diff --git a/libs/types/models/ApplicationStatusType.ts b/libs/types/models/ApplicationStatusType.ts deleted file mode 100644 index c43d9101b..000000000 --- a/libs/types/models/ApplicationStatusType.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of a single application on the device. - */ -export enum ApplicationStatusType { - ApplicationStatusPreparing = 'Preparing', - ApplicationStatusStarting = 'Starting', - ApplicationStatusRunning = 'Running', - ApplicationStatusError = 'Error', - ApplicationStatusUnknown = 'Unknown', - ApplicationStatusCompleted = 'Completed', -} diff --git a/libs/types/models/ApplicationVolume.ts b/libs/types/models/ApplicationVolume.ts deleted file mode 100644 index b219681f3..000000000 --- a/libs/types/models/ApplicationVolume.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ImageVolumeProviderSpec } from './ImageVolumeProviderSpec'; -export type ApplicationVolume = ({ - /** - * Unique name of the volume used within the application. - */ - name: string; -} & ImageVolumeProviderSpec); - diff --git a/libs/types/models/ApplicationVolumeProviderSpec.ts b/libs/types/models/ApplicationVolumeProviderSpec.ts deleted file mode 100644 index e7b843458..000000000 --- a/libs/types/models/ApplicationVolumeProviderSpec.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationVolume } from './ApplicationVolume'; -export type ApplicationVolumeProviderSpec = { - /** - * List of application volumes. - */ - volumes?: Array; -}; - diff --git a/libs/types/models/ApplicationVolumeStatus.ts b/libs/types/models/ApplicationVolumeStatus.ts deleted file mode 100644 index 1df54e0fe..000000000 --- a/libs/types/models/ApplicationVolumeStatus.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of a volume used by an application. - */ -export type ApplicationVolumeStatus = { - /** - * Name of the volume. - */ - name: string; - /** - * Reference to the deployed OCI-compliant image or artifact backing the volume. - */ - reference: string; -}; - diff --git a/libs/types/models/ApplicationsSummaryStatusType.ts b/libs/types/models/ApplicationsSummaryStatusType.ts deleted file mode 100644 index 003e35b62..000000000 --- a/libs/types/models/ApplicationsSummaryStatusType.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of all applications on the device. - */ -export enum ApplicationsSummaryStatusType { - ApplicationsSummaryStatusHealthy = 'Healthy', - ApplicationsSummaryStatusDegraded = 'Degraded', - ApplicationsSummaryStatusError = 'Error', - ApplicationsSummaryStatusUnknown = 'Unknown', -} diff --git a/libs/types/models/AuthConfig.ts b/libs/types/models/AuthConfig.ts deleted file mode 100644 index e4a46ef1c..000000000 --- a/libs/types/models/AuthConfig.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { AuthOrganizationsConfig } from './AuthOrganizationsConfig'; -/** - * Auth config. - */ -export type AuthConfig = { - /** - * Auth type. - */ - authType: string; - /** - * Auth URL. - */ - authURL: string; - authOrganizationsConfig: AuthOrganizationsConfig; -}; - diff --git a/libs/types/models/AuthOrganizationsConfig.ts b/libs/types/models/AuthOrganizationsConfig.ts deleted file mode 100644 index 84e12643a..000000000 --- a/libs/types/models/AuthOrganizationsConfig.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Auth related organizations configuration. - */ -export type AuthOrganizationsConfig = { - /** - * If true, support for IdP provided organizations is enabled. - */ - enabled: boolean; -}; - diff --git a/libs/types/models/Batch.ts b/libs/types/models/Batch.ts deleted file mode 100644 index e07fbc8c5..000000000 --- a/libs/types/models/Batch.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { LabelSelector } from './LabelSelector'; -import type { Percentage } from './Percentage'; -/** - * Batch is an element in batch sequence. - */ -export type Batch = { - selector?: LabelSelector; - successThreshold?: Percentage; - /** - * The maximum number or percentage of devices to update in the batch. - */ - limit?: (Percentage | number); -}; - diff --git a/libs/types/models/BatchSequence.ts b/libs/types/models/BatchSequence.ts deleted file mode 100644 index 8634f9a65..000000000 --- a/libs/types/models/BatchSequence.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Batch } from './Batch'; -/** - * BatchSequence defines the list of batches to be executed in sequence. - */ -export type BatchSequence = { - strategy: 'BatchSequence'; - /** - * A list of batch definitions. - */ - sequence?: Array; -}; - diff --git a/libs/types/models/CertificateSigningRequest.ts b/libs/types/models/CertificateSigningRequest.ts deleted file mode 100644 index 0201e1d45..000000000 --- a/libs/types/models/CertificateSigningRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CertificateSigningRequestSpec } from './CertificateSigningRequestSpec'; -import type { CertificateSigningRequestStatus } from './CertificateSigningRequestStatus'; -import type { ObjectMeta } from './ObjectMeta'; -/** - * CertificateSigningRequest represents a request for a signed certificate from the CA. - */ -export type CertificateSigningRequest = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: CertificateSigningRequestSpec; - status?: CertificateSigningRequestStatus; -}; - diff --git a/libs/types/models/CertificateSigningRequestList.ts b/libs/types/models/CertificateSigningRequestList.ts deleted file mode 100644 index b26b68de3..000000000 --- a/libs/types/models/CertificateSigningRequestList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CertificateSigningRequest } from './CertificateSigningRequest'; -import type { ListMeta } from './ListMeta'; -/** - * CertificateSigningRequestList is a list of CertificateSigningRequest. - */ -export type CertificateSigningRequestList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of CertificateSigningRequest. - */ - items: Array; -}; - diff --git a/libs/types/models/CertificateSigningRequestSpec.ts b/libs/types/models/CertificateSigningRequestSpec.ts deleted file mode 100644 index e4bccd75b..000000000 --- a/libs/types/models/CertificateSigningRequestSpec.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Wrapper around a user-created CSR, modeled on kubernetes io.k8s.api.certificates.v1.CertificateSigningRequestSpec. - */ -export type CertificateSigningRequestSpec = { - /** - * Requested duration of validity for the certificate. - */ - expirationSeconds?: number; - /** - * Extra attributes of the user that created the CSR, populated by the API server on creation and immutable. - */ - extra?: Record>; - /** - * The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource. - */ - request: string; - /** - * Indicates the requested signer, and is a qualified name. - */ - signerName: string; - /** - * UID of the user that created the CSR, populated by the API server on creation and immutable. - */ - uid?: string; - /** - * Usages specifies a set of key usages requested in the issued certificate. - */ - usages?: Array; - /** - * Name of the user that created the CSR, populated by the API server on creation and immutable. - */ - username?: string; -}; - diff --git a/libs/types/models/CertificateSigningRequestStatus.ts b/libs/types/models/CertificateSigningRequestStatus.ts deleted file mode 100644 index 25744363a..000000000 --- a/libs/types/models/CertificateSigningRequestStatus.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -/** - * Indicates approval/denial/failure status of the CSR, and contains the issued certificate if any exists. - */ -export type CertificateSigningRequestStatus = { - /** - * The issued signed certificate, immutable once populated. - */ - certificate?: string; - /** - * Conditions applied to the request. Known conditions are Approved, Denied, and Failed. - */ - conditions: Array; -}; - diff --git a/libs/types/models/Condition.ts b/libs/types/models/Condition.ts deleted file mode 100644 index fa6eb2f98..000000000 --- a/libs/types/models/Condition.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ConditionStatus } from './ConditionStatus'; -import type { ConditionType } from './ConditionType'; -/** - * Condition contains details for one aspect of the current state of this API Resource. - */ -export type Condition = { - type: ConditionType; - status: ConditionStatus; - /** - * The .metadata.generation that the condition was set based upon. - */ - observedGeneration?: number; - /** - * The last time the condition transitioned from one status to another. - */ - lastTransitionTime: string; - /** - * Human readable message indicating details about last transition. - */ - message: string; - /** - * A (brief) reason for the condition's last transition. - */ - reason: string; -}; - diff --git a/libs/types/models/ConditionStatus.ts b/libs/types/models/ConditionStatus.ts deleted file mode 100644 index fc1157cae..000000000 --- a/libs/types/models/ConditionStatus.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of the condition, one of True, False, Unknown. - */ -export enum ConditionStatus { - ConditionStatusTrue = 'True', - ConditionStatusFalse = 'False', - ConditionStatusUnknown = 'Unknown', -} diff --git a/libs/types/models/ConditionType.ts b/libs/types/models/ConditionType.ts deleted file mode 100644 index 2b2a23a02..000000000 --- a/libs/types/models/ConditionType.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Type of condition in CamelCase. - */ -export enum ConditionType { - EnrollmentRequestApproved = 'Approved', - CertificateSigningRequestApproved = 'Approved', - CertificateSigningRequestDenied = 'Denied', - CertificateSigningRequestFailed = 'Failed', - RepositoryAccessible = 'Accessible', - ResourceSyncAccessible = 'Accessible', - ResourceSyncResourceParsed = 'ResourceParsed', - ResourceSyncSynced = 'Synced', - FleetValid = 'Valid', - FleetRolloutInProgress = 'RolloutInProgress', - DeviceUpdating = 'Updating', - DeviceSpecValid = 'SpecValid', - DeviceMultipleOwners = 'MultipleOwners', - DeviceDecommissioning = 'DeviceDecommissioning', -} diff --git a/libs/types/models/ConfigProviderSpec.ts b/libs/types/models/ConfigProviderSpec.ts deleted file mode 100644 index b9cd51731..000000000 --- a/libs/types/models/ConfigProviderSpec.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { GitConfigProviderSpec } from './GitConfigProviderSpec'; -import type { HttpConfigProviderSpec } from './HttpConfigProviderSpec'; -import type { InlineConfigProviderSpec } from './InlineConfigProviderSpec'; -import type { KubernetesSecretProviderSpec } from './KubernetesSecretProviderSpec'; -export type ConfigProviderSpec = (GitConfigProviderSpec | KubernetesSecretProviderSpec | InlineConfigProviderSpec | HttpConfigProviderSpec); - diff --git a/libs/types/models/CpuResourceMonitorSpec.ts b/libs/types/models/CpuResourceMonitorSpec.ts deleted file mode 100644 index 8d90eeab3..000000000 --- a/libs/types/models/CpuResourceMonitorSpec.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ResourceMonitorSpec } from './ResourceMonitorSpec'; -export type CpuResourceMonitorSpec = ({ - /** - * The type of resource to monitor. - */ - monitorType: string; -} & ResourceMonitorSpec); - diff --git a/libs/types/models/CronExpression.ts b/libs/types/models/CronExpression.ts deleted file mode 100644 index 3ce5fd009..000000000 --- a/libs/types/models/CronExpression.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Cron expression format for scheduling times. - * The format is `* * * * *`: - Minutes: `*` matches 0-59. - Hours: `*` matches 0-23. - Day of Month: `*` matches 1-31. - Month: `*` matches 1-12. - Day of Week: `*` matches 0-6. - * Supported operators: - `*`: Matches any value (e.g., `*` in hours matches every hour). - `-`: Range (e.g., `0-8` for 12 AM to 8 AM). - `,`: List (e.g., `1,12` for 1st and 12th minute). - `/`: Step (e.g., `*12` for every 12th minute). - Single value (e.g., `8` matches the 8th minute). - * Example: `* 0-8,16-23 * * *`. - */ -export type CronExpression = string; diff --git a/libs/types/models/CustomDeviceInfo.ts b/libs/types/models/CustomDeviceInfo.ts deleted file mode 100644 index db27167ef..000000000 --- a/libs/types/models/CustomDeviceInfo.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * User-defined information about the device. - */ -export type CustomDeviceInfo = Record; diff --git a/libs/types/models/Device.ts b/libs/types/models/Device.ts deleted file mode 100644 index a076af256..000000000 --- a/libs/types/models/Device.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceSpec } from './DeviceSpec'; -import type { DeviceStatus } from './DeviceStatus'; -import type { ObjectMeta } from './ObjectMeta'; -/** - * Device represents a physical device. - */ -export type Device = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec?: DeviceSpec; - status?: DeviceStatus; -}; - diff --git a/libs/types/models/DeviceApplicationStatus.ts b/libs/types/models/DeviceApplicationStatus.ts deleted file mode 100644 index 092877b68..000000000 --- a/libs/types/models/DeviceApplicationStatus.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationStatusType } from './ApplicationStatusType'; -import type { ApplicationVolumeStatus } from './ApplicationVolumeStatus'; -export type DeviceApplicationStatus = { - /** - * Human readable name of the application. - */ - name: string; - /** - * The number of containers which are ready in the application. - */ - ready: string; - /** - * Number of restarts observed for the application. - */ - restarts: number; - status: ApplicationStatusType; - /** - * Status of volumes used by this application. - */ - volumes?: Array; -}; - diff --git a/libs/types/models/DeviceApplicationsSummaryStatus.ts b/libs/types/models/DeviceApplicationsSummaryStatus.ts deleted file mode 100644 index 037ab0083..000000000 --- a/libs/types/models/DeviceApplicationsSummaryStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationsSummaryStatusType } from './ApplicationsSummaryStatusType'; -/** - * A summary of the health of applications on the device. - */ -export type DeviceApplicationsSummaryStatus = { - status: ApplicationsSummaryStatusType; - /** - * Human readable information detailing the last application transition. - */ - info?: string; -}; - diff --git a/libs/types/models/DeviceConfigStatus.ts b/libs/types/models/DeviceConfigStatus.ts deleted file mode 100644 index 5aec3d7a1..000000000 --- a/libs/types/models/DeviceConfigStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Current status of the device config. - */ -export type DeviceConfigStatus = { - /** - * Rendered version of the device config. - */ - renderedVersion: string; -}; - diff --git a/libs/types/models/DeviceConsole.ts b/libs/types/models/DeviceConsole.ts deleted file mode 100644 index b812c8c31..000000000 --- a/libs/types/models/DeviceConsole.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * DeviceConsole represents the console connection information. - */ -export type DeviceConsole = { - /** - * Additional session metadata in the form of key=value pairs, can be used to initialize the type of terminal, console to be used, etc. - */ - sessionMetadata: string; - /** - * The session ID for the console connection. - */ - sessionID: string; -}; - diff --git a/libs/types/models/DeviceDecommission.ts b/libs/types/models/DeviceDecommission.ts deleted file mode 100644 index 12b874241..000000000 --- a/libs/types/models/DeviceDecommission.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceDecommissionTargetType } from './DeviceDecommissionTargetType'; -/** - * Metadata about a device decommissioning request. - */ -export type DeviceDecommission = { - target: DeviceDecommissionTargetType; -}; - diff --git a/libs/types/models/DeviceDecommissionTargetType.ts b/libs/types/models/DeviceDecommissionTargetType.ts deleted file mode 100644 index e09ade45c..000000000 --- a/libs/types/models/DeviceDecommissionTargetType.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Specifies the desired decommissioning method of the device. - */ -export enum DeviceDecommissionTargetType { - DeviceDecommissionTargetTypeUnenroll = 'Unenroll', - DeviceDecommissionTargetTypeFactoryReset = 'FactoryReset', -} diff --git a/libs/types/models/DeviceIntegrityCheckStatus.ts b/libs/types/models/DeviceIntegrityCheckStatus.ts deleted file mode 100644 index e579319c8..000000000 --- a/libs/types/models/DeviceIntegrityCheckStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceIntegrityCheckStatusType } from './DeviceIntegrityCheckStatusType'; -/** - * DeviceIntegrityCheckStatus represents the status of the integrity check performed on the device. - */ -export type DeviceIntegrityCheckStatus = { - status: DeviceIntegrityCheckStatusType; - /** - * Human-readable information about the integrity check status. - */ - info?: string; -}; - diff --git a/libs/types/models/DeviceIntegrityCheckStatusType.ts b/libs/types/models/DeviceIntegrityCheckStatusType.ts deleted file mode 100644 index 15366404c..000000000 --- a/libs/types/models/DeviceIntegrityCheckStatusType.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of the integrity check performed on the device. - */ -export enum DeviceIntegrityCheckStatusType { - DeviceIntegrityCheckStatusUnknown = 'Unknown', - DeviceIntegrityCheckStatusUnsupported = 'Unsupported', - DeviceIntegrityCheckStatusFailed = 'Failed', - DeviceIntegrityCheckStatusVerified = 'Verified', -} diff --git a/libs/types/models/DeviceIntegrityStatus.ts b/libs/types/models/DeviceIntegrityStatus.ts deleted file mode 100644 index 5f03a8892..000000000 --- a/libs/types/models/DeviceIntegrityStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceIntegrityCheckStatus } from './DeviceIntegrityCheckStatus'; -import type { DeviceIntegrityStatusSummaryType } from './DeviceIntegrityStatusSummaryType'; -/** - * Summary status of the integrity of the device. - */ -export type DeviceIntegrityStatus = { - deviceIdentity?: DeviceIntegrityCheckStatus; - tpm?: DeviceIntegrityCheckStatus; - status: DeviceIntegrityStatusSummaryType; - /** - * Human readable information about the last integrity transition. - */ - info?: string; - /** - * Timestamp of the last integrity verification. - */ - lastVerified?: string; -}; - diff --git a/libs/types/models/DeviceIntegrityStatusSummaryType.ts b/libs/types/models/DeviceIntegrityStatusSummaryType.ts deleted file mode 100644 index 5c09b366c..000000000 --- a/libs/types/models/DeviceIntegrityStatusSummaryType.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of the integrity of the device. - */ -export enum DeviceIntegrityStatusSummaryType { - DeviceIntegrityStatusVerified = 'Verified', - DeviceIntegrityStatusFailed = 'Failed', - DeviceIntegrityStatusUnknown = 'Unknown', - DeviceIntegrityStatusUnsupported = 'Unsupported', -} diff --git a/libs/types/models/DeviceLastSeen.ts b/libs/types/models/DeviceLastSeen.ts deleted file mode 100644 index 7bea717b2..000000000 --- a/libs/types/models/DeviceLastSeen.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * DeviceLastSeen represents the last seen timestamp of a device. - */ -export type DeviceLastSeen = { - /** - * The last time the device was seen by the service. - */ - lastSeen: string; -}; - diff --git a/libs/types/models/DeviceLifecycleHookType.ts b/libs/types/models/DeviceLifecycleHookType.ts deleted file mode 100644 index 0ac142c18..000000000 --- a/libs/types/models/DeviceLifecycleHookType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export enum DeviceLifecycleHookType { - DeviceLifecycleHookBeforeUpdating = 'BeforeUpdating', - DeviceLifecycleHookAfterUpdating = 'AfterUpdating', - DeviceLifecycleHookBeforeRebooting = 'BeforeRebooting', - DeviceLifecycleHookAfterRebooting = 'AfterRebooting', -} diff --git a/libs/types/models/DeviceLifecycleStatus.ts b/libs/types/models/DeviceLifecycleStatus.ts deleted file mode 100644 index d777951bb..000000000 --- a/libs/types/models/DeviceLifecycleStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceLifecycleStatusType } from './DeviceLifecycleStatusType'; -/** - * Current status of the device lifecycle. - */ -export type DeviceLifecycleStatus = { - status: DeviceLifecycleStatusType; - /** - * Human readable information about the device lifecycle status. - */ - info?: string; -}; - diff --git a/libs/types/models/DeviceLifecycleStatusType.ts b/libs/types/models/DeviceLifecycleStatusType.ts deleted file mode 100644 index a1c265227..000000000 --- a/libs/types/models/DeviceLifecycleStatusType.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status type of the device lifecycle. - */ -export enum DeviceLifecycleStatusType { - DeviceLifecycleStatusUnknown = 'Unknown', - DeviceLifecycleStatusEnrolled = 'Enrolled', - DeviceLifecycleStatusDecommissioning = 'Decommissioning', - DeviceLifecycleStatusDecommissioned = 'Decommissioned', -} diff --git a/libs/types/models/DeviceList.ts b/libs/types/models/DeviceList.ts deleted file mode 100644 index 541d920c7..000000000 --- a/libs/types/models/DeviceList.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Device } from './Device'; -import type { DevicesSummary } from './DevicesSummary'; -import type { ListMeta } from './ListMeta'; -/** - * DeviceList is a list of Devices. - */ -export type DeviceList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of Devices. - */ - items: Array; - summary?: DevicesSummary; -}; - diff --git a/libs/types/models/DeviceMultipleOwnersDetectedDetails.ts b/libs/types/models/DeviceMultipleOwnersDetectedDetails.ts deleted file mode 100644 index 31c6e9a3c..000000000 --- a/libs/types/models/DeviceMultipleOwnersDetectedDetails.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type DeviceMultipleOwnersDetectedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'DeviceMultipleOwnersDetected'; - /** - * List of fleet names that match the device. - */ - matchingFleets: Array; -}; - diff --git a/libs/types/models/DeviceMultipleOwnersResolvedDetails.ts b/libs/types/models/DeviceMultipleOwnersResolvedDetails.ts deleted file mode 100644 index e362d0ba1..000000000 --- a/libs/types/models/DeviceMultipleOwnersResolvedDetails.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type DeviceMultipleOwnersResolvedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'DeviceMultipleOwnersResolved'; - /** - * How the conflict was resolved. - */ - resolutionType: DeviceMultipleOwnersResolvedDetails.resolutionType; - /** - * The fleet assigned as owner (null if no owner). - */ - assignedOwner?: string | null; - /** - * List of fleets that previously matched the device. - */ - previousMatchingFleets?: Array; -}; -export namespace DeviceMultipleOwnersResolvedDetails { - /** - * How the conflict was resolved. - */ - export enum resolutionType { - SINGLE_MATCH = 'SingleMatch', - NO_MATCH = 'NoMatch', - FLEET_DELETED = 'FleetDeleted', - } -} - diff --git a/libs/types/models/DeviceOsSpec.ts b/libs/types/models/DeviceOsSpec.ts deleted file mode 100644 index 2dc1b46a7..000000000 --- a/libs/types/models/DeviceOsSpec.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * DeviceOsSpec describes the target OS for the device. - */ -export type DeviceOsSpec = { - /** - * The target OS image name or URL. - */ - image: string; -}; - diff --git a/libs/types/models/DeviceOsStatus.ts b/libs/types/models/DeviceOsStatus.ts deleted file mode 100644 index 1b1f74442..000000000 --- a/libs/types/models/DeviceOsStatus.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Current status of the device OS. - */ -export type DeviceOsStatus = { - /** - * Version of the OS image. - */ - image: string; - /** - * The digest of the OS image (e.g. sha256:a0...). - */ - imageDigest: string; -}; - diff --git a/libs/types/models/DeviceOwnershipChangedDetails.ts b/libs/types/models/DeviceOwnershipChangedDetails.ts deleted file mode 100644 index faca94eb1..000000000 --- a/libs/types/models/DeviceOwnershipChangedDetails.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type DeviceOwnershipChangedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'DeviceOwnershipChanged'; - /** - * The previous owner fleet (null if none). - */ - previousOwner?: string | null; - /** - * The new owner fleet (null if removed). - */ - newOwner?: string | null; -}; - diff --git a/libs/types/models/DeviceResourceStatus.ts b/libs/types/models/DeviceResourceStatus.ts deleted file mode 100644 index 1d2e4f124..000000000 --- a/libs/types/models/DeviceResourceStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceResourceStatusType } from './DeviceResourceStatusType'; -/** - * Current status of the resources of the device. - */ -export type DeviceResourceStatus = { - cpu: DeviceResourceStatusType; - memory: DeviceResourceStatusType; - disk: DeviceResourceStatusType; -}; - diff --git a/libs/types/models/DeviceResourceStatusType.ts b/libs/types/models/DeviceResourceStatusType.ts deleted file mode 100644 index 6aef903d5..000000000 --- a/libs/types/models/DeviceResourceStatusType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * The types of resource statuses. - */ -export enum DeviceResourceStatusType { - DeviceResourceStatusHealthy = 'Healthy', - DeviceResourceStatusWarning = 'Warning', - DeviceResourceStatusCritical = 'Critical', - DeviceResourceStatusError = 'Error', - DeviceResourceStatusUnknown = 'Unknown', -} diff --git a/libs/types/models/DeviceResumeRequest.ts b/libs/types/models/DeviceResumeRequest.ts deleted file mode 100644 index 60a767598..000000000 --- a/libs/types/models/DeviceResumeRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Request to resume devices based on label selector and/or field selector. At least one selector must be provided. - */ -export type DeviceResumeRequest = { - /** - * A selector to restrict the list of devices to resume by their labels. Uses the same format as Kubernetes label selectors (e.g., "key1=value1,key2!=value2"). - */ - labelSelector?: string; - /** - * A selector to restrict the list of devices to resume by their fields. Uses the same format as Kubernetes field selectors (e.g., "metadata.name=device1,status.phase!=Pending"). - */ - fieldSelector?: string; -}; - diff --git a/libs/types/models/DeviceResumeResponse.ts b/libs/types/models/DeviceResumeResponse.ts deleted file mode 100644 index ac03e5137..000000000 --- a/libs/types/models/DeviceResumeResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Response from resuming devices. - */ -export type DeviceResumeResponse = { - /** - * Number of devices that were successfully resumed. - */ - resumedDevices: number; -}; - diff --git a/libs/types/models/DeviceSpec.ts b/libs/types/models/DeviceSpec.ts deleted file mode 100644 index 96253fe30..000000000 --- a/libs/types/models/DeviceSpec.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationProviderSpec } from './ApplicationProviderSpec'; -import type { ConfigProviderSpec } from './ConfigProviderSpec'; -import type { DeviceConsole } from './DeviceConsole'; -import type { DeviceDecommission } from './DeviceDecommission'; -import type { DeviceOsSpec } from './DeviceOsSpec'; -import type { DeviceUpdatePolicySpec } from './DeviceUpdatePolicySpec'; -import type { ResourceMonitor } from './ResourceMonitor'; -/** - * DeviceSpec describes a device. - */ -export type DeviceSpec = { - updatePolicy?: DeviceUpdatePolicySpec; - os?: DeviceOsSpec; - /** - * List of config providers. - */ - config?: Array; - /** - * List of application providers. - */ - applications?: Array; - /** - * The systemd services to monitor. - */ - systemd?: { - /** - * A list of match patterns. - */ - matchPatterns?: Array; - }; - /** - * Array of resource monitor configurations. - */ - resources?: Array; - /** - * The list of active console sessions. - */ - consoles?: Array; - decommissioning?: DeviceDecommission; -}; - diff --git a/libs/types/models/DeviceStatus.ts b/libs/types/models/DeviceStatus.ts deleted file mode 100644 index 43cb73fef..000000000 --- a/libs/types/models/DeviceStatus.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -import type { DeviceApplicationsSummaryStatus } from './DeviceApplicationsSummaryStatus'; -import type { DeviceApplicationStatus } from './DeviceApplicationStatus'; -import type { DeviceConfigStatus } from './DeviceConfigStatus'; -import type { DeviceIntegrityStatus } from './DeviceIntegrityStatus'; -import type { DeviceLifecycleStatus } from './DeviceLifecycleStatus'; -import type { DeviceOsStatus } from './DeviceOsStatus'; -import type { DeviceResourceStatus } from './DeviceResourceStatus'; -import type { DeviceSummaryStatus } from './DeviceSummaryStatus'; -import type { DeviceSystemInfo } from './DeviceSystemInfo'; -import type { DeviceUpdatedStatus } from './DeviceUpdatedStatus'; -/** - * DeviceStatus represents information about the status of a device. Status may trail the actual state of a device. - */ -export type DeviceStatus = { - /** - * Conditions represent the observations of a the current state of a device. - */ - conditions: Array; - systemInfo: DeviceSystemInfo; - /** - * List of device application status. - */ - applications: Array; - applicationsSummary: DeviceApplicationsSummaryStatus; - resources: DeviceResourceStatus; - integrity: DeviceIntegrityStatus; - config: DeviceConfigStatus; - os: DeviceOsStatus; - updated: DeviceUpdatedStatus; - summary: DeviceSummaryStatus; - /** - * The last time the device was seen by the service (NOTE: this property is not returned by the API). - */ - lastSeen?: string; - lifecycle: DeviceLifecycleStatus; -}; - diff --git a/libs/types/models/DeviceSummaryStatus.ts b/libs/types/models/DeviceSummaryStatus.ts deleted file mode 100644 index 5bf330094..000000000 --- a/libs/types/models/DeviceSummaryStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceSummaryStatusType } from './DeviceSummaryStatusType'; -/** - * A summary of the health of the device hardware and operating system resources. - */ -export type DeviceSummaryStatus = { - status: DeviceSummaryStatusType; - /** - * Human readable information detailing the last device status transition. - */ - info?: string; -}; - diff --git a/libs/types/models/DeviceSummaryStatusType.ts b/libs/types/models/DeviceSummaryStatusType.ts deleted file mode 100644 index ef28cf935..000000000 --- a/libs/types/models/DeviceSummaryStatusType.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status of the device. - */ -export enum DeviceSummaryStatusType { - DeviceSummaryStatusOnline = 'Online', - DeviceSummaryStatusDegraded = 'Degraded', - DeviceSummaryStatusError = 'Error', - DeviceSummaryStatusRebooting = 'Rebooting', - DeviceSummaryStatusPoweredOff = 'PoweredOff', - DeviceSummaryStatusUnknown = 'Unknown', - DeviceSummaryStatusAwaitingReconnect = 'AwaitingReconnect', - DeviceSummaryStatusConflictPaused = 'ConflictPaused', -} diff --git a/libs/types/models/DeviceSystemInfo.ts b/libs/types/models/DeviceSystemInfo.ts deleted file mode 100644 index 07d9a700d..000000000 --- a/libs/types/models/DeviceSystemInfo.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * System information collected from the device. - */ -export type DeviceSystemInfo = Record; diff --git a/libs/types/models/DeviceUpdatePolicySpec.ts b/libs/types/models/DeviceUpdatePolicySpec.ts deleted file mode 100644 index d8373a1f9..000000000 --- a/libs/types/models/DeviceUpdatePolicySpec.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { UpdateSchedule } from './UpdateSchedule'; -/** - * Specifies the policy for managing device updates, including when updates should be downloaded and applied. - */ -export type DeviceUpdatePolicySpec = { - downloadSchedule?: UpdateSchedule; - updateSchedule?: UpdateSchedule; -}; - diff --git a/libs/types/models/DeviceUpdatedStatus.ts b/libs/types/models/DeviceUpdatedStatus.ts deleted file mode 100644 index 1976262a4..000000000 --- a/libs/types/models/DeviceUpdatedStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceUpdatedStatusType } from './DeviceUpdatedStatusType'; -/** - * Current status of the device update. - */ -export type DeviceUpdatedStatus = { - status: DeviceUpdatedStatusType; - /** - * Human readable information about the last device update transition. - */ - info?: string; -}; - diff --git a/libs/types/models/DeviceUpdatedStatusType.ts b/libs/types/models/DeviceUpdatedStatusType.ts deleted file mode 100644 index 4a5d760d5..000000000 --- a/libs/types/models/DeviceUpdatedStatusType.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status type of the device update. - */ -export enum DeviceUpdatedStatusType { - DeviceUpdatedStatusUpToDate = 'UpToDate', - DeviceUpdatedStatusOutOfDate = 'OutOfDate', - DeviceUpdatedStatusUpdating = 'Updating', - DeviceUpdatedStatusUnknown = 'Unknown', -} diff --git a/libs/types/models/DevicesSummary.ts b/libs/types/models/DevicesSummary.ts deleted file mode 100644 index 0d6e33ec3..000000000 --- a/libs/types/models/DevicesSummary.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * A summary of the devices in the fleet returned when fetching a single Fleet. - */ -export type DevicesSummary = { - /** - * The total number of devices in the fleet. - */ - total: number; - /** - * A breakdown of the devices in the fleet by "application" status. - */ - applicationStatus: Record; - /** - * A breakdown of the devices in the fleet by "summary" status. - */ - summaryStatus: Record; - /** - * A breakdown of the devices in the fleet by "updated" status. - */ - updateStatus: Record; -}; - diff --git a/libs/types/models/DiskResourceMonitorSpec.ts b/libs/types/models/DiskResourceMonitorSpec.ts deleted file mode 100644 index 467db1791..000000000 --- a/libs/types/models/DiskResourceMonitorSpec.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ResourceMonitorSpec } from './ResourceMonitorSpec'; -export type DiskResourceMonitorSpec = (ResourceMonitorSpec & { - /** - * The type of resource to monitor. - */ - monitorType: string; -} & { - /** - * The directory path to monitor for disk usage. - */ - path: string; -}); - diff --git a/libs/types/models/DisruptionBudget.ts b/libs/types/models/DisruptionBudget.ts deleted file mode 100644 index ba6256443..000000000 --- a/libs/types/models/DisruptionBudget.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * DisruptionBudget defines the level of allowed disruption when rollout is in progress. - */ -export type DisruptionBudget = { - /** - * List of label keys to perform grouping for the disruption budget. - */ - groupBy?: Array; - /** - * The maximum number of unavailable devices allowed during rollout. - */ - minAvailable?: number; - /** - * The minimum number of required available devices during rollout. - */ - maxUnavailable?: number; -}; - diff --git a/libs/types/models/Duration.ts b/libs/types/models/Duration.ts deleted file mode 100644 index e6e61fd3b..000000000 --- a/libs/types/models/Duration.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are: `s` for seconds, `m` for minutes, `h` for hours. - */ -export type Duration = string; diff --git a/libs/types/models/EncodingType.ts b/libs/types/models/EncodingType.ts deleted file mode 100644 index 7de7c1ce8..000000000 --- a/libs/types/models/EncodingType.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Specifies the encoding type used for data representation. - */ -export enum EncodingType { - EncodingPlain = 'plain', - EncodingBase64 = 'base64', -} diff --git a/libs/types/models/EnrollmentConfig.ts b/libs/types/models/EnrollmentConfig.ts deleted file mode 100644 index 7a8aee185..000000000 --- a/libs/types/models/EnrollmentConfig.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EnrollmentService } from './EnrollmentService'; -export type EnrollmentConfig = { - 'enrollment-service': EnrollmentService; -}; - diff --git a/libs/types/models/EnrollmentRequest.ts b/libs/types/models/EnrollmentRequest.ts deleted file mode 100644 index c5276b226..000000000 --- a/libs/types/models/EnrollmentRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EnrollmentRequestSpec } from './EnrollmentRequestSpec'; -import type { EnrollmentRequestStatus } from './EnrollmentRequestStatus'; -import type { ObjectMeta } from './ObjectMeta'; -/** - * EnrollmentRequest represents a request for approval to enroll a device. - */ -export type EnrollmentRequest = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: EnrollmentRequestSpec; - status?: EnrollmentRequestStatus; -}; - diff --git a/libs/types/models/EnrollmentRequestApproval.ts b/libs/types/models/EnrollmentRequestApproval.ts deleted file mode 100644 index 1df7e71e7..000000000 --- a/libs/types/models/EnrollmentRequestApproval.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * EnrollmentRequestApproval contains information about the approval of a device enrollment request. - */ -export type EnrollmentRequestApproval = { - /** - * A set of labels to apply to the device. - */ - labels?: Record; - /** - * Indicates whether the request has been approved. - */ - approved: boolean; -}; - diff --git a/libs/types/models/EnrollmentRequestApprovalStatus.ts b/libs/types/models/EnrollmentRequestApprovalStatus.ts deleted file mode 100644 index e76f84470..000000000 --- a/libs/types/models/EnrollmentRequestApprovalStatus.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EnrollmentRequestApproval } from './EnrollmentRequestApproval'; -/** - * EnrollmentRequestApprovalStatus represents information about the status of a device enrollment request approval. - */ -export type EnrollmentRequestApprovalStatus = (EnrollmentRequestApproval & { - /** - * The name of the approver. - */ - approvedBy: string; - /** - * The time at which the request was approved. - */ - approvedAt: string; -}); - diff --git a/libs/types/models/EnrollmentRequestList.ts b/libs/types/models/EnrollmentRequestList.ts deleted file mode 100644 index cafaadd32..000000000 --- a/libs/types/models/EnrollmentRequestList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EnrollmentRequest } from './EnrollmentRequest'; -import type { ListMeta } from './ListMeta'; -/** - * EnrollmentRequestList is a list of EnrollmentRequest. - */ -export type EnrollmentRequestList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of EnrollmentRequest. - */ - items: Array; -}; - diff --git a/libs/types/models/EnrollmentRequestStatus.ts b/libs/types/models/EnrollmentRequestStatus.ts deleted file mode 100644 index a7f317869..000000000 --- a/libs/types/models/EnrollmentRequestStatus.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -import type { EnrollmentRequestApprovalStatus } from './EnrollmentRequestApprovalStatus'; -/** - * EnrollmentRequestStatus represents information about the status of a EnrollmentRequest. - */ -export type EnrollmentRequestStatus = { - /** - * The PEM-encoded signed certificate. - */ - certificate?: string; - /** - * Current state of the EnrollmentRequest. - */ - conditions: Array; - approval?: EnrollmentRequestApprovalStatus; -}; - diff --git a/libs/types/models/EnrollmentService.ts b/libs/types/models/EnrollmentService.ts deleted file mode 100644 index e66b5f4fe..000000000 --- a/libs/types/models/EnrollmentService.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EnrollmentServiceAuth } from './EnrollmentServiceAuth'; -import type { EnrollmentServiceService } from './EnrollmentServiceService'; -/** - * EnrollmentService contains information about how to communicate with a Flight Control enrollment service. - */ -export type EnrollmentService = { - authentication: EnrollmentServiceAuth; - service: EnrollmentServiceService; - /** - * The URL of the UI that the agent uses to print the QR code and link for enrolling the device. - */ - 'enrollment-ui-endpoint': string; -}; - diff --git a/libs/types/models/EnrollmentServiceAuth.ts b/libs/types/models/EnrollmentServiceAuth.ts deleted file mode 100644 index c4b22b057..000000000 --- a/libs/types/models/EnrollmentServiceAuth.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * EnrollmentServiceAuth contains the client authentication information for a Flight Control enrollment service. - */ -export type EnrollmentServiceAuth = { - /** - * ClientCertificateData contains PEM-encoded data from a client cert file for TLS. - */ - 'client-certificate-data': string; - /** - * ClientKeyData contains PEM-encoded data from a client key file for TLS. - */ - 'client-key-data': string; -}; - diff --git a/libs/types/models/EnrollmentServiceService.ts b/libs/types/models/EnrollmentServiceService.ts deleted file mode 100644 index dd406ae61..000000000 --- a/libs/types/models/EnrollmentServiceService.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * EnrollmentServiceService contains information about connecting to a Flight Control enrollment service. - */ -export type EnrollmentServiceService = { - /** - * CertificateAuthorityData contains PEM-encoded certificate authority certificates. - */ - 'certificate-authority-data': string; - /** - * Server is the address of the Flight Control enrollment service (https://hostname:port). - */ - server: string; -}; - diff --git a/libs/types/models/Event.ts b/libs/types/models/Event.ts deleted file mode 100644 index 0f7d6f82a..000000000 --- a/libs/types/models/Event.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EventDetails } from './EventDetails'; -import type { EventSource } from './EventSource'; -import type { ObjectMeta } from './ObjectMeta'; -import type { ObjectReference } from './ObjectReference'; -/** - * Event represents a single event that occurred in the system. - */ -export type Event = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - involvedObject: ObjectReference; - /** - * A short, machine-readable string that describes the reason for the event. - */ - reason: Event.reason; - /** - * A human-readable description of the status of this operation. - */ - message: string; - details?: EventDetails; - /** - * The type of the event. One of Normal, Warning. - */ - type: Event.type; - source: EventSource; - /** - * The name of the user or service that triggered the event. The value will be prefixed by either user: (for human users) or service: (for automated services). - */ - actor: string; -}; -export namespace Event { - /** - * A short, machine-readable string that describes the reason for the event. - */ - export enum reason { - RESOURCE_CREATED = 'ResourceCreated', - RESOURCE_CREATION_FAILED = 'ResourceCreationFailed', - RESOURCE_UPDATED = 'ResourceUpdated', - RESOURCE_UPDATE_FAILED = 'ResourceUpdateFailed', - RESOURCE_DELETED = 'ResourceDeleted', - RESOURCE_DELETION_FAILED = 'ResourceDeletionFailed', - DEVICE_DECOMMISSIONED = 'DeviceDecommissioned', - DEVICE_DECOMMISSION_FAILED = 'DeviceDecommissionFailed', - DEVICE_CPUCRITICAL = 'DeviceCPUCritical', - DEVICE_CPUWARNING = 'DeviceCPUWarning', - DEVICE_CPUNORMAL = 'DeviceCPUNormal', - DEVICE_MEMORY_CRITICAL = 'DeviceMemoryCritical', - DEVICE_MEMORY_WARNING = 'DeviceMemoryWarning', - DEVICE_MEMORY_NORMAL = 'DeviceMemoryNormal', - DEVICE_DISK_CRITICAL = 'DeviceDiskCritical', - DEVICE_DISK_WARNING = 'DeviceDiskWarning', - DEVICE_DISK_NORMAL = 'DeviceDiskNormal', - DEVICE_APPLICATION_ERROR = 'DeviceApplicationError', - DEVICE_APPLICATION_DEGRADED = 'DeviceApplicationDegraded', - DEVICE_APPLICATION_HEALTHY = 'DeviceApplicationHealthy', - DEVICE_DISCONNECTED = 'DeviceDisconnected', - DEVICE_IS_REBOOTING = 'DeviceIsRebooting', - DEVICE_CONFLICT_PAUSED = 'DeviceConflictPaused', - DEVICE_CONFLICT_RESOLVED = 'DeviceConflictResolved', - DEVICE_CONNECTED = 'DeviceConnected', - DEVICE_CONTENT_UP_TO_DATE = 'DeviceContentUpToDate', - DEVICE_CONTENT_OUT_OF_DATE = 'DeviceContentOutOfDate', - DEVICE_CONTENT_UPDATING = 'DeviceContentUpdating', - DEVICE_UPDATE_FAILED = 'DeviceUpdateFailed', - ENROLLMENT_REQUEST_APPROVED = 'EnrollmentRequestApproved', - ENROLLMENT_REQUEST_APPROVAL_FAILED = 'EnrollmentRequestApprovalFailed', - DEVICE_MULTIPLE_OWNERS_DETECTED = 'DeviceMultipleOwnersDetected', - DEVICE_MULTIPLE_OWNERS_RESOLVED = 'DeviceMultipleOwnersResolved', - DEVICE_SPEC_VALID = 'DeviceSpecValid', - DEVICE_SPEC_INVALID = 'DeviceSpecInvalid', - INTERNAL_TASK_FAILED = 'InternalTaskFailed', - INTERNAL_TASK_PERMANENTLY_FAILED = 'InternalTaskPermanentlyFailed', - REPOSITORY_ACCESSIBLE = 'RepositoryAccessible', - REPOSITORY_INACCESSIBLE = 'RepositoryInaccessible', - REFERENCED_REPOSITORY_UPDATED = 'ReferencedRepositoryUpdated', - FLEET_VALID = 'FleetValid', - FLEET_INVALID = 'FleetInvalid', - FLEET_ROLLOUT_CREATED = 'FleetRolloutCreated', - FLEET_ROLLOUT_STARTED = 'FleetRolloutStarted', - FLEET_ROLLOUT_FAILED = 'FleetRolloutFailed', - FLEET_ROLLOUT_COMPLETED = 'FleetRolloutCompleted', - FLEET_ROLLOUT_BATCH_DISPATCHED = 'FleetRolloutBatchDispatched', - FLEET_ROLLOUT_DEVICE_SELECTED = 'FleetRolloutDeviceSelected', - FLEET_ROLLOUT_BATCH_COMPLETED = 'FleetRolloutBatchCompleted', - RESOURCE_SYNC_COMMIT_DETECTED = 'ResourceSyncCommitDetected', - RESOURCE_SYNC_ACCESSIBLE = 'ResourceSyncAccessible', - RESOURCE_SYNC_INACCESSIBLE = 'ResourceSyncInaccessible', - RESOURCE_SYNC_PARSED = 'ResourceSyncParsed', - RESOURCE_SYNC_PARSING_FAILED = 'ResourceSyncParsingFailed', - RESOURCE_SYNC_SYNCED = 'ResourceSyncSynced', - RESOURCE_SYNC_SYNC_FAILED = 'ResourceSyncSyncFailed', - SYSTEM_RESTORED = 'SystemRestored', - } - /** - * The type of the event. One of Normal, Warning. - */ - export enum type { - NORMAL = 'Normal', - WARNING = 'Warning', - } -} - diff --git a/libs/types/models/EventDetails.ts b/libs/types/models/EventDetails.ts deleted file mode 100644 index f5f229c10..000000000 --- a/libs/types/models/EventDetails.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceMultipleOwnersDetectedDetails } from './DeviceMultipleOwnersDetectedDetails'; -import type { DeviceMultipleOwnersResolvedDetails } from './DeviceMultipleOwnersResolvedDetails'; -import type { DeviceOwnershipChangedDetails } from './DeviceOwnershipChangedDetails'; -import type { FleetRolloutBatchCompletedDetails } from './FleetRolloutBatchCompletedDetails'; -import type { FleetRolloutBatchDispatchedDetails } from './FleetRolloutBatchDispatchedDetails'; -import type { FleetRolloutCompletedDetails } from './FleetRolloutCompletedDetails'; -import type { FleetRolloutDeviceSelectedDetails } from './FleetRolloutDeviceSelectedDetails'; -import type { FleetRolloutFailedDetails } from './FleetRolloutFailedDetails'; -import type { FleetRolloutStartedDetails } from './FleetRolloutStartedDetails'; -import type { InternalTaskFailedDetails } from './InternalTaskFailedDetails'; -import type { InternalTaskPermanentlyFailedDetails } from './InternalTaskPermanentlyFailedDetails'; -import type { ReferencedRepositoryUpdatedDetails } from './ReferencedRepositoryUpdatedDetails'; -import type { ResourceSyncCompletedDetails } from './ResourceSyncCompletedDetails'; -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); - diff --git a/libs/types/models/EventList.ts b/libs/types/models/EventList.ts deleted file mode 100644 index c6498e381..000000000 --- a/libs/types/models/EventList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Event } from './Event'; -import type { ListMeta } from './ListMeta'; -/** - * EventList is a list of Events. - */ -export type EventList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of Events. - */ - items: Array; -}; - diff --git a/libs/types/models/EventSource.ts b/libs/types/models/EventSource.ts deleted file mode 100644 index 3fc11e13e..000000000 --- a/libs/types/models/EventSource.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * The component that is responsible for the event. - */ -export type EventSource = { - /** - * The name of the component that is responsible for the event. - */ - component: string; -}; - diff --git a/libs/types/models/FileContent.ts b/libs/types/models/FileContent.ts deleted file mode 100644 index 9d1ddbe16..000000000 --- a/libs/types/models/FileContent.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { EncodingType } from './EncodingType'; -/** - * The content of a file. - */ -export type FileContent = { - /** - * The plain text (UTF-8) or base64-encoded content of the file. - */ - content?: string; - contentEncoding?: EncodingType; -}; - diff --git a/libs/types/models/FileMetadata.ts b/libs/types/models/FileMetadata.ts deleted file mode 100644 index 5db11a443..000000000 --- a/libs/types/models/FileMetadata.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * File metadata. - */ -export type FileMetadata = { - /** - * The file's permission mode. You may specify the more familiar octal with a leading zero (e.g., 0644) or as a decimal without a leading zero (e.g., 420). Setuid/setgid/sticky bits are supported. If not specified, the permission mode for files defaults to 0644. - */ - mode?: number; - /** - * The file's owner, specified either as a name or numeric ID. Defaults to "root". - */ - user?: string; - /** - * The file's group, specified either as a name or numeric ID. Defaults to "root". - */ - group?: string; -}; - diff --git a/libs/types/models/FileOperation.ts b/libs/types/models/FileOperation.ts deleted file mode 100644 index 247cbb378..000000000 --- a/libs/types/models/FileOperation.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export enum FileOperation { - FileOperationCreated = 'created', - FileOperationRemoved = 'removed', - FileOperationUpdated = 'updated', -} diff --git a/libs/types/models/FileSpec.ts b/libs/types/models/FileSpec.ts deleted file mode 100644 index e2dc0621f..000000000 --- a/libs/types/models/FileSpec.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { AbsolutePath } from './AbsolutePath'; -import type { FileContent } from './FileContent'; -import type { FileMetadata } from './FileMetadata'; -export type FileSpec = (FileContent & FileMetadata & AbsolutePath & Record); - diff --git a/libs/types/models/Fleet.ts b/libs/types/models/Fleet.ts deleted file mode 100644 index 1255c1072..000000000 --- a/libs/types/models/Fleet.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { FleetSpec } from './FleetSpec'; -import type { FleetStatus } from './FleetStatus'; -import type { ObjectMeta } from './ObjectMeta'; -/** - * Fleet represents a set of devices. - */ -export type Fleet = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: FleetSpec; - status?: FleetStatus; -}; - diff --git a/libs/types/models/FleetList.ts b/libs/types/models/FleetList.ts deleted file mode 100644 index b5203bd07..000000000 --- a/libs/types/models/FleetList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Fleet } from './Fleet'; -import type { ListMeta } from './ListMeta'; -/** - * FleetList is a list of Fleets. - */ -export type FleetList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of Fleets. - */ - items: Array; -}; - diff --git a/libs/types/models/FleetRolloutBatchCompletedDetails.ts b/libs/types/models/FleetRolloutBatchCompletedDetails.ts deleted file mode 100644 index 8111999a5..000000000 --- a/libs/types/models/FleetRolloutBatchCompletedDetails.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutBatchCompletedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutBatchCompleted'; - /** - * The name of the TemplateVersion that this batch is rolling out to. - */ - templateVersion: string; - /** - * The batch within the fleet rollout. - */ - batch: string; - /** - * The success percentage of the batch. - */ - successPercentage: number; - /** - * The total number of devices in the batch. - */ - total: number; - /** - * The number of successful devices in the batch. - */ - successful: number; - /** - * The number of failed devices in the batch. - */ - failed: number; - /** - * The number of timed out devices in the batch. - */ - timedOut: number; -}; - diff --git a/libs/types/models/FleetRolloutBatchDispatchedDetails.ts b/libs/types/models/FleetRolloutBatchDispatchedDetails.ts deleted file mode 100644 index 124e921cd..000000000 --- a/libs/types/models/FleetRolloutBatchDispatchedDetails.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutBatchDispatchedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutBatchDispatched'; - /** - * The name of the TemplateVersion that this batch is rolling out to. - */ - templateVersion: string; - /** - * The batch within the fleet rollout. - */ - batch: string; -}; - diff --git a/libs/types/models/FleetRolloutCompletedDetails.ts b/libs/types/models/FleetRolloutCompletedDetails.ts deleted file mode 100644 index 38c96d54e..000000000 --- a/libs/types/models/FleetRolloutCompletedDetails.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutCompletedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutCompleted'; - /** - * The name of the TemplateVersion that this fleet rollout is completed for. - */ - templateVersion: string; -}; - diff --git a/libs/types/models/FleetRolloutDeviceSelectedDetails.ts b/libs/types/models/FleetRolloutDeviceSelectedDetails.ts deleted file mode 100644 index 00529a46c..000000000 --- a/libs/types/models/FleetRolloutDeviceSelectedDetails.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutDeviceSelectedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutDeviceSelected'; - /** - * The name of the fleet that the device is being selected for. - */ - fleetName: string; - /** - * The name of the TemplateVersion that the device is being selected to render. - */ - templateVersion: string; -}; - diff --git a/libs/types/models/FleetRolloutFailedDetails.ts b/libs/types/models/FleetRolloutFailedDetails.ts deleted file mode 100644 index b95da415c..000000000 --- a/libs/types/models/FleetRolloutFailedDetails.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutFailedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutFailed'; - /** - * The name of the TemplateVersion that this fleet rollout failed for. - */ - templateVersion: string; -}; - diff --git a/libs/types/models/FleetRolloutStartedDetails.ts b/libs/types/models/FleetRolloutStartedDetails.ts deleted file mode 100644 index 7d424a6cb..000000000 --- a/libs/types/models/FleetRolloutStartedDetails.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type FleetRolloutStartedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'FleetRolloutStarted'; - /** - * The name of the TemplateVersion that is rolling out. - */ - templateVersion: string; - /** - * Rollout strategy type. - */ - rolloutStrategy: FleetRolloutStartedDetails.rolloutStrategy; -}; -export namespace FleetRolloutStartedDetails { - /** - * Rollout strategy type. - */ - export enum rolloutStrategy { - NONE = 'None', - BATCHED = 'Batched', - } -} - diff --git a/libs/types/models/FleetRolloutStatus.ts b/libs/types/models/FleetRolloutStatus.ts deleted file mode 100644 index 728893e6f..000000000 --- a/libs/types/models/FleetRolloutStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * FleetRolloutStatus represents information about the status of a fleet rollout. - */ -export type FleetRolloutStatus = { - /** - * The batch number currently being rolled out. - */ - currentBatch?: number; -}; - diff --git a/libs/types/models/FleetSpec.ts b/libs/types/models/FleetSpec.ts deleted file mode 100644 index c30194a88..000000000 --- a/libs/types/models/FleetSpec.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DeviceSpec } from './DeviceSpec'; -import type { LabelSelector } from './LabelSelector'; -import type { ObjectMeta } from './ObjectMeta'; -import type { RolloutPolicy } from './RolloutPolicy'; -/** - * FleetSpec is a description of a fleet's target state. - */ -export type FleetSpec = { - selector?: LabelSelector; - rolloutPolicy?: RolloutPolicy; - /** - * The template for the devices in the fleet. - */ - template: { - metadata?: ObjectMeta; - spec: DeviceSpec; - }; -}; - diff --git a/libs/types/models/FleetStatus.ts b/libs/types/models/FleetStatus.ts deleted file mode 100644 index cca071073..000000000 --- a/libs/types/models/FleetStatus.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -import type { DevicesSummary } from './DevicesSummary'; -import type { FleetRolloutStatus } from './FleetRolloutStatus'; -/** - * FleetStatus represents information about the status of a fleet. Status may trail the actual state of a fleet, especially if devices of a fleet have not contacted the management service in a while. - */ -export type FleetStatus = { - rollout?: FleetRolloutStatus; - /** - * Current state of the fleet. - */ - conditions: Array; - devicesSummary?: DevicesSummary; -}; - diff --git a/libs/types/models/GenericRepoSpec.ts b/libs/types/models/GenericRepoSpec.ts deleted file mode 100644 index 1a5a1736b..000000000 --- a/libs/types/models/GenericRepoSpec.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { RepoSpecType } from './RepoSpecType'; -export type GenericRepoSpec = { - /** - * The (possibly remote) repository URL. - */ - url: string; - type: RepoSpecType; -}; - diff --git a/libs/types/models/GitConfigProviderSpec.ts b/libs/types/models/GitConfigProviderSpec.ts deleted file mode 100644 index 4a5b66d3d..000000000 --- a/libs/types/models/GitConfigProviderSpec.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type GitConfigProviderSpec = { - /** - * The name of the config provider. - */ - name: string; - /** - * The reference to a Git configuration server. - */ - gitRef: { - /** - * The name of the Repository resource. - */ - repository: string; - /** - * The revision to use from the Repository. - */ - targetRevision: string; - /** - * The path to the config in the Repository. - */ - path: string; - }; -}; - diff --git a/libs/types/models/HookAction.ts b/libs/types/models/HookAction.ts deleted file mode 100644 index 84f25dcae..000000000 --- a/libs/types/models/HookAction.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { HookActionRun } from './HookActionRun'; -import type { HookCondition } from './HookCondition'; -export type HookAction = ({ - /** - * Conditions that must be met for the action to be executed. - */ - if?: Array; - /** - * The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are 's' for seconds, 'm' for minutes, and 'h' for hours. - */ - timeout?: string; -} & HookActionRun); - diff --git a/libs/types/models/HookActionRun.ts b/libs/types/models/HookActionRun.ts deleted file mode 100644 index afe703e00..000000000 --- a/libs/types/models/HookActionRun.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type HookActionRun = { - /** - * The command to be executed, including any arguments using standard shell syntax. This field supports multiple commands piped together, as if they were executed under a bash -c context. - */ - run: string; - /** - * Environment variable key-value pairs, injected during runtime. - */ - envVars?: Record; - /** - * The working directory to be used when running the command. - */ - workDir?: string; -}; - diff --git a/libs/types/models/HookCondition.ts b/libs/types/models/HookCondition.ts deleted file mode 100644 index 79ab1e314..000000000 --- a/libs/types/models/HookCondition.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { HookConditionExpression } from './HookConditionExpression'; -import type { HookConditionPathOp } from './HookConditionPathOp'; -export type HookCondition = (HookConditionPathOp | HookConditionExpression); - diff --git a/libs/types/models/HookConditionExpression.ts b/libs/types/models/HookConditionExpression.ts deleted file mode 100644 index 80f844549..000000000 --- a/libs/types/models/HookConditionExpression.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * An expression that must evaluate to true as condition for the action to be performed. - */ -export type HookConditionExpression = string; diff --git a/libs/types/models/HookConditionPathOp.ts b/libs/types/models/HookConditionPathOp.ts deleted file mode 100644 index 09872b63c..000000000 --- a/libs/types/models/HookConditionPathOp.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { FileOperation } from './FileOperation'; -export type HookConditionPathOp = { - /** - * The absolute path to a file or directory that must have changed as condition for the action to be performed. - */ - path: string; - /** - * The operation(s) on files at or below the path that satisfy the path condition. - */ - op: Array; -}; - diff --git a/libs/types/models/HttpConfig.ts b/libs/types/models/HttpConfig.ts deleted file mode 100644 index d3c00f44f..000000000 --- a/libs/types/models/HttpConfig.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Configuration for HTTP transport. - */ -export type HttpConfig = { - /** - * The username for auth with HTTP transport. - */ - username?: string; - /** - * The password for auth with HTTP transport. - */ - password?: string; - /** - * Base64 encoded TLS cert data. - */ - 'tls.crt'?: string; - /** - * Base64 encoded TLS cert key. - */ - 'tls.key'?: string; - /** - * Base64 encoded root CA. - */ - 'ca.crt'?: string; - /** - * Skip remote server verification. - */ - skipServerVerification?: boolean; - /** - * The token for auth with HTTP transport. - */ - token?: string; -}; - diff --git a/libs/types/models/HttpConfigProviderSpec.ts b/libs/types/models/HttpConfigProviderSpec.ts deleted file mode 100644 index 11298fb80..000000000 --- a/libs/types/models/HttpConfigProviderSpec.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type HttpConfigProviderSpec = { - /** - * The name of the config provider. - */ - name: string; - /** - * The reference to an HTTP configuration server. - */ - httpRef: { - /** - * The name of the repository resource to use as the sync source. - */ - repository: string; - /** - * Part of the URL that comes after the base URL. It can include query parameters such as: "/path/to/endpoint?query=param". - */ - suffix?: string; - /** - * Path in the device's file system to which the content returned by the HTTP sever should be written. - */ - filePath: string; - }; -}; - diff --git a/libs/types/models/HttpRepoSpec.ts b/libs/types/models/HttpRepoSpec.ts deleted file mode 100644 index f07a16059..000000000 --- a/libs/types/models/HttpRepoSpec.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { HttpConfig } from './HttpConfig'; -import type { RepoSpecType } from './RepoSpecType'; -export type HttpRepoSpec = { - /** - * The HTTP URL to call or clone from. - */ - url: string; - type: RepoSpecType; - httpConfig: HttpConfig; - /** - * URL suffix used only for validating access to the repository. Users might use the URL field as a root URL to be used by config sources adding suffixes. This will help with the validation of the http endpoint. - */ - validationSuffix?: string; -}; - diff --git a/libs/types/models/ImageApplicationProviderSpec.ts b/libs/types/models/ImageApplicationProviderSpec.ts deleted file mode 100644 index 4b5a9b563..000000000 --- a/libs/types/models/ImageApplicationProviderSpec.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationVolumeProviderSpec } from './ApplicationVolumeProviderSpec'; -export type ImageApplicationProviderSpec = (ApplicationVolumeProviderSpec & { - /** - * Reference to the container image for the application package. - */ - image: string; -}); - diff --git a/libs/types/models/ImagePullPolicy.ts b/libs/types/models/ImagePullPolicy.ts deleted file mode 100644 index 83e968d17..000000000 --- a/libs/types/models/ImagePullPolicy.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Optional. Defaults to 'IfNotPresent'. When set to 'Always', the image is pulled every time. When set to 'Never', the image must already exist on the device. - */ -export enum ImagePullPolicy { - PullAlways = 'Always', - PullIfNotPresent = 'IfNotPresent', - PullNever = 'Never', -} diff --git a/libs/types/models/ImageVolumeProviderSpec.ts b/libs/types/models/ImageVolumeProviderSpec.ts deleted file mode 100644 index d56917e36..000000000 --- a/libs/types/models/ImageVolumeProviderSpec.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ImageVolumeSource } from './ImageVolumeSource'; -export type ImageVolumeProviderSpec = { - image: ImageVolumeSource; -}; - diff --git a/libs/types/models/ImageVolumeSource.ts b/libs/types/models/ImageVolumeSource.ts deleted file mode 100644 index 8c9989d0b..000000000 --- a/libs/types/models/ImageVolumeSource.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ImagePullPolicy } from './ImagePullPolicy'; -/** - * Describes the source of an OCI-compliant image or artifact. - */ -export type ImageVolumeSource = { - /** - * Reference to an OCI-compliant image or artifact in a registry. This may be a container image or another type of OCI artifact, as long as it conforms to the OCI image specification. - */ - reference: string; - pullPolicy?: ImagePullPolicy; -}; - diff --git a/libs/types/models/InlineApplicationProviderSpec.ts b/libs/types/models/InlineApplicationProviderSpec.ts deleted file mode 100644 index a9fd30854..000000000 --- a/libs/types/models/InlineApplicationProviderSpec.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApplicationContent } from './ApplicationContent'; -import type { ApplicationVolumeProviderSpec } from './ApplicationVolumeProviderSpec'; -export type InlineApplicationProviderSpec = (ApplicationVolumeProviderSpec & { - /** - * A list of application content. - */ - inline: Array; -}); - diff --git a/libs/types/models/InlineConfigProviderSpec.ts b/libs/types/models/InlineConfigProviderSpec.ts deleted file mode 100644 index 91cf7cda1..000000000 --- a/libs/types/models/InlineConfigProviderSpec.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { FileSpec } from './FileSpec'; -export type InlineConfigProviderSpec = { - /** - * The name of the config provider. - */ - name: string; - /** - * A list of files to create on the device. - */ - inline: Array; -}; - diff --git a/libs/types/models/InternalTaskFailedDetails.ts b/libs/types/models/InternalTaskFailedDetails.ts deleted file mode 100644 index 58350b537..000000000 --- a/libs/types/models/InternalTaskFailedDetails.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Event } from './Event'; -export type InternalTaskFailedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'InternalTaskFailed'; - /** - * The error message describing the failure. - */ - errorMessage: string; - /** - * Number of times the task has been retried. - */ - retryCount?: number; - originalEvent: Event; -}; - diff --git a/libs/types/models/InternalTaskPermanentlyFailedDetails.ts b/libs/types/models/InternalTaskPermanentlyFailedDetails.ts deleted file mode 100644 index 8ae7b0639..000000000 --- a/libs/types/models/InternalTaskPermanentlyFailedDetails.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Event } from './Event'; -export type InternalTaskPermanentlyFailedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'InternalTaskPermanentlyFailed'; - /** - * The error message describing the permanent failure. - */ - errorMessage: string; - /** - * Number of times the task was retried before being marked as permanently failed. - */ - retryCount: number; - originalEvent: Event; -}; - diff --git a/libs/types/models/KubernetesSecretProviderSpec.ts b/libs/types/models/KubernetesSecretProviderSpec.ts deleted file mode 100644 index d73b0f391..000000000 --- a/libs/types/models/KubernetesSecretProviderSpec.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type KubernetesSecretProviderSpec = { - /** - * The name of the config provider. - */ - name: string; - /** - * The reference to a Kubernetes secret. - */ - secretRef: { - /** - * The name of the secret. - */ - name: string; - /** - * The namespace of the secret. - */ - namespace: string; - /** - * Path in the device's file system at which the secret should be mounted. - */ - mountPath: string; - }; -}; - diff --git a/libs/types/models/LabelList.ts b/libs/types/models/LabelList.ts deleted file mode 100644 index 83fe1795b..000000000 --- a/libs/types/models/LabelList.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * A list of distinct labels, where each item is formatted as "key=value". - * - */ -export type LabelList = Array; diff --git a/libs/types/models/LabelSelector.ts b/libs/types/models/LabelSelector.ts deleted file mode 100644 index b6d76c805..000000000 --- a/libs/types/models/LabelSelector.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { MatchExpressions } from './MatchExpressions'; -/** - * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. Empty/null label selectors match nothing. - */ -export type LabelSelector = { - /** - * A map of {key,value} pairs. - */ - matchLabels?: Record; - matchExpressions?: MatchExpressions; -}; - diff --git a/libs/types/models/ListMeta.ts b/libs/types/models/ListMeta.ts deleted file mode 100644 index 34c2ad962..000000000 --- a/libs/types/models/ListMeta.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. - */ -export type ListMeta = { - /** - * May be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - */ - continue?: string; - /** - * The number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - */ - remainingItemCount?: number; -}; - diff --git a/libs/types/models/MatchExpression.ts b/libs/types/models/MatchExpression.ts deleted file mode 100644 index e0f7373fe..000000000 --- a/libs/types/models/MatchExpression.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type MatchExpression = { - /** - * The label key that the selector applies to. - */ - key: string; - /** - * The operation to apply when matching. - */ - operator: MatchExpression.operator; - /** - * The list of values to match. - */ - values?: Array; -}; -export namespace MatchExpression { - /** - * The operation to apply when matching. - */ - export enum operator { - IN = 'In', - NOT_IN = 'NotIn', - EXISTS = 'Exists', - DOES_NOT_EXIST = 'DoesNotExist', - } -} - diff --git a/libs/types/models/MatchExpressions.ts b/libs/types/models/MatchExpressions.ts deleted file mode 100644 index 4f8b17867..000000000 --- a/libs/types/models/MatchExpressions.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { MatchExpression } from './MatchExpression'; -/** - * A list of match expressions. - */ -export type MatchExpressions = Array; diff --git a/libs/types/models/MemoryResourceMonitorSpec.ts b/libs/types/models/MemoryResourceMonitorSpec.ts deleted file mode 100644 index 559dd7fb4..000000000 --- a/libs/types/models/MemoryResourceMonitorSpec.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ResourceMonitorSpec } from './ResourceMonitorSpec'; -export type MemoryResourceMonitorSpec = ({ - /** - * The type of resource to monitor. - */ - monitorType: string; -} & ResourceMonitorSpec); - diff --git a/libs/types/models/ObjectMeta.ts b/libs/types/models/ObjectMeta.ts deleted file mode 100644 index c057347df..000000000 --- a/libs/types/models/ObjectMeta.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - */ -export type ObjectMeta = { - /** - * The time the object was created. - */ - creationTimestamp?: string; - /** - * The time the object will be deleted. - */ - deletionTimestamp?: string; - /** - * The name of the object. - */ - name?: string; - /** - * Map of string keys and values that can be used to organize and categorize (scope and select) objects. - */ - labels?: Record; - /** - * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - */ - generation?: number; - /** - * A resource that owns this resource, in "kind/name" format. - */ - owner?: string; - /** - * Properties set by the service. - */ - annotations?: Record; - /** - * An opaque string that identifies the server's internal version of an object. - */ - resourceVersion?: string; -}; - diff --git a/libs/types/models/ObjectReference.ts b/libs/types/models/ObjectReference.ts deleted file mode 100644 index 07fa6a0cb..000000000 --- a/libs/types/models/ObjectReference.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * A reference to a resource. - */ -export type ObjectReference = { - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - /** - * The name of the referenced object. - */ - name: string; -}; - diff --git a/libs/types/models/Organization.ts b/libs/types/models/Organization.ts deleted file mode 100644 index 5bb8dd6b7..000000000 --- a/libs/types/models/Organization.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ObjectMeta } from './ObjectMeta'; -import type { OrganizationSpec } from './OrganizationSpec'; -export type Organization = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec?: OrganizationSpec; -}; - diff --git a/libs/types/models/OrganizationList.ts b/libs/types/models/OrganizationList.ts deleted file mode 100644 index 9a72cb78c..000000000 --- a/libs/types/models/OrganizationList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ListMeta } from './ListMeta'; -import type { Organization } from './Organization'; -/** - * OrganizationList is a list of Organizations. - */ -export type OrganizationList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of Organizations. - */ - items: Array; -}; - diff --git a/libs/types/models/OrganizationSpec.ts b/libs/types/models/OrganizationSpec.ts deleted file mode 100644 index 512a536ea..000000000 --- a/libs/types/models/OrganizationSpec.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * OrganizationSpec describes an organization. - */ -export type OrganizationSpec = { - /** - * Human readable name shown to users. - */ - displayName?: string; - /** - * External ID of the organization. - */ - externalId?: string; -}; - diff --git a/libs/types/models/PatchRequest.ts b/libs/types/models/PatchRequest.ts deleted file mode 100644 index 1866d3233..000000000 --- a/libs/types/models/PatchRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type PatchRequest = Array<{ - /** - * A JSON Pointer path. - */ - path: string; - /** - * The value to add or replace. - */ - value?: any; - /** - * The operation to perform. - */ - op: 'add' | 'replace' | 'remove' | 'test'; -}>; diff --git a/libs/types/models/Percentage.ts b/libs/types/models/Percentage.ts deleted file mode 100644 index 68adf0ae5..000000000 --- a/libs/types/models/Percentage.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Percentage is the string format representing percentage string. - */ -export type Percentage = string; diff --git a/libs/types/models/ReferencedRepositoryUpdatedDetails.ts b/libs/types/models/ReferencedRepositoryUpdatedDetails.ts deleted file mode 100644 index 0749cc662..000000000 --- a/libs/types/models/ReferencedRepositoryUpdatedDetails.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ReferencedRepositoryUpdatedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'ReferencedRepositoryUpdated'; - /** - * The name of the repository that was updated. - */ - repository: string; -}; - diff --git a/libs/types/models/RelativePath.ts b/libs/types/models/RelativePath.ts deleted file mode 100644 index f979fe959..000000000 --- a/libs/types/models/RelativePath.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Represents a relative file path. - */ -export type RelativePath = { - /** - * A relative file path on the system. Note that any existing file will be overwritten. - */ - path?: string; -}; - diff --git a/libs/types/models/RepoSpecType.ts b/libs/types/models/RepoSpecType.ts deleted file mode 100644 index 60e3b1896..000000000 --- a/libs/types/models/RepoSpecType.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * RepoSpecType is the type of the repository. - */ -export enum RepoSpecType { - GIT = 'git', - HTTP = 'http', -} diff --git a/libs/types/models/Repository.ts b/libs/types/models/Repository.ts deleted file mode 100644 index fba52c407..000000000 --- a/libs/types/models/Repository.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ObjectMeta } from './ObjectMeta'; -import type { RepositorySpec } from './RepositorySpec'; -import type { RepositoryStatus } from './RepositoryStatus'; -/** - * Repository represents a Git repository or an HTTP endpoint. - */ -export type Repository = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: RepositorySpec; - status?: RepositoryStatus; -}; - diff --git a/libs/types/models/RepositoryList.ts b/libs/types/models/RepositoryList.ts deleted file mode 100644 index 1e4913c5a..000000000 --- a/libs/types/models/RepositoryList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ListMeta } from './ListMeta'; -import type { Repository } from './Repository'; -/** - * RepositoryList is a list of Repositories. - */ -export type RepositoryList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of repositories. - */ - items: Array; -}; - diff --git a/libs/types/models/RepositorySpec.ts b/libs/types/models/RepositorySpec.ts deleted file mode 100644 index 7ad462a4c..000000000 --- a/libs/types/models/RepositorySpec.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { GenericRepoSpec } from './GenericRepoSpec'; -import type { HttpRepoSpec } from './HttpRepoSpec'; -import type { SshRepoSpec } from './SshRepoSpec'; -/** - * RepositorySpec describes a configuration repository. - */ -export type RepositorySpec = (GenericRepoSpec | HttpRepoSpec | SshRepoSpec); - diff --git a/libs/types/models/RepositoryStatus.ts b/libs/types/models/RepositoryStatus.ts deleted file mode 100644 index 46864d072..000000000 --- a/libs/types/models/RepositoryStatus.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -/** - * RepositoryStatus represents information about the status of a repository. - */ -export type RepositoryStatus = { - /** - * Current state of the repository. - */ - conditions: Array; -}; - diff --git a/libs/types/models/ResourceAlertRule.ts b/libs/types/models/ResourceAlertRule.ts deleted file mode 100644 index 958a5743d..000000000 --- a/libs/types/models/ResourceAlertRule.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ResourceAlertSeverityType } from './ResourceAlertSeverityType'; -export type ResourceAlertRule = { - severity: ResourceAlertSeverityType; - /** - * Duration is the time over which the average usage is observed before alerting. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours. - */ - duration: string; - /** - * The percentage of usage that triggers the alert. - */ - percentage: number; - /** - * A human-readable description of the alert. - */ - description: string; -}; - diff --git a/libs/types/models/ResourceAlertSeverityType.ts b/libs/types/models/ResourceAlertSeverityType.ts deleted file mode 100644 index 570870f3b..000000000 --- a/libs/types/models/ResourceAlertSeverityType.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Severity of the alert. - */ -export enum ResourceAlertSeverityType { - ResourceAlertSeverityTypeWarning = 'Warning', - ResourceAlertSeverityTypeCritical = 'Critical', - ResourceAlertSeverityTypeInfo = 'Info', -} diff --git a/libs/types/models/ResourceKind.ts b/libs/types/models/ResourceKind.ts deleted file mode 100644 index 39cfae6e3..000000000 --- a/libs/types/models/ResourceKind.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Resource types exposed via the API. - */ -export enum ResourceKind { - CERTIFICATE_SIGNING_REQUEST = 'CertificateSigningRequest', - ENROLLMENT_REQUEST = 'EnrollmentRequest', - DEVICE = 'Device', - FLEET = 'Fleet', - REPOSITORY = 'Repository', - RESOURCE_SYNC = 'ResourceSync', - TEMPLATE_VERSION = 'TemplateVersion', -} diff --git a/libs/types/models/ResourceMonitor.ts b/libs/types/models/ResourceMonitor.ts deleted file mode 100644 index 483413e01..000000000 --- a/libs/types/models/ResourceMonitor.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CpuResourceMonitorSpec } from './CpuResourceMonitorSpec'; -import type { DiskResourceMonitorSpec } from './DiskResourceMonitorSpec'; -import type { MemoryResourceMonitorSpec } from './MemoryResourceMonitorSpec'; -export type ResourceMonitor = (CpuResourceMonitorSpec | MemoryResourceMonitorSpec | DiskResourceMonitorSpec); - diff --git a/libs/types/models/ResourceMonitorSpec.ts b/libs/types/models/ResourceMonitorSpec.ts deleted file mode 100644 index 5b1898ff0..000000000 --- a/libs/types/models/ResourceMonitorSpec.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ResourceAlertRule } from './ResourceAlertRule'; -/** - * Specification for monitoring a resource. - */ -export type ResourceMonitorSpec = { - /** - * Array of alert rules. Only one alert per severity is allowed. - */ - alertRules: Array; - /** - * Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours. - */ - samplingInterval: string; -}; - diff --git a/libs/types/models/ResourceSync.ts b/libs/types/models/ResourceSync.ts deleted file mode 100644 index 58b16fe04..000000000 --- a/libs/types/models/ResourceSync.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ObjectMeta } from './ObjectMeta'; -import type { ResourceSyncSpec } from './ResourceSyncSpec'; -import type { ResourceSyncStatus } from './ResourceSyncStatus'; -/** - * ResourceSync represents a reference to one or more files in a repository to sync to resource definitions. - */ -export type ResourceSync = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: ResourceSyncSpec; - status?: ResourceSyncStatus; -}; - diff --git a/libs/types/models/ResourceSyncCompletedDetails.ts b/libs/types/models/ResourceSyncCompletedDetails.ts deleted file mode 100644 index 565f5b95b..000000000 --- a/libs/types/models/ResourceSyncCompletedDetails.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ResourceSyncCompletedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'ResourceSyncCompleted'; - /** - * Hash of the last commit. - */ - commitHash: string; - /** - * Number of changes introduced by this ResourceSync update. - */ - changeCount: number; - /** - * Number of errors encountered by this ResourceSync update. - */ - errorCount: number; -}; - diff --git a/libs/types/models/ResourceSyncList.ts b/libs/types/models/ResourceSyncList.ts deleted file mode 100644 index 710d30833..000000000 --- a/libs/types/models/ResourceSyncList.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ListMeta } from './ListMeta'; -import type { ResourceSync } from './ResourceSync'; -export type ResourceSyncList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of resourcesync. - */ - items: Array; -}; - diff --git a/libs/types/models/ResourceSyncSpec.ts b/libs/types/models/ResourceSyncSpec.ts deleted file mode 100644 index 7d1c1cb9f..000000000 --- a/libs/types/models/ResourceSyncSpec.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * ResourceSyncSpec describes the file(s) to sync from a repository. - */ -export type ResourceSyncSpec = { - /** - * The name of the repository resource to use as the sync source. - */ - repository: string; - /** - * The desired revision in the repository. - */ - targetRevision: string; - /** - * The path of a file or directory in the repository. If a directory, the directory should contain only resource definitions with no subdirectories. Each file should contain the definition of one or more resources. - */ - path: string; -}; - diff --git a/libs/types/models/ResourceSyncStatus.ts b/libs/types/models/ResourceSyncStatus.ts deleted file mode 100644 index 4c9611ff1..000000000 --- a/libs/types/models/ResourceSyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -/** - * ResourceSyncStatus represents information about the status of a ResourceSync. - */ -export type ResourceSyncStatus = { - /** - * The last commit hash that was synced. - */ - observedCommit?: string; - /** - * The last generation that was synced. - */ - observedGeneration?: number; - /** - * Current state of a resourcesync. - */ - conditions: Array; -}; - diff --git a/libs/types/models/ResourceUpdatedDetails.ts b/libs/types/models/ResourceUpdatedDetails.ts deleted file mode 100644 index 133d6302c..000000000 --- a/libs/types/models/ResourceUpdatedDetails.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ResourceUpdatedDetails = { - /** - * The type of detail for discriminator purposes. - */ - detailType: 'ResourceUpdated'; - /** - * List of fields that were updated in the resource. - */ - updatedFields: Array<'owner' | 'labels' | 'spec' | 'spec.selector' | 'spec.template'>; - /** - * The previous owner (if applicable). - */ - previousOwner?: string | null; - /** - * The new owner (if applicable). - */ - newOwner?: string | null; -}; - diff --git a/libs/types/models/RolloutDeviceSelection.ts b/libs/types/models/RolloutDeviceSelection.ts deleted file mode 100644 index 8ab52c666..000000000 --- a/libs/types/models/RolloutDeviceSelection.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { BatchSequence } from './BatchSequence'; -/** - * Describes how to select devices for rollout. - */ -export type RolloutDeviceSelection = BatchSequence; - diff --git a/libs/types/models/RolloutPolicy.ts b/libs/types/models/RolloutPolicy.ts deleted file mode 100644 index 120a3f066..000000000 --- a/libs/types/models/RolloutPolicy.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { DisruptionBudget } from './DisruptionBudget'; -import type { Duration } from './Duration'; -import type { Percentage } from './Percentage'; -import type { RolloutDeviceSelection } from './RolloutDeviceSelection'; -/** - * RolloutPolicy is the rollout policy of the fleet. - */ -export type RolloutPolicy = { - disruptionBudget?: DisruptionBudget; - deviceSelection?: RolloutDeviceSelection; - successThreshold?: Percentage; - defaultUpdateTimeout?: Duration; -}; - diff --git a/libs/types/models/RolloutStrategy.ts b/libs/types/models/RolloutStrategy.ts deleted file mode 100644 index e52eeebff..000000000 --- a/libs/types/models/RolloutStrategy.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * The strategy of choice for device selection in rollout policy. - */ -export enum RolloutStrategy { - BATCH_SEQUENCE = 'BatchSequence', -} diff --git a/libs/types/models/SshConfig.ts b/libs/types/models/SshConfig.ts deleted file mode 100644 index 1a4d3dd6b..000000000 --- a/libs/types/models/SshConfig.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Configuration for SSH transport. - */ -export type SshConfig = { - /** - * Base64 encoded private SSH key. - */ - sshPrivateKey?: string; - /** - * The passphrase for sshPrivateKey. - */ - privateKeyPassphrase?: string; - /** - * Skip remote server verification. - */ - skipServerVerification?: boolean; -}; - diff --git a/libs/types/models/SshRepoSpec.ts b/libs/types/models/SshRepoSpec.ts deleted file mode 100644 index f6fa1091b..000000000 --- a/libs/types/models/SshRepoSpec.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { RepoSpecType } from './RepoSpecType'; -import type { SshConfig } from './SshConfig'; -export type SshRepoSpec = { - /** - * The SSH Git repository URL to clone from. - */ - url: string; - type: RepoSpecType; - sshConfig: SshConfig; -}; - diff --git a/libs/types/models/Status.ts b/libs/types/models/Status.ts deleted file mode 100644 index 10ef51b0a..000000000 --- a/libs/types/models/Status.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Status is a return value for calls that don't return other objects. - */ -export type Status = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - /** - * Suggested HTTP return code for this status, 0 if not set. - */ - code: number; - /** - * A human-readable description of the status of this operation. - */ - message: string; - /** - * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - */ - reason: string; - /** - * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - */ - status: string; -}; - diff --git a/libs/types/models/TemplateVersion.ts b/libs/types/models/TemplateVersion.ts deleted file mode 100644 index adc849f81..000000000 --- a/libs/types/models/TemplateVersion.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ObjectMeta } from './ObjectMeta'; -import type { TemplateVersionSpec } from './TemplateVersionSpec'; -import type { TemplateVersionStatus } from './TemplateVersionStatus'; -/** - * TemplateVersion represents a version of a template. - */ -export type TemplateVersion = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ObjectMeta; - spec: TemplateVersionSpec; - status?: TemplateVersionStatus; -}; - diff --git a/libs/types/models/TemplateVersionList.ts b/libs/types/models/TemplateVersionList.ts deleted file mode 100644 index 73f145613..000000000 --- a/libs/types/models/TemplateVersionList.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ListMeta } from './ListMeta'; -import type { TemplateVersion } from './TemplateVersion'; -/** - * TemplateVersionList is a list of TemplateVersions. - */ -export type TemplateVersionList = { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. - */ - apiVersion: string; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. - */ - kind: string; - metadata: ListMeta; - /** - * List of TemplateVersions. - */ - items: Array; -}; - diff --git a/libs/types/models/TemplateVersionSpec.ts b/libs/types/models/TemplateVersionSpec.ts deleted file mode 100644 index e22f3c38f..000000000 --- a/libs/types/models/TemplateVersionSpec.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * TemplateVersionSpec describes a version of a device template. - */ -export type TemplateVersionSpec = { - /** - * The fleet whose template this refers to. - */ - fleet: string; -}; - diff --git a/libs/types/models/TemplateVersionStatus.ts b/libs/types/models/TemplateVersionStatus.ts deleted file mode 100644 index 213522a90..000000000 --- a/libs/types/models/TemplateVersionStatus.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Condition } from './Condition'; -import type { DeviceSpec } from './DeviceSpec'; -/** - * TemplateVersionStatus represents information about the status of a template version. - */ -export type TemplateVersionStatus = (DeviceSpec & { - /** - * The time at which the template was last updated. - */ - updatedAt?: string; - /** - * Current state of the device. - */ - conditions: Array; -}); - diff --git a/libs/types/models/TimeZone.ts b/libs/types/models/TimeZone.ts deleted file mode 100644 index 55e588c5f..000000000 --- a/libs/types/models/TimeZone.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -/** - * Time zone identifiers follow the IANA format AREA/LOCATION, where AREA represents a continent or ocean, and LOCATION specifies a particular site within that area, for example America/New_York, Europe/Paris. Only unambiguous 3-character time zones are supported ("GMT", "UTC"). - */ -export type TimeZone = string; diff --git a/libs/types/models/UpdateSchedule.ts b/libs/types/models/UpdateSchedule.ts deleted file mode 100644 index f7df3bfef..000000000 --- a/libs/types/models/UpdateSchedule.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CronExpression } from './CronExpression'; -import type { Duration } from './Duration'; -import type { TimeZone } from './TimeZone'; -/** - * Defines the schedule for automatic downloading and updates, including timing and optional timeout. - */ -export type UpdateSchedule = { - timeZone?: TimeZone; - at: CronExpression; - startGraceDuration?: Duration; -}; - diff --git a/libs/types/models/Version.ts b/libs/types/models/Version.ts deleted file mode 100644 index d15c14711..000000000 --- a/libs/types/models/Version.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type Version = { - /** - * Git version of the service. - */ - version: string; -}; - diff --git a/libs/types/package.json b/libs/types/package.json index e46a8abcb..34726df18 100644 --- a/libs/types/package.json +++ b/libs/types/package.json @@ -20,10 +20,10 @@ "scripts": { "prebuild": "tsc --noEmit && rimraf dist", "build": "tsc --build", - "gen-types": "rimraf ./models && node ./scripts/openapi-typescript.js && rsync -a --remove-source-files tmp-types/ ./ && npm run build", + "gen-types": "node ./scripts/openapi-typescript.mjs && mv tmp-types/types.gen.ts index.ts && npm run build", "ts-node": "ts-node -O '{\"module\":\"commonjs\"}'" }, "devDependencies": { - "openapi-typescript-codegen": "^0.27.0" + "@hey-api/openapi-ts": "^0.85.1" } } diff --git a/libs/types/scripts/fix-device-system-info.mjs b/libs/types/scripts/fix-device-system-info.mjs new file mode 100644 index 000000000..1b074e10d --- /dev/null +++ b/libs/types/scripts/fix-device-system-info.mjs @@ -0,0 +1,67 @@ +/* + The @hey-api/openapi-ts generator produces the following type for DeviceSystemInfo: + + export type DeviceSystemInfo = { + architecture: string; + bootID: string; + // ... other properties + customInfo?: CustomDeviceInfo; + [key: string]: string | CustomDeviceInfo | undefined; + }; + + This module fixes the schema by modifying the additionalProperties to be a Record. + + export type DeviceSystemInfo = { + [key: string]: string; +} & { + // ... all named properties + customInfo?: CustomDeviceInfo; + }; +*/ +const fixDeviceSystemInfo = (json) => { + const systemInfo = json.components.schemas.DeviceSystemInfo; + if (!systemInfo) { + throw new Error('DeviceSystemInfo schema not found, current transformation may no longer be needed'); + } + + const hasExpectedStructure = + systemInfo.additionalProperties && + systemInfo.additionalProperties.type === 'string' && + systemInfo.properties && + systemInfo.properties.customInfo && + systemInfo.properties.customInfo.$ref === '#/components/schemas/CustomDeviceInfo'; + if (!hasExpectedStructure) { + throw new Error('DeviceSystemInfo structure has changed, transformation logic needs to be reviewed.'); + } + + const originalProperties = systemInfo.properties; + const originalRequired = systemInfo.required; + const originalAdditionalProperties = systemInfo.additionalProperties; + + systemInfo.allOf = [ + { + // Make the additionalProperties a Record (not allowing them having CustomDeviceInfo values) + type: 'object', + additionalProperties: { + type: 'string', + description: originalAdditionalProperties.description, + }, + }, + { + // Add the original named properties + type: 'object', + properties: originalProperties, + required: originalRequired, + additionalProperties: false, + }, + ]; + + // Remove the original structure since we're using allOf + delete systemInfo.properties; + delete systemInfo.required; + delete systemInfo.additionalProperties; + + console.log('✅ Fixing DeviceSystemInfo: prevent additionalProperties of type CustomDeviceInfo'); +}; + +export default fixDeviceSystemInfo; diff --git a/libs/types/scripts/fix-rollout-selection.mjs b/libs/types/scripts/fix-rollout-selection.mjs new file mode 100644 index 000000000..79644c529 --- /dev/null +++ b/libs/types/scripts/fix-rollout-selection.mjs @@ -0,0 +1,33 @@ +/* + The @hey-api/openapi-ts generator produces the following type for RolloutDeviceSelection: + + export type RolloutDeviceSelection = { + strategy: 'BatchSequence'; +} & BatchSequence; + + This module fixes the schema by replacing the problematic oneOf with a simple $ref to BatchSequence. + So effectively the generated type will be: + + export type RolloutDeviceSelection = BatchSequence; + */ +const fixRolloutDeviceSelection = (json) => { + const rolloutDeviceSelection = json.components.schemas.RolloutDeviceSelection; + + if (!json.components.schemas.RolloutDeviceSelection || !json.components.schemas.BatchSequence) { + throw new Error( + 'RolloutDeviceSelection or BatchSequence schemas not found, current transformation may no longer be needed', + ); + } + + const hasExpectedSignature = + rolloutDeviceSelection.discriminator && + rolloutDeviceSelection.discriminator.propertyName === 'strategy' && + rolloutDeviceSelection.discriminator.mapping['BatchSequence'] === '#/components/schemas/BatchSequence'; + if (!hasExpectedSignature) { + throw new Error('RolloutDeviceSelection structure has changed, transformation logic needs to be reviewed.'); + } + + delete json.components.schemas.RolloutDeviceSelection.discriminator; + console.log('✅ Fixing RolloutDeviceSelection: removed problematic discriminator'); +}; +export default fixRolloutDeviceSelection; diff --git a/libs/types/scripts/openapi-typescript.js b/libs/types/scripts/openapi-typescript.js deleted file mode 100644 index 3e38c84da..000000000 --- a/libs/types/scripts/openapi-typescript.js +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env node -const path = require('path'); -const OpenAPI = require('openapi-typescript-codegen'); -const YAML = require('js-yaml'); - -const processJsonAPI = (jsonString) => { - const json = YAML.load(jsonString); - if (json.components) { - Object.keys(json.components.schemas).forEach((key) => { - const schema = json.components.schemas[key]; - if (schema && typeof schema.type === 'undefined') { - schema.type = 'object'; - } - }); - } - return json; -}; - -async function main() { - const swaggerUrl = 'https://raw.githubusercontent.com/flightctl/flightctl/main/api/v1alpha1/openapi.yaml'; - const output = path.resolve(__dirname, '../tmp-types'); - const response = await fetch(swaggerUrl); - const data = await response.text(); - - OpenAPI.generate({ - input: processJsonAPI(data), - output, - exportCore: false, - exportServices: false, - exportModels: true, - exportSchemas: false, - indent: '2', - }); -} - -void main(); diff --git a/libs/types/scripts/openapi-typescript.mjs b/libs/types/scripts/openapi-typescript.mjs new file mode 100644 index 000000000..439b6e280 --- /dev/null +++ b/libs/types/scripts/openapi-typescript.mjs @@ -0,0 +1,45 @@ +#!/usr/bin/env node +import { createClient } from '@hey-api/openapi-ts'; +import YAML from 'js-yaml'; +import fixRolloutDeviceSelection from './fix-rollout-selection.mjs'; +import fixDeviceSystemInfo from './fix-device-system-info.mjs'; + +const getConfig = (jsonSchema) => ({ + input: jsonSchema, + output: { + path: './tmp-types', + indexFile: false, + }, + plugins: [ + { + name: '@hey-api/typescript', + enums: { + mode: 'typescript', + case: 'PascalCase', + }, + }, + ], +}); + +/** + * In some cases, we need to make adjustments to the OpenAPI schema before generating types. + * This function transforms the problematic schema to the correct ones. + */ +const fixOpenApiSchema = (json) => { + fixRolloutDeviceSelection(json); + fixDeviceSystemInfo(json); +}; + +async function main() { + const openApiYaml = await fetch( + 'https://raw.githubusercontent.com/flightctl/flightctl/main/api/v1alpha1/openapi.yaml', + ); + const yamlString = await openApiYaml.text(); + + const jsonSchema = YAML.load(yamlString); + fixOpenApiSchema(jsonSchema); + + await createClient(getConfig(jsonSchema)); +} + +main(); diff --git a/libs/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx b/libs/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx index b61547cc1..e87795855 100644 --- a/libs/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +++ b/libs/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx @@ -191,7 +191,7 @@ const DeviceDetailsPage = ({ children, hideTerminal }: DeviceDetailsPageProps) = element={} /> {!hideTerminal && canOpenTerminal && } />} - } /> + } /> )} diff --git a/libs/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx b/libs/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx index 0a3fccf49..111662e3c 100644 --- a/libs/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +++ b/libs/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx @@ -202,10 +202,10 @@ const ConfigWithRepositoryTemplateForm = ({ )} - {repoType === RepoSpecType.GIT && ( + {repoType === RepoSpecType.Git && ( )} - {repoType === RepoSpecType.HTTP && ( + {repoType === RepoSpecType.Http && ( } {(type === ConfigType.GIT || type === ConfigType.HTTP) && ( ( @@ -22,8 +21,7 @@ const EventItem = ({ event }: { event: DisplayEvent }) => { return ( - {event.type === Event.type.NORMAL ? : }{' '} - {event.reasonText} + {event.type === 'Normal' ? : } {event.reasonText} {event.message && {event.message}} diff --git a/libs/ui-components/src/components/Events/EventsCard.tsx b/libs/ui-components/src/components/Events/EventsCard.tsx index 8c5c01fa0..53ce4e6c8 100644 --- a/libs/ui-components/src/components/Events/EventsCard.tsx +++ b/libs/ui-components/src/components/Events/EventsCard.tsx @@ -31,7 +31,7 @@ import './EventsCard.css'; type EventListProps = { kind: ResourceKind; objId: string; - type?: Event.type; + type?: Event['type']; }; const EventEmptyState = ({ hasFilters }: { hasFilters: boolean }) => { @@ -75,7 +75,7 @@ const EventList = ({ events }: { events: DisplayEvent[] }) => { ); }; -const EventsCard = ({ kind, objId, type = Event.type.WARNING }: EventListProps) => { +const EventsCard = ({ kind, objId, type = 'Warning' }: EventListProps) => { const { t } = useTranslation(); const [selectedType, setSelectedType] = React.useState(type); @@ -98,7 +98,7 @@ const EventsCard = ({ kind, objId, type = Event.type.WARNING }: EventListProps) if (isLoading && !events) { content = ; } else if (!isLoading && events?.length === 0) { - content = ; + content = ; } else { content = ; } @@ -135,14 +135,14 @@ const EventsCard = ({ kind, objId, type = Event.type.WARNING }: EventListProps) setIsTypeOpen((open) => !open); }} > - {selectedType === 'all' ? t('All types') : selectedType} + {selectedType === 'All' ? t('All types') : selectedType} )} > - {t('All types')} - {t('Normal')} - {t('Warning')} + {t('All types')} + {t('Normal')} + {t('Warning')} diff --git a/libs/ui-components/src/components/Events/useEvents.ts b/libs/ui-components/src/components/Events/useEvents.ts index 46efaa196..96c1873db 100644 --- a/libs/ui-components/src/components/Events/useEvents.ts +++ b/libs/ui-components/src/components/Events/useEvents.ts @@ -9,11 +9,11 @@ import * as queryUtils from '../../utils/query'; const getTimeout = (kind?: ResourceKind) => { switch (kind) { - case ResourceKind.DEVICE: + case ResourceKind.Device: return 180000; // 3 minutes - case ResourceKind.FLEET: + case ResourceKind.Fleet: return 300000; // 5 minutes - case ResourceKind.REPOSITORY: + case ResourceKind.Repository: default: return 600000; // 10 minutes } @@ -27,7 +27,7 @@ type UseEventsResult = [ number, // Last update timestamp ]; -export type SelectableEventType = Event.type | 'all'; +export type SelectableEventType = Event['type'] | 'All'; // Reduced Event object. All fields should be ready to be displayed in the UI. export type DisplayEvent = Pick & { @@ -40,80 +40,80 @@ export type EventSearchCriteria = Partial & { type: SelectableEventType; }; -const getEventReasonTitles = (t: TFunction, kindType: string): Record => { +const getEventReasonTitles = (t: TFunction, kindType: string): Record => { const params = { resourceType: kindType }; return { // Generic resource events - [Event.reason.RESOURCE_CREATED]: t('{{ resourceType }} was created successfully', params), - [Event.reason.RESOURCE_CREATION_FAILED]: t('{{ resourceType }} could not be created', params), - [Event.reason.RESOURCE_DELETED]: t('{{ resourceType }} was deleted successfully', params), - [Event.reason.RESOURCE_DELETION_FAILED]: t('{{ resourceType }} could not be deleted', params), - [Event.reason.RESOURCE_UPDATED]: t('{{ resourceType }} was updated successfully', params), - [Event.reason.RESOURCE_UPDATE_FAILED]: t('{{ resourceType }} could not be updated', params), - [Event.reason.SYSTEM_RESTORED]: t('The system was restored from a backup'), + ResourceCreated: t('{{ resourceType }} was created successfully', params), + ResourceCreationFailed: t('{{ resourceType }} could not be created', params), + ResourceDeleted: t('{{ resourceType }} was deleted successfully', params), + ResourceDeletionFailed: t('{{ resourceType }} could not be deleted', params), + ResourceUpdated: t('{{ resourceType }} was updated successfully', params), + ResourceUpdateFailed: t('{{ resourceType }} could not be updated', params), + SystemRestored: t('The system was restored from a backup'), // Device events - [Event.reason.DEVICE_DECOMMISSIONED]: t('Device decommissioned successfully'), - [Event.reason.DEVICE_DECOMMISSION_FAILED]: t('Device could not be decommissioned'), - [Event.reason.DEVICE_CPUNORMAL]: t('CPU utilization has returned to normal'), - [Event.reason.DEVICE_CPUWARNING]: t('CPU utilization has reached a warning level'), - [Event.reason.DEVICE_CPUCRITICAL]: t('CPU utilization has reached a critical level'), - [Event.reason.DEVICE_MEMORY_NORMAL]: t('Memory utilization has returned to normal'), - [Event.reason.DEVICE_MEMORY_WARNING]: t('Memory utilization has reached a warning level'), - [Event.reason.DEVICE_MEMORY_CRITICAL]: t('Memory utilization has reached a critical level'), - [Event.reason.DEVICE_DISK_NORMAL]: t('Disk utilization has returned to normal'), - [Event.reason.DEVICE_DISK_WARNING]: t('Disk utilization has reached a warning level'), - [Event.reason.DEVICE_DISK_CRITICAL]: t('Disk utilization has reached a critical level'), - [Event.reason.DEVICE_APPLICATION_HEALTHY]: t('All application workloads are healthy'), - [Event.reason.DEVICE_APPLICATION_DEGRADED]: t('Some applications workloads are degraded'), - [Event.reason.DEVICE_APPLICATION_ERROR]: t('Some application workloads are in error state'), - [Event.reason.DEVICE_CONNECTED]: t('Device reconnected'), - [Event.reason.DEVICE_DISCONNECTED]: t('Device is disconnected'), - [Event.reason.DEVICE_IS_REBOOTING]: t('Device is rebooting'), - [Event.reason.DEVICE_CONTENT_UP_TO_DATE]: t('Device returned to being up-to-date'), - [Event.reason.DEVICE_CONTENT_UPDATING]: t('Device is updating'), - [Event.reason.DEVICE_CONTENT_OUT_OF_DATE]: t('Device is out-of-date'), - [Event.reason.DEVICE_UPDATE_FAILED]: t('Device update failed'), - [Event.reason.DEVICE_MULTIPLE_OWNERS_DETECTED]: t('Detected device ownership conflict'), - [Event.reason.DEVICE_MULTIPLE_OWNERS_RESOLVED]: t('Device ownership conflict has been resolved'), - [Event.reason.DEVICE_SPEC_VALID]: t('Device specification has returned to a valid state'), - [Event.reason.DEVICE_SPEC_INVALID]: t('Device specification is invalid'), - [Event.reason.DEVICE_CONFLICT_PAUSED]: t('Device is paused after database restore'), - [Event.reason.DEVICE_CONFLICT_RESOLVED]: t('Device conflict has been resolved'), + DeviceDecommissioned: t('Device decommissioned successfully'), + DeviceDecommissionFailed: t('Device could not be decommissioned'), + DeviceCPUNormal: t('CPU utilization has returned to normal'), + DeviceCPUWarning: t('CPU utilization has reached a warning level'), + DeviceCPUCritical: t('CPU utilization has reached a critical level'), + DeviceMemoryNormal: t('Memory utilization has returned to normal'), + DeviceMemoryWarning: t('Memory utilization has reached a warning level'), + DeviceMemoryCritical: t('Memory utilization has reached a critical level'), + DeviceDiskNormal: t('Disk utilization has returned to normal'), + DeviceDiskWarning: t('Disk utilization has reached a warning level'), + DeviceDiskCritical: t('Disk utilization has reached a critical level'), + DeviceApplicationHealthy: t('All application workloads are healthy'), + DeviceApplicationDegraded: t('Some applications workloads are degraded'), + DeviceApplicationError: t('Some application workloads are in error state'), + DeviceConnected: t('Device reconnected'), + DeviceDisconnected: t('Device is disconnected'), + DeviceIsRebooting: t('Device is rebooting'), + DeviceContentUpToDate: t('Device returned to being up-to-date'), + DeviceContentUpdating: t('Device is updating'), + DeviceContentOutOfDate: t('Device is out-of-date'), + DeviceUpdateFailed: t('Device update failed'), + DeviceMultipleOwnersDetected: t('Detected device ownership conflict'), + DeviceMultipleOwnersResolved: t('Device ownership conflict has been resolved'), + DeviceSpecValid: t('Device specification has returned to a valid state'), + DeviceSpecInvalid: t('Device specification is invalid'), + DeviceConflictPaused: t('Device is paused after database restore'), + DeviceConflictResolved: t('Device conflict has been resolved'), // Enrollment request events - [Event.reason.ENROLLMENT_REQUEST_APPROVED]: t('Enrollment request was approved'), - [Event.reason.ENROLLMENT_REQUEST_APPROVAL_FAILED]: t('Enrollment request approval failed'), + EnrollmentRequestApproved: t('Enrollment request was approved'), + EnrollmentRequestApprovalFailed: t('Enrollment request approval failed'), // Internal task events - [Event.reason.INTERNAL_TASK_FAILED]: t('Internal task failed'), - [Event.reason.INTERNAL_TASK_PERMANENTLY_FAILED]: t('Internal task permanently failed'), + InternalTaskFailed: t('Internal task failed'), + InternalTaskPermanentlyFailed: t('Internal task permanently failed'), // Repository events - [Event.reason.REPOSITORY_ACCESSIBLE]: t('Repository is accessible'), - [Event.reason.REPOSITORY_INACCESSIBLE]: t('Repository is inaccessible'), - [Event.reason.REFERENCED_REPOSITORY_UPDATED]: t('Referenced repository was updated'), + RepositoryAccessible: t('Repository is accessible'), + RepositoryInaccessible: t('Repository is inaccessible'), + ReferencedRepositoryUpdated: t('Referenced repository was updated'), // Fleet events - [Event.reason.FLEET_VALID]: t('Fleet specification is valid'), - [Event.reason.FLEET_INVALID]: t('Fleet specification is invalid'), - [Event.reason.FLEET_ROLLOUT_STARTED]: t('Fleet rollout started'), - [Event.reason.FLEET_ROLLOUT_CREATED]: t('Fleet rollout created'), - [Event.reason.FLEET_ROLLOUT_FAILED]: t('Fleet rollout failed'), - [Event.reason.FLEET_ROLLOUT_COMPLETED]: t('Fleet rollout completed'), - [Event.reason.FLEET_ROLLOUT_BATCH_DISPATCHED]: t('Fleet rollout batch dispatched'), - [Event.reason.FLEET_ROLLOUT_DEVICE_SELECTED]: t('Fleet rollout device selected'), - [Event.reason.FLEET_ROLLOUT_BATCH_COMPLETED]: t('Fleet rollout batch completed'), + FleetValid: t('Fleet specification is valid'), + FleetInvalid: t('Fleet specification is invalid'), + FleetRolloutStarted: t('Fleet rollout started'), + FleetRolloutCreated: t('Fleet rollout created'), + FleetRolloutFailed: t('Fleet rollout failed'), + FleetRolloutCompleted: t('Fleet rollout completed'), + FleetRolloutBatchDispatched: t('Fleet rollout batch dispatched'), + FleetRolloutDeviceSelected: t('Fleet rollout device selected'), + FleetRolloutBatchCompleted: t('Fleet rollout batch completed'), // Resource sync events - [Event.reason.RESOURCE_SYNC_SYNCED]: t('Resourcesync synchronization completed', params), - [Event.reason.RESOURCE_SYNC_SYNC_FAILED]: t('Resourcesync synchronization failed', params), - [Event.reason.RESOURCE_SYNC_PARSED]: t('Resourcesync parsed successfully', params), - [Event.reason.RESOURCE_SYNC_PARSING_FAILED]: t('Resourcesync parsing failed', params), - [Event.reason.RESOURCE_SYNC_ACCESSIBLE]: t('Resourcesync is accessible', params), - [Event.reason.RESOURCE_SYNC_INACCESSIBLE]: t('Resourcesync is not accessible', params), - [Event.reason.RESOURCE_SYNC_COMMIT_DETECTED]: t('Resourcesync new commit detected', params), + ResourceSyncSynced: t('Resourcesync synchronization completed', params), + ResourceSyncSyncFailed: t('Resourcesync synchronization failed', params), + ResourceSyncParsed: t('Resourcesync parsed successfully', params), + ResourceSyncParsingFailed: t('Resourcesync parsing failed', params), + ResourceSyncAccessible: t('Resourcesync is accessible', params), + ResourceSyncInaccessible: t('Resourcesync is not accessible', params), + ResourceSyncCommitDetected: t('Resourcesync new commit detected', params), }; }; -const redundantMessageReasons = [ - Event.reason.RESOURCE_CREATED, // created successfully - Event.reason.RESOURCE_UPDATED, // updated successfully - Event.reason.RESOURCE_DELETED, // deleted successfully +const redundantMessageReasons: Event['reason'][] = [ + 'ResourceCreated', // created successfully + 'ResourceUpdated', // updated successfully + 'ResourceDeleted', // deleted successfully ]; const displayEventMapper = (event: Event, reasonTxt: string): DisplayEvent => ({ @@ -135,7 +135,7 @@ const buildEndpoint = (criteria: EventSearchCriteria) => { if (criteria.name) { queryUtils.addQueryConditions(fieldSelectors, 'involvedObject.name', [criteria.name]); } - if (criteria.type !== 'all') { + if (criteria.type !== 'All') { queryUtils.addQueryConditions(fieldSelectors, 'type', [criteria.type]); } diff --git a/libs/ui-components/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx b/libs/ui-components/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx index 512bd1c31..1b44cdb66 100644 --- a/libs/ui-components/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +++ b/libs/ui-components/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx @@ -92,7 +92,7 @@ const FleetDetailsContent = ({ fleet }: { fleet: Fleet }) => { )} - + ); diff --git a/libs/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx b/libs/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx index 33e5e7682..faa300948 100644 --- a/libs/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +++ b/libs/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx @@ -4,9 +4,9 @@ import { Link, ROUTE } from '../../../hooks/useNavigate'; import WithTooltip from '../../common/WithTooltip'; import { useTranslation } from '../../../hooks/useTranslation'; -const rsOwnerRegex = /^ResourceSync\/(?.*)$/; +const rsOwnerRegex = /^ResourceSync\/(.*)$/; -export const getOwnerName = (owner: string | undefined) => rsOwnerRegex.exec(owner || '')?.groups?.rsName; +export const getOwnerName = (owner: string | undefined) => rsOwnerRegex.exec(owner || '')?.[1]; export const RSLink = ({ rsName }: { rsName: string }) => (
diff --git a/libs/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx b/libs/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx index 4cd2e01af..bc4564c8c 100644 --- a/libs/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +++ b/libs/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx @@ -103,7 +103,7 @@ const ImportFleetWizard = () => { endpoint: 'repositories', }); - const gitRepositories = (repoList?.items || []).filter((repo) => repo.spec.type === RepoSpecType.GIT); + const gitRepositories = (repoList?.items || []).filter((repo) => repo.spec.type === RepoSpecType.Git); let body: React.ReactNode; @@ -122,7 +122,7 @@ const ImportFleetWizard = () => { } else { const repoInitValues = getInitValues({ options: { - allowedRepoTypes: [RepoSpecType.GIT], + allowedRepoTypes: [RepoSpecType.Git], showRepoTypes: false, }, }); diff --git a/libs/ui-components/src/components/OverviewPage/Cards/Alerts/AlertsCard.tsx b/libs/ui-components/src/components/OverviewPage/Cards/Alerts/AlertsCard.tsx index 7d9da0a06..554ea2da1 100644 --- a/libs/ui-components/src/components/OverviewPage/Cards/Alerts/AlertsCard.tsx +++ b/libs/ui-components/src/components/OverviewPage/Cards/Alerts/AlertsCard.tsx @@ -14,7 +14,7 @@ import { import { TFunction } from 'react-i18next'; import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon'; -import { Event, ResourceKind } from '@flightctl/types'; +import { ResourceKind } from '@flightctl/types'; import { AlertManagerAlert } from '../../../../types/extraTypes'; import { useFetchPeriodically } from '../../../../hooks/useFetchPeriodically'; import { useTranslation } from '../../../../hooks/useTranslation'; @@ -28,91 +28,91 @@ const ALERTS_TIMEOUT = 20000; // 20 seconds // Define only the Event.reason values that correspond to alerts type AlertEventReason = - | Event.reason.DEVICE_APPLICATION_DEGRADED - | Event.reason.DEVICE_APPLICATION_ERROR - | Event.reason.DEVICE_APPLICATION_HEALTHY - | Event.reason.DEVICE_CPUCRITICAL - | Event.reason.DEVICE_CPUNORMAL - | Event.reason.DEVICE_CPUWARNING - | Event.reason.DEVICE_MEMORY_CRITICAL - | Event.reason.DEVICE_MEMORY_NORMAL - | Event.reason.DEVICE_MEMORY_WARNING - | Event.reason.DEVICE_DISK_CRITICAL - | Event.reason.DEVICE_DISK_NORMAL - | Event.reason.DEVICE_DISK_WARNING - | Event.reason.DEVICE_CONNECTED - | Event.reason.DEVICE_DISCONNECTED - | Event.reason.RESOURCE_DELETED - | Event.reason.DEVICE_DECOMMISSIONED; + | 'DeviceApplicationDegraded' + | 'DeviceApplicationError' + | 'DeviceApplicationHealthy' + | 'DeviceCPUCritical' + | 'DeviceCPUNormal' + | 'DeviceCPUWarning' + | 'DeviceMemoryCritical' + | 'DeviceMemoryNormal' + | 'DeviceMemoryWarning' + | 'DeviceDiskCritical' + | 'DeviceDiskNormal' + | 'DeviceDiskWarning' + | 'DeviceConnected' + | 'DeviceDisconnected' + | 'ResourceDeleted' + | 'DeviceDecommissioned'; // Alert types that are processed by the alert exporter const getAlertTitles = (t: (key: string) => string): Record => ({ // Application status alerts - [Event.reason.DEVICE_APPLICATION_DEGRADED]: t('Some application workloads are degraded'), - [Event.reason.DEVICE_APPLICATION_ERROR]: t('Some application workloads are in error state'), - [Event.reason.DEVICE_APPLICATION_HEALTHY]: t('All application workloads are healthy'), + DeviceApplicationDegraded: t('Some application workloads are degraded'), + DeviceApplicationError: t('Some application workloads are in error state'), + DeviceApplicationHealthy: t('All application workloads are healthy'), // CPU alerts - [Event.reason.DEVICE_CPUCRITICAL]: t('CPU utilization has reached a critical level'), - [Event.reason.DEVICE_CPUNORMAL]: t('CPU utilization has returned to normal'), - [Event.reason.DEVICE_CPUWARNING]: t('CPU utilization has reached a warning level'), + DeviceCPUCritical: t('CPU utilization has reached a critical level'), + DeviceCPUNormal: t('CPU utilization has returned to normal'), + DeviceCPUWarning: t('CPU utilization has reached a warning level'), // Memory alerts - [Event.reason.DEVICE_MEMORY_CRITICAL]: t('Memory utilization has reached a critical level'), - [Event.reason.DEVICE_MEMORY_NORMAL]: t('Memory utilization has returned to normal'), - [Event.reason.DEVICE_MEMORY_WARNING]: t('Memory utilization has reached a warning level'), + DeviceMemoryCritical: t('Memory utilization has reached a critical level'), + DeviceMemoryNormal: t('Memory utilization has returned to normal'), + DeviceMemoryWarning: t('Memory utilization has reached a warning level'), // Disk alerts - [Event.reason.DEVICE_DISK_CRITICAL]: t('Disk utilization has reached a critical level'), - [Event.reason.DEVICE_DISK_NORMAL]: t('Disk utilization has returned to normal'), - [Event.reason.DEVICE_DISK_WARNING]: t('Disk utilization has reached a warning level'), + DeviceDiskCritical: t('Disk utilization has reached a critical level'), + DeviceDiskNormal: t('Disk utilization has returned to normal'), + DeviceDiskWarning: t('Disk utilization has reached a warning level'), // Other device-specific alerts - [Event.reason.DEVICE_CONNECTED]: t('Device reconnected'), - [Event.reason.DEVICE_DISCONNECTED]: t('Device is disconnected'), - [Event.reason.DEVICE_DECOMMISSIONED]: t('Device decommissioned successfully'), + DeviceConnected: t('Device reconnected'), + DeviceDisconnected: t('Device is disconnected'), + DeviceDecommissioned: t('Device decommissioned successfully'), // Resource lifecycle alerts - [Event.reason.RESOURCE_DELETED]: t('Resource was deleted successfully'), + ResourceDeleted: t('Resource was deleted successfully'), }); const alertResourceKind: Record = { // Application status alerts - [Event.reason.DEVICE_APPLICATION_DEGRADED]: ResourceKind.DEVICE, - [Event.reason.DEVICE_APPLICATION_ERROR]: ResourceKind.DEVICE, - [Event.reason.DEVICE_APPLICATION_HEALTHY]: ResourceKind.DEVICE, + DeviceApplicationDegraded: ResourceKind.Device, + DeviceApplicationError: ResourceKind.Device, + DeviceApplicationHealthy: ResourceKind.Device, // CPU alerts - [Event.reason.DEVICE_CPUCRITICAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_CPUNORMAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_CPUWARNING]: ResourceKind.DEVICE, + DeviceCPUCritical: ResourceKind.Device, + DeviceCPUNormal: ResourceKind.Device, + DeviceCPUWarning: ResourceKind.Device, // Memory alerts - [Event.reason.DEVICE_MEMORY_CRITICAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_MEMORY_NORMAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_MEMORY_WARNING]: ResourceKind.DEVICE, + DeviceMemoryCritical: ResourceKind.Device, + DeviceMemoryNormal: ResourceKind.Device, + DeviceMemoryWarning: ResourceKind.Device, // Disk alerts - [Event.reason.DEVICE_DISK_CRITICAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_DISK_NORMAL]: ResourceKind.DEVICE, - [Event.reason.DEVICE_DISK_WARNING]: ResourceKind.DEVICE, + DeviceDiskCritical: ResourceKind.Device, + DeviceDiskNormal: ResourceKind.Device, + DeviceDiskWarning: ResourceKind.Device, // Other device-specific alerts - [Event.reason.DEVICE_CONNECTED]: ResourceKind.DEVICE, - [Event.reason.DEVICE_DISCONNECTED]: ResourceKind.DEVICE, - [Event.reason.DEVICE_DECOMMISSIONED]: ResourceKind.DEVICE, + DeviceConnected: ResourceKind.Device, + DeviceDisconnected: ResourceKind.Device, + DeviceDecommissioned: ResourceKind.Device, // Resource lifecycle alerts - [Event.reason.RESOURCE_DELETED]: undefined, + ResourceDeleted: undefined, }; const resourceKindLabel = (t: TFunction, resourceKind: ResourceKind | undefined) => { switch (resourceKind) { case undefined: return t('Resource'); - case ResourceKind.DEVICE: + case ResourceKind.Device: return t('Device'); - case ResourceKind.ENROLLMENT_REQUEST: + case ResourceKind.EnrollmentRequest: return t('Enrollment request'); - case ResourceKind.CERTIFICATE_SIGNING_REQUEST: + case ResourceKind.CertificateSigningRequest: return t('Certificate signing request'); - case ResourceKind.FLEET: + case ResourceKind.Fleet: return t('Fleet'); - case ResourceKind.REPOSITORY: + case ResourceKind.Repository: return t('Repository'); - case ResourceKind.RESOURCE_SYNC: + case ResourceKind.ResourceSync: return t('Resource sync'); - case ResourceKind.TEMPLATE_VERSION: + case ResourceKind.TemplateVersion: return t('Template version'); } }; @@ -165,7 +165,7 @@ const AlertsCard = () => { {kindLabel}{' '} - {resourceKind === ResourceKind.DEVICE ? ( + {resourceKind === ResourceKind.Device ? ( ) : ( alert.labels.resource diff --git a/libs/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx b/libs/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx index 4033fbae8..72eceadc0 100644 --- a/libs/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +++ b/libs/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx @@ -51,7 +51,7 @@ import './CreateRepositoryForm.css'; const AdvancedSection = () => { const { t } = useTranslation(); const { values } = useFormikContext(); - const showConfigTypeRadios = values.repoType === RepoSpecType.GIT; + const showConfigTypeRadios = values.repoType === RepoSpecType.Git; return ( @@ -67,7 +67,7 @@ const AdvancedSection = () => { )} {values.configType === 'http' && ( - {values.repoType === RepoSpecType.HTTP && ( + {values.repoType === RepoSpecType.Http && ( { isDisabled={values.httpConfig?.skipServerVerification} /> - {values.repoType === RepoSpecType.HTTP && ( + {values.repoType === RepoSpecType.Http && ( @@ -152,14 +152,14 @@ const RepositoryType = ({ isEdit }: { isEdit?: boolean }) => { const doChangeRepoType = (toType?: RepoSpecType) => { if (!toType) { - toType = values.repoType === RepoSpecType.GIT ? RepoSpecType.HTTP : RepoSpecType.GIT; + toType = values.repoType === RepoSpecType.Git ? RepoSpecType.Http : RepoSpecType.Git; } - if (toType === RepoSpecType.HTTP) { - void setFieldValue('repoType', RepoSpecType.HTTP); + if (toType === RepoSpecType.Http) { + void setFieldValue('repoType', RepoSpecType.Http); void setFieldValue('configType', 'http'); void setFieldValue('useResourceSyncs', false); } else { - void setFieldValue('repoType', RepoSpecType.GIT); + void setFieldValue('repoType', RepoSpecType.Git); void setFieldValue('httpConfig.token', undefined); } void validateForm(); @@ -181,7 +181,7 @@ const RepositoryType = ({ isEdit }: { isEdit?: boolean }) => { id="git-repo-radio" name="repoType" label={t('Use Git repository')} - checkedValue={RepoSpecType.GIT} + checkedValue={RepoSpecType.Git} onChangeCustom={onRepoTypeChange} noDefaultOnChange isDisabled={isRepoTypeChangeDisabled} @@ -192,7 +192,7 @@ const RepositoryType = ({ isEdit }: { isEdit?: boolean }) => { id="http-repo-radio" name="repoType" label={t('Use HTTP service')} - checkedValue={RepoSpecType.HTTP} + checkedValue={RepoSpecType.Http} onChangeCustom={onRepoTypeChange} noDefaultOnChange isDisabled={isRepoTypeChangeDisabled} @@ -273,7 +273,7 @@ const CreateRepositoryFormContent = ({ isEdit, isReadOnly, onClose, children }: const [canCreateRS] = useAccessReview(RESOURCE.RESOURCE_SYNC, VERB.CREATE); - const showResourceSyncs = values.canUseResourceSyncs && values.repoType === RepoSpecType.GIT; + const showResourceSyncs = values.canUseResourceSyncs && values.repoType === RepoSpecType.Git; return (
diff --git a/libs/ui-components/src/components/Repository/CreateRepository/utils.ts b/libs/ui-components/src/components/Repository/CreateRepository/utils.ts index d92d4806c..15bc9aaad 100644 --- a/libs/ui-components/src/components/Repository/CreateRepository/utils.ts +++ b/libs/ui-components/src/components/Repository/CreateRepository/utils.ts @@ -46,7 +46,7 @@ export const getInitValues = ({ const useRSs = options?.canUseResourceSyncs ?? true; if (!repository) { - const selectedRepoType = options?.allowedRepoTypes?.length === 1 ? options.allowedRepoTypes[0] : RepoSpecType.GIT; + const selectedRepoType = options?.allowedRepoTypes?.length === 1 ? options.allowedRepoTypes[0] : RepoSpecType.Git; return { exists: false, @@ -205,7 +205,7 @@ export const getRepositoryPatches = (values: RepositoryFormValues, repository: R } else { appendJSONPatch({ patches, - newValue: values.repoType === RepoSpecType.HTTP ? values.validationSuffix : undefined, + newValue: values.repoType === RepoSpecType.Http ? values.validationSuffix : undefined, originalValue: repository.spec.validationSuffix, path: '/spec/validationSuffix', }); @@ -434,7 +434,7 @@ export const repositorySchema = return Yup.object({ name: validKubernetesDnsSubdomain(t, { isRequired: !repository }), url: Yup.string().when('repoType', { - is: (repoType: RepoSpecType) => repoType === RepoSpecType.GIT, + is: (repoType: RepoSpecType) => repoType === RepoSpecType.Git, then: () => Yup.string() .matches( @@ -508,7 +508,7 @@ export const getRepository = (values: Omit[]): Promise => { const results = await Promise.allSettled(promises); - const failedPromises = results.filter((r) => r.status === 'rejected') as PromiseRejectedResult[]; + const failedPromises = results.filter((r) => r.status === 'rejected'); return failedPromises.map((fp) => getErrorMessage(fp.reason)); }; diff --git a/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx b/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx index 3a21e9fbe..804d149d8 100644 --- a/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +++ b/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx @@ -89,7 +89,7 @@ const RepositoryDetails = () => { - {canListRS && repoDetails.spec.type !== RepoSpecType.HTTP && ( + {canListRS && repoDetails.spec.type !== RepoSpecType.Http && ( @@ -98,7 +98,7 @@ const RepositoryDetails = () => { )} - + } diff --git a/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx b/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx index ccf33a8b0..a52f862ed 100644 --- a/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx +++ b/libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx @@ -60,7 +60,7 @@ const DetailsTab = ({ repoDetails }: { repoDetails: Repository }) => { {t('Url')} - {repoDetails?.spec.type === RepoSpecType.HTTP ? ( + {repoDetails?.spec.type === RepoSpecType.Http ? ( ) : ( @@ -70,7 +70,7 @@ const DetailsTab = ({ repoDetails }: { repoDetails: Repository }) => { {t('Type')} - {repoDetails?.spec.type === RepoSpecType.HTTP ? t('HTTP service') : t('Git repository')} + {repoDetails?.spec.type === RepoSpecType.Http ? t('HTTP service') : t('Git repository')} diff --git a/libs/ui-components/src/components/Repository/RepositoryList.tsx b/libs/ui-components/src/components/Repository/RepositoryList.tsx index c38ac4b39..e5119bdf7 100644 --- a/libs/ui-components/src/components/Repository/RepositoryList.tsx +++ b/libs/ui-components/src/components/Repository/RepositoryList.tsx @@ -132,7 +132,7 @@ const RepositoryTableRow = ({ - {repository.spec.type === RepoSpecType.HTTP ? t('HTTP service') : t('Git repository')} + {repository.spec.type === RepoSpecType.Http ? t('HTTP service') : t('Git repository')} {repository.spec.url || '-'} diff --git a/libs/ui-components/src/hooks/useDeviceSpecSystemInfo.tsx b/libs/ui-components/src/hooks/useDeviceSpecSystemInfo.tsx index 4549bbed2..274199198 100644 --- a/libs/ui-components/src/hooks/useDeviceSpecSystemInfo.tsx +++ b/libs/ui-components/src/hooks/useDeviceSpecSystemInfo.tsx @@ -1,18 +1,28 @@ import React from 'react'; import { TFunction } from 'react-i18next'; - -import { CustomDeviceInfo, DeviceSystemInfo } from '@flightctl/types'; - -// The API definition doesn't handle "customInfo" correctly -export type FixedDeviceSystemInfo = DeviceSystemInfo & { - customInfo?: CustomDeviceInfo; -}; +import { DeviceSystemInfo } from '@flightctl/types'; type SystemInfoEntry = { title: string; value: string; }; +// If somehow the API still returns a "CustomDeviceInfo" map value, we convert it to a string +const safeString = (value: unknown): string => { + if (typeof value === 'string') { + return value; + } + + if (value && typeof value === 'object') { + try { + return JSON.stringify(value, null, 2); + } catch { + return '[Invalid object]'; + } + } + return String(value || ''); +}; + // Converts a camelCase variable into words. Example: "someInfoData" --> "Some info data" // Keeps acronyms together, converted to lowercase. Example: "bootID" --> Boot id const propNameToTitle = (input: string) => { @@ -49,7 +59,7 @@ const getInfoDataKnownKeys = (t: TFunction) => ({ }); export const useDeviceSpecSystemInfo = ( - systemInfo: FixedDeviceSystemInfo | undefined, + systemInfo: DeviceSystemInfo | undefined, t: TFunction, ): { baseInfo: SystemInfoEntry[]; @@ -72,11 +82,11 @@ export const useDeviceSpecSystemInfo = ( case 'distroName': infoDataValue = 'distroVersion' in systemInfo - ? `${systemInfo.distroName} ${systemInfo.distroVersion}` - : systemInfo.distroName; + ? `${safeString(systemInfo.distroName)} ${safeString(systemInfo.distroVersion)}` + : safeString(systemInfo.distroName); break; default: - infoDataValue = systemInfo[infoKey]; + infoDataValue = safeString(systemInfo[infoKey]); } return { @@ -94,7 +104,7 @@ export const useDeviceSpecSystemInfo = ( if (value) { baseInfoList.push({ title: propNameToTitle(infoKey), - value, + value: safeString(value), }); } }); @@ -107,7 +117,7 @@ export const useDeviceSpecSystemInfo = ( if (value) { customInfoList.push({ title: propNameToTitle(customInfoKey), - value, + value: safeString(value), }); } }); diff --git a/libs/ui-components/src/utils/devices.ts b/libs/ui-components/src/utils/devices.ts index ef5dace25..c35260520 100644 --- a/libs/ui-components/src/utils/devices.ts +++ b/libs/ui-components/src/utils/devices.ts @@ -1,11 +1,11 @@ import { Device, DeviceSummaryStatusType, ObjectMeta } from '@flightctl/types'; import { TFunction } from 'react-i18next'; -const deviceFleetRegExp = /^Fleet\/(?.*)$/; +const deviceFleetRegExp = /^Fleet\/(.*)$/; export const getDeviceFleet = (metadata: ObjectMeta) => { const match = deviceFleetRegExp.exec(metadata.owner || ''); - return match?.groups?.fleetName || null; + return match?.[1] || null; }; export const isDeviceEnrolled = (dev: Device) => !dev.spec?.decommissioning?.target; diff --git a/libs/ui-components/src/utils/patch.ts b/libs/ui-components/src/utils/patch.ts index ea2f332d6..84031820f 100644 --- a/libs/ui-components/src/utils/patch.ts +++ b/libs/ui-components/src/utils/patch.ts @@ -4,6 +4,7 @@ import { DisruptionBudget, PatchRequest, RolloutPolicy, + RolloutStrategy, UpdateSchedule, } from '@flightctl/types'; import isNil from 'lodash/isNil'; @@ -109,7 +110,7 @@ const toApiDuration = (minutes: number) => { }; const toApiDeviceSelection = (policyForm: RolloutPolicyForm): BatchSequence => ({ - strategy: 'BatchSequence', + strategy: RolloutStrategy.BatchSequence, sequence: policyForm.batches.map((formBatch) => { return { limit: toApiLimit(formBatch), diff --git a/package-lock.json b/package-lock.json index 973888b67..068da93b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "eslint": "^8.44.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-testing-library": "^6.2.0", "i18next-parser": "6.5.0", "nodemon": "^3.0.3", "prettier": "^3.0.0", @@ -308,7 +307,7 @@ "version": "0.0.0", "license": "MIT", "devDependencies": { - "openapi-typescript-codegen": "^0.27.0" + "@hey-api/openapi-ts": "^0.85.1" } }, "libs/ui-components": { @@ -405,26 +404,6 @@ "node": ">=6.0.0" } }, - "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-10.1.0.tgz", - "integrity": "sha512-3e+viyMuXdrcK8v5pvP+SDoAQ77FH6OyRmuK48SZKmdHJRFm87RsSs8qm6kP39a/pOPURByJw+OXzQIqcfmKtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.11", - "@types/lodash.clonedeep": "^4.5.7", - "js-yaml": "^4.1.0", - "lodash.clonedeep": "^4.5.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/philsturgeon" - } - }, "node_modules/@babel/code-frame": { "version": "7.23.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", @@ -2610,6 +2589,142 @@ "resolved": "libs/cypress", "link": true }, + "node_modules/@hey-api/codegen-core": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@hey-api/codegen-core/-/codegen-core-0.2.0.tgz", + "integrity": "sha512-c7VjBy/8ed0EVLNgaeS9Xxams1Tuv/WK/b4xXH3Qr4wjzYeJUtxOcoP8YdwNLavqKP8pGiuctjX2Z1Pwc4jMgQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=22.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + }, + "peerDependencies": { + "typescript": ">=5.5.3" + } + }, + "node_modules/@hey-api/json-schema-ref-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@hey-api/json-schema-ref-parser/-/json-schema-ref-parser-1.2.0.tgz", + "integrity": "sha512-BMnIuhVgNmSudadw1GcTsP18Yk5l8FrYrg/OSYNxz0D2E0vf4D5e4j5nUbuY8MU6p1vp7ev0xrfP6A/NWazkzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.15", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/openapi-ts": { + "version": "0.85.1", + "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.85.1.tgz", + "integrity": "sha512-1pWQzOO/MXiE6BhyIZ88xJAVt82WJ775wNwRKjvQesNdUsFOJm4SKxzKEu/rn6mlpfiDkdxWlEHJ0SrcM2CUXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/codegen-core": "^0.2.0", + "@hey-api/json-schema-ref-parser": "1.2.0", + "ansi-colors": "4.1.3", + "c12": "3.3.0", + "color-support": "1.1.3", + "commander": "13.0.0", + "handlebars": "4.7.8", + "open": "10.1.2", + "semver": "7.7.2" + }, + "bin": { + "openapi-ts": "bin/index.cjs" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=22.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + }, + "peerDependencies": { + "typescript": ">=5.5.3" + } + }, + "node_modules/@hey-api/openapi-ts/node_modules/commander": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-13.0.0.tgz", + "integrity": "sha512-oPYleIY8wmTVzkvQq10AEok6YcTC4sRUBl8F9gVuwchGVUCTbl/vhLTaQqutuuySYOsu8YTgV+OxKc/8Yvx+mQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@hey-api/openapi-ts/node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@hey-api/openapi-ts/node_modules/is-wsl": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@hey-api/openapi-ts/node_modules/open": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz", + "integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@hey-api/openapi-ts/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", @@ -3742,16 +3857,6 @@ "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", "license": "MIT" }, - "node_modules/@types/lodash.clonedeep": { - "version": "4.5.9", - "resolved": "https://registry.npmjs.org/@types/lodash.clonedeep/-/lodash.clonedeep-4.5.9.tgz", - "integrity": "sha512-19429mWC+FyaAhOLzsS8kZUsI+/GmBAQ0HFiCPsKGU+7pBXOQWhyrY6xNNDwUSX8SMZMJvuFVMF9O5dQOlQK9Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/lodash": "*" - } - }, "node_modules/@types/mime": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", @@ -5475,6 +5580,22 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "license": "MIT" }, + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -5485,6 +5606,78 @@ "node": ">= 0.8" } }, + "node_modules/c12": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.0.tgz", + "integrity": "sha512-K9ZkuyeJQeqLEyqldbYLG3wjqwpw4BVaAqvmxq3GYKK0b1A/yYQdIcJxkzAOWcNVWhJpRXAPfZFueekiY/L8Dw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.3", + "confbox": "^0.2.2", + "defu": "^6.1.4", + "dotenv": "^17.2.2", + "exsolve": "^1.0.7", + "giget": "^2.0.0", + "jiti": "^2.5.1", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^2.0.0", + "pkg-types": "^2.3.0", + "rc9": "^2.1.2" + }, + "peerDependencies": { + "magicast": "^0.3.5" + }, + "peerDependenciesMeta": { + "magicast": { + "optional": true + } + } + }, + "node_modules/c12/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/c12/node_modules/dotenv": { + "version": "17.2.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", + "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/c12/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/cachedir": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", @@ -5861,6 +6054,16 @@ "node": ">=8" } }, + "node_modules/citty": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", + "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + } + }, "node_modules/classnames": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", @@ -6180,6 +6383,16 @@ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "license": "MIT" }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, "node_modules/colord": { "version": "2.9.3", "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", @@ -6461,6 +6674,13 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "dev": true, + "license": "MIT" + }, "node_modules/connect-history-api-fallback": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", @@ -6471,6 +6691,16 @@ "node": ">=0.8" } }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, "node_modules/content-disposition": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", @@ -7379,6 +7609,36 @@ "dev": true, "license": "MIT" }, + "node_modules/default-browser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", + "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", + "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", @@ -7435,6 +7695,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", + "dev": true, + "license": "MIT" + }, "node_modules/delaunator": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-4.0.1.tgz", @@ -7470,6 +7737,13 @@ "node": ">= 0.8" } }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "dev": true, + "license": "MIT" + }, "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", @@ -8197,177 +8471,6 @@ "node": "*" } }, - "node_modules/eslint-plugin-testing-library": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-6.2.0.tgz", - "integrity": "sha512-+LCYJU81WF2yQ+Xu4A135CgK8IszcFcyMF4sWkbiu6Oj+Nel0TrkZq/HvDw0/1WuO3dhDQsZA/OpEMGd0NfcUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/utils": "^5.58.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0", - "npm": ">=6" - }, - "peerDependencies": { - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-plugin-testing-library/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -8803,6 +8906,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/exsolve": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.7.tgz", + "integrity": "sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==", + "dev": true, + "license": "MIT" + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -9387,21 +9497,6 @@ "node": ">= 0.6" } }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, "node_modules/fs-merger": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/fs-merger/-/fs-merger-3.2.1.tgz", @@ -9715,6 +9810,24 @@ "assert-plus": "^1.0.0" } }, + "node_modules/giget": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/giget/-/giget-2.0.0.tgz", + "integrity": "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "citty": "^0.1.6", + "consola": "^3.4.0", + "defu": "^6.1.4", + "node-fetch-native": "^1.6.6", + "nypm": "^0.6.0", + "pathe": "^2.0.3" + }, + "bin": { + "giget": "dist/cli.mjs" + } + }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", @@ -11159,6 +11272,41 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container/node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", @@ -11690,6 +11838,16 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -12119,13 +12277,6 @@ "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", "license": "MIT" }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "dev": true, - "license": "MIT" - }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", @@ -12762,6 +12913,13 @@ } } }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "dev": true, + "license": "MIT" + }, "node_modules/node-fetch/node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -12989,6 +13147,26 @@ "url": "https://github.com/fb55/nth-check?sponsor=1" } }, + "node_modules/nypm": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.2.tgz", + "integrity": "sha512-7eM+hpOtrKrBDCh7Ypu2lJ9Z7PNZBdi/8AT3AX8xoCj43BBVHD0hPSTEvMtkMpfs8FCqBGhxB+uToIQimA111g==", + "dev": true, + "license": "MIT", + "dependencies": { + "citty": "^0.1.6", + "consola": "^3.4.2", + "pathe": "^2.0.3", + "pkg-types": "^2.3.0", + "tinyexec": "^1.0.1" + }, + "bin": { + "nypm": "dist/cli.mjs" + }, + "engines": { + "node": "^14.16.0 || >=16.10.0" + } + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -13112,6 +13290,13 @@ "dev": true, "license": "MIT" }, + "node_modules/ohash": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", + "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "dev": true, + "license": "MIT" + }, "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", @@ -13178,46 +13363,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/openapi-typescript-codegen": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/openapi-typescript-codegen/-/openapi-typescript-codegen-0.27.0.tgz", - "integrity": "sha512-QyQEod/vuel3zfnTRC3GgmYsqLPSBzB2OL4ojMYjO9hJmfYW02T+7tbQWEnuqWdhh2KSOBf3L8h59vLStr6vwA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@apidevtools/json-schema-ref-parser": "^10.1.0", - "camelcase": "^6.3.0", - "commander": "^11.1.0", - "fs-extra": "^11.2.0", - "handlebars": "^4.7.8" - }, - "bin": { - "openapi": "bin/index.js" - } - }, - "node_modules/openapi-typescript-codegen/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/openapi-typescript-codegen/node_modules/commander": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", - "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - } - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -13563,6 +13708,13 @@ "node": ">=8" } }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -13576,6 +13728,13 @@ "integrity": "sha512-1DUXlaDJuByP57iKIya2V7IKF9wtE5wHqNB71cI7iX1qVaKrtYH/DeismbbVlbLmDYUn8ZYLUuTSZHY2jgHJcQ==", "license": "MIT" }, + "node_modules/perfect-debounce": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.0.0.tgz", + "integrity": "sha512-fkEH/OBiKrqqI/yIgjR92lMfs2K8105zt/VT6+7eTjNwisrsh47CeIED9z58zI7DfKdH3uHAn25ziRZn3kgAow==", + "dev": true, + "license": "MIT" + }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -13612,6 +13771,18 @@ "node": ">=0.10.0" } }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, "node_modules/postcss": { "version": "8.4.33", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", @@ -14506,6 +14677,17 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/rc9": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz", + "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "defu": "^6.1.4", + "destr": "^2.0.3" + } + }, "node_modules/react": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/react/-/react-17.0.1.tgz", @@ -15218,6 +15400,19 @@ "node": "6.* || >= 7.*" } }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -16677,6 +16872,13 @@ "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", "license": "MIT" }, + "node_modules/tinyexec": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.1.tgz", + "integrity": "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==", + "dev": true, + "license": "MIT" + }, "node_modules/tldts": { "version": "6.1.86", "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz", @@ -17190,29 +17392,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true, - "license": "0BSD" - }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -17358,9 +17537,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 341213b2d..f4777c1b0 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "eslint": "^8.44.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-testing-library": "^6.2.0", "i18next-parser": "6.5.0", "nodemon": "^3.0.3", "prettier": "^3.0.0",