Skip to content

Commit d43c171

Browse files
committed
adding approvals apis... note: build.mts will get ovewritten on regens, so we're going to figure that out in a bit
1 parent 565f59d commit d43c171

110 files changed

Lines changed: 10151 additions & 748 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 377 additions & 45 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: false
3333
skipResponseBodyAssertions: false
3434
typescript:
35-
version: 0.6.0
35+
version: 0.6.1
3636
acceptHeaderEnum: true
3737
additionalDependencies:
3838
dependencies: {}

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.736.1
22
sources:
33
LaunchDarkly REST API:
44
sourceNamespace: launchdarkly-rest-api
5-
sourceRevisionDigest: sha256:660091d01912e6441740c604153fd0de5dca3b7098818b06bdf27f928b20b4a1
6-
sourceBlobDigest: sha256:320f0be8ba411906a7ef897a0ae7c0e86119d186cb70850c014c6552e5c08f39
5+
sourceRevisionDigest: sha256:e7b2ab07f2495360eefd4e1aceec796f0994cdf05976415ea45b41f58768a5f6
6+
sourceBlobDigest: sha256:819877dff442cc137c37a165ca8b949a41589a26f0d4b928870fb4a40d33b925
77
tags:
88
- latest
99
- "2.0"
1010
targets:
1111
launchdarkly-mcp-server:
1212
source: LaunchDarkly REST API
1313
sourceNamespace: launchdarkly-rest-api
14-
sourceRevisionDigest: sha256:660091d01912e6441740c604153fd0de5dca3b7098818b06bdf27f928b20b4a1
15-
sourceBlobDigest: sha256:320f0be8ba411906a7ef897a0ae7c0e86119d186cb70850c014c6552e5c08f39
14+
sourceRevisionDigest: sha256:e7b2ab07f2495360eefd4e1aceec796f0994cdf05976415ea45b41f58768a5f6
15+
sourceBlobDigest: sha256:819877dff442cc137c37a165ca8b949a41589a26f0d4b928870fb4a40d33b925
1616
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:462d803ace535f1c269b2831ba1f3baf7fdac6fe7289fd8cacb33ee0d57fd3a5
17+
codeSamplesRevisionDigest: sha256:ec86446b176532b286691f7466a68904aec5e67dd7971a2ef0cb53c1269e8903
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.736.1

FUNCTIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ specific category of applications.
2020

2121
```typescript
2222
import { LaunchDarklyCore } from "@launchdarkly/mcp-server/core.js";
23-
import { codeReferencesListRepositories } from "@launchdarkly/mcp-server/funcs/codeReferencesListRepositories.js";
23+
import { approvalsList } from "@launchdarkly/mcp-server/funcs/approvalsList.js";
2424

2525
// Use `LaunchDarklyCore` for best tree-shaking performance.
2626
// You can create one instance of it to use across an application.
@@ -29,12 +29,12 @@ const launchDarkly = new LaunchDarklyCore({
2929
});
3030

3131
async function run() {
32-
const res = await codeReferencesListRepositories(launchDarkly, {});
32+
const res = await approvalsList(launchDarkly, {});
3333
if (res.ok) {
3434
const { value: result } = res;
3535
console.log(result);
3636
} else {
37-
console.log("codeReferencesListRepositories failed:", res.error);
37+
console.log("approvalsList failed:", res.error);
3838
}
3939
}
4040

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
233233
* [getVariation](docs/sdks/aiconfigs/README.md#getvariation) - Get AI Config variation
234234
* [updateVariation](docs/sdks/aiconfigs/README.md#updatevariation) - Update AI Config variation
235235

236+
### [Approvals](docs/sdks/approvals/README.md)
237+
238+
* [list](docs/sdks/approvals/README.md#list) - List approval requests
239+
* [listForFlag](docs/sdks/approvals/README.md#listforflag) - List approval requests for a flag
240+
* [createRequest](docs/sdks/approvals/README.md#createrequest) - Create approval request for a flag
241+
* [getForFlag](docs/sdks/approvals/README.md#getforflag) - Get approval request for a flag
242+
* [deleteFlagRequest](docs/sdks/approvals/README.md#deleteflagrequest) - Delete approval request for a flag
243+
* [applyRequest](docs/sdks/approvals/README.md#applyrequest) - Apply approval request for a flag
244+
* [reviewFlagRequest](docs/sdks/approvals/README.md#reviewflagrequest) - Review approval request for a flag
245+
236246
### [CodeReferences](docs/sdks/codereferences/README.md)
237247

238248
* [listRepositories](docs/sdks/codereferences/README.md#listrepositories) - List repositories

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const launchDarkly = new LaunchDarkly({
77
});
88

99
async function run() {
10-
const result = await launchDarkly.codeReferences.listRepositories({});
10+
const result = await launchDarkly.approvals.list({});
1111

1212
console.log(result);
1313
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# AIConfigRep
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { AIConfigRep } from "@launchdarkly/mcp-server/models/components";
7+
8+
let value: AIConfigRep = {
9+
key: "aiconfig-key-123abc",
10+
name: "AI Config 1",
11+
};
12+
```
13+
14+
## Fields
15+
16+
| Field | Type | Required | Description | Example |
17+
| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- |
18+
| `key` | *string* | :heavy_check_mark: | The key of the AI Config | aiconfig-key-123abc |
19+
| `name` | *string* | :heavy_check_mark: | The name of the AI Config | AI Config 1 |

docs/models/components/conflict.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Conflict
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { Conflict } from "@launchdarkly/mcp-server/models/components";
7+
8+
let value: Conflict = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
15+
| `instruction` | Record<string, *any*> | :heavy_minus_sign: | N/A |
16+
| `reason` | *string* | :heavy_minus_sign: | Reason why the conflict exists |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CopiedFromEnv
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { CopiedFromEnv } from "@launchdarkly/mcp-server/models/components";
7+
8+
let value: CopiedFromEnv = {
9+
key: "source-flag-key-123abc",
10+
version: 1,
11+
};
12+
```
13+
14+
## Fields
15+
16+
| Field | Type | Required | Description | Example |
17+
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
18+
| `key` | *string* | :heavy_check_mark: | Key of feature flag copied | source-flag-key-123abc |
19+
| `version` | *number* | :heavy_minus_sign: | Version of feature flag copied | 1 |
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# CreateFlagConfigApprovalRequestRequest
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { CreateFlagConfigApprovalRequestRequest } from "@launchdarkly/mcp-server/models/components";
7+
8+
let value: CreateFlagConfigApprovalRequestRequest = {
9+
comment: "optional comment",
10+
description: "Requesting to update targeting",
11+
instructions: [
12+
{
13+
"key": "<value>",
14+
},
15+
{
16+
"key": "<value>",
17+
},
18+
],
19+
notifyMemberIds: [
20+
"1234a56b7c89d012345e678f",
21+
],
22+
notifyTeamKeys: [
23+
"example-reviewer-team",
24+
],
25+
operatingOnId: "6297ed79dee7dc14e1f9a80c",
26+
};
27+
```
28+
29+
## Fields
30+
31+
| Field | Type | Required | Description | Example |
32+
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
33+
| `comment` | *string* | :heavy_minus_sign: | Optional comment describing the approval request | optional comment |
34+
| `description` | *string* | :heavy_check_mark: | A brief description of the changes you're requesting | Requesting to update targeting |
35+
| `instructions` | Record<string, *any*>[] | :heavy_check_mark: | N/A | |
36+
| `notifyMemberIds` | *string*[] | :heavy_minus_sign: | An array of member IDs. These members are notified to review the approval request. | [<br/>"1234a56b7c89d012345e678f"<br/>] |
37+
| `notifyTeamKeys` | *string*[] | :heavy_minus_sign: | An array of team keys. The members of these teams are notified to review the approval request. | [<br/>"example-reviewer-team"<br/>] |
38+
| `executionDate` | *number* | :heavy_minus_sign: | N/A | |
39+
| `operatingOnId` | *string* | :heavy_minus_sign: | The ID of a scheduled change. Include this if your <code>instructions</code> include editing or deleting a scheduled change. | 6297ed79dee7dc14e1f9a80c |
40+
| `integrationConfig` | Record<string, *any*> | :heavy_minus_sign: | N/A | |

0 commit comments

Comments
 (0)