@moovio/sdk 0.15.5 → 0.15.6
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 +28 -23
- package/bin/mcp-server.js.map +8 -8
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/paymentmethodswallet.d.ts +12 -0
- package/models/components/paymentmethodswallet.d.ts.map +1 -1
- package/models/components/paymentmethodswallet.js +5 -0
- package/models/components/paymentmethodswallet.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/paymentmethodswallet.ts +20 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "latest";
|
|
42
|
-
readonly sdkVersion: "0.15.
|
|
42
|
+
readonly sdkVersion: "0.15.6";
|
|
43
43
|
readonly genVersion: "2.716.16";
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.15.
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.15.6 2.716.16 latest @moovio/sdk";
|
|
45
45
|
};
|
|
46
46
|
//# 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.15.
|
|
34
|
+
sdkVersion: "0.15.6",
|
|
35
35
|
genVersion: "2.716.16",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.15.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.15.6 2.716.16 latest @moovio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.15.
|
|
25
|
+
currentVersion: "0.15.6",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -159,7 +159,7 @@ const walletTransactionsList_js_1 = require("./tools/walletTransactionsList.js")
|
|
|
159
159
|
function createMCPServer(deps) {
|
|
160
160
|
const server = new mcp_js_1.McpServer({
|
|
161
161
|
name: "Moov",
|
|
162
|
-
version: "0.15.
|
|
162
|
+
version: "0.15.6",
|
|
163
163
|
});
|
|
164
164
|
const client = new core_js_1.MoovCore({
|
|
165
165
|
security: deps.security,
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { WalletType } from "./wallettype.js";
|
|
4
5
|
export type PaymentMethodsWallet = {
|
|
5
6
|
walletID: string;
|
|
7
|
+
partnerAccountID: string;
|
|
8
|
+
/**
|
|
9
|
+
* Type of a wallet.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
|
|
13
|
+
* - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
|
|
14
|
+
*/
|
|
15
|
+
walletType: WalletType;
|
|
6
16
|
};
|
|
7
17
|
/** @internal */
|
|
8
18
|
export declare const PaymentMethodsWallet$inboundSchema: z.ZodType<PaymentMethodsWallet, z.ZodTypeDef, unknown>;
|
|
9
19
|
/** @internal */
|
|
10
20
|
export type PaymentMethodsWallet$Outbound = {
|
|
11
21
|
walletID: string;
|
|
22
|
+
partnerAccountID: string;
|
|
23
|
+
walletType: string;
|
|
12
24
|
};
|
|
13
25
|
/** @internal */
|
|
14
26
|
export declare const PaymentMethodsWallet$outboundSchema: z.ZodType<PaymentMethodsWallet$Outbound, z.ZodTypeDef, PaymentMethodsWallet>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentmethodswallet.d.ts","sourceRoot":"","sources":["../../src/models/components/paymentmethodswallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"paymentmethodswallet.d.ts","sourceRoot":"","sources":["../../src/models/components/paymentmethodswallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAKpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -41,13 +41,18 @@ exports.paymentMethodsWalletToJSON = paymentMethodsWalletToJSON;
|
|
|
41
41
|
exports.paymentMethodsWalletFromJSON = paymentMethodsWalletFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const wallettype_js_1 = require("./wallettype.js");
|
|
44
45
|
/** @internal */
|
|
45
46
|
exports.PaymentMethodsWallet$inboundSchema = z.object({
|
|
46
47
|
walletID: z.string(),
|
|
48
|
+
partnerAccountID: z.string(),
|
|
49
|
+
walletType: wallettype_js_1.WalletType$inboundSchema,
|
|
47
50
|
});
|
|
48
51
|
/** @internal */
|
|
49
52
|
exports.PaymentMethodsWallet$outboundSchema = z.object({
|
|
50
53
|
walletID: z.string(),
|
|
54
|
+
partnerAccountID: z.string(),
|
|
55
|
+
walletType: wallettype_js_1.WalletType$outboundSchema,
|
|
51
56
|
});
|
|
52
57
|
/**
|
|
53
58
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentmethodswallet.js","sourceRoot":"","sources":["../../src/models/components/paymentmethodswallet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"paymentmethodswallet.js","sourceRoot":"","sources":["../../src/models/components/paymentmethodswallet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,gEAMC;AAED,oEAQC;AAjFD,uCAAyB;AACzB,qDAAiD;AAGjD,mDAIyB;AAezB,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,UAAU,EAAE,wCAAwB;CACrC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,UAAU,EAAE,yCAAyB;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "latest",
|
|
76
|
-
sdkVersion: "0.15.
|
|
76
|
+
sdkVersion: "0.15.6",
|
|
77
77
|
genVersion: "2.716.16",
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 0.15.
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.15.6 2.716.16 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -6,9 +6,23 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
WalletType,
|
|
11
|
+
WalletType$inboundSchema,
|
|
12
|
+
WalletType$outboundSchema,
|
|
13
|
+
} from "./wallettype.js";
|
|
9
14
|
|
|
10
15
|
export type PaymentMethodsWallet = {
|
|
11
16
|
walletID: string;
|
|
17
|
+
partnerAccountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* Type of a wallet.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
|
|
23
|
+
* - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
|
|
24
|
+
*/
|
|
25
|
+
walletType: WalletType;
|
|
12
26
|
};
|
|
13
27
|
|
|
14
28
|
/** @internal */
|
|
@@ -18,11 +32,15 @@ export const PaymentMethodsWallet$inboundSchema: z.ZodType<
|
|
|
18
32
|
unknown
|
|
19
33
|
> = z.object({
|
|
20
34
|
walletID: z.string(),
|
|
35
|
+
partnerAccountID: z.string(),
|
|
36
|
+
walletType: WalletType$inboundSchema,
|
|
21
37
|
});
|
|
22
38
|
|
|
23
39
|
/** @internal */
|
|
24
40
|
export type PaymentMethodsWallet$Outbound = {
|
|
25
41
|
walletID: string;
|
|
42
|
+
partnerAccountID: string;
|
|
43
|
+
walletType: string;
|
|
26
44
|
};
|
|
27
45
|
|
|
28
46
|
/** @internal */
|
|
@@ -32,6 +50,8 @@ export const PaymentMethodsWallet$outboundSchema: z.ZodType<
|
|
|
32
50
|
PaymentMethodsWallet
|
|
33
51
|
> = z.object({
|
|
34
52
|
walletID: z.string(),
|
|
53
|
+
partnerAccountID: z.string(),
|
|
54
|
+
walletType: WalletType$outboundSchema,
|
|
35
55
|
});
|
|
36
56
|
|
|
37
57
|
/**
|