Skip to content

Commit 6a4a477

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.631.4
1 parent b175382 commit 6a4a477

File tree

21 files changed

+98
-58
lines changed

21 files changed

+98
-58
lines changed

.devcontainer/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
77
rmdir samples || true
88
mkdir samples
99

10-
npm install
11-
npm install -g ts-node
10+
npm install --ignore-scripts
11+
npm install -g ts-node --ignore-scripts
1212
npm link
1313
npm link @launchdarkly/mcp-server
1414
TS_CONFIG_CONTENT=$(cat <<EOL

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ id: cc3a5766-8b39-40da-a0be-fff57173d8e1
33
management:
44
docChecksum: 2e0929fc035a4d91d9fbf708633ca988
55
docVersion: "2.0"
6-
speakeasyVersion: 1.580.0
7-
generationVersion: 2.654.2
8-
releaseVersion: 0.4.0
9-
configChecksum: 941cd2dd2f7c5a28dd935c935f7e8ac2
6+
speakeasyVersion: 1.631.4
7+
generationVersion: 2.716.16
8+
releaseVersion: 0.4.1
9+
configChecksum: 2eef9f65d1940ccab70cb8bd8acfceed
1010
repoURL: https://github.com/launchdarkly/mcp-server.git
1111
installationURL: https://github.com/launchdarkly/mcp-server
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.12
17-
core: 3.21.13
17+
core: 3.21.25
1818
defaultEnabledRetries: 0.1.0
1919
deprecations: 2.81.1
20-
devContainers: 2.90.0
20+
devContainers: 2.90.1
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.1.2
23-
globalSecurity: 2.82.13
23+
globalSecurity: 2.82.14
2424
globalSecurityCallbacks: 0.1.0
2525
globalSecurityFlattening: 0.1.0
2626
globalServerURLs: 2.82.5
@@ -31,7 +31,7 @@ features:
3131
responseFormat: 0.2.3
3232
retries: 2.83.0
3333
sdkHooks: 0.3.0
34-
unions: 2.85.11
34+
unions: 2.85.12
3535
generatedFiles:
3636
- .devcontainer/README.md
3737
- .devcontainer/devcontainer.json

.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: false
2121
oAuth2PasswordEnabled: false
22+
hoistGlobalSecurity: true
2223
tests:
2324
generateTests: true
2425
generateNewTests: false
2526
skipResponseBodyAssertions: false
2627
typescript:
27-
version: 0.4.0
28+
version: 0.4.1
2829
additionalDependencies:
2930
dependencies: {}
3031
devDependencies: {}
@@ -62,9 +63,12 @@ typescript:
6263
jsonpath: rfc9535
6364
maxMethodParams: 0
6465
methodArguments: require-security-and-request
66+
modelPropertyCasing: camel
6567
moduleFormat: dual
6668
outputModelSuffix: output
6769
packageName: '@launchdarkly/mcp-server'
6870
responseFormat: flat
71+
sseFlatResponse: false
6972
templateVersion: v2
73+
usageSDKInitImports: []
7074
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.580.0
1+
speakeasyVersion: 1.631.4
22
sources:
33
LaunchDarkly REST API:
44
sourceNamespace: launchdarkly-rest-api
55
sourceRevisionDigest: sha256:667150cae7854e824a91a3ea68fc1e92bdfa475bdc24a89722778a0493d53b4f
66
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752019878
9+
- speakeasy-sdk-regen-1752106275
1010
- "2.0"
1111
targets:
1212
launchdarkly-mcp-server:
@@ -15,7 +15,7 @@ targets:
1515
sourceRevisionDigest: sha256:667150cae7854e824a91a3ea68fc1e92bdfa475bdc24a89722778a0493d53b4f
1616
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
1717
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:7088f7fcad1698616ec4a48146b51f644af8dacef407aa1e013db650dd42e42b
18+
codeSamplesRevisionDigest: sha256:6d06cb8fe689f2ac03153edb83085075560bc4676d1c96a84d6d90814230edde
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,14 @@ Based on:
7474
### Generated
7575
- [typescript v0.4.0] .
7676
### Releases
77-
- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .
77+
- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .
78+
79+
## 2025-09-29 00:10:55
80+
### Changes
81+
Based on:
82+
- OpenAPI Doc
83+
- Speakeasy CLI 1.631.4 (2.716.16) https://github.com/speakeasy-api/speakeasy
84+
### Generated
85+
- [typescript v0.4.1] .
86+
### Releases
87+
- [NPM v0.4.1] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.1 - .

docs/sdks/aiconfigs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Retrieves a specific AI Config's targeting by its key
2323

2424
### Example Usage
2525

26+
<!-- UsageSnippet language="typescript" operationID="getAIConfigTargeting" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting" -->
2627
```typescript
2728
import { LaunchDarkly } from "@launchdarkly/mcp-server";
2829

@@ -659,6 +660,7 @@ Here's an example:
659660

660661
### Example Usage
661662

663+
<!-- UsageSnippet language="typescript" operationID="patchAIConfigTargeting" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting" -->
662664
```typescript
663665
import { LaunchDarkly } from "@launchdarkly/mcp-server";
664666

@@ -761,6 +763,7 @@ Get a list of all AI Configs in the given project.
761763

762764
### Example Usage
763765

766+
<!-- UsageSnippet language="typescript" operationID="getAIConfigs" method="get" path="/api/v2/projects/{projectKey}/ai-configs" -->
764767
```typescript
765768
import { LaunchDarkly } from "@launchdarkly/mcp-server";
766769

@@ -837,6 +840,7 @@ Create a new AI Config within the given project.
837840

838841
### Example Usage
839842

843+
<!-- UsageSnippet language="typescript" operationID="postAIConfig" method="post" path="/api/v2/projects/{projectKey}/ai-configs" -->
840844
```typescript
841845
import { LaunchDarkly } from "@launchdarkly/mcp-server";
842846

@@ -933,6 +937,7 @@ Delete an existing AI Config.
933937

934938
### Example Usage
935939

940+
<!-- UsageSnippet language="typescript" operationID="deleteAIConfig" method="delete" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
936941
```typescript
937942
import { LaunchDarkly } from "@launchdarkly/mcp-server";
938943

@@ -1011,6 +1016,7 @@ Retrieve a specific AI Config by its key.
10111016

10121017
### Example Usage
10131018

1019+
<!-- UsageSnippet language="typescript" operationID="getAIConfig" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
10141020
```typescript
10151021
import { LaunchDarkly } from "@launchdarkly/mcp-server";
10161022

@@ -1100,6 +1106,7 @@ Here's an example:
11001106

11011107
### Example Usage
11021108

1109+
<!-- UsageSnippet language="typescript" operationID="patchAIConfig" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
11031110
```typescript
11041111
import { LaunchDarkly } from "@launchdarkly/mcp-server";
11051112

@@ -1210,6 +1217,7 @@ The <code>model</code> in the request body requires a <code>modelName</code> and
12101217

12111218
### Example Usage
12121219

1220+
<!-- UsageSnippet language="typescript" operationID="postAIConfigVariation" method="post" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations" -->
12131221
```typescript
12141222
import { LaunchDarkly } from "@launchdarkly/mcp-server";
12151223

@@ -1326,6 +1334,7 @@ Delete a specific variation of an AI Config by config key and variation key.
13261334

13271335
### Example Usage
13281336

1337+
<!-- UsageSnippet language="typescript" operationID="deleteAIConfigVariation" method="delete" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
13291338
```typescript
13301339
import { LaunchDarkly } from "@launchdarkly/mcp-server";
13311340

@@ -1406,6 +1415,7 @@ Get an AI Config variation by key. The response includes all variation versions
14061415

14071416
### Example Usage
14081417

1418+
<!-- UsageSnippet language="typescript" operationID="getAIConfigVariation" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
14091419
```typescript
14101420
import { LaunchDarkly } from "@launchdarkly/mcp-server";
14111421

@@ -1501,6 +1511,7 @@ Here's an example:
15011511

15021512
### Example Usage
15031513

1514+
<!-- UsageSnippet language="typescript" operationID="patchAIConfigVariation" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
15041515
```typescript
15051516
import { LaunchDarkly } from "@launchdarkly/mcp-server";
15061517

docs/sdks/featureflags/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m
8181

8282
### Example Usage
8383

84+
<!-- UsageSnippet language="typescript" operationID="getFeatureFlags" method="get" path="/api/v2/flags/{projectKey}" -->
8485
```typescript
8586
import { LaunchDarkly } from "@launchdarkly/mcp-server";
8687

@@ -185,6 +186,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m
185186

186187
### Example Usage
187188

189+
<!-- UsageSnippet language="typescript" operationID="postFeatureFlag" method="post" path="/api/v2/flags/{projectKey}" -->
188190
```typescript
189191
import { LaunchDarkly } from "@launchdarkly/mcp-server";
190192

@@ -291,6 +293,7 @@ For example, `expand=evaluation` includes the `evaluation` field in the response
291293

292294
### Example Usage
293295

296+
<!-- UsageSnippet language="typescript" operationID="getFeatureFlag" method="get" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
294297
```typescript
295298
import { LaunchDarkly } from "@launchdarkly/mcp-server";
296299

@@ -1558,6 +1561,7 @@ To learn more, read [Migration flags](https://launchdarkly.com/docs/home/flags/m
15581561

15591562
### Example Usage
15601563

1564+
<!-- UsageSnippet language="typescript" operationID="patchFeatureFlag" method="patch" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
15611565
```typescript
15621566
import { LaunchDarkly } from "@launchdarkly/mcp-server";
15631567

@@ -1656,6 +1660,7 @@ Delete a feature flag in all environments. Use with caution: only delete feature
16561660

16571661
### Example Usage
16581662

1663+
<!-- UsageSnippet language="typescript" operationID="deleteFeatureFlag" method="delete" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
16591664
```typescript
16601665
import { LaunchDarkly } from "@launchdarkly/mcp-server";
16611666

examples/.env.template

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
# The SDK supports loading security credentials from environment variables
77
# with the prefix: LAUNCHDARKLY_
88
#
9-
# Example security environment variables:
10-
# LAUNCHDARKLY_API_KEY=your_api_key_here
11-
# LAUNCHDARKLY_BEARER_TOKEN=your_bearer_token_here
12-
# LAUNCHDARKLY_USERNAME=your_username_here
13-
# LAUNCHDARKLY_PASSWORD=your_password_here
14-
#
15-
# Check the SDK documentation for the exact environment variable names
16-
# required for your specific authentication method.
9+
# Security environment variables:
10+
LAUNCHDARKLY_API_KEY=your_api_key_here
11+
12+
# Debug Configuration
13+
# Enable HTTP request/response logging for debugging
14+
LAUNCHDARKLY_DEBUG=true

examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ To run an example file from the examples directory:
2424
npm run build && npx tsx example.ts
2525
```
2626

27+
## Creating new examples
28+
29+
Duplicate an existing example file, they won't be overwritten by the generation process.
30+
31+

examples/featureFlagsList.example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
44

5+
import dotenv from "dotenv";
6+
dotenv.config();
57
/**
68
* Example usage of the @launchdarkly/mcp-server SDK
79
*
810
* To run this example from the examples directory:
9-
* npm run build && npx tsx featureFlagsList.ts
11+
* npm run build && npx tsx featureFlagsList.example.ts
1012
*/
1113

1214
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -16,7 +18,7 @@ const launchDarkly = new LaunchDarkly({
1618
});
1719

1820
async function main() {
19-
const result = await launchDarkly.list({
21+
const result = await launchDarkly.featureFlags.list({
2022
projectKey: "<value>",
2123
});
2224

0 commit comments

Comments
 (0)