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

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.4",
52883
+ genVersion: "2.821.8",
52884
+ userAgent: "speakeasy-sdk/typescript 26.4.0-dev.4 2.821.8 v2026.04.00 @moovio/sdk"
52885
52885
  };
52886
52886
  });
52887
52887
 
@@ -63269,14 +63269,16 @@ var init_generatedby = __esm(() => {
63269
63269
  cardID: stringType().optional(),
63270
63270
  disputeID: stringType().optional(),
63271
63271
  accountID: stringType().optional(),
63272
- bankAccountID: stringType().optional()
63272
+ bankAccountID: stringType().optional(),
63273
+ invoiceID: stringType().optional()
63273
63274
  });
63274
63275
  GeneratedBy$outboundSchema = objectType({
63275
63276
  transferID: stringType().optional(),
63276
63277
  cardID: stringType().optional(),
63277
63278
  disputeID: stringType().optional(),
63278
63279
  accountID: stringType().optional(),
63279
- bankAccountID: stringType().optional()
63280
+ bankAccountID: stringType().optional(),
63281
+ invoiceID: stringType().optional()
63280
63282
  });
63281
63283
  });
63282
63284
 
@@ -100702,7 +100704,7 @@ var init_webhooksUpdate2 = __esm(() => {
100702
100704
  function createMCPServer(deps) {
100703
100705
  const server = new McpServer({
100704
100706
  name: "Moov",
100705
- version: "26.4.0-dev.1"
100707
+ version: "26.4.0-dev.4"
100706
100708
  });
100707
100709
  const client = new MoovCore({
100708
100710
  security: deps.security,
@@ -102268,7 +102270,7 @@ var routes = rn({
102268
102270
  var app = Ve(routes, {
102269
102271
  name: "mcp",
102270
102272
  versionInfo: {
102271
- currentVersion: "26.4.0-dev.1"
102273
+ currentVersion: "26.4.0-dev.4"
102272
102274
  }
102273
102275
  });
102274
102276
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -102276,5 +102278,5 @@ export {
102276
102278
  app
102277
102279
  };
102278
102280
 
102279
- //# debugId=C10AE72E4217F96764756E2164756E21
102281
+ //# debugId=9A25EAE24F73C8F864756E2164756E21
102280
102282
  //# sourceMappingURL=mcp-server.js.map