Skip to content

Commit b175382

Browse files
chore: 🐝 Update SDK - Generate 0.4.0 (#25)
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.580.0 Co-authored-by: speakeasybot <[email protected]>
1 parent 967346c commit b175382

File tree

167 files changed

+9455
-1413
lines changed

Some content is hidden

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

167 files changed

+9455
-1413
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/examples/node_modules
2+
.env
3+
.env.local
4+
.env.*.local
15
/models
26
/models/errors
37
/types

.speakeasy/gen.lock

Lines changed: 202 additions & 21 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: false
2121
oAuth2PasswordEnabled: false
22+
tests:
23+
generateTests: true
24+
generateNewTests: false
25+
skipResponseBodyAssertions: false
2226
typescript:
23-
version: 0.3.1
27+
version: 0.4.0
2428
additionalDependencies:
2529
dependencies: {}
2630
devDependencies: {}
@@ -34,7 +38,9 @@ typescript:
3438
- modelcontextprotocol
3539
license: MIT
3640
author: LaunchDarkly
41+
baseErrorName: LaunchDarklyError
3742
clientServerStatusCodesAsErrors: true
43+
constFieldsAlwaysOptional: true
3844
defaultErrorName: APIError
3945
enableCustomCodeRegions: false
4046
enableMCPServer: true
@@ -43,6 +49,7 @@ typescript:
4349
envVarPrefix: LAUNCHDARKLY
4450
flattenGlobalSecurity: true
4551
flatteningOrder: parameters-first
52+
generateExamples: true
4653
imports:
4754
option: openapi
4855
paths:

.speakeasy/workflow.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ sources:
66
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1752019878
910
- "2.0"
1011
targets:
1112
launchdarkly-mcp-server:
1213
source: LaunchDarkly REST API
1314
sourceNamespace: launchdarkly-rest-api
14-
sourceRevisionDigest: sha256:030c63ce6ce08a429368e5f07f4165a41a0c3e4061f4b25a48a22d85aad5f9fd
15-
sourceBlobDigest: sha256:711d86389bbe8ab1c41572b67f44e5bb3c37c8057f02f42bc7f22ea70ba0ce29
15+
sourceRevisionDigest: sha256:667150cae7854e824a91a3ea68fc1e92bdfa475bdc24a89722778a0493d53b4f
16+
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
1617
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:3d1e1645d133670bce8d835f196f728ee72c77f05a96455c954b27bb208588e5
18+
codeSamplesRevisionDigest: sha256:7088f7fcad1698616ec4a48146b51f644af8dacef407aa1e013db650dd42e42b
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ specific category of applications.
2121
```typescript
2222
import { LaunchDarklyCore } from "@launchdarkly/mcp-server/core.js";
2323
import { featureFlagsList } from "@launchdarkly/mcp-server/funcs/featureFlagsList.js";
24-
import { SDKValidationError } from "@launchdarkly/mcp-server/models/errors/sdkvalidationerror.js";
2524

2625
// Use `LaunchDarklyCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
@@ -33,28 +32,12 @@ async function run() {
3332
const res = await featureFlagsList(launchDarkly, {
3433
projectKey: "<value>",
3534
});
36-
37-
switch (true) {
38-
case res.ok:
39-
// The success case will be handled outside of the switch block
40-
break;
41-
case res.error instanceof SDKValidationError:
42-
// Pretty-print validation errors.
43-
return console.log(res.error.pretty());
44-
case res.error instanceof Error:
45-
return console.log(res.error);
46-
default:
47-
// TypeScript's type checking will fail on the following line if the above
48-
// cases were not exhaustive.
49-
res.error satisfies never;
50-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
35+
if (res.ok) {
36+
const { value: result } = res;
37+
console.log(result);
38+
} else {
39+
console.log("featureFlagsList failed:", res.error);
5140
}
52-
53-
54-
const { value: result } = res;
55-
56-
// Handle the result
57-
console.log(result);
5841
}
5942

6043
run();

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
140140

141141
### [aiConfigs](docs/sdks/aiconfigs/README.md)
142142

143+
* [getTargeting](docs/sdks/aiconfigs/README.md#gettargeting) - Show an AI Config's targeting
144+
* [updateTargeting](docs/sdks/aiconfigs/README.md#updatetargeting) - Update AI Config targeting
143145
* [list](docs/sdks/aiconfigs/README.md#list) - List AI Configs
144146
* [create](docs/sdks/aiconfigs/README.md#create) - Create new AI Config
145147
* [delete](docs/sdks/aiconfigs/README.md#delete) - Delete AI Config

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,14 @@ Based on:
6464
### Generated
6565
- [typescript v0.2.7] .
6666
### Releases
67-
- [NPM v0.2.7] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.2.7 - .
67+
- [NPM v0.2.7] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.2.7 - .
68+
69+
## 2025-07-09 00:11:03
70+
### Changes
71+
Based on:
72+
- OpenAPI Doc
73+
- Speakeasy CLI 1.580.0 (2.654.2) https://github.com/speakeasy-api/speakeasy
74+
### Generated
75+
- [typescript v0.4.0] .
76+
### Releases
77+
- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .

USAGE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ async function run() {
1111
projectKey: "<value>",
1212
});
1313

14-
// Handle the result
1514
console.log(result);
1615
}
1716

docs/models/components/access.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@
66
import { Access } from "@launchdarkly/mcp-server/models/components";
77

88
let value: Access = {
9-
denied: [
10-
{
11-
action: "<value>",
12-
reason: {
13-
resources: [
14-
"proj/*:env/*;qa_*:/flag/*",
15-
],
16-
actions: [
17-
"*",
18-
],
19-
effect: "allow",
20-
},
21-
},
22-
],
9+
denied: [],
2310
allowed: [
2411
{
2512
action: "<value>",

docs/models/components/aiconfig.md

Lines changed: 15 additions & 8 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)