chore: sync OpenAPI spec with latest production spec#667
Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Open
chore: sync OpenAPI spec with latest production spec#667devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Conversation
Downloads latest spec from https://app.launchdarkly.com/api/v2/openapi.json and regenerates cmd/resources/resource_cmds.go. New operations added (6): - POST /api/v2/projects/{projectKey}/ai-configs/prompt-snippets (postPromptSnippet) - GET /api/v2/projects/{projectKey}/experiments (getExperimentsAnyEnv) - POST /api/v2/auditlog/counts (postAuditLogEntryCounts) - GET /api/v2/usage/observability/metrics (getObservabilityMetricsUsage) - GET /api/v2/usage/sdk-versions/details (getSdkVersionsDetails) - GET /api/v2/usage/vega-ai (getVegaAIUsage) Total operations: 345 -> 351 Co-Authored-By: Ari Salem <asalem@launchdarkly.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Ari Salem <asalem@launchdarkly.com>
ari-launchdarkly
requested changes
Mar 24, 2026
ari-launchdarkly
left a comment
There was a problem hiding this comment.
I'm gonna talk to Devin about why the resource_cmds was updated
ari-launchdarkly
approved these changes
Mar 24, 2026
ari-launchdarkly
left a comment
There was a problem hiding this comment.
Ok, I verified that these two are in fact just autogenerated after running the make openapi-spec-update command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
Closing the spec drift identified in the CLI-vs-Gonfalon gap analysis. The CLI's bundled
ld-openapi.jsonwas behind the current production spec by 6 operations.Describe the solution you've provided
Ran
make openapi-spec-updateto download the latest spec fromhttps://app.launchdarkly.com/api/v2/openapi.jsonand regeneratecmd/resources/resource_cmds.go.New CLI commands generated (6):
get-observability-metrics-usage/api/v2/usage/observability/metricsget-sdk-versions-details/api/v2/usage/sdk-versions/detailsget-vega-ai-usage/api/v2/usage/vega-aicreate-prompt-snippet/api/v2/projects/{projectKey}/ai-configs/prompt-snippetscreate-entry-counts/api/v2/auditlog/countsget-experiments-any-env/api/v2/projects/{projectKey}/experimentsOther spec changes pulled in:
sdk-app-idquery param andsdkAppIdgroup-by dimensionresourceApprovalSettingsalongsideapprovalSettingsversionfield renamed to_version,maintainerobject added to segment schemasExpandedLinkedResourcesAIConfigsandExpandedLinkedResourcesMetricsschemasmetricRegressionThresholdfrom measured rollout examplesExpandedLinkedResourcesAIConfigs,ExpandedLinkedResourcesMetrics, andmetricRegressionThresholdwere removed from the production spec. These are spec-only (the CLI uses the spec for command generation, not schema validation), but worth confirming these removals are intentional upstream.resource_cmds.gois fully auto-generated — changes there should match the spec 1:1; no manual edits were made.sdk-activeendpoint is NOT included — it is only in the hidden spec (ld-openapi-hidden.json) and the public spec endpoint (/api/v2/openapi.json) does not serve it. A separate change would be needed to add it to the CLI.Describe alternatives you've considered
N/A — this is the standard spec sync workflow via
make openapi-spec-update.Additional context
All existing tests pass (
make test). Total operation count: 345 → 351.Link to Devin session: https://app.devin.ai/sessions/8951a04e5c5f46b1915e5d00a281914e
Note
Medium Risk
Primarily auto-generated command metadata updates, but it expands the CLI surface area (new commands/params) and tweaks existing endpoint docs, which can impact users’ scripts and expectations.
Overview
Syncs the generated CLI command definitions in
cmd/resources/resource_cmds.gowith the latest production OpenAPI spec.Adds 6 new operations, including new account-usage endpoints (observability metrics, SDK version details, Vega AI), an AI config prompt-snippet create endpoint, an audit-log counts endpoint, and a project-wide experiments listing endpoint.
Updates several existing commands’ parameters and docs (for example adding
sdk-app-id/sdkAppIdgrouping for service connections usage, expanding experiment docs andanalysisConfigexpansion, and refining views/metrics filtering and descriptions).Written by Cursor Bugbot for commit c94b895. This will update automatically on new commits. Configure here.