Skip to content

Commit 2674101

Browse files
authored
Merge pull request #45 from launchdarkly/REL-12444-update-speakeasy-version-and-mcp-sdk-dependencies
[REL-12444] Rel 12444 update speakeasy version and mcp sdk dependencies
2 parents 85346e0 + 5bc0347 commit 2674101

195 files changed

Lines changed: 3128 additions & 3983 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.

.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

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
!/**/*.ts
66
!/**/*.js
77
!/**/*.mjs
8-
!/**/*.json
8+
!/package.json
9+
!/jsr.json
10+
!/dist/**/*.json
11+
!/esm/**/*.json
912
!/**/*.map
1013

1114
/eslint.config.mjs

.speakeasy/gen.lock

Lines changed: 2038 additions & 421 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,27 @@ generation:
1616
requestResponseComponentNamesFeb2024: true
1717
securityFeb2025: true
1818
sharedErrorComponentsApr2025: false
19+
sharedNestedComponentsJan2026: false
20+
nameOverrideFeb2026: false
1921
auth:
2022
oAuth2ClientCredentialsEnabled: false
2123
oAuth2PasswordEnabled: false
24+
hoistGlobalSecurity: true
25+
schemas:
26+
allOfMergeStrategy: shallowMerge
27+
requestBodyFieldName: ""
28+
versioningStrategy: automatic
29+
persistentEdits: {}
2230
tests:
2331
generateTests: true
2432
generateNewTests: false
2533
skipResponseBodyAssertions: false
2634
typescript:
27-
version: 0.5.0
35+
version: 0.6.0
36+
acceptHeaderEnum: true
2837
additionalDependencies:
29-
dependencies: {}
38+
dependencies:
39+
'@modelcontextprotocol/sdk': ^1.26.0
3040
devDependencies: {}
3141
peerDependencies: {}
3242
additionalPackageJSON:
@@ -37,18 +47,25 @@ typescript:
3747
- mcp
3848
- modelcontextprotocol
3949
license: MIT
50+
additionalScripts: {}
51+
alwaysIncludeInboundAndOutbound: false
4052
author: LaunchDarkly
4153
baseErrorName: LaunchDarklyError
4254
clientServerStatusCodesAsErrors: true
43-
constFieldsAlwaysOptional: true
55+
constFieldsAlwaysOptional: false
4456
defaultErrorName: APIError
4557
enableCustomCodeRegions: false
4658
enableMCPServer: true
4759
enableReactQuery: false
4860
enumFormat: union
4961
envVarPrefix: LAUNCHDARKLY
62+
exportZodModelNamespace: false
63+
flatAdditionalProperties: false
5064
flattenGlobalSecurity: true
5165
flatteningOrder: parameters-first
66+
formStringArrayEncodeMode: encoded-string
67+
forwardCompatibleEnumsByDefault: false
68+
forwardCompatibleUnionsByDefault: "false"
5269
generateExamples: true
5370
imports:
5471
option: openapi
@@ -58,13 +75,24 @@ typescript:
5875
operations: models/operations
5976
shared: models/components
6077
webhooks: models/webhooks
78+
inferUnionDiscriminators: true
6179
inputModelSuffix: input
6280
jsonpath: rfc9535
81+
laxMode: strict
82+
legacyFileNaming: true
6383
maxMethodParams: 0
6484
methodArguments: require-security-and-request
85+
modelPropertyCasing: camel
6586
moduleFormat: dual
87+
multipartArrayFormat: legacy
6688
outputModelSuffix: output
6789
packageName: '@launchdarkly/mcp-server'
90+
preApplyUnionDiscriminators: true
91+
preserveModelFieldNames: false
6892
responseFormat: flat
93+
sseFlatResponse: false
6994
templateVersion: v2
95+
unionStrategy: left-to-right
96+
usageSDKInitImports: []
7097
useIndexModules: true
98+
zodVersion: v3

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
speakeasyVersion: 1.580.0
1+
speakeasyVersion: 1.736.1
22
sources:
33
LaunchDarkly REST API:
44
sourceNamespace: launchdarkly-rest-api
5-
sourceRevisionDigest: sha256:e9460daca409056bf8bd9ad7474280d2b3fb2814caf8468d30b7c5cd29905120
6-
sourceBlobDigest: sha256:6ef1d856d00baa2864e243c397ada749584c8ff84f23c80d6bbfceff6408756a
5+
sourceRevisionDigest: sha256:660091d01912e6441740c604153fd0de5dca3b7098818b06bdf27f928b20b4a1
6+
sourceBlobDigest: sha256:320f0be8ba411906a7ef897a0ae7c0e86119d186cb70850c014c6552e5c08f39
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:e9460daca409056bf8bd9ad7474280d2b3fb2814caf8468d30b7c5cd29905120
15-
sourceBlobDigest: sha256:6ef1d856d00baa2864e243c397ada749584c8ff84f23c80d6bbfceff6408756a
14+
sourceRevisionDigest: sha256:660091d01912e6441740c604153fd0de5dca3b7098818b06bdf27f928b20b4a1
15+
sourceBlobDigest: sha256:320f0be8ba411906a7ef897a0ae7c0e86119d186cb70850c014c6552e5c08f39
1616
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:c79c81b3b92daa903ce9891a7be03a9620e7ff79c14f604685463faef5f9c226
17+
codeSamplesRevisionDigest: sha256:462d803ace535f1c269b2831ba1f3baf7fdac6fe7289fd8cacb33ee0d57fd3a5
1818
workflow:
1919
workflowVersion: 1.0.0
20-
speakeasyVersion: 1.580.0
20+
speakeasyVersion: 1.736.1
2121
sources:
2222
LaunchDarkly REST API:
2323
inputs:

.speakeasy/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
workflowVersion: 1.0.0
2-
speakeasyVersion: 1.580.0
2+
speakeasyVersion: 1.736.1
33
sources:
44
LaunchDarkly REST API:
55
inputs:

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
219219
<details open>
220220
<summary>Available methods</summary>
221221

222-
### [aiConfigs](docs/sdks/aiconfigs/README.md)
222+
### [AiConfigs](docs/sdks/aiconfigs/README.md)
223223

224224
* [getTargeting](docs/sdks/aiconfigs/README.md#gettargeting) - Show an AI Config's targeting
225225
* [updateTargeting](docs/sdks/aiconfigs/README.md#updatetargeting) - Update AI Config targeting
@@ -233,15 +233,15 @@ 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-
### [codeReferences](docs/sdks/codereferences/README.md)
236+
### [CodeReferences](docs/sdks/codereferences/README.md)
237237

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

240-
### [environments](docs/sdks/environments/README.md)
240+
### [Environments](docs/sdks/environments/README.md)
241241

242242
* [listByProject](docs/sdks/environments/README.md#listbyproject) - List environments
243243

244-
### [featureFlags](docs/sdks/featureflags/README.md)
244+
### [FeatureFlags](docs/sdks/featureflags/README.md)
245245

246246
* [getStatus](docs/sdks/featureflags/README.md#getstatus) - Get flag status across environments
247247
* [list](docs/sdks/featureflags/README.md#list) - List feature flags
@@ -250,7 +250,6 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
250250
* [patch](docs/sdks/featureflags/README.md#patch) - Update feature flag
251251
* [delete](docs/sdks/featureflags/README.md#delete) - Delete feature flag
252252

253-
254253
</details>
255254
<!-- End Available Resources and Operations [operations] -->
256255

RUNTIMES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
44

5-
* [Web Fetch API][web-fetch]
6-
* [Web Streams API][web-streams] and in particular `ReadableStream`
7-
* [Async iterables][async-iter] using `Symbol.asyncIterator`
5+
- [Web Fetch API][web-fetch]
6+
- [Web Streams API][web-streams] and in particular `ReadableStream`
7+
- [Async iterables][async-iter] using `Symbol.asyncIterator`
88

99
[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
1010
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
@@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:
2525

2626
The following `tsconfig.json` options are recommended for projects using this
2727
SDK in order to get static type support for features like async iterables,
28-
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
28+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
2929
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
3030
so on):
3131

@@ -38,11 +38,11 @@ so on):
3838
{
3939
"compilerOptions": {
4040
"target": "es2020", // or higher
41-
"lib": ["es2020", "dom", "dom.iterable"],
41+
"lib": ["es2020", "dom", "dom.iterable"]
4242
}
4343
}
4444
```
4545

4646
While `target` can be set to older ECMAScript versions, it may result in extra,
4747
unnecessary compatibility code being generated if you are not targeting old
48-
runtimes.
48+
runtimes.

docs/sdks/aiconfigs/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# AiConfigs
2-
(*aiConfigs*)
32

43
## Overview
54

@@ -23,6 +22,7 @@ Retrieves a specific AI Config's targeting by its key
2322

2423
### Example Usage
2524

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

@@ -657,6 +657,7 @@ Here's an example:
657657

658658
### Example Usage
659659

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

@@ -757,6 +758,7 @@ Get a list of all AI Configs in the given project.
757758

758759
### Example Usage
759760

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

@@ -831,6 +833,7 @@ Create a new AI Config within the given project.
831833

832834
### Example Usage
833835

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

@@ -1019,6 +1022,7 @@ Delete an existing AI Config.
10191022

10201023
### Example Usage
10211024

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

@@ -1095,6 +1099,7 @@ Retrieve a specific AI Config by its key.
10951099

10961100
### Example Usage
10971101

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

@@ -1182,6 +1187,7 @@ Here's an example:
11821187

11831188
### Example Usage
11841189

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

@@ -1294,6 +1300,7 @@ The <code>model</code> in the request body requires a <code>modelName</code> and
12941300

12951301
### Example Usage
12961302

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

@@ -1460,6 +1467,7 @@ Delete a specific variation of an AI Config by config key and variation key.
14601467

14611468
### Example Usage
14621469

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

@@ -1538,6 +1546,7 @@ Get an AI Config variation by key. The response includes all variation versions
15381546

15391547
### Example Usage
15401548

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

@@ -1631,6 +1640,7 @@ Here's an example:
16311640

16321641
### Example Usage
16331642

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

docs/sdks/codereferences/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# CodeReferences
2-
(*codeReferences*)
32

43
## Overview
54

@@ -13,6 +12,7 @@ Get a list of connected repositories. Optionally, you can include branch metadat
1312

1413
### Example Usage
1514

15+
<!-- UsageSnippet language="typescript" operationID="getRepositories" method="get" path="/api/v2/code-refs/repositories" -->
1616
```typescript
1717
import { LaunchDarkly } from "@launchdarkly/mcp-server";
1818

0 commit comments

Comments
 (0)