@moovio/sdk 25.7.1 → 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 +11 -7
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +9 -9
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/imagemetadata.d.ts +3 -0
- package/models/components/imagemetadata.d.ts.map +1 -1
- package/models/components/imagemetadata.js.map +1 -1
- package/models/components/transfersource.d.ts +1 -1
- package/models/operations/createtransfer.d.ts +2 -2
- package/models/operations/getscheduledoccurrence.d.ts +4 -4
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/imagemetadata.ts +3 -0
- package/src/models/components/transfersource.ts +1 -1
- package/src/models/operations/createtransfer.ts +2 -2
- package/src/models/operations/getscheduledoccurrence.ts +4 -4
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
|
|
2432
|
-
|
|
2433
|
-
to
|
|
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
|
|
2441
|
-
fetcher: (
|
|
2442
|
-
|
|
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.
|
|
52883
|
-
genVersion: "2.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 25.7.
|
|
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.
|
|
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.
|
|
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=
|
|
102257
|
+
//# debugId=870DB9178E9F6E3164756E2164756E21
|
|
102258
102258
|
//# sourceMappingURL=mcp-server.js.map
|