-
Notifications
You must be signed in to change notification settings - Fork 19
feat: release target eligible versions v1 endpoint #1143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -655,6 +655,26 @@ export interface paths { | |
| patch?: never; | ||
| trace?: never; | ||
| }; | ||
| "/v1/workspaces/{workspaceId}/release-targets/{releaseTargetKey}/eligible-versions": { | ||
| parameters: { | ||
| query?: never; | ||
| header?: never; | ||
| path?: never; | ||
| cookie?: never; | ||
| }; | ||
| get?: never; | ||
| put?: never; | ||
| /** | ||
| * List versions eligible for a release target | ||
| * @description Returns deployment versions that currently pass every policy rule for this release target. An optional CEL filter narrows the result; pagination is applied to the filtered set. Use the "version" variable in the CEL expression to access version properties. | ||
| */ | ||
| post: operations["listEligibleVersionsForReleaseTarget"]; | ||
| delete?: never; | ||
| options?: never; | ||
| head?: never; | ||
| patch?: never; | ||
| trace?: never; | ||
| }; | ||
| "/v1/workspaces/{workspaceId}/release-targets/{releaseTargetKey}/jobs": { | ||
| parameters: { | ||
| query?: never; | ||
|
|
@@ -4984,6 +5004,69 @@ export interface operations { | |
| }; | ||
| }; | ||
| }; | ||
| listEligibleVersionsForReleaseTarget: { | ||
| parameters: { | ||
| query?: { | ||
| /** @description Maximum number of items to return */ | ||
| limit?: number; | ||
| /** @description Number of items to skip */ | ||
| offset?: number; | ||
| }; | ||
| header?: never; | ||
| path: { | ||
| /** @description ID of the workspace */ | ||
| workspaceId: string; | ||
| /** @description Key of the release target */ | ||
| releaseTargetKey: string; | ||
| }; | ||
| cookie?: never; | ||
| }; | ||
| requestBody: { | ||
| content: { | ||
| "application/json": { | ||
| /** @description CEL expression to filter eligible versions. Defaults to "true" (all eligible versions). */ | ||
| filter?: string; | ||
| }; | ||
| }; | ||
| }; | ||
|
Comment on lines
+5024
to
+5031
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Request body is modeled as required despite optional filter semantics.
As per coding guidelines, "Do not hand-edit generated OpenAPI output ( 🤖 Prompt for AI Agents |
||
| responses: { | ||
| /** @description Eligible versions for the release target */ | ||
| 200: { | ||
| headers: { | ||
| [name: string]: unknown; | ||
| }; | ||
| content: { | ||
| "application/json": { | ||
| items: components["schemas"]["DeploymentVersion"][]; | ||
| /** @description Maximum number of items returned */ | ||
| limit: number; | ||
| /** @description Number of items skipped */ | ||
| offset: number; | ||
| /** @description Total number of items available */ | ||
| total: number; | ||
| }; | ||
| }; | ||
| }; | ||
| /** @description Invalid request */ | ||
| 400: { | ||
| headers: { | ||
| [name: string]: unknown; | ||
| }; | ||
| content: { | ||
| "application/json": components["schemas"]["ErrorResponse"]; | ||
| }; | ||
| }; | ||
| /** @description Resource not found */ | ||
| 404: { | ||
| headers: { | ||
| [name: string]: unknown; | ||
| }; | ||
| content: { | ||
| "application/json": components["schemas"]["ErrorResponse"]; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| getJobsForReleaseTarget: { | ||
| parameters: { | ||
| query?: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard optional request body before destructuring.
Line 245 can throw a runtime
TypeErrorwhen clients omit the request body. This endpoint supports optional filtering, so body access should be null-safe.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents