Skip to content

EDM-5466: Update API types to latest - #895

Merged
celdrake merged 1 commit into
flightctl:mainfrom
celdrake:EDM-5466-update-api-types
Nov 25, 2026
Merged

celdrake merged 1 commit into
flightctl:mainfrom
celdrake:EDM-5466-update-api-types

Conversation

@celdrake

@celdrake celdrake commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Assisted-by: OpenAI Codex

Affected area: libs/types/ only. The PR changes 45 files: libs/types/index.ts (+34) and 44 model files under libs/types/models/. Total: 859 lines added, 4 removed.

Changes:

  • Adds models for enrollment approval policies, enrollment certificate revocation, device enrollment credential status, firmware, and OneTimeWindow.
  • Modifies existing models: CertificateSigningRequestStatus, ConditionType, DeviceSpec, DeviceStatus, EnrollmentRequestStatus, Event, OciRepoSpec, ResourceKind, ResourceUpdatedDetails, and UpdateSchedule.

Not changed: libs/ui-components/, libs/i18n/, libs/cypress/, apps/standalone/, apps/ocp-plugin/, proxy/, packaging/, and .github/workflows/.

Cross-cutting: Shared type changes can affect both standalone and OCP plugin code. Consumers of the modified models were not checked.

Risk classification: Not available. The labeling criteria for risk:ship, risk:show, and risk:ask were not supplied, so no label was assigned.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5725857 and a915f30.

Files ignored due to path filters: 45

  • libs/i18n/locales/en/translation.json is excluded by !libs/i18n/locales/en/translation.json
  • libs/types/models/CertificateSigningRequestStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/ConditionType.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceEnrollmentCredentialStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicy.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyList.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyPatchOp.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyPatchRequest.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicySpec.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentCertificateRevocation.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentCertificateRevocationRequest.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentRequestStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/Event.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareActualState.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptPhase.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptUpdater.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareBudgetKey.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareCancellationReason.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentState.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentType.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareError.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareObservation.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareObservationBackend.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareOverlayCompatibility.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareOverlaySpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareRecoveryAction.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSelectedArtifact.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSelectedSource.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSupportStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSupportedUpdater.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareUpdaterSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareVersionConstraints.ts is excluded by !libs/types/models/**
  • libs/types/models/OciRepoSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/OneTimeWindow.ts is excluded by !libs/types/models/**
  • libs/types/models/ResourceKind.ts is excluded by !libs/types/models/**
  • libs/types/models/ResourceUpdatedDetails.ts is excluded by !libs/types/models/**
  • libs/types/models/UpdateSchedule.ts is excluded by !libs/types/models/**
Files selected for processing: 3

  • libs/types/index.ts
  • libs/ui-components/src/components/Events/useEvents.ts
  • libs/ui-components/src/components/OverviewPage/Cards/Alerts/AlertsCard.tsx

No actionable comments were generated in the recent review.

Walkthrough

The types index adds exports for device enrollment credential status, enrollment approval and certificate revocation models, firmware models and enums, and the OneTimeWindow model.

Changes

Public Type Exports

Layer / File(s) Summary
Add model and enum exports
libs/types/index.ts
The types index now exports device enrollment, enrollment policy and certificate revocation, firmware, and OneTimeWindow types. It also exports the enrollment patch operation and firmware enums.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested labels: api-types, risk:ask

Merge Risk: Minimal · previous review 57258 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 14

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "EDM-5466: Update API types to latest" matches the changeset, which adds type exports for enrollment approval policies, enrollment certificate revocation, firmware models, and OneTimeWindow …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
No-Hardcoded-Secrets Passed The no-hardcoded-secrets check passes. The PR changes 53 files under libs/types (generated API type models and index.ts exports). I inspected every added line in the reviewed diff range for secret ind…
No-Weak-Crypto Passed The PR (flightctl/flightctl-ui #895, author celdrake) updates generated API type declarations under libs/types. The diff touches libs/types/index.ts and about 50 files under libs/types/models. It adds…
No-Injection-Vectors Passed PR #895 (flightctl/flightctl-ui, head EDM-5466-update-api-types, author celdrake) regenerates the API type definitions in libs/types. The changed-file list covers libs/types/index.ts and about 50 …
Container-Privileges Passed The check is not applicable to this pull request. The changed-file inventory shows only TypeScript API type declarations under libs/types/ (index.ts and libs/types/models/*.ts). The diff adds or…
No-Sensitive-Data-In-Logs Passed The check is applicable, but the PR adds no logging. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 50 files. These are TypeScript API type and model declarations under libs…
Resource-Leaks Passed The resource-leaks check applies to Go files under proxy/. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 50 files, all under libs/types/ (TypeScript API models and index.ts…
Unchecked-Errors Passed The unchecked-errors check applies only to Go files under proxy/. The PR range (refs/coderabbit/pre-merge-check/base..head) changes no Go files and nothing under proxy/. All 50 changed files are TypeS…
Ai-Attribution Passed Summary: The check passes. The PR shows AI assistance, and the attribution uses an accepted trailer. Evidence: - The PR description contains Assisted-by: OpenAI Codex. - The single commit `5…
Generated-Files-Not-Hand-Edited Passed PR #895 (flightctl/flightctl-ui, head EDM-5466-update-api-types, base main, author celdrake) changes 51 files under libs/types/models/** plus the barrel file libs/types/index.ts. No file under libs/ty…
I18n-Compliance Passed The i18n-compliance check applies to user-facing strings in .tsx files. This PR changes no .tsx files. The changed-file inventory (git diff --name-status over the review range) lists only TypeScript…
Full details: Title check

Explanation

The title "EDM-5466: Update API types to latest" matches the changeset, which adds type exports for enrollment approval policies, enrollment certificate revocation, firmware models, and OneTimeWindow in libs/types/index.ts. It names the main change, an API types update, and includes a ticket ID. It does not name the specific new models, but the summary and objectives do not show a separate primary change, so the title is related to the main change.

Full details: No-Hardcoded-Secrets

Explanation

The no-hardcoded-secrets check passes. The PR changes 53 files under libs/types (generated API type models and index.ts exports). I inspected every added line in the reviewed diff range for secret indicators. The added lines contain only: - Type declarations, exports and imports. - Enum string values such as 'add', 'replace', 'Superseded', 'EnrollmentCredentialRevoked' and 'firmware'. These are labels, not credentials. - Doc comments, including descriptions of credentials, such as "without credentials or signed URL parameters" and "Deliver this Repository's existing credentials…". These describe behavior and contain no values. - Field declarations such as value?: any and exceededBudget?: FirmwareBudgetKey. Checks run: - No private key markers (BEGIN RSA/EC/OPENSSH/PRIVATE). - No URLs with embedded userinfo. - No base64-like runs of 32+ characters outside import paths. - No assignments of string literals to api_key, secret, token, or password variables. No hardcoded secret, credential, or sensitive literal was introduced.

Full details: No-Weak-Crypto

Explanation

The PR (flightctl/flightctl-ui #895, author celdrake) updates generated API type declarations under libs/types. The diff touches libs/types/index.ts and about 50 files under libs/types/models. It adds type and enum exports for enrollment approval policies, enrollment certificate revocation, firmware models, and OneTimeWindow. I scanned every added line for the weak-crypto patterns in the check: MD5, SHA1, DES, 3DES, RC4, Blowfish, ECB, cipher, crypto, HMAC, compare, secret, token, and hash. The only hits were: - a specHash: string field with a doc comment, which is a data field and not a hash implementation; - a doc comment on firmware version constraints. The PR adds no cipher or hash algorithm selection, no custom cryptographic code, and no secret or token comparison logic. Certificate-related types are data-shape declarations only. No failure condition of the no-weak-crypto check is introduced.

Full details: No-Injection-Vectors

Explanation

PR #895 (flightctl/flightctl-ui, head EDM-5466-update-api-types, author celdrake) regenerates the API type definitions in libs/types. The changed-file list covers libs/types/index.ts and about 50 files under libs/types/models/. Every added file is a generated TypeScript type, enum, or interface with doc comments. I searched the added lines for eval, exec, innerHTML, system, yaml, and load(. The only case-insensitive hit was the word "Executable" in a doc comment on FirmwareUpdaterSpec. The diff adds no runtime code, no dangerouslySetInnerHTML, no shell or process calls, and no YAML parsing. No injection vector is introduced, so the no-injection-vectors check passes.

Full details: Container-Privileges

Explanation

The check is not applicable to this pull request. The changed-file inventory shows only TypeScript API type declarations under libs/types/ (index.ts and libs/types/models/*.ts). The diff adds or modifies type-only models for enrollment, firmware, and related API objects. It contains no container or Kubernetes manifests (no Pod, Deployment, or securityContext definitions). A search of the diff for the flagged terms (privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, runAsUser, root, allowPrivilegeEscalation, securityContext, capabilities) found only unrelated matches: - capabilities?: DeviceCapabilities, which is a device-feature type reference and not a Linux capability grant. - A doc comment, "Base64 encoded root CA", which refers to a certificate and not to a privileged user. None of these introduce a privileged container, host namespace sharing, a SYS_ADMIN grant, or root execution.

Full details: No-Sensitive-Data-In-Logs

Explanation

The check is applicable, but the PR adds no logging. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 50 files. These are TypeScript API type and model declarations under libs/types, including new Enrollment, Firmware, and OneTimeWindow models and generated type files. A case-insensitive search of every added diff line for console., log, logger, and print returned no matches. No added line writes to any log sink, so no sensitive data (passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data) can reach a log through this change. The provider-reported primary PR is flightctl/flightctl-ui #895, from main, with author login celdrake.

Full details: Resource-Leaks

Explanation

The resource-leaks check applies to Go files under proxy/. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 50 files, all under libs/types/ (TypeScript API models and index.ts). The --name-status filter for *.go returned no changed Go files. No file under proxy/ changed. The check does not apply to this pull request, so no resource-leak condition can be introduced. The PR is by celdrake, from EDM-5466-update-api-types into main, but author identity does not affect this check.

Full details: Unchecked-Errors

Explanation

The unchecked-errors check applies only to Go files under proxy/. The PR range (refs/coderabbit/pre-merge-check/base..head) changes no Go files and nothing under proxy/. All 50 changed files are TypeScript under libs/types/ (index.ts plus generated model files for enrollment approval policy, certificate revocation, firmware, and OneTimeWindow). The check is therefore inapplicable, and no error-handling change can be attributed to this PR.

Full details: Ai-Attribution

Explanation

Summary: The check passes. The PR shows AI assistance, and the attribution uses an accepted trailer. Evidence: - The PR description contains Assisted-by: OpenAI Codex. - The single commit 5725857e4aba23f78546a1799eb6c23e2d0e7c9a ends with the trailer Assisted-by: OpenAI Codex. - The commit has no Co-Authored-By trailer. The check flags Co-Authored-By for AI tools, so nothing is flagged. - The changed-file inventory covers libs/types only. It contains generated API model additions and updates. The attribution check does not depend on these files. Result: AI use is disclosed with an accepted trailer (Assisted-by). No prohibited Co-Authored-By trailer for an AI tool is present.

Full details: Generated-Files-Not-Hand-Edited

Explanation

PR #895 (flightctl/flightctl-ui, head EDM-5466-update-api-types, base main, author celdrake) changes 51 files under libs/types/models/** plus the barrel file libs/types/index.ts. No file under libs/types/alpha/models/** or libs/types/imagebuilder/models/** changed. libs/i18n/locales/en/translation.json is unchanged. Evidence that the model changes come from the generator, not from hand edits: - Every added or modified file under libs/types/models/** starts with the banner "generated using openapi-typescript-codegen -- do no edit". This check found no file without the banner. - The new files match the generator output style: import lines, JSDoc from schema descriptions, and export type or export enum forms. - The modified files change in ways that follow schema updates. Examples: DeviceSpec gains firmware?: FirmwareSpec. ConditionType gains DeviceEnrollmentCredentialRevoked. OneTimeWindow is new. The index.ts exports follow the generator's alphabetical layout. - Removed lines (4 deleted lines in total) are schema-shaped. Examples are an extended updatedFields union and a changed at field. None of them looks like an ad-hoc code edit. Limits: the OpenAPI source is not in the reviewed range, so I could not diff the models against a regenerated output. The check does not cover libs/types/index.ts, and that file has no generator banner. The check does not forbid it. The check is about direct edits to generated files. The evidence shows a regenerated update. No direct hand edit is established.

Full details: I18n-Compliance

Explanation

The i18n-compliance check applies to user-facing strings in .tsx files. This PR changes no .tsx files. The changed-file inventory (git diff --name-status over the review range) lists only TypeScript API type models under libs/types/ (index.ts and libs/types/models/*.ts). These files contain type declarations and enums, not rendered UI strings. A .tsx diff check returned no output, so no new user-facing strings or t() calls were introduced. The check is inapplicable to this change, so it passes.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bc65fb2 and 5725857.

Files ignored due to path filters: 44

  • libs/types/models/CertificateSigningRequestStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/ConditionType.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceEnrollmentCredentialStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/DeviceStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicy.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyList.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyPatchOp.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyPatchRequest.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicySpec.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentApprovalPolicyStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentCertificateRevocation.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentCertificateRevocationRequest.ts is excluded by !libs/types/models/**
  • libs/types/models/EnrollmentRequestStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/Event.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareActualState.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptPhase.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareAttemptUpdater.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareBudgetKey.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareCancellationReason.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentState.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareComponentType.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareError.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareObservation.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareObservationBackend.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareOverlayCompatibility.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareOverlaySpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareRecoveryAction.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSelectedArtifact.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSelectedSource.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSupportStatus.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareSupportedUpdater.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareUpdaterSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/FirmwareVersionConstraints.ts is excluded by !libs/types/models/**
  • libs/types/models/OciRepoSpec.ts is excluded by !libs/types/models/**
  • libs/types/models/OneTimeWindow.ts is excluded by !libs/types/models/**
  • libs/types/models/ResourceKind.ts is excluded by !libs/types/models/**
  • libs/types/models/ResourceUpdatedDetails.ts is excluded by !libs/types/models/**
  • libs/types/models/UpdateSchedule.ts is excluded by !libs/types/models/**
Files selected for processing: 1

  • libs/types/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot added api-types risk:ask Ask: medium+ risk — human review required labels Nov 25, 2026
Assisted-by: OpenAI Codex
@celdrake
celdrake force-pushed the EDM-5466-update-api-types branch from 5725857 to a915f30 Compare November 25, 2026 13:38
@celdrake
celdrake added this pull request to the merge queue Nov 25, 2026
Merged via the queue into flightctl:main with commit bdc0e2b Nov 25, 2026
11 checks passed
@celdrake
celdrake deleted the EDM-5466-update-api-types branch November 25, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-types risk:ask Ask: medium+ risk — human review required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants