@moovio/sdk 25.7.2 → 25.7.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: "v2025.07.00",
52882
- sdkVersion: "25.7.2",
52883
- genVersion: "2.816.0",
52884
- userAgent: "speakeasy-sdk/typescript 25.7.2 2.816.0 v2025.07.00 @moovio/sdk"
52882
+ sdkVersion: "25.7.3",
52883
+ genVersion: "2.818.4",
52884
+ userAgent: "speakeasy-sdk/typescript 25.7.3 2.818.4 v2025.07.00 @moovio/sdk"
52885
52885
  };
52886
52886
  });
52887
52887
 
@@ -100680,7 +100680,7 @@ var init_webhooksUpdate2 = __esm(() => {
100680
100680
  function createMCPServer(deps) {
100681
100681
  const server = new McpServer({
100682
100682
  name: "Moov",
100683
- version: "25.7.2"
100683
+ version: "25.7.3"
100684
100684
  });
100685
100685
  const client = new MoovCore({
100686
100686
  security: deps.security,
@@ -102246,7 +102246,7 @@ var routes = rn({
102246
102246
  var app = Ve(routes, {
102247
102247
  name: "mcp",
102248
102248
  versionInfo: {
102249
- currentVersion: "25.7.2"
102249
+ currentVersion: "25.7.3"
102250
102250
  }
102251
102251
  });
102252
102252
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -102254,5 +102254,5 @@ export {
102254
102254
  app
102255
102255
  };
102256
102256
 
102257
- //# debugId=BBE66FD1496E959564756E2164756E21
102257
+ //# debugId=870DB9178E9F6E3164756E2164756E21
102258
102258
  //# sourceMappingURL=mcp-server.js.map