Skip to content

Commit 77db42a

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent 628260b commit 77db42a

File tree

252 files changed

+428
-288
lines changed

Some content is hidden

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

252 files changed

+428
-288
lines changed

.openapi-generator/FILES

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ docs/MemberImportItemRep.md
123123
docs/MemberPermissionGrantSummaryRep.md
124124
docs/MemberSummaryRep.md
125125
docs/MemberTeamSummaryRep.md
126-
docs/MemberTeamsFormPost.md
126+
docs/MemberTeamsPostInput.md
127127
docs/Members.md
128128
docs/MethodNotAllowedErrorRep.md
129129
docs/MetricCollectionRep.md
@@ -376,7 +376,7 @@ src/model/MemberImportItemRep.js
376376
src/model/MemberPermissionGrantSummaryRep.js
377377
src/model/MemberSummaryRep.js
378378
src/model/MemberTeamSummaryRep.js
379-
src/model/MemberTeamsFormPost.js
379+
src/model/MemberTeamsPostInput.js
380380
src/model/Members.js
381381
src/model/MethodNotAllowedErrorRep.js
382382
src/model/MetricCollectionRep.js
@@ -612,7 +612,7 @@ test/model/MemberImportItemRep.spec.js
612612
test/model/MemberPermissionGrantSummaryRep.spec.js
613613
test/model/MemberSummaryRep.spec.js
614614
test/model/MemberTeamSummaryRep.spec.js
615-
test/model/MemberTeamsFormPost.spec.js
615+
test/model/MemberTeamsPostInput.spec.js
616616
test/model/Members.spec.js
617617
test/model/MethodNotAllowedErrorRep.spec.js
618618
test/model/MetricCollectionRep.spec.js

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ If you would like to upgrade your integration to use a new API version, you can
440440
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
441441

442442
- API version: 2.0
443-
- Package version: 7.1.0
443+
- Package version: 7.1.1
444444
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
445445
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
446446

@@ -814,7 +814,7 @@ Class | Method | HTTP request | Description
814814
- [LaunchDarklyApi.MemberPermissionGrantSummaryRep](docs/MemberPermissionGrantSummaryRep.md)
815815
- [LaunchDarklyApi.MemberSummaryRep](docs/MemberSummaryRep.md)
816816
- [LaunchDarklyApi.MemberTeamSummaryRep](docs/MemberTeamSummaryRep.md)
817-
- [LaunchDarklyApi.MemberTeamsFormPost](docs/MemberTeamsFormPost.md)
817+
- [LaunchDarklyApi.MemberTeamsPostInput](docs/MemberTeamsPostInput.md)
818818
- [LaunchDarklyApi.Members](docs/Members.md)
819819
- [LaunchDarklyApi.MethodNotAllowedErrorRep](docs/MethodNotAllowedErrorRep.md)
820820
- [LaunchDarklyApi.MetricCollectionRep](docs/MetricCollectionRep.md)

docs/AccountMembersApi.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ ApiKey.apiKey = 'YOUR API KEY';
195195

196196
let apiInstance = new LaunchDarklyApi.AccountMembersApi();
197197
let id = "id_example"; // String | The member ID
198-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
198+
let patchOperation = [{"op":"add","path":"/role","value":"writer"}]; // [PatchOperation] |
199199
apiInstance.patchMember(id, patchOperation, (error, data, response) => {
200200
if (error) {
201201
console.error(error);
@@ -229,7 +229,7 @@ Name | Type | Description | Notes
229229

230230
## postMemberTeams
231231

232-
> Member postMemberTeams(id, memberTeamsFormPost)
232+
> Member postMemberTeams(id, memberTeamsPostInput)
233233
234234
Add member to teams
235235

@@ -248,8 +248,8 @@ ApiKey.apiKey = 'YOUR API KEY';
248248

249249
let apiInstance = new LaunchDarklyApi.AccountMembersApi();
250250
let id = "id_example"; // String | The member ID
251-
let memberTeamsFormPost = new LaunchDarklyApi.MemberTeamsFormPost(); // MemberTeamsFormPost |
252-
apiInstance.postMemberTeams(id, memberTeamsFormPost, (error, data, response) => {
251+
let memberTeamsPostInput = new LaunchDarklyApi.MemberTeamsPostInput(); // MemberTeamsPostInput |
252+
apiInstance.postMemberTeams(id, memberTeamsPostInput, (error, data, response) => {
253253
if (error) {
254254
console.error(error);
255255
} else {
@@ -264,7 +264,7 @@ apiInstance.postMemberTeams(id, memberTeamsFormPost, (error, data, response) =>
264264
Name | Type | Description | Notes
265265
------------- | ------------- | ------------- | -------------
266266
**id** | **String**| The member ID |
267-
**memberTeamsFormPost** | [**MemberTeamsFormPost**](MemberTeamsFormPost.md)| |
267+
**memberTeamsPostInput** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md)| |
268268

269269
### Return type
270270

docs/CodeReferencesApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ ApiKey.apiKey = 'YOUR API KEY';
530530

531531
let apiInstance = new LaunchDarklyApi.CodeReferencesApi();
532532
let repo = "repo_example"; // String | The repository name
533-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
533+
let patchOperation = [{"op":"replace","path":"/defaultBranch","value":"main"}]; // [PatchOperation] |
534534
apiInstance.patchRepository(repo, patchOperation, (error, data, response) => {
535535
if (error) {
536536
console.error(error);

docs/EnvironmentsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
125125
126126
Update environment
127127

128-
> ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
128+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
129129

130130
### Example
131131

@@ -141,7 +141,7 @@ ApiKey.apiKey = 'YOUR API KEY';
141141
let apiInstance = new LaunchDarklyApi.EnvironmentsApi();
142142
let projectKey = "projectKey_example"; // String | The project key
143143
let environmentKey = "environmentKey_example"; // String | The environment key
144-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
144+
let patchOperation = [{"op":"replace","path":"/requireComments","value":true}]; // [PatchOperation] |
145145
apiInstance.patchEnvironment(projectKey, environmentKey, patchOperation, (error, data, response) => {
146146
if (error) {
147147
console.error(error);

docs/IntegrationAuditLogSubscriptionsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ ApiKey.apiKey = 'YOUR API KEY';
244244
let apiInstance = new LaunchDarklyApi.IntegrationAuditLogSubscriptionsApi();
245245
let integrationKey = "integrationKey_example"; // String | The integration key
246246
let id = "id_example"; // String | The ID of the audit log subscription
247-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
247+
let patchOperation = [{"op":"replace","path":"/on","value":false}]; // [PatchOperation] |
248248
apiInstance.updateSubscription(integrationKey, id, patchOperation, (error, data, response) => {
249249
if (error) {
250250
console.error(error);

docs/MemberTeamsPostInput.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# LaunchDarklyApi.MemberTeamsPostInput
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**teamKeys** | **[String]** | List of team keys |
8+
9+

docs/MetricsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Name | Type | Description | Notes
175175
176176
Update metric
177177

178-
Patch a environment by key.
178+
Patch a metric by key.
179179

180180
### Example
181181

@@ -191,7 +191,7 @@ ApiKey.apiKey = 'YOUR API KEY';
191191
let apiInstance = new LaunchDarklyApi.MetricsApi();
192192
let projectKey = "projectKey_example"; // String | The project key
193193
let key = "key_example"; // String | The metric key
194-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
194+
let patchOperation = [{"op":"replace","path":"/name","value":"my-updated-metric"}]; // [PatchOperation] |
195195
apiInstance.patchMetric(projectKey, key, patchOperation, (error, data, response) => {
196196
if (error) {
197197
console.error(error);

docs/ProjectsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ApiKey.apiKey = 'YOUR API KEY';
182182

183183
let apiInstance = new LaunchDarklyApi.ProjectsApi();
184184
let projectKey = "projectKey_example"; // String | The project key
185-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
185+
let patchOperation = [{"op":"add","path":"/tags/0","value":"another-tag"}]; // [PatchOperation] |
186186
apiInstance.patchProject(projectKey, patchOperation, (error, data, response) => {
187187
if (error) {
188188
console.error(error);

docs/StatementPost.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**resources** | **[String]** | Resource specifier strings |
7+
**resources** | **[String]** | Resource specifier strings | [optional]
88
**notResources** | **[String]** | Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field. | [optional]
9-
**actions** | **[String]** | Actions to perform on a resource |
9+
**actions** | **[String]** | Actions to perform on a resource | [optional]
1010
**notActions** | **[String]** | Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field. | [optional]
1111
**effect** | **String** | |
1212

docs/StatementPostData.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**resources** | **[String]** | Resource specifier strings |
7+
**resources** | **[String]** | Resource specifier strings | [optional]
88
**notResources** | **[String]** | Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field. | [optional]
9-
**actions** | **[String]** | Actions to perform on a resource |
9+
**actions** | **[String]** | Actions to perform on a resource | [optional]
1010
**notActions** | **[String]** | Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field. | [optional]
1111
**effect** | **String** | |
1212

docs/WebhooksApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ApiKey.apiKey = 'YOUR API KEY';
182182

183183
let apiInstance = new LaunchDarklyApi.WebhooksApi();
184184
let id = "id_example"; // String | The ID of the webhook to update
185-
let patchOperation = [new LaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
185+
let patchOperation = [{"op":"replace","path":"/on","value":false}]; // [PatchOperation] |
186186
apiInstance.patchWebhook(id, patchOperation, (error, data, response) => {
187187
if (error) {
188188
console.error(error);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-api",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "Build custom integrations with the LaunchDarkly REST API",
55
"license": "Apache 2.0",
66
"main": "dist/index.js",

src/ApiClient.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 7.1.0
20+
* @version 7.1.1
2121
*/
2222

2323
/**
@@ -55,7 +55,7 @@ class ApiClient {
5555
* @default {}
5656
*/
5757
this.defaultHeaders = {
58-
'User-Agent': 'OpenAPI-Generator/7.1.0/Javascript'
58+
'User-Agent': 'OpenAPI-Generator/7.1.1/Javascript'
5959
};
6060

6161
/**

src/api/AccessTokensApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/AccountMembersApi.js

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/AccountUsageBetaApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import UnauthorizedErrorRep from '../model/UnauthorizedErrorRep';
2525
/**
2626
* AccountUsageBeta service.
2727
* @module api/AccountUsageBetaApi
28-
* @version 7.1.0
28+
* @version 7.1.1
2929
*/
3030
export default class AccountUsageBetaApi {
3131

src/api/ApprovalsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import UnauthorizedErrorRep from '../model/UnauthorizedErrorRep';
2929
/**
3030
* Approvals service.
3131
* @module api/ApprovalsApi
32-
* @version 7.1.0
32+
* @version 7.1.1
3333
*/
3434
export default class ApprovalsApi {
3535

src/api/AuditLogApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/CodeReferencesApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import UnauthorizedErrorRep from '../model/UnauthorizedErrorRep';
3434
/**
3535
* CodeReferences service.
3636
* @module api/CodeReferencesApi
37-
* @version 7.1.0
37+
* @version 7.1.1
3838
*/
3939
export default class CodeReferencesApi {
4040

src/api/CustomRolesApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/DataExportDestinationsApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/EnvironmentsApi.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/ExperimentsBetaApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/FeatureFlagsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import UnauthorizedErrorRep from '../model/UnauthorizedErrorRep';
3434
/**
3535
* FeatureFlags service.
3636
* @module api/FeatureFlagsApi
37-
* @version 7.1.0
37+
* @version 7.1.1
3838
*/
3939
export default class FeatureFlagsApi {
4040

src/api/FeatureFlagsBetaApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/FlagTriggersApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import UnauthorizedErrorRep from '../model/UnauthorizedErrorRep';
2727
/**
2828
* FlagTriggers service.
2929
* @module api/FlagTriggersApi
30-
* @version 7.1.0
30+
* @version 7.1.1
3131
*/
3232
export default class FlagTriggersApi {
3333

src/api/IntegrationAuditLogSubscriptionsApi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)