@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 +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: "v2026.04.00",
|
|
52882
|
-
sdkVersion: "26.4.0-dev.
|
|
52883
|
-
genVersion: "2.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 26.4.0-dev.
|
|
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.
|
|
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.
|
|
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=
|
|
102279
|
+
//# debugId=3F44D1C06A26B7EE64756E2164756E21
|
|
102280
102280
|
//# sourceMappingURL=mcp-server.js.map
|