@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
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/s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E,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
package/sdk/transfers.js CHANGED
@@ -12,6 +12,7 @@ const transfersGenerateOptions_js_1 = require("../funcs/transfersGenerateOptions
12
12
  const transfersGet_js_1 = require("../funcs/transfersGet.js");
13
13
  const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation.js");
14
14
  const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
15
+ const transfersGetRiskOutcomes_js_1 = require("../funcs/transfersGetRiskOutcomes.js");
15
16
  const transfersInitiateRefund_js_1 = require("../funcs/transfersInitiateRefund.js");
16
17
  const transfersList_js_1 = require("../funcs/transfersList.js");
17
18
  const transfersListCancellations_js_1 = require("../funcs/transfersListCancellations.js");
@@ -165,6 +166,17 @@ class Transfers extends sdks_js_1.ClientSDK {
165
166
  async createReversal(request, options) {
166
167
  return (0, fp_js_1.unwrapAsync)((0, transfersCreateReversal_js_1.transfersCreateReversal)(this, request, options));
167
168
  }
169
+ /**
170
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
171
+ *
172
+ * This endpoint has limited availability and must be enabled for your account by Moov.
173
+ *
174
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
175
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
176
+ */
177
+ async getRiskOutcomes(request, options) {
178
+ return (0, fp_js_1.unwrapAsync)((0, transfersGetRiskOutcomes_js_1.transfersGetRiskOutcomes)(this, request, options));
179
+ }
168
180
  }
169
181
  exports.Transfers = Transfers;
170
182
  //# sourceMappingURL=transfers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;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;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzPD,8BAyPC"}
1
+ {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,sFAAgF;AAChF,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAA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,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5QD,8BA4QC"}
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
31
31
  *
32
32
  * It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
33
- * bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
33
+ * bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
34
34
  * Methods](https://docs.moov.io/api/sources/payment-methods/list/)
35
35
  * endpoint to wait for the new payment methods to be available for use.
36
36
  *
@@ -0,0 +1,201 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { MoovError } from "../models/errors/mooverror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Ingest a deposit account into the deposit view from a core banking source system.
31
+ *
32
+ * The request body is a raw byte payload whose format depends on the core banking
33
+ * system that produced it. Set the `X-Source-System` header to identify that system
34
+ * so the payload can be parsed correctly.
35
+ *
36
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
+ * you'll need to specify the `/accounts/{accountID}/profile.write` scope.
38
+ */
39
+ export function depositViewCreate(
40
+ client: MoovCore,
41
+ request: operations.CreateDepositAccountRequest,
42
+ options?: RequestOptions,
43
+ ): APIPromise<
44
+ Result<
45
+ operations.CreateDepositAccountResponse,
46
+ | errors.GenericError
47
+ | errors.DepositAccountValidationError
48
+ | MoovError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: MoovCore,
67
+ request: operations.CreateDepositAccountRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.CreateDepositAccountResponse,
73
+ | errors.GenericError
74
+ | errors.DepositAccountValidationError
75
+ | MoovError
76
+ | ResponseValidationError
77
+ | ConnectionError
78
+ | RequestAbortedError
79
+ | RequestTimeoutError
80
+ | InvalidRequestError
81
+ | UnexpectedClientError
82
+ | SDKValidationError
83
+ >,
84
+ APICall,
85
+ ]
86
+ > {
87
+ const parsed = safeParse(
88
+ request,
89
+ (value) =>
90
+ operations.CreateDepositAccountRequest$outboundSchema.parse(value),
91
+ "Input validation failed",
92
+ );
93
+ if (!parsed.ok) {
94
+ return [parsed, { status: "invalid" }];
95
+ }
96
+ const payload = parsed.value;
97
+ const body = payload.RequestBody instanceof Uint8Array
98
+ ? new Uint8Array(payload.RequestBody).buffer
99
+ : payload.RequestBody;
100
+
101
+ const pathParams = {
102
+ accountID: encodeSimple("accountID", payload.accountID, {
103
+ explode: false,
104
+ charEncoding: "percent",
105
+ }),
106
+ };
107
+ const path = pathToFunc("/underwriting/{accountID}/deposit-accounts")(
108
+ pathParams,
109
+ );
110
+
111
+ const headers = new Headers(compactMap({
112
+ "Content-Type": "application/octet-stream",
113
+ Accept: "application/json",
114
+ "X-Source-System": encodeSimple(
115
+ "X-Source-System",
116
+ payload["X-Source-System"],
117
+ { explode: false, charEncoding: "none" },
118
+ ),
119
+ }));
120
+
121
+ const securityInput = await extractSecurity(client._options.security);
122
+ const requestSecurity = resolveGlobalSecurity(securityInput);
123
+
124
+ const context = {
125
+ options: client._options,
126
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
127
+ operationID: "createDepositAccount",
128
+ oAuth2Scopes: null,
129
+
130
+ resolvedSecurity: requestSecurity,
131
+
132
+ securitySource: client._options.security,
133
+ retryConfig: options?.retries
134
+ || client._options.retryConfig
135
+ || { strategy: "none" },
136
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
137
+ };
138
+
139
+ const requestRes = client._createRequest(context, {
140
+ security: requestSecurity,
141
+ method: "POST",
142
+ baseURL: options?.serverURL,
143
+ path: path,
144
+ headers: headers,
145
+ body: body,
146
+ userAgent: client._options.userAgent,
147
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
148
+ }, options);
149
+ if (!requestRes.ok) {
150
+ return [requestRes, { status: "invalid" }];
151
+ }
152
+ const req = requestRes.value;
153
+
154
+ const doResult = await client._do(req, {
155
+ context,
156
+ isErrorStatusCode: (statusCode: number) =>
157
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
158
+ retryConfig: context.retryConfig,
159
+ retryCodes: context.retryCodes,
160
+ });
161
+ if (!doResult.ok) {
162
+ return [doResult, { status: "request-error", request: req }];
163
+ }
164
+ const response = doResult.value;
165
+
166
+ const responseFields = {
167
+ HttpMeta: { Response: response, Request: req },
168
+ };
169
+
170
+ const [result] = await M.match<
171
+ operations.CreateDepositAccountResponse,
172
+ | errors.GenericError
173
+ | errors.DepositAccountValidationError
174
+ | MoovError
175
+ | ResponseValidationError
176
+ | ConnectionError
177
+ | RequestAbortedError
178
+ | RequestTimeoutError
179
+ | InvalidRequestError
180
+ | UnexpectedClientError
181
+ | SDKValidationError
182
+ >(
183
+ M.json(200, operations.CreateDepositAccountResponse$inboundSchema, {
184
+ hdrs: true,
185
+ key: "Result",
186
+ }),
187
+ M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
188
+ M.jsonErr(422, errors.DepositAccountValidationError$inboundSchema, {
189
+ hdrs: true,
190
+ }),
191
+ M.fail([401, 403, 404, 429]),
192
+ M.fail([500, 504]),
193
+ M.fail("4XX"),
194
+ M.fail("5XX"),
195
+ )(response, req, { extraFields: responseFields });
196
+ if (!result.ok) {
197
+ return [result, { status: "complete", request: req, response }];
198
+ }
199
+
200
+ return [result, { status: "complete", request: req, response }];
201
+ }
@@ -0,0 +1,182 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { MoovError } from "../models/errors/mooverror.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
30
+ *
31
+ * This endpoint has limited availability and must be enabled for your account by Moov.
32
+ *
33
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
34
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
35
+ */
36
+ export function transfersGetRiskOutcomes(
37
+ client: MoovCore,
38
+ request: operations.GetTransferRiskOutcomesRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetTransferRiskOutcomesResponse,
43
+ | MoovError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.GetTransferRiskOutcomesRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.GetTransferRiskOutcomesResponse,
68
+ | MoovError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) =>
83
+ operations.GetTransferRiskOutcomesRequest$outboundSchema.parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ transferID: encodeSimple("transferID", payload.transferID, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+ const path = pathToFunc("/transfers/{transferID}/risk-outcomes")(pathParams);
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ "X-Account-ID": encodeSimple("X-Account-ID", payload["X-Account-ID"], {
103
+ explode: false,
104
+ charEncoding: "none",
105
+ }),
106
+ }));
107
+
108
+ const securityInput = await extractSecurity(client._options.security);
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client._options,
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "getTransferRiskOutcomes",
115
+ oAuth2Scopes: null,
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.security,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "GET",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ body: body,
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ isErrorStatusCode: (statusCode: number) =>
144
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
145
+ retryConfig: context.retryConfig,
146
+ retryCodes: context.retryCodes,
147
+ });
148
+ if (!doResult.ok) {
149
+ return [doResult, { status: "request-error", request: req }];
150
+ }
151
+ const response = doResult.value;
152
+
153
+ const responseFields = {
154
+ HttpMeta: { Response: response, Request: req },
155
+ };
156
+
157
+ const [result] = await M.match<
158
+ operations.GetTransferRiskOutcomesResponse,
159
+ | MoovError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, operations.GetTransferRiskOutcomesResponse$inboundSchema, {
169
+ hdrs: true,
170
+ key: "Result",
171
+ }),
172
+ M.fail([401, 403, 404, 429]),
173
+ M.fail([500, 504]),
174
+ M.fail("4XX"),
175
+ M.fail("5XX"),
176
+ )(response, req, { extraFields: responseFields });
177
+ if (!result.ok) {
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
180
+
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "dev",
76
- sdkVersion: "0.0.0-dev.25",
77
- genVersion: "2.911.0",
78
- userAgent: "speakeasy-sdk/typescript 0.0.0-dev.25 2.911.0 dev @moovio/sdk",
76
+ sdkVersion: "0.0.0-dev.27",
77
+ genVersion: "2.917.0",
78
+ userAgent: "speakeasy-sdk/typescript 0.0.0-dev.27 2.917.0 dev @moovio/sdk",
79
79
  } as const;
package/src/lib/http.ts CHANGED
@@ -45,8 +45,10 @@ export class HTTPClient {
45
45
  private requestHooks: BeforeRequestHook[] = [];
46
46
  private requestErrorHooks: RequestErrorHook[] = [];
47
47
  private responseHooks: ResponseHook[] = [];
48
+ private options: HTTPClientOptions;
48
49
 
49
- constructor(private options: HTTPClientOptions = {}) {
50
+ constructor(options: HTTPClientOptions = {}) {
51
+ this.options = options;
50
52
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
51
53
  }
52
54
 
@@ -12,17 +12,22 @@ type OAuth2PasswordFlow = {
12
12
  tokenURL: string;
13
13
  };
14
14
 
15
- export enum SecurityErrorCode {
16
- Incomplete = "incomplete",
17
- UnrecognisedSecurityType = "unrecognized_security_type",
18
- }
15
+ export const SecurityErrorCode = {
16
+ Incomplete: "incomplete",
17
+ UnrecognisedSecurityType: "unrecognized_security_type",
18
+ } as const;
19
+ export type SecurityErrorCode =
20
+ (typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
19
21
 
20
22
  export class SecurityError extends Error {
23
+ public code: SecurityErrorCode;
24
+
21
25
  constructor(
22
- public code: SecurityErrorCode,
26
+ code: SecurityErrorCode,
23
27
  message: string,
24
28
  ) {
25
29
  super(message);
30
+ this.code = code;
26
31
  this.name = "SecurityError";
27
32
  }
28
33
 
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.0.0-dev.25",
22
+ currentVersion: "0.0.0-dev.27",
23
23
  },
24
24
  });
25
25
 
@@ -65,6 +65,7 @@ import { tool$cardsGetMetadata } from "./tools/cardsGetMetadata.js";
65
65
  import { tool$cardsLink } from "./tools/cardsLink.js";
66
66
  import { tool$cardsList } from "./tools/cardsList.js";
67
67
  import { tool$cardsUpdate } from "./tools/cardsUpdate.js";
68
+ import { tool$depositViewCreate } from "./tools/depositViewCreate.js";
68
69
  import { tool$disputesAccept } from "./tools/disputesAccept.js";
69
70
  import { tool$disputesDeleteEvidence } from "./tools/disputesDeleteEvidence.js";
70
71
  import { tool$disputesGet } from "./tools/disputesGet.js";
@@ -180,6 +181,7 @@ import { tool$transfersGenerateOptions } from "./tools/transfersGenerateOptions.
180
181
  import { tool$transfersGet } from "./tools/transfersGet.js";
181
182
  import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.js";
182
183
  import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
184
+ import { tool$transfersGetRiskOutcomes } from "./tools/transfersGetRiskOutcomes.js";
183
185
  import { tool$transfersInitiateRefund } from "./tools/transfersInitiateRefund.js";
184
186
  import { tool$transfersList } from "./tools/transfersList.js";
185
187
  import { tool$transfersListCancellations } from "./tools/transfersListCancellations.js";
@@ -214,7 +216,7 @@ export function createMCPServer(deps: {
214
216
  }) {
215
217
  const server = new McpServer({
216
218
  name: "Moov",
217
- version: "0.0.0-dev.25",
219
+ version: "0.0.0-dev.27",
218
220
  });
219
221
 
220
222
  const client = new MoovCore({
@@ -385,6 +387,7 @@ export function createMCPServer(deps: {
385
387
  tool(tool$transfersListRefunds);
386
388
  tool(tool$transfersGetRefund);
387
389
  tool(tool$transfersCreateReversal);
390
+ tool(tool$transfersGetRiskOutcomes);
388
391
  tool(tool$underwritingGet);
389
392
  tool(tool$underwritingSave);
390
393
  tool(tool$underwritingUpsert);
@@ -434,6 +437,7 @@ export function createMCPServer(deps: {
434
437
  tool(tool$terminalApplicationsGet);
435
438
  tool(tool$terminalApplicationsDelete);
436
439
  tool(tool$terminalApplicationsCreateVersion);
440
+ tool(tool$depositViewCreate);
437
441
 
438
442
  return server;
439
443
  }
@@ -16,7 +16,7 @@ export const tool$bankAccountsLink: ToolDefinition<typeof args> = {
16
16
  `Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
17
17
 
18
18
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
19
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
19
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
20
20
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
21
21
  endpoint to wait for the new payment methods to be available for use.
22
22
 
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { depositViewCreate } from "../../funcs/depositViewCreate.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.CreateDepositAccountRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$depositViewCreate: ToolDefinition<typeof args> = {
14
+ name: "deposit-view-create",
15
+ description:
16
+ `Ingest a deposit account into the deposit view from a core banking source system.
17
+
18
+ The request body is a raw byte payload whose format depends on the core banking
19
+ system that produced it. Set the \`X-Source-System\` header to identify that system
20
+ so the payload can be parsed correctly.
21
+
22
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
23
+ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
24
+ args,
25
+ tool: async (client, args, ctx) => {
26
+ const [result, apiCall] = await depositViewCreate(
27
+ client,
28
+ args.request,
29
+ { fetchOptions: { signal: ctx.signal } },
30
+ ).$inspect();
31
+
32
+ if (!result.ok) {
33
+ return {
34
+ content: [{ type: "text", text: result.error.message }],
35
+ isError: true,
36
+ };
37
+ }
38
+
39
+ const value = result.value.result;
40
+
41
+ return formatResult(value, apiCall);
42
+ },
43
+ };
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { transfersGetRiskOutcomes } from "../../funcs/transfersGetRiskOutcomes.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetTransferRiskOutcomesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$transfersGetRiskOutcomes: ToolDefinition<typeof args> = {
14
+ name: "transfers-get-risk-outcomes",
15
+ description:
16
+ `Retrieve the risk rules that contributed to a transfer's risk decision.
17
+
18
+ This endpoint has limited availability and must be enabled for your account by Moov.
19
+
20
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
21
+ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await transfersGetRiskOutcomes(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value.result;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -34,6 +34,7 @@ export const CapabilityID = {
34
34
  Wallet: "wallet",
35
35
  WalletBalance: "wallet.balance",
36
36
  CardIssuing: "card-issuing",
37
+ IssuingCardholder: "issuing.cardholder",
37
38
  ProductionApp: "production-app",
38
39
  PlatformProductionApp: "platform.production-app",
39
40
  PlatformWalletTransfers: "platform.wallet-transfers",