@moovio/sdk 26.4.0-dev.1 → 26.4.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2428,19 +2428,23 @@ The `HTTPClient` constructor takes an optional `fetcher` argument that can be
2428
2428
  used to integrate a third-party HTTP client or when writing tests to mock out
2429
2429
  the HTTP client and feed in fixtures.
2430
2430
 
2431
- The following example shows how to use the `"beforeRequest"` hook to to add a
2432
- custom header and a timeout to requests and how to use the `"requestError"` hook
2433
- to log errors:
2431
+ The following example shows how to:
2432
+ - route requests through a proxy server using [undici](https://www.npmjs.com/package/undici)'s ProxyAgent
2433
+ - use the `"beforeRequest"` hook to add a custom header and a timeout to requests
2434
+ - use the `"requestError"` hook to log errors
2434
2435
 
2435
2436
  ```typescript
2436
2437
  import { Moov } from "@moovio/sdk";
2438
+ import { ProxyAgent } from "undici";
2437
2439
  import { HTTPClient } from "@moovio/sdk/lib/http";
2438
2440
 
2441
+ const dispatcher = new ProxyAgent("http://proxy.example.com:8080");
2442
+
2439
2443
  const httpClient = new HTTPClient({
2440
- // fetcher takes a function that has the same signature as native `fetch`.
2441
- fetcher: (request) => {
2442
- return fetch(request);
2443
- }
2444
+ // 'fetcher' takes a function that has the same signature as native 'fetch'.
2445
+ fetcher: (input, init) =>
2446
+ // 'dispatcher' is specific to undici and not part of the standard Fetch API.
2447
+ fetch(input, { ...init, dispatcher } as RequestInit),
2444
2448
  });
2445
2449
 
2446
2450
  httpClient.addHook("beforeRequest", (request) => {
package/bin/mcp-server.js CHANGED
@@ -52879,9 +52879,9 @@ var init_config = __esm(() => {
52879
52879
  SDK_METADATA = {
52880
52880
  language: "typescript",
52881
52881
  openapiDocVersion: "v2026.04.00",
52882
- sdkVersion: "26.4.0-dev.1",
52883
- genVersion: "2.811.2",
52884
- userAgent: "speakeasy-sdk/typescript 26.4.0-dev.1 2.811.2 v2026.04.00 @moovio/sdk"
52882
+ sdkVersion: "26.4.0-dev.3",
52883
+ genVersion: "2.818.4",
52884
+ userAgent: "speakeasy-sdk/typescript 26.4.0-dev.3 2.818.4 v2026.04.00 @moovio/sdk"
52885
52885
  };
52886
52886
  });
52887
52887
 
@@ -100702,7 +100702,7 @@ var init_webhooksUpdate2 = __esm(() => {
100702
100702
  function createMCPServer(deps) {
100703
100703
  const server = new McpServer({
100704
100704
  name: "Moov",
100705
- version: "26.4.0-dev.1"
100705
+ version: "26.4.0-dev.3"
100706
100706
  });
100707
100707
  const client = new MoovCore({
100708
100708
  security: deps.security,
@@ -102268,7 +102268,7 @@ var routes = rn({
102268
102268
  var app = Ve(routes, {
102269
102269
  name: "mcp",
102270
102270
  versionInfo: {
102271
- currentVersion: "26.4.0-dev.1"
102271
+ currentVersion: "26.4.0-dev.3"
102272
102272
  }
102273
102273
  });
102274
102274
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -102276,5 +102276,5 @@ export {
102276
102276
  app
102277
102277
  };
102278
102278
 
102279
- //# debugId=C10AE72E4217F96764756E2164756E21
102279
+ //# debugId=3F44D1C06A26B7EE64756E2164756E21
102280
102280
  //# sourceMappingURL=mcp-server.js.map