Skip to content

feat: sync with upstream API changes 2026-04-20#18

Merged
anneschuth merged 2 commits into
mainfrom
api-sync/2026-04-20-090519
Apr 21, 2026
Merged

feat: sync with upstream API changes 2026-04-20#18
anneschuth merged 2 commits into
mainfrom
api-sync/2026-04-20-090519

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

API Sync - 2026-04-20

Upstream API changes detected and auto-implemented by Claude.

API diff

New Endpoints: None


Deleted Endpoints: None


Modified Endpoints: 6


POST /api/v2/projects/{project_name}/:refresh

  • Responses changed
    • Modified response: 200
      • Content changed
        • Modified media type: application/json
          • Schema changed
            • Properties changed
              • Modified property: result
                • Property 'AnyOf' changed
                  • Modified schema: subschema feat: upstream API monitoring and backwards compatibility #1: RefreshProjectResult
                    • Properties changed
                    • Modified property: processing
                    • Property 'AnyOf' changed
                    • Schemas added: #/components/schemas/ProcessingStatus
                    • Schemas deleted: #/components/schemas/opi__api__task_models__ProcessingStatus

POST /api/v2/projects/{project_name}/:upsert-deployment

  • Responses changed
    • Modified response: 200
      • Content changed
        • Modified media type: application/json
          • Schema changed
            • Properties changed
              • Modified property: result
                • Property 'AnyOf' changed
                  • Modified schema: subschema feat: upstream API monitoring and backwards compatibility #1: UpsertDeploymentResult
                    • Properties changed
                    • Modified property: processing
                    • Property 'AnyOf' changed
                    • Schemas added: #/components/schemas/ProcessingStatus
                    • Schemas deleted: #/components/schemas/opi__api__task_models__ProcessingStatus

POST /api/v2/projects/{project_name}/components

  • Responses changed
    • Modified response: 200
      • Content changed
        • Modified media type: application/json
          • Schema changed
            • Properties changed
              • Modified property: result
                • Property 'AnyOf' changed
                  • Modified schema: subschema feat: upstream API monitoring and backwards compatibility #1: AddComponentResult
                    • Properties changed
                    • Modified property: processing
                    • Property 'AnyOf' changed
                    • Schemas added: #/components/schemas/ProcessingStatus
                    • Schemas deleted: #/components/schemas/opi__api__task_models__ProcessingStatus

POST /api/v2/projects/{project_name}/deployments/{deployment_name}/:refresh

  • Responses changed
    • Modified response: 200
      • Content changed
        • Modified media type: application/json
          • Schema changed
            • Properties changed
              • Modified property: result
                • Property 'AnyOf' changed
                  • Modified schema: subschema feat: upstream API monitoring and backwards compatibility #1: RefreshDeploymentResult
                    • Properties changed
                    • Modified property: processing
                    • Property 'AnyOf' changed
                    • Schemas added: #/components/schemas/ProcessingStatus
                    • Schemas deleted: #/components/schemas/opi__api__task_models__ProcessingStatus

POST /api/v2/projects/{project_name}/deployments/{deployment_name}/components

  • Responses changed
    • Modified response: 200
      • Content changed
        • Modified media type: application/json
          • Schema changed
            • Properties changed
              • Modified property: result
                • Property 'AnyOf' changed
                  • Modified schema: subschema feat: upstream API monitoring and backwards compatibility #1: AddComponentToDeploymentResult
                    • Properties changed
                    • Modified property: processing
                    • Property 'AnyOf' changed
                    • Schemas added: #/components/schemas/ProcessingStatus
                    • Schemas deleted: #/components/schemas/opi__api__task_models__ProcessingStatus

POST /api/v2/projects/{project_name}/services

  • Responses changed
    • Modified response: 200

Coverage

Upstream API: 47 current endpoints
Covered by CLI: 33
Not covered: 14
Deprecated v1: 10 (skipped, CLI uses v2)
Non-API/infra: 0 (skipped)

Uncovered endpoints:
GET /api/federation/health
Federation Health [federation]
GET /api/federation/peers
List Peers [federation]
POST /api/projects/{project_name}/registries/by-credentials
Add Registry By Credentials [v1 (deprecated)]
POST /api/projects/{project_name}/registries/by-secret
Add Registry By Secret [v1 (deprecated)]
POST /api/tasks
Create Task [tasks]
POST /api/v1/backup/namespace/{namespace}/all
Backup Namespace All [backup]
POST /api/v1/backup/pvc/{namespace}/{pvc_name}
Backup Pvc [backup]
POST /api/v1/projects/{project_name}/images/push
Push Image [images]
POST /api/v1/restore/project/{project_name}/deployment/{deployment_name}
Restore Deployment Resource [restore]
GET /api/v1/restore/snapshots/{cluster}/{namespace}/{pvc_name}
List Pvc Snapshots [restore]
POST /api/v2/admin/cleanup/trigger
Trigger Cleanup [admin]
GET /api/v2/admin/marked-for-deletion
List Marked For Deletion [admin]
DELETE /api/v2/admin/marked-for-deletion/{mark_id}
Delete Mark [admin]
POST /api/v2/admin/reconciliation/trigger
Trigger Reconciliation [admin]


Review carefully before merging. All changes should be additive only.

@github-actions github-actions Bot added api-sync Automated API sync changes automated Created by automated workflow labels Apr 20, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR only modifies api/upstream-openapi.json. No CLI commands, client methods, or tests are changed, so backwards compatibility is unaffected.

What changed in the spec:

  • opi__api__task_models__ProcessingStatus is renamed to ProcessingStatus (the richer task-level schema). References across the six modified v2 endpoints are updated accordingly.
  • The old simpler ProcessingStatus (router-level) is renamed to opi__api__router__ProcessingStatus. Two schemas that pointed to it are updated.
  • New ComponentFailureInfo schema added, and component_failures: list[ComponentFailureInfo] | null is added to ProcessingStatus.

No issues with the spec update itself — the rename is consistent and all dangling opi__api__task_models__ProcessingStatus references are resolved.

One minor observation for a future follow-up:

The new component_failures field in ProcessingStatus carries per-component failure details (failure_type, message, logs). The CLI never reads the processing field from result objects (confirmed: no usage in src/), so this data is silently dropped today. When tasks fail, users only see the generic "Task failed" string. Surfacing error / component_failures in error output would improve debuggability, but that is a separate ticket — nothing wrong with this spec-only sync PR.

@anneschuth anneschuth merged commit f49223d into main Apr 21, 2026
9 checks passed
@anneschuth anneschuth deleted the api-sync/2026-04-20-090519 branch April 21, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-sync Automated API sync changes automated Created by automated workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant