@moovio/sdk 26.7.0 → 26.7.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.
Files changed (266) hide show
  1. package/README.md +85 -73
  2. package/bin/mcp-server.js +999 -351
  3. package/bin/mcp-server.js.map +59 -35
  4. package/funcs/cardIssuingListMerchantCategories.d.ts +19 -0
  5. package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
  6. package/funcs/cardIssuingListMerchantCategories.js +109 -0
  7. package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
  8. package/funcs/transfersList.js +2 -0
  9. package/funcs/transfersList.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +2 -2
  12. package/lib/config.js +2 -2
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts.map +1 -1
  15. package/mcp-server/server.js +8 -6
  16. package/mcp-server/server.js.map +1 -1
  17. package/mcp-server/tools/avatarsGet.js +1 -1
  18. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts +3 -0
  19. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
  20. package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
  21. package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
  22. package/mcp-server/tools/enrichedAddressGet.js +1 -1
  23. package/mcp-server/tools/enrichedProfileGet.js +1 -1
  24. package/mcp-server/tools/institutionsSearch.js +1 -1
  25. package/models/components/allowedscheduleerror.d.ts +24 -0
  26. package/models/components/allowedscheduleerror.d.ts.map +1 -0
  27. package/models/components/allowedscheduleerror.js +62 -0
  28. package/models/components/allowedscheduleerror.js.map +1 -0
  29. package/models/components/createdtransfer.d.ts +6 -0
  30. package/models/components/createdtransfer.d.ts.map +1 -1
  31. package/models/components/createdtransfer.js +3 -0
  32. package/models/components/createdtransfer.js.map +1 -1
  33. package/models/components/createrefund.d.ts +2 -2
  34. package/models/components/createreversal.d.ts +1 -1
  35. package/models/components/fullissuedcard.d.ts +6 -3
  36. package/models/components/fullissuedcard.d.ts.map +1 -1
  37. package/models/components/fullissuedcard.js +3 -3
  38. package/models/components/fullissuedcard.js.map +1 -1
  39. package/models/components/index.d.ts +21 -0
  40. package/models/components/index.d.ts.map +1 -1
  41. package/models/components/index.js +21 -0
  42. package/models/components/index.js.map +1 -1
  43. package/models/components/issuedcard.d.ts +6 -3
  44. package/models/components/issuedcard.d.ts.map +1 -1
  45. package/models/components/issuedcard.js +3 -3
  46. package/models/components/issuedcard.js.map +1 -1
  47. package/models/components/issuedcontrols.d.ts +76 -0
  48. package/models/components/issuedcontrols.d.ts.map +1 -0
  49. package/models/components/issuedcontrols.js +92 -0
  50. package/models/components/issuedcontrols.js.map +1 -0
  51. package/models/components/issuedvelocitylimit.d.ts +59 -0
  52. package/models/components/issuedvelocitylimit.d.ts.map +1 -0
  53. package/models/components/issuedvelocitylimit.js +74 -0
  54. package/models/components/issuedvelocitylimit.js.map +1 -0
  55. package/models/components/issuingcontrols.d.ts +47 -0
  56. package/models/components/issuingcontrols.d.ts.map +1 -1
  57. package/models/components/issuingcontrols.js +33 -1
  58. package/models/components/issuingcontrols.js.map +1 -1
  59. package/models/components/issuingcontrolserror.d.ts +11 -0
  60. package/models/components/issuingcontrolserror.d.ts.map +1 -1
  61. package/models/components/issuingcontrolserror.js +12 -0
  62. package/models/components/issuingcontrolserror.js.map +1 -1
  63. package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
  64. package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
  65. package/models/components/issuingcontrolsrestrictionmode.js +52 -0
  66. package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
  67. package/models/components/issuingintervallimit.d.ts +7 -4
  68. package/models/components/issuingintervallimit.d.ts.map +1 -1
  69. package/models/components/issuingintervallimit.js +6 -3
  70. package/models/components/issuingintervallimit.js.map +1 -1
  71. package/models/components/issuingmerchantcategory.d.ts +42 -0
  72. package/models/components/issuingmerchantcategory.d.ts.map +1 -0
  73. package/models/components/issuingmerchantcategory.js +76 -0
  74. package/models/components/issuingmerchantcategory.js.map +1 -0
  75. package/models/components/issuingscheduleday.d.ts +17 -0
  76. package/models/components/issuingscheduleday.d.ts.map +1 -0
  77. package/models/components/issuingscheduleday.js +54 -0
  78. package/models/components/issuingscheduleday.js.map +1 -0
  79. package/models/components/issuingvelocitylimit.d.ts +7 -2
  80. package/models/components/issuingvelocitylimit.d.ts.map +1 -1
  81. package/models/components/issuingvelocitylimit.js +4 -2
  82. package/models/components/issuingvelocitylimit.js.map +1 -1
  83. package/models/components/issuingvelocitylimiterror.d.ts +2 -0
  84. package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
  85. package/models/components/issuingvelocitylimiterror.js +2 -0
  86. package/models/components/issuingvelocitylimiterror.js.map +1 -1
  87. package/models/components/merchantcategories.d.ts +21 -0
  88. package/models/components/merchantcategories.d.ts.map +1 -0
  89. package/models/components/merchantcategories.js +59 -0
  90. package/models/components/merchantcategories.js.map +1 -0
  91. package/models/components/merchantcategory.d.ts +32 -0
  92. package/models/components/merchantcategory.d.ts.map +1 -0
  93. package/models/components/merchantcategory.js +62 -0
  94. package/models/components/merchantcategory.js.map +1 -0
  95. package/models/components/merchantcategoryrestrictions.d.ts +41 -0
  96. package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
  97. package/models/components/merchantcategoryrestrictions.js +68 -0
  98. package/models/components/merchantcategoryrestrictions.js.map +1 -0
  99. package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
  100. package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
  101. package/models/components/merchantcategoryrestrictionserror.js +66 -0
  102. package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
  103. package/models/components/merchantentry.d.ts +33 -0
  104. package/models/components/merchantentry.d.ts.map +1 -0
  105. package/models/components/merchantentry.js +63 -0
  106. package/models/components/merchantentry.js.map +1 -0
  107. package/models/components/merchantentryerror.d.ts +19 -0
  108. package/models/components/merchantentryerror.d.ts.map +1 -0
  109. package/models/components/merchantentryerror.js +61 -0
  110. package/models/components/merchantentryerror.js.map +1 -0
  111. package/models/components/merchantrestrictions.d.ts +30 -0
  112. package/models/components/merchantrestrictions.d.ts.map +1 -0
  113. package/models/components/merchantrestrictions.js +62 -0
  114. package/models/components/merchantrestrictions.js.map +1 -0
  115. package/models/components/merchantrestrictionserror.d.ts +24 -0
  116. package/models/components/merchantrestrictionserror.d.ts.map +1 -0
  117. package/models/components/merchantrestrictionserror.js +62 -0
  118. package/models/components/merchantrestrictionserror.js.map +1 -0
  119. package/models/components/paymentmethodswallet.d.ts +1 -0
  120. package/models/components/paymentmethodswallet.d.ts.map +1 -1
  121. package/models/components/paymentmethodswallet.js.map +1 -1
  122. package/models/components/schedulewindow.d.ts +34 -0
  123. package/models/components/schedulewindow.d.ts.map +1 -0
  124. package/models/components/schedulewindow.js +64 -0
  125. package/models/components/schedulewindow.js.map +1 -0
  126. package/models/components/schedulewindowerror.d.ts +21 -0
  127. package/models/components/schedulewindowerror.d.ts.map +1 -0
  128. package/models/components/schedulewindowerror.js +63 -0
  129. package/models/components/schedulewindowerror.js.map +1 -0
  130. package/models/components/sendfunds.d.ts +3 -0
  131. package/models/components/sendfunds.d.ts.map +1 -1
  132. package/models/components/sendfunds.js +3 -0
  133. package/models/components/sendfunds.js.map +1 -1
  134. package/models/components/sendfundserror.d.ts +3 -0
  135. package/models/components/sendfundserror.d.ts.map +1 -1
  136. package/models/components/sendfundserror.js +3 -0
  137. package/models/components/sendfundserror.js.map +1 -1
  138. package/models/components/sendfundswire.d.ts +18 -0
  139. package/models/components/sendfundswire.d.ts.map +1 -0
  140. package/models/components/sendfundswire.js +60 -0
  141. package/models/components/sendfundswire.js.map +1 -0
  142. package/models/components/sendfundswireerror.d.ts +18 -0
  143. package/models/components/sendfundswireerror.d.ts.map +1 -0
  144. package/models/components/sendfundswireerror.js +60 -0
  145. package/models/components/sendfundswireerror.js.map +1 -0
  146. package/models/components/transfer.d.ts +6 -0
  147. package/models/components/transfer.d.ts.map +1 -1
  148. package/models/components/transfer.js +3 -0
  149. package/models/components/transfer.js.map +1 -1
  150. package/models/components/transfercapture.d.ts +28 -0
  151. package/models/components/transfercapture.d.ts.map +1 -0
  152. package/models/components/transfercapture.js +61 -0
  153. package/models/components/transfercapture.js.map +1 -0
  154. package/models/components/transferpaymentmethodswallet.d.ts +1 -0
  155. package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
  156. package/models/components/transferpaymentmethodswallet.js.map +1 -1
  157. package/models/components/updateissuedcard.d.ts +6 -0
  158. package/models/components/updateissuedcard.d.ts.map +1 -1
  159. package/models/components/updateissuedcard.js +3 -0
  160. package/models/components/updateissuedcard.js.map +1 -1
  161. package/models/components/updateissuingcontrols.d.ts +130 -0
  162. package/models/components/updateissuingcontrols.d.ts.map +1 -0
  163. package/models/components/updateissuingcontrols.js +130 -0
  164. package/models/components/updateissuingcontrols.js.map +1 -0
  165. package/models/components/updateissuingcontrolserror.d.ts +33 -0
  166. package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
  167. package/models/components/updateissuingcontrolserror.js +72 -0
  168. package/models/components/updateissuingcontrolserror.js.map +1 -0
  169. package/models/components/wallet.d.ts +1 -0
  170. package/models/components/wallet.d.ts.map +1 -1
  171. package/models/components/wallet.js.map +1 -1
  172. package/models/components/wallettype.d.ts +3 -0
  173. package/models/components/wallettype.d.ts.map +1 -1
  174. package/models/components/wallettype.js +2 -0
  175. package/models/components/wallettype.js.map +1 -1
  176. package/models/components/webhookdatatransferstatus.d.ts +3 -0
  177. package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
  178. package/models/components/webhookdatatransferstatus.js +3 -0
  179. package/models/components/webhookdatatransferstatus.js.map +1 -1
  180. package/models/errors/transfer.d.ts +9 -0
  181. package/models/errors/transfer.d.ts.map +1 -1
  182. package/models/errors/transfer.js +4 -0
  183. package/models/errors/transfer.js.map +1 -1
  184. package/models/errors/updateissuedcarderror.d.ts +3 -0
  185. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  186. package/models/errors/updateissuedcarderror.js +4 -0
  187. package/models/errors/updateissuedcarderror.js.map +1 -1
  188. package/models/operations/index.d.ts +1 -0
  189. package/models/operations/index.d.ts.map +1 -1
  190. package/models/operations/index.js +1 -0
  191. package/models/operations/index.js.map +1 -1
  192. package/models/operations/listissuingmerchantcategories.d.ts +24 -0
  193. package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
  194. package/models/operations/listissuingmerchantcategories.js +72 -0
  195. package/models/operations/listissuingmerchantcategories.js.map +1 -0
  196. package/models/operations/listtransfers.d.ts +10 -0
  197. package/models/operations/listtransfers.d.ts.map +1 -1
  198. package/models/operations/listtransfers.js +4 -0
  199. package/models/operations/listtransfers.js.map +1 -1
  200. package/package.json +1 -1
  201. package/sdk/cardissuing.d.ts +9 -0
  202. package/sdk/cardissuing.d.ts.map +1 -1
  203. package/sdk/cardissuing.js +12 -0
  204. package/sdk/cardissuing.js.map +1 -1
  205. package/sdk/sdk.d.ts +2 -2
  206. package/sdk/sdk.d.ts.map +1 -1
  207. package/sdk/sdk.js +3 -3
  208. package/sdk/sdk.js.map +1 -1
  209. package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
  210. package/src/funcs/transfersList.ts +2 -0
  211. package/src/lib/config.ts +2 -2
  212. package/src/mcp-server/mcp-server.ts +1 -1
  213. package/src/mcp-server/server.ts +8 -6
  214. package/src/mcp-server/tools/avatarsGet.ts +1 -1
  215. package/src/mcp-server/tools/cardIssuingListMerchantCategories.ts +34 -0
  216. package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
  217. package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
  218. package/src/mcp-server/tools/institutionsSearch.ts +1 -1
  219. package/src/models/components/allowedscheduleerror.ts +62 -0
  220. package/src/models/components/createdtransfer.ts +13 -0
  221. package/src/models/components/createrefund.ts +2 -2
  222. package/src/models/components/createreversal.ts +1 -1
  223. package/src/models/components/fullissuedcard.ts +12 -9
  224. package/src/models/components/index.ts +21 -0
  225. package/src/models/components/issuedcard.ts +12 -9
  226. package/src/models/components/issuedcontrols.ts +180 -0
  227. package/src/models/components/issuedvelocitylimit.ts +112 -0
  228. package/src/models/components/issuingcontrols.ts +107 -0
  229. package/src/models/components/issuingcontrolserror.ts +39 -0
  230. package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
  231. package/src/models/components/issuingintervallimit.ts +16 -8
  232. package/src/models/components/issuingmerchantcategory.ts +56 -0
  233. package/src/models/components/issuingscheduleday.ts +26 -0
  234. package/src/models/components/issuingvelocitylimit.ts +11 -4
  235. package/src/models/components/issuingvelocitylimiterror.ts +4 -0
  236. package/src/models/components/merchantcategories.ts +60 -0
  237. package/src/models/components/merchantcategory.ts +73 -0
  238. package/src/models/components/merchantcategoryrestrictions.ts +97 -0
  239. package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
  240. package/src/models/components/merchantentry.ts +68 -0
  241. package/src/models/components/merchantentryerror.ts +56 -0
  242. package/src/models/components/merchantrestrictions.ts +75 -0
  243. package/src/models/components/merchantrestrictionserror.ts +62 -0
  244. package/src/models/components/paymentmethodswallet.ts +1 -0
  245. package/src/models/components/schedulewindow.ts +73 -0
  246. package/src/models/components/schedulewindowerror.ts +60 -0
  247. package/src/models/components/sendfunds.ts +10 -0
  248. package/src/models/components/sendfundserror.ts +10 -0
  249. package/src/models/components/sendfundswire.ts +54 -0
  250. package/src/models/components/sendfundswireerror.ts +58 -0
  251. package/src/models/components/transfer.ts +13 -0
  252. package/src/models/components/transfercapture.ts +63 -0
  253. package/src/models/components/transferpaymentmethodswallet.ts +1 -0
  254. package/src/models/components/updateissuedcard.ts +13 -0
  255. package/src/models/components/updateissuingcontrols.ts +351 -0
  256. package/src/models/components/updateissuingcontrolserror.ts +101 -0
  257. package/src/models/components/wallet.ts +1 -0
  258. package/src/models/components/wallettype.ts +3 -0
  259. package/src/models/components/webhookdatatransferstatus.ts +3 -0
  260. package/src/models/errors/transfer.ts +12 -0
  261. package/src/models/errors/updateissuedcarderror.ts +6 -0
  262. package/src/models/operations/index.ts +1 -0
  263. package/src/models/operations/listissuingmerchantcategories.ts +70 -0
  264. package/src/models/operations/listtransfers.ts +14 -0
  265. package/src/sdk/cardissuing.ts +18 -0
  266. package/src/sdk/sdk.ts +5 -5
@@ -0,0 +1,73 @@
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 * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ IssuingScheduleDay,
12
+ IssuingScheduleDay$inboundSchema,
13
+ IssuingScheduleDay$outboundSchema,
14
+ } from "./issuingscheduleday.js";
15
+
16
+ /**
17
+ * A window of time during which the card may authorize.
18
+ */
19
+ export type ScheduleWindow = {
20
+ /**
21
+ * The days of the week this window applies to.
22
+ */
23
+ days: Array<IssuingScheduleDay>;
24
+ /**
25
+ * Inclusive window start time in 24-hour `HH:MM` format.
26
+ */
27
+ startTime: string;
28
+ /**
29
+ * Exclusive window end time in 24-hour `HH:MM` format. If earlier than `startTime`, the window wraps past midnight.
30
+ */
31
+ endTime: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ScheduleWindow$inboundSchema: z.ZodType<
36
+ ScheduleWindow,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ days: z.array(IssuingScheduleDay$inboundSchema),
41
+ startTime: types.string(),
42
+ endTime: types.string(),
43
+ });
44
+ /** @internal */
45
+ export type ScheduleWindow$Outbound = {
46
+ days: Array<string>;
47
+ startTime: string;
48
+ endTime: string;
49
+ };
50
+
51
+ /** @internal */
52
+ export const ScheduleWindow$outboundSchema: z.ZodType<
53
+ ScheduleWindow$Outbound,
54
+ z.ZodTypeDef,
55
+ ScheduleWindow
56
+ > = z.object({
57
+ days: z.array(IssuingScheduleDay$outboundSchema),
58
+ startTime: z.string(),
59
+ endTime: z.string(),
60
+ });
61
+
62
+ export function scheduleWindowToJSON(scheduleWindow: ScheduleWindow): string {
63
+ return JSON.stringify(ScheduleWindow$outboundSchema.parse(scheduleWindow));
64
+ }
65
+ export function scheduleWindowFromJSON(
66
+ jsonString: string,
67
+ ): SafeParseResult<ScheduleWindow, SDKValidationError> {
68
+ return safeParse(
69
+ jsonString,
70
+ (x) => ScheduleWindow$inboundSchema.parse(JSON.parse(x)),
71
+ `Failed to parse 'ScheduleWindow' from JSON`,
72
+ );
73
+ }
@@ -0,0 +1,60 @@
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 * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type ScheduleWindowError = {
12
+ days?: string | undefined;
13
+ startTime?: string | undefined;
14
+ endTime?: string | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const ScheduleWindowError$inboundSchema: z.ZodType<
19
+ ScheduleWindowError,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ days: types.optional(types.string()),
24
+ startTime: types.optional(types.string()),
25
+ endTime: types.optional(types.string()),
26
+ });
27
+ /** @internal */
28
+ export type ScheduleWindowError$Outbound = {
29
+ days?: string | undefined;
30
+ startTime?: string | undefined;
31
+ endTime?: string | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ScheduleWindowError$outboundSchema: z.ZodType<
36
+ ScheduleWindowError$Outbound,
37
+ z.ZodTypeDef,
38
+ ScheduleWindowError
39
+ > = z.object({
40
+ days: z.string().optional(),
41
+ startTime: z.string().optional(),
42
+ endTime: z.string().optional(),
43
+ });
44
+
45
+ export function scheduleWindowErrorToJSON(
46
+ scheduleWindowError: ScheduleWindowError,
47
+ ): string {
48
+ return JSON.stringify(
49
+ ScheduleWindowError$outboundSchema.parse(scheduleWindowError),
50
+ );
51
+ }
52
+ export function scheduleWindowErrorFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<ScheduleWindowError, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => ScheduleWindowError$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'ScheduleWindowError' from JSON`,
59
+ );
60
+ }
@@ -31,12 +31,19 @@ import {
31
31
  SendFundsRtp$Outbound,
32
32
  SendFundsRtp$outboundSchema,
33
33
  } from "./sendfundsrtp.js";
34
+ import {
35
+ SendFundsWire,
36
+ SendFundsWire$inboundSchema,
37
+ SendFundsWire$Outbound,
38
+ SendFundsWire$outboundSchema,
39
+ } from "./sendfundswire.js";
34
40
 
35
41
  export type SendFunds = {
36
42
  ach?: SendFundsAch | undefined;
37
43
  pushToCard?: SendFundsPushToCard | undefined;
38
44
  rtp?: SendFundsRtp | undefined;
39
45
  instantBank?: SendFundsInstantBank | undefined;
46
+ wire?: SendFundsWire | undefined;
40
47
  };
41
48
 
42
49
  /** @internal */
@@ -49,6 +56,7 @@ export const SendFunds$inboundSchema: z.ZodType<
49
56
  pushToCard: types.optional(SendFundsPushToCard$inboundSchema),
50
57
  rtp: types.optional(SendFundsRtp$inboundSchema),
51
58
  instantBank: types.optional(SendFundsInstantBank$inboundSchema),
59
+ wire: types.optional(SendFundsWire$inboundSchema),
52
60
  });
53
61
  /** @internal */
54
62
  export type SendFunds$Outbound = {
@@ -56,6 +64,7 @@ export type SendFunds$Outbound = {
56
64
  pushToCard?: SendFundsPushToCard$Outbound | undefined;
57
65
  rtp?: SendFundsRtp$Outbound | undefined;
58
66
  instantBank?: SendFundsInstantBank$Outbound | undefined;
67
+ wire?: SendFundsWire$Outbound | undefined;
59
68
  };
60
69
 
61
70
  /** @internal */
@@ -68,6 +77,7 @@ export const SendFunds$outboundSchema: z.ZodType<
68
77
  pushToCard: SendFundsPushToCard$outboundSchema.optional(),
69
78
  rtp: SendFundsRtp$outboundSchema.optional(),
70
79
  instantBank: SendFundsInstantBank$outboundSchema.optional(),
80
+ wire: SendFundsWire$outboundSchema.optional(),
71
81
  });
72
82
 
73
83
  export function sendFundsToJSON(sendFunds: SendFunds): string {
@@ -31,12 +31,19 @@ import {
31
31
  SendFundsRtpError$Outbound,
32
32
  SendFundsRtpError$outboundSchema,
33
33
  } from "./sendfundsrtperror.js";
34
+ import {
35
+ SendFundsWireError,
36
+ SendFundsWireError$inboundSchema,
37
+ SendFundsWireError$Outbound,
38
+ SendFundsWireError$outboundSchema,
39
+ } from "./sendfundswireerror.js";
34
40
 
35
41
  export type SendFundsError = {
36
42
  ach?: SendFundsAchError | undefined;
37
43
  pushToCard?: SendFundsPushToCardError | undefined;
38
44
  rtp?: SendFundsRtpError | undefined;
39
45
  instantBank?: SendFundsInstantBankError | undefined;
46
+ wire?: SendFundsWireError | undefined;
40
47
  };
41
48
 
42
49
  /** @internal */
@@ -49,6 +56,7 @@ export const SendFundsError$inboundSchema: z.ZodType<
49
56
  pushToCard: types.optional(SendFundsPushToCardError$inboundSchema),
50
57
  rtp: types.optional(SendFundsRtpError$inboundSchema),
51
58
  instantBank: types.optional(SendFundsInstantBankError$inboundSchema),
59
+ wire: types.optional(SendFundsWireError$inboundSchema),
52
60
  });
53
61
  /** @internal */
54
62
  export type SendFundsError$Outbound = {
@@ -56,6 +64,7 @@ export type SendFundsError$Outbound = {
56
64
  pushToCard?: SendFundsPushToCardError$Outbound | undefined;
57
65
  rtp?: SendFundsRtpError$Outbound | undefined;
58
66
  instantBank?: SendFundsInstantBankError$Outbound | undefined;
67
+ wire?: SendFundsWireError$Outbound | undefined;
59
68
  };
60
69
 
61
70
  /** @internal */
@@ -68,6 +77,7 @@ export const SendFundsError$outboundSchema: z.ZodType<
68
77
  pushToCard: SendFundsPushToCardError$outboundSchema.optional(),
69
78
  rtp: SendFundsRtpError$outboundSchema.optional(),
70
79
  instantBank: SendFundsInstantBankError$outboundSchema.optional(),
80
+ wire: SendFundsWireError$outboundSchema.optional(),
71
81
  });
72
82
 
73
83
  export function sendFundsErrorToJSON(sendFundsError: SendFundsError): string {
@@ -0,0 +1,54 @@
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 * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ EstimatedActivity,
12
+ EstimatedActivity$inboundSchema,
13
+ EstimatedActivity$Outbound,
14
+ EstimatedActivity$outboundSchema,
15
+ } from "./estimatedactivity.js";
16
+
17
+ export type SendFundsWire = {
18
+ estimatedActivity?: EstimatedActivity | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const SendFundsWire$inboundSchema: z.ZodType<
23
+ SendFundsWire,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ estimatedActivity: types.optional(EstimatedActivity$inboundSchema),
28
+ });
29
+ /** @internal */
30
+ export type SendFundsWire$Outbound = {
31
+ estimatedActivity?: EstimatedActivity$Outbound | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const SendFundsWire$outboundSchema: z.ZodType<
36
+ SendFundsWire$Outbound,
37
+ z.ZodTypeDef,
38
+ SendFundsWire
39
+ > = z.object({
40
+ estimatedActivity: EstimatedActivity$outboundSchema.optional(),
41
+ });
42
+
43
+ export function sendFundsWireToJSON(sendFundsWire: SendFundsWire): string {
44
+ return JSON.stringify(SendFundsWire$outboundSchema.parse(sendFundsWire));
45
+ }
46
+ export function sendFundsWireFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<SendFundsWire, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => SendFundsWire$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'SendFundsWire' from JSON`,
53
+ );
54
+ }
@@ -0,0 +1,58 @@
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 * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ EstimatedActivityError,
12
+ EstimatedActivityError$inboundSchema,
13
+ EstimatedActivityError$Outbound,
14
+ EstimatedActivityError$outboundSchema,
15
+ } from "./estimatedactivityerror.js";
16
+
17
+ export type SendFundsWireError = {
18
+ estimatedActivity?: EstimatedActivityError | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const SendFundsWireError$inboundSchema: z.ZodType<
23
+ SendFundsWireError,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ estimatedActivity: types.optional(EstimatedActivityError$inboundSchema),
28
+ });
29
+ /** @internal */
30
+ export type SendFundsWireError$Outbound = {
31
+ estimatedActivity?: EstimatedActivityError$Outbound | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const SendFundsWireError$outboundSchema: z.ZodType<
36
+ SendFundsWireError$Outbound,
37
+ z.ZodTypeDef,
38
+ SendFundsWireError
39
+ > = z.object({
40
+ estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
41
+ });
42
+
43
+ export function sendFundsWireErrorToJSON(
44
+ sendFundsWireError: SendFundsWireError,
45
+ ): string {
46
+ return JSON.stringify(
47
+ SendFundsWireError$outboundSchema.parse(sendFundsWireError),
48
+ );
49
+ }
50
+ export function sendFundsWireErrorFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<SendFundsWireError, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => SendFundsWireError$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'SendFundsWireError' from JSON`,
57
+ );
58
+ }
@@ -55,6 +55,12 @@ import {
55
55
  TransferAmountDetails$Outbound,
56
56
  TransferAmountDetails$outboundSchema,
57
57
  } from "./transferamountdetails.js";
58
+ import {
59
+ TransferCapture,
60
+ TransferCapture$inboundSchema,
61
+ TransferCapture$Outbound,
62
+ TransferCapture$outboundSchema,
63
+ } from "./transfercapture.js";
58
64
  import {
59
65
  TransferDestination,
60
66
  TransferDestination$inboundSchema,
@@ -159,6 +165,10 @@ export type Transfer = {
159
165
  */
160
166
  invoiceID?: string | undefined;
161
167
  amountDetails?: TransferAmountDetails | undefined;
168
+ /**
169
+ * The card authorization and capture IDs associated with a transfer.
170
+ */
171
+ capture?: TransferCapture | undefined;
162
172
  };
163
173
 
164
174
  /** @internal */
@@ -196,6 +206,7 @@ export const Transfer$inboundSchema: z.ZodType<
196
206
  lineItems: types.optional(TransferLineItems$inboundSchema),
197
207
  invoiceID: types.optional(types.string()),
198
208
  amountDetails: types.optional(TransferAmountDetails$inboundSchema),
209
+ capture: types.optional(TransferCapture$inboundSchema),
199
210
  });
200
211
  /** @internal */
201
212
  export type Transfer$Outbound = {
@@ -228,6 +239,7 @@ export type Transfer$Outbound = {
228
239
  lineItems?: TransferLineItems$Outbound | undefined;
229
240
  invoiceID?: string | undefined;
230
241
  amountDetails?: TransferAmountDetails$Outbound | undefined;
242
+ capture?: TransferCapture$Outbound | undefined;
231
243
  };
232
244
 
233
245
  /** @internal */
@@ -265,6 +277,7 @@ export const Transfer$outboundSchema: z.ZodType<
265
277
  lineItems: TransferLineItems$outboundSchema.optional(),
266
278
  invoiceID: z.string().optional(),
267
279
  amountDetails: TransferAmountDetails$outboundSchema.optional(),
280
+ capture: TransferCapture$outboundSchema.optional(),
268
281
  });
269
282
 
270
283
  export function transferToJSON(transfer: Transfer): string {
@@ -0,0 +1,63 @@
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 * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The card authorization and capture IDs associated with a transfer.
13
+ */
14
+ export type TransferCapture = {
15
+ /**
16
+ * ID of the card authorization associated with this transfer.
17
+ */
18
+ authorizationID: string;
19
+ /**
20
+ * ID of the card capture associated with this transfer.
21
+ */
22
+ captureID: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export const TransferCapture$inboundSchema: z.ZodType<
27
+ TransferCapture,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ authorizationID: types.string(),
32
+ captureID: types.string(),
33
+ });
34
+ /** @internal */
35
+ export type TransferCapture$Outbound = {
36
+ authorizationID: string;
37
+ captureID: string;
38
+ };
39
+
40
+ /** @internal */
41
+ export const TransferCapture$outboundSchema: z.ZodType<
42
+ TransferCapture$Outbound,
43
+ z.ZodTypeDef,
44
+ TransferCapture
45
+ > = z.object({
46
+ authorizationID: z.string(),
47
+ captureID: z.string(),
48
+ });
49
+
50
+ export function transferCaptureToJSON(
51
+ transferCapture: TransferCapture,
52
+ ): string {
53
+ return JSON.stringify(TransferCapture$outboundSchema.parse(transferCapture));
54
+ }
55
+ export function transferCaptureFromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<TransferCapture, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => TransferCapture$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'TransferCapture' from JSON`,
62
+ );
63
+ }
@@ -22,6 +22,7 @@ export type TransferPaymentMethodsWallet = {
22
22
  * @remarks
23
23
  * - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
24
24
  * - `general`: An additional, user-defined wallet created via API or Dashboard.
25
+ * - `card-issuing`: The system-generated wallet automatically created when an account is granted the card-issuing capability.
25
26
  */
26
27
  walletType: WalletType;
27
28
  };
@@ -12,6 +12,12 @@ import {
12
12
  UpdateIssuedCardState$inboundSchema,
13
13
  UpdateIssuedCardState$outboundSchema,
14
14
  } from "./updateissuedcardstate.js";
15
+ import {
16
+ UpdateIssuingControls,
17
+ UpdateIssuingControls$inboundSchema,
18
+ UpdateIssuingControls$Outbound,
19
+ UpdateIssuingControls$outboundSchema,
20
+ } from "./updateissuingcontrols.js";
15
21
 
16
22
  export type BillingAddress = {
17
23
  addressLine1?: string | undefined;
@@ -33,6 +39,10 @@ export type UpdateIssuedCard = {
33
39
  nickname?: string | null | undefined;
34
40
  metadata?: { [k: string]: string } | null | undefined;
35
41
  billingAddress?: BillingAddress | null | undefined;
42
+ /**
43
+ * Mutable spend controls for the card.
44
+ */
45
+ controls?: UpdateIssuingControls | undefined;
36
46
  };
37
47
 
38
48
  /** @internal */
@@ -96,6 +106,7 @@ export const UpdateIssuedCard$inboundSchema: z.ZodType<
96
106
  metadata: z.nullable(z.record(types.string())).optional(),
97
107
  billingAddress: z.nullable(z.lazy(() => BillingAddress$inboundSchema))
98
108
  .optional(),
109
+ controls: types.optional(UpdateIssuingControls$inboundSchema),
99
110
  });
100
111
  /** @internal */
101
112
  export type UpdateIssuedCard$Outbound = {
@@ -103,6 +114,7 @@ export type UpdateIssuedCard$Outbound = {
103
114
  nickname?: string | null | undefined;
104
115
  metadata?: { [k: string]: string } | null | undefined;
105
116
  billingAddress?: BillingAddress$Outbound | null | undefined;
117
+ controls?: UpdateIssuingControls$Outbound | undefined;
106
118
  };
107
119
 
108
120
  /** @internal */
@@ -116,6 +128,7 @@ export const UpdateIssuedCard$outboundSchema: z.ZodType<
116
128
  metadata: z.nullable(z.record(z.string())).optional(),
117
129
  billingAddress: z.nullable(z.lazy(() => BillingAddress$outboundSchema))
118
130
  .optional(),
131
+ controls: UpdateIssuingControls$outboundSchema.optional(),
119
132
  });
120
133
 
121
134
  export function updateIssuedCardToJSON(