@moovio/sdk 25.8.4 → 25.8.5
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 +37 -29
- package/bin/mcp-server.js.map +9 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- 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/rtptransactiondetails.d.ts +45 -0
- package/models/components/rtptransactiondetails.d.ts.map +1 -0
- package/models/components/rtptransactiondetails.js +75 -0
- package/models/components/rtptransactiondetails.js.map +1 -0
- package/models/components/transferdestination.d.ts +5 -43
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +4 -36
- package/models/components/transferdestination.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/rtptransactiondetails.ts +104 -0
- package/src/models/components/transferdestination.ts +11 -95
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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
|
+
RTPFailureCode,
|
|
11
|
+
RTPFailureCode$inboundSchema,
|
|
12
|
+
RTPFailureCode$outboundSchema,
|
|
13
|
+
} from "./rtpfailurecode.js";
|
|
14
|
+
import {
|
|
15
|
+
RTPTransactionStatus,
|
|
16
|
+
RTPTransactionStatus$inboundSchema,
|
|
17
|
+
RTPTransactionStatus$outboundSchema,
|
|
18
|
+
} from "./rtptransactionstatus.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
24
|
+
*/
|
|
25
|
+
export type RTPTransactionDetails = {
|
|
26
|
+
/**
|
|
27
|
+
* Status of a transaction within the RTP lifecycle.
|
|
28
|
+
*/
|
|
29
|
+
status?: RTPTransactionStatus | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Response code returned by network on failure.
|
|
32
|
+
*/
|
|
33
|
+
networkResponseCode?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Status codes for RTP failures.
|
|
36
|
+
*/
|
|
37
|
+
failureCode?: RTPFailureCode | undefined;
|
|
38
|
+
initiatedOn?: Date | undefined;
|
|
39
|
+
completedOn?: Date | undefined;
|
|
40
|
+
failedOn?: Date | undefined;
|
|
41
|
+
acceptedWithoutPostingOn?: Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const RTPTransactionDetails$inboundSchema: z.ZodType<
|
|
46
|
+
RTPTransactionDetails,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
status: RTPTransactionStatus$inboundSchema.optional(),
|
|
51
|
+
networkResponseCode: z.string().optional(),
|
|
52
|
+
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
53
|
+
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
+
.optional(),
|
|
55
|
+
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
|
+
.optional(),
|
|
57
|
+
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
58
|
+
.optional(),
|
|
59
|
+
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
|
|
60
|
+
new Date(v)
|
|
61
|
+
).optional(),
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type RTPTransactionDetails$Outbound = {
|
|
65
|
+
status?: string | undefined;
|
|
66
|
+
networkResponseCode?: string | undefined;
|
|
67
|
+
failureCode?: string | undefined;
|
|
68
|
+
initiatedOn?: string | undefined;
|
|
69
|
+
completedOn?: string | undefined;
|
|
70
|
+
failedOn?: string | undefined;
|
|
71
|
+
acceptedWithoutPostingOn?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const RTPTransactionDetails$outboundSchema: z.ZodType<
|
|
76
|
+
RTPTransactionDetails$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
RTPTransactionDetails
|
|
79
|
+
> = z.object({
|
|
80
|
+
status: RTPTransactionStatus$outboundSchema.optional(),
|
|
81
|
+
networkResponseCode: z.string().optional(),
|
|
82
|
+
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
83
|
+
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
84
|
+
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
85
|
+
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
86
|
+
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function rtpTransactionDetailsToJSON(
|
|
90
|
+
rtpTransactionDetails: RTPTransactionDetails,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export function rtpTransactionDetailsFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<RTPTransactionDetails, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'RTPTransactionDetails' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -31,15 +31,11 @@ import {
|
|
|
31
31
|
InstantBankTransactionDetails$outboundSchema,
|
|
32
32
|
} from "./instantbanktransactiondetails.js";
|
|
33
33
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
RTPTransactionStatus,
|
|
40
|
-
RTPTransactionStatus$inboundSchema,
|
|
41
|
-
RTPTransactionStatus$outboundSchema,
|
|
42
|
-
} from "./rtptransactionstatus.js";
|
|
34
|
+
RTPTransactionDetails,
|
|
35
|
+
RTPTransactionDetails$inboundSchema,
|
|
36
|
+
RTPTransactionDetails$Outbound,
|
|
37
|
+
RTPTransactionDetails$outboundSchema,
|
|
38
|
+
} from "./rtptransactiondetails.js";
|
|
43
39
|
import {
|
|
44
40
|
TransferAccount,
|
|
45
41
|
TransferAccount$inboundSchema,
|
|
@@ -70,30 +66,6 @@ import {
|
|
|
70
66
|
TransferPaymentMethodType$outboundSchema,
|
|
71
67
|
} from "./transferpaymentmethodtype.js";
|
|
72
68
|
|
|
73
|
-
/**
|
|
74
|
-
* DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
|
|
75
|
-
*
|
|
76
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
77
|
-
*/
|
|
78
|
-
export type RtpDetails = {
|
|
79
|
-
/**
|
|
80
|
-
* Status of a transaction within the RTP lifecycle.
|
|
81
|
-
*/
|
|
82
|
-
status?: RTPTransactionStatus | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Response code returned by network on failure.
|
|
85
|
-
*/
|
|
86
|
-
networkResponseCode?: string | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Status codes for RTP failures.
|
|
89
|
-
*/
|
|
90
|
-
failureCode?: RTPFailureCode | undefined;
|
|
91
|
-
initiatedOn?: Date | undefined;
|
|
92
|
-
completedOn?: Date | undefined;
|
|
93
|
-
failedOn?: Date | undefined;
|
|
94
|
-
acceptedWithoutPostingOn?: Date | undefined;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
69
|
export type TransferDestination = {
|
|
98
70
|
paymentMethodID: string;
|
|
99
71
|
/**
|
|
@@ -123,73 +95,17 @@ export type TransferDestination = {
|
|
|
123
95
|
*/
|
|
124
96
|
cardDetails?: CardTransactionDetails | undefined;
|
|
125
97
|
/**
|
|
98
|
+
* DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
|
|
99
|
+
*
|
|
126
100
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
127
101
|
*/
|
|
128
|
-
rtpDetails?:
|
|
102
|
+
rtpDetails?: RTPTransactionDetails | undefined;
|
|
129
103
|
/**
|
|
130
104
|
* Instant-bank specific details about the transaction.
|
|
131
105
|
*/
|
|
132
106
|
instantBankDetails?: InstantBankTransactionDetails | undefined;
|
|
133
107
|
};
|
|
134
108
|
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const RtpDetails$inboundSchema: z.ZodType<
|
|
137
|
-
RtpDetails,
|
|
138
|
-
z.ZodTypeDef,
|
|
139
|
-
unknown
|
|
140
|
-
> = z.object({
|
|
141
|
-
status: RTPTransactionStatus$inboundSchema.optional(),
|
|
142
|
-
networkResponseCode: z.string().optional(),
|
|
143
|
-
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
144
|
-
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
145
|
-
.optional(),
|
|
146
|
-
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
147
|
-
.optional(),
|
|
148
|
-
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
149
|
-
.optional(),
|
|
150
|
-
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
|
|
151
|
-
new Date(v)
|
|
152
|
-
).optional(),
|
|
153
|
-
});
|
|
154
|
-
/** @internal */
|
|
155
|
-
export type RtpDetails$Outbound = {
|
|
156
|
-
status?: string | undefined;
|
|
157
|
-
networkResponseCode?: string | undefined;
|
|
158
|
-
failureCode?: string | undefined;
|
|
159
|
-
initiatedOn?: string | undefined;
|
|
160
|
-
completedOn?: string | undefined;
|
|
161
|
-
failedOn?: string | undefined;
|
|
162
|
-
acceptedWithoutPostingOn?: string | undefined;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/** @internal */
|
|
166
|
-
export const RtpDetails$outboundSchema: z.ZodType<
|
|
167
|
-
RtpDetails$Outbound,
|
|
168
|
-
z.ZodTypeDef,
|
|
169
|
-
RtpDetails
|
|
170
|
-
> = z.object({
|
|
171
|
-
status: RTPTransactionStatus$outboundSchema.optional(),
|
|
172
|
-
networkResponseCode: z.string().optional(),
|
|
173
|
-
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
174
|
-
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
175
|
-
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
176
|
-
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
177
|
-
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
export function rtpDetailsToJSON(rtpDetails: RtpDetails): string {
|
|
181
|
-
return JSON.stringify(RtpDetails$outboundSchema.parse(rtpDetails));
|
|
182
|
-
}
|
|
183
|
-
export function rtpDetailsFromJSON(
|
|
184
|
-
jsonString: string,
|
|
185
|
-
): SafeParseResult<RtpDetails, SDKValidationError> {
|
|
186
|
-
return safeParse(
|
|
187
|
-
jsonString,
|
|
188
|
-
(x) => RtpDetails$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
-
`Failed to parse 'RtpDetails' from JSON`,
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
109
|
/** @internal */
|
|
194
110
|
export const TransferDestination$inboundSchema: z.ZodType<
|
|
195
111
|
TransferDestination,
|
|
@@ -205,7 +121,7 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
205
121
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
206
122
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
207
123
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
208
|
-
rtpDetails:
|
|
124
|
+
rtpDetails: RTPTransactionDetails$inboundSchema.optional(),
|
|
209
125
|
instantBankDetails: InstantBankTransactionDetails$inboundSchema.optional(),
|
|
210
126
|
});
|
|
211
127
|
/** @internal */
|
|
@@ -219,7 +135,7 @@ export type TransferDestination$Outbound = {
|
|
|
219
135
|
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
220
136
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
221
137
|
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
222
|
-
rtpDetails?:
|
|
138
|
+
rtpDetails?: RTPTransactionDetails$Outbound | undefined;
|
|
223
139
|
instantBankDetails?: InstantBankTransactionDetails$Outbound | undefined;
|
|
224
140
|
};
|
|
225
141
|
|
|
@@ -238,7 +154,7 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
238
154
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
239
155
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
240
156
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
241
|
-
rtpDetails:
|
|
157
|
+
rtpDetails: RTPTransactionDetails$outboundSchema.optional(),
|
|
242
158
|
instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional(),
|
|
243
159
|
});
|
|
244
160
|
|