@moovio/sdk 25.9.0 → 25.9.2

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 (272) hide show
  1. package/README.md +84 -80
  2. package/bin/mcp-server.js +556 -322
  3. package/bin/mcp-server.js.map +64 -65
  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/bankAccountsLink.d.ts +1 -1
  9. package/funcs/bankAccountsLink.js +1 -1
  10. package/funcs/capabilitiesDisable.d.ts +1 -1
  11. package/funcs/capabilitiesDisable.js +1 -1
  12. package/funcs/capabilitiesGet.d.ts +1 -1
  13. package/funcs/capabilitiesGet.js +1 -1
  14. package/funcs/capabilitiesList.d.ts +1 -1
  15. package/funcs/capabilitiesList.js +1 -1
  16. package/funcs/capabilitiesRequest.d.ts +1 -1
  17. package/funcs/capabilitiesRequest.js +1 -1
  18. package/funcs/cardIssuingGet.js +1 -1
  19. package/funcs/cardIssuingGet.js.map +1 -1
  20. package/funcs/cardIssuingGetFull.js +1 -1
  21. package/funcs/cardIssuingGetFull.js.map +1 -1
  22. package/funcs/cardIssuingList.js +1 -1
  23. package/funcs/cardIssuingList.js.map +1 -1
  24. package/funcs/cardIssuingRequest.js +1 -1
  25. package/funcs/cardIssuingRequest.js.map +1 -1
  26. package/funcs/cardIssuingUpdate.js +1 -1
  27. package/funcs/cardIssuingUpdate.js.map +1 -1
  28. package/funcs/transfersListCancellations.d.ts +17 -0
  29. package/funcs/transfersListCancellations.d.ts.map +1 -0
  30. package/funcs/transfersListCancellations.js +129 -0
  31. package/funcs/transfersListCancellations.js.map +1 -0
  32. package/hooks/types.d.ts +1 -0
  33. package/hooks/types.d.ts.map +1 -1
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +3 -3
  36. package/lib/config.js +3 -3
  37. package/lib/encodings.js +12 -12
  38. package/lib/encodings.js.map +1 -1
  39. package/lib/matchers.js +3 -3
  40. package/lib/matchers.js.map +1 -1
  41. package/lib/primitives.d.ts +1 -0
  42. package/lib/primitives.d.ts.map +1 -1
  43. package/lib/primitives.js +18 -0
  44. package/lib/primitives.js.map +1 -1
  45. package/lib/retries.js +7 -0
  46. package/lib/retries.js.map +1 -1
  47. package/lib/sdks.d.ts.map +1 -1
  48. package/lib/sdks.js +50 -16
  49. package/lib/sdks.js.map +1 -1
  50. package/mcp-server/mcp-server.js +1 -1
  51. package/mcp-server/server.d.ts.map +1 -1
  52. package/mcp-server/server.js +3 -1
  53. package/mcp-server/server.js.map +1 -1
  54. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  55. package/mcp-server/tools/accountsCreate.js +8 -10
  56. package/mcp-server/tools/accountsCreate.js.map +1 -1
  57. package/mcp-server/tools/bankAccountsLink.js +1 -1
  58. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  59. package/mcp-server/tools/capabilitiesGet.js +1 -1
  60. package/mcp-server/tools/capabilitiesList.js +1 -1
  61. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  62. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  63. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  64. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
  65. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  66. package/models/components/addcapabilities.d.ts +9 -0
  67. package/models/components/addcapabilities.d.ts.map +1 -1
  68. package/models/components/addcapabilities.js.map +1 -1
  69. package/models/components/capability.d.ts +7 -1
  70. package/models/components/capability.d.ts.map +1 -1
  71. package/models/components/capability.js.map +1 -1
  72. package/models/components/capabilityid.d.ts +15 -2
  73. package/models/components/capabilityid.d.ts.map +1 -1
  74. package/models/components/capabilityid.js +8 -1
  75. package/models/components/capabilityid.js.map +1 -1
  76. package/models/components/createaccount.d.ts +9 -0
  77. package/models/components/createaccount.d.ts.map +1 -1
  78. package/models/components/createaccount.js.map +1 -1
  79. package/models/components/createpaymentlink.d.ts +3 -3
  80. package/models/components/fullissuedcard.d.ts +26 -12
  81. package/models/components/fullissuedcard.d.ts.map +1 -1
  82. package/models/components/fullissuedcard.js +11 -5
  83. package/models/components/fullissuedcard.js.map +1 -1
  84. package/models/components/index.d.ts +1 -4
  85. package/models/components/index.d.ts.map +1 -1
  86. package/models/components/index.js +1 -4
  87. package/models/components/index.js.map +1 -1
  88. package/models/components/issuedcard.d.ts +26 -12
  89. package/models/components/issuedcard.d.ts.map +1 -1
  90. package/models/components/issuedcard.js +11 -5
  91. package/models/components/issuedcard.js.map +1 -1
  92. package/models/components/issuedcardstate.d.ts +2 -8
  93. package/models/components/issuedcardstate.d.ts.map +1 -1
  94. package/models/components/issuedcardstate.js +1 -5
  95. package/models/components/issuedcardstate.js.map +1 -1
  96. package/models/components/manualtermsofservice.d.ts +1 -1
  97. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  98. package/models/components/onboardinginvite.d.ts +1 -1
  99. package/models/components/onboardinginviterequest.d.ts +1 -1
  100. package/models/components/patchtransfer.d.ts +3 -0
  101. package/models/components/patchtransfer.d.ts.map +1 -1
  102. package/models/components/patchtransfer.js.map +1 -1
  103. package/models/components/paymentlink.d.ts +2 -2
  104. package/models/components/requestcard.d.ts +14 -17
  105. package/models/components/requestcard.d.ts.map +1 -1
  106. package/models/components/requestcard.js +9 -10
  107. package/models/components/requestcard.js.map +1 -1
  108. package/models/components/termsofservice.d.ts +1 -1
  109. package/models/components/updateissuedcard.d.ts +33 -8
  110. package/models/components/updateissuedcard.d.ts.map +1 -1
  111. package/models/components/updateissuedcard.js +35 -6
  112. package/models/components/updateissuedcard.js.map +1 -1
  113. package/models/components/webhookdata.d.ts +3 -2
  114. package/models/components/webhookdata.d.ts.map +1 -1
  115. package/models/components/webhookdata.js +7 -4
  116. package/models/components/webhookdata.js.map +1 -1
  117. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  118. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  119. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  120. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  121. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  122. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  123. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  124. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  125. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  126. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  127. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  128. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  129. package/models/components/webhookdatasweepcreated.js +2 -0
  130. package/models/components/webhookdatasweepcreated.js.map +1 -1
  131. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  132. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  133. package/models/components/webhookdatasweepupdated.js +2 -0
  134. package/models/components/webhookdatasweepupdated.js.map +1 -1
  135. package/models/components/webhookeventtype.d.ts +1 -0
  136. package/models/components/webhookeventtype.d.ts.map +1 -1
  137. package/models/components/webhookeventtype.js +1 -0
  138. package/models/components/webhookeventtype.js.map +1 -1
  139. package/models/errors/requestcarderror.d.ts +12 -12
  140. package/models/errors/requestcarderror.d.ts.map +1 -1
  141. package/models/errors/requestcarderror.js +17 -17
  142. package/models/errors/requestcarderror.js.map +1 -1
  143. package/models/errors/updateissuedcarderror.d.ts +9 -6
  144. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  145. package/models/errors/updateissuedcarderror.js +12 -9
  146. package/models/errors/updateissuedcarderror.js.map +1 -1
  147. package/models/operations/disablecapability.d.ts +7 -1
  148. package/models/operations/disablecapability.d.ts.map +1 -1
  149. package/models/operations/disablecapability.js.map +1 -1
  150. package/models/operations/getcapability.d.ts +7 -1
  151. package/models/operations/getcapability.d.ts.map +1 -1
  152. package/models/operations/getcapability.js.map +1 -1
  153. package/models/operations/index.d.ts +1 -0
  154. package/models/operations/index.d.ts.map +1 -1
  155. package/models/operations/index.js +1 -0
  156. package/models/operations/index.js.map +1 -1
  157. package/models/operations/linkbankaccount.d.ts +1 -1
  158. package/models/operations/listcancellations.d.ts +45 -0
  159. package/models/operations/listcancellations.d.ts.map +1 -0
  160. package/models/operations/listcancellations.js +90 -0
  161. package/models/operations/listcancellations.js.map +1 -0
  162. package/models/operations/listissuedcards.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/sdk/accounts.d.ts +8 -10
  165. package/sdk/accounts.d.ts.map +1 -1
  166. package/sdk/accounts.js +8 -10
  167. package/sdk/accounts.js.map +1 -1
  168. package/sdk/bankaccounts.d.ts +1 -1
  169. package/sdk/bankaccounts.js +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/bankAccountsLink.ts +1 -1
  178. package/src/funcs/capabilitiesDisable.ts +1 -1
  179. package/src/funcs/capabilitiesGet.ts +1 -1
  180. package/src/funcs/capabilitiesList.ts +1 -1
  181. package/src/funcs/capabilitiesRequest.ts +1 -1
  182. package/src/funcs/cardIssuingGet.ts +1 -1
  183. package/src/funcs/cardIssuingGetFull.ts +3 -3
  184. package/src/funcs/cardIssuingList.ts +1 -1
  185. package/src/funcs/cardIssuingRequest.ts +1 -1
  186. package/src/funcs/cardIssuingUpdate.ts +1 -1
  187. package/src/funcs/transfersListCancellations.ts +181 -0
  188. package/src/hooks/types.ts +1 -0
  189. package/src/lib/config.ts +3 -3
  190. package/src/lib/encodings.ts +1 -1
  191. package/src/lib/matchers.ts +1 -1
  192. package/src/lib/primitives.ts +16 -0
  193. package/src/lib/retries.ts +8 -0
  194. package/src/lib/sdks.ts +54 -17
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +3 -1
  197. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  198. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  199. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  200. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  201. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  202. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  203. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  204. package/src/models/components/addcapabilities.ts +9 -0
  205. package/src/models/components/capability.ts +7 -1
  206. package/src/models/components/capabilityid.ts +15 -2
  207. package/src/models/components/createaccount.ts +9 -0
  208. package/src/models/components/createpaymentlink.ts +3 -3
  209. package/src/models/components/fullissuedcard.ts +36 -20
  210. package/src/models/components/index.ts +1 -4
  211. package/src/models/components/issuedcard.ts +36 -20
  212. package/src/models/components/issuedcardstate.ts +2 -8
  213. package/src/models/components/manualtermsofservice.ts +1 -1
  214. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  215. package/src/models/components/onboardinginvite.ts +1 -1
  216. package/src/models/components/onboardinginviterequest.ts +1 -1
  217. package/src/models/components/patchtransfer.ts +3 -0
  218. package/src/models/components/paymentlink.ts +2 -2
  219. package/src/models/components/requestcard.ts +23 -34
  220. package/src/models/components/termsofservice.ts +1 -1
  221. package/src/models/components/updateissuedcard.ts +73 -17
  222. package/src/models/components/webhookdata.ts +18 -8
  223. package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
  224. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  225. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  226. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  227. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  228. package/src/models/components/webhookeventtype.ts +1 -0
  229. package/src/models/errors/requestcarderror.ts +26 -25
  230. package/src/models/errors/updateissuedcarderror.ts +18 -13
  231. package/src/models/operations/disablecapability.ts +7 -1
  232. package/src/models/operations/getcapability.ts +7 -1
  233. package/src/models/operations/index.ts +1 -0
  234. package/src/models/operations/linkbankaccount.ts +1 -1
  235. package/src/models/operations/listcancellations.ts +120 -0
  236. package/src/models/operations/listissuedcards.ts +1 -1
  237. package/src/sdk/accounts.ts +8 -10
  238. package/src/sdk/bankaccounts.ts +1 -1
  239. package/src/sdk/capabilities.ts +4 -4
  240. package/src/sdk/transfers.ts +18 -0
  241. package/src/types/async.ts +8 -7
  242. package/types/async.d.ts.map +1 -1
  243. package/types/async.js +8 -7
  244. package/types/async.js.map +1 -1
  245. package/lib/dlv.d.ts +0 -14
  246. package/lib/dlv.d.ts.map +0 -1
  247. package/lib/dlv.js +0 -49
  248. package/lib/dlv.js.map +0 -1
  249. package/lib/is-plain-object.d.ts +0 -2
  250. package/lib/is-plain-object.d.ts.map +0 -1
  251. package/lib/is-plain-object.js +0 -41
  252. package/lib/is-plain-object.js.map +0 -1
  253. package/models/components/authorizeduser.d.ts +0 -22
  254. package/models/components/authorizeduser.d.ts.map +0 -1
  255. package/models/components/authorizeduser.js.map +0 -1
  256. package/models/components/createauthorizeduser.d.ts +0 -25
  257. package/models/components/createauthorizeduser.d.ts.map +0 -1
  258. package/models/components/createauthorizeduser.js +0 -63
  259. package/models/components/createauthorizeduser.js.map +0 -1
  260. package/models/components/createauthorizedusererror.d.ts +0 -22
  261. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  262. package/models/components/createauthorizedusererror.js.map +0 -1
  263. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  264. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  265. package/models/components/createauthorizeduserupdate.js +0 -63
  266. package/models/components/createauthorizeduserupdate.js.map +0 -1
  267. package/src/lib/dlv.ts +0 -53
  268. package/src/lib/is-plain-object.ts +0 -43
  269. package/src/models/components/authorizeduser.ts +0 -54
  270. package/src/models/components/createauthorizeduser.ts +0 -68
  271. package/src/models/components/createauthorizedusererror.ts +0 -65
  272. package/src/models/components/createauthorizeduserupdate.ts +0 -68
package/bin/mcp-server.js CHANGED
@@ -37121,6 +37121,57 @@ function remap(inp, mappings) {
37121
37121
  }
37122
37122
  return out;
37123
37123
  }
37124
+ function combineSignals(...signals) {
37125
+ const filtered = [];
37126
+ for (const signal of signals) {
37127
+ if (signal) {
37128
+ filtered.push(signal);
37129
+ }
37130
+ }
37131
+ switch (filtered.length) {
37132
+ case 0:
37133
+ case 1:
37134
+ return filtered[0] || null;
37135
+ default:
37136
+ if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
37137
+ return AbortSignal.any(filtered);
37138
+ }
37139
+ return abortSignalAny(filtered);
37140
+ }
37141
+ }
37142
+ function abortSignalAny(signals) {
37143
+ const controller = new AbortController;
37144
+ const result = controller.signal;
37145
+ if (!signals.length) {
37146
+ return controller.signal;
37147
+ }
37148
+ if (signals.length === 1) {
37149
+ return signals[0] || controller.signal;
37150
+ }
37151
+ for (const signal of signals) {
37152
+ if (signal.aborted) {
37153
+ return signal;
37154
+ }
37155
+ }
37156
+ function abort() {
37157
+ controller.abort(this.reason);
37158
+ clean();
37159
+ }
37160
+ const signalRefs = [];
37161
+ function clean() {
37162
+ for (const signalRef of signalRefs) {
37163
+ const signal = signalRef.deref();
37164
+ if (signal) {
37165
+ signal.removeEventListener("abort", abort);
37166
+ }
37167
+ }
37168
+ }
37169
+ for (const signal of signals) {
37170
+ signalRefs.push(new WeakRef(signal));
37171
+ signal.addEventListener("abort", abort);
37172
+ }
37173
+ return result;
37174
+ }
37124
37175
  function compactMap(values) {
37125
37176
  const out = {};
37126
37177
  for (const [k2, v2] of Object.entries(values)) {
@@ -37136,6 +37187,20 @@ function allRequired(v2) {
37136
37187
  }
37137
37188
  return v2;
37138
37189
  }
37190
+ function isPlainObject2(value) {
37191
+ if (value === null || typeof value !== "object")
37192
+ return false;
37193
+ if (Object.prototype.toString.call(value) !== "[object Object]")
37194
+ return false;
37195
+ const proto = Object.getPrototypeOf(value);
37196
+ if (proto === null || proto === Object.prototype)
37197
+ return true;
37198
+ try {
37199
+ return Object.getPrototypeOf(proto) === null;
37200
+ } catch {
37201
+ return false;
37202
+ }
37203
+ }
37139
37204
  var init_primitives = () => {};
37140
37205
 
37141
37206
  // node_modules/zod/dist/esm/v4/mini/parse.js
@@ -39629,7 +39694,7 @@ class Protocol {
39629
39694
  };
39630
39695
  }
39631
39696
  }
39632
- function isPlainObject2(value) {
39697
+ function isPlainObject3(value) {
39633
39698
  return value !== null && typeof value === "object" && !Array.isArray(value);
39634
39699
  }
39635
39700
  function mergeCapabilities(base, additional) {
@@ -39640,7 +39705,7 @@ function mergeCapabilities(base, additional) {
39640
39705
  if (addValue === undefined)
39641
39706
  continue;
39642
39707
  const baseValue = result[k2];
39643
- if (isPlainObject2(baseValue) && isPlainObject2(addValue)) {
39708
+ if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
39644
39709
  result[k2] = { ...baseValue, ...addValue };
39645
39710
  } else {
39646
39711
  result[k2] = addValue;
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
52909
52974
  SDK_METADATA = {
52910
52975
  language: "typescript",
52911
52976
  openapiDocVersion: "v2025.07.00",
52912
- sdkVersion: "25.9.0",
52913
- genVersion: "2.884.4",
52914
- userAgent: "speakeasy-sdk/typescript 25.9.0 2.884.4 v2025.07.00 @moovio/sdk"
52977
+ sdkVersion: "25.9.2",
52978
+ genVersion: "2.916.2",
52979
+ userAgent: "speakeasy-sdk/typescript 25.9.2 2.916.2 v2025.07.00 @moovio/sdk"
52915
52980
  };
52916
52981
  });
52917
52982
 
@@ -53084,15 +53149,6 @@ var init_base64 = __esm(() => {
53084
53149
  zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
53085
53150
  });
53086
53151
 
53087
- // src/lib/is-plain-object.ts
53088
- function isPlainObject3(value) {
53089
- if (typeof value !== "object" || value === null) {
53090
- return false;
53091
- }
53092
- const prototype = Object.getPrototypeOf(value);
53093
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
53094
- }
53095
-
53096
53152
  // src/lib/encodings.ts
53097
53153
  function formEncoder(sep) {
53098
53154
  return (key, value, options) => {
@@ -53113,7 +53169,7 @@ function formEncoder(sep) {
53113
53169
  return;
53114
53170
  } else if (Array.isArray(pv)) {
53115
53171
  encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
53116
- } else if (isPlainObject3(pv)) {
53172
+ } else if (isPlainObject2(pv)) {
53117
53173
  encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53118
53174
  return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
53119
53175
  })?.join(encodedSep);
@@ -53136,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
53136
53192
  if (value == null) {
53137
53193
  return;
53138
53194
  }
53139
- if (!isPlainObject3(value)) {
53195
+ if (!isPlainObject2(value)) {
53140
53196
  throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
53141
53197
  }
53142
53198
  return encodeDeepObjectObject(key, value, options);
@@ -53149,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
53149
53205
  const encodeString = (v2) => {
53150
53206
  return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53151
53207
  };
53152
- if (!isPlainObject3(value)) {
53208
+ if (!isPlainObject2(value)) {
53153
53209
  throw new EncodingError(`Expected parameter '${key}' to be an object.`);
53154
53210
  }
53155
53211
  Object.entries(value).forEach(([ck, cv]) => {
@@ -53157,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
53157
53213
  return;
53158
53214
  }
53159
53215
  const pk = `${key}[${ck}]`;
53160
- if (isPlainObject3(cv)) {
53216
+ if (isPlainObject2(cv)) {
53161
53217
  const objOut = encodeDeepObjectObject(pk, cv, options);
53162
53218
  out += objOut == null ? "" : `&${objOut}`;
53163
53219
  return;
@@ -53183,7 +53239,7 @@ function encodeJSON(key, value, options) {
53183
53239
  function explode(key, value) {
53184
53240
  if (Array.isArray(value)) {
53185
53241
  return value.map((v2) => [key, v2]);
53186
- } else if (isPlainObject3(value)) {
53242
+ } else if (isPlainObject2(value)) {
53187
53243
  const o = value ?? {};
53188
53244
  return Object.entries(o).map(([k2, v2]) => [k2, v2]);
53189
53245
  } else {
@@ -53308,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53308
53364
  return;
53309
53365
  } else if (Array.isArray(pv)) {
53310
53366
  tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
53311
- } else if (isPlainObject3(pv)) {
53367
+ } else if (isPlainObject2(pv)) {
53312
53368
  const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53313
53369
  return `,${encodeString(k2)},${encodeValue(v2)}`;
53314
53370
  });
53315
53371
  tmp = mapped?.join("").slice(1);
53316
53372
  } else {
53317
- const k2 = options?.explode && isPlainObject3(value) ? `${pk}=` : "";
53373
+ const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
53318
53374
  tmp = `${k2}${encodeValue(pv)}`;
53319
53375
  }
53320
53376
  out += tmp ? `,${tmp}` : "";
@@ -53323,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53323
53379
  }, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
53324
53380
  var init_encodings = __esm(() => {
53325
53381
  init_base64();
53382
+ init_primitives();
53326
53383
  EncodingError = class EncodingError extends Error {
53327
53384
  constructor(message) {
53328
53385
  super(message);
@@ -53588,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
53588
53645
  }
53589
53646
  }
53590
53647
  function retryIntervalFromResponse(res) {
53648
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
53649
+ if (retryAfterMsVal) {
53650
+ const parsedMs = Number(retryAfterMsVal);
53651
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
53652
+ return parsedMs;
53653
+ }
53654
+ }
53591
53655
  const retryVal = res.headers.get("retry-after") || "";
53592
53656
  if (!retryVal) {
53593
53657
  return 0;
@@ -53679,24 +53743,41 @@ class ClientSDK {
53679
53743
  if (path) {
53680
53744
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
53681
53745
  reqURL = new URL(path, baseURL);
53746
+ if (!reqURL.search && baseURL.search) {
53747
+ reqURL.search = baseURL.search;
53748
+ }
53682
53749
  } else {
53683
53750
  reqURL = baseURL;
53684
53751
  }
53685
53752
  reqURL.hash = "";
53686
- let finalQuery = query || "";
53687
- const secQuery = [];
53688
- for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
53689
- const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
53690
- if (typeof q2 !== "undefined") {
53691
- secQuery.push(q2);
53753
+ const mergeQuery = (current, additions) => {
53754
+ if (!additions) {
53755
+ return current;
53692
53756
  }
53693
- }
53694
- if (secQuery.length) {
53695
- finalQuery += `&${secQuery.join("&")}`;
53696
- }
53757
+ const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
53758
+ const kept = current.split("&").filter((pair) => {
53759
+ return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
53760
+ });
53761
+ return [...kept, additions].join("&");
53762
+ };
53763
+ const encodeQueryRecord = (record3) => {
53764
+ return Object.entries(record3).map(([k2, v2]) => {
53765
+ if (v2 == null) {
53766
+ return;
53767
+ }
53768
+ const value = v2;
53769
+ return encodeForm(k2, value, {
53770
+ explode: Array.isArray(value),
53771
+ charEncoding: "percent"
53772
+ });
53773
+ }).filter((pair) => typeof pair !== "undefined").join("&");
53774
+ };
53775
+ const finalQuery = [
53776
+ query || "",
53777
+ encodeQueryRecord(security?.queryParams || {})
53778
+ ].reduce(mergeQuery, reqURL.search.slice(1));
53697
53779
  if (finalQuery) {
53698
- const q2 = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
53699
- reqURL.search = `?${q2}`;
53780
+ reqURL.search = `?${finalQuery}`;
53700
53781
  }
53701
53782
  const headers = new Headers(opHeaders);
53702
53783
  const username = security?.basic.username;
@@ -53726,9 +53807,8 @@ class ClientSDK {
53726
53807
  ...options?.fetchOptions,
53727
53808
  ...options
53728
53809
  };
53729
- if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
53730
- const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
53731
- fetchOptions.signal = timeoutSignal;
53810
+ if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
53811
+ context.timeoutMs = conf.timeoutMs;
53732
53812
  }
53733
53813
  if (conf.body instanceof ReadableStream) {
53734
53814
  Object.assign(fetchOptions, { duplex: "half" });
@@ -53753,8 +53833,16 @@ class ClientSDK {
53753
53833
  }
53754
53834
  async _do(request, options) {
53755
53835
  const { context, isErrorStatusCode } = options;
53836
+ const timeoutMs = context.timeoutMs;
53756
53837
  return retry(async () => {
53757
- const req = await this.#hooks.beforeRequest(context, request.clone());
53838
+ const cloned = request.clone();
53839
+ let attempt = cloned;
53840
+ if (timeoutMs != null && timeoutMs > 0) {
53841
+ const timeoutSignal = AbortSignal.timeout(timeoutMs);
53842
+ const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
53843
+ attempt = new Request(cloned, { signal: combined });
53844
+ }
53845
+ const req = await this.#hooks.beforeRequest(context, attempt);
53758
53846
  await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
53759
53847
  let response = await this.#httpClient.request(req);
53760
53848
  try {
@@ -53872,6 +53960,7 @@ var init_sdks = __esm(() => {
53872
53960
  init_config();
53873
53961
  init_encodings();
53874
53962
  init_http();
53963
+ init_primitives();
53875
53964
  init_retries();
53876
53965
  gt2 = typeof globalThis === "undefined" ? null : globalThis;
53877
53966
  webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
@@ -54321,7 +54410,7 @@ function match(...matchers) {
54321
54410
  data = {
54322
54411
  ...options?.extraFields,
54323
54412
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54324
- ...isPlainObject3(raw) ? raw : null,
54413
+ ...isPlainObject2(raw) ? raw : null,
54325
54414
  request$: request,
54326
54415
  response$: response,
54327
54416
  body$: body
@@ -54336,7 +54425,7 @@ function match(...matchers) {
54336
54425
  data = {
54337
54426
  ...options?.extraFields,
54338
54427
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54339
- ...isPlainObject3(raw) ? raw : null
54428
+ ...isPlainObject2(raw) ? raw : null
54340
54429
  };
54341
54430
  } else {
54342
54431
  data = raw;
@@ -54376,6 +54465,7 @@ var init_matchers = __esm(() => {
54376
54465
  init_apierror();
54377
54466
  init_responsevalidationerror();
54378
54467
  init_http();
54468
+ init_primitives();
54379
54469
  DEFAULT_CONTENT_TYPES = {
54380
54470
  jsonl: "application/jsonl",
54381
54471
  json: "application/json",
@@ -55957,6 +56047,7 @@ var init_capabilityid = __esm(() => {
55957
56047
  Wallet: "wallet",
55958
56048
  WalletBalance: "wallet.balance",
55959
56049
  CardIssuing: "card-issuing",
56050
+ IssuingCardholder: "issuing.cardholder",
55960
56051
  ProductionApp: "production-app",
55961
56052
  PlatformProductionApp: "platform.production-app",
55962
56053
  PlatformWalletTransfers: "platform.wallet-transfers"
@@ -56376,20 +56467,6 @@ var init_asynctransfer = __esm(() => {
56376
56467
  });
56377
56468
  });
56378
56469
 
56379
- // src/models/components/authorizeduser.ts
56380
- var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
56381
- var init_authorizeduser = __esm(() => {
56382
- init_esm();
56383
- AuthorizedUser$inboundSchema = objectType({
56384
- firstName: stringType(),
56385
- lastName: stringType()
56386
- });
56387
- AuthorizedUser$outboundSchema = objectType({
56388
- firstName: stringType(),
56389
- lastName: stringType()
56390
- });
56391
- });
56392
-
56393
56470
  // src/models/components/tokentype.ts
56394
56471
  var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
56395
56472
  var init_tokentype = __esm(() => {
@@ -61124,57 +61201,6 @@ var init_createapplepaysession = __esm(() => {
61124
61201
  });
61125
61202
  });
61126
61203
 
61127
- // src/models/components/createauthorizeduser.ts
61128
- var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
61129
- var init_createauthorizeduser = __esm(() => {
61130
- init_esm();
61131
- init_birthdate();
61132
- CreateAuthorizedUser$inboundSchema = objectType({
61133
- firstName: stringType(),
61134
- lastName: stringType(),
61135
- birthDate: BirthDate$inboundSchema.optional()
61136
- });
61137
- CreateAuthorizedUser$outboundSchema = objectType({
61138
- firstName: stringType(),
61139
- lastName: stringType(),
61140
- birthDate: BirthDate$outboundSchema.optional()
61141
- });
61142
- });
61143
-
61144
- // src/models/components/createauthorizedusererror.ts
61145
- var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
61146
- var init_createauthorizedusererror = __esm(() => {
61147
- init_esm();
61148
- init_birthdateerror();
61149
- CreateAuthorizedUserError$inboundSchema = objectType({
61150
- firstName: stringType().optional(),
61151
- lastName: stringType().optional(),
61152
- birthDate: BirthDateError$inboundSchema.optional()
61153
- });
61154
- CreateAuthorizedUserError$outboundSchema = objectType({
61155
- firstName: stringType().optional(),
61156
- lastName: stringType().optional(),
61157
- birthDate: BirthDateError$outboundSchema.optional()
61158
- });
61159
- });
61160
-
61161
- // src/models/components/createauthorizeduserupdate.ts
61162
- var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
61163
- var init_createauthorizeduserupdate = __esm(() => {
61164
- init_esm();
61165
- init_birthdateupdate();
61166
- CreateAuthorizedUserUpdate$inboundSchema = objectType({
61167
- firstName: stringType().optional(),
61168
- lastName: stringType().optional(),
61169
- birthDate: BirthDateUpdate$inboundSchema.optional()
61170
- });
61171
- CreateAuthorizedUserUpdate$outboundSchema = objectType({
61172
- firstName: stringType().optional(),
61173
- lastName: stringType().optional(),
61174
- birthDate: BirthDateUpdate$outboundSchema.optional()
61175
- });
61176
- });
61177
-
61178
61204
  // src/models/components/phonenumbererror.ts
61179
61205
  var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
61180
61206
  var init_phonenumbererror = __esm(() => {
@@ -62912,7 +62938,8 @@ var init_webhookeventtype = __esm(() => {
62912
62938
  WalletCreated: "wallet.created",
62913
62939
  WalletUpdated: "wallet.updated",
62914
62940
  WalletTransactionUpdated: "walletTransaction.updated",
62915
- BillingStatementCreated: "billingStatement.created"
62941
+ BillingStatementCreated: "billingStatement.created",
62942
+ AuthorizationExpiring: "authorization.expiring"
62916
62943
  };
62917
62944
  WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
62918
62945
  WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
@@ -63631,8 +63658,6 @@ var init_issuedcardstate = __esm(() => {
63631
63658
  init_esm();
63632
63659
  IssuedCardState = {
63633
63660
  Active: "active",
63634
- Inactive: "inactive",
63635
- PendingVerification: "pending-verification",
63636
63661
  Closed: "closed"
63637
63662
  };
63638
63663
  IssuedCardState$inboundSchema = nativeEnumType(IssuedCardState);
@@ -63684,7 +63709,7 @@ var init_issuingcontrols = __esm(() => {
63684
63709
  var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
63685
63710
  var init_fullissuedcard = __esm(() => {
63686
63711
  init_esm();
63687
- init_authorizeduser();
63712
+ init_address();
63688
63713
  init_cardbrand();
63689
63714
  init_cardexpiration();
63690
63715
  init_issuedcardformfactor();
@@ -63695,13 +63720,16 @@ var init_fullissuedcard = __esm(() => {
63695
63720
  brand: CardBrand$inboundSchema,
63696
63721
  lastFourCardNumber: stringType(),
63697
63722
  expiration: CardExpiration$inboundSchema,
63698
- authorizedUser: AuthorizedUser$inboundSchema,
63699
- memo: stringType().optional(),
63700
63723
  fundingWalletID: stringType(),
63724
+ authorizedUserAccountID: stringType().optional(),
63725
+ nickname: stringType().optional(),
63726
+ metadata: recordType(stringType()).optional(),
63727
+ billingAddress: Address$inboundSchema.optional(),
63701
63728
  state: IssuedCardState$inboundSchema,
63702
63729
  formFactor: IssuedCardFormFactor$inboundSchema,
63703
63730
  controls: IssuingControls$inboundSchema.optional(),
63704
63731
  createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63732
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63705
63733
  pan: stringType(),
63706
63734
  cvv: stringType()
63707
63735
  });
@@ -63710,13 +63738,16 @@ var init_fullissuedcard = __esm(() => {
63710
63738
  brand: CardBrand$outboundSchema,
63711
63739
  lastFourCardNumber: stringType(),
63712
63740
  expiration: CardExpiration$outboundSchema,
63713
- authorizedUser: AuthorizedUser$outboundSchema,
63714
- memo: stringType().optional(),
63715
63741
  fundingWalletID: stringType(),
63742
+ authorizedUserAccountID: stringType().optional(),
63743
+ nickname: stringType().optional(),
63744
+ metadata: recordType(stringType()).optional(),
63745
+ billingAddress: Address$outboundSchema.optional(),
63716
63746
  state: IssuedCardState$outboundSchema,
63717
63747
  formFactor: IssuedCardFormFactor$outboundSchema,
63718
63748
  controls: IssuingControls$outboundSchema.optional(),
63719
63749
  createdOn: dateType().transform((v2) => v2.toISOString()),
63750
+ updatedOn: dateType().transform((v2) => v2.toISOString()),
63720
63751
  pan: stringType(),
63721
63752
  cvv: stringType()
63722
63753
  });
@@ -64055,7 +64086,7 @@ var init_invoicestatus = __esm(() => {
64055
64086
  var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
64056
64087
  var init_issuedcard = __esm(() => {
64057
64088
  init_esm();
64058
- init_authorizeduser();
64089
+ init_address();
64059
64090
  init_cardbrand();
64060
64091
  init_cardexpiration();
64061
64092
  init_issuedcardformfactor();
@@ -64066,26 +64097,32 @@ var init_issuedcard = __esm(() => {
64066
64097
  brand: CardBrand$inboundSchema,
64067
64098
  lastFourCardNumber: stringType(),
64068
64099
  expiration: CardExpiration$inboundSchema,
64069
- authorizedUser: AuthorizedUser$inboundSchema,
64070
- memo: stringType().optional(),
64071
64100
  fundingWalletID: stringType(),
64101
+ authorizedUserAccountID: stringType().optional(),
64102
+ nickname: stringType().optional(),
64103
+ metadata: recordType(stringType()).optional(),
64104
+ billingAddress: Address$inboundSchema.optional(),
64072
64105
  state: IssuedCardState$inboundSchema,
64073
64106
  formFactor: IssuedCardFormFactor$inboundSchema,
64074
64107
  controls: IssuingControls$inboundSchema.optional(),
64075
- createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
64108
+ createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
64109
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
64076
64110
  });
64077
64111
  IssuedCard$outboundSchema = objectType({
64078
64112
  issuedCardID: stringType(),
64079
64113
  brand: CardBrand$outboundSchema,
64080
64114
  lastFourCardNumber: stringType(),
64081
64115
  expiration: CardExpiration$outboundSchema,
64082
- authorizedUser: AuthorizedUser$outboundSchema,
64083
- memo: stringType().optional(),
64084
64116
  fundingWalletID: stringType(),
64117
+ authorizedUserAccountID: stringType().optional(),
64118
+ nickname: stringType().optional(),
64119
+ metadata: recordType(stringType()).optional(),
64120
+ billingAddress: Address$outboundSchema.optional(),
64085
64121
  state: IssuedCardState$outboundSchema,
64086
64122
  formFactor: IssuedCardFormFactor$outboundSchema,
64087
64123
  controls: IssuingControls$outboundSchema.optional(),
64088
- createdOn: dateType().transform((v2) => v2.toISOString())
64124
+ createdOn: dateType().transform((v2) => v2.toISOString()),
64125
+ updatedOn: dateType().transform((v2) => v2.toISOString())
64089
64126
  });
64090
64127
  });
64091
64128
 
@@ -66141,23 +66178,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
66141
66178
  var RequestCard$inboundSchema, RequestCard$outboundSchema;
66142
66179
  var init_requestcard = __esm(() => {
66143
66180
  init_esm();
66181
+ init_address();
66144
66182
  init_cardexpiration();
66145
- init_createauthorizeduser();
66146
- init_issuedcardformfactor();
66147
66183
  init_issuingcontrols();
66148
66184
  RequestCard$inboundSchema = objectType({
66149
- fundingWalletID: stringType(),
66150
- authorizedUser: CreateAuthorizedUser$inboundSchema,
66151
- formFactor: IssuedCardFormFactor$inboundSchema,
66152
- memo: stringType().optional(),
66185
+ authorizedUserAccountID: stringType().optional(),
66186
+ nickname: stringType().optional(),
66187
+ metadata: recordType(stringType()).optional(),
66188
+ billingAddress: Address$inboundSchema.optional(),
66153
66189
  expiration: CardExpiration$inboundSchema.optional(),
66154
66190
  controls: IssuingControls$inboundSchema.optional()
66155
66191
  });
66156
66192
  RequestCard$outboundSchema = objectType({
66157
- fundingWalletID: stringType(),
66158
- authorizedUser: CreateAuthorizedUser$outboundSchema,
66159
- formFactor: IssuedCardFormFactor$outboundSchema,
66160
- memo: stringType().optional(),
66193
+ authorizedUserAccountID: stringType().optional(),
66194
+ nickname: stringType().optional(),
66195
+ metadata: recordType(stringType()).optional(),
66196
+ billingAddress: Address$outboundSchema.optional(),
66161
66197
  expiration: CardExpiration$outboundSchema.optional(),
66162
66198
  controls: IssuingControls$outboundSchema.optional()
66163
66199
  });
@@ -67280,20 +67316,37 @@ var init_updateissuedcardstate = __esm(() => {
67280
67316
  });
67281
67317
 
67282
67318
  // src/models/components/updateissuedcard.ts
67283
- var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
67319
+ var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
67284
67320
  var init_updateissuedcard = __esm(() => {
67285
67321
  init_esm();
67286
- init_createauthorizeduserupdate();
67287
67322
  init_updateissuedcardstate();
67323
+ BillingAddress$inboundSchema = objectType({
67324
+ addressLine1: stringType().optional(),
67325
+ addressLine2: stringType().optional(),
67326
+ city: stringType().optional(),
67327
+ stateOrProvince: stringType().optional(),
67328
+ postalCode: stringType().optional(),
67329
+ country: stringType().optional()
67330
+ });
67331
+ BillingAddress$outboundSchema = objectType({
67332
+ addressLine1: stringType().optional(),
67333
+ addressLine2: stringType().optional(),
67334
+ city: stringType().optional(),
67335
+ stateOrProvince: stringType().optional(),
67336
+ postalCode: stringType().optional(),
67337
+ country: stringType().optional()
67338
+ });
67288
67339
  UpdateIssuedCard$inboundSchema = objectType({
67289
67340
  state: UpdateIssuedCardState$inboundSchema.optional(),
67290
- memo: stringType().optional(),
67291
- authorizedUser: CreateAuthorizedUserUpdate$inboundSchema.optional()
67341
+ nickname: nullableType(stringType()).optional(),
67342
+ metadata: nullableType(recordType(stringType())).optional(),
67343
+ billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
67292
67344
  });
67293
67345
  UpdateIssuedCard$outboundSchema = objectType({
67294
67346
  state: UpdateIssuedCardState$outboundSchema.optional(),
67295
- memo: stringType().optional(),
67296
- authorizedUser: CreateAuthorizedUserUpdate$outboundSchema.optional()
67347
+ nickname: nullableType(stringType()).optional(),
67348
+ metadata: nullableType(recordType(stringType())).optional(),
67349
+ billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
67297
67350
  });
67298
67351
  });
67299
67352
 
@@ -67765,6 +67818,24 @@ var init_webhookdataaccountupdated = __esm(() => {
67765
67818
  });
67766
67819
  });
67767
67820
 
67821
+ // src/models/components/webhookdataauthorizationexpiring.ts
67822
+ var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
67823
+ var init_webhookdataauthorizationexpiring = __esm(() => {
67824
+ init_esm();
67825
+ WebhookDataAuthorizationExpiring$inboundSchema = objectType({
67826
+ merchantAccountID: stringType(),
67827
+ partnerAccountID: stringType(),
67828
+ authorizationID: stringType(),
67829
+ expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
67830
+ });
67831
+ WebhookDataAuthorizationExpiring$outboundSchema = objectType({
67832
+ merchantAccountID: stringType(),
67833
+ partnerAccountID: stringType(),
67834
+ authorizationID: stringType(),
67835
+ expiresOn: dateType().transform((v2) => v2.toISOString())
67836
+ });
67837
+ });
67838
+
67768
67839
  // src/models/components/webhookdatabalanceupdated.ts
67769
67840
  var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
67770
67841
  var init_webhookdatabalanceupdated = __esm(() => {
@@ -68139,10 +68210,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
68139
68210
  var init_webhookdatasweepcreated = __esm(() => {
68140
68211
  init_esm();
68141
68212
  WebhookDataSweepCreated$inboundSchema = objectType({
68213
+ accountID: stringType(),
68142
68214
  walletID: stringType(),
68143
68215
  sweepID: stringType()
68144
68216
  });
68145
68217
  WebhookDataSweepCreated$outboundSchema = objectType({
68218
+ accountID: stringType(),
68146
68219
  walletID: stringType(),
68147
68220
  sweepID: stringType()
68148
68221
  });
@@ -68154,12 +68227,14 @@ var init_webhookdatasweepupdated = __esm(() => {
68154
68227
  init_esm();
68155
68228
  init_sweepstatus();
68156
68229
  WebhookDataSweepUpdated$inboundSchema = objectType({
68230
+ accountID: stringType(),
68157
68231
  walletID: stringType(),
68158
68232
  sweepID: stringType(),
68159
68233
  transferID: stringType().optional(),
68160
68234
  status: SweepStatus$inboundSchema
68161
68235
  });
68162
68236
  WebhookDataSweepUpdated$outboundSchema = objectType({
68237
+ accountID: stringType(),
68163
68238
  walletID: stringType(),
68164
68239
  sweepID: stringType(),
68165
68240
  transferID: stringType().optional(),
@@ -68400,6 +68475,7 @@ var init_webhookdata = __esm(() => {
68400
68475
  init_webhookdataaccountcreated();
68401
68476
  init_webhookdataaccountdisconnected();
68402
68477
  init_webhookdataaccountupdated();
68478
+ init_webhookdataauthorizationexpiring();
68403
68479
  init_webhookdatabalanceupdated();
68404
68480
  init_webhookdatabankaccountcreated();
68405
68481
  init_webhookdatabankaccountdeleted();
@@ -68439,7 +68515,9 @@ var init_webhookdata = __esm(() => {
68439
68515
  WebhookDataTransferUpdated$inboundSchema,
68440
68516
  WebhookDataBankAccountUpdated$inboundSchema,
68441
68517
  WebhookDataRefundUpdated$inboundSchema,
68518
+ WebhookDataSweepUpdated$inboundSchema,
68442
68519
  WebhookDataWalletTransactionUpdated$inboundSchema,
68520
+ WebhookDataAuthorizationExpiring$inboundSchema,
68443
68521
  WebhookDataBankAccountCreated$inboundSchema,
68444
68522
  WebhookDataBankAccountDeleted$inboundSchema,
68445
68523
  WebhookDataCancellationCreated$inboundSchema,
@@ -68450,7 +68528,7 @@ var init_webhookdata = __esm(() => {
68450
68528
  WebhookDataPaymentMethodEnabled$inboundSchema,
68451
68529
  WebhookDataPaymentMethodDisabled$inboundSchema,
68452
68530
  WebhookDataRefundCreated$inboundSchema,
68453
- WebhookDataSweepUpdated$inboundSchema,
68531
+ WebhookDataSweepCreated$inboundSchema,
68454
68532
  WebhookDataTicketUpdated$inboundSchema,
68455
68533
  WebhookDataTransferCreated$inboundSchema,
68456
68534
  WebhookDataWalletUpdated$inboundSchema,
@@ -68460,7 +68538,6 @@ var init_webhookdata = __esm(() => {
68460
68538
  WebhookDataRepresentativeCreated$inboundSchema,
68461
68539
  WebhookDataRepresentativeUpdated$inboundSchema,
68462
68540
  WebhookDataRepresentativeDisabled$inboundSchema,
68463
- WebhookDataSweepCreated$inboundSchema,
68464
68541
  WebhookDataTerminalApplicationCreated$inboundSchema,
68465
68542
  WebhookDataTerminalApplicationUpdated$inboundSchema,
68466
68543
  WebhookDataTicketCreated$inboundSchema,
@@ -68478,7 +68555,9 @@ var init_webhookdata = __esm(() => {
68478
68555
  WebhookDataTransferUpdated$outboundSchema,
68479
68556
  WebhookDataBankAccountUpdated$outboundSchema,
68480
68557
  WebhookDataRefundUpdated$outboundSchema,
68558
+ WebhookDataSweepUpdated$outboundSchema,
68481
68559
  WebhookDataWalletTransactionUpdated$outboundSchema,
68560
+ WebhookDataAuthorizationExpiring$outboundSchema,
68482
68561
  WebhookDataBankAccountCreated$outboundSchema,
68483
68562
  WebhookDataBankAccountDeleted$outboundSchema,
68484
68563
  WebhookDataCancellationCreated$outboundSchema,
@@ -68489,7 +68568,7 @@ var init_webhookdata = __esm(() => {
68489
68568
  WebhookDataPaymentMethodEnabled$outboundSchema,
68490
68569
  WebhookDataPaymentMethodDisabled$outboundSchema,
68491
68570
  WebhookDataRefundCreated$outboundSchema,
68492
- WebhookDataSweepUpdated$outboundSchema,
68571
+ WebhookDataSweepCreated$outboundSchema,
68493
68572
  WebhookDataTicketUpdated$outboundSchema,
68494
68573
  WebhookDataTransferCreated$outboundSchema,
68495
68574
  WebhookDataWalletUpdated$outboundSchema,
@@ -68499,7 +68578,6 @@ var init_webhookdata = __esm(() => {
68499
68578
  WebhookDataRepresentativeCreated$outboundSchema,
68500
68579
  WebhookDataRepresentativeUpdated$outboundSchema,
68501
68580
  WebhookDataRepresentativeDisabled$outboundSchema,
68502
- WebhookDataSweepCreated$outboundSchema,
68503
68581
  WebhookDataTerminalApplicationCreated$outboundSchema,
68504
68582
  WebhookDataTerminalApplicationUpdated$outboundSchema,
68505
68583
  WebhookDataTicketCreated$outboundSchema,
@@ -68596,7 +68674,6 @@ var init_components = __esm(() => {
68596
68674
  init_assignproductimagevalidationerror();
68597
68675
  init_asynccreatedrefund();
68598
68676
  init_asynctransfer();
68599
- init_authorizeduser();
68600
68677
  init_authtoken();
68601
68678
  init_authtokenrequest();
68602
68679
  init_bankaccount();
@@ -68684,9 +68761,6 @@ var init_components = __esm(() => {
68684
68761
  init_createaccountsettings();
68685
68762
  init_createaccounttype();
68686
68763
  init_createapplepaysession();
68687
- init_createauthorizeduser();
68688
- init_createauthorizedusererror();
68689
- init_createauthorizeduserupdate();
68690
68764
  init_createbusinesserror();
68691
68765
  init_createbusinessprofile();
68692
68766
  init_createdtransfer();
@@ -69062,6 +69136,7 @@ var init_components = __esm(() => {
69062
69136
  init_webhookdataaccountcreated();
69063
69137
  init_webhookdataaccountdisconnected();
69064
69138
  init_webhookdataaccountupdated();
69139
+ init_webhookdataauthorizationexpiring();
69065
69140
  init_webhookdatabalanceupdated();
69066
69141
  init_webhookdatabankaccountcreated();
69067
69142
  init_webhookdatabankaccountdeleted();
@@ -70697,10 +70772,10 @@ var init_requestcarderror = __esm(() => {
70697
70772
  init_components();
70698
70773
  init_mooverror();
70699
70774
  RequestCardError = class RequestCardError extends MoovError {
70700
- fundingWalletID;
70701
- formFactor;
70702
- authorizedUser;
70703
- memo;
70775
+ authorizedUserAccountID;
70776
+ nickname;
70777
+ metadata;
70778
+ billingAddress;
70704
70779
  expiration;
70705
70780
  controls;
70706
70781
  data$;
@@ -70708,14 +70783,15 @@ var init_requestcarderror = __esm(() => {
70708
70783
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
70709
70784
  super(message, httpMeta);
70710
70785
  this.data$ = err;
70711
- if (err.fundingWalletID != null)
70712
- this.fundingWalletID = err.fundingWalletID;
70713
- if (err.formFactor != null)
70714
- this.formFactor = err.formFactor;
70715
- if (err.authorizedUser != null)
70716
- this.authorizedUser = err.authorizedUser;
70717
- if (err.memo != null)
70718
- this.memo = err.memo;
70786
+ if (err.authorizedUserAccountID != null) {
70787
+ this.authorizedUserAccountID = err.authorizedUserAccountID;
70788
+ }
70789
+ if (err.nickname != null)
70790
+ this.nickname = err.nickname;
70791
+ if (err.metadata != null)
70792
+ this.metadata = err.metadata;
70793
+ if (err.billingAddress != null)
70794
+ this.billingAddress = err.billingAddress;
70719
70795
  if (err.expiration != null)
70720
70796
  this.expiration = err.expiration;
70721
70797
  if (err.controls != null)
@@ -70724,10 +70800,10 @@ var init_requestcarderror = __esm(() => {
70724
70800
  }
70725
70801
  };
70726
70802
  RequestCardError$inboundSchema = objectType({
70727
- fundingWalletID: stringType().optional(),
70728
- formFactor: stringType().optional(),
70729
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
70730
- memo: stringType().optional(),
70803
+ authorizedUserAccountID: stringType().optional(),
70804
+ nickname: stringType().optional(),
70805
+ metadata: stringType().optional(),
70806
+ billingAddress: AddressError$inboundSchema.optional(),
70731
70807
  expiration: CardExpirationError$inboundSchema.optional(),
70732
70808
  controls: IssuingControlsError$inboundSchema.optional(),
70733
70809
  request$: instanceOfType(Request),
@@ -70741,10 +70817,10 @@ var init_requestcarderror = __esm(() => {
70741
70817
  });
70742
70818
  });
70743
70819
  RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
70744
- fundingWalletID: stringType().optional(),
70745
- formFactor: stringType().optional(),
70746
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional(),
70747
- memo: stringType().optional(),
70820
+ authorizedUserAccountID: stringType().optional(),
70821
+ nickname: stringType().optional(),
70822
+ metadata: stringType().optional(),
70823
+ billingAddress: AddressError$outboundSchema.optional(),
70748
70824
  expiration: CardExpirationError$outboundSchema.optional(),
70749
70825
  controls: IssuingControlsError$outboundSchema.optional()
70750
70826
  }));
@@ -71315,8 +71391,9 @@ var init_updateissuedcarderror = __esm(() => {
71315
71391
  init_mooverror();
71316
71392
  UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
71317
71393
  state;
71318
- memo;
71319
- authorizedUser;
71394
+ nickname;
71395
+ metadata;
71396
+ billingAddress;
71320
71397
  data$;
71321
71398
  constructor(err, httpMeta) {
71322
71399
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -71324,17 +71401,20 @@ var init_updateissuedcarderror = __esm(() => {
71324
71401
  this.data$ = err;
71325
71402
  if (err.state != null)
71326
71403
  this.state = err.state;
71327
- if (err.memo != null)
71328
- this.memo = err.memo;
71329
- if (err.authorizedUser != null)
71330
- this.authorizedUser = err.authorizedUser;
71404
+ if (err.nickname != null)
71405
+ this.nickname = err.nickname;
71406
+ if (err.metadata != null)
71407
+ this.metadata = err.metadata;
71408
+ if (err.billingAddress != null)
71409
+ this.billingAddress = err.billingAddress;
71331
71410
  this.name = "UpdateIssuedCardError";
71332
71411
  }
71333
71412
  };
71334
71413
  UpdateIssuedCardError$inboundSchema = objectType({
71335
71414
  state: stringType().optional(),
71336
- memo: stringType().optional(),
71337
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
71415
+ nickname: stringType().optional(),
71416
+ metadata: stringType().optional(),
71417
+ billingAddress: AddressError$inboundSchema.optional(),
71338
71418
  request$: instanceOfType(Request),
71339
71419
  response$: instanceOfType(Response),
71340
71420
  body$: stringType()
@@ -71347,8 +71427,9 @@ var init_updateissuedcarderror = __esm(() => {
71347
71427
  });
71348
71428
  UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
71349
71429
  state: stringType().optional(),
71350
- memo: stringType().optional(),
71351
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional()
71430
+ nickname: stringType().optional(),
71431
+ metadata: stringType().optional(),
71432
+ billingAddress: AddressError$outboundSchema.optional()
71352
71433
  }));
71353
71434
  });
71354
71435
 
@@ -75317,6 +75398,40 @@ var init_listbankaccounts = __esm(() => {
75317
75398
  });
75318
75399
  });
75319
75400
 
75401
+ // src/models/operations/listcancellations.ts
75402
+ var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
75403
+ var init_listcancellations = __esm(() => {
75404
+ init_esm();
75405
+ init_primitives();
75406
+ init_components();
75407
+ ListCancellationsRequest$inboundSchema = objectType({
75408
+ accountID: stringType(),
75409
+ transferID: stringType()
75410
+ });
75411
+ ListCancellationsRequest$outboundSchema = objectType({
75412
+ accountID: stringType(),
75413
+ transferID: stringType()
75414
+ });
75415
+ ListCancellationsResponse$inboundSchema = objectType({
75416
+ Headers: recordType(arrayType(stringType())).default({}),
75417
+ Result: arrayType(Cancellation$inboundSchema)
75418
+ }).transform((v2) => {
75419
+ return remap(v2, {
75420
+ Headers: "headers",
75421
+ Result: "result"
75422
+ });
75423
+ });
75424
+ ListCancellationsResponse$outboundSchema = objectType({
75425
+ headers: recordType(arrayType(stringType())),
75426
+ result: arrayType(Cancellation$outboundSchema)
75427
+ }).transform((v2) => {
75428
+ return remap(v2, {
75429
+ headers: "Headers",
75430
+ result: "Result"
75431
+ });
75432
+ });
75433
+ });
75434
+
75320
75435
  // src/models/operations/listcapabilities.ts
75321
75436
  var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
75322
75437
  var init_listcapabilities = __esm(() => {
@@ -78265,6 +78380,7 @@ var init_operations = __esm(() => {
78265
78380
  init_listaccountterminalapplications();
78266
78381
  init_listadjustments();
78267
78382
  init_listbankaccounts();
78383
+ init_listcancellations();
78268
78384
  init_listcapabilities();
78269
78385
  init_listcards();
78270
78386
  init_listconnectedaccountsforaccount();
@@ -78349,16 +78465,19 @@ var init_async = __esm(() => {
78349
78465
  [Symbol.toStringTag] = "APIPromise";
78350
78466
  constructor(p) {
78351
78467
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
78352
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
78468
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
78469
+ }
78470
+ #getUnwrapped() {
78471
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
78353
78472
  }
78354
78473
  then(onfulfilled, onrejected) {
78355
78474
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
78356
78475
  }
78357
78476
  catch(onrejected) {
78358
- return this.#unwrapped.catch(onrejected);
78477
+ return this.#getUnwrapped().catch(onrejected);
78359
78478
  }
78360
78479
  finally(onfinally) {
78361
- return this.#unwrapped.finally(onfinally);
78480
+ return this.#getUnwrapped().finally(onfinally);
78362
78481
  }
78363
78482
  $inspect() {
78364
78483
  return this.#promise;
@@ -78681,21 +78800,19 @@ var init_accountsCreate2 = __esm(() => {
78681
78800
  };
78682
78801
  tool$accountsCreate = {
78683
78802
  name: "accounts-create",
78684
- description: `You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
78685
- information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
78803
+ description: `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/).
78804
+
78805
+ 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:
78806
+ + 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.
78807
+ + 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.
78686
78808
 
78687
- If you're requesting the \`wallet\`, \`send-funds\`, \`collect-funds\`, or \`card-issuing\` capabilities, you'll need to:
78688
- + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
78689
- 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.
78690
- If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
78809
+ If you're creating a business account, depending on the business type, you'll also need to:
78691
78810
  + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
78692
78811
  + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
78693
78812
 
78694
- 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/).
78695
- 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.
78813
+ 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.
78696
78814
 
78697
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
78698
- to specify the \`/accounts.write\` scope.`,
78815
+ 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.`,
78699
78816
  args: args3,
78700
78817
  tool: async (client, args4, ctx) => {
78701
78818
  const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -82167,7 +82284,7 @@ var init_bankAccountsLink2 = __esm(() => {
82167
82284
  description: `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.
82168
82285
 
82169
82286
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
82170
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
82287
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
82171
82288
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
82172
82289
  endpoint to wait for the new payment methods to be available for use.
82173
82290
 
@@ -82734,7 +82851,7 @@ var init_capabilitiesDisable2 = __esm(() => {
82734
82851
  };
82735
82852
  tool$capabilitiesDisable = {
82736
82853
  name: "capabilities-disable",
82737
- description: `Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
82854
+ description: `Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
82738
82855
 
82739
82856
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
82740
82857
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -82848,7 +82965,7 @@ var init_capabilitiesGet2 = __esm(() => {
82848
82965
  };
82849
82966
  tool$capabilitiesGet = {
82850
82967
  name: "capabilities-get",
82851
- description: `Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
82968
+ description: `Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
82852
82969
 
82853
82970
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
82854
82971
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -82961,7 +83078,7 @@ var init_capabilitiesList2 = __esm(() => {
82961
83078
  name: "capabilities-list",
82962
83079
  description: `Retrieve all the capabilities an account has requested.
82963
83080
 
82964
- Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
83081
+ Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
82965
83082
 
82966
83083
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
82967
83084
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -83074,7 +83191,7 @@ var init_capabilitiesRequest2 = __esm(() => {
83074
83191
  };
83075
83192
  tool$capabilitiesRequest = {
83076
83193
  name: "capabilities-request",
83077
- description: `Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
83194
+ description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
83078
83195
 
83079
83196
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
83080
83197
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -83114,7 +83231,7 @@ async function $do42(client, request, options) {
83114
83231
  charEncoding: "percent"
83115
83232
  })
83116
83233
  };
83117
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
83234
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
83118
83235
  const headers = new Headers(compactMap({
83119
83236
  Accept: "application/json"
83120
83237
  }));
@@ -83229,7 +83346,7 @@ async function $do43(client, request, options) {
83229
83346
  charEncoding: "percent"
83230
83347
  })
83231
83348
  };
83232
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}/details")(pathParams);
83349
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
83233
83350
  const headers = new Headers(compactMap({
83234
83351
  Accept: "application/json"
83235
83352
  }));
@@ -83342,7 +83459,7 @@ async function $do44(client, request, options) {
83342
83459
  charEncoding: "percent"
83343
83460
  })
83344
83461
  };
83345
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
83462
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
83346
83463
  const query = encodeFormQuery({
83347
83464
  count: payload.count,
83348
83465
  skip: payload.skip,
@@ -83459,7 +83576,7 @@ async function $do45(client, request, options) {
83459
83576
  charEncoding: "percent"
83460
83577
  })
83461
83578
  };
83462
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
83579
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
83463
83580
  const headers = new Headers(compactMap({
83464
83581
  "Content-Type": "application/json",
83465
83582
  Accept: "application/json"
@@ -83576,7 +83693,7 @@ async function $do46(client, request, options) {
83576
83693
  charEncoding: "percent"
83577
83694
  })
83578
83695
  };
83579
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
83696
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
83580
83697
  const headers = new Headers(compactMap({
83581
83698
  "Content-Type": "application/json",
83582
83699
  Accept: "application/json"
@@ -96193,11 +96310,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96193
96310
  };
96194
96311
  });
96195
96312
 
96196
- // src/funcs/transfersListRefunds.ts
96197
- function transfersListRefunds(client, request, options) {
96313
+ // src/funcs/transfersListCancellations.ts
96314
+ function transfersListCancellations(client, request, options) {
96198
96315
  return new APIPromise($do154(client, request, options));
96199
96316
  }
96200
96317
  async function $do154(client, request, options) {
96318
+ const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
96319
+ if (!parsed.ok) {
96320
+ return [parsed, { status: "invalid" }];
96321
+ }
96322
+ const payload = parsed.value;
96323
+ const body = null;
96324
+ const pathParams = {
96325
+ accountID: encodeSimple("accountID", payload.accountID, {
96326
+ explode: false,
96327
+ charEncoding: "percent"
96328
+ }),
96329
+ transferID: encodeSimple("transferID", payload.transferID, {
96330
+ explode: false,
96331
+ charEncoding: "percent"
96332
+ })
96333
+ };
96334
+ const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
96335
+ const headers = new Headers(compactMap({
96336
+ Accept: "application/json"
96337
+ }));
96338
+ const securityInput = await extractSecurity(client._options.security);
96339
+ const requestSecurity = resolveGlobalSecurity(securityInput);
96340
+ const context = {
96341
+ options: client._options,
96342
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
96343
+ operationID: "listCancellations",
96344
+ oAuth2Scopes: null,
96345
+ resolvedSecurity: requestSecurity,
96346
+ securitySource: client._options.security,
96347
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
96348
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
96349
+ };
96350
+ const requestRes = client._createRequest(context, {
96351
+ security: requestSecurity,
96352
+ method: "GET",
96353
+ baseURL: options?.serverURL,
96354
+ path,
96355
+ headers,
96356
+ body,
96357
+ userAgent: client._options.userAgent,
96358
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
96359
+ }, options);
96360
+ if (!requestRes.ok) {
96361
+ return [requestRes, { status: "invalid" }];
96362
+ }
96363
+ const req = requestRes.value;
96364
+ const doResult = await client._do(req, {
96365
+ context,
96366
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
96367
+ retryConfig: context.retryConfig,
96368
+ retryCodes: context.retryCodes
96369
+ });
96370
+ if (!doResult.ok) {
96371
+ return [doResult, { status: "request-error", request: req }];
96372
+ }
96373
+ const response = doResult.value;
96374
+ const responseFields = {
96375
+ HttpMeta: { Response: response, Request: req }
96376
+ };
96377
+ const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
96378
+ hdrs: true,
96379
+ key: "Result"
96380
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
96381
+ if (!result.ok) {
96382
+ return [result, { status: "complete", request: req, response }];
96383
+ }
96384
+ return [result, { status: "complete", request: req, response }];
96385
+ }
96386
+ var init_transfersListCancellations = __esm(() => {
96387
+ init_encodings();
96388
+ init_http();
96389
+ init_matchers();
96390
+ init_primitives();
96391
+ init_schemas4();
96392
+ init_security();
96393
+ init_url();
96394
+ init_operations();
96395
+ init_async();
96396
+ });
96397
+
96398
+ // src/mcp-server/tools/transfersListCancellations.ts
96399
+ var args149, tool$transfersListCancellations;
96400
+ var init_transfersListCancellations2 = __esm(() => {
96401
+ init_transfersListCancellations();
96402
+ init_operations();
96403
+ init_tools();
96404
+ args149 = {
96405
+ request: ListCancellationsRequest$inboundSchema
96406
+ };
96407
+ tool$transfersListCancellations = {
96408
+ name: "transfers-list-cancellations",
96409
+ description: ` Get a list of cancellations for a transfer.
96410
+
96411
+ To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
96412
+ to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96413
+ args: args149,
96414
+ tool: async (client, args150, ctx) => {
96415
+ const [result, apiCall] = await transfersListCancellations(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96416
+ if (!result.ok) {
96417
+ return {
96418
+ content: [{ type: "text", text: result.error.message }],
96419
+ isError: true
96420
+ };
96421
+ }
96422
+ const value = result.value.result;
96423
+ return formatResult(value, apiCall);
96424
+ }
96425
+ };
96426
+ });
96427
+
96428
+ // src/funcs/transfersListRefunds.ts
96429
+ function transfersListRefunds(client, request, options) {
96430
+ return new APIPromise($do155(client, request, options));
96431
+ }
96432
+ async function $do155(client, request, options) {
96201
96433
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
96202
96434
  if (!parsed.ok) {
96203
96435
  return [parsed, { status: "invalid" }];
@@ -96279,12 +96511,12 @@ var init_transfersListRefunds = __esm(() => {
96279
96511
  });
96280
96512
 
96281
96513
  // src/mcp-server/tools/transfersListRefunds.ts
96282
- var args149, tool$transfersListRefunds;
96514
+ var args150, tool$transfersListRefunds;
96283
96515
  var init_transfersListRefunds2 = __esm(() => {
96284
96516
  init_transfersListRefunds();
96285
96517
  init_operations();
96286
96518
  init_tools();
96287
- args149 = {
96519
+ args150 = {
96288
96520
  request: ListRefundsRequest$inboundSchema
96289
96521
  };
96290
96522
  tool$transfersListRefunds = {
@@ -96293,9 +96525,9 @@ var init_transfersListRefunds2 = __esm(() => {
96293
96525
 
96294
96526
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96295
96527
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96296
- args: args149,
96297
- tool: async (client, args150, ctx) => {
96298
- const [result, apiCall] = await transfersListRefunds(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96528
+ args: args150,
96529
+ tool: async (client, args151, ctx) => {
96530
+ const [result, apiCall] = await transfersListRefunds(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96299
96531
  if (!result.ok) {
96300
96532
  return {
96301
96533
  content: [{ type: "text", text: result.error.message }],
@@ -96310,9 +96542,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96310
96542
 
96311
96543
  // src/funcs/transfersUpdate.ts
96312
96544
  function transfersUpdate(client, request, options) {
96313
- return new APIPromise($do155(client, request, options));
96545
+ return new APIPromise($do156(client, request, options));
96314
96546
  }
96315
- async function $do155(client, request, options) {
96547
+ async function $do156(client, request, options) {
96316
96548
  const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
96317
96549
  if (!parsed.ok) {
96318
96550
  return [parsed, { status: "invalid" }];
@@ -96398,12 +96630,12 @@ var init_transfersUpdate = __esm(() => {
96398
96630
  });
96399
96631
 
96400
96632
  // src/mcp-server/tools/transfersUpdate.ts
96401
- var args150, tool$transfersUpdate;
96633
+ var args151, tool$transfersUpdate;
96402
96634
  var init_transfersUpdate2 = __esm(() => {
96403
96635
  init_transfersUpdate();
96404
96636
  init_operations();
96405
96637
  init_tools();
96406
- args150 = {
96638
+ args151 = {
96407
96639
  request: UpdateTransferRequest$inboundSchema
96408
96640
  };
96409
96641
  tool$transfersUpdate = {
@@ -96414,9 +96646,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
96414
96646
 
96415
96647
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96416
96648
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
96417
- args: args150,
96418
- tool: async (client, args151, ctx) => {
96419
- const [result, apiCall] = await transfersUpdate(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96649
+ args: args151,
96650
+ tool: async (client, args152, ctx) => {
96651
+ const [result, apiCall] = await transfersUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96420
96652
  if (!result.ok) {
96421
96653
  return {
96422
96654
  content: [{ type: "text", text: result.error.message }],
@@ -96431,9 +96663,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
96431
96663
 
96432
96664
  // src/funcs/underwritingGet.ts
96433
96665
  function underwritingGet(client, request, options) {
96434
- return new APIPromise($do156(client, request, options));
96666
+ return new APIPromise($do157(client, request, options));
96435
96667
  }
96436
- async function $do156(client, request, options) {
96668
+ async function $do157(client, request, options) {
96437
96669
  const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96438
96670
  if (!parsed.ok) {
96439
96671
  return [parsed, { status: "invalid" }];
@@ -96511,12 +96743,12 @@ var init_underwritingGet = __esm(() => {
96511
96743
  });
96512
96744
 
96513
96745
  // src/mcp-server/tools/underwritingGet.ts
96514
- var args151, tool$underwritingGet;
96746
+ var args152, tool$underwritingGet;
96515
96747
  var init_underwritingGet2 = __esm(() => {
96516
96748
  init_underwritingGet();
96517
96749
  init_operations();
96518
96750
  init_tools();
96519
- args151 = {
96751
+ args152 = {
96520
96752
  request: GetUnderwritingRequest$inboundSchema
96521
96753
  };
96522
96754
  tool$underwritingGet = {
@@ -96527,9 +96759,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96527
96759
 
96528
96760
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96529
96761
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
96530
- args: args151,
96531
- tool: async (client, args152, ctx) => {
96532
- const [result, apiCall] = await underwritingGet(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96762
+ args: args152,
96763
+ tool: async (client, args153, ctx) => {
96764
+ const [result, apiCall] = await underwritingGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96533
96765
  if (!result.ok) {
96534
96766
  return {
96535
96767
  content: [{ type: "text", text: result.error.message }],
@@ -96544,9 +96776,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
96544
96776
 
96545
96777
  // src/funcs/underwritingSave.ts
96546
96778
  function underwritingSave(client, request, options) {
96547
- return new APIPromise($do157(client, request, options));
96779
+ return new APIPromise($do158(client, request, options));
96548
96780
  }
96549
- async function $do157(client, request, options) {
96781
+ async function $do158(client, request, options) {
96550
96782
  const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96551
96783
  if (!parsed.ok) {
96552
96784
  return [parsed, { status: "invalid" }];
@@ -96630,12 +96862,12 @@ var init_underwritingSave = __esm(() => {
96630
96862
  });
96631
96863
 
96632
96864
  // src/mcp-server/tools/underwritingSave.ts
96633
- var args152, tool$underwritingSave;
96865
+ var args153, tool$underwritingSave;
96634
96866
  var init_underwritingSave2 = __esm(() => {
96635
96867
  init_underwritingSave();
96636
96868
  init_operations();
96637
96869
  init_tools();
96638
- args152 = {
96870
+ args153 = {
96639
96871
  request: SaveUnderwritingRequest$inboundSchema
96640
96872
  };
96641
96873
  tool$underwritingSave = {
@@ -96646,9 +96878,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96646
96878
 
96647
96879
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96648
96880
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96649
- args: args152,
96650
- tool: async (client, args153, ctx) => {
96651
- const [result, apiCall] = await underwritingSave(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96881
+ args: args153,
96882
+ tool: async (client, args154, ctx) => {
96883
+ const [result, apiCall] = await underwritingSave(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96652
96884
  if (!result.ok) {
96653
96885
  return {
96654
96886
  content: [{ type: "text", text: result.error.message }],
@@ -96663,9 +96895,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96663
96895
 
96664
96896
  // src/funcs/underwritingUpsert.ts
96665
96897
  function underwritingUpsert(client, request, options) {
96666
- return new APIPromise($do158(client, request, options));
96898
+ return new APIPromise($do159(client, request, options));
96667
96899
  }
96668
- async function $do158(client, request, options) {
96900
+ async function $do159(client, request, options) {
96669
96901
  const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96670
96902
  if (!parsed.ok) {
96671
96903
  return [parsed, { status: "invalid" }];
@@ -96749,12 +96981,12 @@ var init_underwritingUpsert = __esm(() => {
96749
96981
  });
96750
96982
 
96751
96983
  // src/mcp-server/tools/underwritingUpsert.ts
96752
- var args153, tool$underwritingUpsert;
96984
+ var args154, tool$underwritingUpsert;
96753
96985
  var init_underwritingUpsert2 = __esm(() => {
96754
96986
  init_underwritingUpsert();
96755
96987
  init_operations();
96756
96988
  init_tools();
96757
- args153 = {
96989
+ args154 = {
96758
96990
  request: UpsertUnderwritingRequest$inboundSchema
96759
96991
  };
96760
96992
  tool$underwritingUpsert = {
@@ -96765,9 +96997,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96765
96997
 
96766
96998
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96767
96999
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96768
- args: args153,
96769
- tool: async (client, args154, ctx) => {
96770
- const [result, apiCall] = await underwritingUpsert(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97000
+ args: args154,
97001
+ tool: async (client, args155, ctx) => {
97002
+ const [result, apiCall] = await underwritingUpsert(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96771
97003
  if (!result.ok) {
96772
97004
  return {
96773
97005
  content: [{ type: "text", text: result.error.message }],
@@ -96782,9 +97014,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96782
97014
 
96783
97015
  // src/funcs/walletsCreate.ts
96784
97016
  function walletsCreate(client, request, options) {
96785
- return new APIPromise($do159(client, request, options));
97017
+ return new APIPromise($do160(client, request, options));
96786
97018
  }
96787
- async function $do159(client, request, options) {
97019
+ async function $do160(client, request, options) {
96788
97020
  const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
96789
97021
  if (!parsed.ok) {
96790
97022
  return [parsed, { status: "invalid" }];
@@ -96866,12 +97098,12 @@ var init_walletsCreate = __esm(() => {
96866
97098
  });
96867
97099
 
96868
97100
  // src/mcp-server/tools/walletsCreate.ts
96869
- var args154, tool$walletsCreate;
97101
+ var args155, tool$walletsCreate;
96870
97102
  var init_walletsCreate2 = __esm(() => {
96871
97103
  init_walletsCreate();
96872
97104
  init_operations();
96873
97105
  init_tools();
96874
- args154 = {
97106
+ args155 = {
96875
97107
  request: CreateWalletRequest$inboundSchema
96876
97108
  };
96877
97109
  tool$walletsCreate = {
@@ -96882,9 +97114,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
96882
97114
 
96883
97115
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96884
97116
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
96885
- args: args154,
96886
- tool: async (client, args155, ctx) => {
96887
- const [result, apiCall] = await walletsCreate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97117
+ args: args155,
97118
+ tool: async (client, args156, ctx) => {
97119
+ const [result, apiCall] = await walletsCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96888
97120
  if (!result.ok) {
96889
97121
  return {
96890
97122
  content: [{ type: "text", text: result.error.message }],
@@ -96899,9 +97131,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
96899
97131
 
96900
97132
  // src/funcs/walletsGet.ts
96901
97133
  function walletsGet(client, request, options) {
96902
- return new APIPromise($do160(client, request, options));
97134
+ return new APIPromise($do161(client, request, options));
96903
97135
  }
96904
- async function $do160(client, request, options) {
97136
+ async function $do161(client, request, options) {
96905
97137
  const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
96906
97138
  if (!parsed.ok) {
96907
97139
  return [parsed, { status: "invalid" }];
@@ -96983,12 +97215,12 @@ var init_walletsGet = __esm(() => {
96983
97215
  });
96984
97216
 
96985
97217
  // src/mcp-server/tools/walletsGet.ts
96986
- var args155, tool$walletsGet;
97218
+ var args156, tool$walletsGet;
96987
97219
  var init_walletsGet2 = __esm(() => {
96988
97220
  init_walletsGet();
96989
97221
  init_operations();
96990
97222
  init_tools();
96991
- args155 = {
97223
+ args156 = {
96992
97224
  request: GetWalletRequest$inboundSchema
96993
97225
  };
96994
97226
  tool$walletsGet = {
@@ -96999,9 +97231,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
96999
97231
 
97000
97232
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97001
97233
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97002
- args: args155,
97003
- tool: async (client, args156, ctx) => {
97004
- const [result, apiCall] = await walletsGet(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97234
+ args: args156,
97235
+ tool: async (client, args157, ctx) => {
97236
+ const [result, apiCall] = await walletsGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97005
97237
  if (!result.ok) {
97006
97238
  return {
97007
97239
  content: [{ type: "text", text: result.error.message }],
@@ -97016,9 +97248,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97016
97248
 
97017
97249
  // src/funcs/walletsList.ts
97018
97250
  function walletsList(client, request, options) {
97019
- return new APIPromise($do161(client, request, options));
97251
+ return new APIPromise($do162(client, request, options));
97020
97252
  }
97021
- async function $do161(client, request, options) {
97253
+ async function $do162(client, request, options) {
97022
97254
  const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
97023
97255
  if (!parsed.ok) {
97024
97256
  return [parsed, { status: "invalid" }];
@@ -97106,12 +97338,12 @@ var init_walletsList = __esm(() => {
97106
97338
  });
97107
97339
 
97108
97340
  // src/mcp-server/tools/walletsList.ts
97109
- var args156, tool$walletsList;
97341
+ var args157, tool$walletsList;
97110
97342
  var init_walletsList2 = __esm(() => {
97111
97343
  init_walletsList();
97112
97344
  init_operations();
97113
97345
  init_tools();
97114
- args156 = {
97346
+ args157 = {
97115
97347
  request: ListWalletsRequest$inboundSchema
97116
97348
  };
97117
97349
  tool$walletsList = {
@@ -97122,9 +97354,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
97122
97354
 
97123
97355
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97124
97356
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97125
- args: args156,
97126
- tool: async (client, args157, ctx) => {
97127
- const [result, apiCall] = await walletsList(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97357
+ args: args157,
97358
+ tool: async (client, args158, ctx) => {
97359
+ const [result, apiCall] = await walletsList(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97128
97360
  if (!result.ok) {
97129
97361
  return {
97130
97362
  content: [{ type: "text", text: result.error.message }],
@@ -97139,9 +97371,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97139
97371
 
97140
97372
  // src/funcs/walletsUpdate.ts
97141
97373
  function walletsUpdate(client, request, options) {
97142
- return new APIPromise($do162(client, request, options));
97374
+ return new APIPromise($do163(client, request, options));
97143
97375
  }
97144
- async function $do162(client, request, options) {
97376
+ async function $do163(client, request, options) {
97145
97377
  const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
97146
97378
  if (!parsed.ok) {
97147
97379
  return [parsed, { status: "invalid" }];
@@ -97227,12 +97459,12 @@ var init_walletsUpdate = __esm(() => {
97227
97459
  });
97228
97460
 
97229
97461
  // src/mcp-server/tools/walletsUpdate.ts
97230
- var args157, tool$walletsUpdate;
97462
+ var args158, tool$walletsUpdate;
97231
97463
  var init_walletsUpdate2 = __esm(() => {
97232
97464
  init_walletsUpdate();
97233
97465
  init_operations();
97234
97466
  init_tools();
97235
- args157 = {
97467
+ args158 = {
97236
97468
  request: UpdateWalletRequest$inboundSchema
97237
97469
  };
97238
97470
  tool$walletsUpdate = {
@@ -97243,9 +97475,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
97243
97475
 
97244
97476
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97245
97477
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
97246
- args: args157,
97247
- tool: async (client, args158, ctx) => {
97248
- const [result, apiCall] = await walletsUpdate(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97478
+ args: args158,
97479
+ tool: async (client, args159, ctx) => {
97480
+ const [result, apiCall] = await walletsUpdate(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97249
97481
  if (!result.ok) {
97250
97482
  return {
97251
97483
  content: [{ type: "text", text: result.error.message }],
@@ -97260,9 +97492,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
97260
97492
 
97261
97493
  // src/funcs/walletTransactionsGet.ts
97262
97494
  function walletTransactionsGet(client, request, options) {
97263
- return new APIPromise($do163(client, request, options));
97495
+ return new APIPromise($do164(client, request, options));
97264
97496
  }
97265
- async function $do163(client, request, options) {
97497
+ async function $do164(client, request, options) {
97266
97498
  const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
97267
97499
  if (!parsed.ok) {
97268
97500
  return [parsed, { status: "invalid" }];
@@ -97348,12 +97580,12 @@ var init_walletTransactionsGet = __esm(() => {
97348
97580
  });
97349
97581
 
97350
97582
  // src/mcp-server/tools/walletTransactionsGet.ts
97351
- var args158, tool$walletTransactionsGet;
97583
+ var args159, tool$walletTransactionsGet;
97352
97584
  var init_walletTransactionsGet2 = __esm(() => {
97353
97585
  init_walletTransactionsGet();
97354
97586
  init_operations();
97355
97587
  init_tools();
97356
- args158 = {
97588
+ args159 = {
97357
97589
  request: GetWalletTransactionRequest$inboundSchema
97358
97590
  };
97359
97591
  tool$walletTransactionsGet = {
@@ -97364,9 +97596,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
97364
97596
 
97365
97597
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97366
97598
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97367
- args: args158,
97368
- tool: async (client, args159, ctx) => {
97369
- const [result, apiCall] = await walletTransactionsGet(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97599
+ args: args159,
97600
+ tool: async (client, args160, ctx) => {
97601
+ const [result, apiCall] = await walletTransactionsGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97370
97602
  if (!result.ok) {
97371
97603
  return {
97372
97604
  content: [{ type: "text", text: result.error.message }],
@@ -97381,9 +97613,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97381
97613
 
97382
97614
  // src/funcs/walletTransactionsList.ts
97383
97615
  function walletTransactionsList(client, request, options) {
97384
- return new APIPromise($do164(client, request, options));
97616
+ return new APIPromise($do165(client, request, options));
97385
97617
  }
97386
- async function $do164(client, request, options) {
97618
+ async function $do165(client, request, options) {
97387
97619
  const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
97388
97620
  if (!parsed.ok) {
97389
97621
  return [parsed, { status: "invalid" }];
@@ -97483,12 +97715,12 @@ var init_walletTransactionsList = __esm(() => {
97483
97715
  });
97484
97716
 
97485
97717
  // src/mcp-server/tools/walletTransactionsList.ts
97486
- var args159, tool$walletTransactionsList;
97718
+ var args160, tool$walletTransactionsList;
97487
97719
  var init_walletTransactionsList2 = __esm(() => {
97488
97720
  init_walletTransactionsList();
97489
97721
  init_operations();
97490
97722
  init_tools();
97491
- args159 = {
97723
+ args160 = {
97492
97724
  request: ListWalletTransactionsRequest$inboundSchema
97493
97725
  };
97494
97726
  tool$walletTransactionsList = {
@@ -97499,9 +97731,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
97499
97731
 
97500
97732
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97501
97733
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97502
- args: args159,
97503
- tool: async (client, args160, ctx) => {
97504
- const [result, apiCall] = await walletTransactionsList(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97734
+ args: args160,
97735
+ tool: async (client, args161, ctx) => {
97736
+ const [result, apiCall] = await walletTransactionsList(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97505
97737
  if (!result.ok) {
97506
97738
  return {
97507
97739
  content: [{ type: "text", text: result.error.message }],
@@ -97516,9 +97748,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97516
97748
 
97517
97749
  // src/funcs/webhooksCreate.ts
97518
97750
  function webhooksCreate(client, request, options) {
97519
- return new APIPromise($do165(client, request, options));
97751
+ return new APIPromise($do166(client, request, options));
97520
97752
  }
97521
- async function $do165(client, request, options) {
97753
+ async function $do166(client, request, options) {
97522
97754
  const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
97523
97755
  if (!parsed.ok) {
97524
97756
  return [parsed, { status: "invalid" }];
@@ -97595,20 +97827,20 @@ var init_webhooksCreate = __esm(() => {
97595
97827
  });
97596
97828
 
97597
97829
  // src/mcp-server/tools/webhooksCreate.ts
97598
- var args160, tool$webhooksCreate;
97830
+ var args161, tool$webhooksCreate;
97599
97831
  var init_webhooksCreate2 = __esm(() => {
97600
97832
  init_webhooksCreate();
97601
97833
  init_components();
97602
97834
  init_tools();
97603
- args160 = {
97835
+ args161 = {
97604
97836
  request: CreateWebhook$inboundSchema
97605
97837
  };
97606
97838
  tool$webhooksCreate = {
97607
97839
  name: "webhooks-create",
97608
97840
  description: `Create a new webhook for the account.`,
97609
- args: args160,
97610
- tool: async (client, args161, ctx) => {
97611
- const [result, apiCall] = await webhooksCreate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97841
+ args: args161,
97842
+ tool: async (client, args162, ctx) => {
97843
+ const [result, apiCall] = await webhooksCreate(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97612
97844
  if (!result.ok) {
97613
97845
  return {
97614
97846
  content: [{ type: "text", text: result.error.message }],
@@ -97623,9 +97855,9 @@ var init_webhooksCreate2 = __esm(() => {
97623
97855
 
97624
97856
  // src/funcs/webhooksDisable.ts
97625
97857
  function webhooksDisable(client, request, options) {
97626
- return new APIPromise($do166(client, request, options));
97858
+ return new APIPromise($do167(client, request, options));
97627
97859
  }
97628
- async function $do166(client, request, options) {
97860
+ async function $do167(client, request, options) {
97629
97861
  const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
97630
97862
  if (!parsed.ok) {
97631
97863
  return [parsed, { status: "invalid" }];
@@ -97703,20 +97935,20 @@ var init_webhooksDisable = __esm(() => {
97703
97935
  });
97704
97936
 
97705
97937
  // src/mcp-server/tools/webhooksDisable.ts
97706
- var args161, tool$webhooksDisable;
97938
+ var args162, tool$webhooksDisable;
97707
97939
  var init_webhooksDisable2 = __esm(() => {
97708
97940
  init_webhooksDisable();
97709
97941
  init_operations();
97710
97942
  init_tools();
97711
- args161 = {
97943
+ args162 = {
97712
97944
  request: DisableWebhookRequest$inboundSchema
97713
97945
  };
97714
97946
  tool$webhooksDisable = {
97715
97947
  name: "webhooks-disable",
97716
97948
  description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
97717
- args: args161,
97718
- tool: async (client, args162, ctx) => {
97719
- const [result, apiCall] = await webhooksDisable(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97949
+ args: args162,
97950
+ tool: async (client, args163, ctx) => {
97951
+ const [result, apiCall] = await webhooksDisable(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97720
97952
  if (!result.ok) {
97721
97953
  return {
97722
97954
  content: [{ type: "text", text: result.error.message }],
@@ -97730,9 +97962,9 @@ var init_webhooksDisable2 = __esm(() => {
97730
97962
 
97731
97963
  // src/funcs/webhooksGet.ts
97732
97964
  function webhooksGet(client, request, options) {
97733
- return new APIPromise($do167(client, request, options));
97965
+ return new APIPromise($do168(client, request, options));
97734
97966
  }
97735
- async function $do167(client, request, options) {
97967
+ async function $do168(client, request, options) {
97736
97968
  const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
97737
97969
  if (!parsed.ok) {
97738
97970
  return [parsed, { status: "invalid" }];
@@ -97810,20 +98042,20 @@ var init_webhooksGet = __esm(() => {
97810
98042
  });
97811
98043
 
97812
98044
  // src/mcp-server/tools/webhooksGet.ts
97813
- var args162, tool$webhooksGet;
98045
+ var args163, tool$webhooksGet;
97814
98046
  var init_webhooksGet2 = __esm(() => {
97815
98047
  init_webhooksGet();
97816
98048
  init_operations();
97817
98049
  init_tools();
97818
- args162 = {
98050
+ args163 = {
97819
98051
  request: GetWebhookRequest$inboundSchema
97820
98052
  };
97821
98053
  tool$webhooksGet = {
97822
98054
  name: "webhooks-get",
97823
98055
  description: `Get details of a specific webhook.`,
97824
- args: args162,
97825
- tool: async (client, args163, ctx) => {
97826
- const [result, apiCall] = await webhooksGet(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98056
+ args: args163,
98057
+ tool: async (client, args164, ctx) => {
98058
+ const [result, apiCall] = await webhooksGet(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97827
98059
  if (!result.ok) {
97828
98060
  return {
97829
98061
  content: [{ type: "text", text: result.error.message }],
@@ -97838,9 +98070,9 @@ var init_webhooksGet2 = __esm(() => {
97838
98070
 
97839
98071
  // src/funcs/webhooksGetSecret.ts
97840
98072
  function webhooksGetSecret(client, request, options) {
97841
- return new APIPromise($do168(client, request, options));
98073
+ return new APIPromise($do169(client, request, options));
97842
98074
  }
97843
- async function $do168(client, request, options) {
98075
+ async function $do169(client, request, options) {
97844
98076
  const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
97845
98077
  if (!parsed.ok) {
97846
98078
  return [parsed, { status: "invalid" }];
@@ -97918,20 +98150,20 @@ var init_webhooksGetSecret = __esm(() => {
97918
98150
  });
97919
98151
 
97920
98152
  // src/mcp-server/tools/webhooksGetSecret.ts
97921
- var args163, tool$webhooksGetSecret;
98153
+ var args164, tool$webhooksGetSecret;
97922
98154
  var init_webhooksGetSecret2 = __esm(() => {
97923
98155
  init_webhooksGetSecret();
97924
98156
  init_operations();
97925
98157
  init_tools();
97926
- args163 = {
98158
+ args164 = {
97927
98159
  request: GetWebhookSecretRequest$inboundSchema
97928
98160
  };
97929
98161
  tool$webhooksGetSecret = {
97930
98162
  name: "webhooks-get-secret",
97931
98163
  description: `Get the secret key for verifying webhook payloads.`,
97932
- args: args163,
97933
- tool: async (client, args164, ctx) => {
97934
- const [result, apiCall] = await webhooksGetSecret(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98164
+ args: args164,
98165
+ tool: async (client, args165, ctx) => {
98166
+ const [result, apiCall] = await webhooksGetSecret(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97935
98167
  if (!result.ok) {
97936
98168
  return {
97937
98169
  content: [{ type: "text", text: result.error.message }],
@@ -97946,9 +98178,9 @@ var init_webhooksGetSecret2 = __esm(() => {
97946
98178
 
97947
98179
  // src/funcs/webhooksList.ts
97948
98180
  function webhooksList(client, options) {
97949
- return new APIPromise($do169(client, options));
98181
+ return new APIPromise($do170(client, options));
97950
98182
  }
97951
- async function $do169(client, options) {
98183
+ async function $do170(client, options) {
97952
98184
  const path = pathToFunc("/webhooks")();
97953
98185
  const headers = new Headers(compactMap({
97954
98186
  Accept: "application/json"
@@ -98034,9 +98266,9 @@ var init_webhooksList2 = __esm(() => {
98034
98266
 
98035
98267
  // src/funcs/webhooksListEventTypes.ts
98036
98268
  function webhooksListEventTypes(client, options) {
98037
- return new APIPromise($do170(client, options));
98269
+ return new APIPromise($do171(client, options));
98038
98270
  }
98039
- async function $do170(client, options) {
98271
+ async function $do171(client, options) {
98040
98272
  const path = pathToFunc("/event-types")();
98041
98273
  const headers = new Headers(compactMap({
98042
98274
  Accept: "application/json"
@@ -98122,9 +98354,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
98122
98354
 
98123
98355
  // src/funcs/webhooksPing.ts
98124
98356
  function webhooksPing(client, request, options) {
98125
- return new APIPromise($do171(client, request, options));
98357
+ return new APIPromise($do172(client, request, options));
98126
98358
  }
98127
- async function $do171(client, request, options) {
98359
+ async function $do172(client, request, options) {
98128
98360
  const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
98129
98361
  if (!parsed.ok) {
98130
98362
  return [parsed, { status: "invalid" }];
@@ -98202,20 +98434,20 @@ var init_webhooksPing = __esm(() => {
98202
98434
  });
98203
98435
 
98204
98436
  // src/mcp-server/tools/webhooksPing.ts
98205
- var args164, tool$webhooksPing;
98437
+ var args165, tool$webhooksPing;
98206
98438
  var init_webhooksPing2 = __esm(() => {
98207
98439
  init_webhooksPing();
98208
98440
  init_operations();
98209
98441
  init_tools();
98210
- args164 = {
98442
+ args165 = {
98211
98443
  request: PingWebhookRequest$inboundSchema
98212
98444
  };
98213
98445
  tool$webhooksPing = {
98214
98446
  name: "webhooks-ping",
98215
98447
  description: `Send a test ping to a webhook to verify it is configured correctly.`,
98216
- args: args164,
98217
- tool: async (client, args165, ctx) => {
98218
- const [result, apiCall] = await webhooksPing(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98448
+ args: args165,
98449
+ tool: async (client, args166, ctx) => {
98450
+ const [result, apiCall] = await webhooksPing(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98219
98451
  if (!result.ok) {
98220
98452
  return {
98221
98453
  content: [{ type: "text", text: result.error.message }],
@@ -98230,9 +98462,9 @@ var init_webhooksPing2 = __esm(() => {
98230
98462
 
98231
98463
  // src/funcs/webhooksUpdate.ts
98232
98464
  function webhooksUpdate(client, request, options) {
98233
- return new APIPromise($do172(client, request, options));
98465
+ return new APIPromise($do173(client, request, options));
98234
98466
  }
98235
- async function $do172(client, request, options) {
98467
+ async function $do173(client, request, options) {
98236
98468
  const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
98237
98469
  if (!parsed.ok) {
98238
98470
  return [parsed, { status: "invalid" }];
@@ -98314,20 +98546,20 @@ var init_webhooksUpdate = __esm(() => {
98314
98546
  });
98315
98547
 
98316
98548
  // src/mcp-server/tools/webhooksUpdate.ts
98317
- var args165, tool$webhooksUpdate;
98549
+ var args166, tool$webhooksUpdate;
98318
98550
  var init_webhooksUpdate2 = __esm(() => {
98319
98551
  init_webhooksUpdate();
98320
98552
  init_operations();
98321
98553
  init_tools();
98322
- args165 = {
98554
+ args166 = {
98323
98555
  request: UpdateWebhookRequest$inboundSchema
98324
98556
  };
98325
98557
  tool$webhooksUpdate = {
98326
98558
  name: "webhooks-update",
98327
98559
  description: `Update an existing webhook.`,
98328
- args: args165,
98329
- tool: async (client, args166, ctx) => {
98330
- const [result, apiCall] = await webhooksUpdate(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98560
+ args: args166,
98561
+ tool: async (client, args167, ctx) => {
98562
+ const [result, apiCall] = await webhooksUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98331
98563
  if (!result.ok) {
98332
98564
  return {
98333
98565
  content: [{ type: "text", text: result.error.message }],
@@ -98344,7 +98576,7 @@ var init_webhooksUpdate2 = __esm(() => {
98344
98576
  function createMCPServer(deps) {
98345
98577
  const server = new McpServer({
98346
98578
  name: "Moov",
98347
- version: "25.9.0"
98579
+ version: "25.9.2"
98348
98580
  });
98349
98581
  const client = new MoovCore({
98350
98582
  security: deps.security,
@@ -98477,6 +98709,7 @@ function createMCPServer(deps) {
98477
98709
  tool(tool$transfersGet);
98478
98710
  tool(tool$transfersUpdate);
98479
98711
  tool(tool$transfersCreateCancellation);
98712
+ tool(tool$transfersListCancellations);
98480
98713
  tool(tool$transfersGetCancellation);
98481
98714
  tool(tool$transfersInitiateRefund);
98482
98715
  tool(tool$transfersListRefunds);
@@ -98691,6 +98924,7 @@ var init_server2 = __esm(() => {
98691
98924
  init_transfersGetRefund2();
98692
98925
  init_transfersInitiateRefund2();
98693
98926
  init_transfersList2();
98927
+ init_transfersListCancellations2();
98694
98928
  init_transfersListRefunds2();
98695
98929
  init_transfersUpdate2();
98696
98930
  init_underwritingGet2();
@@ -99912,7 +100146,7 @@ var routes = rn({
99912
100146
  var app = Ve(routes, {
99913
100147
  name: "mcp",
99914
100148
  versionInfo: {
99915
- currentVersion: "25.9.0"
100149
+ currentVersion: "25.9.2"
99916
100150
  }
99917
100151
  });
99918
100152
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -99920,5 +100154,5 @@ export {
99920
100154
  app
99921
100155
  };
99922
100156
 
99923
- //# debugId=EEEBAC57213C4BAE64756E2164756E21
100157
+ //# debugId=B89EF011148E6F7E64756E2164756E21
99924
100158
  //# sourceMappingURL=mcp-server.js.map