@moovio/sdk 0.21.5 → 0.21.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 +61 -18
- package/bin/mcp-server.js.map +17 -16
- package/examples/package-lock.json +1 -1
- package/funcs/paymentLinksList.js +7 -0
- package/funcs/paymentLinksList.js.map +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/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paymentdetailserror.d.ts +2 -0
- package/models/components/paymentdetailserror.d.ts.map +1 -1
- package/models/components/paymentdetailserror.js +2 -0
- package/models/components/paymentdetailserror.js.map +1 -1
- package/models/components/paymentlink.d.ts +3 -0
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +3 -0
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkpaymentdetails.d.ts +9 -0
- package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetails.js +2 -0
- package/models/components/paymentlinkpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts +9 -0
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js +2 -0
- package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinkpayoutdetails.d.ts +9 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +2 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +9 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +2 -0
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/paymentlinktype.d.ts +12 -0
- package/models/components/paymentlinktype.d.ts.map +1 -0
- package/models/components/paymentlinktype.js +49 -0
- package/models/components/paymentlinktype.js.map +1 -0
- package/models/components/payoutdetailserror.d.ts +2 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +2 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +8 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js +8 -0
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/paymentLinksList.ts +9 -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/index.ts +1 -0
- package/src/models/components/paymentdetailserror.ts +4 -0
- package/src/models/components/paymentlink.ts +9 -0
- package/src/models/components/paymentlinkpaymentdetails.ts +7 -0
- package/src/models/components/paymentlinkpaymentdetailsupdate.ts +7 -0
- package/src/models/components/paymentlinkpayoutdetails.ts +7 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -0
- package/src/models/components/paymentlinktype.ts +21 -0
- package/src/models/components/payoutdetailserror.ts +4 -0
- package/src/models/operations/listpaymentlinks.ts +16 -0
|
@@ -0,0 +1,49 @@
|
|
|
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.PaymentLinkType$outboundSchema = exports.PaymentLinkType$inboundSchema = exports.PaymentLinkType = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
exports.PaymentLinkType = {
|
|
42
|
+
Payment: "payment",
|
|
43
|
+
Payout: "payout",
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.PaymentLinkType$inboundSchema = z.nativeEnum(exports.PaymentLinkType);
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.PaymentLinkType$outboundSchema = exports.PaymentLinkType$inboundSchema;
|
|
49
|
+
//# sourceMappingURL=paymentlinktype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentlinktype.js","sourceRoot":"","sources":["../../src/models/components/paymentlinktype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAClC,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,qCAA6B,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { PayoutRecipientError, PayoutRecipientError$Outbound } from "./payoutrec
|
|
|
5
5
|
export type PayoutDetailsError = {
|
|
6
6
|
allowedMethods?: string | undefined;
|
|
7
7
|
recipient?: PayoutRecipientError | undefined;
|
|
8
|
+
metadata?: string | undefined;
|
|
8
9
|
};
|
|
9
10
|
/** @internal */
|
|
10
11
|
export declare const PayoutDetailsError$inboundSchema: z.ZodType<PayoutDetailsError, z.ZodTypeDef, unknown>;
|
|
@@ -12,6 +13,7 @@ export declare const PayoutDetailsError$inboundSchema: z.ZodType<PayoutDetailsEr
|
|
|
12
13
|
export type PayoutDetailsError$Outbound = {
|
|
13
14
|
allowedMethods?: string | undefined;
|
|
14
15
|
recipient?: PayoutRecipientError$Outbound | undefined;
|
|
16
|
+
metadata?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
/** @internal */
|
|
17
19
|
export declare const PayoutDetailsError$outboundSchema: z.ZodType<PayoutDetailsError$Outbound, z.ZodTypeDef, PayoutDetailsError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutdetailserror.d.ts","sourceRoot":"","sources":["../../src/models/components/payoutdetailserror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,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AM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAKlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -46,11 +46,13 @@ const payoutrecipienterror_js_1 = require("./payoutrecipienterror.js");
|
|
|
46
46
|
exports.PayoutDetailsError$inboundSchema = z.object({
|
|
47
47
|
allowedMethods: z.string().optional(),
|
|
48
48
|
recipient: payoutrecipienterror_js_1.PayoutRecipientError$inboundSchema.optional(),
|
|
49
|
+
metadata: z.string().optional(),
|
|
49
50
|
});
|
|
50
51
|
/** @internal */
|
|
51
52
|
exports.PayoutDetailsError$outboundSchema = z.object({
|
|
52
53
|
allowedMethods: z.string().optional(),
|
|
53
54
|
recipient: payoutrecipienterror_js_1.PayoutRecipientError$outboundSchema.optional(),
|
|
55
|
+
metadata: z.string().optional(),
|
|
54
56
|
});
|
|
55
57
|
function payoutDetailsErrorToJSON(payoutDetailsError) {
|
|
56
58
|
return JSON.stringify(exports.PayoutDetailsError$outboundSchema.parse(payoutDetailsError));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutdetailserror.js","sourceRoot":"","sources":["../../src/models/components/payoutdetailserror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"payoutdetailserror.js","sourceRoot":"","sources":["../../src/models/components/payoutdetailserror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,4DAMC;AACD,gEAQC;AA5DD,0CAA4B;AAC5B,qDAAiD;AAGjD,uEAKmC;AAQnC,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,6DAAmC,CAAC,QAAQ,EAAE;IACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -19,6 +19,10 @@ export type ListPaymentLinksGlobals = {
|
|
|
19
19
|
xMoovVersion?: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
export type ListPaymentLinksRequest = {
|
|
22
|
+
skip?: number | undefined;
|
|
23
|
+
count?: number | undefined;
|
|
24
|
+
type?: components.PaymentLinkType | undefined;
|
|
25
|
+
status?: components.PaymentLinkStatus | undefined;
|
|
22
26
|
accountID: string;
|
|
23
27
|
};
|
|
24
28
|
export type ListPaymentLinksResponse = {
|
|
@@ -41,6 +45,10 @@ export declare function listPaymentLinksGlobalsFromJSON(jsonString: string): Saf
|
|
|
41
45
|
export declare const ListPaymentLinksRequest$inboundSchema: z.ZodType<ListPaymentLinksRequest, z.ZodTypeDef, unknown>;
|
|
42
46
|
/** @internal */
|
|
43
47
|
export type ListPaymentLinksRequest$Outbound = {
|
|
48
|
+
skip?: number | undefined;
|
|
49
|
+
count?: number | undefined;
|
|
50
|
+
type?: string | undefined;
|
|
51
|
+
status?: string | undefined;
|
|
44
52
|
accountID: string;
|
|
45
53
|
};
|
|
46
54
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listpaymentlinks.d.ts","sourceRoot":"","sources":["../../src/models/operations/listpaymentlinks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAA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AM,CAIR;AACD,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CASxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AACD,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -71,10 +71,18 @@ function listPaymentLinksGlobalsFromJSON(jsonString) {
|
|
|
71
71
|
}
|
|
72
72
|
/** @internal */
|
|
73
73
|
exports.ListPaymentLinksRequest$inboundSchema = z.object({
|
|
74
|
+
skip: z.number().int().optional(),
|
|
75
|
+
count: z.number().int().optional(),
|
|
76
|
+
type: components.PaymentLinkType$inboundSchema.optional(),
|
|
77
|
+
status: components.PaymentLinkStatus$inboundSchema.optional(),
|
|
74
78
|
accountID: z.string(),
|
|
75
79
|
});
|
|
76
80
|
/** @internal */
|
|
77
81
|
exports.ListPaymentLinksRequest$outboundSchema = z.object({
|
|
82
|
+
skip: z.number().int().optional(),
|
|
83
|
+
count: z.number().int().optional(),
|
|
84
|
+
type: components.PaymentLinkType$outboundSchema.optional(),
|
|
85
|
+
status: components.PaymentLinkStatus$outboundSchema.optional(),
|
|
78
86
|
accountID: z.string(),
|
|
79
87
|
});
|
|
80
88
|
function listPaymentLinksRequestToJSON(listPaymentLinksRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listpaymentlinks.js","sourceRoot":"","sources":["../../src/models/operations/listpaymentlinks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listpaymentlinks.js","sourceRoot":"","sources":["../../src/models/operations/listpaymentlinks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEH,sEAMC;AACD,0EAQC;AAoCD,sEAMC;AACD,0EAQC;AAqCD,wEAMC;AACD,4EAQC;AAzLD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAiCrD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6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,CAAC,CACxE,CAAC;AACJ,CAAC;AACD,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { MoovCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -94,6 +94,13 @@ async function $do(
|
|
|
94
94
|
|
|
95
95
|
const path = pathToFunc("/accounts/{accountID}/payment-links")(pathParams);
|
|
96
96
|
|
|
97
|
+
const query = encodeFormQuery({
|
|
98
|
+
"count": payload.count,
|
|
99
|
+
"skip": payload.skip,
|
|
100
|
+
"status": payload.status,
|
|
101
|
+
"type": payload.type,
|
|
102
|
+
}, { explode: false });
|
|
103
|
+
|
|
97
104
|
const headers = new Headers(compactMap({
|
|
98
105
|
Accept: "application/json",
|
|
99
106
|
"X-Moov-Version": encodeSimple(
|
|
@@ -127,6 +134,7 @@ async function $do(
|
|
|
127
134
|
baseURL: options?.serverURL,
|
|
128
135
|
path: path,
|
|
129
136
|
headers: headers,
|
|
137
|
+
query: query,
|
|
130
138
|
body: body,
|
|
131
139
|
userAgent: client._options.userAgent,
|
|
132
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
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.21.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 0.21.
|
|
76
|
+
sdkVersion: "0.21.6",
|
|
77
|
+
genVersion: "2.745.2",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.21.6 2.745.2 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -311,6 +311,7 @@ export * from "./paymentlinkpaymentdetailsupdate.js";
|
|
|
311
311
|
export * from "./paymentlinkpayoutdetails.js";
|
|
312
312
|
export * from "./paymentlinkpayoutdetailsupdate.js";
|
|
313
313
|
export * from "./paymentlinkstatus.js";
|
|
314
|
+
export * from "./paymentlinktype.js";
|
|
314
315
|
export * from "./paymentmethod.js";
|
|
315
316
|
export * from "./paymentmethodsbankaccount.js";
|
|
316
317
|
export * from "./paymentmethodscard.js";
|
|
@@ -23,6 +23,7 @@ export type PaymentDetailsError = {
|
|
|
23
23
|
allowedMethods?: string | undefined;
|
|
24
24
|
cardDetails?: CardPaymentDetailsError | undefined;
|
|
25
25
|
achDetails?: ACHPaymentDetailsError | undefined;
|
|
26
|
+
metadata?: string | undefined;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
/** @internal */
|
|
@@ -34,12 +35,14 @@ export const PaymentDetailsError$inboundSchema: z.ZodType<
|
|
|
34
35
|
allowedMethods: z.string().optional(),
|
|
35
36
|
cardDetails: CardPaymentDetailsError$inboundSchema.optional(),
|
|
36
37
|
achDetails: ACHPaymentDetailsError$inboundSchema.optional(),
|
|
38
|
+
metadata: z.string().optional(),
|
|
37
39
|
});
|
|
38
40
|
/** @internal */
|
|
39
41
|
export type PaymentDetailsError$Outbound = {
|
|
40
42
|
allowedMethods?: string | undefined;
|
|
41
43
|
cardDetails?: CardPaymentDetailsError$Outbound | undefined;
|
|
42
44
|
achDetails?: ACHPaymentDetailsError$Outbound | undefined;
|
|
45
|
+
metadata?: string | undefined;
|
|
43
46
|
};
|
|
44
47
|
|
|
45
48
|
/** @internal */
|
|
@@ -51,6 +54,7 @@ export const PaymentDetailsError$outboundSchema: z.ZodType<
|
|
|
51
54
|
allowedMethods: z.string().optional(),
|
|
52
55
|
cardDetails: CardPaymentDetailsError$outboundSchema.optional(),
|
|
53
56
|
achDetails: ACHPaymentDetailsError$outboundSchema.optional(),
|
|
57
|
+
metadata: z.string().optional(),
|
|
54
58
|
});
|
|
55
59
|
|
|
56
60
|
export function paymentDetailsErrorToJSON(
|
|
@@ -48,12 +48,18 @@ import {
|
|
|
48
48
|
PaymentLinkStatus$inboundSchema,
|
|
49
49
|
PaymentLinkStatus$outboundSchema,
|
|
50
50
|
} from "./paymentlinkstatus.js";
|
|
51
|
+
import {
|
|
52
|
+
PaymentLinkType,
|
|
53
|
+
PaymentLinkType$inboundSchema,
|
|
54
|
+
PaymentLinkType$outboundSchema,
|
|
55
|
+
} from "./paymentlinktype.js";
|
|
51
56
|
|
|
52
57
|
export type PaymentLink = {
|
|
53
58
|
/**
|
|
54
59
|
* Unique code identifying this payment link.
|
|
55
60
|
*/
|
|
56
61
|
code: string;
|
|
62
|
+
paymentLinkType: PaymentLinkType;
|
|
57
63
|
/**
|
|
58
64
|
* The operating mode for an account.
|
|
59
65
|
*/
|
|
@@ -125,6 +131,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
125
131
|
unknown
|
|
126
132
|
> = z.object({
|
|
127
133
|
code: z.string(),
|
|
134
|
+
paymentLinkType: PaymentLinkType$inboundSchema,
|
|
128
135
|
mode: Mode$inboundSchema,
|
|
129
136
|
status: PaymentLinkStatus$inboundSchema,
|
|
130
137
|
partnerAccountID: z.string(),
|
|
@@ -151,6 +158,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
151
158
|
/** @internal */
|
|
152
159
|
export type PaymentLink$Outbound = {
|
|
153
160
|
code: string;
|
|
161
|
+
paymentLinkType: string;
|
|
154
162
|
mode: string;
|
|
155
163
|
status: string;
|
|
156
164
|
partnerAccountID: string;
|
|
@@ -179,6 +187,7 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
179
187
|
PaymentLink
|
|
180
188
|
> = z.object({
|
|
181
189
|
code: z.string(),
|
|
190
|
+
paymentLinkType: PaymentLinkType$outboundSchema,
|
|
182
191
|
mode: Mode$outboundSchema,
|
|
183
192
|
status: PaymentLinkStatus$outboundSchema,
|
|
184
193
|
partnerAccountID: z.string(),
|
|
@@ -40,6 +40,10 @@ export type PaymentLinkPaymentDetails = {
|
|
|
40
40
|
* Options for payment links used to collect an ACH payment.
|
|
41
41
|
*/
|
|
42
42
|
achDetails?: ACHPaymentDetails | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Optional free-form metadata for the transfer.
|
|
45
|
+
*/
|
|
46
|
+
metadata?: { [k: string]: string } | undefined;
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
/** @internal */
|
|
@@ -51,12 +55,14 @@ export const PaymentLinkPaymentDetails$inboundSchema: z.ZodType<
|
|
|
51
55
|
allowedMethods: z.array(CollectionPaymentMethodType$inboundSchema),
|
|
52
56
|
cardDetails: CardPaymentDetails$inboundSchema.optional(),
|
|
53
57
|
achDetails: ACHPaymentDetails$inboundSchema.optional(),
|
|
58
|
+
metadata: z.record(z.string()).optional(),
|
|
54
59
|
});
|
|
55
60
|
/** @internal */
|
|
56
61
|
export type PaymentLinkPaymentDetails$Outbound = {
|
|
57
62
|
allowedMethods: Array<string>;
|
|
58
63
|
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
59
64
|
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
65
|
+
metadata?: { [k: string]: string } | undefined;
|
|
60
66
|
};
|
|
61
67
|
|
|
62
68
|
/** @internal */
|
|
@@ -68,6 +74,7 @@ export const PaymentLinkPaymentDetails$outboundSchema: z.ZodType<
|
|
|
68
74
|
allowedMethods: z.array(CollectionPaymentMethodType$outboundSchema),
|
|
69
75
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
70
76
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
77
|
+
metadata: z.record(z.string()).optional(),
|
|
71
78
|
});
|
|
72
79
|
|
|
73
80
|
export function paymentLinkPaymentDetailsToJSON(
|
|
@@ -40,6 +40,10 @@ export type PaymentLinkPaymentDetailsUpdate = {
|
|
|
40
40
|
* Options for payment links used to collect an ACH payment.
|
|
41
41
|
*/
|
|
42
42
|
achDetails?: ACHPaymentDetails | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Optional free-form metadata for the transfer.
|
|
45
|
+
*/
|
|
46
|
+
metadata?: { [k: string]: string } | undefined;
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
/** @internal */
|
|
@@ -51,12 +55,14 @@ export const PaymentLinkPaymentDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
51
55
|
allowedMethods: z.array(CollectionPaymentMethodType$inboundSchema).optional(),
|
|
52
56
|
cardDetails: CardPaymentDetails$inboundSchema.optional(),
|
|
53
57
|
achDetails: ACHPaymentDetails$inboundSchema.optional(),
|
|
58
|
+
metadata: z.record(z.string()).optional(),
|
|
54
59
|
});
|
|
55
60
|
/** @internal */
|
|
56
61
|
export type PaymentLinkPaymentDetailsUpdate$Outbound = {
|
|
57
62
|
allowedMethods?: Array<string> | undefined;
|
|
58
63
|
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
59
64
|
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
65
|
+
metadata?: { [k: string]: string } | undefined;
|
|
60
66
|
};
|
|
61
67
|
|
|
62
68
|
/** @internal */
|
|
@@ -69,6 +75,7 @@ export const PaymentLinkPaymentDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
69
75
|
.optional(),
|
|
70
76
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
71
77
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
78
|
+
metadata: z.record(z.string()).optional(),
|
|
72
79
|
});
|
|
73
80
|
|
|
74
81
|
export function paymentLinkPaymentDetailsUpdateToJSON(
|
|
@@ -32,6 +32,10 @@ export type PaymentLinkPayoutDetails = {
|
|
|
32
32
|
* This information will be used to authenticate the end user when they follow the payment link.
|
|
33
33
|
*/
|
|
34
34
|
recipient: PayoutRecipient;
|
|
35
|
+
/**
|
|
36
|
+
* Optional free-form metadata for the transfer.
|
|
37
|
+
*/
|
|
38
|
+
metadata?: { [k: string]: string } | undefined;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
/** @internal */
|
|
@@ -42,11 +46,13 @@ export const PaymentLinkPayoutDetails$inboundSchema: z.ZodType<
|
|
|
42
46
|
> = z.object({
|
|
43
47
|
allowedMethods: z.array(DisbursementPaymentMethodType$inboundSchema),
|
|
44
48
|
recipient: PayoutRecipient$inboundSchema,
|
|
49
|
+
metadata: z.record(z.string()).optional(),
|
|
45
50
|
});
|
|
46
51
|
/** @internal */
|
|
47
52
|
export type PaymentLinkPayoutDetails$Outbound = {
|
|
48
53
|
allowedMethods: Array<string>;
|
|
49
54
|
recipient: PayoutRecipient$Outbound;
|
|
55
|
+
metadata?: { [k: string]: string } | undefined;
|
|
50
56
|
};
|
|
51
57
|
|
|
52
58
|
/** @internal */
|
|
@@ -57,6 +63,7 @@ export const PaymentLinkPayoutDetails$outboundSchema: z.ZodType<
|
|
|
57
63
|
> = z.object({
|
|
58
64
|
allowedMethods: z.array(DisbursementPaymentMethodType$outboundSchema),
|
|
59
65
|
recipient: PayoutRecipient$outboundSchema,
|
|
66
|
+
metadata: z.record(z.string()).optional(),
|
|
60
67
|
});
|
|
61
68
|
|
|
62
69
|
export function paymentLinkPayoutDetailsToJSON(
|
|
@@ -32,6 +32,10 @@ export type PaymentLinkPayoutDetailsUpdate = {
|
|
|
32
32
|
* This information will be used to authenticate the end user when they follow the payment link.
|
|
33
33
|
*/
|
|
34
34
|
recipient?: PayoutRecipient | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Optional free-form metadata for the transfer.
|
|
37
|
+
*/
|
|
38
|
+
metadata?: { [k: string]: string } | undefined;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
/** @internal */
|
|
@@ -43,11 +47,13 @@ export const PaymentLinkPayoutDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
43
47
|
allowedMethods: z.array(DisbursementPaymentMethodType$inboundSchema)
|
|
44
48
|
.optional(),
|
|
45
49
|
recipient: PayoutRecipient$inboundSchema.optional(),
|
|
50
|
+
metadata: z.record(z.string()).optional(),
|
|
46
51
|
});
|
|
47
52
|
/** @internal */
|
|
48
53
|
export type PaymentLinkPayoutDetailsUpdate$Outbound = {
|
|
49
54
|
allowedMethods?: Array<string> | undefined;
|
|
50
55
|
recipient?: PayoutRecipient$Outbound | undefined;
|
|
56
|
+
metadata?: { [k: string]: string } | undefined;
|
|
51
57
|
};
|
|
52
58
|
|
|
53
59
|
/** @internal */
|
|
@@ -59,6 +65,7 @@ export const PaymentLinkPayoutDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
59
65
|
allowedMethods: z.array(DisbursementPaymentMethodType$outboundSchema)
|
|
60
66
|
.optional(),
|
|
61
67
|
recipient: PayoutRecipient$outboundSchema.optional(),
|
|
68
|
+
metadata: z.record(z.string()).optional(),
|
|
62
69
|
});
|
|
63
70
|
|
|
64
71
|
export function paymentLinkPayoutDetailsUpdateToJSON(
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const PaymentLinkType = {
|
|
9
|
+
Payment: "payment",
|
|
10
|
+
Payout: "payout",
|
|
11
|
+
} as const;
|
|
12
|
+
export type PaymentLinkType = ClosedEnum<typeof PaymentLinkType>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PaymentLinkType$inboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof PaymentLinkType
|
|
17
|
+
> = z.nativeEnum(PaymentLinkType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PaymentLinkType$outboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof PaymentLinkType
|
|
21
|
+
> = PaymentLinkType$inboundSchema;
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
export type PayoutDetailsError = {
|
|
17
17
|
allowedMethods?: string | undefined;
|
|
18
18
|
recipient?: PayoutRecipientError | undefined;
|
|
19
|
+
metadata?: string | undefined;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
/** @internal */
|
|
@@ -26,11 +27,13 @@ export const PayoutDetailsError$inboundSchema: z.ZodType<
|
|
|
26
27
|
> = z.object({
|
|
27
28
|
allowedMethods: z.string().optional(),
|
|
28
29
|
recipient: PayoutRecipientError$inboundSchema.optional(),
|
|
30
|
+
metadata: z.string().optional(),
|
|
29
31
|
});
|
|
30
32
|
/** @internal */
|
|
31
33
|
export type PayoutDetailsError$Outbound = {
|
|
32
34
|
allowedMethods?: string | undefined;
|
|
33
35
|
recipient?: PayoutRecipientError$Outbound | undefined;
|
|
36
|
+
metadata?: string | undefined;
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
/** @internal */
|
|
@@ -41,6 +44,7 @@ export const PayoutDetailsError$outboundSchema: z.ZodType<
|
|
|
41
44
|
> = z.object({
|
|
42
45
|
allowedMethods: z.string().optional(),
|
|
43
46
|
recipient: PayoutRecipientError$outboundSchema.optional(),
|
|
47
|
+
metadata: z.string().optional(),
|
|
44
48
|
});
|
|
45
49
|
|
|
46
50
|
export function payoutDetailsErrorToJSON(
|
|
@@ -27,6 +27,10 @@ export type ListPaymentLinksGlobals = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type ListPaymentLinksRequest = {
|
|
30
|
+
skip?: number | undefined;
|
|
31
|
+
count?: number | undefined;
|
|
32
|
+
type?: components.PaymentLinkType | undefined;
|
|
33
|
+
status?: components.PaymentLinkStatus | undefined;
|
|
30
34
|
accountID: string;
|
|
31
35
|
};
|
|
32
36
|
|
|
@@ -88,10 +92,18 @@ export const ListPaymentLinksRequest$inboundSchema: z.ZodType<
|
|
|
88
92
|
z.ZodTypeDef,
|
|
89
93
|
unknown
|
|
90
94
|
> = z.object({
|
|
95
|
+
skip: z.number().int().optional(),
|
|
96
|
+
count: z.number().int().optional(),
|
|
97
|
+
type: components.PaymentLinkType$inboundSchema.optional(),
|
|
98
|
+
status: components.PaymentLinkStatus$inboundSchema.optional(),
|
|
91
99
|
accountID: z.string(),
|
|
92
100
|
});
|
|
93
101
|
/** @internal */
|
|
94
102
|
export type ListPaymentLinksRequest$Outbound = {
|
|
103
|
+
skip?: number | undefined;
|
|
104
|
+
count?: number | undefined;
|
|
105
|
+
type?: string | undefined;
|
|
106
|
+
status?: string | undefined;
|
|
95
107
|
accountID: string;
|
|
96
108
|
};
|
|
97
109
|
|
|
@@ -101,6 +113,10 @@ export const ListPaymentLinksRequest$outboundSchema: z.ZodType<
|
|
|
101
113
|
z.ZodTypeDef,
|
|
102
114
|
ListPaymentLinksRequest
|
|
103
115
|
> = z.object({
|
|
116
|
+
skip: z.number().int().optional(),
|
|
117
|
+
count: z.number().int().optional(),
|
|
118
|
+
type: components.PaymentLinkType$outboundSchema.optional(),
|
|
119
|
+
status: components.PaymentLinkStatus$outboundSchema.optional(),
|
|
104
120
|
accountID: z.string(),
|
|
105
121
|
});
|
|
106
122
|
|