@moovio/sdk 25.6.0 → 25.6.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 +81 -77
  2. package/bin/mcp-server.js +549 -315
  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.04.00",
52912
- sdkVersion: "25.6.0",
52913
- genVersion: "2.884.4",
52914
- userAgent: "speakeasy-sdk/typescript 25.6.0 2.884.4 v2025.04.00 @moovio/sdk"
52977
+ sdkVersion: "25.6.2",
52978
+ genVersion: "2.916.2",
52979
+ userAgent: "speakeasy-sdk/typescript 25.6.2 2.916.2 v2025.04.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",
@@ -55926,6 +56016,7 @@ var init_capabilityid = __esm(() => {
55926
56016
  CollectFunds: "collect-funds",
55927
56017
  Wallet: "wallet",
55928
56018
  CardIssuing: "card-issuing",
56019
+ IssuingCardholder: "issuing.cardholder",
55929
56020
  ProductionApp: "production-app"
55930
56021
  };
55931
56022
  CapabilityID$inboundSchema = nativeEnumType(CapabilityID);
@@ -56343,20 +56434,6 @@ var init_asynctransfer = __esm(() => {
56343
56434
  });
56344
56435
  });
56345
56436
 
56346
- // src/models/components/authorizeduser.ts
56347
- var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
56348
- var init_authorizeduser = __esm(() => {
56349
- init_esm();
56350
- AuthorizedUser$inboundSchema = objectType({
56351
- firstName: stringType(),
56352
- lastName: stringType()
56353
- });
56354
- AuthorizedUser$outboundSchema = objectType({
56355
- firstName: stringType(),
56356
- lastName: stringType()
56357
- });
56358
- });
56359
-
56360
56437
  // src/models/components/tokentype.ts
56361
56438
  var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
56362
56439
  var init_tokentype = __esm(() => {
@@ -60735,57 +60812,6 @@ var init_createapplepaysession = __esm(() => {
60735
60812
  });
60736
60813
  });
60737
60814
 
60738
- // src/models/components/createauthorizeduser.ts
60739
- var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
60740
- var init_createauthorizeduser = __esm(() => {
60741
- init_esm();
60742
- init_birthdate();
60743
- CreateAuthorizedUser$inboundSchema = objectType({
60744
- firstName: stringType(),
60745
- lastName: stringType(),
60746
- birthDate: BirthDate$inboundSchema.optional()
60747
- });
60748
- CreateAuthorizedUser$outboundSchema = objectType({
60749
- firstName: stringType(),
60750
- lastName: stringType(),
60751
- birthDate: BirthDate$outboundSchema.optional()
60752
- });
60753
- });
60754
-
60755
- // src/models/components/createauthorizedusererror.ts
60756
- var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
60757
- var init_createauthorizedusererror = __esm(() => {
60758
- init_esm();
60759
- init_birthdateerror();
60760
- CreateAuthorizedUserError$inboundSchema = objectType({
60761
- firstName: stringType().optional(),
60762
- lastName: stringType().optional(),
60763
- birthDate: BirthDateError$inboundSchema.optional()
60764
- });
60765
- CreateAuthorizedUserError$outboundSchema = objectType({
60766
- firstName: stringType().optional(),
60767
- lastName: stringType().optional(),
60768
- birthDate: BirthDateError$outboundSchema.optional()
60769
- });
60770
- });
60771
-
60772
- // src/models/components/createauthorizeduserupdate.ts
60773
- var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
60774
- var init_createauthorizeduserupdate = __esm(() => {
60775
- init_esm();
60776
- init_birthdateupdate();
60777
- CreateAuthorizedUserUpdate$inboundSchema = objectType({
60778
- firstName: stringType().optional(),
60779
- lastName: stringType().optional(),
60780
- birthDate: BirthDateUpdate$inboundSchema.optional()
60781
- });
60782
- CreateAuthorizedUserUpdate$outboundSchema = objectType({
60783
- firstName: stringType().optional(),
60784
- lastName: stringType().optional(),
60785
- birthDate: BirthDateUpdate$outboundSchema.optional()
60786
- });
60787
- });
60788
-
60789
60815
  // src/models/components/phonenumbererror.ts
60790
60816
  var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
60791
60817
  var init_phonenumbererror = __esm(() => {
@@ -62474,7 +62500,8 @@ var init_webhookeventtype = __esm(() => {
62474
62500
  WalletCreated: "wallet.created",
62475
62501
  WalletUpdated: "wallet.updated",
62476
62502
  WalletTransactionUpdated: "walletTransaction.updated",
62477
- BillingStatementCreated: "billingStatement.created"
62503
+ BillingStatementCreated: "billingStatement.created",
62504
+ AuthorizationExpiring: "authorization.expiring"
62478
62505
  };
62479
62506
  WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
62480
62507
  WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
@@ -63191,8 +63218,6 @@ var init_issuedcardstate = __esm(() => {
63191
63218
  init_esm();
63192
63219
  IssuedCardState = {
63193
63220
  Active: "active",
63194
- Inactive: "inactive",
63195
- PendingVerification: "pending-verification",
63196
63221
  Closed: "closed"
63197
63222
  };
63198
63223
  IssuedCardState$inboundSchema = nativeEnumType(IssuedCardState);
@@ -63244,7 +63269,7 @@ var init_issuingcontrols = __esm(() => {
63244
63269
  var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
63245
63270
  var init_fullissuedcard = __esm(() => {
63246
63271
  init_esm();
63247
- init_authorizeduser();
63272
+ init_address();
63248
63273
  init_cardbrand();
63249
63274
  init_cardexpiration();
63250
63275
  init_issuedcardformfactor();
@@ -63255,13 +63280,16 @@ var init_fullissuedcard = __esm(() => {
63255
63280
  brand: CardBrand$inboundSchema,
63256
63281
  lastFourCardNumber: stringType(),
63257
63282
  expiration: CardExpiration$inboundSchema,
63258
- authorizedUser: AuthorizedUser$inboundSchema,
63259
- memo: stringType().optional(),
63260
63283
  fundingWalletID: stringType(),
63284
+ authorizedUserAccountID: stringType().optional(),
63285
+ nickname: stringType().optional(),
63286
+ metadata: recordType(stringType()).optional(),
63287
+ billingAddress: Address$inboundSchema.optional(),
63261
63288
  state: IssuedCardState$inboundSchema,
63262
63289
  formFactor: IssuedCardFormFactor$inboundSchema,
63263
63290
  controls: IssuingControls$inboundSchema.optional(),
63264
63291
  createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63292
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63265
63293
  pan: stringType(),
63266
63294
  cvv: stringType()
63267
63295
  });
@@ -63270,13 +63298,16 @@ var init_fullissuedcard = __esm(() => {
63270
63298
  brand: CardBrand$outboundSchema,
63271
63299
  lastFourCardNumber: stringType(),
63272
63300
  expiration: CardExpiration$outboundSchema,
63273
- authorizedUser: AuthorizedUser$outboundSchema,
63274
- memo: stringType().optional(),
63275
63301
  fundingWalletID: stringType(),
63302
+ authorizedUserAccountID: stringType().optional(),
63303
+ nickname: stringType().optional(),
63304
+ metadata: recordType(stringType()).optional(),
63305
+ billingAddress: Address$outboundSchema.optional(),
63276
63306
  state: IssuedCardState$outboundSchema,
63277
63307
  formFactor: IssuedCardFormFactor$outboundSchema,
63278
63308
  controls: IssuingControls$outboundSchema.optional(),
63279
63309
  createdOn: dateType().transform((v2) => v2.toISOString()),
63310
+ updatedOn: dateType().transform((v2) => v2.toISOString()),
63280
63311
  pan: stringType(),
63281
63312
  cvv: stringType()
63282
63313
  });
@@ -63602,7 +63633,7 @@ var init_invoicestatus = __esm(() => {
63602
63633
  var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
63603
63634
  var init_issuedcard = __esm(() => {
63604
63635
  init_esm();
63605
- init_authorizeduser();
63636
+ init_address();
63606
63637
  init_cardbrand();
63607
63638
  init_cardexpiration();
63608
63639
  init_issuedcardformfactor();
@@ -63613,26 +63644,32 @@ var init_issuedcard = __esm(() => {
63613
63644
  brand: CardBrand$inboundSchema,
63614
63645
  lastFourCardNumber: stringType(),
63615
63646
  expiration: CardExpiration$inboundSchema,
63616
- authorizedUser: AuthorizedUser$inboundSchema,
63617
- memo: stringType().optional(),
63618
63647
  fundingWalletID: stringType(),
63648
+ authorizedUserAccountID: stringType().optional(),
63649
+ nickname: stringType().optional(),
63650
+ metadata: recordType(stringType()).optional(),
63651
+ billingAddress: Address$inboundSchema.optional(),
63619
63652
  state: IssuedCardState$inboundSchema,
63620
63653
  formFactor: IssuedCardFormFactor$inboundSchema,
63621
63654
  controls: IssuingControls$inboundSchema.optional(),
63622
- createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
63655
+ createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63656
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
63623
63657
  });
63624
63658
  IssuedCard$outboundSchema = objectType({
63625
63659
  issuedCardID: stringType(),
63626
63660
  brand: CardBrand$outboundSchema,
63627
63661
  lastFourCardNumber: stringType(),
63628
63662
  expiration: CardExpiration$outboundSchema,
63629
- authorizedUser: AuthorizedUser$outboundSchema,
63630
- memo: stringType().optional(),
63631
63663
  fundingWalletID: stringType(),
63664
+ authorizedUserAccountID: stringType().optional(),
63665
+ nickname: stringType().optional(),
63666
+ metadata: recordType(stringType()).optional(),
63667
+ billingAddress: Address$outboundSchema.optional(),
63632
63668
  state: IssuedCardState$outboundSchema,
63633
63669
  formFactor: IssuedCardFormFactor$outboundSchema,
63634
63670
  controls: IssuingControls$outboundSchema.optional(),
63635
- createdOn: dateType().transform((v2) => v2.toISOString())
63671
+ createdOn: dateType().transform((v2) => v2.toISOString()),
63672
+ updatedOn: dateType().transform((v2) => v2.toISOString())
63636
63673
  });
63637
63674
  });
63638
63675
 
@@ -65572,23 +65609,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
65572
65609
  var RequestCard$inboundSchema, RequestCard$outboundSchema;
65573
65610
  var init_requestcard = __esm(() => {
65574
65611
  init_esm();
65612
+ init_address();
65575
65613
  init_cardexpiration();
65576
- init_createauthorizeduser();
65577
- init_issuedcardformfactor();
65578
65614
  init_issuingcontrols();
65579
65615
  RequestCard$inboundSchema = objectType({
65580
- fundingWalletID: stringType(),
65581
- authorizedUser: CreateAuthorizedUser$inboundSchema,
65582
- formFactor: IssuedCardFormFactor$inboundSchema,
65583
- memo: stringType().optional(),
65616
+ authorizedUserAccountID: stringType().optional(),
65617
+ nickname: stringType().optional(),
65618
+ metadata: recordType(stringType()).optional(),
65619
+ billingAddress: Address$inboundSchema.optional(),
65584
65620
  expiration: CardExpiration$inboundSchema.optional(),
65585
65621
  controls: IssuingControls$inboundSchema.optional()
65586
65622
  });
65587
65623
  RequestCard$outboundSchema = objectType({
65588
- fundingWalletID: stringType(),
65589
- authorizedUser: CreateAuthorizedUser$outboundSchema,
65590
- formFactor: IssuedCardFormFactor$outboundSchema,
65591
- memo: stringType().optional(),
65624
+ authorizedUserAccountID: stringType().optional(),
65625
+ nickname: stringType().optional(),
65626
+ metadata: recordType(stringType()).optional(),
65627
+ billingAddress: Address$outboundSchema.optional(),
65592
65628
  expiration: CardExpiration$outboundSchema.optional(),
65593
65629
  controls: IssuingControls$outboundSchema.optional()
65594
65630
  });
@@ -66466,20 +66502,37 @@ var init_updateissuedcardstate = __esm(() => {
66466
66502
  });
66467
66503
 
66468
66504
  // src/models/components/updateissuedcard.ts
66469
- var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
66505
+ var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
66470
66506
  var init_updateissuedcard = __esm(() => {
66471
66507
  init_esm();
66472
- init_createauthorizeduserupdate();
66473
66508
  init_updateissuedcardstate();
66509
+ BillingAddress$inboundSchema = objectType({
66510
+ addressLine1: stringType().optional(),
66511
+ addressLine2: stringType().optional(),
66512
+ city: stringType().optional(),
66513
+ stateOrProvince: stringType().optional(),
66514
+ postalCode: stringType().optional(),
66515
+ country: stringType().optional()
66516
+ });
66517
+ BillingAddress$outboundSchema = objectType({
66518
+ addressLine1: stringType().optional(),
66519
+ addressLine2: stringType().optional(),
66520
+ city: stringType().optional(),
66521
+ stateOrProvince: stringType().optional(),
66522
+ postalCode: stringType().optional(),
66523
+ country: stringType().optional()
66524
+ });
66474
66525
  UpdateIssuedCard$inboundSchema = objectType({
66475
66526
  state: UpdateIssuedCardState$inboundSchema.optional(),
66476
- memo: stringType().optional(),
66477
- authorizedUser: CreateAuthorizedUserUpdate$inboundSchema.optional()
66527
+ nickname: nullableType(stringType()).optional(),
66528
+ metadata: nullableType(recordType(stringType())).optional(),
66529
+ billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
66478
66530
  });
66479
66531
  UpdateIssuedCard$outboundSchema = objectType({
66480
66532
  state: UpdateIssuedCardState$outboundSchema.optional(),
66481
- memo: stringType().optional(),
66482
- authorizedUser: CreateAuthorizedUserUpdate$outboundSchema.optional()
66533
+ nickname: nullableType(stringType()).optional(),
66534
+ metadata: nullableType(recordType(stringType())).optional(),
66535
+ billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
66483
66536
  });
66484
66537
  });
66485
66538
 
@@ -66877,6 +66930,24 @@ var init_webhookdataaccountupdated = __esm(() => {
66877
66930
  });
66878
66931
  });
66879
66932
 
66933
+ // src/models/components/webhookdataauthorizationexpiring.ts
66934
+ var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
66935
+ var init_webhookdataauthorizationexpiring = __esm(() => {
66936
+ init_esm();
66937
+ WebhookDataAuthorizationExpiring$inboundSchema = objectType({
66938
+ merchantAccountID: stringType(),
66939
+ partnerAccountID: stringType(),
66940
+ authorizationID: stringType(),
66941
+ expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
66942
+ });
66943
+ WebhookDataAuthorizationExpiring$outboundSchema = objectType({
66944
+ merchantAccountID: stringType(),
66945
+ partnerAccountID: stringType(),
66946
+ authorizationID: stringType(),
66947
+ expiresOn: dateType().transform((v2) => v2.toISOString())
66948
+ });
66949
+ });
66950
+
66880
66951
  // src/models/components/webhookdatabalanceupdated.ts
66881
66952
  var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
66882
66953
  var init_webhookdatabalanceupdated = __esm(() => {
@@ -67251,10 +67322,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
67251
67322
  var init_webhookdatasweepcreated = __esm(() => {
67252
67323
  init_esm();
67253
67324
  WebhookDataSweepCreated$inboundSchema = objectType({
67325
+ accountID: stringType(),
67254
67326
  walletID: stringType(),
67255
67327
  sweepID: stringType()
67256
67328
  });
67257
67329
  WebhookDataSweepCreated$outboundSchema = objectType({
67330
+ accountID: stringType(),
67258
67331
  walletID: stringType(),
67259
67332
  sweepID: stringType()
67260
67333
  });
@@ -67266,12 +67339,14 @@ var init_webhookdatasweepupdated = __esm(() => {
67266
67339
  init_esm();
67267
67340
  init_sweepstatus();
67268
67341
  WebhookDataSweepUpdated$inboundSchema = objectType({
67342
+ accountID: stringType(),
67269
67343
  walletID: stringType(),
67270
67344
  sweepID: stringType(),
67271
67345
  transferID: stringType().optional(),
67272
67346
  status: SweepStatus$inboundSchema
67273
67347
  });
67274
67348
  WebhookDataSweepUpdated$outboundSchema = objectType({
67349
+ accountID: stringType(),
67275
67350
  walletID: stringType(),
67276
67351
  sweepID: stringType(),
67277
67352
  transferID: stringType().optional(),
@@ -67512,6 +67587,7 @@ var init_webhookdata = __esm(() => {
67512
67587
  init_webhookdataaccountcreated();
67513
67588
  init_webhookdataaccountdisconnected();
67514
67589
  init_webhookdataaccountupdated();
67590
+ init_webhookdataauthorizationexpiring();
67515
67591
  init_webhookdatabalanceupdated();
67516
67592
  init_webhookdatabankaccountcreated();
67517
67593
  init_webhookdatabankaccountdeleted();
@@ -67551,7 +67627,9 @@ var init_webhookdata = __esm(() => {
67551
67627
  WebhookDataTransferUpdated$inboundSchema,
67552
67628
  WebhookDataBankAccountUpdated$inboundSchema,
67553
67629
  WebhookDataRefundUpdated$inboundSchema,
67630
+ WebhookDataSweepUpdated$inboundSchema,
67554
67631
  WebhookDataWalletTransactionUpdated$inboundSchema,
67632
+ WebhookDataAuthorizationExpiring$inboundSchema,
67555
67633
  WebhookDataBankAccountCreated$inboundSchema,
67556
67634
  WebhookDataBankAccountDeleted$inboundSchema,
67557
67635
  WebhookDataCancellationCreated$inboundSchema,
@@ -67562,7 +67640,7 @@ var init_webhookdata = __esm(() => {
67562
67640
  WebhookDataPaymentMethodEnabled$inboundSchema,
67563
67641
  WebhookDataPaymentMethodDisabled$inboundSchema,
67564
67642
  WebhookDataRefundCreated$inboundSchema,
67565
- WebhookDataSweepUpdated$inboundSchema,
67643
+ WebhookDataSweepCreated$inboundSchema,
67566
67644
  WebhookDataTicketUpdated$inboundSchema,
67567
67645
  WebhookDataTransferCreated$inboundSchema,
67568
67646
  WebhookDataWalletUpdated$inboundSchema,
@@ -67572,7 +67650,6 @@ var init_webhookdata = __esm(() => {
67572
67650
  WebhookDataRepresentativeCreated$inboundSchema,
67573
67651
  WebhookDataRepresentativeUpdated$inboundSchema,
67574
67652
  WebhookDataRepresentativeDisabled$inboundSchema,
67575
- WebhookDataSweepCreated$inboundSchema,
67576
67653
  WebhookDataTerminalApplicationCreated$inboundSchema,
67577
67654
  WebhookDataTerminalApplicationUpdated$inboundSchema,
67578
67655
  WebhookDataTicketCreated$inboundSchema,
@@ -67590,7 +67667,9 @@ var init_webhookdata = __esm(() => {
67590
67667
  WebhookDataTransferUpdated$outboundSchema,
67591
67668
  WebhookDataBankAccountUpdated$outboundSchema,
67592
67669
  WebhookDataRefundUpdated$outboundSchema,
67670
+ WebhookDataSweepUpdated$outboundSchema,
67593
67671
  WebhookDataWalletTransactionUpdated$outboundSchema,
67672
+ WebhookDataAuthorizationExpiring$outboundSchema,
67594
67673
  WebhookDataBankAccountCreated$outboundSchema,
67595
67674
  WebhookDataBankAccountDeleted$outboundSchema,
67596
67675
  WebhookDataCancellationCreated$outboundSchema,
@@ -67601,7 +67680,7 @@ var init_webhookdata = __esm(() => {
67601
67680
  WebhookDataPaymentMethodEnabled$outboundSchema,
67602
67681
  WebhookDataPaymentMethodDisabled$outboundSchema,
67603
67682
  WebhookDataRefundCreated$outboundSchema,
67604
- WebhookDataSweepUpdated$outboundSchema,
67683
+ WebhookDataSweepCreated$outboundSchema,
67605
67684
  WebhookDataTicketUpdated$outboundSchema,
67606
67685
  WebhookDataTransferCreated$outboundSchema,
67607
67686
  WebhookDataWalletUpdated$outboundSchema,
@@ -67611,7 +67690,6 @@ var init_webhookdata = __esm(() => {
67611
67690
  WebhookDataRepresentativeCreated$outboundSchema,
67612
67691
  WebhookDataRepresentativeUpdated$outboundSchema,
67613
67692
  WebhookDataRepresentativeDisabled$outboundSchema,
67614
- WebhookDataSweepCreated$outboundSchema,
67615
67693
  WebhookDataTerminalApplicationCreated$outboundSchema,
67616
67694
  WebhookDataTerminalApplicationUpdated$outboundSchema,
67617
67695
  WebhookDataTicketCreated$outboundSchema,
@@ -67708,7 +67786,6 @@ var init_components = __esm(() => {
67708
67786
  init_assignproductimagevalidationerror();
67709
67787
  init_asynccreatedrefund();
67710
67788
  init_asynctransfer();
67711
- init_authorizeduser();
67712
67789
  init_authtoken();
67713
67790
  init_authtokenrequest();
67714
67791
  init_bankaccount();
@@ -67786,9 +67863,6 @@ var init_components = __esm(() => {
67786
67863
  init_createaccount();
67787
67864
  init_createaccountsettings();
67788
67865
  init_createapplepaysession();
67789
- init_createauthorizeduser();
67790
- init_createauthorizedusererror();
67791
- init_createauthorizeduserupdate();
67792
67866
  init_createbusinesserror();
67793
67867
  init_createbusinessprofile();
67794
67868
  init_createdtransfer();
@@ -68125,6 +68199,7 @@ var init_components = __esm(() => {
68125
68199
  init_webhookdataaccountcreated();
68126
68200
  init_webhookdataaccountdisconnected();
68127
68201
  init_webhookdataaccountupdated();
68202
+ init_webhookdataauthorizationexpiring();
68128
68203
  init_webhookdatabalanceupdated();
68129
68204
  init_webhookdatabankaccountcreated();
68130
68205
  init_webhookdatabankaccountdeleted();
@@ -69708,10 +69783,10 @@ var init_requestcarderror = __esm(() => {
69708
69783
  init_components();
69709
69784
  init_mooverror();
69710
69785
  RequestCardError = class RequestCardError extends MoovError {
69711
- fundingWalletID;
69712
- formFactor;
69713
- authorizedUser;
69714
- memo;
69786
+ authorizedUserAccountID;
69787
+ nickname;
69788
+ metadata;
69789
+ billingAddress;
69715
69790
  expiration;
69716
69791
  controls;
69717
69792
  data$;
@@ -69719,14 +69794,15 @@ var init_requestcarderror = __esm(() => {
69719
69794
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
69720
69795
  super(message, httpMeta);
69721
69796
  this.data$ = err;
69722
- if (err.fundingWalletID != null)
69723
- this.fundingWalletID = err.fundingWalletID;
69724
- if (err.formFactor != null)
69725
- this.formFactor = err.formFactor;
69726
- if (err.authorizedUser != null)
69727
- this.authorizedUser = err.authorizedUser;
69728
- if (err.memo != null)
69729
- this.memo = err.memo;
69797
+ if (err.authorizedUserAccountID != null) {
69798
+ this.authorizedUserAccountID = err.authorizedUserAccountID;
69799
+ }
69800
+ if (err.nickname != null)
69801
+ this.nickname = err.nickname;
69802
+ if (err.metadata != null)
69803
+ this.metadata = err.metadata;
69804
+ if (err.billingAddress != null)
69805
+ this.billingAddress = err.billingAddress;
69730
69806
  if (err.expiration != null)
69731
69807
  this.expiration = err.expiration;
69732
69808
  if (err.controls != null)
@@ -69735,10 +69811,10 @@ var init_requestcarderror = __esm(() => {
69735
69811
  }
69736
69812
  };
69737
69813
  RequestCardError$inboundSchema = objectType({
69738
- fundingWalletID: stringType().optional(),
69739
- formFactor: stringType().optional(),
69740
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
69741
- memo: stringType().optional(),
69814
+ authorizedUserAccountID: stringType().optional(),
69815
+ nickname: stringType().optional(),
69816
+ metadata: stringType().optional(),
69817
+ billingAddress: AddressError$inboundSchema.optional(),
69742
69818
  expiration: CardExpirationError$inboundSchema.optional(),
69743
69819
  controls: IssuingControlsError$inboundSchema.optional(),
69744
69820
  request$: instanceOfType(Request),
@@ -69752,10 +69828,10 @@ var init_requestcarderror = __esm(() => {
69752
69828
  });
69753
69829
  });
69754
69830
  RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
69755
- fundingWalletID: stringType().optional(),
69756
- formFactor: stringType().optional(),
69757
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional(),
69758
- memo: stringType().optional(),
69831
+ authorizedUserAccountID: stringType().optional(),
69832
+ nickname: stringType().optional(),
69833
+ metadata: stringType().optional(),
69834
+ billingAddress: AddressError$outboundSchema.optional(),
69759
69835
  expiration: CardExpirationError$outboundSchema.optional(),
69760
69836
  controls: IssuingControlsError$outboundSchema.optional()
69761
69837
  }));
@@ -70326,8 +70402,9 @@ var init_updateissuedcarderror = __esm(() => {
70326
70402
  init_mooverror();
70327
70403
  UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
70328
70404
  state;
70329
- memo;
70330
- authorizedUser;
70405
+ nickname;
70406
+ metadata;
70407
+ billingAddress;
70331
70408
  data$;
70332
70409
  constructor(err, httpMeta) {
70333
70410
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -70335,17 +70412,20 @@ var init_updateissuedcarderror = __esm(() => {
70335
70412
  this.data$ = err;
70336
70413
  if (err.state != null)
70337
70414
  this.state = err.state;
70338
- if (err.memo != null)
70339
- this.memo = err.memo;
70340
- if (err.authorizedUser != null)
70341
- this.authorizedUser = err.authorizedUser;
70415
+ if (err.nickname != null)
70416
+ this.nickname = err.nickname;
70417
+ if (err.metadata != null)
70418
+ this.metadata = err.metadata;
70419
+ if (err.billingAddress != null)
70420
+ this.billingAddress = err.billingAddress;
70342
70421
  this.name = "UpdateIssuedCardError";
70343
70422
  }
70344
70423
  };
70345
70424
  UpdateIssuedCardError$inboundSchema = objectType({
70346
70425
  state: stringType().optional(),
70347
- memo: stringType().optional(),
70348
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
70426
+ nickname: stringType().optional(),
70427
+ metadata: stringType().optional(),
70428
+ billingAddress: AddressError$inboundSchema.optional(),
70349
70429
  request$: instanceOfType(Request),
70350
70430
  response$: instanceOfType(Response),
70351
70431
  body$: stringType()
@@ -70358,8 +70438,9 @@ var init_updateissuedcarderror = __esm(() => {
70358
70438
  });
70359
70439
  UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
70360
70440
  state: stringType().optional(),
70361
- memo: stringType().optional(),
70362
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional()
70441
+ nickname: stringType().optional(),
70442
+ metadata: stringType().optional(),
70443
+ billingAddress: AddressError$outboundSchema.optional()
70363
70444
  }));
70364
70445
  });
70365
70446
 
@@ -74107,6 +74188,40 @@ var init_listbankaccounts = __esm(() => {
74107
74188
  });
74108
74189
  });
74109
74190
 
74191
+ // src/models/operations/listcancellations.ts
74192
+ var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
74193
+ var init_listcancellations = __esm(() => {
74194
+ init_esm();
74195
+ init_primitives();
74196
+ init_components();
74197
+ ListCancellationsRequest$inboundSchema = objectType({
74198
+ accountID: stringType(),
74199
+ transferID: stringType()
74200
+ });
74201
+ ListCancellationsRequest$outboundSchema = objectType({
74202
+ accountID: stringType(),
74203
+ transferID: stringType()
74204
+ });
74205
+ ListCancellationsResponse$inboundSchema = objectType({
74206
+ Headers: recordType(arrayType(stringType())).default({}),
74207
+ Result: arrayType(Cancellation$inboundSchema)
74208
+ }).transform((v2) => {
74209
+ return remap(v2, {
74210
+ Headers: "headers",
74211
+ Result: "result"
74212
+ });
74213
+ });
74214
+ ListCancellationsResponse$outboundSchema = objectType({
74215
+ headers: recordType(arrayType(stringType())),
74216
+ result: arrayType(Cancellation$outboundSchema)
74217
+ }).transform((v2) => {
74218
+ return remap(v2, {
74219
+ headers: "Headers",
74220
+ result: "Result"
74221
+ });
74222
+ });
74223
+ });
74224
+
74110
74225
  // src/models/operations/listcapabilities.ts
74111
74226
  var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
74112
74227
  var init_listcapabilities = __esm(() => {
@@ -76885,6 +77000,7 @@ var init_operations = __esm(() => {
76885
77000
  init_listaccountterminalapplications();
76886
77001
  init_listadjustments();
76887
77002
  init_listbankaccounts();
77003
+ init_listcancellations();
76888
77004
  init_listcapabilities();
76889
77005
  init_listcards();
76890
77006
  init_listconnectedaccountsforaccount();
@@ -76965,16 +77081,19 @@ var init_async = __esm(() => {
76965
77081
  [Symbol.toStringTag] = "APIPromise";
76966
77082
  constructor(p) {
76967
77083
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
76968
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
77084
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
77085
+ }
77086
+ #getUnwrapped() {
77087
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
76969
77088
  }
76970
77089
  then(onfulfilled, onrejected) {
76971
77090
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
76972
77091
  }
76973
77092
  catch(onrejected) {
76974
- return this.#unwrapped.catch(onrejected);
77093
+ return this.#getUnwrapped().catch(onrejected);
76975
77094
  }
76976
77095
  finally(onfinally) {
76977
- return this.#unwrapped.finally(onfinally);
77096
+ return this.#getUnwrapped().finally(onfinally);
76978
77097
  }
76979
77098
  $inspect() {
76980
77099
  return this.#promise;
@@ -77297,21 +77416,19 @@ var init_accountsCreate2 = __esm(() => {
77297
77416
  };
77298
77417
  tool$accountsCreate = {
77299
77418
  name: "accounts-create",
77300
- description: `You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
77301
- information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
77419
+ 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/).
77302
77420
 
77303
- If you're requesting the \`wallet\`, \`send-funds\`, \`collect-funds\`, or \`card-issuing\` capabilities, you'll need to:
77304
- + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
77305
- 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.
77306
- If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
77421
+ 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:
77422
+ + 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.
77423
+ + 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.
77424
+
77425
+ If you're creating a business account, depending on the business type, you'll also need to:
77307
77426
  + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
77308
77427
  + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
77309
77428
 
77310
- 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/).
77311
- 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.
77429
+ 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.
77312
77430
 
77313
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
77314
- to specify the \`/accounts.write\` scope.`,
77431
+ 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.`,
77315
77432
  args: args3,
77316
77433
  tool: async (client, args4, ctx) => {
77317
77434
  const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -80783,7 +80900,7 @@ var init_bankAccountsLink2 = __esm(() => {
80783
80900
  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.
80784
80901
 
80785
80902
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
80786
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
80903
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
80787
80904
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
80788
80905
  endpoint to wait for the new payment methods to be available for use.
80789
80906
 
@@ -81350,7 +81467,7 @@ var init_capabilitiesDisable2 = __esm(() => {
81350
81467
  };
81351
81468
  tool$capabilitiesDisable = {
81352
81469
  name: "capabilities-disable",
81353
- description: `Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81470
+ 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.
81354
81471
 
81355
81472
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81356
81473
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -81464,7 +81581,7 @@ var init_capabilitiesGet2 = __esm(() => {
81464
81581
  };
81465
81582
  tool$capabilitiesGet = {
81466
81583
  name: "capabilities-get",
81467
- description: `Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81584
+ 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.
81468
81585
 
81469
81586
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81470
81587
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -81577,7 +81694,7 @@ var init_capabilitiesList2 = __esm(() => {
81577
81694
  name: "capabilities-list",
81578
81695
  description: `Retrieve all the capabilities an account has requested.
81579
81696
 
81580
- Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81697
+ Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
81581
81698
 
81582
81699
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81583
81700
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -81690,7 +81807,7 @@ var init_capabilitiesRequest2 = __esm(() => {
81690
81807
  };
81691
81808
  tool$capabilitiesRequest = {
81692
81809
  name: "capabilities-request",
81693
- description: `Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81810
+ description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
81694
81811
 
81695
81812
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81696
81813
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -81730,7 +81847,7 @@ async function $do42(client, request, options) {
81730
81847
  charEncoding: "percent"
81731
81848
  })
81732
81849
  };
81733
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
81850
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
81734
81851
  const headers = new Headers(compactMap({
81735
81852
  Accept: "application/json"
81736
81853
  }));
@@ -81845,7 +81962,7 @@ async function $do43(client, request, options) {
81845
81962
  charEncoding: "percent"
81846
81963
  })
81847
81964
  };
81848
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}/details")(pathParams);
81965
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
81849
81966
  const headers = new Headers(compactMap({
81850
81967
  Accept: "application/json"
81851
81968
  }));
@@ -81958,7 +82075,7 @@ async function $do44(client, request, options) {
81958
82075
  charEncoding: "percent"
81959
82076
  })
81960
82077
  };
81961
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
82078
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
81962
82079
  const query = encodeFormQuery({
81963
82080
  count: payload.count,
81964
82081
  skip: payload.skip,
@@ -82075,7 +82192,7 @@ async function $do45(client, request, options) {
82075
82192
  charEncoding: "percent"
82076
82193
  })
82077
82194
  };
82078
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
82195
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
82079
82196
  const headers = new Headers(compactMap({
82080
82197
  "Content-Type": "application/json",
82081
82198
  Accept: "application/json"
@@ -82192,7 +82309,7 @@ async function $do46(client, request, options) {
82192
82309
  charEncoding: "percent"
82193
82310
  })
82194
82311
  };
82195
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
82312
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
82196
82313
  const headers = new Headers(compactMap({
82197
82314
  "Content-Type": "application/json",
82198
82315
  Accept: "application/json"
@@ -94216,11 +94333,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94216
94333
  };
94217
94334
  });
94218
94335
 
94219
- // src/funcs/transfersListRefunds.ts
94220
- function transfersListRefunds(client, request, options) {
94336
+ // src/funcs/transfersListCancellations.ts
94337
+ function transfersListCancellations(client, request, options) {
94221
94338
  return new APIPromise($do149(client, request, options));
94222
94339
  }
94223
94340
  async function $do149(client, request, options) {
94341
+ const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
94342
+ if (!parsed.ok) {
94343
+ return [parsed, { status: "invalid" }];
94344
+ }
94345
+ const payload = parsed.value;
94346
+ const body = null;
94347
+ const pathParams = {
94348
+ accountID: encodeSimple("accountID", payload.accountID, {
94349
+ explode: false,
94350
+ charEncoding: "percent"
94351
+ }),
94352
+ transferID: encodeSimple("transferID", payload.transferID, {
94353
+ explode: false,
94354
+ charEncoding: "percent"
94355
+ })
94356
+ };
94357
+ const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
94358
+ const headers = new Headers(compactMap({
94359
+ Accept: "application/json"
94360
+ }));
94361
+ const securityInput = await extractSecurity(client._options.security);
94362
+ const requestSecurity = resolveGlobalSecurity(securityInput);
94363
+ const context = {
94364
+ options: client._options,
94365
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
94366
+ operationID: "listCancellations",
94367
+ oAuth2Scopes: null,
94368
+ resolvedSecurity: requestSecurity,
94369
+ securitySource: client._options.security,
94370
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
94371
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
94372
+ };
94373
+ const requestRes = client._createRequest(context, {
94374
+ security: requestSecurity,
94375
+ method: "GET",
94376
+ baseURL: options?.serverURL,
94377
+ path,
94378
+ headers,
94379
+ body,
94380
+ userAgent: client._options.userAgent,
94381
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
94382
+ }, options);
94383
+ if (!requestRes.ok) {
94384
+ return [requestRes, { status: "invalid" }];
94385
+ }
94386
+ const req = requestRes.value;
94387
+ const doResult = await client._do(req, {
94388
+ context,
94389
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
94390
+ retryConfig: context.retryConfig,
94391
+ retryCodes: context.retryCodes
94392
+ });
94393
+ if (!doResult.ok) {
94394
+ return [doResult, { status: "request-error", request: req }];
94395
+ }
94396
+ const response = doResult.value;
94397
+ const responseFields = {
94398
+ HttpMeta: { Response: response, Request: req }
94399
+ };
94400
+ const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
94401
+ hdrs: true,
94402
+ key: "Result"
94403
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
94404
+ if (!result.ok) {
94405
+ return [result, { status: "complete", request: req, response }];
94406
+ }
94407
+ return [result, { status: "complete", request: req, response }];
94408
+ }
94409
+ var init_transfersListCancellations = __esm(() => {
94410
+ init_encodings();
94411
+ init_http();
94412
+ init_matchers();
94413
+ init_primitives();
94414
+ init_schemas4();
94415
+ init_security();
94416
+ init_url();
94417
+ init_operations();
94418
+ init_async();
94419
+ });
94420
+
94421
+ // src/mcp-server/tools/transfersListCancellations.ts
94422
+ var args144, tool$transfersListCancellations;
94423
+ var init_transfersListCancellations2 = __esm(() => {
94424
+ init_transfersListCancellations();
94425
+ init_operations();
94426
+ init_tools();
94427
+ args144 = {
94428
+ request: ListCancellationsRequest$inboundSchema
94429
+ };
94430
+ tool$transfersListCancellations = {
94431
+ name: "transfers-list-cancellations",
94432
+ description: ` Get a list of cancellations for a transfer.
94433
+
94434
+ To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
94435
+ to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94436
+ args: args144,
94437
+ tool: async (client, args145, ctx) => {
94438
+ const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94439
+ if (!result.ok) {
94440
+ return {
94441
+ content: [{ type: "text", text: result.error.message }],
94442
+ isError: true
94443
+ };
94444
+ }
94445
+ const value = result.value.result;
94446
+ return formatResult(value, apiCall);
94447
+ }
94448
+ };
94449
+ });
94450
+
94451
+ // src/funcs/transfersListRefunds.ts
94452
+ function transfersListRefunds(client, request, options) {
94453
+ return new APIPromise($do150(client, request, options));
94454
+ }
94455
+ async function $do150(client, request, options) {
94224
94456
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
94225
94457
  if (!parsed.ok) {
94226
94458
  return [parsed, { status: "invalid" }];
@@ -94302,12 +94534,12 @@ var init_transfersListRefunds = __esm(() => {
94302
94534
  });
94303
94535
 
94304
94536
  // src/mcp-server/tools/transfersListRefunds.ts
94305
- var args144, tool$transfersListRefunds;
94537
+ var args145, tool$transfersListRefunds;
94306
94538
  var init_transfersListRefunds2 = __esm(() => {
94307
94539
  init_transfersListRefunds();
94308
94540
  init_operations();
94309
94541
  init_tools();
94310
- args144 = {
94542
+ args145 = {
94311
94543
  request: ListRefundsRequest$inboundSchema
94312
94544
  };
94313
94545
  tool$transfersListRefunds = {
@@ -94316,9 +94548,9 @@ var init_transfersListRefunds2 = __esm(() => {
94316
94548
 
94317
94549
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94318
94550
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94319
- args: args144,
94320
- tool: async (client, args145, ctx) => {
94321
- const [result, apiCall] = await transfersListRefunds(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94551
+ args: args145,
94552
+ tool: async (client, args146, ctx) => {
94553
+ const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94322
94554
  if (!result.ok) {
94323
94555
  return {
94324
94556
  content: [{ type: "text", text: result.error.message }],
@@ -94333,9 +94565,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94333
94565
 
94334
94566
  // src/funcs/transfersUpdate.ts
94335
94567
  function transfersUpdate(client, request, options) {
94336
- return new APIPromise($do150(client, request, options));
94568
+ return new APIPromise($do151(client, request, options));
94337
94569
  }
94338
- async function $do150(client, request, options) {
94570
+ async function $do151(client, request, options) {
94339
94571
  const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
94340
94572
  if (!parsed.ok) {
94341
94573
  return [parsed, { status: "invalid" }];
@@ -94421,12 +94653,12 @@ var init_transfersUpdate = __esm(() => {
94421
94653
  });
94422
94654
 
94423
94655
  // src/mcp-server/tools/transfersUpdate.ts
94424
- var args145, tool$transfersUpdate;
94656
+ var args146, tool$transfersUpdate;
94425
94657
  var init_transfersUpdate2 = __esm(() => {
94426
94658
  init_transfersUpdate();
94427
94659
  init_operations();
94428
94660
  init_tools();
94429
- args145 = {
94661
+ args146 = {
94430
94662
  request: UpdateTransferRequest$inboundSchema
94431
94663
  };
94432
94664
  tool$transfersUpdate = {
@@ -94437,9 +94669,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
94437
94669
 
94438
94670
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94439
94671
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
94440
- args: args145,
94441
- tool: async (client, args146, ctx) => {
94442
- const [result, apiCall] = await transfersUpdate(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94672
+ args: args146,
94673
+ tool: async (client, args147, ctx) => {
94674
+ const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94443
94675
  if (!result.ok) {
94444
94676
  return {
94445
94677
  content: [{ type: "text", text: result.error.message }],
@@ -94454,9 +94686,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
94454
94686
 
94455
94687
  // src/funcs/underwritingGet.ts
94456
94688
  function underwritingGet(client, request, options) {
94457
- return new APIPromise($do151(client, request, options));
94689
+ return new APIPromise($do152(client, request, options));
94458
94690
  }
94459
- async function $do151(client, request, options) {
94691
+ async function $do152(client, request, options) {
94460
94692
  const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
94461
94693
  if (!parsed.ok) {
94462
94694
  return [parsed, { status: "invalid" }];
@@ -94534,12 +94766,12 @@ var init_underwritingGet = __esm(() => {
94534
94766
  });
94535
94767
 
94536
94768
  // src/mcp-server/tools/underwritingGet.ts
94537
- var args146, tool$underwritingGet;
94769
+ var args147, tool$underwritingGet;
94538
94770
  var init_underwritingGet2 = __esm(() => {
94539
94771
  init_underwritingGet();
94540
94772
  init_operations();
94541
94773
  init_tools();
94542
- args146 = {
94774
+ args147 = {
94543
94775
  request: GetUnderwritingRequest$inboundSchema
94544
94776
  };
94545
94777
  tool$underwritingGet = {
@@ -94550,9 +94782,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
94550
94782
 
94551
94783
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94552
94784
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
94553
- args: args146,
94554
- tool: async (client, args147, ctx) => {
94555
- const [result, apiCall] = await underwritingGet(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94785
+ args: args147,
94786
+ tool: async (client, args148, ctx) => {
94787
+ const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94556
94788
  if (!result.ok) {
94557
94789
  return {
94558
94790
  content: [{ type: "text", text: result.error.message }],
@@ -94567,9 +94799,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
94567
94799
 
94568
94800
  // src/funcs/underwritingUpsert.ts
94569
94801
  function underwritingUpsert(client, request, options) {
94570
- return new APIPromise($do152(client, request, options));
94802
+ return new APIPromise($do153(client, request, options));
94571
94803
  }
94572
- async function $do152(client, request, options) {
94804
+ async function $do153(client, request, options) {
94573
94805
  const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
94574
94806
  if (!parsed.ok) {
94575
94807
  return [parsed, { status: "invalid" }];
@@ -94653,12 +94885,12 @@ var init_underwritingUpsert = __esm(() => {
94653
94885
  });
94654
94886
 
94655
94887
  // src/mcp-server/tools/underwritingUpsert.ts
94656
- var args147, tool$underwritingUpsert;
94888
+ var args148, tool$underwritingUpsert;
94657
94889
  var init_underwritingUpsert2 = __esm(() => {
94658
94890
  init_underwritingUpsert();
94659
94891
  init_operations();
94660
94892
  init_tools();
94661
- args147 = {
94893
+ args148 = {
94662
94894
  request: UpsertUnderwritingRequest$inboundSchema
94663
94895
  };
94664
94896
  tool$underwritingUpsert = {
@@ -94669,9 +94901,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
94669
94901
 
94670
94902
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94671
94903
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
94672
- args: args147,
94673
- tool: async (client, args148, ctx) => {
94674
- const [result, apiCall] = await underwritingUpsert(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94904
+ args: args148,
94905
+ tool: async (client, args149, ctx) => {
94906
+ const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94675
94907
  if (!result.ok) {
94676
94908
  return {
94677
94909
  content: [{ type: "text", text: result.error.message }],
@@ -94686,9 +94918,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
94686
94918
 
94687
94919
  // src/funcs/walletsCreate.ts
94688
94920
  function walletsCreate(client, request, options) {
94689
- return new APIPromise($do153(client, request, options));
94921
+ return new APIPromise($do154(client, request, options));
94690
94922
  }
94691
- async function $do153(client, request, options) {
94923
+ async function $do154(client, request, options) {
94692
94924
  const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
94693
94925
  if (!parsed.ok) {
94694
94926
  return [parsed, { status: "invalid" }];
@@ -94770,12 +95002,12 @@ var init_walletsCreate = __esm(() => {
94770
95002
  });
94771
95003
 
94772
95004
  // src/mcp-server/tools/walletsCreate.ts
94773
- var args148, tool$walletsCreate;
95005
+ var args149, tool$walletsCreate;
94774
95006
  var init_walletsCreate2 = __esm(() => {
94775
95007
  init_walletsCreate();
94776
95008
  init_operations();
94777
95009
  init_tools();
94778
- args148 = {
95010
+ args149 = {
94779
95011
  request: CreateWalletRequest$inboundSchema
94780
95012
  };
94781
95013
  tool$walletsCreate = {
@@ -94786,9 +95018,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94786
95018
 
94787
95019
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94788
95020
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94789
- args: args148,
94790
- tool: async (client, args149, ctx) => {
94791
- const [result, apiCall] = await walletsCreate(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95021
+ args: args149,
95022
+ tool: async (client, args150, ctx) => {
95023
+ const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94792
95024
  if (!result.ok) {
94793
95025
  return {
94794
95026
  content: [{ type: "text", text: result.error.message }],
@@ -94803,9 +95035,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94803
95035
 
94804
95036
  // src/funcs/walletsGet.ts
94805
95037
  function walletsGet(client, request, options) {
94806
- return new APIPromise($do154(client, request, options));
95038
+ return new APIPromise($do155(client, request, options));
94807
95039
  }
94808
- async function $do154(client, request, options) {
95040
+ async function $do155(client, request, options) {
94809
95041
  const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
94810
95042
  if (!parsed.ok) {
94811
95043
  return [parsed, { status: "invalid" }];
@@ -94887,12 +95119,12 @@ var init_walletsGet = __esm(() => {
94887
95119
  });
94888
95120
 
94889
95121
  // src/mcp-server/tools/walletsGet.ts
94890
- var args149, tool$walletsGet;
95122
+ var args150, tool$walletsGet;
94891
95123
  var init_walletsGet2 = __esm(() => {
94892
95124
  init_walletsGet();
94893
95125
  init_operations();
94894
95126
  init_tools();
94895
- args149 = {
95127
+ args150 = {
94896
95128
  request: GetWalletRequest$inboundSchema
94897
95129
  };
94898
95130
  tool$walletsGet = {
@@ -94903,9 +95135,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94903
95135
 
94904
95136
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94905
95137
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94906
- args: args149,
94907
- tool: async (client, args150, ctx) => {
94908
- const [result, apiCall] = await walletsGet(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95138
+ args: args150,
95139
+ tool: async (client, args151, ctx) => {
95140
+ const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94909
95141
  if (!result.ok) {
94910
95142
  return {
94911
95143
  content: [{ type: "text", text: result.error.message }],
@@ -94920,9 +95152,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94920
95152
 
94921
95153
  // src/funcs/walletsList.ts
94922
95154
  function walletsList(client, request, options) {
94923
- return new APIPromise($do155(client, request, options));
95155
+ return new APIPromise($do156(client, request, options));
94924
95156
  }
94925
- async function $do155(client, request, options) {
95157
+ async function $do156(client, request, options) {
94926
95158
  const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
94927
95159
  if (!parsed.ok) {
94928
95160
  return [parsed, { status: "invalid" }];
@@ -95010,12 +95242,12 @@ var init_walletsList = __esm(() => {
95010
95242
  });
95011
95243
 
95012
95244
  // src/mcp-server/tools/walletsList.ts
95013
- var args150, tool$walletsList;
95245
+ var args151, tool$walletsList;
95014
95246
  var init_walletsList2 = __esm(() => {
95015
95247
  init_walletsList();
95016
95248
  init_operations();
95017
95249
  init_tools();
95018
- args150 = {
95250
+ args151 = {
95019
95251
  request: ListWalletsRequest$inboundSchema
95020
95252
  };
95021
95253
  tool$walletsList = {
@@ -95026,9 +95258,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
95026
95258
 
95027
95259
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95028
95260
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95029
- args: args150,
95030
- tool: async (client, args151, ctx) => {
95031
- const [result, apiCall] = await walletsList(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95261
+ args: args151,
95262
+ tool: async (client, args152, ctx) => {
95263
+ const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95032
95264
  if (!result.ok) {
95033
95265
  return {
95034
95266
  content: [{ type: "text", text: result.error.message }],
@@ -95043,9 +95275,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95043
95275
 
95044
95276
  // src/funcs/walletsUpdate.ts
95045
95277
  function walletsUpdate(client, request, options) {
95046
- return new APIPromise($do156(client, request, options));
95278
+ return new APIPromise($do157(client, request, options));
95047
95279
  }
95048
- async function $do156(client, request, options) {
95280
+ async function $do157(client, request, options) {
95049
95281
  const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
95050
95282
  if (!parsed.ok) {
95051
95283
  return [parsed, { status: "invalid" }];
@@ -95131,12 +95363,12 @@ var init_walletsUpdate = __esm(() => {
95131
95363
  });
95132
95364
 
95133
95365
  // src/mcp-server/tools/walletsUpdate.ts
95134
- var args151, tool$walletsUpdate;
95366
+ var args152, tool$walletsUpdate;
95135
95367
  var init_walletsUpdate2 = __esm(() => {
95136
95368
  init_walletsUpdate();
95137
95369
  init_operations();
95138
95370
  init_tools();
95139
- args151 = {
95371
+ args152 = {
95140
95372
  request: UpdateWalletRequest$inboundSchema
95141
95373
  };
95142
95374
  tool$walletsUpdate = {
@@ -95147,9 +95379,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
95147
95379
 
95148
95380
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95149
95381
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
95150
- args: args151,
95151
- tool: async (client, args152, ctx) => {
95152
- const [result, apiCall] = await walletsUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95382
+ args: args152,
95383
+ tool: async (client, args153, ctx) => {
95384
+ const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95153
95385
  if (!result.ok) {
95154
95386
  return {
95155
95387
  content: [{ type: "text", text: result.error.message }],
@@ -95164,9 +95396,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
95164
95396
 
95165
95397
  // src/funcs/walletTransactionsGet.ts
95166
95398
  function walletTransactionsGet(client, request, options) {
95167
- return new APIPromise($do157(client, request, options));
95399
+ return new APIPromise($do158(client, request, options));
95168
95400
  }
95169
- async function $do157(client, request, options) {
95401
+ async function $do158(client, request, options) {
95170
95402
  const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
95171
95403
  if (!parsed.ok) {
95172
95404
  return [parsed, { status: "invalid" }];
@@ -95252,12 +95484,12 @@ var init_walletTransactionsGet = __esm(() => {
95252
95484
  });
95253
95485
 
95254
95486
  // src/mcp-server/tools/walletTransactionsGet.ts
95255
- var args152, tool$walletTransactionsGet;
95487
+ var args153, tool$walletTransactionsGet;
95256
95488
  var init_walletTransactionsGet2 = __esm(() => {
95257
95489
  init_walletTransactionsGet();
95258
95490
  init_operations();
95259
95491
  init_tools();
95260
- args152 = {
95492
+ args153 = {
95261
95493
  request: GetWalletTransactionRequest$inboundSchema
95262
95494
  };
95263
95495
  tool$walletTransactionsGet = {
@@ -95268,9 +95500,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
95268
95500
 
95269
95501
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95270
95502
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95271
- args: args152,
95272
- tool: async (client, args153, ctx) => {
95273
- const [result, apiCall] = await walletTransactionsGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95503
+ args: args153,
95504
+ tool: async (client, args154, ctx) => {
95505
+ const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95274
95506
  if (!result.ok) {
95275
95507
  return {
95276
95508
  content: [{ type: "text", text: result.error.message }],
@@ -95285,9 +95517,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95285
95517
 
95286
95518
  // src/funcs/walletTransactionsList.ts
95287
95519
  function walletTransactionsList(client, request, options) {
95288
- return new APIPromise($do158(client, request, options));
95520
+ return new APIPromise($do159(client, request, options));
95289
95521
  }
95290
- async function $do158(client, request, options) {
95522
+ async function $do159(client, request, options) {
95291
95523
  const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
95292
95524
  if (!parsed.ok) {
95293
95525
  return [parsed, { status: "invalid" }];
@@ -95387,12 +95619,12 @@ var init_walletTransactionsList = __esm(() => {
95387
95619
  });
95388
95620
 
95389
95621
  // src/mcp-server/tools/walletTransactionsList.ts
95390
- var args153, tool$walletTransactionsList;
95622
+ var args154, tool$walletTransactionsList;
95391
95623
  var init_walletTransactionsList2 = __esm(() => {
95392
95624
  init_walletTransactionsList();
95393
95625
  init_operations();
95394
95626
  init_tools();
95395
- args153 = {
95627
+ args154 = {
95396
95628
  request: ListWalletTransactionsRequest$inboundSchema
95397
95629
  };
95398
95630
  tool$walletTransactionsList = {
@@ -95403,9 +95635,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
95403
95635
 
95404
95636
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95405
95637
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95406
- args: args153,
95407
- tool: async (client, args154, ctx) => {
95408
- const [result, apiCall] = await walletTransactionsList(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95638
+ args: args154,
95639
+ tool: async (client, args155, ctx) => {
95640
+ const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95409
95641
  if (!result.ok) {
95410
95642
  return {
95411
95643
  content: [{ type: "text", text: result.error.message }],
@@ -95420,9 +95652,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95420
95652
 
95421
95653
  // src/funcs/webhooksCreate.ts
95422
95654
  function webhooksCreate(client, request, options) {
95423
- return new APIPromise($do159(client, request, options));
95655
+ return new APIPromise($do160(client, request, options));
95424
95656
  }
95425
- async function $do159(client, request, options) {
95657
+ async function $do160(client, request, options) {
95426
95658
  const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
95427
95659
  if (!parsed.ok) {
95428
95660
  return [parsed, { status: "invalid" }];
@@ -95499,20 +95731,20 @@ var init_webhooksCreate = __esm(() => {
95499
95731
  });
95500
95732
 
95501
95733
  // src/mcp-server/tools/webhooksCreate.ts
95502
- var args154, tool$webhooksCreate;
95734
+ var args155, tool$webhooksCreate;
95503
95735
  var init_webhooksCreate2 = __esm(() => {
95504
95736
  init_webhooksCreate();
95505
95737
  init_components();
95506
95738
  init_tools();
95507
- args154 = {
95739
+ args155 = {
95508
95740
  request: CreateWebhook$inboundSchema
95509
95741
  };
95510
95742
  tool$webhooksCreate = {
95511
95743
  name: "webhooks-create",
95512
95744
  description: `Create a new webhook for the account.`,
95513
- args: args154,
95514
- tool: async (client, args155, ctx) => {
95515
- const [result, apiCall] = await webhooksCreate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95745
+ args: args155,
95746
+ tool: async (client, args156, ctx) => {
95747
+ const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95516
95748
  if (!result.ok) {
95517
95749
  return {
95518
95750
  content: [{ type: "text", text: result.error.message }],
@@ -95527,9 +95759,9 @@ var init_webhooksCreate2 = __esm(() => {
95527
95759
 
95528
95760
  // src/funcs/webhooksDisable.ts
95529
95761
  function webhooksDisable(client, request, options) {
95530
- return new APIPromise($do160(client, request, options));
95762
+ return new APIPromise($do161(client, request, options));
95531
95763
  }
95532
- async function $do160(client, request, options) {
95764
+ async function $do161(client, request, options) {
95533
95765
  const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95534
95766
  if (!parsed.ok) {
95535
95767
  return [parsed, { status: "invalid" }];
@@ -95607,20 +95839,20 @@ var init_webhooksDisable = __esm(() => {
95607
95839
  });
95608
95840
 
95609
95841
  // src/mcp-server/tools/webhooksDisable.ts
95610
- var args155, tool$webhooksDisable;
95842
+ var args156, tool$webhooksDisable;
95611
95843
  var init_webhooksDisable2 = __esm(() => {
95612
95844
  init_webhooksDisable();
95613
95845
  init_operations();
95614
95846
  init_tools();
95615
- args155 = {
95847
+ args156 = {
95616
95848
  request: DisableWebhookRequest$inboundSchema
95617
95849
  };
95618
95850
  tool$webhooksDisable = {
95619
95851
  name: "webhooks-disable",
95620
95852
  description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
95621
- args: args155,
95622
- tool: async (client, args156, ctx) => {
95623
- const [result, apiCall] = await webhooksDisable(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95853
+ args: args156,
95854
+ tool: async (client, args157, ctx) => {
95855
+ const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95624
95856
  if (!result.ok) {
95625
95857
  return {
95626
95858
  content: [{ type: "text", text: result.error.message }],
@@ -95634,9 +95866,9 @@ var init_webhooksDisable2 = __esm(() => {
95634
95866
 
95635
95867
  // src/funcs/webhooksGet.ts
95636
95868
  function webhooksGet(client, request, options) {
95637
- return new APIPromise($do161(client, request, options));
95869
+ return new APIPromise($do162(client, request, options));
95638
95870
  }
95639
- async function $do161(client, request, options) {
95871
+ async function $do162(client, request, options) {
95640
95872
  const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95641
95873
  if (!parsed.ok) {
95642
95874
  return [parsed, { status: "invalid" }];
@@ -95714,20 +95946,20 @@ var init_webhooksGet = __esm(() => {
95714
95946
  });
95715
95947
 
95716
95948
  // src/mcp-server/tools/webhooksGet.ts
95717
- var args156, tool$webhooksGet;
95949
+ var args157, tool$webhooksGet;
95718
95950
  var init_webhooksGet2 = __esm(() => {
95719
95951
  init_webhooksGet();
95720
95952
  init_operations();
95721
95953
  init_tools();
95722
- args156 = {
95954
+ args157 = {
95723
95955
  request: GetWebhookRequest$inboundSchema
95724
95956
  };
95725
95957
  tool$webhooksGet = {
95726
95958
  name: "webhooks-get",
95727
95959
  description: `Get details of a specific webhook.`,
95728
- args: args156,
95729
- tool: async (client, args157, ctx) => {
95730
- const [result, apiCall] = await webhooksGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95960
+ args: args157,
95961
+ tool: async (client, args158, ctx) => {
95962
+ const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95731
95963
  if (!result.ok) {
95732
95964
  return {
95733
95965
  content: [{ type: "text", text: result.error.message }],
@@ -95742,9 +95974,9 @@ var init_webhooksGet2 = __esm(() => {
95742
95974
 
95743
95975
  // src/funcs/webhooksGetSecret.ts
95744
95976
  function webhooksGetSecret(client, request, options) {
95745
- return new APIPromise($do162(client, request, options));
95977
+ return new APIPromise($do163(client, request, options));
95746
95978
  }
95747
- async function $do162(client, request, options) {
95979
+ async function $do163(client, request, options) {
95748
95980
  const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
95749
95981
  if (!parsed.ok) {
95750
95982
  return [parsed, { status: "invalid" }];
@@ -95822,20 +96054,20 @@ var init_webhooksGetSecret = __esm(() => {
95822
96054
  });
95823
96055
 
95824
96056
  // src/mcp-server/tools/webhooksGetSecret.ts
95825
- var args157, tool$webhooksGetSecret;
96057
+ var args158, tool$webhooksGetSecret;
95826
96058
  var init_webhooksGetSecret2 = __esm(() => {
95827
96059
  init_webhooksGetSecret();
95828
96060
  init_operations();
95829
96061
  init_tools();
95830
- args157 = {
96062
+ args158 = {
95831
96063
  request: GetWebhookSecretRequest$inboundSchema
95832
96064
  };
95833
96065
  tool$webhooksGetSecret = {
95834
96066
  name: "webhooks-get-secret",
95835
96067
  description: `Get the secret key for verifying webhook payloads.`,
95836
- args: args157,
95837
- tool: async (client, args158, ctx) => {
95838
- const [result, apiCall] = await webhooksGetSecret(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96068
+ args: args158,
96069
+ tool: async (client, args159, ctx) => {
96070
+ const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95839
96071
  if (!result.ok) {
95840
96072
  return {
95841
96073
  content: [{ type: "text", text: result.error.message }],
@@ -95850,9 +96082,9 @@ var init_webhooksGetSecret2 = __esm(() => {
95850
96082
 
95851
96083
  // src/funcs/webhooksList.ts
95852
96084
  function webhooksList(client, options) {
95853
- return new APIPromise($do163(client, options));
96085
+ return new APIPromise($do164(client, options));
95854
96086
  }
95855
- async function $do163(client, options) {
96087
+ async function $do164(client, options) {
95856
96088
  const path = pathToFunc("/webhooks")();
95857
96089
  const headers = new Headers(compactMap({
95858
96090
  Accept: "application/json"
@@ -95938,9 +96170,9 @@ var init_webhooksList2 = __esm(() => {
95938
96170
 
95939
96171
  // src/funcs/webhooksListEventTypes.ts
95940
96172
  function webhooksListEventTypes(client, options) {
95941
- return new APIPromise($do164(client, options));
96173
+ return new APIPromise($do165(client, options));
95942
96174
  }
95943
- async function $do164(client, options) {
96175
+ async function $do165(client, options) {
95944
96176
  const path = pathToFunc("/event-types")();
95945
96177
  const headers = new Headers(compactMap({
95946
96178
  Accept: "application/json"
@@ -96026,9 +96258,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
96026
96258
 
96027
96259
  // src/funcs/webhooksPing.ts
96028
96260
  function webhooksPing(client, request, options) {
96029
- return new APIPromise($do165(client, request, options));
96261
+ return new APIPromise($do166(client, request, options));
96030
96262
  }
96031
- async function $do165(client, request, options) {
96263
+ async function $do166(client, request, options) {
96032
96264
  const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
96033
96265
  if (!parsed.ok) {
96034
96266
  return [parsed, { status: "invalid" }];
@@ -96106,20 +96338,20 @@ var init_webhooksPing = __esm(() => {
96106
96338
  });
96107
96339
 
96108
96340
  // src/mcp-server/tools/webhooksPing.ts
96109
- var args158, tool$webhooksPing;
96341
+ var args159, tool$webhooksPing;
96110
96342
  var init_webhooksPing2 = __esm(() => {
96111
96343
  init_webhooksPing();
96112
96344
  init_operations();
96113
96345
  init_tools();
96114
- args158 = {
96346
+ args159 = {
96115
96347
  request: PingWebhookRequest$inboundSchema
96116
96348
  };
96117
96349
  tool$webhooksPing = {
96118
96350
  name: "webhooks-ping",
96119
96351
  description: `Send a test ping to a webhook to verify it is configured correctly.`,
96120
- args: args158,
96121
- tool: async (client, args159, ctx) => {
96122
- const [result, apiCall] = await webhooksPing(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96352
+ args: args159,
96353
+ tool: async (client, args160, ctx) => {
96354
+ const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96123
96355
  if (!result.ok) {
96124
96356
  return {
96125
96357
  content: [{ type: "text", text: result.error.message }],
@@ -96134,9 +96366,9 @@ var init_webhooksPing2 = __esm(() => {
96134
96366
 
96135
96367
  // src/funcs/webhooksUpdate.ts
96136
96368
  function webhooksUpdate(client, request, options) {
96137
- return new APIPromise($do166(client, request, options));
96369
+ return new APIPromise($do167(client, request, options));
96138
96370
  }
96139
- async function $do166(client, request, options) {
96371
+ async function $do167(client, request, options) {
96140
96372
  const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
96141
96373
  if (!parsed.ok) {
96142
96374
  return [parsed, { status: "invalid" }];
@@ -96218,20 +96450,20 @@ var init_webhooksUpdate = __esm(() => {
96218
96450
  });
96219
96451
 
96220
96452
  // src/mcp-server/tools/webhooksUpdate.ts
96221
- var args159, tool$webhooksUpdate;
96453
+ var args160, tool$webhooksUpdate;
96222
96454
  var init_webhooksUpdate2 = __esm(() => {
96223
96455
  init_webhooksUpdate();
96224
96456
  init_operations();
96225
96457
  init_tools();
96226
- args159 = {
96458
+ args160 = {
96227
96459
  request: UpdateWebhookRequest$inboundSchema
96228
96460
  };
96229
96461
  tool$webhooksUpdate = {
96230
96462
  name: "webhooks-update",
96231
96463
  description: `Update an existing webhook.`,
96232
- args: args159,
96233
- tool: async (client, args160, ctx) => {
96234
- const [result, apiCall] = await webhooksUpdate(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96464
+ args: args160,
96465
+ tool: async (client, args161, ctx) => {
96466
+ const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96235
96467
  if (!result.ok) {
96236
96468
  return {
96237
96469
  content: [{ type: "text", text: result.error.message }],
@@ -96248,7 +96480,7 @@ var init_webhooksUpdate2 = __esm(() => {
96248
96480
  function createMCPServer(deps) {
96249
96481
  const server = new McpServer({
96250
96482
  name: "Moov",
96251
- version: "25.6.0"
96483
+ version: "25.6.2"
96252
96484
  });
96253
96485
  const client = new MoovCore({
96254
96486
  security: deps.security,
@@ -96376,6 +96608,7 @@ function createMCPServer(deps) {
96376
96608
  tool(tool$transfersGet);
96377
96609
  tool(tool$transfersUpdate);
96378
96610
  tool(tool$transfersCreateCancellation);
96611
+ tool(tool$transfersListCancellations);
96379
96612
  tool(tool$transfersGetCancellation);
96380
96613
  tool(tool$transfersInitiateRefund);
96381
96614
  tool(tool$transfersListRefunds);
@@ -96584,6 +96817,7 @@ var init_server2 = __esm(() => {
96584
96817
  init_transfersGetRefund2();
96585
96818
  init_transfersInitiateRefund2();
96586
96819
  init_transfersList2();
96820
+ init_transfersListCancellations2();
96587
96821
  init_transfersListRefunds2();
96588
96822
  init_transfersUpdate2();
96589
96823
  init_underwritingGet2();
@@ -97804,7 +98038,7 @@ var routes = rn({
97804
98038
  var app = Ve(routes, {
97805
98039
  name: "mcp",
97806
98040
  versionInfo: {
97807
- currentVersion: "25.6.0"
98041
+ currentVersion: "25.6.2"
97808
98042
  }
97809
98043
  });
97810
98044
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -97812,5 +98046,5 @@ export {
97812
98046
  app
97813
98047
  };
97814
98048
 
97815
- //# debugId=6E965C87E14C187864756E2164756E21
98049
+ //# debugId=6665D7EC7AA87A7964756E2164756E21
97816
98050
  //# sourceMappingURL=mcp-server.js.map