diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index 003df21..a09169e 100644 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal rmdir samples || true mkdir samples -npm install -npm install -g ts-node +npm install --ignore-scripts +npm install -g ts-node --ignore-scripts npm link npm link @launchdarkly/mcp-server TS_CONFIG_CONTENT=$(cat < diff --git a/RELEASES.md b/RELEASES.md index 17609a4..2cb6821 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -74,4 +74,14 @@ Based on: ### Generated - [typescript v0.4.0] . ### Releases -- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - . \ No newline at end of file +- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - . + +## 2025-10-17 00:10:51 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.637.0 (2.727.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.5.0] . +### Releases +- [NPM v0.5.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.5.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea94..27731c3 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/sdks/aiconfigs/README.md b/docs/sdks/aiconfigs/README.md index d4ed85c..b016fb3 100644 --- a/docs/sdks/aiconfigs/README.md +++ b/docs/sdks/aiconfigs/README.md @@ -23,6 +23,7 @@ Retrieves a specific AI Config's targeting by its key ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -659,6 +660,7 @@ Here's an example: ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -761,6 +763,7 @@ Get a list of all AI Configs in the given project. ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -837,6 +840,7 @@ Create a new AI Config within the given project. ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -933,6 +937,7 @@ Delete an existing AI Config. ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1011,6 +1016,7 @@ Retrieve a specific AI Config by its key. ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1100,6 +1106,7 @@ Here's an example: ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1210,6 +1217,7 @@ The model in the request body requires a modelName and ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1326,6 +1334,7 @@ Delete a specific variation of an AI Config by config key and variation key. ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1406,6 +1415,7 @@ Get an AI Config variation by key. The response includes all variation versions ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1501,6 +1511,7 @@ Here's an example: ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; diff --git a/docs/sdks/featureflags/README.md b/docs/sdks/featureflags/README.md index 09588dd..ffb64df 100644 --- a/docs/sdks/featureflags/README.md +++ b/docs/sdks/featureflags/README.md @@ -81,6 +81,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -185,6 +186,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -291,6 +293,7 @@ For example, `expand=evaluation` includes the `evaluation` field in the response ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1558,6 +1561,7 @@ To learn more, read [Migration flags](https://launchdarkly.com/docs/home/flags/m ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -1656,6 +1660,7 @@ Delete a feature flag in all environments. Use with caution: only delete feature ### Example Usage + ```typescript import { LaunchDarkly } from "@launchdarkly/mcp-server"; diff --git a/docs/sdks/launchdarkly/README.md b/docs/sdks/launchdarkly/README.md deleted file mode 100644 index a700903..0000000 --- a/docs/sdks/launchdarkly/README.md +++ /dev/null @@ -1,430 +0,0 @@ -# LaunchDarkly SDK - -## Overview - -LaunchDarkly REST API: This documentation describes LaunchDarkly's REST API. - -To access the complete OpenAPI spec directly, use [Get OpenAPI spec](https://launchdarkly.com/docs/api/other/get-openapi-spec). - -## Authentication - -LaunchDarkly's REST API uses the HTTPS protocol with a minimum TLS version of 1.2. - -All REST API resources are authenticated with either [personal or service access tokens](https://launchdarkly.com/docs/home/account/api), or session cookies. Other authentication mechanisms are not supported. You can manage personal access tokens on your [**Authorization**](https://app.launchdarkly.com/settings/authorization) page in the LaunchDarkly UI. - -LaunchDarkly also has SDK keys, mobile keys, and client-side IDs that are used by our server-side SDKs, mobile SDKs, and JavaScript-based SDKs, respectively. **These keys cannot be used to access our REST API**. These keys are environment-specific, and can only perform read-only operations such as fetching feature flag settings. - -| Auth mechanism | Allowed resources | Use cases | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------- | -| [Personal or service access tokens](https://launchdarkly.com/docs/home/account/api) | Can be customized on a per-token basis | Building scripts, custom integrations, data export. | -| SDK keys | Can only access read-only resources specific to server-side SDKs. Restricted to a single environment. | Server-side SDKs | -| Mobile keys | Can only access read-only resources specific to mobile SDKs, and only for flags marked available to mobile keys. Restricted to a single environment. | Mobile SDKs | -| Client-side ID | Can only access read-only resources specific to JavaScript-based client-side SDKs, and only for flags marked available to client-side. Restricted to a single environment. | Client-side JavaScript | - -> #### Keep your access tokens and SDK keys private -> -> Access tokens should _never_ be exposed in untrusted contexts. Never put an access token in client-side JavaScript, or embed it in a mobile application. LaunchDarkly has special mobile keys that you can embed in mobile apps. If you accidentally expose an access token or SDK key, you can reset it from your [**Authorization**](https://app.launchdarkly.com/settings/authorization) page. -> -> The client-side ID is safe to embed in untrusted contexts. It's designed for use in client-side JavaScript. - -### Authentication using request header - -The preferred way to authenticate with the API is by adding an `Authorization` header containing your access token to your requests. The value of the `Authorization` header must be your access token. - -Manage personal access tokens from the [**Authorization**](https://app.launchdarkly.com/settings/authorization) page. - -### Authentication using session cookie - -For testing purposes, you can make API calls directly from your web browser. If you are logged in to the LaunchDarkly application, the API will use your existing session to authenticate calls. - -Depending on the permissions granted as part of your [role](https://launchdarkly.com/docs/home/account/roles), you may not have permission to perform some API calls. You will receive a `401` response code in that case. - -> ### Modifying the Origin header causes an error -> -> LaunchDarkly validates that the Origin header for any API request authenticated by a session cookie matches the expected Origin header. The expected Origin header is `https://app.launchdarkly.com`. -> -> If the Origin header does not match what's expected, LaunchDarkly returns an error. This error can prevent the LaunchDarkly app from working correctly. -> -> Any browser extension that intentionally changes the Origin header can cause this problem. For example, the `Allow-Control-Allow-Origin: *` Chrome extension changes the Origin header to `http://evil.com` and causes the app to fail. -> -> To prevent this error, do not modify your Origin header. -> -> LaunchDarkly does not require origin matching when authenticating with an access token, so this issue does not affect normal API usage. - -## Representations - -All resources expect and return JSON response bodies. Error responses also send a JSON body. To learn more about the error format of the API, read [Errors](https://launchdarkly.com/docs/api#errors). - -In practice this means that you always get a response with a `Content-Type` header set to `application/json`. - -In addition, request bodies for `PATCH`, `POST`, and `PUT` requests must be encoded as JSON with a `Content-Type` header set to `application/json`. - -### Summary and detailed representations - -When you fetch a list of resources, the response includes only the most important attributes of each resource. This is a _summary representation_ of the resource. When you fetch an individual resource, such as a single feature flag, you receive a _detailed representation_ of the resource. - -The best way to find a detailed representation is to follow links. Every summary representation includes a link to its detailed representation. - -### Expanding responses - -Sometimes the detailed representation of a resource does not include all of the attributes of the resource by default. If this is the case, the request method will clearly document this and describe which attributes you can include in an expanded response. - -To include the additional attributes, append the `expand` request parameter to your request and add a comma-separated list of the attributes to include. For example, when you append `?expand=members,maintainers` to the [Get team](https://launchdarkly.com/docs/api/teams/get-team) endpoint, the expanded response includes both of these attributes. - -### Links and addressability - -The best way to navigate the API is by following links. These are attributes in representations that link to other resources. The API always uses the same format for links: - -- Links to other resources within the API are encapsulated in a `_links` object -- If the resource has a corresponding link to HTML content on the site, it is stored in a special `_site` link - -Each link has two attributes: - -- An `href`, which contains the URL -- A `type`, which describes the content type - -For example, a feature resource might return the following: - -```json -{ - "_links": { - "parent": { - "href": "/api/features", - "type": "application/json" - }, - "self": { - "href": "/api/features/sort.order", - "type": "application/json" - } - }, - "_site": { - "href": "/features/sort.order", - "type": "text/html" - } -} -``` - -From this, you can navigate to the parent collection of features by following the `parent` link, or navigate to the site page for the feature by following the `_site` link. - -Collections are always represented as a JSON object with an `items` attribute containing an array of representations. Like all other representations, collections have `_links` defined at the top level. - -Paginated collections include `first`, `last`, `next`, and `prev` links containing a URL with the respective set of elements in the collection. - -## Updates - -Resources that accept partial updates use the `PATCH` verb. Most resources support the [JSON patch](https://launchdarkly.com/docs/api#updates-using-json-patch) format. Some resources also support the [JSON merge patch](https://launchdarkly.com/docs/api#updates-using-json-merge-patch) format, and some resources support the [semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch) format, which is a way to specify the modifications to perform as a set of executable instructions. Each resource supports optional [comments](https://launchdarkly.com/docs/api#updates-with-comments) that you can submit with updates. Comments appear in outgoing webhooks, the audit log, and other integrations. - -When a resource supports both JSON patch and semantic patch, we document both in the request method. However, the specific request body fields and descriptions included in our documentation only match one type of patch or the other. - -### Updates using JSON patch - -[JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) is a way to specify the modifications to perform on a resource. JSON patch uses paths and a limited set of operations to describe how to transform the current state of the resource into a new state. JSON patch documents are always arrays, where each element contains an operation, a path to the field to update, and the new value. - -For example, in this feature flag representation: - -```json -{ - "name": "New recommendations engine", - "key": "engine.enable", - "description": "This is the description", - ... -} -``` -You can change the feature flag's description with the following patch document: - -```json -[{ "op": "replace", "path": "/description", "value": "This is the new description" }] -``` - -You can specify multiple modifications to perform in a single request. You can also test that certain preconditions are met before applying the patch: - -```json -[ - { "op": "test", "path": "/version", "value": 10 }, - { "op": "replace", "path": "/description", "value": "The new description" } -] -``` - -The above patch request tests whether the feature flag's `version` is `10`, and if so, changes the feature flag's description. - -Attributes that are not editable, such as a resource's `_links`, have names that start with an underscore. - -### Updates using JSON merge patch - -[JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) is another format for specifying the modifications to perform on a resource. JSON merge patch is less expressive than JSON patch. However, in many cases it is simpler to construct a merge patch document. For example, you can change a feature flag's description with the following merge patch document: - -```json -{ - "description": "New flag description" -} -``` - -### Updates using semantic patch - -Some resources support the semantic patch format. A semantic patch is a way to specify the modifications to perform on a resource as a set of executable instructions. - -Semantic patch allows you to be explicit about intent using precise, custom instructions. In many cases, you can define semantic patch instructions independently of the current state of the resource. This can be useful when defining a change that may be applied at a future date. - -To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. - -Here's how: - -``` -Content-Type: application/json; domain-model=launchdarkly.semanticpatch -``` - -If you call a semantic patch resource without this header, you will receive a `400` response because your semantic patch will be interpreted as a JSON patch. - -The body of a semantic patch request takes the following properties: - -* `comment` (string): (Optional) A description of the update. -* `environmentKey` (string): (Required for some resources only) The environment key. -* `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the instruction requires parameters, you must include those parameters as additional fields in the object. The documentation for each resource that supports semantic patch includes the available instructions and any additional parameters. - -For example: - -```json -{ - "comment": "optional comment", - "instructions": [ {"kind": "turnFlagOn"} ] -} -``` - -Semantic patches are not applied partially; either all of the instructions are applied or none of them are. If **any** instruction is invalid, the endpoint returns an error and will not change the resource. If all instructions are valid, the request succeeds and the resources are updated if necessary, or left unchanged if they are already in the state you request. - -### Updates with comments - -You can submit optional comments with `PATCH` changes. - -To submit a comment along with a JSON patch document, use the following format: - -```json -{ - "comment": "This is a comment string", - "patch": [{ "op": "replace", "path": "/description", "value": "The new description" }] -} -``` - -To submit a comment along with a JSON merge patch document, use the following format: - -```json -{ - "comment": "This is a comment string", - "merge": { "description": "New flag description" } -} -``` - -To submit a comment along with a semantic patch, use the following format: - -```json -{ - "comment": "This is a comment string", - "instructions": [ {"kind": "turnFlagOn"} ] -} -``` - -## Errors - -The API always returns errors in a common format. Here's an example: - -```json -{ - "code": "invalid_request", - "message": "A feature with that key already exists", - "id": "30ce6058-87da-11e4-b116-123b93f75cba" -} -``` - -The `code` indicates the general class of error. The `message` is a human-readable explanation of what went wrong. The `id` is a unique identifier. Use it when you're working with LaunchDarkly Support to debug a problem with a specific API call. - -### HTTP status error response codes - -| Code | Definition | Description | Possible Solution | -| ---- | ----------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | -| 400 | Invalid request | The request cannot be understood. | Ensure JSON syntax in request body is correct. | -| 401 | Invalid access token | Requestor is unauthorized or does not have permission for this API call. | Ensure your API access token is valid and has the appropriate permissions. | -| 403 | Forbidden | Requestor does not have access to this resource. | Ensure that the account member or access token has proper permissions set. | -| 404 | Invalid resource identifier | The requested resource is not valid. | Ensure that the resource is correctly identified by ID or key. | -| 405 | Method not allowed | The request method is not allowed on this resource. | Ensure that the HTTP verb is correct. | -| 409 | Conflict | The API request can not be completed because it conflicts with a concurrent API request. | Retry your request. | -| 422 | Unprocessable entity | The API request can not be completed because the update description can not be understood. | Ensure that the request body is correct for the type of patch you are using, either JSON patch or semantic patch. -| 429 | Too many requests | Read [Rate limiting](https://launchdarkly.com/docs/api#rate-limiting). | Wait and try again later. | - -## CORS - -The LaunchDarkly API supports Cross Origin Resource Sharing (CORS) for AJAX requests from any origin. If an `Origin` header is given in a request, it will be echoed as an explicitly allowed origin. Otherwise the request returns a wildcard, `Access-Control-Allow-Origin: *`. For more information on CORS, read the [CORS W3C Recommendation](http://www.w3.org/TR/cors). Example CORS headers might look like: - -```http -Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, Authorization -Access-Control-Allow-Methods: OPTIONS, GET, DELETE, PATCH -Access-Control-Allow-Origin: * -Access-Control-Max-Age: 300 -``` - -You can make authenticated CORS calls just as you would make same-origin calls, using either [token or session-based authentication](https://launchdarkly.com/docs/api#authentication). If you are using session authentication, you should set the `withCredentials` property for your `xhr` request to `true`. You should never expose your access tokens to untrusted entities. - -## Rate limiting - -We use several rate limiting strategies to ensure the availability of our APIs. Rate-limited calls to our APIs return a `429` status code. Calls to our APIs include headers indicating the current rate limit status. The specific headers returned depend on the API route being called. The limits differ based on the route, authentication mechanism, and other factors. Routes that are not rate limited may not contain any of the headers described below. - -> ### Rate limiting and SDKs -> -> LaunchDarkly SDKs are never rate limited and do not use the API endpoints defined here. LaunchDarkly uses a different set of approaches, including streaming/server-sent events and a global CDN, to ensure availability to the routes used by LaunchDarkly SDKs. - -### Global rate limits - -Authenticated requests are subject to a global limit. This is the maximum number of calls that your account can make to the API per ten seconds. All service and personal access tokens on the account share this limit, so exceeding the limit with one access token will impact other tokens. Calls that are subject to global rate limits may return the headers below: - -| Header name | Description | -| ------------------------------ | -------------------------------------------------------------------------------- | -| `X-Ratelimit-Global-Remaining` | The maximum number of requests the account is permitted to make per ten seconds. | -| `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | - -We do not publicly document the specific number of calls that can be made globally. This limit may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limit. - -### Route-level rate limits - -Some authenticated routes have custom rate limits. These also reset every ten seconds. Any service or personal access tokens hitting the same route share this limit, so exceeding the limit with one access token may impact other tokens. Calls that are subject to route-level rate limits return the headers below: - -| Header name | Description | -| ----------------------------- | ----------------------------------------------------------------------------------------------------- | -| `X-Ratelimit-Route-Remaining` | The maximum number of requests to the current route the account is permitted to make per ten seconds. | -| `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | - -A _route_ represents a specific URL pattern and verb. For example, the [Delete environment](https://launchdarkly.com/docs/api/environments/delete-environment) endpoint is considered a single route, and each call to delete an environment counts against your route-level rate limit for that route. - -We do not publicly document the specific number of calls that an account can make to each endpoint per ten seconds. These limits may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limits. - -### IP-based rate limiting - -We also employ IP-based rate limiting on some API routes. If you hit an IP-based rate limit, your API response will include a `Retry-After` header indicating how long to wait before re-trying the call. Clients must wait at least `Retry-After` seconds before making additional calls to our API, and should employ jitter and backoff strategies to avoid triggering rate limits again. - -## OpenAPI (Swagger) and client libraries - -We have a [complete OpenAPI (Swagger) specification](https://app.launchdarkly.com/api/v2/openapi.json) for our API. - -We auto-generate multiple client libraries based on our OpenAPI specification. To learn more, visit the [collection of client libraries on GitHub](https://github.com/search?q=topic%3Alaunchdarkly-api+org%3Alaunchdarkly&type=Repositories). You can also use this specification to generate client libraries to interact with our REST API in your language of choice. - -Our OpenAPI specification is supported by several API-based tools such as Postman and Insomnia. In many cases, you can directly import our specification to explore our APIs. - -## Method overriding - -Some firewalls and HTTP clients restrict the use of verbs other than `GET` and `POST`. In those environments, our API endpoints that use `DELETE`, `PATCH`, and `PUT` verbs are inaccessible. - -To avoid this issue, our API supports the `X-HTTP-Method-Override` header, allowing clients to "tunnel" `DELETE`, `PATCH`, and `PUT` requests using a `POST` request. - -For example, to call a `PATCH` endpoint using a `POST` request, you can include `X-HTTP-Method-Override:PATCH` as a header. - -## Beta resources - -We sometimes release new API resources in **beta** status before we release them with general availability. - -Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. - -We try to promote resources into general availability as quickly as possible. This happens after sufficient testing and when we're satisfied that we no longer need to make backwards-incompatible changes. - -We mark beta resources with a "Beta" callout in our documentation, pictured below: - -> ### This feature is in beta -> -> To use this feature, pass in a header including the `LD-API-Version` key with value set to `beta`. Use this header with each call. To learn more, read [Beta resources](https://launchdarkly.com/docs/api#beta-resources). -> -> Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. - -### Using beta resources - -To use a beta resource, you must include a header in the request. If you call a beta resource without this header, you receive a `403` response. - -Use this header: - -``` -LD-API-Version: beta -``` - -## Federal environments - -The version of LaunchDarkly that is available on domains controlled by the United States government is different from the version of LaunchDarkly available to the general public. If you are an employee or contractor for a United States federal agency and use LaunchDarkly in your work, you likely use the federal instance of LaunchDarkly. - -If you are working in the federal instance of LaunchDarkly, the base URI for each request is `https://app.launchdarkly.us`. - -To learn more, read [LaunchDarkly in federal environments](https://launchdarkly.com/docs/home/infrastructure/federal). - -## Versioning - -We try hard to keep our REST API backwards compatible, but we occasionally have to make backwards-incompatible changes in the process of shipping new features. These breaking changes can cause unexpected behavior if you don't prepare for them accordingly. - -Updates to our REST API include support for the latest features in LaunchDarkly. We also release a new version of our REST API every time we make a breaking change. We provide simultaneous support for multiple API versions so you can migrate from your current API version to a new version at your own pace. - -### Setting the API version per request - -You can set the API version on a specific request by sending an `LD-API-Version` header, as shown in the example below: - -``` -LD-API-Version: 20240415 -``` - -The header value is the version number of the API version you would like to request. The number for each version corresponds to the date the version was released in `yyyymmdd` format. In the example above the version `20240415` corresponds to April 15, 2024. - -### Setting the API version per access token - -When you create an access token, you must specify a specific version of the API to use. This ensures that integrations using this token cannot be broken by version changes. - -Tokens created before versioning was released have their version set to `20160426`, which is the version of the API that existed before the current versioning scheme, so that they continue working the same way they did before versioning. - -If you would like to upgrade your integration to use a new API version, you can explicitly set the header described above. - -> ### Best practice: Set the header for every client or integration -> -> We recommend that you set the API version header explicitly in any client or integration you build. -> -> Only rely on the access token API version during manual testing. - -### API version changelog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VersionChangesEnd of life (EOL)
`20240415` -
  • Changed several endpoints from unpaginated to paginated. Use the `limit` and `offset` query parameters to page through the results.
  • Changed the [list access tokens](https://launchdarkly.com/docs/api/access-tokens/get-tokens) endpoint:
    • Response is now paginated with a default limit of `25`
  • Changed the [list account members](https://launchdarkly.com/docs/api/account-members/get-members) endpoint:
    • The `accessCheck` filter is no longer available
  • Changed the [list custom roles](https://launchdarkly.com/docs/api/custom-roles/get-custom-roles) endpoint:
    • Response is now paginated with a default limit of `20`
  • Changed the [list feature flags](https://launchdarkly.com/docs/api/feature-flags/get-feature-flags) endpoint:
    • Response is now paginated with a default limit of `20`
    • The `environments` field is now only returned if the request is filtered by environment, using the `filterEnv` query parameter
    • The `followerId`, `hasDataExport`, `status`, `contextKindTargeted`, and `segmentTargeted` filters are no longer available
    • The `compare` query parameter is no longer available
  • Changed the [list segments](https://launchdarkly.com/docs/api/segments/get-segments) endpoint:
    • Response is now paginated with a default limit of `20`
  • Changed the [list teams](https://launchdarkly.com/docs/api/teams/get-teams) endpoint:
    • The `expand` parameter no longer supports including `projects` or `roles`
    • In paginated results, the maximum page size is now 100
  • Changed the [get workflows](https://launchdarkly.com/docs/api/workflows/get-workflows) endpoint:
    • Response is now paginated with a default limit of `20`
    • The `_conflicts` field in the response is no longer available
-
Current
`20220603` -
  • Changed the [list projects](https://launchdarkly.com/docs/api/projects/get-projects) return value:
    • Response is now paginated with a default limit of `20`.
    • Added support for filter and sort.
    • The project `environments` field is now expandable. This field is omitted by default.
  • Changed the [get project](https://launchdarkly.com/docs/api/projects/get-project) return value:
    • The `environments` field is now expandable. This field is omitted by default.
-
2025-04-15
`20210729` -
  • Changed the [create approval request](https://launchdarkly.com/docs/api/approvals/post-approval-request) return value. It now returns HTTP Status Code `201` instead of `200`.
  • Changed the [get user](https://launchdarkly.com/docs/api/users/get-user) return value. It now returns a user record, not a user.
  • Added additional optional fields to environment, segments, flags, members, and segments, including the ability to create big segments.
  • Added default values for flag variations when new environments are created.
  • Added filtering and pagination for getting flags and members, including `limit`, `number`, `filter`, and `sort` query parameters.
  • Added endpoints for expiring user targets for flags and segments, scheduled changes, access tokens, Relay Proxy configuration, integrations and subscriptions, and approvals.
-
2023-06-03
`20191212` -
  • [List feature flags](https://launchdarkly.com/docs/api/feature-flags/get-feature-flags) now defaults to sending summaries of feature flag configurations, equivalent to setting the query parameter `summary=true`. Summaries omit flag targeting rules and individual user targets from the payload.
  • Added endpoints for flags, flag status, projects, environments, audit logs, members, users, custom roles, segments, usage, streams, events, and data export.
-
2022-07-29
`20160426` -
  • Initial versioning of API. Tokens created before versioning have their version set to this.
-
2020-12-12
- -To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL) Policy](https://launchdarkly.com/policies/end-of-life-policy/). - - -### Available Operations diff --git a/examples/.env.template b/examples/.env.template index 3067dcd..0b6d089 100644 --- a/examples/.env.template +++ b/examples/.env.template @@ -6,11 +6,9 @@ # The SDK supports loading security credentials from environment variables # with the prefix: LAUNCHDARKLY_ # -# Example security environment variables: -# LAUNCHDARKLY_API_KEY=your_api_key_here -# LAUNCHDARKLY_BEARER_TOKEN=your_bearer_token_here -# LAUNCHDARKLY_USERNAME=your_username_here -# LAUNCHDARKLY_PASSWORD=your_password_here -# -# Check the SDK documentation for the exact environment variable names -# required for your specific authentication method. +# Security environment variables: +LAUNCHDARKLY_API_KEY=your_api_key_here + +# Debug Configuration +# Enable HTTP request/response logging for debugging +LAUNCHDARKLY_DEBUG=true diff --git a/examples/README.md b/examples/README.md index a7a9494..37d8dd4 100644 --- a/examples/README.md +++ b/examples/README.md @@ -24,3 +24,8 @@ To run an example file from the examples directory: npm run build && npx tsx example.ts ``` +## Creating new examples + +Duplicate an existing example file, they won't be overwritten by the generation process. + + diff --git a/examples/featureFlagsList.example.ts b/examples/featureFlagsList.example.ts index aa9fd70..9ee370a 100644 --- a/examples/featureFlagsList.example.ts +++ b/examples/featureFlagsList.example.ts @@ -2,11 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import dotenv from "dotenv"; +dotenv.config(); /** * Example usage of the @launchdarkly/mcp-server SDK * * To run this example from the examples directory: - * npm run build && npx tsx featureFlagsList.ts + * npm run build && npx tsx featureFlagsList.example.ts */ import { LaunchDarkly } from "@launchdarkly/mcp-server"; @@ -16,7 +18,7 @@ const launchDarkly = new LaunchDarkly({ }); async function main() { - const result = await launchDarkly.list({ + const result = await launchDarkly.featureFlags.list({ projectKey: "", }); diff --git a/examples/package-lock.json b/examples/package-lock.json index 540f2aa..2f3cfed 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,8 +18,11 @@ }, "..": { "name": "@launchdarkly/mcp-server", - "version": "0.4.0", + "version": "0.5.0", "license": "MIT", + "dependencies": { + "zod": "^3.20.0" + }, "bin": { "mcp": "bin/mcp-server.js" }, @@ -34,13 +37,11 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": ">= 3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { diff --git a/jsr.json b/jsr.json index bebea31..3d2f03b 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@launchdarkly/mcp-server", - "version": "0.4.0", + "version": "0.5.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index daee7a0..038c25a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,16 @@ { "name": "@launchdarkly/mcp-server", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@launchdarkly/mcp-server", - "version": "0.4.0", + "version": "0.5.0", "license": "MIT", + "dependencies": { + "zod": "^3.20.0" + }, "bin": { "mcp": "bin/mcp-server.js" }, @@ -22,13 +25,11 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": ">= 3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { @@ -3995,7 +3996,6 @@ "version": "3.25.17", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.17.tgz", "integrity": "sha512-8hQzQ/kMOIFbwOgPrm9Sf9rtFHpFUMy4HvN0yEB0spw14aYi0uT5xG5CE2DB9cd51GWNsz+DNO7se1kztHMKnw==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index 477f7e1..5168c5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@launchdarkly/mcp-server", - "version": "0.4.0", + "version": "0.5.0", "author": "LaunchDarkly", "keywords": [ "feature-flags", @@ -41,8 +41,7 @@ "prepublishOnly": "npm run build" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": ">= 3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { @@ -60,11 +59,12 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" + }, + "dependencies": { + "zod": "^3.20.0" }, - "dependencies": {}, "exports": { ".": { "import": { diff --git a/src/funcs/aiConfigsCreate.ts b/src/funcs/aiConfigsCreate.ts index 00a9f04..e22dec8 100644 --- a/src/funcs/aiConfigsCreate.ts +++ b/src/funcs/aiConfigsCreate.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postAIConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsCreateVariation.ts b/src/funcs/aiConfigsCreateVariation.ts index 93d0341..35a26a7 100644 --- a/src/funcs/aiConfigsCreateVariation.ts +++ b/src/funcs/aiConfigsCreateVariation.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postAIConfigVariation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsDelete.ts b/src/funcs/aiConfigsDelete.ts index 83272c7..7a7b210 100644 --- a/src/funcs/aiConfigsDelete.ts +++ b/src/funcs/aiConfigsDelete.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteAIConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsDeleteVariation.ts b/src/funcs/aiConfigsDeleteVariation.ts index 42f943e..7413e70 100644 --- a/src/funcs/aiConfigsDeleteVariation.ts +++ b/src/funcs/aiConfigsDeleteVariation.ts @@ -126,7 +126,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteAIConfigVariation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsGet.ts b/src/funcs/aiConfigsGet.ts index 358dff6..6fc14b5 100644 --- a/src/funcs/aiConfigsGet.ts +++ b/src/funcs/aiConfigsGet.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAIConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsGetTargeting.ts b/src/funcs/aiConfigsGetTargeting.ts index d032039..1d837bd 100644 --- a/src/funcs/aiConfigsGetTargeting.ts +++ b/src/funcs/aiConfigsGetTargeting.ts @@ -122,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAIConfigTargeting", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsGetVariation.ts b/src/funcs/aiConfigsGetVariation.ts index 842c217..d0b8e84 100644 --- a/src/funcs/aiConfigsGetVariation.ts +++ b/src/funcs/aiConfigsGetVariation.ts @@ -126,7 +126,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAIConfigVariation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsList.ts b/src/funcs/aiConfigsList.ts index fe3c13a..769b841 100644 --- a/src/funcs/aiConfigsList.ts +++ b/src/funcs/aiConfigsList.ts @@ -124,7 +124,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAIConfigs", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsUpdate.ts b/src/funcs/aiConfigsUpdate.ts index b555039..a685b2b 100644 --- a/src/funcs/aiConfigsUpdate.ts +++ b/src/funcs/aiConfigsUpdate.ts @@ -132,7 +132,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "patchAIConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsUpdateTargeting.ts b/src/funcs/aiConfigsUpdateTargeting.ts index 2228472..bf6833f 100644 --- a/src/funcs/aiConfigsUpdateTargeting.ts +++ b/src/funcs/aiConfigsUpdateTargeting.ts @@ -682,7 +682,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "patchAIConfigTargeting", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiConfigsUpdateVariation.ts b/src/funcs/aiConfigsUpdateVariation.ts index 61681e2..e052cea 100644 --- a/src/funcs/aiConfigsUpdateVariation.ts +++ b/src/funcs/aiConfigsUpdateVariation.ts @@ -143,7 +143,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "patchAIConfigVariation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/featureFlagsCreate.ts b/src/funcs/featureFlagsCreate.ts index d88c49f..f11df3a 100644 --- a/src/funcs/featureFlagsCreate.ts +++ b/src/funcs/featureFlagsCreate.ts @@ -147,7 +147,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postFeatureFlag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/featureFlagsDelete.ts b/src/funcs/featureFlagsDelete.ts index 70269d1..1c52fee 100644 --- a/src/funcs/featureFlagsDelete.ts +++ b/src/funcs/featureFlagsDelete.ts @@ -122,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteFeatureFlag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/featureFlagsGet.ts b/src/funcs/featureFlagsGet.ts index 57815d2..865cb4a 100644 --- a/src/funcs/featureFlagsGet.ts +++ b/src/funcs/featureFlagsGet.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getFeatureFlag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/featureFlagsList.ts b/src/funcs/featureFlagsList.ts index 67448e3..f3cc79e 100644 --- a/src/funcs/featureFlagsList.ts +++ b/src/funcs/featureFlagsList.ts @@ -194,7 +194,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getFeatureFlags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/featureFlagsPatch.ts b/src/funcs/featureFlagsPatch.ts index 9887ab8..3585992 100644 --- a/src/funcs/featureFlagsPatch.ts +++ b/src/funcs/featureFlagsPatch.ts @@ -1319,7 +1319,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "patchFeatureFlag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/lib/config.ts b/src/lib/config.ts index ca204dd..2c13a9b 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "2.0", - sdkVersion: "0.4.0", - genVersion: "2.654.2", + sdkVersion: "0.5.0", + genVersion: "2.727.4", userAgent: - "speakeasy-sdk/typescript 0.4.0 2.654.2 2.0 @launchdarkly/mcp-server", + "speakeasy-sdk/typescript 0.5.0 2.727.4 2.0 @launchdarkly/mcp-server", } as const; diff --git a/src/lib/env.ts b/src/lib/env.ts index 767ec24..96fdadc 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -18,6 +18,18 @@ export const envSchema: z.ZodType = z.object({ LAUNCHDARKLY_DEBUG: z.coerce.boolean().optional(), }); +/** + * Checks for the existence of the Deno global object to determine the environment. + * @returns {boolean} True if the runtime is Deno, false otherwise. + */ +function isDeno() { + if ("Deno" in globalThis) { + return true; + } + + return false; +} + let envMemo: Env | undefined = undefined; /** * Reads and validates environment variables. @@ -27,9 +39,14 @@ export function env(): Env { return envMemo; } - envMemo = envSchema.parse( - dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {}, - ); + let envObject: Record = {}; + if (isDeno()) { + envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {}; + } else { + envObject = dlv(globalThis, "process.env") ?? {}; + } + + envMemo = envSchema.parse(envObject); return envMemo; } diff --git a/src/lib/security.ts b/src/lib/security.ts index 95c964b..55fe2f1 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -84,7 +84,10 @@ type SecurityInputOAuth2 = { type SecurityInputOAuth2ClientCredentials = { type: "oauth2:client_credentials"; value: - | { clientID?: string | undefined; clientSecret?: string | undefined } + | { + clientID?: string | undefined; + clientSecret?: string | undefined; + } | null | string | undefined; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356..f3a8de6 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index f2be119..d8eee5c 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.4.0", + currentVersion: "0.5.0", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 12d9022..90ebd16 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -40,7 +40,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "LaunchDarkly", - version: "0.4.0", + version: "0.5.0", }); const client = new LaunchDarklyCore({ diff --git a/src/models/components/aiconfigtargetingvariationvalue.ts b/src/models/components/aiconfigtargetingvariationvalue.ts index 4e5ce43..ab36893 100644 --- a/src/models/components/aiconfigtargetingvariationvalue.ts +++ b/src/models/components/aiconfigtargetingvariationvalue.ts @@ -14,8 +14,8 @@ import { } from "./aiconfigtargetingvariationjson.js"; export type AIConfigTargetingVariationValue = - | AIConfigTargetingVariationJSON | boolean + | AIConfigTargetingVariationJSON | number | string; @@ -25,16 +25,16 @@ export const AIConfigTargetingVariationValue$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - AIConfigTargetingVariationJSON$inboundSchema, z.boolean(), + AIConfigTargetingVariationJSON$inboundSchema, z.number(), z.string(), ]); /** @internal */ export type AIConfigTargetingVariationValue$Outbound = - | AIConfigTargetingVariationJSON$Outbound | boolean + | AIConfigTargetingVariationJSON$Outbound | number | string; @@ -44,8 +44,8 @@ export const AIConfigTargetingVariationValue$outboundSchema: z.ZodType< z.ZodTypeDef, AIConfigTargetingVariationValue > = z.union([ - AIConfigTargetingVariationJSON$outboundSchema, z.boolean(), + AIConfigTargetingVariationJSON$outboundSchema, z.number(), z.string(), ]); diff --git a/src/models/errors/index.ts b/src/models/errors/index.ts index ce6d082..32fdd22 100644 --- a/src/models/errors/index.ts +++ b/src/models/errors/index.ts @@ -7,6 +7,7 @@ export * from "./error.js"; export * from "./forbiddenerrorrep.js"; export * from "./httpclienterrors.js"; export * from "./invalidrequesterrorrep.js"; +export * from "./launchdarklyerror.js"; export * from "./methodnotallowederrorrep.js"; export * from "./notfounderrorrep.js"; export * from "./ratelimitederrorrep.js";