Skip to content

Commit 2aa5fe5

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.2 automatically generated from ld-openapi.
1 parent 8b82a10 commit 2aa5fe5

File tree

12 files changed

+212
-184
lines changed

12 files changed

+212
-184
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ docs/AccessDeniedReason.md
4343
docs/AccessTokenPost.md
4444
docs/AccessTokensApi.md
4545
docs/AccountMembersApi.md
46-
docs/AccountMembersBetaApi.md
4746
docs/AccountUsageBetaApi.md
4847
docs/ActionInput.md
4948
docs/ActionOutput.md
@@ -150,6 +149,7 @@ docs/Contexts.md
150149
docs/ContextsApi.md
151150
docs/CopiedFromEnv.md
152151
docs/CoreLink.md
152+
docs/CovarianceInfoRep.md
153153
docs/CreateAnnouncementBody.md
154154
docs/CreateApprovalRequestRequest.md
155155
docs/CreateCopyFlagConfigApprovalRequestRequest.md

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This REST API is for custom integrations, data export, or automating your featur
66
This client library is only compatible with the latest version of our REST API. Previous versions of this client library are compatible with earlier versions of our REST API. When you create an access token, you can set the REST API version associated with the token. By default, API requests you send using the token will use the specified API version. To learn more, read [Versioning](https://apidocs.launchdarkly.com/#section/Overview/Versioning).
77
View our [sample code](#sample-code) for example usage.
88

9-
9+
1010

1111
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
1212

@@ -44,7 +44,7 @@ navigate to the folder of your consuming project and run one of the following co
4444
_published:_
4545

4646
```
47-
npm install [email protected].1 --save
47+
npm install [email protected].2 --save
4848
```
4949

5050
_unPublished (not recommended):_
@@ -94,9 +94,9 @@ Class | Method | HTTP request | Description
9494
*AccountMembersApi* | [**getMember**](docs/AccountMembersApi.md#getmember) | **GET** /api/v2/members/{id} | Get account member
9595
*AccountMembersApi* | [**getMembers**](docs/AccountMembersApi.md#getmembers) | **GET** /api/v2/members | List account members
9696
*AccountMembersApi* | [**patchMember**](docs/AccountMembersApi.md#patchmember) | **PATCH** /api/v2/members/{id} | Modify an account member
97+
*AccountMembersApi* | [**patchMembers**](docs/AccountMembersApi.md#patchmembers) | **PATCH** /api/v2/members | Modify account members
9798
*AccountMembersApi* | [**postMemberTeams**](docs/AccountMembersApi.md#postmemberteams) | **POST** /api/v2/members/{id}/teams | Add a member to teams
9899
*AccountMembersApi* | [**postMembers**](docs/AccountMembersApi.md#postmembers) | **POST** /api/v2/members | Invite new members
99-
*AccountMembersBetaApi* | [**patchMembers**](docs/AccountMembersBetaApi.md#patchmembers) | **PATCH** /api/v2/members | Modify account members
100100
*AccountUsageBetaApi* | [**getContextsClientsideUsage**](docs/AccountUsageBetaApi.md#getcontextsclientsideusage) | **GET** /api/v2/usage/clientside-contexts | Get contexts clientside usage
101101
*AccountUsageBetaApi* | [**getContextsServersideUsage**](docs/AccountUsageBetaApi.md#getcontextsserversideusage) | **GET** /api/v2/usage/serverside-contexts | Get contexts serverside usage
102102
*AccountUsageBetaApi* | [**getContextsTotalUsage**](docs/AccountUsageBetaApi.md#getcontextstotalusage) | **GET** /api/v2/usage/total-contexts | Get contexts total usage
@@ -531,6 +531,7 @@ Class | Method | HTTP request | Description
531531
- [Contexts](docs/Contexts.md)
532532
- [CopiedFromEnv](docs/CopiedFromEnv.md)
533533
- [CoreLink](docs/CoreLink.md)
534+
- [CovarianceInfoRep](docs/CovarianceInfoRep.md)
534535
- [CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
535536
- [CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
536537
- [CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)

api.ts

Lines changed: 94 additions & 111 deletions
Large diffs are not rendered by default.

docs/AIConfigVariationPost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**description** | **string** | Returns the description for the agent. This is only returned for agent variations. | [optional] [default to undefined]
1010
**instructions** | **string** | Returns the instructions for the agent. This is only returned for agent variations. | [optional] [default to undefined]
1111
**key** | **string** | | [default to undefined]
12-
**messages** | [**Array<Message>**](Message.md) | | [default to undefined]
12+
**messages** | [**Array<Message>**](Message.md) | | [optional] [default to undefined]
1313
**model** | **object** | | [optional] [default to undefined]
1414
**name** | **string** | | [default to undefined]
1515
**modelConfigKey** | **string** | | [optional] [default to undefined]

docs/AccountMembersApi.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All URIs are relative to *https://app.launchdarkly.com*
88
|[**getMember**](#getmember) | **GET** /api/v2/members/{id} | Get account member|
99
|[**getMembers**](#getmembers) | **GET** /api/v2/members | List account members|
1010
|[**patchMember**](#patchmember) | **PATCH** /api/v2/members/{id} | Modify an account member|
11+
|[**patchMembers**](#patchmembers) | **PATCH** /api/v2/members | Modify account members|
1112
|[**postMemberTeams**](#postmemberteams) | **POST** /api/v2/members/{id}/teams | Add a member to teams|
1213
|[**postMembers**](#postmembers) | **POST** /api/v2/members | Invite new members|
1314

@@ -252,6 +253,63 @@ const { status, data } = await apiInstance.patchMember(
252253

253254
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
254255

256+
# **patchMembers**
257+
> BulkEditMembersRep patchMembers(membersPatchInput)
258+
259+
> ### 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>
260+
261+
### Example
262+
263+
```typescript
264+
import {
265+
AccountMembersApi,
266+
Configuration,
267+
MembersPatchInput
268+
} from 'launchdarkly-api-typescript';
269+
270+
const configuration = new Configuration();
271+
const apiInstance = new AccountMembersApi(configuration);
272+
273+
let membersPatchInput: MembersPatchInput; //
274+
275+
const { status, data } = await apiInstance.patchMembers(
276+
membersPatchInput
277+
);
278+
```
279+
280+
### Parameters
281+
282+
|Name | Type | Description | Notes|
283+
|------------- | ------------- | ------------- | -------------|
284+
| **membersPatchInput** | **MembersPatchInput**| | |
285+
286+
287+
### Return type
288+
289+
**BulkEditMembersRep**
290+
291+
### Authorization
292+
293+
[ApiKey](../README.md#ApiKey)
294+
295+
### HTTP request headers
296+
297+
- **Content-Type**: application/json
298+
- **Accept**: application/json
299+
300+
301+
### HTTP response details
302+
| Status code | Description | Response headers |
303+
|-------------|-------------|------------------|
304+
|**200** | Members response | - |
305+
|**400** | Invalid request | - |
306+
|**401** | Invalid access token | - |
307+
|**403** | Forbidden | - |
308+
|**409** | Status conflict | - |
309+
|**429** | Rate limited | - |
310+
311+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
312+
255313
# **postMemberTeams**
256314
> Member postMemberTeams(memberTeamsPostInput)
257315

docs/AccountMembersBetaApi.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)