Skip to content

Commit 722d8fe

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.2 automatically generated from ld-openapi.
1 parent a782331 commit 722d8fe

File tree

651 files changed

+956
-788
lines changed

Some content is hidden

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

651 files changed

+956
-788
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependency Scan
2+
permissions:
3+
contents: read
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
dependency-scan:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Generate SBOM
16+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
17+
with:
18+
types: 'nodejs'
19+
20+
- name: Evaluate SBOM Policy
21+
uses: launchdarkly/gh-actions/actions/dependency-scan/evaluate-policy@main
22+
with:
23+
bom-file: bom.nodejs.json

.openapi-generator/FILES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ docs/AccessDeniedReason.md
4040
docs/AccessTokenPost.md
4141
docs/AccessTokensApi.md
4242
docs/AccountMembersApi.md
43-
docs/AccountMembersBetaApi.md
4443
docs/AccountUsageBetaApi.md
4544
docs/ActionInput.md
4645
docs/ActionOutput.md
@@ -147,6 +146,7 @@ docs/Contexts.md
147146
docs/ContextsApi.md
148147
docs/CopiedFromEnv.md
149148
docs/CoreLink.md
149+
docs/CovarianceInfoRep.md
150150
docs/CreateAnnouncementBody.md
151151
docs/CreateApprovalRequestRequest.md
152152
docs/CreateCopyFlagConfigApprovalRequestRequest.md
@@ -645,7 +645,6 @@ src/ApiClient.js
645645
src/api/AIConfigsBetaApi.js
646646
src/api/AccessTokensApi.js
647647
src/api/AccountMembersApi.js
648-
src/api/AccountMembersBetaApi.js
649648
src/api/AccountUsageBetaApi.js
650649
src/api/AnnouncementsApi.js
651650
src/api/ApplicationsBetaApi.js
@@ -830,6 +829,7 @@ src/model/ContextSearch.js
830829
src/model/Contexts.js
831830
src/model/CopiedFromEnv.js
832831
src/model/CoreLink.js
832+
src/model/CovarianceInfoRep.js
833833
src/model/CreateAnnouncementBody.js
834834
src/model/CreateApprovalRequestRequest.js
835835
src/model/CreateCopyFlagConfigApprovalRequestRequest.js
@@ -1281,7 +1281,6 @@ src/model/WorkflowTemplatesListingOutputRep.js
12811281
test/api/AIConfigsBetaApi.spec.js
12821282
test/api/AccessTokensApi.spec.js
12831283
test/api/AccountMembersApi.spec.js
1284-
test/api/AccountMembersBetaApi.spec.js
12851284
test/api/AccountUsageBetaApi.spec.js
12861285
test/api/AnnouncementsApi.spec.js
12871286
test/api/ApplicationsBetaApi.spec.js
@@ -1465,6 +1464,7 @@ test/model/ContextSearch.spec.js
14651464
test/model/Contexts.spec.js
14661465
test/model/CopiedFromEnv.spec.js
14671466
test/model/CoreLink.spec.js
1467+
test/model/CovarianceInfoRep.spec.js
14681468
test/model/CreateAnnouncementBody.spec.js
14691469
test/model/CreateApprovalRequestRequest.spec.js
14701470
test/model/CreateCopyFlagConfigApprovalRequestRequest.spec.js

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
448448
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
449449

450450
- API version: 2.0
451-
- Package version: 18.0.1
451+
- Package version: 18.0.2
452452
- Generator version: 7.16.0
453453
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
454454
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -608,9 +608,9 @@ Class | Method | HTTP request | Description
608608
*LaunchDarklyApi.AccountMembersApi* | [**getMember**](docs/AccountMembersApi.md#getMember) | **GET** /api/v2/members/{id} | Get account member
609609
*LaunchDarklyApi.AccountMembersApi* | [**getMembers**](docs/AccountMembersApi.md#getMembers) | **GET** /api/v2/members | List account members
610610
*LaunchDarklyApi.AccountMembersApi* | [**patchMember**](docs/AccountMembersApi.md#patchMember) | **PATCH** /api/v2/members/{id} | Modify an account member
611+
*LaunchDarklyApi.AccountMembersApi* | [**patchMembers**](docs/AccountMembersApi.md#patchMembers) | **PATCH** /api/v2/members | Modify account members
611612
*LaunchDarklyApi.AccountMembersApi* | [**postMemberTeams**](docs/AccountMembersApi.md#postMemberTeams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
612613
*LaunchDarklyApi.AccountMembersApi* | [**postMembers**](docs/AccountMembersApi.md#postMembers) | **POST** /api/v2/members | Invite new members
613-
*LaunchDarklyApi.AccountMembersBetaApi* | [**patchMembers**](docs/AccountMembersBetaApi.md#patchMembers) | **PATCH** /api/v2/members | Modify account members
614614
*LaunchDarklyApi.AccountUsageBetaApi* | [**getContextsClientsideUsage**](docs/AccountUsageBetaApi.md#getContextsClientsideUsage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
615615
*LaunchDarklyApi.AccountUsageBetaApi* | [**getContextsServersideUsage**](docs/AccountUsageBetaApi.md#getContextsServersideUsage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
616616
*LaunchDarklyApi.AccountUsageBetaApi* | [**getContextsTotalUsage**](docs/AccountUsageBetaApi.md#getContextsTotalUsage) | **GET** /api/v2/usage/total-contexts | Get contexts total usage
@@ -1045,6 +1045,7 @@ Class | Method | HTTP request | Description
10451045
- [LaunchDarklyApi.Contexts](docs/Contexts.md)
10461046
- [LaunchDarklyApi.CopiedFromEnv](docs/CopiedFromEnv.md)
10471047
- [LaunchDarklyApi.CoreLink](docs/CoreLink.md)
1048+
- [LaunchDarklyApi.CovarianceInfoRep](docs/CovarianceInfoRep.md)
10481049
- [LaunchDarklyApi.CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
10491050
- [LaunchDarklyApi.CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
10501051
- [LaunchDarklyApi.CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)

docs/AIConfigVariationPost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**description** | **String** | Returns the description for the agent. This is only returned for agent variations. | [optional]
99
**instructions** | **String** | Returns the instructions for the agent. This is only returned for agent variations. | [optional]
1010
**key** | **String** | |
11-
**messages** | [**[Message]**](Message.md) | |
11+
**messages** | [**[Message]**](Message.md) | | [optional]
1212
**model** | **Object** | | [optional]
1313
**name** | **String** | |
1414
**modelConfigKey** | **String** | | [optional]

docs/AccountMembersApi.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**getMember**](AccountMembersApi.md#getMember) | **GET** /api/v2/members/{id} | Get account member
99
[**getMembers**](AccountMembersApi.md#getMembers) | **GET** /api/v2/members | List account members
1010
[**patchMember**](AccountMembersApi.md#patchMember) | **PATCH** /api/v2/members/{id} | Modify an account member
11+
[**patchMembers**](AccountMembersApi.md#patchMembers) | **PATCH** /api/v2/members | Modify account members
1112
[**postMemberTeams**](AccountMembersApi.md#postMemberTeams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
1213
[**postMembers**](AccountMembersApi.md#postMembers) | **POST** /api/v2/members | Invite new members
1314

@@ -233,6 +234,57 @@ Name | Type | Description | Notes
233234
- **Accept**: application/json
234235

235236

237+
## patchMembers
238+
239+
> BulkEditMembersRep patchMembers(membersPatchInput)
240+
241+
Modify account members
242+
243+
> ### Full use of this API resource is an Enterprise feature > > The ability to perform a partial update to multiple members is available to customers on an Enterprise plan. If you are on another plan, you can update members individually. To learn more, [read about our pricing](https://launchdarkly.com/pricing/). To upgrade your plan, [contact Sales](https://launchdarkly.com/contact-sales/). Perform a partial update to multiple members. Updating members uses the semantic patch format. To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. To learn more, read [Updates using semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). ### Instructions Semantic patch requests support the following `kind` instructions for updating members. <details> <summary>Click to expand instructions for <strong>updating members</strong></summary> #### replaceMembersRoles Replaces the roles of the specified members. This also removes all custom roles assigned to the specified members. ##### Parameters - `value`: The new role. Must be a valid [base role](https://launchdarkly.com/docs/home/getting-started/vocabulary#base-role). To learn more, read [Roles](https://launchdarkly.com/docs/home/account/roles). - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersRoles\", \"value\": \"reader\", \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` #### replaceAllMembersRoles Replaces the roles of all members. This also removes all custom roles assigned to the specified members. Members that match any of the filters are **excluded** from the update. ##### Parameters - `value`: The new role. Must be a valid [base role](https://launchdarkly.com/docs/home/getting-started/vocabulary#base-role). To learn more, read [Roles](https://launchdarkly.com/docs/home/account/roles). - `filterLastSeen`: (Optional) A JSON object with one of the following formats: - `{\"never\": true}` - Members that have never been active, such as those who have not accepted their invitation to LaunchDarkly, or have not logged in after being provisioned via SCIM. - `{\"noData\": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps. - `{\"before\": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds. - `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive. - `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`. - `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive. - `ignoredMemberIDs`: (Optional) A list of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceAllMembersRoles\", \"value\": \"reader\", \"filterLastSeen\": { \"never\": true } }] } ``` #### replaceMembersCustomRoles Replaces the custom roles of the specified members. ##### Parameters - `values`: List of new custom roles. Must be a valid custom role key or ID. - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersCustomRoles\", \"values\": [ \"example-custom-role\" ], \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` #### replaceAllMembersCustomRoles Replaces the custom roles of all members. Members that match any of the filters are **excluded** from the update. ##### Parameters - `values`: List of new roles. Must be a valid custom role key or ID. - `filterLastSeen`: (Optional) A JSON object with one of the following formats: - `{\"never\": true}` - Members that have never been active, such as those who have not accepted their invitation to LaunchDarkly, or have not logged in after being provisioned via SCIM. - `{\"noData\": true}` - Members that have not been active since LaunchDarkly began recording last seen timestamps. - `{\"before\": 1608672063611}` - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds. - `filterQuery`: (Optional) A string that matches against the members' emails and names. It is not case sensitive. - `filterRoles`: (Optional) A `|` separated list of roles and custom roles. For the purposes of this filtering, `Owner` counts as `Admin`. - `filterTeamKey`: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive. - `ignoredMemberIDs`: (Optional) A list of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceAllMembersCustomRoles\", \"values\": [ \"example-custom-role\" ], \"filterLastSeen\": { \"never\": true } }] } ``` #### replaceMembersRoleAttributes Replaces the role attributes of the specified members. ##### Parameters - `value`: Map of role attribute keys to lists of values. - `memberIDs`: List of member IDs. Here's an example: ```json { \"instructions\": [{ \"kind\": \"replaceMembersRoleAttributes\", \"value\": { \"myRoleProjectKey\": [\"mobile\", \"web\"], \"myRoleEnvironmentKey\": [\"production\"] }, \"memberIDs\": [ \"1234a56b7c89d012345e678f\", \"507f1f77bcf86cd799439011\" ] }] } ``` </details>
244+
245+
### Example
246+
247+
```javascript
248+
import LaunchDarklyApi from 'launchdarkly-api';
249+
let defaultClient = LaunchDarklyApi.ApiClient.instance;
250+
// Configure API key authorization: ApiKey
251+
let ApiKey = defaultClient.authentications['ApiKey'];
252+
ApiKey.apiKey = 'YOUR API KEY';
253+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
254+
//ApiKey.apiKeyPrefix = 'Token';
255+
256+
let apiInstance = new LaunchDarklyApi.AccountMembersApi();
257+
let membersPatchInput = {"comment":"Optional comment about the update","instructions":[{"kind":"replaceMembersRoles","memberIDs":["1234a56b7c89d012345e678f","507f1f77bcf86cd799439011"],"value":"reader"}]}; // MembersPatchInput |
258+
apiInstance.patchMembers(membersPatchInput, (error, data, response) => {
259+
if (error) {
260+
console.error(error);
261+
} else {
262+
console.log('API called successfully. Returned data: ' + data);
263+
}
264+
});
265+
```
266+
267+
### Parameters
268+
269+
270+
Name | Type | Description | Notes
271+
------------- | ------------- | ------------- | -------------
272+
**membersPatchInput** | [**MembersPatchInput**](MembersPatchInput.md)| |
273+
274+
### Return type
275+
276+
[**BulkEditMembersRep**](BulkEditMembersRep.md)
277+
278+
### Authorization
279+
280+
[ApiKey](../README.md#ApiKey)
281+
282+
### HTTP request headers
283+
284+
- **Content-Type**: application/json
285+
- **Accept**: application/json
286+
287+
236288
## postMemberTeams
237289

238290
> Member postMemberTeams(id, memberTeamsPostInput)

0 commit comments

Comments
 (0)