@moovio/sdk 0.11.0 → 0.11.1

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/bin/mcp-server.js CHANGED
@@ -34207,9 +34207,9 @@ var init_config = __esm(() => {
34207
34207
  SDK_METADATA = {
34208
34208
  language: "typescript",
34209
34209
  openapiDocVersion: "latest",
34210
- sdkVersion: "0.11.0",
34211
- genVersion: "2.593.4",
34212
- userAgent: "speakeasy-sdk/typescript 0.11.0 2.593.4 latest @moovio/sdk"
34210
+ sdkVersion: "0.11.1",
34211
+ genVersion: "2.595.4",
34212
+ userAgent: "speakeasy-sdk/typescript 0.11.1 2.595.4 latest @moovio/sdk"
34213
34213
  };
34214
34214
  });
34215
34215
 
@@ -34815,26 +34815,22 @@ class ClientSDK {
34815
34815
  }
34816
34816
  cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
34817
34817
  headers.set("cookie", cookie);
34818
- const userHeaders = new Headers(options?.fetchOptions?.headers);
34818
+ const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
34819
34819
  for (const [k2, v2] of userHeaders) {
34820
34820
  headers.set(k2, v2);
34821
34821
  }
34822
34822
  if (!isBrowserLike) {
34823
34823
  headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34824
34824
  }
34825
- let fetchOptions = options?.fetchOptions;
34825
+ const fetchOptions = {
34826
+ ...options?.fetchOptions,
34827
+ ...options
34828
+ };
34826
34829
  if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
34827
34830
  const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
34828
- if (!fetchOptions) {
34829
- fetchOptions = { signal: timeoutSignal };
34830
- } else {
34831
- fetchOptions.signal = timeoutSignal;
34832
- }
34831
+ fetchOptions.signal = timeoutSignal;
34833
34832
  }
34834
34833
  if (conf.body instanceof ReadableStream) {
34835
- if (!fetchOptions) {
34836
- fetchOptions = {};
34837
- }
34838
34834
  Object.assign(fetchOptions, { duplex: "half" });
34839
34835
  }
34840
34836
  let input;
@@ -66726,7 +66722,7 @@ async function $do88(client, request, options) {
66726
66722
  const req = requestRes.value;
66727
66723
  const doResult = await client._do(req, {
66728
66724
  context,
66729
- errorCodes: ["4XX", "5XX"],
66725
+ errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
66730
66726
  retryConfig: context.retryConfig,
66731
66727
  retryCodes: context.retryCodes
66732
66728
  });
@@ -66739,7 +66735,7 @@ async function $do88(client, request, options) {
66739
66735
  };
66740
66736
  const [result] = await match(nil(204, DisablePaymentLinkResponse$inboundSchema.optional(), {
66741
66737
  hdrs: true
66742
- }), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
66738
+ }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
66743
66739
  if (!result.ok) {
66744
66740
  return [result, { status: "complete", request: req, response }];
66745
66741
  }
@@ -72307,7 +72303,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
72307
72303
  function createMCPServer(deps) {
72308
72304
  const server = new McpServer({
72309
72305
  name: "Moov",
72310
- version: "0.11.0"
72306
+ version: "0.11.1"
72311
72307
  });
72312
72308
  const client = new MoovCore({
72313
72309
  security: deps.security,
@@ -73817,7 +73813,7 @@ var routes = rn({
73817
73813
  var app = Ve(routes, {
73818
73814
  name: "mcp",
73819
73815
  versionInfo: {
73820
- currentVersion: "0.11.0"
73816
+ currentVersion: "0.11.1"
73821
73817
  }
73822
73818
  });
73823
73819
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -73825,5 +73821,5 @@ export {
73825
73821
  app
73826
73822
  };
73827
73823
 
73828
- //# debugId=E0B29D05441F0A5E64756E2164756E21
73824
+ //# debugId=09015DBEA1FFF3A164756E2164756E21
73829
73825
  //# sourceMappingURL=mcp-server.js.map