@moovio/sdk 0.0.0-dev.25 → 0.0.0-dev.27

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 (224) hide show
  1. package/README.md +93 -61
  2. package/bin/mcp-server.js +1542 -997
  3. package/bin/mcp-server.js.map +51 -36
  4. package/funcs/bankAccountsLink.d.ts +1 -1
  5. package/funcs/bankAccountsLink.js +1 -1
  6. package/funcs/depositViewCreate.d.ts +22 -0
  7. package/funcs/depositViewCreate.d.ts.map +1 -0
  8. package/funcs/depositViewCreate.js +136 -0
  9. package/funcs/depositViewCreate.js.map +1 -0
  10. package/funcs/transfersGetRiskOutcomes.d.ts +19 -0
  11. package/funcs/transfersGetRiskOutcomes.d.ts.map +1 -0
  12. package/funcs/transfersGetRiskOutcomes.js +131 -0
  13. package/funcs/transfersGetRiskOutcomes.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/lib/http.d.ts +1 -1
  18. package/lib/http.d.ts.map +1 -1
  19. package/lib/http.js +1 -1
  20. package/lib/http.js.map +1 -1
  21. package/lib/security.d.ts +5 -4
  22. package/lib/security.d.ts.map +1 -1
  23. package/lib/security.js +6 -7
  24. package/lib/security.js.map +1 -1
  25. package/mcp-server/mcp-server.js +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +5 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/bankAccountsLink.js +1 -1
  30. package/mcp-server/tools/depositViewCreate.d.ts +8 -0
  31. package/mcp-server/tools/depositViewCreate.d.ts.map +1 -0
  32. package/mcp-server/tools/depositViewCreate.js +69 -0
  33. package/mcp-server/tools/depositViewCreate.js.map +1 -0
  34. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts +8 -0
  35. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts.map +1 -0
  36. package/mcp-server/tools/transfersGetRiskOutcomes.js +67 -0
  37. package/mcp-server/tools/transfersGetRiskOutcomes.js.map +1 -0
  38. package/models/components/capabilityid.d.ts +1 -0
  39. package/models/components/capabilityid.d.ts.map +1 -1
  40. package/models/components/capabilityid.js +1 -0
  41. package/models/components/capabilityid.js.map +1 -1
  42. package/models/components/cardbrandfees.d.ts +5 -0
  43. package/models/components/cardbrandfees.d.ts.map +1 -1
  44. package/models/components/cardbrandfees.js +2 -0
  45. package/models/components/cardbrandfees.js.map +1 -1
  46. package/models/components/cardtransactiondetails.d.ts +3 -1
  47. package/models/components/cardtransactiondetails.d.ts.map +1 -1
  48. package/models/components/cardtransactiondetails.js +2 -0
  49. package/models/components/cardtransactiondetails.js.map +1 -1
  50. package/models/components/contributingrule.d.ts +23 -0
  51. package/models/components/contributingrule.d.ts.map +1 -0
  52. package/models/components/contributingrule.js +59 -0
  53. package/models/components/contributingrule.js.map +1 -0
  54. package/models/components/createtransferdestinationcard.d.ts +1 -1
  55. package/models/components/depositaccountingestedresponse.d.ts +39 -0
  56. package/models/components/depositaccountingestedresponse.d.ts.map +1 -0
  57. package/models/components/depositaccountingestedresponse.js +66 -0
  58. package/models/components/depositaccountingestedresponse.js.map +1 -0
  59. package/models/components/filedetails.d.ts +1 -1
  60. package/models/components/filepurpose.d.ts +2 -2
  61. package/models/components/filepurpose.js +1 -1
  62. package/models/components/fullissuedcard.d.ts +1 -3
  63. package/models/components/fullissuedcard.d.ts.map +1 -1
  64. package/models/components/fullissuedcard.js.map +1 -1
  65. package/models/components/index.d.ts +8 -0
  66. package/models/components/index.d.ts.map +1 -1
  67. package/models/components/index.js +8 -0
  68. package/models/components/index.js.map +1 -1
  69. package/models/components/invoice.d.ts +5 -0
  70. package/models/components/invoice.d.ts.map +1 -1
  71. package/models/components/invoice.js +2 -0
  72. package/models/components/invoice.js.map +1 -1
  73. package/models/components/issuedcard.d.ts +1 -3
  74. package/models/components/issuedcard.d.ts.map +1 -1
  75. package/models/components/issuedcard.js.map +1 -1
  76. package/models/components/issuedcardstate.d.ts +2 -8
  77. package/models/components/issuedcardstate.d.ts.map +1 -1
  78. package/models/components/issuedcardstate.js +1 -5
  79. package/models/components/issuedcardstate.js.map +1 -1
  80. package/models/components/manualtermsofservice.d.ts +1 -1
  81. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  82. package/models/components/onboardinginvite.d.ts +1 -1
  83. package/models/components/partnerriskoutcomesresponse.d.ts +33 -0
  84. package/models/components/partnerriskoutcomesresponse.d.ts.map +1 -0
  85. package/models/components/partnerriskoutcomesresponse.js +62 -0
  86. package/models/components/partnerriskoutcomesresponse.js.map +1 -0
  87. package/models/components/patchtransfer.d.ts +5 -2
  88. package/models/components/patchtransfer.d.ts.map +1 -1
  89. package/models/components/patchtransfer.js +2 -2
  90. package/models/components/patchtransfer.js.map +1 -1
  91. package/models/components/patchwallet.d.ts +4 -7
  92. package/models/components/patchwallet.d.ts.map +1 -1
  93. package/models/components/patchwallet.js +4 -4
  94. package/models/components/patchwallet.js.map +1 -1
  95. package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
  96. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  97. package/models/components/paymentlinkpayoutdetails.js +3 -0
  98. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  99. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
  100. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  101. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  102. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  103. package/models/components/paymentmethodscard.d.ts +8 -0
  104. package/models/components/paymentmethodscard.d.ts.map +1 -1
  105. package/models/components/paymentmethodscard.js +2 -0
  106. package/models/components/paymentmethodscard.js.map +1 -1
  107. package/models/components/payoutdetailserror.d.ts +3 -0
  108. package/models/components/payoutdetailserror.d.ts.map +1 -1
  109. package/models/components/payoutdetailserror.js +3 -0
  110. package/models/components/payoutdetailserror.js.map +1 -1
  111. package/models/components/pushdeliveryspeed.d.ts +18 -0
  112. package/models/components/pushdeliveryspeed.d.ts.map +1 -0
  113. package/models/components/pushdeliveryspeed.js +52 -0
  114. package/models/components/pushdeliveryspeed.js.map +1 -0
  115. package/models/components/pushoptions.d.ts +35 -0
  116. package/models/components/pushoptions.d.ts.map +1 -0
  117. package/models/components/pushoptions.js +62 -0
  118. package/models/components/pushoptions.js.map +1 -0
  119. package/models/components/pushoptionserror.d.ts +19 -0
  120. package/models/components/pushoptionserror.d.ts.map +1 -0
  121. package/models/components/pushoptionserror.js +61 -0
  122. package/models/components/pushoptionserror.js.map +1 -0
  123. package/models/components/pushoptionsupdate.d.ts +35 -0
  124. package/models/components/pushoptionsupdate.d.ts.map +1 -0
  125. package/models/components/pushoptionsupdate.js +62 -0
  126. package/models/components/pushoptionsupdate.js.map +1 -0
  127. package/models/components/sourcesystem.d.ts +29 -0
  128. package/models/components/sourcesystem.d.ts.map +1 -0
  129. package/models/components/sourcesystem.js +58 -0
  130. package/models/components/sourcesystem.js.map +1 -0
  131. package/models/components/termsofservice.d.ts +1 -1
  132. package/models/components/updatepaymentlinkamountdetails.d.ts +60 -5
  133. package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
  134. package/models/components/updatepaymentlinkamountdetails.js +43 -6
  135. package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
  136. package/models/errors/depositaccountvalidationerror.d.ts +41 -0
  137. package/models/errors/depositaccountvalidationerror.d.ts.map +1 -0
  138. package/models/errors/depositaccountvalidationerror.js +81 -0
  139. package/models/errors/depositaccountvalidationerror.js.map +1 -0
  140. package/models/errors/index.d.ts +1 -0
  141. package/models/errors/index.d.ts.map +1 -1
  142. package/models/errors/index.js +1 -0
  143. package/models/errors/index.js.map +1 -1
  144. package/models/operations/createdepositaccount.d.ts +44 -0
  145. package/models/operations/createdepositaccount.d.ts.map +1 -0
  146. package/models/operations/createdepositaccount.js +113 -0
  147. package/models/operations/createdepositaccount.js.map +1 -0
  148. package/models/operations/gettransferriskoutcomes.d.ts +48 -0
  149. package/models/operations/gettransferriskoutcomes.d.ts.map +1 -0
  150. package/models/operations/gettransferriskoutcomes.js +99 -0
  151. package/models/operations/gettransferriskoutcomes.js.map +1 -0
  152. package/models/operations/index.d.ts +2 -0
  153. package/models/operations/index.d.ts.map +1 -1
  154. package/models/operations/index.js +2 -0
  155. package/models/operations/index.js.map +1 -1
  156. package/models/operations/linkbankaccount.d.ts +1 -1
  157. package/models/operations/listissuedcards.d.ts +1 -1
  158. package/package.json +1 -1
  159. package/sdk/bankaccounts.d.ts +1 -1
  160. package/sdk/bankaccounts.js +1 -1
  161. package/sdk/depositview.d.ts +16 -0
  162. package/sdk/depositview.d.ts.map +1 -0
  163. package/sdk/depositview.js +26 -0
  164. package/sdk/depositview.js.map +1 -0
  165. package/sdk/sdk.d.ts +3 -0
  166. package/sdk/sdk.d.ts.map +1 -1
  167. package/sdk/sdk.js +4 -0
  168. package/sdk/sdk.js.map +1 -1
  169. package/sdk/transfers.d.ts +9 -0
  170. package/sdk/transfers.d.ts.map +1 -1
  171. package/sdk/transfers.js +12 -0
  172. package/sdk/transfers.js.map +1 -1
  173. package/src/funcs/bankAccountsLink.ts +1 -1
  174. package/src/funcs/depositViewCreate.ts +201 -0
  175. package/src/funcs/transfersGetRiskOutcomes.ts +182 -0
  176. package/src/lib/config.ts +3 -3
  177. package/src/lib/http.ts +3 -1
  178. package/src/lib/security.ts +10 -5
  179. package/src/mcp-server/mcp-server.ts +1 -1
  180. package/src/mcp-server/server.ts +5 -1
  181. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  182. package/src/mcp-server/tools/depositViewCreate.ts +43 -0
  183. package/src/mcp-server/tools/transfersGetRiskOutcomes.ts +41 -0
  184. package/src/models/components/capabilityid.ts +1 -0
  185. package/src/models/components/cardbrandfees.ts +7 -0
  186. package/src/models/components/cardtransactiondetails.ts +5 -1
  187. package/src/models/components/contributingrule.ts +58 -0
  188. package/src/models/components/createtransferdestinationcard.ts +1 -1
  189. package/src/models/components/depositaccountingestedresponse.ts +86 -0
  190. package/src/models/components/filedetails.ts +1 -1
  191. package/src/models/components/filepurpose.ts +2 -2
  192. package/src/models/components/fullissuedcard.ts +1 -3
  193. package/src/models/components/index.ts +8 -0
  194. package/src/models/components/invoice.ts +7 -0
  195. package/src/models/components/issuedcard.ts +1 -3
  196. package/src/models/components/issuedcardstate.ts +2 -8
  197. package/src/models/components/manualtermsofservice.ts +1 -1
  198. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  199. package/src/models/components/onboardinginvite.ts +1 -1
  200. package/src/models/components/partnerriskoutcomesresponse.ts +77 -0
  201. package/src/models/components/patchtransfer.ts +7 -4
  202. package/src/models/components/patchwallet.ts +8 -11
  203. package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
  204. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
  205. package/src/models/components/paymentmethodscard.ts +10 -0
  206. package/src/models/components/payoutdetailserror.ts +10 -0
  207. package/src/models/components/pushdeliveryspeed.ts +32 -0
  208. package/src/models/components/pushoptions.ts +72 -0
  209. package/src/models/components/pushoptionserror.ts +56 -0
  210. package/src/models/components/pushoptionsupdate.ts +76 -0
  211. package/src/models/components/sourcesystem.ts +43 -0
  212. package/src/models/components/termsofservice.ts +1 -1
  213. package/src/models/components/updatepaymentlinkamountdetails.ts +114 -14
  214. package/src/models/errors/depositaccountvalidationerror.ts +86 -0
  215. package/src/models/errors/index.ts +1 -0
  216. package/src/models/operations/createdepositaccount.ts +146 -0
  217. package/src/models/operations/gettransferriskoutcomes.ts +136 -0
  218. package/src/models/operations/index.ts +2 -0
  219. package/src/models/operations/linkbankaccount.ts +1 -1
  220. package/src/models/operations/listissuedcards.ts +1 -1
  221. package/src/sdk/bankaccounts.ts +1 -1
  222. package/src/sdk/depositview.ts +31 -0
  223. package/src/sdk/sdk.ts +6 -0
  224. package/src/sdk/transfers.ts +20 -0
@@ -57,6 +57,10 @@ export type CardBrandFees = {
57
57
  * Details of refunded transactions.
58
58
  */
59
59
  refunds?: BillingCountAndAmount | undefined;
60
+ /**
61
+ * Details of card cancellations.
62
+ */
63
+ cardCancellations?: BillingCountAndAmount | undefined;
60
64
  /**
61
65
  * Total fees for this card brand.
62
66
  */
@@ -86,6 +90,7 @@ export const CardBrandFees$inboundSchema: z.ZodType<
86
90
  ),
87
91
  declines: types.optional(BillingCountAndAmount$inboundSchema),
88
92
  refunds: types.optional(BillingCountAndAmount$inboundSchema),
93
+ cardCancellations: types.optional(BillingCountAndAmount$inboundSchema),
89
94
  total: BillingCountAndAmount$inboundSchema,
90
95
  });
91
96
  /** @internal */
@@ -101,6 +106,7 @@ export type CardBrandFees$Outbound = {
101
106
  completedInternationalInPerson?: BillingCountAndAmount$Outbound | undefined;
102
107
  declines?: BillingCountAndAmount$Outbound | undefined;
103
108
  refunds?: BillingCountAndAmount$Outbound | undefined;
109
+ cardCancellations?: BillingCountAndAmount$Outbound | undefined;
104
110
  total: BillingCountAndAmount$Outbound;
105
111
  };
106
112
 
@@ -121,6 +127,7 @@ export const CardBrandFees$outboundSchema: z.ZodType<
121
127
  .optional(),
122
128
  declines: BillingCountAndAmount$outboundSchema.optional(),
123
129
  refunds: BillingCountAndAmount$outboundSchema.optional(),
130
+ cardCancellations: BillingCountAndAmount$outboundSchema.optional(),
124
131
  total: BillingCountAndAmount$outboundSchema,
125
132
  });
126
133
 
@@ -37,7 +37,7 @@ export type CardTransactionDetails = {
37
37
  */
38
38
  dynamicDescriptor?: string | undefined;
39
39
  /**
40
- * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future.
40
+ * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
41
41
  */
42
42
  scheduledDeliveryOn?: Date | undefined;
43
43
  /**
@@ -55,6 +55,7 @@ export type CardTransactionDetails = {
55
55
  failedOn?: Date | undefined;
56
56
  canceledOn?: Date | undefined;
57
57
  completedOn?: Date | undefined;
58
+ deferredOn?: Date | undefined;
58
59
  /**
59
60
  * The program assigned by the card network that determines the interchange rate for the transfer.
60
61
  *
@@ -88,6 +89,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
88
89
  failedOn: types.optional(types.date()),
89
90
  canceledOn: types.optional(types.date()),
90
91
  completedOn: types.optional(types.date()),
92
+ deferredOn: types.optional(types.date()),
91
93
  interchangeQualification: types.optional(types.string()),
92
94
  feeProgram: types.optional(types.string()),
93
95
  authorizationCode: types.optional(types.string()),
@@ -105,6 +107,7 @@ export type CardTransactionDetails$Outbound = {
105
107
  failedOn?: string | undefined;
106
108
  canceledOn?: string | undefined;
107
109
  completedOn?: string | undefined;
110
+ deferredOn?: string | undefined;
108
111
  interchangeQualification?: string | undefined;
109
112
  feeProgram?: string | undefined;
110
113
  authorizationCode?: string | undefined;
@@ -127,6 +130,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
127
130
  failedOn: z.date().transform(v => v.toISOString()).optional(),
128
131
  canceledOn: z.date().transform(v => v.toISOString()).optional(),
129
132
  completedOn: z.date().transform(v => v.toISOString()).optional(),
133
+ deferredOn: z.date().transform(v => v.toISOString()).optional(),
130
134
  interchangeQualification: z.string().optional(),
131
135
  feeProgram: z.string().optional(),
132
136
  authorizationCode: z.string().optional(),
@@ -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
+
11
+ /**
12
+ * A risk rule that contributed to a transfer's risk decision.
13
+ */
14
+ export type ContributingRule = {
15
+ /**
16
+ * Human-readable name of the contributing risk rule.
17
+ */
18
+ name: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ContributingRule$inboundSchema: z.ZodType<
23
+ ContributingRule,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ name: types.string(),
28
+ });
29
+ /** @internal */
30
+ export type ContributingRule$Outbound = {
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ContributingRule$outboundSchema: z.ZodType<
36
+ ContributingRule$Outbound,
37
+ z.ZodTypeDef,
38
+ ContributingRule
39
+ > = z.object({
40
+ name: z.string(),
41
+ });
42
+
43
+ export function contributingRuleToJSON(
44
+ contributingRule: ContributingRule,
45
+ ): string {
46
+ return JSON.stringify(
47
+ ContributingRule$outboundSchema.parse(contributingRule),
48
+ );
49
+ }
50
+ export function contributingRuleFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<ContributingRule, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => ContributingRule$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'ContributingRule' from JSON`,
57
+ );
58
+ }
@@ -19,7 +19,7 @@ export type CreateTransferDestinationCard = {
19
19
  */
20
20
  dynamicDescriptor?: string | undefined;
21
21
  /**
22
- * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future.
22
+ * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
23
23
  */
24
24
  scheduledDeliveryOn?: Date | undefined;
25
25
  /**
@@ -0,0 +1,86 @@
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
+ SourceSystem,
12
+ SourceSystem$inboundSchema,
13
+ SourceSystem$outboundSchema,
14
+ } from "./sourcesystem.js";
15
+
16
+ /**
17
+ * The result of ingesting a deposit account into the deposit view.
18
+ */
19
+ export type DepositAccountIngestedResponse = {
20
+ /**
21
+ * The Moov account that owns the deposit view the account was ingested into.
22
+ */
23
+ moovAccountID: string;
24
+ /**
25
+ * The core banking source system that produced the ingested payload.
26
+ */
27
+ sourceSystem: SourceSystem;
28
+ /**
29
+ * The identifier of the deposit account within the source system.
30
+ */
31
+ sourceAccountID: string;
32
+ /**
33
+ * The date and time the deposit account was ingested.
34
+ */
35
+ ingestedAt: Date;
36
+ };
37
+
38
+ /** @internal */
39
+ export const DepositAccountIngestedResponse$inboundSchema: z.ZodType<
40
+ DepositAccountIngestedResponse,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ moovAccountID: types.string(),
45
+ sourceSystem: SourceSystem$inboundSchema,
46
+ sourceAccountID: types.string(),
47
+ ingestedAt: types.date(),
48
+ });
49
+ /** @internal */
50
+ export type DepositAccountIngestedResponse$Outbound = {
51
+ moovAccountID: string;
52
+ sourceSystem: string;
53
+ sourceAccountID: string;
54
+ ingestedAt: string;
55
+ };
56
+
57
+ /** @internal */
58
+ export const DepositAccountIngestedResponse$outboundSchema: z.ZodType<
59
+ DepositAccountIngestedResponse$Outbound,
60
+ z.ZodTypeDef,
61
+ DepositAccountIngestedResponse
62
+ > = z.object({
63
+ moovAccountID: z.string(),
64
+ sourceSystem: SourceSystem$outboundSchema,
65
+ sourceAccountID: z.string(),
66
+ ingestedAt: z.date().transform(v => v.toISOString()),
67
+ });
68
+
69
+ export function depositAccountIngestedResponseToJSON(
70
+ depositAccountIngestedResponse: DepositAccountIngestedResponse,
71
+ ): string {
72
+ return JSON.stringify(
73
+ DepositAccountIngestedResponse$outboundSchema.parse(
74
+ depositAccountIngestedResponse,
75
+ ),
76
+ );
77
+ }
78
+ export function depositAccountIngestedResponseFromJSON(
79
+ jsonString: string,
80
+ ): SafeParseResult<DepositAccountIngestedResponse, SDKValidationError> {
81
+ return safeParse(
82
+ jsonString,
83
+ (x) => DepositAccountIngestedResponse$inboundSchema.parse(JSON.parse(x)),
84
+ `Failed to parse 'DepositAccountIngestedResponse' from JSON`,
85
+ );
86
+ }
@@ -26,7 +26,7 @@ export type FileDetails = {
26
26
  fileName: string;
27
27
  accountID: string;
28
28
  /**
29
- * The file's purpose.
29
+ * The purpose of the file being uploaded.
30
30
  */
31
31
  filePurpose: FilePurpose;
32
32
  /**
@@ -7,7 +7,7 @@ import * as openEnums from "../../types/enums.js";
7
7
  import { OpenEnum } from "../../types/enums.js";
8
8
 
9
9
  /**
10
- * The file's purpose.
10
+ * The purpose of the file being uploaded.
11
11
  */
12
12
  export const FilePurpose = {
13
13
  BusinessVerification: "business_verification",
@@ -18,7 +18,7 @@ export const FilePurpose = {
18
18
  IdentityVerification: "identity_verification",
19
19
  } as const;
20
20
  /**
21
- * The file's purpose.
21
+ * The purpose of the file being uploaded.
22
22
  */
23
23
  export type FilePurpose = OpenEnum<typeof FilePurpose>;
24
24
 
@@ -80,10 +80,8 @@ export type FullIssuedCard = {
80
80
  *
81
81
  * @remarks
82
82
  *
83
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
84
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
83
+ * - `active`: The card is operational and can approve authorizations.
85
84
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
86
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
87
85
  */
88
86
  state: IssuedCardState;
89
87
  /**
@@ -143,6 +143,7 @@ export * from "./completebankaccountverification.js";
143
143
  export * from "./completedmicrodeposits.js";
144
144
  export * from "./completemicrodeposits.js";
145
145
  export * from "./contact.js";
146
+ export * from "./contributingrule.js";
146
147
  export * from "./createaccount.js";
147
148
  export * from "./createaccountsettings.js";
148
149
  export * from "./createaccounttype.js";
@@ -216,6 +217,7 @@ export * from "./customamountpaymentdetailserror.js";
216
217
  export * from "./customersupport.js";
217
218
  export * from "./customersupporterror.js";
218
219
  export * from "./debitholdperiod.js";
220
+ export * from "./depositaccountingestedresponse.js";
219
221
  export * from "./disbursementpaymentmethodtype.js";
220
222
  export * from "./displayoptionserror.js";
221
223
  export * from "./dispute.js";
@@ -368,6 +370,7 @@ export * from "./othercardfees.js";
368
370
  export * from "./partialscheduleaccount.js";
369
371
  export * from "./partnerfees.js";
370
372
  export * from "./partnerpricingagreement.js";
373
+ export * from "./partnerriskoutcomesresponse.js";
371
374
  export * from "./patchaccount.js";
372
375
  export * from "./patchbusiness.js";
373
376
  export * from "./patchindividual.js";
@@ -425,6 +428,10 @@ export * from "./pullfromcardpaymentmethod.js";
425
428
  export * from "./pullfromcardtransferpaymentmethod.js";
426
429
  export * from "./pullfromgooglepaypaymentmethod.js";
427
430
  export * from "./pullfromgooglepaytransferpaymentmethod.js";
431
+ export * from "./pushdeliveryspeed.js";
432
+ export * from "./pushoptions.js";
433
+ export * from "./pushoptionserror.js";
434
+ export * from "./pushoptionsupdate.js";
428
435
  export * from "./pushtoapplepaypaymentmethod.js";
429
436
  export * from "./pushtoapplepaytransferpaymentmethod.js";
430
437
  export * from "./pushtocardpaymentmethod.js";
@@ -493,6 +500,7 @@ export * from "./sentreceipt.js";
493
500
  export * from "./settings.js";
494
501
  export * from "./sharescopes.js";
495
502
  export * from "./sourcedestinationoptions.js";
503
+ export * from "./sourcesystem.js";
496
504
  export * from "./statement.js";
497
505
  export * from "./submissionintent.js";
498
506
  export * from "./sweep.js";
@@ -88,6 +88,10 @@ export type Invoice = {
88
88
  */
89
89
  disputedAmount: AmountDecimal;
90
90
  paymentLinkCode?: string | undefined;
91
+ /**
92
+ * URL to the hosted payment link for the invoice.
93
+ */
94
+ paymentLinkURL?: string | undefined;
91
95
  /**
92
96
  * Payment made towards an invoice, will be either a transfer or an external payment.
93
97
  */
@@ -121,6 +125,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
121
125
  refundedAmount: AmountDecimal$inboundSchema,
122
126
  disputedAmount: AmountDecimal$inboundSchema,
123
127
  paymentLinkCode: types.optional(types.string()),
128
+ paymentLinkURL: types.optional(types.string()),
124
129
  invoicePayments: types.optional(z.array(InvoicePayment$inboundSchema)),
125
130
  createdOn: types.date(),
126
131
  invoiceDate: types.optional(types.date()),
@@ -149,6 +154,7 @@ export type Invoice$Outbound = {
149
154
  refundedAmount: AmountDecimal$Outbound;
150
155
  disputedAmount: AmountDecimal$Outbound;
151
156
  paymentLinkCode?: string | undefined;
157
+ paymentLinkURL?: string | undefined;
152
158
  invoicePayments?: Array<InvoicePayment$Outbound> | undefined;
153
159
  createdOn: string;
154
160
  invoiceDate?: string | undefined;
@@ -182,6 +188,7 @@ export const Invoice$outboundSchema: z.ZodType<
182
188
  refundedAmount: AmountDecimal$outboundSchema,
183
189
  disputedAmount: AmountDecimal$outboundSchema,
184
190
  paymentLinkCode: z.string().optional(),
191
+ paymentLinkURL: z.string().optional(),
185
192
  invoicePayments: z.array(InvoicePayment$outboundSchema).optional(),
186
193
  createdOn: z.date().transform(v => v.toISOString()),
187
194
  invoiceDate: z.date().transform(v => v.toISOString()).optional(),
@@ -77,10 +77,8 @@ export type IssuedCard = {
77
77
  *
78
78
  * @remarks
79
79
  *
80
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
81
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
80
+ * - `active`: The card is operational and can approve authorizations.
82
81
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
83
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
84
82
  */
85
83
  state: IssuedCardState;
86
84
  /**
@@ -11,15 +11,11 @@ import { OpenEnum } from "../../types/enums.js";
11
11
  *
12
12
  * @remarks
13
13
  *
14
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
15
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
14
+ * - `active`: The card is operational and can approve authorizations.
16
15
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
17
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
18
16
  */
19
17
  export const IssuedCardState = {
20
18
  Active: "active",
21
- Inactive: "inactive",
22
- PendingVerification: "pending-verification",
23
19
  Closed: "closed",
24
20
  } as const;
25
21
  /**
@@ -27,10 +23,8 @@ export const IssuedCardState = {
27
23
  *
28
24
  * @remarks
29
25
  *
30
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
31
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
26
+ * - `active`: The card is operational and can approve authorizations.
32
27
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
33
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
34
28
  */
35
29
  export type IssuedCardState = OpenEnum<typeof IssuedCardState>;
36
30
 
@@ -17,7 +17,7 @@ export type ManualTermsOfService = {
17
17
  */
18
18
  acceptedDate: Date;
19
19
  /**
20
- * The IP address from which the terms of service were accepted.
20
+ * The IP address (IPv4 or IPv6) from which the terms of service were accepted.
21
21
  */
22
22
  acceptedIP: string;
23
23
  /**
@@ -17,7 +17,7 @@ export type ManualTermsOfServiceUpdate = {
17
17
  */
18
18
  acceptedDate?: Date | undefined;
19
19
  /**
20
- * The IP address from which the terms of service were accepted.
20
+ * The IP address (IPv4 or IPv6) from which the terms of service were accepted.
21
21
  */
22
22
  acceptedIP?: string | undefined;
23
23
  /**
@@ -40,7 +40,7 @@ export type OnboardingInvite = {
40
40
  */
41
41
  link: string;
42
42
  /**
43
- * The scopes requested by the inviter.
43
+ * Optional URL to redirect the user to after they complete the onboarding process.
44
44
  */
45
45
  returnURL?: string | undefined;
46
46
  /**
@@ -0,0 +1,77 @@
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
+ ContributingRule,
12
+ ContributingRule$inboundSchema,
13
+ ContributingRule$Outbound,
14
+ ContributingRule$outboundSchema,
15
+ } from "./contributingrule.js";
16
+
17
+ /**
18
+ * The risk rules that contributed to a transfer's risk decision.
19
+ *
20
+ * @remarks
21
+ *
22
+ * This information has limited availability and must be enabled for your account by Moov.
23
+ */
24
+ export type PartnerRiskOutcomesResponse = {
25
+ /**
26
+ * Identifier of the transfer these outcomes belong to.
27
+ */
28
+ transferID: string;
29
+ /**
30
+ * The risk rules that contributed to the decision. May be empty when no rules are disclosed.
31
+ */
32
+ contributingRules: Array<ContributingRule>;
33
+ };
34
+
35
+ /** @internal */
36
+ export const PartnerRiskOutcomesResponse$inboundSchema: z.ZodType<
37
+ PartnerRiskOutcomesResponse,
38
+ z.ZodTypeDef,
39
+ unknown
40
+ > = z.object({
41
+ transferID: types.string(),
42
+ contributingRules: z.array(ContributingRule$inboundSchema),
43
+ });
44
+ /** @internal */
45
+ export type PartnerRiskOutcomesResponse$Outbound = {
46
+ transferID: string;
47
+ contributingRules: Array<ContributingRule$Outbound>;
48
+ };
49
+
50
+ /** @internal */
51
+ export const PartnerRiskOutcomesResponse$outboundSchema: z.ZodType<
52
+ PartnerRiskOutcomesResponse$Outbound,
53
+ z.ZodTypeDef,
54
+ PartnerRiskOutcomesResponse
55
+ > = z.object({
56
+ transferID: z.string(),
57
+ contributingRules: z.array(ContributingRule$outboundSchema),
58
+ });
59
+
60
+ export function partnerRiskOutcomesResponseToJSON(
61
+ partnerRiskOutcomesResponse: PartnerRiskOutcomesResponse,
62
+ ): string {
63
+ return JSON.stringify(
64
+ PartnerRiskOutcomesResponse$outboundSchema.parse(
65
+ partnerRiskOutcomesResponse,
66
+ ),
67
+ );
68
+ }
69
+ export function partnerRiskOutcomesResponseFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<PartnerRiskOutcomesResponse, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => PartnerRiskOutcomesResponse$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'PartnerRiskOutcomesResponse' from JSON`,
76
+ );
77
+ }
@@ -9,11 +9,14 @@ import * as types from "../../types/primitives.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type PatchTransfer = {
12
+ /**
13
+ * Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
14
+ */
12
15
  metadata?: { [k: string]: string } | null | undefined;
13
16
  /**
14
17
  * Optional alias from a foreign/external system which can be used to reference this resource.
15
18
  */
16
- foreignID?: string | undefined;
19
+ foreignID?: string | null | undefined;
17
20
  };
18
21
 
19
22
  /** @internal */
@@ -23,12 +26,12 @@ export const PatchTransfer$inboundSchema: z.ZodType<
23
26
  unknown
24
27
  > = z.object({
25
28
  metadata: z.nullable(z.record(types.string())).optional(),
26
- foreignID: types.optional(types.string()),
29
+ foreignID: z.nullable(types.string()).optional(),
27
30
  });
28
31
  /** @internal */
29
32
  export type PatchTransfer$Outbound = {
30
33
  metadata?: { [k: string]: string } | null | undefined;
31
- foreignID?: string | undefined;
34
+ foreignID?: string | null | undefined;
32
35
  };
33
36
 
34
37
  /** @internal */
@@ -38,7 +41,7 @@ export const PatchTransfer$outboundSchema: z.ZodType<
38
41
  PatchTransfer
39
42
  > = z.object({
40
43
  metadata: z.nullable(z.record(z.string())).optional(),
41
- foreignID: z.string().optional(),
44
+ foreignID: z.nullable(z.string()).optional(),
42
45
  });
43
46
 
44
47
  export function patchTransferToJSON(patchTransfer: PatchTransfer): string {
@@ -23,11 +23,8 @@ export type PatchWallet = {
23
23
  * - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
24
24
  */
25
25
  status?: WalletStatus | undefined;
26
- description?: string | undefined;
27
- /**
28
- * Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
29
- */
30
- metadata?: { [k: string]: string } | undefined;
26
+ description?: string | null | undefined;
27
+ metadata?: { [k: string]: string } | null | undefined;
31
28
  };
32
29
 
33
30
  /** @internal */
@@ -38,15 +35,15 @@ export const PatchWallet$inboundSchema: z.ZodType<
38
35
  > = z.object({
39
36
  name: types.optional(types.string()),
40
37
  status: types.optional(WalletStatus$inboundSchema),
41
- description: types.optional(types.string()),
42
- metadata: types.optional(z.record(types.string())),
38
+ description: z.nullable(types.string()).optional(),
39
+ metadata: z.nullable(z.record(types.string())).optional(),
43
40
  });
44
41
  /** @internal */
45
42
  export type PatchWallet$Outbound = {
46
43
  name?: string | undefined;
47
44
  status?: string | undefined;
48
- description?: string | undefined;
49
- metadata?: { [k: string]: string } | undefined;
45
+ description?: string | null | undefined;
46
+ metadata?: { [k: string]: string } | null | undefined;
50
47
  };
51
48
 
52
49
  /** @internal */
@@ -57,8 +54,8 @@ export const PatchWallet$outboundSchema: z.ZodType<
57
54
  > = z.object({
58
55
  name: z.string().optional(),
59
56
  status: WalletStatus$outboundSchema.optional(),
60
- description: z.string().optional(),
61
- metadata: z.record(z.string()).optional(),
57
+ description: z.nullable(z.string()).optional(),
58
+ metadata: z.nullable(z.record(z.string())).optional(),
62
59
  });
63
60
 
64
61
  export function patchWalletToJSON(patchWallet: PatchWallet): string {
@@ -18,6 +18,12 @@ import {
18
18
  PayoutRecipient$Outbound,
19
19
  PayoutRecipient$outboundSchema,
20
20
  } from "./payoutrecipient.js";
21
+ import {
22
+ PushOptions,
23
+ PushOptions$inboundSchema,
24
+ PushOptions$Outbound,
25
+ PushOptions$outboundSchema,
26
+ } from "./pushoptions.js";
21
27
 
22
28
  export type PaymentLinkPayoutDetails = {
23
29
  /**
@@ -37,6 +43,15 @@ export type PaymentLinkPayoutDetails = {
37
43
  * Optional free-form metadata for the transfer.
38
44
  */
39
45
  metadata?: { [k: string]: string } | undefined;
46
+ /**
47
+ * Delivery options for push-to-card payouts. Only applies when `allowedMethods` includes `push-to-card`.
48
+ *
49
+ * @remarks
50
+ *
51
+ * The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
52
+ * (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
53
+ */
54
+ pushOptions?: PushOptions | undefined;
40
55
  };
41
56
 
42
57
  /** @internal */
@@ -48,12 +63,14 @@ export const PaymentLinkPayoutDetails$inboundSchema: z.ZodType<
48
63
  allowedMethods: z.array(DisbursementPaymentMethodType$inboundSchema),
49
64
  recipient: PayoutRecipient$inboundSchema,
50
65
  metadata: types.optional(z.record(types.string())),
66
+ pushOptions: types.optional(PushOptions$inboundSchema),
51
67
  });
52
68
  /** @internal */
53
69
  export type PaymentLinkPayoutDetails$Outbound = {
54
70
  allowedMethods: Array<string>;
55
71
  recipient: PayoutRecipient$Outbound;
56
72
  metadata?: { [k: string]: string } | undefined;
73
+ pushOptions?: PushOptions$Outbound | undefined;
57
74
  };
58
75
 
59
76
  /** @internal */
@@ -65,6 +82,7 @@ export const PaymentLinkPayoutDetails$outboundSchema: z.ZodType<
65
82
  allowedMethods: z.array(DisbursementPaymentMethodType$outboundSchema),
66
83
  recipient: PayoutRecipient$outboundSchema,
67
84
  metadata: z.record(z.string()).optional(),
85
+ pushOptions: PushOptions$outboundSchema.optional(),
68
86
  });
69
87
 
70
88
  export function paymentLinkPayoutDetailsToJSON(