@moovio/sdk 0.10.8 → 0.10.9
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 +58 -7
- package/bin/mcp-server.js.map +12 -10
- 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/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/moovfee.d.ts +52 -0
- package/models/components/moovfee.d.ts.map +1 -0
- package/models/components/moovfee.js +77 -0
- package/models/components/moovfee.js.map +1 -0
- package/models/components/receiptresponse.d.ts +2 -2
- package/models/components/receiptresponse.d.ts.map +1 -1
- package/models/components/receiptresponse.js +2 -2
- package/models/components/receiptresponse.js.map +1 -1
- package/models/components/transfer.d.ts +6 -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/components/transferparty.d.ts +37 -0
- package/models/components/transferparty.d.ts.map +1 -0
- package/models/components/transferparty.js +64 -0
- package/models/components/transferparty.js.map +1 -0
- package/models/errors/transfer.d.ts +9 -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/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/index.ts +2 -0
- package/src/models/components/moovfee.ts +97 -0
- package/src/models/components/receiptresponse.ts +4 -4
- package/src/models/components/transfer.ts +13 -0
- package/src/models/components/transferparty.ts +40 -0
- package/src/models/errors/transfer.ts +12 -0
|
@@ -71,6 +71,8 @@ class Transfer extends Error {
|
|
|
71
71
|
this.moovFeeDecimal = err.moovFeeDecimal;
|
|
72
72
|
if (err.moovFeeDetails != null)
|
|
73
73
|
this.moovFeeDetails = err.moovFeeDetails;
|
|
74
|
+
if (err.moovFees != null)
|
|
75
|
+
this.moovFees = err.moovFees;
|
|
74
76
|
if (err.groupID != null)
|
|
75
77
|
this.groupID = err.groupID;
|
|
76
78
|
if (err.cancellations != null)
|
|
@@ -112,6 +114,7 @@ exports.Transfer$inboundSchema = z.object({
|
|
|
112
114
|
moovFee: z.number().int().optional(),
|
|
113
115
|
moovFeeDecimal: z.string().optional(),
|
|
114
116
|
moovFeeDetails: components.MoovFeeDetails$inboundSchema.optional(),
|
|
117
|
+
moovFees: z.array(components.MoovFee$inboundSchema).optional(),
|
|
115
118
|
groupID: z.string().optional(),
|
|
116
119
|
cancellations: z.array(components.Cancellation$inboundSchema).optional(),
|
|
117
120
|
refundedAmount: components.Amount$inboundSchema.optional(),
|
|
@@ -144,6 +147,7 @@ exports.Transfer$outboundSchema = z.instanceof(Transfer)
|
|
|
144
147
|
moovFee: z.number().int().optional(),
|
|
145
148
|
moovFeeDecimal: z.string().optional(),
|
|
146
149
|
moovFeeDetails: components.MoovFeeDetails$outboundSchema.optional(),
|
|
150
|
+
moovFees: z.array(components.MoovFee$outboundSchema).optional(),
|
|
147
151
|
groupID: z.string().optional(),
|
|
148
152
|
cancellations: z.array(components.Cancellation$outboundSchema).optional(),
|
|
149
153
|
refundedAmount: components.Amount$outboundSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.js","sourceRoot":"","sources":["../../src/models/errors/transfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,mEAAqD;
|
|
1
|
+
{"version":3,"file":"transfer.js","sourceRoot":"","sources":["../../src/models/errors/transfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,mEAAqD;AA+DrD;;GAEG;AACH,MAAa,QA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AAC,mCAAmC,CAAC;SAC9D,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,cAAc,EAAE,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "latest",
|
|
72
|
-
sdkVersion: "0.10.
|
|
72
|
+
sdkVersion: "0.10.9",
|
|
73
73
|
genVersion: "2.568.2",
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.10.9 2.568.2 latest @moovio/sdk",
|
|
75
75
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -225,6 +225,7 @@ export * from "./microdepositstatus.js";
|
|
|
225
225
|
export * from "./minimumcommitment.js";
|
|
226
226
|
export * from "./mode.js";
|
|
227
227
|
export * from "./monthlyplatformfee.js";
|
|
228
|
+
export * from "./moovfee.js";
|
|
228
229
|
export * from "./moovfeedetails.js";
|
|
229
230
|
export * from "./moovwalletpaymentmethod.js";
|
|
230
231
|
export * from "./mxauthorizationcode.js";
|
|
@@ -332,6 +333,7 @@ export * from "./transferaccount.js";
|
|
|
332
333
|
export * from "./transferdestination.js";
|
|
333
334
|
export * from "./transferfailurereason.js";
|
|
334
335
|
export * from "./transferoptions.js";
|
|
336
|
+
export * from "./transferparty.js";
|
|
335
337
|
export * from "./transfersource.js";
|
|
336
338
|
export * from "./transferstatus.js";
|
|
337
339
|
export * from "./transferwaitfor.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
TransferParty,
|
|
17
|
+
TransferParty$inboundSchema,
|
|
18
|
+
TransferParty$outboundSchema,
|
|
19
|
+
} from "./transferparty.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Moov fee charged to an account involved in a transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type MoovFee = {
|
|
25
|
+
/**
|
|
26
|
+
* ID of the account that fees were charged to.
|
|
27
|
+
*/
|
|
28
|
+
accountID: string;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether the account charged is the source, destination, or partner account.
|
|
31
|
+
*/
|
|
32
|
+
transferParty: TransferParty;
|
|
33
|
+
/**
|
|
34
|
+
* The total amount of fees charged to the account.
|
|
35
|
+
*/
|
|
36
|
+
totalAmount: AmountDecimal;
|
|
37
|
+
/**
|
|
38
|
+
* List of fee IDs that sum to the totalAmount.
|
|
39
|
+
*/
|
|
40
|
+
feeIDs: Array<string>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MoovFee$inboundSchema: z.ZodType<MoovFee, z.ZodTypeDef, unknown> =
|
|
45
|
+
z.object({
|
|
46
|
+
accountID: z.string(),
|
|
47
|
+
transferParty: TransferParty$inboundSchema,
|
|
48
|
+
totalAmount: AmountDecimal$inboundSchema,
|
|
49
|
+
feeIDs: z.array(z.string()),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type MoovFee$Outbound = {
|
|
54
|
+
accountID: string;
|
|
55
|
+
transferParty: string;
|
|
56
|
+
totalAmount: AmountDecimal$Outbound;
|
|
57
|
+
feeIDs: Array<string>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const MoovFee$outboundSchema: z.ZodType<
|
|
62
|
+
MoovFee$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
MoovFee
|
|
65
|
+
> = z.object({
|
|
66
|
+
accountID: z.string(),
|
|
67
|
+
transferParty: TransferParty$outboundSchema,
|
|
68
|
+
totalAmount: AmountDecimal$outboundSchema,
|
|
69
|
+
feeIDs: z.array(z.string()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace MoovFee$ {
|
|
77
|
+
/** @deprecated use `MoovFee$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = MoovFee$inboundSchema;
|
|
79
|
+
/** @deprecated use `MoovFee$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = MoovFee$outboundSchema;
|
|
81
|
+
/** @deprecated use `MoovFee$Outbound` instead. */
|
|
82
|
+
export type Outbound = MoovFee$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function moovFeeToJSON(moovFee: MoovFee): string {
|
|
86
|
+
return JSON.stringify(MoovFee$outboundSchema.parse(moovFee));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function moovFeeFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<MoovFee, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => MoovFee$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'MoovFee' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -73,7 +73,7 @@ export type ReceiptResponse = {
|
|
|
73
73
|
/**
|
|
74
74
|
* The list of receipts that have been sent.
|
|
75
75
|
*/
|
|
76
|
-
sentFor
|
|
76
|
+
sentFor?: Array<SentReceipt> | undefined;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
/** @internal */
|
|
@@ -92,7 +92,7 @@ export const ReceiptResponse$inboundSchema: z.ZodType<
|
|
|
92
92
|
forTransferID: z.string().optional(),
|
|
93
93
|
forScheduleID: z.string().optional(),
|
|
94
94
|
forOccurrenceID: z.string().optional(),
|
|
95
|
-
sentFor: z.array(SentReceipt$inboundSchema),
|
|
95
|
+
sentFor: z.array(SentReceipt$inboundSchema).optional(),
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
/** @internal */
|
|
@@ -106,7 +106,7 @@ export type ReceiptResponse$Outbound = {
|
|
|
106
106
|
forTransferID?: string | undefined;
|
|
107
107
|
forScheduleID?: string | undefined;
|
|
108
108
|
forOccurrenceID?: string | undefined;
|
|
109
|
-
sentFor
|
|
109
|
+
sentFor?: Array<SentReceipt$Outbound> | undefined;
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
/** @internal */
|
|
@@ -124,7 +124,7 @@ export const ReceiptResponse$outboundSchema: z.ZodType<
|
|
|
124
124
|
forTransferID: z.string().optional(),
|
|
125
125
|
forScheduleID: z.string().optional(),
|
|
126
126
|
forOccurrenceID: z.string().optional(),
|
|
127
|
-
sentFor: z.array(SentReceipt$outboundSchema),
|
|
127
|
+
sentFor: z.array(SentReceipt$outboundSchema).optional(),
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
/**
|
|
@@ -36,6 +36,12 @@ import {
|
|
|
36
36
|
FacilitatorFee$Outbound,
|
|
37
37
|
FacilitatorFee$outboundSchema,
|
|
38
38
|
} from "./facilitatorfee.js";
|
|
39
|
+
import {
|
|
40
|
+
MoovFee,
|
|
41
|
+
MoovFee$inboundSchema,
|
|
42
|
+
MoovFee$Outbound,
|
|
43
|
+
MoovFee$outboundSchema,
|
|
44
|
+
} from "./moovfee.js";
|
|
39
45
|
import {
|
|
40
46
|
MoovFeeDetails,
|
|
41
47
|
MoovFeeDetails$inboundSchema,
|
|
@@ -107,6 +113,10 @@ export type Transfer = {
|
|
|
107
113
|
* Processing and pass-through costs that add up to the moovFee.
|
|
108
114
|
*/
|
|
109
115
|
moovFeeDetails?: MoovFeeDetails | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Fees charged to accounts involved in the transfer.
|
|
118
|
+
*/
|
|
119
|
+
moovFees?: Array<MoovFee> | undefined;
|
|
110
120
|
groupID?: string | undefined;
|
|
111
121
|
cancellations?: Array<Cancellation> | undefined;
|
|
112
122
|
refundedAmount?: Amount | undefined;
|
|
@@ -143,6 +153,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
143
153
|
moovFee: z.number().int().optional(),
|
|
144
154
|
moovFeeDecimal: z.string().optional(),
|
|
145
155
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
156
|
+
moovFees: z.array(MoovFee$inboundSchema).optional(),
|
|
146
157
|
groupID: z.string().optional(),
|
|
147
158
|
cancellations: z.array(Cancellation$inboundSchema).optional(),
|
|
148
159
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
@@ -171,6 +182,7 @@ export type Transfer$Outbound = {
|
|
|
171
182
|
moovFee?: number | undefined;
|
|
172
183
|
moovFeeDecimal?: string | undefined;
|
|
173
184
|
moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
|
|
185
|
+
moovFees?: Array<MoovFee$Outbound> | undefined;
|
|
174
186
|
groupID?: string | undefined;
|
|
175
187
|
cancellations?: Array<Cancellation$Outbound> | undefined;
|
|
176
188
|
refundedAmount?: Amount$Outbound | undefined;
|
|
@@ -203,6 +215,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
203
215
|
moovFee: z.number().int().optional(),
|
|
204
216
|
moovFeeDecimal: z.string().optional(),
|
|
205
217
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
218
|
+
moovFees: z.array(MoovFee$outboundSchema).optional(),
|
|
206
219
|
groupID: z.string().optional(),
|
|
207
220
|
cancellations: z.array(Cancellation$outboundSchema).optional(),
|
|
208
221
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether an account was the source or destination of a transfer.
|
|
10
|
+
*/
|
|
11
|
+
export const TransferParty = {
|
|
12
|
+
Source: "source",
|
|
13
|
+
Destination: "destination",
|
|
14
|
+
Partner: "partner",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether an account was the source or destination of a transfer.
|
|
18
|
+
*/
|
|
19
|
+
export type TransferParty = ClosedEnum<typeof TransferParty>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const TransferParty$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof TransferParty
|
|
24
|
+
> = z.nativeEnum(TransferParty);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TransferParty$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof TransferParty
|
|
29
|
+
> = TransferParty$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace TransferParty$ {
|
|
36
|
+
/** @deprecated use `TransferParty$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = TransferParty$inboundSchema;
|
|
38
|
+
/** @deprecated use `TransferParty$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = TransferParty$outboundSchema;
|
|
40
|
+
}
|
|
@@ -47,6 +47,10 @@ export type TransferData = {
|
|
|
47
47
|
* Processing and pass-through costs that add up to the moovFee.
|
|
48
48
|
*/
|
|
49
49
|
moovFeeDetails?: components.MoovFeeDetails | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Fees charged to accounts involved in the transfer.
|
|
52
|
+
*/
|
|
53
|
+
moovFees?: Array<components.MoovFee> | undefined;
|
|
50
54
|
groupID?: string | undefined;
|
|
51
55
|
cancellations?: Array<components.Cancellation> | undefined;
|
|
52
56
|
refundedAmount?: components.Amount | undefined;
|
|
@@ -104,6 +108,10 @@ export class Transfer extends Error {
|
|
|
104
108
|
* Processing and pass-through costs that add up to the moovFee.
|
|
105
109
|
*/
|
|
106
110
|
moovFeeDetails?: components.MoovFeeDetails | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Fees charged to accounts involved in the transfer.
|
|
113
|
+
*/
|
|
114
|
+
moovFees?: Array<components.MoovFee> | undefined;
|
|
107
115
|
groupID?: string | undefined;
|
|
108
116
|
cancellations?: Array<components.Cancellation> | undefined;
|
|
109
117
|
refundedAmount?: components.Amount | undefined;
|
|
@@ -142,6 +150,7 @@ export class Transfer extends Error {
|
|
|
142
150
|
if (err.moovFee != null) this.moovFee = err.moovFee;
|
|
143
151
|
if (err.moovFeeDecimal != null) this.moovFeeDecimal = err.moovFeeDecimal;
|
|
144
152
|
if (err.moovFeeDetails != null) this.moovFeeDetails = err.moovFeeDetails;
|
|
153
|
+
if (err.moovFees != null) this.moovFees = err.moovFees;
|
|
145
154
|
if (err.groupID != null) this.groupID = err.groupID;
|
|
146
155
|
if (err.cancellations != null) this.cancellations = err.cancellations;
|
|
147
156
|
if (err.refundedAmount != null) this.refundedAmount = err.refundedAmount;
|
|
@@ -178,6 +187,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
178
187
|
moovFee: z.number().int().optional(),
|
|
179
188
|
moovFeeDecimal: z.string().optional(),
|
|
180
189
|
moovFeeDetails: components.MoovFeeDetails$inboundSchema.optional(),
|
|
190
|
+
moovFees: z.array(components.MoovFee$inboundSchema).optional(),
|
|
181
191
|
groupID: z.string().optional(),
|
|
182
192
|
cancellations: z.array(components.Cancellation$inboundSchema).optional(),
|
|
183
193
|
refundedAmount: components.Amount$inboundSchema.optional(),
|
|
@@ -209,6 +219,7 @@ export type Transfer$Outbound = {
|
|
|
209
219
|
moovFee?: number | undefined;
|
|
210
220
|
moovFeeDecimal?: string | undefined;
|
|
211
221
|
moovFeeDetails?: components.MoovFeeDetails$Outbound | undefined;
|
|
222
|
+
moovFees?: Array<components.MoovFee$Outbound> | undefined;
|
|
212
223
|
groupID?: string | undefined;
|
|
213
224
|
cancellations?: Array<components.Cancellation$Outbound> | undefined;
|
|
214
225
|
refundedAmount?: components.Amount$Outbound | undefined;
|
|
@@ -243,6 +254,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
243
254
|
moovFee: z.number().int().optional(),
|
|
244
255
|
moovFeeDecimal: z.string().optional(),
|
|
245
256
|
moovFeeDetails: components.MoovFeeDetails$outboundSchema.optional(),
|
|
257
|
+
moovFees: z.array(components.MoovFee$outboundSchema).optional(),
|
|
246
258
|
groupID: z.string().optional(),
|
|
247
259
|
cancellations: z.array(components.Cancellation$outboundSchema).optional(),
|
|
248
260
|
refundedAmount: components.Amount$outboundSchema.optional(),
|