Skip to content

Commit b890112

Browse files
author
LaunchDarklyReleaseBot
committed
Version 6.0.1 automatically generated from ld-openapi.
1 parent ed1646b commit b890112

File tree

407 files changed

+2900
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+2900
-599
lines changed

.openapi-generator/FILES

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ docs/CustomRolePost.md
3535
docs/CustomRolePostData.md
3636
docs/CustomRoles.md
3737
docs/CustomRolesApi.md
38+
docs/CustomWorkflowMeta.md
39+
docs/CustomWorkflowStageMeta.md
3840
docs/DataExportDestinationsApi.md
3941
docs/DefaultClientSideAvailabilityPost.md
4042
docs/Defaults.md
@@ -116,6 +118,8 @@ docs/PatchOperation.md
116118
docs/PatchSegmentInstruction.md
117119
docs/PatchSegmentRequest.md
118120
docs/PatchWithComment.md
121+
docs/PermissionGrantInput.md
122+
docs/PermissionGrantRep.md
119123
docs/PostApprovalRequestApplyRequest.md
120124
docs/PostApprovalRequestReviewRequest.md
121125
docs/PostFlagScheduledChangesInput.md
@@ -160,6 +164,11 @@ docs/StatisticsRoot.md
160164
docs/SubjectDataRep.md
161165
docs/Target.md
162166
docs/TargetResourceRep.md
167+
docs/TeamCollectionRep.md
168+
docs/TeamPatchInput.md
169+
docs/TeamPostInput.md
170+
docs/TeamRep.md
171+
docs/TeamsBetaApi.md
163172
docs/TitleRep.md
164173
docs/Token.md
165174
docs/TokenDataRep.md
@@ -210,6 +219,7 @@ src/api/ProjectsApi.js
210219
src/api/RelayProxyConfigurationsApi.js
211220
src/api/ScheduledChangesApi.js
212221
src/api/SegmentsApi.js
222+
src/api/TeamsBetaApi.js
213223
src/api/UserSettingsApi.js
214224
src/api/UsersApi.js
215225
src/api/UsersBetaApi.js
@@ -240,6 +250,8 @@ src/model/CustomRole.js
240250
src/model/CustomRolePost.js
241251
src/model/CustomRolePostData.js
242252
src/model/CustomRoles.js
253+
src/model/CustomWorkflowMeta.js
254+
src/model/CustomWorkflowStageMeta.js
243255
src/model/DefaultClientSideAvailabilityPost.js
244256
src/model/Defaults.js
245257
src/model/DependentFlag.js
@@ -314,6 +326,8 @@ src/model/PatchOperation.js
314326
src/model/PatchSegmentInstruction.js
315327
src/model/PatchSegmentRequest.js
316328
src/model/PatchWithComment.js
329+
src/model/PermissionGrantInput.js
330+
src/model/PermissionGrantRep.js
317331
src/model/PostApprovalRequestApplyRequest.js
318332
src/model/PostApprovalRequestReviewRequest.js
319333
src/model/PostFlagScheduledChangesInput.js
@@ -354,6 +368,10 @@ src/model/StatisticsRoot.js
354368
src/model/SubjectDataRep.js
355369
src/model/Target.js
356370
src/model/TargetResourceRep.js
371+
src/model/TeamCollectionRep.js
372+
src/model/TeamPatchInput.js
373+
src/model/TeamPostInput.js
374+
src/model/TeamRep.js
357375
src/model/TitleRep.js
358376
src/model/Token.js
359377
src/model/TokenDataRep.js
@@ -396,6 +414,7 @@ test/api/ProjectsApi.spec.js
396414
test/api/RelayProxyConfigurationsApi.spec.js
397415
test/api/ScheduledChangesApi.spec.js
398416
test/api/SegmentsApi.spec.js
417+
test/api/TeamsBetaApi.spec.js
399418
test/api/UserSettingsApi.spec.js
400419
test/api/UsersApi.spec.js
401420
test/api/UsersBetaApi.spec.js
@@ -425,6 +444,8 @@ test/model/CustomRole.spec.js
425444
test/model/CustomRolePost.spec.js
426445
test/model/CustomRolePostData.spec.js
427446
test/model/CustomRoles.spec.js
447+
test/model/CustomWorkflowMeta.spec.js
448+
test/model/CustomWorkflowStageMeta.spec.js
428449
test/model/DefaultClientSideAvailabilityPost.spec.js
429450
test/model/Defaults.spec.js
430451
test/model/DependentFlag.spec.js
@@ -499,6 +520,8 @@ test/model/PatchOperation.spec.js
499520
test/model/PatchSegmentInstruction.spec.js
500521
test/model/PatchSegmentRequest.spec.js
501522
test/model/PatchWithComment.spec.js
523+
test/model/PermissionGrantInput.spec.js
524+
test/model/PermissionGrantRep.spec.js
502525
test/model/PostApprovalRequestApplyRequest.spec.js
503526
test/model/PostApprovalRequestReviewRequest.spec.js
504527
test/model/PostFlagScheduledChangesInput.spec.js
@@ -539,6 +562,10 @@ test/model/StatisticsRoot.spec.js
539562
test/model/SubjectDataRep.spec.js
540563
test/model/Target.spec.js
541564
test/model/TargetResourceRep.spec.js
565+
test/model/TeamCollectionRep.spec.js
566+
test/model/TeamPatchInput.spec.js
567+
test/model/TeamPostInput.spec.js
568+
test/model/TeamRep.spec.js
542569
test/model/TitleRep.spec.js
543570
test/model/Token.spec.js
544571
test/model/TokenDataRep.spec.js

README.md

Lines changed: 46 additions & 31 deletions
Large diffs are not rendered by default.

docs/CodeReferencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
[**getExtinctions**](CodeReferencesApi.md#getExtinctions) | **GET** /api/v2/code-refs/extinctions | List extinctions
1212
[**getRepositories**](CodeReferencesApi.md#getRepositories) | **GET** /api/v2/code-refs/repositories | List repositories
1313
[**getRepository**](CodeReferencesApi.md#getRepository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository
14-
[**getRootStatistic**](CodeReferencesApi.md#getRootStatistic) | **GET** /api/v2/code-refs/statistics | Get number of code references for flags
14+
[**getRootStatistic**](CodeReferencesApi.md#getRootStatistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project
1515
[**getStatistics**](CodeReferencesApi.md#getStatistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags
1616
[**patchRepository**](CodeReferencesApi.md#patchRepository) | **PATCH** /api/v2/code-refs/repositories/{repo} | Update repository
1717
[**postExtinction**](CodeReferencesApi.md#postExtinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Create extinction
@@ -407,7 +407,7 @@ Name | Type | Description | Notes
407407

408408
> StatisticsRoot getRootStatistic()
409409
410-
Get number of code references for flags
410+
Get links to code reference repositories for each project
411411

412412
Get links for all projects that have Code References.
413413

docs/CustomWorkflowMeta.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# LaunchDarklyApi.CustomWorkflowMeta
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | | [optional]
8+
**stage** | [**CustomWorkflowStageMeta**](CustomWorkflowStageMeta.md) | | [optional]
9+
10+

docs/CustomWorkflowStageMeta.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# LaunchDarklyApi.CustomWorkflowStageMeta
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**index** | **Number** | | [optional]
8+
**name** | **String** | | [optional]
9+
10+

docs/FeatureFlagsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Name | Type | Description | Notes
537537
538538
Update feature flag
539539

540-
Perform a partial update to a feature
540+
Perform a partial update to a feature flag. ## Using JSON Patches on a feature flag When using the update feature flag endpoint to add individual users to a specific variation, there are two different patch documents, depending on whether users are already being individually targeted for the variation. If a flag variation already has users individually targeted, the path for the JSON Patch operation is: ```json { \"op\": \"add\", \"path\": \"/environments/devint/targets/0/values/-\", \"value\": \"TestClient10\" } ``` If a flag variation does not already have users individually targeted, the path for the JSON Patch operation is: ```json [ { \"op\": \"add\", \"path\": \"/environments/devint/targets/-\", \"value\": { \"variation\": 0, \"values\": [\"TestClient10\"] } } ] ``` ## Using semantic patches on a feature flag To use a [semantic patch](/#section/Updates/Updates-via-semantic-patches) on a feature flag resource, you must include a header in the request. If you call a semantic patch resource without this header, you receive a `400` response as your semantic patch will be interpreted as a JSON patch. Use this header: ``` Content-Type: application/json; domain-model=launchdarkly.semanticpatch ``` The body of a semantic patch request takes the following three properties: 1. comment `string`: (Optional) A description of the update. 1. environmentKey `string`: (Required) The key of the LaunchDarkly environment. 1. instructions `array`: (Required) The action or list of actions to be performed by the update. Each update action in the list must be an object/hash table with a `kind` property, although depending on the action, other properties may be necessary. Read below for more information on the specific supported semantic patch instructions. If any instruction in the patch encounters an error, the error will be returned and the flag will not be changed. In general, instructions will silently do nothing if the flag is already in the state requested by the patch instruction. For example, `removeUserTargets` does nothing when the targets have already been removed). They will generally error if a parameter refers to something that does not exist, like a variation ID that doesn't correspond to a variation on the flag or a rule ID that doesn't belong to a rule on the flag. Other specific error conditions are noted in the instruction descriptions. ### Instructions #### `turnFlagOn` Sets the flag's targeting state to on. #### `turnFlagOff` Sets the flag's targeting state to off. #### `addUserTargets` Adds the user keys in `values` to the individual user targets for the variation specified by `variationId`. Returns an error if this causes the same user key to be targeted in multiple variations. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `removeUserTargets` Removes the user keys in `values` to the individual user targets for the variation specified by `variationId`. Does nothing if the user keys are not targeted. ##### Parameters - `values`: list of user keys - `variationId`: ID of a variation on the flag #### `replaceUserTargets` Completely replaces the existing set of user targeting. All variations must be provided. Example: ```json { \"kind\": \"replaceUserTargets\", \"targets\": [ { \"variationId\": \"variation-1\", \"values\": [\"blah\", \"foo\", \"bar\"] }, { \"variationId\": \"variation-2\", \"values\": [\"abc\", \"def\"] } ] } ``` ##### Parameters - `targets`: a list of user targeting #### `clearUserTargets` Removes all individual user targets from the variation specified by `variationId` ##### Parameters - `variationId`: ID of a variation on the flag #### `addPrerequisite` Adds the flag indicated by `key` with variation `variationId` as a prerequisite to the flag. ##### Parameters - `key`: flag key of another flag - `variationId`: ID of a variation of the flag with key `key` #### `removePrerequisite` Removes the prerequisite indicated by `key`. Does nothing if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite #### `updatePrerequisite` Changes the prerequisite with flag key `key` to the variation indicated by `variationId`. Returns an error if this prerequisite does not exist. ##### Parameters - `key`: flag key of an existing prerequisite - `variationId`: ID of a variation of the flag with key `key` #### `replacePrerequisites` Completely replaces the existing set of prerequisites for a given flag. Example: ```json { \"kind\": \"replacePrerequisites\", \"prerequisites\": [ { \"key\": \"flag-key\", \"variationId\": \"variation-1\" }, { \"key\": \"another-flag\", \"variationId\": \"variation-2\" } ] } ``` ##### Parameters - `prerequisites`: a list of prerequisites #### `addRule` Adds a new rule to the flag with the given `clauses` which serves the variation indicated by `variationId` or the percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. If `beforeRuleId` is set, the rule will be added in the list of rules before the indicated rule. Otherwise, the rule will be added to the end of the list. ##### Parameters - `clauses`: Array of clauses (see `addClauses`) - `beforeRuleId`: Optional ID of a rule in the flag - `variationId`: ID of a variation of the flag - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `removeRule` Removes the targeting rule specified by `ruleId`. Does nothing if the rule does not exist. ##### Parameters - `ruleId`: ID of a rule in the flag #### `replaceRules` Completely replaces the existing rules for a given flag. Example: ```json { \"kind\": \"replaceRules\", \"rules\": [ { \"variationId\": \"variation-1\", \"description\": \"myRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"op\": \"segmentMatch\", \"values\": [\"test\"] } ], \"trackEvents\": true } ] } ``` ##### Parameters - `rules`: a list of rules #### `addClauses` Adds the given clauses to the rule indicated by `ruleId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauses`: Array of clause objects, with `attribute` (string), `op` (string), and `values` (array of strings, numbers, or dates) properties. #### `removeClauses` Removes the clauses specified by `clauseIds` from the rule indicated by `ruleId`. #### Parameters - `ruleId`: ID of a rule in the flag - `clauseIds`: Array of IDs of clauses in the rule #### `updateClause` Replaces the clause indicated by `ruleId` and `clauseId` with `clause`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `clause`: Clause object #### `addValuesToClause` Adds `values` to the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters - `ruleId`: ID of a rule in the flag - `clauseId`: ID of a clause in that rule - `values`: Array of strings #### `removeValuesFromClause` Removes `values` from the values of the clause indicated by `ruleId` and `clauseId`. ##### Parameters `ruleId`: ID of a rule in the flag `clauseId`: ID of a clause in that rule `values`: Array of strings #### `reorderRules` Rearranges the rules to match the order given in `ruleIds`. Will return an error if `ruleIds` does not match the current set of rules on the flag. ##### Parameters - `ruleIds`: Array of IDs of all rules in the flag #### `updateRuleVariationOrRollout` Updates what the rule indicated by `ruleId` serves if its clauses evaluate to true. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters - `ruleId`: ID of a rule in the flag - `variationId`: ID of a variation of the flag or - `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) - `rolloutBucketBy`: Optional user attribute #### `updateFallthroughVariationOrRollout` Updates the flag's fallthrough, which is served if none of the targeting rules match. Can either be a fixed variation indicated by `variationId` or a percent rollout indicated by `rolloutWeights` and `rolloutBucketBy`. ##### Parameters `variationId`: ID of a variation of the flag or `rolloutWeights`: Map of variationId to weight in thousandths of a percent (0-100000) `rolloutBucketBy`: Optional user attribute #### `updateOffVariation` Updates the variation served when the flag's targeting is off to the variation indicated by `variationId`. ##### Parameters `variationId`: ID of a variation of the flag ### Example ```json { \"environmentKey\": \"production\", \"instructions\": [ { \"kind\": \"turnFlagOn\" }, { \"kind\": \"turnFlagOff\" }, { \"kind\": \"addUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId\", \"userId2\"] }, { \"kind\": \"removeUserTargets\", \"variationId\": \"8bfb304e-d516-47e5-8727-e7f798e8992d\", \"values\": [\"userId3\", \"userId4\"] }, { \"kind\": \"updateFallthroughVariationOrRollout\", \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": null }, { \"kind\": \"addRule\", \"clauses\": [ { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } ], \"variationId\": null, \"rolloutWeights\": { \"variationId\": 50000, \"variationId2\": 50000 }, \"rolloutBucketBy\": \"key\" }, { \"kind\": \"removeRule\", \"ruleId\": \"99f12464-a429-40fc-86cc-b27612188955\" }, { \"kind\": \"reorderRules\", \"ruleIds\": [\"2f72974e-de68-4243-8dd3-739582147a1f\", \"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"addClauses\", \"ruleId\": \"1134\", \"clauses\": [ { \"attribute\": \"email\", \"op\": \"in\", \"negate\": false, \"values\": [\"[email protected]\"] } ] }, { \"kind\": \"removeClauses\", \"ruleId\": \"1242529\", \"clauseIds\": [\"8bfb304e-d516-47e5-8727-e7f798e8992d\"] }, { \"kind\": \"updateClause\", \"ruleId\": \"2f72974e-de68-4243-8dd3-739582147a1f\", \"clauseId\": \"309845\", \"clause\": { \"attribute\": \"segmentMatch\", \"negate\": false, \"values\": [\"test-segment\"] } }, { \"kind\": \"updateRuleVariationOrRollout\", \"ruleId\": \"2342\", \"rolloutWeights\": null, \"rolloutBucketBy\": null }, { \"kind\": \"updateOffVariation\", \"variationId\": \"3242453\" }, { \"kind\": \"addPrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"updatePrerequisite\", \"variationId\": \"234235\", \"key\": \"flagKey2\" }, { \"kind\": \"removePrerequisite\", \"key\": \"flagKey\" } ] } ``` ## Using JSON patches on a feature flag If you do not include the header described above, you can use [JSON patch](/#section/Updates/Updates-via-JSON-Patch).
541541

542542
### Example
543543

docs/FlagConfigApprovalRequestResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
2323
**operatingOnId** | **String** | ID of scheduled change to edit or delete | [optional]
2424
**integrationMetadata** | [**IntegrationMetadata**](IntegrationMetadata.md) | | [optional]
2525
**source** | [**CopiedFromEnv**](CopiedFromEnv.md) | | [optional]
26+
**customWorkflowMetaData** | [**CustomWorkflowMeta**](CustomWorkflowMeta.md) | | [optional]
2627

2728

0 commit comments

Comments
 (0)