@moovio/sdk 0.5.4 → 0.6.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/README.md +19 -8
- package/bin/mcp-server.js +488 -106
- package/bin/mcp-server.js.map +18 -12
- package/docs/sdks/transfers/README.md +185 -0
- package/funcs/transfersCreateCancellation.d.ts +17 -0
- package/funcs/transfersCreateCancellation.d.ts.map +1 -0
- package/funcs/transfersCreateCancellation.js +128 -0
- package/funcs/transfersCreateCancellation.js.map +1 -0
- package/funcs/transfersGetCancellation.d.ts +16 -0
- package/funcs/transfersGetCancellation.d.ts.map +1 -0
- package/funcs/transfersGetCancellation.js +131 -0
- package/funcs/transfersGetCancellation.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +9 -0
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +1 -0
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +2 -0
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts +1 -0
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +7 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersCreateCancellation.d.ts +8 -0
- package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -0
- package/mcp-server/tools/transfersCreateCancellation.js +65 -0
- package/mcp-server/tools/transfersCreateCancellation.js.map +1 -0
- package/mcp-server/tools/transfersGetCancellation.d.ts +8 -0
- package/mcp-server/tools/transfersGetCancellation.d.ts.map +1 -0
- package/mcp-server/tools/transfersGetCancellation.js +65 -0
- package/mcp-server/tools/transfersGetCancellation.js.map +1 -0
- package/mcp-server/tools.d.ts +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -1
- package/mcp-server/tools.js.map +1 -1
- package/models/components/transfer.d.ts +3 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/createcancellation.d.ts +107 -0
- package/models/operations/createcancellation.d.ts.map +1 -0
- package/models/operations/createcancellation.js +147 -0
- package/models/operations/createcancellation.js.map +1 -0
- package/models/operations/getcancellation.d.ts +112 -0
- package/models/operations/getcancellation.d.ts.map +1 -0
- package/models/operations/getcancellation.js +149 -0
- package/models/operations/getcancellation.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +14 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +20 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/transfersCreateCancellation.ts +184 -0
- package/src/funcs/transfersGetCancellation.ts +183 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +9 -0
- package/src/mcp-server/cli/start/impl.ts +3 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +14 -2
- package/src/mcp-server/tools/transfersCreateCancellation.ts +38 -0
- package/src/mcp-server/tools/transfersGetCancellation.ts +38 -0
- package/src/mcp-server/tools.ts +5 -0
- package/src/models/components/transfer.ts +10 -0
- package/src/models/errors/transfer.ts +6 -0
- package/src/models/operations/createcancellation.ts +229 -0
- package/src/models/operations/getcancellation.ts +236 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/transfers.ts +36 -0
|
@@ -35,6 +35,14 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
35
35
|
|
|
36
36
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
37
37
|
you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
38
|
+
* [createCancellation](#createcancellation) - Initiate a cancellation for a card, ACH, or queued transfer.
|
|
39
|
+
|
|
40
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
41
|
+
to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
42
|
+
* [getCancellation](#getcancellation) - Get details of a cancellation for a transfer.
|
|
43
|
+
|
|
44
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
45
|
+
to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
38
46
|
* [initiateRefund](#initiaterefund) - Initiate a refund for a card transfer.
|
|
39
47
|
|
|
40
48
|
**Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
|
|
@@ -511,6 +519,183 @@ run();
|
|
|
511
519
|
| --------------- | --------------- | --------------- |
|
|
512
520
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
513
521
|
|
|
522
|
+
## createCancellation
|
|
523
|
+
|
|
524
|
+
Initiate a cancellation for a card, ACH, or queued transfer.
|
|
525
|
+
|
|
526
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
527
|
+
to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
528
|
+
|
|
529
|
+
### Example Usage
|
|
530
|
+
|
|
531
|
+
```typescript
|
|
532
|
+
import { Moov } from "@moovio/sdk";
|
|
533
|
+
|
|
534
|
+
const moov = new Moov({
|
|
535
|
+
security: {
|
|
536
|
+
username: "",
|
|
537
|
+
password: "",
|
|
538
|
+
},
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
async function run() {
|
|
542
|
+
const result = await moov.transfers.createCancellation({
|
|
543
|
+
accountID: "12dbe811-b86d-497b-ae0f-fb7cfda35251",
|
|
544
|
+
transferID: "6bb9450c-10a9-4c8d-a8d2-d3fa18648706",
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
// Handle the result
|
|
548
|
+
console.log(result);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
run();
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Standalone function
|
|
555
|
+
|
|
556
|
+
The standalone function version of this method:
|
|
557
|
+
|
|
558
|
+
```typescript
|
|
559
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
560
|
+
import { transfersCreateCancellation } from "@moovio/sdk/funcs/transfersCreateCancellation.js";
|
|
561
|
+
|
|
562
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
563
|
+
// You can create one instance of it to use across an application.
|
|
564
|
+
const moov = new MoovCore({
|
|
565
|
+
security: {
|
|
566
|
+
username: "",
|
|
567
|
+
password: "",
|
|
568
|
+
},
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
async function run() {
|
|
572
|
+
const res = await transfersCreateCancellation(moov, {
|
|
573
|
+
accountID: "12dbe811-b86d-497b-ae0f-fb7cfda35251",
|
|
574
|
+
transferID: "6bb9450c-10a9-4c8d-a8d2-d3fa18648706",
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
if (!res.ok) {
|
|
578
|
+
throw res.error;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
const { value: result } = res;
|
|
582
|
+
|
|
583
|
+
// Handle the result
|
|
584
|
+
console.log(result);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
run();
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
### Parameters
|
|
591
|
+
|
|
592
|
+
| Parameter | Type | Required | Description |
|
|
593
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
594
|
+
| `request` | [operations.CreateCancellationRequest](../../models/operations/createcancellationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
595
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
596
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
597
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
598
|
+
|
|
599
|
+
### Response
|
|
600
|
+
|
|
601
|
+
**Promise\<[operations.CreateCancellationResponse](../../models/operations/createcancellationresponse.md)\>**
|
|
602
|
+
|
|
603
|
+
### Errors
|
|
604
|
+
|
|
605
|
+
| Error Type | Status Code | Content Type |
|
|
606
|
+
| ------------------- | ------------------- | ------------------- |
|
|
607
|
+
| errors.GenericError | 400 | application/json |
|
|
608
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
609
|
+
|
|
610
|
+
## getCancellation
|
|
611
|
+
|
|
612
|
+
Get details of a cancellation for a transfer.
|
|
613
|
+
|
|
614
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
615
|
+
to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
616
|
+
|
|
617
|
+
### Example Usage
|
|
618
|
+
|
|
619
|
+
```typescript
|
|
620
|
+
import { Moov } from "@moovio/sdk";
|
|
621
|
+
|
|
622
|
+
const moov = new Moov({
|
|
623
|
+
security: {
|
|
624
|
+
username: "",
|
|
625
|
+
password: "",
|
|
626
|
+
},
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
async function run() {
|
|
630
|
+
const result = await moov.transfers.getCancellation({
|
|
631
|
+
accountID: "fe098575-0376-4404-9a9c-6fe55e3766af",
|
|
632
|
+
transferID: "b3b49c6a-9b74-4a85-9d49-864ada05cbf2",
|
|
633
|
+
cancellationID: "5848c1db-18ac-41eb-b107-b6499987902c",
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
// Handle the result
|
|
637
|
+
console.log(result);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
run();
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
### Standalone function
|
|
644
|
+
|
|
645
|
+
The standalone function version of this method:
|
|
646
|
+
|
|
647
|
+
```typescript
|
|
648
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
649
|
+
import { transfersGetCancellation } from "@moovio/sdk/funcs/transfersGetCancellation.js";
|
|
650
|
+
|
|
651
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
652
|
+
// You can create one instance of it to use across an application.
|
|
653
|
+
const moov = new MoovCore({
|
|
654
|
+
security: {
|
|
655
|
+
username: "",
|
|
656
|
+
password: "",
|
|
657
|
+
},
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
async function run() {
|
|
661
|
+
const res = await transfersGetCancellation(moov, {
|
|
662
|
+
accountID: "fe098575-0376-4404-9a9c-6fe55e3766af",
|
|
663
|
+
transferID: "b3b49c6a-9b74-4a85-9d49-864ada05cbf2",
|
|
664
|
+
cancellationID: "5848c1db-18ac-41eb-b107-b6499987902c",
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
if (!res.ok) {
|
|
668
|
+
throw res.error;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
const { value: result } = res;
|
|
672
|
+
|
|
673
|
+
// Handle the result
|
|
674
|
+
console.log(result);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
run();
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
### Parameters
|
|
681
|
+
|
|
682
|
+
| Parameter | Type | Required | Description |
|
|
683
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
684
|
+
| `request` | [operations.GetCancellationRequest](../../models/operations/getcancellationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
685
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
686
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
687
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
688
|
+
|
|
689
|
+
### Response
|
|
690
|
+
|
|
691
|
+
**Promise\<[operations.GetCancellationResponse](../../models/operations/getcancellationresponse.md)\>**
|
|
692
|
+
|
|
693
|
+
### Errors
|
|
694
|
+
|
|
695
|
+
| Error Type | Status Code | Content Type |
|
|
696
|
+
| --------------- | --------------- | --------------- |
|
|
697
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
698
|
+
|
|
514
699
|
## initiateRefund
|
|
515
700
|
|
|
516
701
|
Initiate a refund for a card transfer.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MoovCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Initiate a cancellation for a card, ACH, or queued transfer.
|
|
12
|
+
*
|
|
13
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
14
|
+
* to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
15
|
+
*/
|
|
16
|
+
export declare function transfersCreateCancellation(client: MoovCore, request: operations.CreateCancellationRequest, options?: RequestOptions): APIPromise<Result<operations.CreateCancellationResponse, errors.GenericError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
17
|
+
//# sourceMappingURL=transfersCreateCancellation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfersCreateCancellation.d.ts","sourceRoot":"","sources":["../src/funcs/transfersCreateCancellation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,YAAY,GACnB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.transfersCreateCancellation = transfersCreateCancellation;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
47
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
|
+
const async_js_1 = require("../types/async.js");
|
|
49
|
+
/**
|
|
50
|
+
* Initiate a cancellation for a card, ACH, or queued transfer.
|
|
51
|
+
*
|
|
52
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
53
|
+
* to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
54
|
+
*/
|
|
55
|
+
function transfersCreateCancellation(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = null;
|
|
65
|
+
const pathParams = {
|
|
66
|
+
accountID: (0, encodings_js_1.encodeSimple)("accountID", payload.accountID, {
|
|
67
|
+
explode: false,
|
|
68
|
+
charEncoding: "percent",
|
|
69
|
+
}),
|
|
70
|
+
transferID: (0, encodings_js_1.encodeSimple)("transferID", payload.transferID, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
Accept: "application/json",
|
|
78
|
+
"x-moov-version": (0, encodings_js_1.encodeSimple)("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" }),
|
|
79
|
+
}));
|
|
80
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
81
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
82
|
+
const context = {
|
|
83
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
+
operationID: "createCancellation",
|
|
85
|
+
oAuth2Scopes: [],
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
securitySource: client._options.security,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
+
};
|
|
93
|
+
const requestRes = client._createRequest(context, {
|
|
94
|
+
security: requestSecurity,
|
|
95
|
+
method: "POST",
|
|
96
|
+
baseURL: options?.serverURL,
|
|
97
|
+
path: path,
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
101
|
+
}, options);
|
|
102
|
+
if (!requestRes.ok) {
|
|
103
|
+
return [requestRes, { status: "invalid" }];
|
|
104
|
+
}
|
|
105
|
+
const req = requestRes.value;
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return [doResult, { status: "request-error", request: req }];
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
const [result] = await M.match(M.json([200, 202], operations.CreateCancellationResponse$inboundSchema, {
|
|
120
|
+
hdrs: true,
|
|
121
|
+
key: "Result",
|
|
122
|
+
}), M.jsonErr(400, errors.GenericError$inboundSchema, { hdrs: true }), M.fail([401, 403, 404, 429]), M.fail([500, 504]), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
123
|
+
if (!result.ok) {
|
|
124
|
+
return [result, { status: "complete", request: req, response }];
|
|
125
|
+
}
|
|
126
|
+
return [result, { status: "complete", request: req, response }];
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=transfersCreateCancellation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfersCreateCancellation.js","sourceRoot":"","sources":["../src/funcs/transfersCreateCancellation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,kEAsBC;AAjDD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAEpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,2BAA2B,CACzC,MAAgB,EAChB,OAA6C,EAC7C,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAgB,EAChB,OAA6C,EAC7C,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,wCAAwC,CAAC,KA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
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../models/operations/index.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Get details of a cancellation for a transfer.
|
|
11
|
+
*
|
|
12
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
13
|
+
* to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
14
|
+
*/
|
|
15
|
+
export declare function transfersGetCancellation(client: MoovCore, request: operations.GetCancellationRequest, options?: RequestOptions): APIPromise<Result<operations.GetCancellationResponse, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
+
//# sourceMappingURL=transfersGetCancellation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfersGetCancellation.d.ts","sourceRoot":"","sources":["../src/funcs/transfersGetCancellation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.transfersGetCancellation = transfersGetCancellation;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
|
+
const async_js_1 = require("../types/async.js");
|
|
48
|
+
/**
|
|
49
|
+
* Get details of a cancellation for a transfer.
|
|
50
|
+
*
|
|
51
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
52
|
+
* to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
53
|
+
*/
|
|
54
|
+
function transfersGetCancellation(client, request, options) {
|
|
55
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
56
|
+
}
|
|
57
|
+
async function $do(client, request, options) {
|
|
58
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59
|
+
if (!parsed.ok) {
|
|
60
|
+
return [parsed, { status: "invalid" }];
|
|
61
|
+
}
|
|
62
|
+
const payload = parsed.value;
|
|
63
|
+
const body = null;
|
|
64
|
+
const pathParams = {
|
|
65
|
+
accountID: (0, encodings_js_1.encodeSimple)("accountID", payload.accountID, {
|
|
66
|
+
explode: false,
|
|
67
|
+
charEncoding: "percent",
|
|
68
|
+
}),
|
|
69
|
+
cancellationID: (0, encodings_js_1.encodeSimple)("cancellationID", payload.cancellationID, {
|
|
70
|
+
explode: false,
|
|
71
|
+
charEncoding: "percent",
|
|
72
|
+
}),
|
|
73
|
+
transferID: (0, encodings_js_1.encodeSimple)("transferID", payload.transferID, {
|
|
74
|
+
explode: false,
|
|
75
|
+
charEncoding: "percent",
|
|
76
|
+
}),
|
|
77
|
+
};
|
|
78
|
+
const path = (0, url_js_1.pathToFunc)("/accounts/{accountID}/transfers/{transferID}/cancellations/{cancellationID}")(pathParams);
|
|
79
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
80
|
+
Accept: "application/json",
|
|
81
|
+
"x-moov-version": (0, encodings_js_1.encodeSimple)("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" }),
|
|
82
|
+
}));
|
|
83
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
84
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
85
|
+
const context = {
|
|
86
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
+
operationID: "getCancellation",
|
|
88
|
+
oAuth2Scopes: [],
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
securitySource: client._options.security,
|
|
91
|
+
retryConfig: options?.retries
|
|
92
|
+
|| client._options.retryConfig
|
|
93
|
+
|| { strategy: "none" },
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
};
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "GET",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
body: body,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req = requestRes.value;
|
|
109
|
+
const doResult = await client._do(req, {
|
|
110
|
+
context,
|
|
111
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
112
|
+
retryConfig: context.retryConfig,
|
|
113
|
+
retryCodes: context.retryCodes,
|
|
114
|
+
});
|
|
115
|
+
if (!doResult.ok) {
|
|
116
|
+
return [doResult, { status: "request-error", request: req }];
|
|
117
|
+
}
|
|
118
|
+
const response = doResult.value;
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
const [result] = await M.match(M.json(200, operations.GetCancellationResponse$inboundSchema, {
|
|
123
|
+
hdrs: true,
|
|
124
|
+
key: "Result",
|
|
125
|
+
}), M.fail([401, 403, 404, 429]), M.fail([500, 504]), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
126
|
+
if (!result.ok) {
|
|
127
|
+
return [result, { status: "complete", request: req, response }];
|
|
128
|
+
}
|
|
129
|
+
return [result, { status: "complete", request: req, response }];
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=transfersGetCancellation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfersGetCancellation.js","sourceRoot":"","sources":["../src/funcs/transfersGetCancellation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,4DAqBC;AA/CD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,wBAAwB,CACtC,MAAgB,EAChB,OAA0C,EAC1C,OAAwB;IAaxB,OAAO,IAAI,qBAAU,CAAC,GAAG,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AC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "latest";
|
|
38
|
-
readonly sdkVersion: "0.
|
|
39
|
-
readonly genVersion: "2.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
38
|
+
readonly sdkVersion: "0.6.1";
|
|
39
|
+
readonly genVersion: "2.539.1";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.6.1 2.539.1 latest @moovio/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "latest",
|
|
34
|
-
sdkVersion: "0.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34
|
+
sdkVersion: "0.6.1",
|
|
35
|
+
genVersion: "2.539.1",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.6.1 2.539.1 latest @moovio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/cli/start/command.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/cli/start/command.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY,sEAiHvB,CAAC"}
|
|
@@ -61,6 +61,15 @@ exports.startCommand = (0, core_1.buildCommand)({
|
|
|
61
61
|
default: "2718",
|
|
62
62
|
parse: (val) => z.coerce.number().int().gte(0).lt(65536).parse(val),
|
|
63
63
|
},
|
|
64
|
+
tool: {
|
|
65
|
+
kind: "parsed",
|
|
66
|
+
brief: "Specify tools to mount on the server",
|
|
67
|
+
optional: true,
|
|
68
|
+
variadic: true,
|
|
69
|
+
parse: (value) => {
|
|
70
|
+
return z.string().parse(value);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
64
73
|
...(scopes_js_1.mcpScopes.length
|
|
65
74
|
? {
|
|
66
75
|
scope: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/mcp-server/cli/start/command.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,wCAA6C;AAC7C,wCAA6C;AAC7C,uCAAyB;AACzB,+DAA8D;AAC9D,+CAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,mBAAY,EAAC;IACvC,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,wDAAwD;gBAC/D,OAAO,EAAE,OAAO;gBAChB,MAAM,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;aACzB;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,mDAAmD;gBAC1D,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE,CACrB,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,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AE,uCAAmB;aAC5B;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,oDAAoD;gBAC3D,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE;oBACrB,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAChC,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;wBAClB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;oBACzD,CAAC;oBAED,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;oBACjC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;oBAEpC,OAAO;wBACL,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;4BAClB,OAAO,EAAE,qDAAqD;yBAC/D,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC;wBACb,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;4BAClB,OAAO,EAAE,uDAAuD;yBACjE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;qBACW,CAAC;gBAC/B,CAAC;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,uCAAuC;KAC/C;CACF,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { MCPScope } from "../../scopes.js";
|
|
|
5
5
|
interface StartCommandFlags {
|
|
6
6
|
readonly transport: "stdio" | "sse";
|
|
7
7
|
readonly port: number;
|
|
8
|
+
readonly tool?: string[];
|
|
8
9
|
readonly scope?: MCPScope[];
|
|
9
10
|
readonly username?: string | undefined;
|
|
10
11
|
readonly password?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/cli/start/impl.ts"],"names":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UAAU,iBAAiB;IACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,KAAK,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACnE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAClD,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACzC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CACnC;AAED,wBAAsB,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,iBAAiB,iBAetE"}
|
|
@@ -33,6 +33,7 @@ async function startStdio(flags) {
|
|
|
33
33
|
const transport = new stdio_js_1.StdioServerTransport();
|
|
34
34
|
const server = (0, server_js_1.createMCPServer)({
|
|
35
35
|
logger,
|
|
36
|
+
allowedTools: flags.tool,
|
|
36
37
|
scopes: flags.scope,
|
|
37
38
|
security: (0, primitives_js_1.allRequired)({
|
|
38
39
|
username: flags.username,
|
|
@@ -55,6 +56,7 @@ async function startSSE(flags) {
|
|
|
55
56
|
const app = (0, express_1.default)();
|
|
56
57
|
const mcpServer = (0, server_js_1.createMCPServer)({
|
|
57
58
|
logger,
|
|
59
|
+
allowedTools: flags.tool,
|
|
58
60
|
scopes: flags.scope,
|
|
59
61
|
security: (0, primitives_js_1.allRequired)({
|
|
60
62
|
username: flags.username,
|