Skip to content

Commit d4e2be5

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent f848504 commit d4e2be5

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This repository contains a client library for LaunchDarkly's REST API. This clie
22
generated from our [OpenAPI specification](https://app.launchdarkly.com/api/v2/openapi.json) using a [code generation library](https://github.com/launchdarkly/ld-openapi). View our [sample code](#sample-code) for example usage.
33

44
This REST API is for custom integrations, data export, or automating your feature flag workflows. *DO NOT* use this client library to include feature flags in your web or mobile application. To integrate feature flags with your application, read the [SDK documentation](https://docs.launchdarkly.com/sdk).
5-
## launchdarkly-api-typescript@7.1.0
5+
## launchdarkly-api-typescript@7.1.1
66

77
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:
88

@@ -40,7 +40,7 @@ navigate to the folder of your consuming project and run one of the following co
4040
_published:_
4141

4242
```
43-
npm install launchdarkly-api-typescript@7.1.0 --save
43+
npm install launchdarkly-api-typescript@7.1.1 --save
4444
```
4545

4646
_unPublished (not recommended):_

api.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4083,13 +4083,13 @@ export interface MemberTeamSummaryRep {
40834083
/**
40844084
*
40854085
* @export
4086-
* @interface MemberTeamsFormPost
4086+
* @interface MemberTeamsPostInput
40874087
*/
4088-
export interface MemberTeamsFormPost {
4088+
export interface MemberTeamsPostInput {
40894089
/**
40904090
* List of team keys
40914091
* @type {Array<string>}
4092-
* @memberof MemberTeamsFormPost
4092+
* @memberof MemberTeamsPostInput
40934093
*/
40944094
'teamKeys': Array<string>;
40954095
}
@@ -6095,7 +6095,7 @@ export interface StatementPost {
60956095
* @type {Array<string>}
60966096
* @memberof StatementPost
60976097
*/
6098-
'resources': Array<string>;
6098+
'resources'?: Array<string>;
60996099
/**
61006100
* Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field.
61016101
* @type {Array<string>}
@@ -6107,7 +6107,7 @@ export interface StatementPost {
61076107
* @type {Array<string>}
61086108
* @memberof StatementPost
61096109
*/
6110-
'actions': Array<string>;
6110+
'actions'?: Array<string>;
61116111
/**
61126112
* Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field.
61136113
* @type {Array<string>}
@@ -6132,7 +6132,7 @@ export interface StatementPostData {
61326132
* @type {Array<string>}
61336133
* @memberof StatementPostData
61346134
*/
6135-
'resources': Array<string>;
6135+
'resources'?: Array<string>;
61366136
/**
61376137
* Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field.
61386138
* @type {Array<string>}
@@ -6144,7 +6144,7 @@ export interface StatementPostData {
61446144
* @type {Array<string>}
61456145
* @memberof StatementPostData
61466146
*/
6147-
'actions': Array<string>;
6147+
'actions'?: Array<string>;
61486148
/**
61496149
* Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field.
61506150
* @type {Array<string>}
@@ -8401,15 +8401,15 @@ export const AccountMembersApiAxiosParamCreator = function (configuration?: Conf
84018401
* Add member to team(s)
84028402
* @summary Add member to teams
84038403
* @param {string} id The member ID
8404-
* @param {MemberTeamsFormPost} memberTeamsFormPost
8404+
* @param {MemberTeamsPostInput} memberTeamsPostInput
84058405
* @param {*} [options] Override http request option.
84068406
* @throws {RequiredError}
84078407
*/
8408-
postMemberTeams: async (id: string, memberTeamsFormPost: MemberTeamsFormPost, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8408+
postMemberTeams: async (id: string, memberTeamsPostInput: MemberTeamsPostInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
84098409
// verify required parameter 'id' is not null or undefined
84108410
assertParamExists('postMemberTeams', 'id', id)
8411-
// verify required parameter 'memberTeamsFormPost' is not null or undefined
8412-
assertParamExists('postMemberTeams', 'memberTeamsFormPost', memberTeamsFormPost)
8411+
// verify required parameter 'memberTeamsPostInput' is not null or undefined
8412+
assertParamExists('postMemberTeams', 'memberTeamsPostInput', memberTeamsPostInput)
84138413
const localVarPath = `/api/v2/members/{id}/teams`
84148414
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
84158415
// use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -8433,7 +8433,7 @@ export const AccountMembersApiAxiosParamCreator = function (configuration?: Conf
84338433
setSearchParams(localVarUrlObj, localVarQueryParameter);
84348434
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84358435
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8436-
localVarRequestOptions.data = serializeDataIfNeeded(memberTeamsFormPost, localVarRequestOptions, configuration)
8436+
localVarRequestOptions.data = serializeDataIfNeeded(memberTeamsPostInput, localVarRequestOptions, configuration)
84378437

84388438
return {
84398439
url: toPathString(localVarUrlObj),
@@ -8541,12 +8541,12 @@ export const AccountMembersApiFp = function(configuration?: Configuration) {
85418541
* Add member to team(s)
85428542
* @summary Add member to teams
85438543
* @param {string} id The member ID
8544-
* @param {MemberTeamsFormPost} memberTeamsFormPost
8544+
* @param {MemberTeamsPostInput} memberTeamsPostInput
85458545
* @param {*} [options] Override http request option.
85468546
* @throws {RequiredError}
85478547
*/
8548-
async postMemberTeams(id: string, memberTeamsFormPost: MemberTeamsFormPost, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Member>> {
8549-
const localVarAxiosArgs = await localVarAxiosParamCreator.postMemberTeams(id, memberTeamsFormPost, options);
8548+
async postMemberTeams(id: string, memberTeamsPostInput: MemberTeamsPostInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Member>> {
8549+
const localVarAxiosArgs = await localVarAxiosParamCreator.postMemberTeams(id, memberTeamsPostInput, options);
85508550
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
85518551
},
85528552
/**
@@ -8618,12 +8618,12 @@ export const AccountMembersApiFactory = function (configuration?: Configuration,
86188618
* Add member to team(s)
86198619
* @summary Add member to teams
86208620
* @param {string} id The member ID
8621-
* @param {MemberTeamsFormPost} memberTeamsFormPost
8621+
* @param {MemberTeamsPostInput} memberTeamsPostInput
86228622
* @param {*} [options] Override http request option.
86238623
* @throws {RequiredError}
86248624
*/
8625-
postMemberTeams(id: string, memberTeamsFormPost: MemberTeamsFormPost, options?: any): AxiosPromise<Member> {
8626-
return localVarFp.postMemberTeams(id, memberTeamsFormPost, options).then((request) => request(axios, basePath));
8625+
postMemberTeams(id: string, memberTeamsPostInput: MemberTeamsPostInput, options?: any): AxiosPromise<Member> {
8626+
return localVarFp.postMemberTeams(id, memberTeamsPostInput, options).then((request) => request(axios, basePath));
86278627
},
86288628
/**
86298629
* > ### Full use of this API resource is only available to accounts with paid subscriptions > > The ability to bulk invite members is a paid feature. Single members may be invited if not on a paid plan. Invite one or more new members to join an account. Each member is sent an invitation. Members with \"admin\" or \"owner\" roles may create new members, as well as anyone with a \"createMember\" permission for \"member/\\*\". If a member cannot be invited, the entire request is rejected and no members are invited from that request. Each member _must_ have an `email` field and either a `role` or a `customRoles` field. If any of the fields are not populated correctly, the request is rejected with the reason specified in the \"message\" field of the response. Requests to create account members will not work if SCIM is enabled for the account. _No more than 50 members may be created per request._ A request may also fail because of conflicts with existing members. These conflicts are reported using the additional `code` and `invalid_emails` response fields with the following possible values for `code`: - **email_already_exists_in_account**: A member with this email address already exists in this account. - **email_taken_in_different_account**: A member with this email address exists in another account. - **duplicate_email**s: This request contains two or more members with the same email address. A request that fails for one of the above reasons returns an HTTP response code of 400 (Bad Request).
@@ -8701,13 +8701,13 @@ export class AccountMembersApi extends BaseAPI {
87018701
* Add member to team(s)
87028702
* @summary Add member to teams
87038703
* @param {string} id The member ID
8704-
* @param {MemberTeamsFormPost} memberTeamsFormPost
8704+
* @param {MemberTeamsPostInput} memberTeamsPostInput
87058705
* @param {*} [options] Override http request option.
87068706
* @throws {RequiredError}
87078707
* @memberof AccountMembersApi
87088708
*/
8709-
public postMemberTeams(id: string, memberTeamsFormPost: MemberTeamsFormPost, options?: AxiosRequestConfig) {
8710-
return AccountMembersApiFp(this.configuration).postMemberTeams(id, memberTeamsFormPost, options).then((request) => request(this.axios, this.basePath));
8709+
public postMemberTeams(id: string, memberTeamsPostInput: MemberTeamsPostInput, options?: AxiosRequestConfig) {
8710+
return AccountMembersApiFp(this.configuration).postMemberTeams(id, memberTeamsPostInput, options).then((request) => request(this.axios, this.basePath));
87118711
}
87128712

87138713
/**
@@ -12443,7 +12443,7 @@ export const EnvironmentsApiAxiosParamCreator = function (configuration?: Config
1244312443
};
1244412444
},
1244512445
/**
12446-
* > ### 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.
12446+
* 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.
1244712447
* @summary Update environment
1244812448
* @param {string} projectKey The project key
1244912449
* @param {string} environmentKey The environment key
@@ -12654,7 +12654,7 @@ export const EnvironmentsApiFp = function(configuration?: Configuration) {
1265412654
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1265512655
},
1265612656
/**
12657-
* > ### 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.
12657+
* 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.
1265812658
* @summary Update environment
1265912659
* @param {string} projectKey The project key
1266012660
* @param {string} environmentKey The environment key
@@ -12736,7 +12736,7 @@ export const EnvironmentsApiFactory = function (configuration?: Configuration, b
1273612736
return localVarFp.getEnvironment(projectKey, environmentKey, options).then((request) => request(axios, basePath));
1273712737
},
1273812738
/**
12739-
* > ### 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.
12739+
* 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.
1274012740
* @summary Update environment
1274112741
* @param {string} projectKey The project key
1274212742
* @param {string} environmentKey The environment key
@@ -12818,7 +12818,7 @@ export class EnvironmentsApi extends BaseAPI {
1281812818
}
1281912819

1282012820
/**
12821-
* > ### 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.
12821+
* 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.
1282212822
* @summary Update environment
1282312823
* @param {string} projectKey The project key
1282412824
* @param {string} environmentKey The environment key
@@ -15374,7 +15374,7 @@ export const MetricsApiAxiosParamCreator = function (configuration?: Configurati
1537415374
};
1537515375
},
1537615376
/**
15377-
* Patch a environment by key.
15377+
* Patch a metric by key.
1537815378
* @summary Update metric
1537915379
* @param {string} projectKey The project key
1538015380
* @param {string} key The metric key
@@ -15509,7 +15509,7 @@ export const MetricsApiFp = function(configuration?: Configuration) {
1550915509
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1551015510
},
1551115511
/**
15512-
* Patch a environment by key.
15512+
* Patch a metric by key.
1551315513
* @summary Update metric
1551415514
* @param {string} projectKey The project key
1551515515
* @param {string} key The metric key
@@ -15576,7 +15576,7 @@ export const MetricsApiFactory = function (configuration?: Configuration, basePa
1557615576
return localVarFp.getMetrics(projectKey, options).then((request) => request(axios, basePath));
1557715577
},
1557815578
/**
15579-
* Patch a environment by key.
15579+
* Patch a metric by key.
1558015580
* @summary Update metric
1558115581
* @param {string} projectKey The project key
1558215582
* @param {string} key The metric key
@@ -15647,7 +15647,7 @@ export class MetricsApi extends BaseAPI {
1564715647
}
1564815648

1564915649
/**
15650-
* Patch a environment by key.
15650+
* Patch a metric by key.
1565115651
* @summary Update metric
1565215652
* @param {string} projectKey The project key
1565315653
* @param {string} key The metric key

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-api-typescript",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "OpenAPI client for launchdarkly-api-typescript",
55
"author": "OpenAPI-Generator Contributors",
66
"keywords": [

0 commit comments

Comments
 (0)