Releases: launchdarkly/ld-openapi
Releases · launchdarkly/ld-openapi
16.1.1
[16.1.1] - 2024-05-16
Fixed:
Typescript
- Updated Axios dependency to resolve CVE-2023-45857. launchdarkly/api-client-typescript#9
16.1.0
[16.1.0] - 2024-05-16
Added
- Added optional
notInExperimentVariationId
field toflags
insideiteration
in the request body ofPOST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments
(Create Experiment) - Added optional
notInExperimentVariationId
field inflags
in the request body ofPOST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations
(Create Iteration) - Added
notInExperimentVariationId
field to theflags
object in the response bodies of:POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments
(Create Experiment)POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations
(Create Iteration)PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
(Patch Experiment)GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
(Get Experiment)
- Added HTTP 409 as a possible response status code for
PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
(Patch Experiment)
Typescript
- Updated Axios dependency to resolve CVE-2023-45857. launchdarkly/api-client-typescript#9
Go
- Generate interfaces to make mocking easier in tests. #116
15.1.0
[15.1.0] - 2024-04-03
Added
- Added ReleaseAudience type
- Added Usage endpoints
GET /api/v2/usage/service-connections
GET /api/v2/usage/data-export-events
Changed
-
Added
maintainerId
andmaintainerTeamKey
options to flags create endpoint -
Updated
ReleasePhase
to have type[]ReleaseAudience
instead of[]Audience
forAudiences
field
14.0.0
[14.0.0] - 2023-11-16
Added
- Added Application and Application version endpoints, in beta
- Added
unitOfAnalysis
field to the metric listing rep returned by get all metrics endpoint - Added
lastSeen
field to the metric listing rep returned by get all metrics endpoint - Added
_access
object to the release pipeline rep returned by several endpoints - Added
_links
field to the team summary object returned by several endpoints - Added beta endpoint for getting experimentation units usage
- Added
iterationId
query string parameter to/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/metrics/{metricKey}/results
- Added pagination parameters
limit
andoffset
to/api/v2/segments/{projKey}/{envKey}
- Added
lastModifiedDate
field to response ofGET /api/v2/segments/{projectKey}/{environmentKey}
- Added
sort
to/api/v2/segments/{projKey}/{envKey}
- Added
filter
to/api/v2/segments/{projKey}/{envKey}
- Added
_id
field to the expandedproject
information inTeams
endpoints - Added
purpose
field to theFlagPost
input object - Added
migrationSettings
field to theFlagPost
input object - Added
archived
field toGET /api/v2/projects/{projectKey}/context-kinds
andPUT /api/v2/projects/{projectKey}/context-kinds/{key}
- Marked
items
required inFlagFollowersGetRep
to match API behavior - Added
_flagCount
field toGET /api/v2/segments/{projectKey}/{environmentKey}
- Added
totalEvaluations
field toGET /api/v2/usage/evaluations/{projKey}/{envKey}/{flagKey}
- Added Release pipelines and Releases endpoints, in beta
- Added links in environment representations
- Update
code
andmessage
on error reps to be required to match API behavior - Added
name
field toPhaseInfo
forGET /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}/releases
- Added
unitAggregationType
,analysisType
, andeventDefault
fields toGET /api/v2/metrics/{projectKey}
,GET /api/v2/metrics/{projectKey}/{metricKey}
,POST /api/v2/metrics/{projectKey}
, andPATCH /api/v2/metrics/{projectKey}/{metricKey}
- Marked
items
as required inEnvironmentCollectionRep
to match API behavior - Marked
color
andname
as required inEnvironmentSummaryRep
to match API behavior - Added
@Failure 404
with a value ofMember not found
toPOST /api/v2/members/{id}/teams
- Added beta endpoint to retrieve migration safety issues when updating a migration flag
- Added
migrationSettings
expand parameter toGET /api/v2/flags/{projectKey}
- Added
migrationSettings
expand parameter toGET /api/v2/flags/{projectKey}/{featureFlagKey}
- Added
limit
andoffset
query params toGET /projects/{projKey}/release-pipelines/{pipelineKey}/releases
- Added beta endpoints to create, delete, and list metric groups
- Marked
items
as required onExperimentCollectionRep
to match API behavior - Added
isGroup
andmetrics
fields toDependentMetricOrMetricGroupRep
- Added
isGroup
field toMetricInput
- Added
randomizationUnits
field toMetricInGroupRep
Removed
Changed
- Moved
PATCH /projects/{projKey}/release-pipelines/{pipelineKey}
out of hidden docs - Set
deprecated
property on legacy experimentation operation which has already been deprecated- GET
/api/v2/flags/{projectKey}/{featureFlagKey}/experiments/{environmentKey}/{metricKey}
- GET
- Set
deprecated
onoffset
parameter which has already been deprecated- GET
/api/v2/user-search/{projectKey}
- GET
- Set
deprecated
on flag-related schema properties that have already been deprecated - Moved OAuth Client APIs out of beta
- Updated the response body of
ReviewOutput
to optionally returnserviceTokenId
, omitted when approval reviewer was a member - Updated the response body of
ReviewResponse
to optionally returnserviceTokenId
, omitted when approval reviewer was a member - Updated the response body of
FlagConfigApprovalRequestResponse
to optionally returnappliedByServiceTokenId
, omitted when a member applies an approval - Set
deprecated
property on legacy users endpoints, which are replaced by contexts endpoints- DELETE
/api/v2/users/{projectKey}/{environmentKey}/{userKey}
- GET
/api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}
- GET
/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags
- GET
/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}
- GET
/api/v2/users/{projectKey}/{environmentKey}
- GET
/api/v2/users/{projectKey}/{environmentKey}/{userKey}
- GET
/api/v2/user-attributes/{projectKey}/{environmentKey}
- GET
/api/v2/user-search/{projectKey}/{environmentKey}
- PATCH
/api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}
- PUT
/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}
- DELETE
- Moved Approvals APIs out of beta
- Moved Workflow APIs out of beta
- Moved Workflow template APIs out of beta
- Updated the response body of the
Member
struct to clarify that in thepermissionGrants
, only one ofactions
oractionSet
is required - Updated type of
PrimaryMetric
inIterationRep
- Updated
maintainerId
to be an optional parameter when creating a new experiment - Updated
contextTargets
field for flags endpoints to be required - Renamed
metricWrapper
toMetricWrapper
- Updated type of
Effect
in custom roles tostring
- Added the
expand
query parameter for thegetExperiment
endpoint- GET
/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
- GET
- Updated description and unhid
archived
field onGET /api/v2/projects/{projectKey}/context-kinds
andPUT /api/v2/projects/{projectKey}/context-kinds/{key}
- Updated description for
hideInTargeting
field onGET /api/v2/projects/{projectKey}/context-kinds
andPUT /api/v2/projects/{projectKey}/context-kinds/{key}
- Moved Context Kind APIs out of beta
- Updated response body of GET
/api/v2/flags/{projectKey}/{flagKey}/release
and PATCH/api/v2/flags/{projectKey}/{flagKey}/release
to includeMemberSummary
andTokenSummary
in each phase'scompletedBy
field instead of having flat values. - Renamed
activeReleases
andcompletedReleases
toactiveCount
andtotalCount
forGET /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}/releases
- Updated the response body of
FeatureFlag
andFeatureFlagConfig
to returnmigrationSettings
when callingPATCH /api/v2/flags/{projectKey}/{featureFlagKey}
- Set
deprecated
property onarchived
query param forGET /api/v2/flags/{projectKey}
- Renamed
DependentMetricRep
toDependentMetricOrMetricGroupRep
- Updated the
kind
field inDependentMetricOrMetricGroupRep
to allow enum valuefunnel
, used for metric groups - Renamed
MetricWrapper
toMetricInGroupRep
Bug Fixes
RootResponse
schema was incorrect
13.0.0
[13.0.0] - 2023-04-19
Added
Removed
Changed
- Moved Contexts APIs out of beta
12.1.0
[12.1.0] - 2023-04-12
Added
- Added beta endpoint for server connection minutes usage
- Added
customRoles
expand parameter toGET /api/v2/members
- Added 409 return code information for reset environment keys endpoints
- Added new beta endpoints for approvals
- Updated response bodies for beta approval endpoints
- Added
contextKindTargeted
filter parameter toGET /api/v2/flags/{projectKey}
- Added
contextKindsEvaluated
filter parameter toGET /api/v2/flags/{projectKey}
- Added
evaluation
expand parameter toGET /api/v2/flags/{projectKey}
- Added
evaluation
expand parameter toGET /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}
Removed
Changed
- Updated note for param
memberId
in follow flag endpointsputFlagFollowers
anddeleteFlagFollowers
to reflect the limitation of Reader roles. - Updated the response body of
ExpandableApprovalRequestResponse
to optionally returnenvironments
instead ofenvironment
which is only used in beta APIs
12.0.0
[12.0.0] - 2023-02-27
Added
- Added "Contexts (beta)" and "Context settings (beta)" categories
- Added
StopDate
toExecutionOutput
object - Added support for sorting via query parameter in the
GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows
- Added beta endpoint for updating flag settings for a context
- Added endpoints for retrieving segment membership of a non-
user
context and of a context instance - Added beta endpoint for updating individual targets on Big Segments with non-
user
context kind - Added beta endpoint for getting a list of approval requests
- Added beta endpoint for getting a single approval request
- Added
results
field to the experiment metric results response for contexts that have data slicing enabled - Added
resourceId
andapprovalSettings
fields to the responses forgetApprovalRequest
andgetApprovalRequests
- Added
status
query parameters to thegetWorkflows
beta endpoint - Added beta endpoint for fetching client-side monthly context instance usage
- Added beta endpoint for fetching client-side connection minutes usage
- Added beta endpoint for fetching experimentation units usage
- Added beta endpoint for fetching experimentation keys usage
- Added
experimentalProperties
field to experiment create post body - Added
randomizationUnit
to- the
IterationInput
object - the responses for
getExperiment
,getExperiments
, andcreateIteration
- the
- Added
randomizationUnits
to- the
MetricPost
object - the responses for
getMetric
andgetMetrics
- the
- Added beta endpoint for retrieving experimentation settings for a given project
- Added beta endpoint for updating experimentation settings for a given project
- Added beta endpoints getting experimentation keys usage
Removed
Changed
- Updated title of
getAuditLogEntries
to reflect that audit logs aren't specific to feature flags - Updated operation ID
postApprovalRequest
topostApprovalRequestForFlag
to reflect that it's flag specific. The title has also been updated to reflect this. - Updated operation ID
postApprovalRequestReview
topostApprovalRequestReviewForFlag
to reflect that it's flag specific. The title has also been updated to reflect this. - Updated operation ID
postApprovalRequestApplyRequest
topostApprovalRequestApplyForFlag
to reflect that it's flag specific. The title has also been updated to reflect this. - Updated operation ID
deleteApprovalRequest
todeleteApprovalRequestForFlag
to reflect that it's flag specific. The title has also been updated to reflect this. - Updated to new syntax for filter query param in beta endpoint
getApprovalRequests
. Support for the old syntax is being dropped. See documentation for new syntax. - Updated type of
Links
inFlagConfigApprovalRequestResponse
Bug Fixes
- Fixing
postWorkflow
beta endpointname
isrequired
(previously incorrectly marked as optional)description
isoptional
(previously incorrectly marked as required)
11.0.0
[11.0.0] - 2022-11-21
Added
- Added beta Workflow templates endpoints
- added structs for Flag Reuse to be expanded upon later
- Added
targetingRuleDescription
to experiment iteration flag response - Added
targetingRuleClauses
to experiment iteration flag response - Added
probabilityOfMismatch
to experiment result response - Added
archivedDate
field to experiment response, omitted when experiment is not archived - Added
archivedDate
field to expanded experiment for the Get metric endpoint, omitted when experiment is not archived - Added
lifecycleState
parameter to Get experiments to query by archived and/or active experiments - Added
_idpSynced
parameter toTeam
object - Added beta endpoints for flag defaults
- Added beta endpoint for bulk editing members
- Added beta endpoint for bulk editing teams
- Added
MaintainerTeam
in preparation for teams as flag maintainers (not yet released) - Add beta endpoints for Approval Requests
Removed
Changed
- Updated beta create workflow endpoint to allow for creating a workflow from a template
- In the Experiments endpoints, updated the existing
kind
field in the metric types to only include the allowed enum values (pageview
,click
,custom
) - Get metric
experiments
field is expandable, omitted by default - Get metric
experimentCount
field is expandable, omitted by default - Get metric list
experimentCount
field is expandable, omitted by default - Renamed
ExpiringUserTargetError
toExpiringTargetError
to prepare for expiring context targets - New code reference repositories will set the
defaultBranch
tomain
if you do not specify a value during creation - In repository endpoints,
gitlab
is now a supportedrepoType
- In the flag creation endpoint, updated endpoint to replace applicable
null
values with project-level flag defaults - Renamed
getApprovals
andgetApproval
endpoints togetApprovalsForFlag
andgetApprovalForFlag
respectively
Bug Fixes
- Updated OpenAPI specification to include the missing
sort
query param onGET /projects
- Updated
ResourceIdentifier
from an empty Object to a string type - Updated
UUID
to be a string with formatuuid
10.0.0
[10.0.0] - 2022-07-12
Added
- Support for federal server
https://app.launchdarkly.us
- Teams API out of beta
- New beta OAuth2 Clients API
- New follow flags API
- Added optional
ruleClause
toParameterDefault
object - Added optional
oauthProviders
toMember
object - Added optional
templateKey
toCustomWorkflowInputRep
object - Added optional
notifyTeamKeys
parameter to- create approval
- create approval request to copy flag configurations across environments
- create workflow
Changed
- Changed
StatementRep
toStatement
- Using version 6.0.0 of OpenAPI generator
- Changes to beta experimentation API
- Renamed
StatementRep
toStatement
- List projects has a default limit of 20, added support for filter and sort
- List projects
environment
field is expandable, omitted by default - Get project
environment
field is expandable, omitted by default - Changed
notifyMemberIds
from required to optional for create approval and flag config copy approval requests - In the Approvals endpoints, updated existing fields in response types to only include the allowed enum values:
reviewStatus
andstatus
inFlagConfigApprovalRequestResponse
kind
inReviewResponse
Bug Fixes
- Removed unintentionally exposed optional
variationJsonSchema
fromFeatureFlagBody
- Added missing
variations
toFlagSummary
object - Removed required attribute from fields on the
GET /api/v2/flags/{projectKey}
response that are only shown when the request contains?summary=false
9.0.1
[9.0.1] - 2022-04-29
Changed:
- Changes to Experiments (beta) endpoints