@moovio/sdk 25.11.7 → 25.12.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 (267) hide show
  1. package/README.md +112 -80
  2. package/bin/mcp-server.js +604 -324
  3. package/bin/mcp-server.js.map +59 -59
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/capabilitiesDisable.d.ts +1 -1
  9. package/funcs/capabilitiesDisable.js +1 -1
  10. package/funcs/capabilitiesGet.d.ts +1 -1
  11. package/funcs/capabilitiesGet.js +1 -1
  12. package/funcs/capabilitiesList.d.ts +1 -1
  13. package/funcs/capabilitiesList.js +1 -1
  14. package/funcs/capabilitiesRequest.d.ts +1 -1
  15. package/funcs/capabilitiesRequest.js +1 -1
  16. package/funcs/cardIssuingGet.js +1 -1
  17. package/funcs/cardIssuingGet.js.map +1 -1
  18. package/funcs/cardIssuingGetFull.js +1 -1
  19. package/funcs/cardIssuingGetFull.js.map +1 -1
  20. package/funcs/cardIssuingList.js +1 -1
  21. package/funcs/cardIssuingList.js.map +1 -1
  22. package/funcs/cardIssuingRequest.js +1 -1
  23. package/funcs/cardIssuingRequest.js.map +1 -1
  24. package/funcs/cardIssuingUpdate.js +1 -1
  25. package/funcs/cardIssuingUpdate.js.map +1 -1
  26. package/funcs/transfersListCancellations.d.ts +17 -0
  27. package/funcs/transfersListCancellations.d.ts.map +1 -0
  28. package/funcs/transfersListCancellations.js +129 -0
  29. package/funcs/transfersListCancellations.js.map +1 -0
  30. package/hooks/access-token-hook.d.ts +25 -0
  31. package/hooks/access-token-hook.d.ts.map +1 -0
  32. package/hooks/access-token-hook.js +60 -0
  33. package/hooks/access-token-hook.js.map +1 -0
  34. package/hooks/registration.d.ts.map +1 -1
  35. package/hooks/registration.js +4 -0
  36. package/hooks/registration.js.map +1 -1
  37. package/hooks/types.d.ts +1 -0
  38. package/hooks/types.d.ts.map +1 -1
  39. package/jsr.json +1 -1
  40. package/lib/config.d.ts +7 -3
  41. package/lib/config.d.ts.map +1 -1
  42. package/lib/config.js +3 -3
  43. package/lib/config.js.map +1 -1
  44. package/lib/encodings.js +12 -12
  45. package/lib/encodings.js.map +1 -1
  46. package/lib/matchers.js +3 -3
  47. package/lib/matchers.js.map +1 -1
  48. package/lib/primitives.d.ts +1 -0
  49. package/lib/primitives.d.ts.map +1 -1
  50. package/lib/primitives.js +18 -0
  51. package/lib/primitives.js.map +1 -1
  52. package/lib/retries.js +7 -0
  53. package/lib/retries.js.map +1 -1
  54. package/lib/sdks.d.ts.map +1 -1
  55. package/lib/sdks.js +50 -16
  56. package/lib/sdks.js.map +1 -1
  57. package/mcp-server/cli/start/command.d.ts.map +1 -1
  58. package/mcp-server/cli/start/command.js +8 -0
  59. package/mcp-server/cli/start/command.js.map +1 -1
  60. package/mcp-server/cli/start/impl.d.ts +1 -0
  61. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  62. package/mcp-server/cli/start/impl.js +2 -0
  63. package/mcp-server/cli/start/impl.js.map +1 -1
  64. package/mcp-server/mcp-server.js +1 -1
  65. package/mcp-server/server.d.ts +1 -0
  66. package/mcp-server/server.d.ts.map +1 -1
  67. package/mcp-server/server.js +4 -1
  68. package/mcp-server/server.js.map +1 -1
  69. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  70. package/mcp-server/tools/accountsCreate.js +8 -10
  71. package/mcp-server/tools/accountsCreate.js.map +1 -1
  72. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  73. package/mcp-server/tools/capabilitiesGet.js +1 -1
  74. package/mcp-server/tools/capabilitiesList.js +1 -1
  75. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  76. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  77. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  78. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
  79. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  80. package/models/components/addcapabilities.d.ts +9 -0
  81. package/models/components/addcapabilities.d.ts.map +1 -1
  82. package/models/components/addcapabilities.js.map +1 -1
  83. package/models/components/capability.d.ts +7 -1
  84. package/models/components/capability.d.ts.map +1 -1
  85. package/models/components/capability.js.map +1 -1
  86. package/models/components/capabilityid.d.ts +14 -2
  87. package/models/components/capabilityid.d.ts.map +1 -1
  88. package/models/components/capabilityid.js +7 -1
  89. package/models/components/capabilityid.js.map +1 -1
  90. package/models/components/createaccount.d.ts +9 -0
  91. package/models/components/createaccount.d.ts.map +1 -1
  92. package/models/components/createaccount.js.map +1 -1
  93. package/models/components/createpaymentlink.d.ts +3 -3
  94. package/models/components/fullissuedcard.d.ts +25 -9
  95. package/models/components/fullissuedcard.d.ts.map +1 -1
  96. package/models/components/fullissuedcard.js +11 -5
  97. package/models/components/fullissuedcard.js.map +1 -1
  98. package/models/components/index.d.ts +1 -4
  99. package/models/components/index.d.ts.map +1 -1
  100. package/models/components/index.js +1 -4
  101. package/models/components/index.js.map +1 -1
  102. package/models/components/issuedcard.d.ts +25 -9
  103. package/models/components/issuedcard.d.ts.map +1 -1
  104. package/models/components/issuedcard.js +11 -5
  105. package/models/components/issuedcard.js.map +1 -1
  106. package/models/components/onboardinginvite.d.ts +1 -1
  107. package/models/components/onboardinginviterequest.d.ts +1 -1
  108. package/models/components/paymentlink.d.ts +2 -2
  109. package/models/components/requestcard.d.ts +14 -17
  110. package/models/components/requestcard.d.ts.map +1 -1
  111. package/models/components/requestcard.js +9 -10
  112. package/models/components/requestcard.js.map +1 -1
  113. package/models/components/updateissuedcard.d.ts +33 -8
  114. package/models/components/updateissuedcard.d.ts.map +1 -1
  115. package/models/components/updateissuedcard.js +35 -6
  116. package/models/components/updateissuedcard.js.map +1 -1
  117. package/models/components/webhookdata.d.ts +3 -2
  118. package/models/components/webhookdata.d.ts.map +1 -1
  119. package/models/components/webhookdata.js +7 -4
  120. package/models/components/webhookdata.js.map +1 -1
  121. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  122. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  123. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  124. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  125. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  126. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  127. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  128. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  129. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  130. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  131. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  132. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  133. package/models/components/webhookdatasweepcreated.js +2 -0
  134. package/models/components/webhookdatasweepcreated.js.map +1 -1
  135. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  136. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  137. package/models/components/webhookdatasweepupdated.js +2 -0
  138. package/models/components/webhookdatasweepupdated.js.map +1 -1
  139. package/models/components/webhookeventtype.d.ts +1 -0
  140. package/models/components/webhookeventtype.d.ts.map +1 -1
  141. package/models/components/webhookeventtype.js +1 -0
  142. package/models/components/webhookeventtype.js.map +1 -1
  143. package/models/errors/requestcarderror.d.ts +12 -12
  144. package/models/errors/requestcarderror.d.ts.map +1 -1
  145. package/models/errors/requestcarderror.js +17 -17
  146. package/models/errors/requestcarderror.js.map +1 -1
  147. package/models/errors/updateissuedcarderror.d.ts +9 -6
  148. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  149. package/models/errors/updateissuedcarderror.js +12 -9
  150. package/models/errors/updateissuedcarderror.js.map +1 -1
  151. package/models/operations/disablecapability.d.ts +7 -1
  152. package/models/operations/disablecapability.d.ts.map +1 -1
  153. package/models/operations/disablecapability.js.map +1 -1
  154. package/models/operations/getcapability.d.ts +7 -1
  155. package/models/operations/getcapability.d.ts.map +1 -1
  156. package/models/operations/getcapability.js.map +1 -1
  157. package/models/operations/index.d.ts +1 -0
  158. package/models/operations/index.d.ts.map +1 -1
  159. package/models/operations/index.js +1 -0
  160. package/models/operations/index.js.map +1 -1
  161. package/models/operations/listcancellations.d.ts +45 -0
  162. package/models/operations/listcancellations.d.ts.map +1 -0
  163. package/models/operations/listcancellations.js +90 -0
  164. package/models/operations/listcancellations.js.map +1 -0
  165. package/package.json +1 -1
  166. package/sdk/accounts.d.ts +8 -10
  167. package/sdk/accounts.d.ts.map +1 -1
  168. package/sdk/accounts.js +8 -10
  169. package/sdk/accounts.js.map +1 -1
  170. package/sdk/capabilities.d.ts +4 -4
  171. package/sdk/capabilities.js +4 -4
  172. package/sdk/transfers.d.ts +7 -0
  173. package/sdk/transfers.d.ts.map +1 -1
  174. package/sdk/transfers.js +10 -0
  175. package/sdk/transfers.js.map +1 -1
  176. package/src/funcs/accountsCreate.ts +8 -10
  177. package/src/funcs/capabilitiesDisable.ts +1 -1
  178. package/src/funcs/capabilitiesGet.ts +1 -1
  179. package/src/funcs/capabilitiesList.ts +1 -1
  180. package/src/funcs/capabilitiesRequest.ts +1 -1
  181. package/src/funcs/cardIssuingGet.ts +1 -1
  182. package/src/funcs/cardIssuingGetFull.ts +3 -3
  183. package/src/funcs/cardIssuingList.ts +1 -1
  184. package/src/funcs/cardIssuingRequest.ts +1 -1
  185. package/src/funcs/cardIssuingUpdate.ts +1 -1
  186. package/src/funcs/transfersListCancellations.ts +181 -0
  187. package/src/hooks/access-token-hook.ts +73 -0
  188. package/src/hooks/registration.ts +5 -0
  189. package/src/hooks/types.ts +1 -0
  190. package/src/lib/config.ts +8 -3
  191. package/src/lib/encodings.ts +1 -1
  192. package/src/lib/matchers.ts +1 -1
  193. package/src/lib/primitives.ts +16 -0
  194. package/src/lib/retries.ts +8 -0
  195. package/src/lib/sdks.ts +54 -17
  196. package/src/mcp-server/cli/start/command.ts +9 -0
  197. package/src/mcp-server/cli/start/impl.ts +3 -0
  198. package/src/mcp-server/mcp-server.ts +1 -1
  199. package/src/mcp-server/server.ts +5 -1
  200. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  201. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  202. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  203. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  204. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  205. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  206. package/src/models/components/addcapabilities.ts +9 -0
  207. package/src/models/components/capability.ts +7 -1
  208. package/src/models/components/capabilityid.ts +14 -2
  209. package/src/models/components/createaccount.ts +9 -0
  210. package/src/models/components/createpaymentlink.ts +3 -3
  211. package/src/models/components/fullissuedcard.ts +35 -17
  212. package/src/models/components/index.ts +1 -4
  213. package/src/models/components/issuedcard.ts +35 -17
  214. package/src/models/components/onboardinginvite.ts +1 -1
  215. package/src/models/components/onboardinginviterequest.ts +1 -1
  216. package/src/models/components/paymentlink.ts +2 -2
  217. package/src/models/components/requestcard.ts +23 -34
  218. package/src/models/components/updateissuedcard.ts +73 -17
  219. package/src/models/components/webhookdata.ts +18 -8
  220. package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
  221. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  222. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  223. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  224. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  225. package/src/models/components/webhookeventtype.ts +1 -0
  226. package/src/models/errors/requestcarderror.ts +26 -25
  227. package/src/models/errors/updateissuedcarderror.ts +18 -13
  228. package/src/models/operations/disablecapability.ts +7 -1
  229. package/src/models/operations/getcapability.ts +7 -1
  230. package/src/models/operations/index.ts +1 -0
  231. package/src/models/operations/listcancellations.ts +120 -0
  232. package/src/sdk/accounts.ts +8 -10
  233. package/src/sdk/capabilities.ts +4 -4
  234. package/src/sdk/transfers.ts +18 -0
  235. package/src/types/async.ts +8 -7
  236. package/test/tests/accessToken.test.ts +86 -0
  237. package/types/async.d.ts.map +1 -1
  238. package/types/async.js +8 -7
  239. package/types/async.js.map +1 -1
  240. package/lib/dlv.d.ts +0 -14
  241. package/lib/dlv.d.ts.map +0 -1
  242. package/lib/dlv.js +0 -49
  243. package/lib/dlv.js.map +0 -1
  244. package/lib/is-plain-object.d.ts +0 -2
  245. package/lib/is-plain-object.d.ts.map +0 -1
  246. package/lib/is-plain-object.js +0 -41
  247. package/lib/is-plain-object.js.map +0 -1
  248. package/models/components/authorizeduser.d.ts +0 -22
  249. package/models/components/authorizeduser.d.ts.map +0 -1
  250. package/models/components/authorizeduser.js.map +0 -1
  251. package/models/components/createauthorizeduser.d.ts +0 -25
  252. package/models/components/createauthorizeduser.d.ts.map +0 -1
  253. package/models/components/createauthorizeduser.js +0 -63
  254. package/models/components/createauthorizeduser.js.map +0 -1
  255. package/models/components/createauthorizedusererror.d.ts +0 -22
  256. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  257. package/models/components/createauthorizedusererror.js.map +0 -1
  258. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  259. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  260. package/models/components/createauthorizeduserupdate.js +0 -63
  261. package/models/components/createauthorizeduserupdate.js.map +0 -1
  262. package/src/lib/dlv.ts +0 -53
  263. package/src/lib/is-plain-object.ts +0 -43
  264. package/src/models/components/authorizeduser.ts +0 -54
  265. package/src/models/components/createauthorizeduser.ts +0 -68
  266. package/src/models/components/createauthorizedusererror.ts +0 -65
  267. package/src/models/components/createauthorizeduserupdate.ts +0 -68
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,oEAA8D;AAC9D,kEAA4D;AAC5D,0EAAoE;AAC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CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,CACX,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzND,4BAyNC"}
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,oEAA8D;AAC9D,kEAA4D;AAC5D,0EAAoE;AACpE,4DAAsD;AACtD,8EAAwE;AACxE,kHAA4G;AAC5G,kGAA4F;AAC5F,8DAAwD;AACxD,gFAA0E;AAC1E,kEAA4D;AAC5D,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;;;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OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvND,4BAuNC"}
@@ -4,28 +4,28 @@ export declare class Capabilities extends ClientSDK {
4
4
  /**
5
5
  * Retrieve all the capabilities an account has requested.
6
6
  *
7
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
7
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
8
8
  *
9
9
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
10
10
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
11
11
  */
12
12
  list(request: operations.ListCapabilitiesRequest, options?: RequestOptions): Promise<operations.ListCapabilitiesResponse>;
13
13
  /**
14
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
14
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
15
15
  *
16
16
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
17
17
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
18
18
  */
19
19
  request(request: operations.RequestCapabilitiesRequest, options?: RequestOptions): Promise<operations.RequestCapabilitiesResponse>;
20
20
  /**
21
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
21
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
22
22
  *
23
23
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
24
24
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
25
25
  */
26
26
  get(request: operations.GetCapabilityRequest, options?: RequestOptions): Promise<operations.GetCapabilityResponse>;
27
27
  /**
28
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
28
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
29
29
  *
30
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
31
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -14,7 +14,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
14
14
  /**
15
15
  * Retrieve all the capabilities an account has requested.
16
16
  *
17
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
17
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
18
18
  *
19
19
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
20
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -23,7 +23,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
23
23
  return (0, fp_js_1.unwrapAsync)((0, capabilitiesList_js_1.capabilitiesList)(this, request, options));
24
24
  }
25
25
  /**
26
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
26
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
27
27
  *
28
28
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
29
29
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -32,7 +32,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
32
32
  return (0, fp_js_1.unwrapAsync)((0, capabilitiesRequest_js_1.capabilitiesRequest)(this, request, options));
33
33
  }
34
34
  /**
35
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
35
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
36
36
  *
37
37
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
38
38
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -41,7 +41,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
41
41
  return (0, fp_js_1.unwrapAsync)((0, capabilitiesGet_js_1.capabilitiesGet)(this, request, options));
42
42
  }
43
43
  /**
44
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
44
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
45
45
  *
46
46
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -73,6 +73,13 @@ export declare class Transfers extends ClientSDK {
73
73
  * to specify the `/accounts/{accountID}/transfers.write` scope.
74
74
  */
75
75
  createCancellation(request: operations.CreateCancellationRequest, options?: RequestOptions): Promise<operations.CreateCancellationResponse>;
76
+ /**
77
+ * Get a list of cancellations for a transfer.
78
+ *
79
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
80
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
81
+ */
82
+ listCancellations(request: operations.ListCancellationsRequest, options?: RequestOptions): Promise<operations.ListCancellationsResponse>;
76
83
  /**
77
84
  * Get details of a cancellation for a transfer.
78
85
  *
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;OAYG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;OASG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;;;;OAQG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,C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AAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;OAQG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,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;CAO9C"}
package/sdk/transfers.js CHANGED
@@ -14,6 +14,7 @@ const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation
14
14
  const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
15
15
  const transfersInitiateRefund_js_1 = require("../funcs/transfersInitiateRefund.js");
16
16
  const transfersList_js_1 = require("../funcs/transfersList.js");
17
+ const transfersListCancellations_js_1 = require("../funcs/transfersListCancellations.js");
17
18
  const transfersListRefunds_js_1 = require("../funcs/transfersListRefunds.js");
18
19
  const transfersUpdate_js_1 = require("../funcs/transfersUpdate.js");
19
20
  const sdks_js_1 = require("../lib/sdks.js");
@@ -105,6 +106,15 @@ class Transfers extends sdks_js_1.ClientSDK {
105
106
  async createCancellation(request, options) {
106
107
  return (0, fp_js_1.unwrapAsync)((0, transfersCreateCancellation_js_1.transfersCreateCancellation)(this, request, options));
107
108
  }
109
+ /**
110
+ * Get a list of cancellations for a transfer.
111
+ *
112
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
113
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
114
+ */
115
+ async listCancellations(request, options) {
116
+ return (0, fp_js_1.unwrapAsync)((0, transfersListCancellations_js_1.transfersListCancellations)(this, request, options));
117
+ }
108
118
  /**
109
119
  * Get details of a cancellation for a transfer.
110
120
  *
@@ -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,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;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,C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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;AAxOD,8BAwOC"}
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;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,O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,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"}
@@ -28,21 +28,19 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
32
- * information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
31
+ * You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
33
32
  *
34
- * If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
35
- * + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
36
- * This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
37
- * If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
33
+ * The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
34
+ * + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
35
+ * + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
36
+ *
37
+ * If you're creating a business account, depending on the business type, you'll also need to:
38
38
  * + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
39
39
  * + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
40
40
  *
41
- * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
42
- * Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
41
+ * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
43
42
  *
44
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
45
- * to specify the `/accounts.write` scope.
43
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
46
44
  */
47
45
  export function accountsCreate(
48
46
  client: MoovCore,
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
30
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
31
31
  *
32
32
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
33
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
29
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
30
30
  *
31
31
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
32
32
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  /**
29
29
  * Retrieve all the capabilities an account has requested.
30
30
  *
31
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
31
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
32
32
  *
33
33
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
34
34
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
30
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
31
31
  *
32
32
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
33
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -96,7 +96,7 @@ async function $do(
96
96
  charEncoding: "percent",
97
97
  }),
98
98
  };
99
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(
99
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(
100
100
  pathParams,
101
101
  );
102
102
 
@@ -98,9 +98,9 @@ async function $do(
98
98
  charEncoding: "percent",
99
99
  }),
100
100
  };
101
- const path = pathToFunc(
102
- "/issuing/{accountID}/issued-cards/{issuedCardID}/details",
103
- )(pathParams);
101
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(
102
+ pathParams,
103
+ );
104
104
 
105
105
  const headers = new Headers(compactMap({
106
106
  Accept: "application/json",
@@ -92,7 +92,7 @@ async function $do(
92
92
  charEncoding: "percent",
93
93
  }),
94
94
  };
95
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
95
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
96
96
 
97
97
  const query = encodeFormQuery({
98
98
  "count": payload.count,
@@ -97,7 +97,7 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
100
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
101
101
 
102
102
  const headers = new Headers(compactMap({
103
103
  "Content-Type": "application/json",
@@ -101,7 +101,7 @@ async function $do(
101
101
  charEncoding: "percent",
102
102
  }),
103
103
  };
104
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(
104
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(
105
105
  pathParams,
106
106
  );
107
107
 
@@ -0,0 +1,181 @@
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
+ * Get a list of cancellations for a transfer.
30
+ *
31
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
32
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
33
+ */
34
+ export function transfersListCancellations(
35
+ client: MoovCore,
36
+ request: operations.ListCancellationsRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ operations.ListCancellationsResponse,
41
+ | MoovError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: MoovCore,
60
+ request: operations.ListCancellationsRequest,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ operations.ListCancellationsResponse,
66
+ | MoovError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) => operations.ListCancellationsRequest$outboundSchema.parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = null;
88
+
89
+ const pathParams = {
90
+ accountID: encodeSimple("accountID", payload.accountID, {
91
+ explode: false,
92
+ charEncoding: "percent",
93
+ }),
94
+ transferID: encodeSimple("transferID", payload.transferID, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ };
99
+ const path = pathToFunc(
100
+ "/accounts/{accountID}/transfers/{transferID}/cancellations",
101
+ )(pathParams);
102
+
103
+ const headers = new Headers(compactMap({
104
+ Accept: "application/json",
105
+ }));
106
+
107
+ const securityInput = await extractSecurity(client._options.security);
108
+ const requestSecurity = resolveGlobalSecurity(securityInput);
109
+
110
+ const context = {
111
+ options: client._options,
112
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
113
+ operationID: "listCancellations",
114
+ oAuth2Scopes: null,
115
+
116
+ resolvedSecurity: requestSecurity,
117
+
118
+ securitySource: client._options.security,
119
+ retryConfig: options?.retries
120
+ || client._options.retryConfig
121
+ || { strategy: "none" },
122
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
123
+ };
124
+
125
+ const requestRes = client._createRequest(context, {
126
+ security: requestSecurity,
127
+ method: "GET",
128
+ baseURL: options?.serverURL,
129
+ path: path,
130
+ headers: headers,
131
+ body: body,
132
+ userAgent: client._options.userAgent,
133
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
134
+ }, options);
135
+ if (!requestRes.ok) {
136
+ return [requestRes, { status: "invalid" }];
137
+ }
138
+ const req = requestRes.value;
139
+
140
+ const doResult = await client._do(req, {
141
+ context,
142
+ isErrorStatusCode: (statusCode: number) =>
143
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
144
+ retryConfig: context.retryConfig,
145
+ retryCodes: context.retryCodes,
146
+ });
147
+ if (!doResult.ok) {
148
+ return [doResult, { status: "request-error", request: req }];
149
+ }
150
+ const response = doResult.value;
151
+
152
+ const responseFields = {
153
+ HttpMeta: { Response: response, Request: req },
154
+ };
155
+
156
+ const [result] = await M.match<
157
+ operations.ListCancellationsResponse,
158
+ | MoovError
159
+ | ResponseValidationError
160
+ | ConnectionError
161
+ | RequestAbortedError
162
+ | RequestTimeoutError
163
+ | InvalidRequestError
164
+ | UnexpectedClientError
165
+ | SDKValidationError
166
+ >(
167
+ M.json(200, operations.ListCancellationsResponse$inboundSchema, {
168
+ hdrs: true,
169
+ key: "Result",
170
+ }),
171
+ M.fail([401, 403, 429]),
172
+ M.fail([500, 504]),
173
+ M.fail("4XX"),
174
+ M.fail("5XX"),
175
+ )(response, req, { extraFields: responseFields });
176
+ if (!result.ok) {
177
+ return [result, { status: "complete", request: req, response }];
178
+ }
179
+
180
+ return [result, { status: "complete", request: req, response }];
181
+ }
@@ -0,0 +1,73 @@
1
+ import { SDKOptions } from "../lib/config.js";
2
+ import {
3
+ BeforeRequestContext,
4
+ BeforeRequestHook,
5
+ SDKInitHook,
6
+ } from "./types.js";
7
+
8
+ const gt: unknown = typeof globalThis === "undefined" ? null : globalThis;
9
+ const webWorkerLike = typeof gt === "object"
10
+ && gt != null
11
+ && "importScripts" in gt
12
+ && typeof gt["importScripts"] === "function";
13
+ const isBrowserLike = webWorkerLike
14
+ || (typeof navigator !== "undefined" && "serviceWorker" in navigator)
15
+ || (typeof window === "object" && typeof window.document !== "undefined");
16
+
17
+ /**
18
+ * Applies bearer-token authentication and validates auth-related SDK
19
+ * options at construction time.
20
+ *
21
+ * `accessToken` is exposed as a top-level SDK option via the
22
+ * `x-speakeasy-globals` overlay in `.speakeasy/overlays/access-token.yaml`.
23
+ * Speakeasy doesn't auto-send it (no operation declares a matching
24
+ * parameter), so this hook is responsible for translating it into the
25
+ * `Authorization: Bearer …` header.
26
+ *
27
+ * HTTP Basic credentials (`security.username` / `security.password`) are
28
+ * still handled automatically by Speakeasy's generated security pipeline.
29
+ *
30
+ * Validation rules enforced at SDK init:
31
+ * - `accessToken` and `security.username`/`password` cannot both be set.
32
+ * - HTTP Basic credentials are rejected in browser-like environments.
33
+ * Browsers must use `accessToken` instead.
34
+ */
35
+ export class AccessTokenHook implements SDKInitHook, BeforeRequestHook {
36
+ sdkInit(opts: SDKOptions): SDKOptions {
37
+ const token = (opts as SDKOptions & { accessToken: string }).accessToken;
38
+ const hasToken = typeof token === "string" && token.length > 0;
39
+
40
+ if (hasToken && opts.security != null) {
41
+ throw new Error(
42
+ "Moov SDK: `accessToken` and `security.username`/`password` cannot "
43
+ + "both be set. Use `accessToken` for OAuth2 bearer auth "
44
+ + "(typically client-side) or `security.username`/`password` for "
45
+ + "HTTP Basic auth with API keys (server-side).",
46
+ );
47
+ }
48
+
49
+ if (isBrowserLike && opts.security != null) {
50
+ throw new Error(
51
+ "Moov SDK: HTTP Basic credentials were provided in a browser-like "
52
+ + "environment. API keys must never be embedded in client-side "
53
+ + "code. Mint a short-lived OAuth2 access token on your server "
54
+ + "and pass it via the `accessToken` option instead.",
55
+ );
56
+ }
57
+
58
+ return opts;
59
+ }
60
+
61
+ beforeRequest(ctx: BeforeRequestContext, request: Request): Request {
62
+ const token = (ctx.options as SDKOptions & { accessToken: string }).accessToken;
63
+
64
+ // Bail early if there's no token or the request already has an Authorization header.
65
+ if (!token || request.headers.has("Authorization")) {
66
+ return request;
67
+ }
68
+
69
+ const next = new Request(request);
70
+ next.headers.set("Authorization", `Bearer ${token}`);
71
+ return next;
72
+ }
73
+ }
@@ -1,3 +1,4 @@
1
+ import { AccessTokenHook } from "./access-token-hook.js";
1
2
  import { MoovVersionHook } from "./moov-version-hook.js";
2
3
  import { Hooks } from "./types.js";
3
4
 
@@ -14,4 +15,8 @@ export function initHooks(hooks: Hooks) {
14
15
 
15
16
  const versionHook = new MoovVersionHook();
16
17
  hooks.registerBeforeRequestHook(versionHook);
18
+
19
+ const accessTokenHook = new AccessTokenHook();
20
+ hooks.registerSDKInitHook(accessTokenHook);
21
+ hooks.registerBeforeRequestHook(accessTokenHook);
17
22
  }
@@ -15,6 +15,7 @@ export type HookContext = {
15
15
  retryConfig: RetryConfig;
16
16
  resolvedSecurity: SecurityState | null;
17
17
  options: SDKOptions;
18
+ timeoutMs?: number;
18
19
  };
19
20
 
20
21
  export type Awaitable<T> = T | Promise<T>;
package/src/lib/config.ts CHANGED
@@ -27,6 +27,11 @@ export type SDKOptions = {
27
27
  | (() => Promise<components.Security>)
28
28
  | undefined;
29
29
 
30
+ /**
31
+ * Allows setting the accessToken parameter for all supported operations
32
+ */
33
+ accessToken?: string | undefined;
34
+
30
35
  httpClient?: HTTPClient;
31
36
  /**
32
37
  * Allows overriding the default server used by the SDK
@@ -68,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
73
  export const SDK_METADATA = {
69
74
  language: "typescript",
70
75
  openapiDocVersion: "v2025.10.00",
71
- sdkVersion: "25.11.7",
72
- genVersion: "2.884.0",
73
- userAgent: "speakeasy-sdk/typescript 25.11.7 2.884.0 v2025.10.00 @moovio/sdk",
76
+ sdkVersion: "25.12.1",
77
+ genVersion: "2.910.1",
78
+ userAgent: "speakeasy-sdk/typescript 25.12.1 2.910.1 v2025.10.00 @moovio/sdk",
74
79
  } as const;
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { bytesToBase64 } from "./base64.js";
6
- import { isPlainObject } from "./is-plain-object.js";
6
+ import { isPlainObject } from "./primitives.js";
7
7
 
8
8
  export class EncodingError extends Error {
9
9
  constructor(message: string) {
@@ -6,7 +6,7 @@ import { APIError } from "../models/errors/apierror.js";
6
6
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
7
  import { ERR, OK, Result } from "../types/fp.js";
8
8
  import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
9
- import { isPlainObject } from "./is-plain-object.js";
9
+ import { isPlainObject } from "./primitives.js";
10
10
 
11
11
  export type Encoding =
12
12
  | "jsonl"
@@ -148,3 +148,19 @@ export function allRequired<V extends Record<string, unknown>>(
148
148
 
149
149
  return v as ReturnType<typeof allRequired<V>>;
150
150
  }
151
+
152
+ export function isPlainObject(
153
+ value: unknown,
154
+ ): value is Record<string, unknown> {
155
+ if (value === null || typeof value !== "object") return false;
156
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
157
+ const proto = Object.getPrototypeOf(value);
158
+ if (proto === null || proto === Object.prototype) return true;
159
+ // cross-realm plain objects (vm contexts, iframes) inherit from a
160
+ // different realm's Object.prototype, which itself has a null prototype
161
+ try {
162
+ return Object.getPrototypeOf(proto) === null;
163
+ } catch {
164
+ return false;
165
+ }
166
+ }
@@ -194,6 +194,14 @@ async function retryBackoff(
194
194
  }
195
195
 
196
196
  function retryIntervalFromResponse(res: Response): number {
197
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
198
+ if (retryAfterMsVal) {
199
+ const parsedMs = Number(retryAfterMsVal);
200
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
201
+ return parsedMs;
202
+ }
203
+ }
204
+
197
205
  const retryVal = res.headers.get("retry-after") || "";
198
206
  if (!retryVal) {
199
207
  return 0;