@moovio/sdk 26.3.0 → 26.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/README.md +84 -80
  2. package/bin/mcp-server.js +556 -322
  3. package/bin/mcp-server.js.map +64 -65
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/bankAccountsLink.d.ts +1 -1
  9. package/funcs/bankAccountsLink.js +1 -1
  10. package/funcs/capabilitiesDisable.d.ts +1 -1
  11. package/funcs/capabilitiesDisable.js +1 -1
  12. package/funcs/capabilitiesGet.d.ts +1 -1
  13. package/funcs/capabilitiesGet.js +1 -1
  14. package/funcs/capabilitiesList.d.ts +1 -1
  15. package/funcs/capabilitiesList.js +1 -1
  16. package/funcs/capabilitiesRequest.d.ts +1 -1
  17. package/funcs/capabilitiesRequest.js +1 -1
  18. package/funcs/cardIssuingGet.js +1 -1
  19. package/funcs/cardIssuingGet.js.map +1 -1
  20. package/funcs/cardIssuingGetFull.js +1 -1
  21. package/funcs/cardIssuingGetFull.js.map +1 -1
  22. package/funcs/cardIssuingList.js +1 -1
  23. package/funcs/cardIssuingList.js.map +1 -1
  24. package/funcs/cardIssuingRequest.js +1 -1
  25. package/funcs/cardIssuingRequest.js.map +1 -1
  26. package/funcs/cardIssuingUpdate.js +1 -1
  27. package/funcs/cardIssuingUpdate.js.map +1 -1
  28. package/funcs/transfersListCancellations.d.ts +17 -0
  29. package/funcs/transfersListCancellations.d.ts.map +1 -0
  30. package/funcs/transfersListCancellations.js +129 -0
  31. package/funcs/transfersListCancellations.js.map +1 -0
  32. package/hooks/types.d.ts +1 -0
  33. package/hooks/types.d.ts.map +1 -1
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +3 -3
  36. package/lib/config.js +3 -3
  37. package/lib/encodings.js +12 -12
  38. package/lib/encodings.js.map +1 -1
  39. package/lib/matchers.js +3 -3
  40. package/lib/matchers.js.map +1 -1
  41. package/lib/primitives.d.ts +1 -0
  42. package/lib/primitives.d.ts.map +1 -1
  43. package/lib/primitives.js +18 -0
  44. package/lib/primitives.js.map +1 -1
  45. package/lib/retries.js +7 -0
  46. package/lib/retries.js.map +1 -1
  47. package/lib/sdks.d.ts.map +1 -1
  48. package/lib/sdks.js +50 -16
  49. package/lib/sdks.js.map +1 -1
  50. package/mcp-server/mcp-server.js +1 -1
  51. package/mcp-server/server.d.ts.map +1 -1
  52. package/mcp-server/server.js +3 -1
  53. package/mcp-server/server.js.map +1 -1
  54. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  55. package/mcp-server/tools/accountsCreate.js +8 -10
  56. package/mcp-server/tools/accountsCreate.js.map +1 -1
  57. package/mcp-server/tools/bankAccountsLink.js +1 -1
  58. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  59. package/mcp-server/tools/capabilitiesGet.js +1 -1
  60. package/mcp-server/tools/capabilitiesList.js +1 -1
  61. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  62. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  63. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  64. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
  65. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  66. package/models/components/addcapabilities.d.ts +9 -0
  67. package/models/components/addcapabilities.d.ts.map +1 -1
  68. package/models/components/addcapabilities.js.map +1 -1
  69. package/models/components/capability.d.ts +7 -1
  70. package/models/components/capability.d.ts.map +1 -1
  71. package/models/components/capability.js.map +1 -1
  72. package/models/components/capabilityid.d.ts +15 -2
  73. package/models/components/capabilityid.d.ts.map +1 -1
  74. package/models/components/capabilityid.js +8 -1
  75. package/models/components/capabilityid.js.map +1 -1
  76. package/models/components/createaccount.d.ts +9 -0
  77. package/models/components/createaccount.d.ts.map +1 -1
  78. package/models/components/createaccount.js.map +1 -1
  79. package/models/components/createpaymentlink.d.ts +3 -3
  80. package/models/components/fullissuedcard.d.ts +26 -12
  81. package/models/components/fullissuedcard.d.ts.map +1 -1
  82. package/models/components/fullissuedcard.js +11 -5
  83. package/models/components/fullissuedcard.js.map +1 -1
  84. package/models/components/index.d.ts +1 -4
  85. package/models/components/index.d.ts.map +1 -1
  86. package/models/components/index.js +1 -4
  87. package/models/components/index.js.map +1 -1
  88. package/models/components/issuedcard.d.ts +26 -12
  89. package/models/components/issuedcard.d.ts.map +1 -1
  90. package/models/components/issuedcard.js +11 -5
  91. package/models/components/issuedcard.js.map +1 -1
  92. package/models/components/issuedcardstate.d.ts +2 -8
  93. package/models/components/issuedcardstate.d.ts.map +1 -1
  94. package/models/components/issuedcardstate.js +1 -5
  95. package/models/components/issuedcardstate.js.map +1 -1
  96. package/models/components/manualtermsofservice.d.ts +1 -1
  97. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  98. package/models/components/onboardinginvite.d.ts +1 -1
  99. package/models/components/onboardinginviterequest.d.ts +1 -1
  100. package/models/components/patchtransfer.d.ts +3 -0
  101. package/models/components/patchtransfer.d.ts.map +1 -1
  102. package/models/components/patchtransfer.js.map +1 -1
  103. package/models/components/paymentlink.d.ts +2 -2
  104. package/models/components/requestcard.d.ts +14 -17
  105. package/models/components/requestcard.d.ts.map +1 -1
  106. package/models/components/requestcard.js +9 -10
  107. package/models/components/requestcard.js.map +1 -1
  108. package/models/components/termsofservice.d.ts +1 -1
  109. package/models/components/updateissuedcard.d.ts +33 -8
  110. package/models/components/updateissuedcard.d.ts.map +1 -1
  111. package/models/components/updateissuedcard.js +35 -6
  112. package/models/components/updateissuedcard.js.map +1 -1
  113. package/models/components/webhookdata.d.ts +3 -2
  114. package/models/components/webhookdata.d.ts.map +1 -1
  115. package/models/components/webhookdata.js +7 -4
  116. package/models/components/webhookdata.js.map +1 -1
  117. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  118. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  119. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  120. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  121. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  122. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  123. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  124. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  125. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  126. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  127. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  128. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  129. package/models/components/webhookdatasweepcreated.js +2 -0
  130. package/models/components/webhookdatasweepcreated.js.map +1 -1
  131. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  132. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  133. package/models/components/webhookdatasweepupdated.js +2 -0
  134. package/models/components/webhookdatasweepupdated.js.map +1 -1
  135. package/models/components/webhookeventtype.d.ts +1 -0
  136. package/models/components/webhookeventtype.d.ts.map +1 -1
  137. package/models/components/webhookeventtype.js +1 -0
  138. package/models/components/webhookeventtype.js.map +1 -1
  139. package/models/errors/requestcarderror.d.ts +12 -12
  140. package/models/errors/requestcarderror.d.ts.map +1 -1
  141. package/models/errors/requestcarderror.js +17 -17
  142. package/models/errors/requestcarderror.js.map +1 -1
  143. package/models/errors/updateissuedcarderror.d.ts +9 -6
  144. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  145. package/models/errors/updateissuedcarderror.js +12 -9
  146. package/models/errors/updateissuedcarderror.js.map +1 -1
  147. package/models/operations/disablecapability.d.ts +7 -1
  148. package/models/operations/disablecapability.d.ts.map +1 -1
  149. package/models/operations/disablecapability.js.map +1 -1
  150. package/models/operations/getcapability.d.ts +7 -1
  151. package/models/operations/getcapability.d.ts.map +1 -1
  152. package/models/operations/getcapability.js.map +1 -1
  153. package/models/operations/index.d.ts +1 -0
  154. package/models/operations/index.d.ts.map +1 -1
  155. package/models/operations/index.js +1 -0
  156. package/models/operations/index.js.map +1 -1
  157. package/models/operations/linkbankaccount.d.ts +1 -1
  158. package/models/operations/listcancellations.d.ts +45 -0
  159. package/models/operations/listcancellations.d.ts.map +1 -0
  160. package/models/operations/listcancellations.js +90 -0
  161. package/models/operations/listcancellations.js.map +1 -0
  162. package/models/operations/listissuedcards.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/sdk/accounts.d.ts +8 -10
  165. package/sdk/accounts.d.ts.map +1 -1
  166. package/sdk/accounts.js +8 -10
  167. package/sdk/accounts.js.map +1 -1
  168. package/sdk/bankaccounts.d.ts +1 -1
  169. package/sdk/bankaccounts.js +1 -1
  170. package/sdk/capabilities.d.ts +4 -4
  171. package/sdk/capabilities.js +4 -4
  172. package/sdk/transfers.d.ts +7 -0
  173. package/sdk/transfers.d.ts.map +1 -1
  174. package/sdk/transfers.js +10 -0
  175. package/sdk/transfers.js.map +1 -1
  176. package/src/funcs/accountsCreate.ts +8 -10
  177. package/src/funcs/bankAccountsLink.ts +1 -1
  178. package/src/funcs/capabilitiesDisable.ts +1 -1
  179. package/src/funcs/capabilitiesGet.ts +1 -1
  180. package/src/funcs/capabilitiesList.ts +1 -1
  181. package/src/funcs/capabilitiesRequest.ts +1 -1
  182. package/src/funcs/cardIssuingGet.ts +1 -1
  183. package/src/funcs/cardIssuingGetFull.ts +3 -3
  184. package/src/funcs/cardIssuingList.ts +1 -1
  185. package/src/funcs/cardIssuingRequest.ts +1 -1
  186. package/src/funcs/cardIssuingUpdate.ts +1 -1
  187. package/src/funcs/transfersListCancellations.ts +181 -0
  188. package/src/hooks/types.ts +1 -0
  189. package/src/lib/config.ts +3 -3
  190. package/src/lib/encodings.ts +1 -1
  191. package/src/lib/matchers.ts +1 -1
  192. package/src/lib/primitives.ts +16 -0
  193. package/src/lib/retries.ts +8 -0
  194. package/src/lib/sdks.ts +54 -17
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +3 -1
  197. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  198. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  199. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  200. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  201. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  202. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  203. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  204. package/src/models/components/addcapabilities.ts +9 -0
  205. package/src/models/components/capability.ts +7 -1
  206. package/src/models/components/capabilityid.ts +15 -2
  207. package/src/models/components/createaccount.ts +9 -0
  208. package/src/models/components/createpaymentlink.ts +3 -3
  209. package/src/models/components/fullissuedcard.ts +36 -20
  210. package/src/models/components/index.ts +1 -4
  211. package/src/models/components/issuedcard.ts +36 -20
  212. package/src/models/components/issuedcardstate.ts +2 -8
  213. package/src/models/components/manualtermsofservice.ts +1 -1
  214. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  215. package/src/models/components/onboardinginvite.ts +1 -1
  216. package/src/models/components/onboardinginviterequest.ts +1 -1
  217. package/src/models/components/patchtransfer.ts +3 -0
  218. package/src/models/components/paymentlink.ts +2 -2
  219. package/src/models/components/requestcard.ts +23 -34
  220. package/src/models/components/termsofservice.ts +1 -1
  221. package/src/models/components/updateissuedcard.ts +73 -17
  222. package/src/models/components/webhookdata.ts +18 -8
  223. package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
  224. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  225. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  226. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  227. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  228. package/src/models/components/webhookeventtype.ts +1 -0
  229. package/src/models/errors/requestcarderror.ts +26 -25
  230. package/src/models/errors/updateissuedcarderror.ts +18 -13
  231. package/src/models/operations/disablecapability.ts +7 -1
  232. package/src/models/operations/getcapability.ts +7 -1
  233. package/src/models/operations/index.ts +1 -0
  234. package/src/models/operations/linkbankaccount.ts +1 -1
  235. package/src/models/operations/listcancellations.ts +120 -0
  236. package/src/models/operations/listissuedcards.ts +1 -1
  237. package/src/sdk/accounts.ts +8 -10
  238. package/src/sdk/bankaccounts.ts +1 -1
  239. package/src/sdk/capabilities.ts +4 -4
  240. package/src/sdk/transfers.ts +18 -0
  241. package/src/types/async.ts +8 -7
  242. package/types/async.d.ts.map +1 -1
  243. package/types/async.js +8 -7
  244. package/types/async.js.map +1 -1
  245. package/lib/dlv.d.ts +0 -14
  246. package/lib/dlv.d.ts.map +0 -1
  247. package/lib/dlv.js +0 -49
  248. package/lib/dlv.js.map +0 -1
  249. package/lib/is-plain-object.d.ts +0 -2
  250. package/lib/is-plain-object.d.ts.map +0 -1
  251. package/lib/is-plain-object.js +0 -41
  252. package/lib/is-plain-object.js.map +0 -1
  253. package/models/components/authorizeduser.d.ts +0 -22
  254. package/models/components/authorizeduser.d.ts.map +0 -1
  255. package/models/components/authorizeduser.js.map +0 -1
  256. package/models/components/createauthorizeduser.d.ts +0 -25
  257. package/models/components/createauthorizeduser.d.ts.map +0 -1
  258. package/models/components/createauthorizeduser.js +0 -63
  259. package/models/components/createauthorizeduser.js.map +0 -1
  260. package/models/components/createauthorizedusererror.d.ts +0 -22
  261. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  262. package/models/components/createauthorizedusererror.js.map +0 -1
  263. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  264. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  265. package/models/components/createauthorizeduserupdate.js +0 -63
  266. package/models/components/createauthorizeduserupdate.js.map +0 -1
  267. package/src/lib/dlv.ts +0 -53
  268. package/src/lib/is-plain-object.ts +0 -43
  269. package/src/models/components/authorizeduser.ts +0 -54
  270. package/src/models/components/createauthorizeduser.ts +0 -68
  271. package/src/models/components/createauthorizedusererror.ts +0 -65
  272. package/src/models/components/createauthorizeduserupdate.ts +0 -68
package/bin/mcp-server.js CHANGED
@@ -37121,6 +37121,57 @@ function remap(inp, mappings) {
37121
37121
  }
37122
37122
  return out;
37123
37123
  }
37124
+ function combineSignals(...signals) {
37125
+ const filtered = [];
37126
+ for (const signal of signals) {
37127
+ if (signal) {
37128
+ filtered.push(signal);
37129
+ }
37130
+ }
37131
+ switch (filtered.length) {
37132
+ case 0:
37133
+ case 1:
37134
+ return filtered[0] || null;
37135
+ default:
37136
+ if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
37137
+ return AbortSignal.any(filtered);
37138
+ }
37139
+ return abortSignalAny(filtered);
37140
+ }
37141
+ }
37142
+ function abortSignalAny(signals) {
37143
+ const controller = new AbortController;
37144
+ const result = controller.signal;
37145
+ if (!signals.length) {
37146
+ return controller.signal;
37147
+ }
37148
+ if (signals.length === 1) {
37149
+ return signals[0] || controller.signal;
37150
+ }
37151
+ for (const signal of signals) {
37152
+ if (signal.aborted) {
37153
+ return signal;
37154
+ }
37155
+ }
37156
+ function abort() {
37157
+ controller.abort(this.reason);
37158
+ clean();
37159
+ }
37160
+ const signalRefs = [];
37161
+ function clean() {
37162
+ for (const signalRef of signalRefs) {
37163
+ const signal = signalRef.deref();
37164
+ if (signal) {
37165
+ signal.removeEventListener("abort", abort);
37166
+ }
37167
+ }
37168
+ }
37169
+ for (const signal of signals) {
37170
+ signalRefs.push(new WeakRef(signal));
37171
+ signal.addEventListener("abort", abort);
37172
+ }
37173
+ return result;
37174
+ }
37124
37175
  function compactMap(values) {
37125
37176
  const out = {};
37126
37177
  for (const [k2, v2] of Object.entries(values)) {
@@ -37136,6 +37187,20 @@ function allRequired(v2) {
37136
37187
  }
37137
37188
  return v2;
37138
37189
  }
37190
+ function isPlainObject2(value) {
37191
+ if (value === null || typeof value !== "object")
37192
+ return false;
37193
+ if (Object.prototype.toString.call(value) !== "[object Object]")
37194
+ return false;
37195
+ const proto = Object.getPrototypeOf(value);
37196
+ if (proto === null || proto === Object.prototype)
37197
+ return true;
37198
+ try {
37199
+ return Object.getPrototypeOf(proto) === null;
37200
+ } catch {
37201
+ return false;
37202
+ }
37203
+ }
37139
37204
  var init_primitives = () => {};
37140
37205
 
37141
37206
  // node_modules/zod/dist/esm/v4/mini/parse.js
@@ -39629,7 +39694,7 @@ class Protocol {
39629
39694
  };
39630
39695
  }
39631
39696
  }
39632
- function isPlainObject2(value) {
39697
+ function isPlainObject3(value) {
39633
39698
  return value !== null && typeof value === "object" && !Array.isArray(value);
39634
39699
  }
39635
39700
  function mergeCapabilities(base, additional) {
@@ -39640,7 +39705,7 @@ function mergeCapabilities(base, additional) {
39640
39705
  if (addValue === undefined)
39641
39706
  continue;
39642
39707
  const baseValue = result[k2];
39643
- if (isPlainObject2(baseValue) && isPlainObject2(addValue)) {
39708
+ if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
39644
39709
  result[k2] = { ...baseValue, ...addValue };
39645
39710
  } else {
39646
39711
  result[k2] = addValue;
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
52909
52974
  SDK_METADATA = {
52910
52975
  language: "typescript",
52911
52976
  openapiDocVersion: "v2026.01.00",
52912
- sdkVersion: "26.3.0",
52913
- genVersion: "2.884.4",
52914
- userAgent: "speakeasy-sdk/typescript 26.3.0 2.884.4 v2026.01.00 @moovio/sdk"
52977
+ sdkVersion: "26.3.2",
52978
+ genVersion: "2.916.2",
52979
+ userAgent: "speakeasy-sdk/typescript 26.3.2 2.916.2 v2026.01.00 @moovio/sdk"
52915
52980
  };
52916
52981
  });
52917
52982
 
@@ -53084,15 +53149,6 @@ var init_base64 = __esm(() => {
53084
53149
  zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
53085
53150
  });
53086
53151
 
53087
- // src/lib/is-plain-object.ts
53088
- function isPlainObject3(value) {
53089
- if (typeof value !== "object" || value === null) {
53090
- return false;
53091
- }
53092
- const prototype = Object.getPrototypeOf(value);
53093
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
53094
- }
53095
-
53096
53152
  // src/lib/encodings.ts
53097
53153
  function formEncoder(sep) {
53098
53154
  return (key, value, options) => {
@@ -53113,7 +53169,7 @@ function formEncoder(sep) {
53113
53169
  return;
53114
53170
  } else if (Array.isArray(pv)) {
53115
53171
  encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
53116
- } else if (isPlainObject3(pv)) {
53172
+ } else if (isPlainObject2(pv)) {
53117
53173
  encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53118
53174
  return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
53119
53175
  })?.join(encodedSep);
@@ -53136,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
53136
53192
  if (value == null) {
53137
53193
  return;
53138
53194
  }
53139
- if (!isPlainObject3(value)) {
53195
+ if (!isPlainObject2(value)) {
53140
53196
  throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
53141
53197
  }
53142
53198
  return encodeDeepObjectObject(key, value, options);
@@ -53149,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
53149
53205
  const encodeString = (v2) => {
53150
53206
  return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53151
53207
  };
53152
- if (!isPlainObject3(value)) {
53208
+ if (!isPlainObject2(value)) {
53153
53209
  throw new EncodingError(`Expected parameter '${key}' to be an object.`);
53154
53210
  }
53155
53211
  Object.entries(value).forEach(([ck, cv]) => {
@@ -53157,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
53157
53213
  return;
53158
53214
  }
53159
53215
  const pk = `${key}[${ck}]`;
53160
- if (isPlainObject3(cv)) {
53216
+ if (isPlainObject2(cv)) {
53161
53217
  const objOut = encodeDeepObjectObject(pk, cv, options);
53162
53218
  out += objOut == null ? "" : `&${objOut}`;
53163
53219
  return;
@@ -53183,7 +53239,7 @@ function encodeJSON(key, value, options) {
53183
53239
  function explode(key, value) {
53184
53240
  if (Array.isArray(value)) {
53185
53241
  return value.map((v2) => [key, v2]);
53186
- } else if (isPlainObject3(value)) {
53242
+ } else if (isPlainObject2(value)) {
53187
53243
  const o = value ?? {};
53188
53244
  return Object.entries(o).map(([k2, v2]) => [k2, v2]);
53189
53245
  } else {
@@ -53308,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53308
53364
  return;
53309
53365
  } else if (Array.isArray(pv)) {
53310
53366
  tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
53311
- } else if (isPlainObject3(pv)) {
53367
+ } else if (isPlainObject2(pv)) {
53312
53368
  const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53313
53369
  return `,${encodeString(k2)},${encodeValue(v2)}`;
53314
53370
  });
53315
53371
  tmp = mapped?.join("").slice(1);
53316
53372
  } else {
53317
- const k2 = options?.explode && isPlainObject3(value) ? `${pk}=` : "";
53373
+ const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
53318
53374
  tmp = `${k2}${encodeValue(pv)}`;
53319
53375
  }
53320
53376
  out += tmp ? `,${tmp}` : "";
@@ -53323,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53323
53379
  }, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
53324
53380
  var init_encodings = __esm(() => {
53325
53381
  init_base64();
53382
+ init_primitives();
53326
53383
  EncodingError = class EncodingError extends Error {
53327
53384
  constructor(message) {
53328
53385
  super(message);
@@ -53588,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
53588
53645
  }
53589
53646
  }
53590
53647
  function retryIntervalFromResponse(res) {
53648
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
53649
+ if (retryAfterMsVal) {
53650
+ const parsedMs = Number(retryAfterMsVal);
53651
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
53652
+ return parsedMs;
53653
+ }
53654
+ }
53591
53655
  const retryVal = res.headers.get("retry-after") || "";
53592
53656
  if (!retryVal) {
53593
53657
  return 0;
@@ -53679,24 +53743,41 @@ class ClientSDK {
53679
53743
  if (path) {
53680
53744
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
53681
53745
  reqURL = new URL(path, baseURL);
53746
+ if (!reqURL.search && baseURL.search) {
53747
+ reqURL.search = baseURL.search;
53748
+ }
53682
53749
  } else {
53683
53750
  reqURL = baseURL;
53684
53751
  }
53685
53752
  reqURL.hash = "";
53686
- let finalQuery = query || "";
53687
- const secQuery = [];
53688
- for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
53689
- const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
53690
- if (typeof q2 !== "undefined") {
53691
- secQuery.push(q2);
53753
+ const mergeQuery = (current, additions) => {
53754
+ if (!additions) {
53755
+ return current;
53692
53756
  }
53693
- }
53694
- if (secQuery.length) {
53695
- finalQuery += `&${secQuery.join("&")}`;
53696
- }
53757
+ const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
53758
+ const kept = current.split("&").filter((pair) => {
53759
+ return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
53760
+ });
53761
+ return [...kept, additions].join("&");
53762
+ };
53763
+ const encodeQueryRecord = (record3) => {
53764
+ return Object.entries(record3).map(([k2, v2]) => {
53765
+ if (v2 == null) {
53766
+ return;
53767
+ }
53768
+ const value = v2;
53769
+ return encodeForm(k2, value, {
53770
+ explode: Array.isArray(value),
53771
+ charEncoding: "percent"
53772
+ });
53773
+ }).filter((pair) => typeof pair !== "undefined").join("&");
53774
+ };
53775
+ const finalQuery = [
53776
+ query || "",
53777
+ encodeQueryRecord(security?.queryParams || {})
53778
+ ].reduce(mergeQuery, reqURL.search.slice(1));
53697
53779
  if (finalQuery) {
53698
- const q2 = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
53699
- reqURL.search = `?${q2}`;
53780
+ reqURL.search = `?${finalQuery}`;
53700
53781
  }
53701
53782
  const headers = new Headers(opHeaders);
53702
53783
  const username = security?.basic.username;
@@ -53726,9 +53807,8 @@ class ClientSDK {
53726
53807
  ...options?.fetchOptions,
53727
53808
  ...options
53728
53809
  };
53729
- if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
53730
- const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
53731
- fetchOptions.signal = timeoutSignal;
53810
+ if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
53811
+ context.timeoutMs = conf.timeoutMs;
53732
53812
  }
53733
53813
  if (conf.body instanceof ReadableStream) {
53734
53814
  Object.assign(fetchOptions, { duplex: "half" });
@@ -53753,8 +53833,16 @@ class ClientSDK {
53753
53833
  }
53754
53834
  async _do(request, options) {
53755
53835
  const { context, isErrorStatusCode } = options;
53836
+ const timeoutMs = context.timeoutMs;
53756
53837
  return retry(async () => {
53757
- const req = await this.#hooks.beforeRequest(context, request.clone());
53838
+ const cloned = request.clone();
53839
+ let attempt = cloned;
53840
+ if (timeoutMs != null && timeoutMs > 0) {
53841
+ const timeoutSignal = AbortSignal.timeout(timeoutMs);
53842
+ const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
53843
+ attempt = new Request(cloned, { signal: combined });
53844
+ }
53845
+ const req = await this.#hooks.beforeRequest(context, attempt);
53758
53846
  await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
53759
53847
  let response = await this.#httpClient.request(req);
53760
53848
  try {
@@ -53872,6 +53960,7 @@ var init_sdks = __esm(() => {
53872
53960
  init_config();
53873
53961
  init_encodings();
53874
53962
  init_http();
53963
+ init_primitives();
53875
53964
  init_retries();
53876
53965
  gt2 = typeof globalThis === "undefined" ? null : globalThis;
53877
53966
  webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
@@ -54321,7 +54410,7 @@ function match(...matchers) {
54321
54410
  data = {
54322
54411
  ...options?.extraFields,
54323
54412
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54324
- ...isPlainObject3(raw) ? raw : null,
54413
+ ...isPlainObject2(raw) ? raw : null,
54325
54414
  request$: request,
54326
54415
  response$: response,
54327
54416
  body$: body
@@ -54336,7 +54425,7 @@ function match(...matchers) {
54336
54425
  data = {
54337
54426
  ...options?.extraFields,
54338
54427
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54339
- ...isPlainObject3(raw) ? raw : null
54428
+ ...isPlainObject2(raw) ? raw : null
54340
54429
  };
54341
54430
  } else {
54342
54431
  data = raw;
@@ -54376,6 +54465,7 @@ var init_matchers = __esm(() => {
54376
54465
  init_apierror();
54377
54466
  init_responsevalidationerror();
54378
54467
  init_http();
54468
+ init_primitives();
54379
54469
  DEFAULT_CONTENT_TYPES = {
54380
54470
  jsonl: "application/jsonl",
54381
54471
  json: "application/json",
@@ -55957,6 +56047,7 @@ var init_capabilityid = __esm(() => {
55957
56047
  Wallet: "wallet",
55958
56048
  WalletBalance: "wallet.balance",
55959
56049
  CardIssuing: "card-issuing",
56050
+ IssuingCardholder: "issuing.cardholder",
55960
56051
  ProductionApp: "production-app",
55961
56052
  PlatformProductionApp: "platform.production-app",
55962
56053
  PlatformWalletTransfers: "platform.wallet-transfers"
@@ -56376,20 +56467,6 @@ var init_asynctransfer = __esm(() => {
56376
56467
  });
56377
56468
  });
56378
56469
 
56379
- // src/models/components/authorizeduser.ts
56380
- var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
56381
- var init_authorizeduser = __esm(() => {
56382
- init_esm();
56383
- AuthorizedUser$inboundSchema = objectType({
56384
- firstName: stringType(),
56385
- lastName: stringType()
56386
- });
56387
- AuthorizedUser$outboundSchema = objectType({
56388
- firstName: stringType(),
56389
- lastName: stringType()
56390
- });
56391
- });
56392
-
56393
56470
  // src/models/components/tokentype.ts
56394
56471
  var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
56395
56472
  var init_tokentype = __esm(() => {
@@ -61125,57 +61202,6 @@ var init_createapplepaysession = __esm(() => {
61125
61202
  });
61126
61203
  });
61127
61204
 
61128
- // src/models/components/createauthorizeduser.ts
61129
- var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
61130
- var init_createauthorizeduser = __esm(() => {
61131
- init_esm();
61132
- init_birthdate();
61133
- CreateAuthorizedUser$inboundSchema = objectType({
61134
- firstName: stringType(),
61135
- lastName: stringType(),
61136
- birthDate: BirthDate$inboundSchema.optional()
61137
- });
61138
- CreateAuthorizedUser$outboundSchema = objectType({
61139
- firstName: stringType(),
61140
- lastName: stringType(),
61141
- birthDate: BirthDate$outboundSchema.optional()
61142
- });
61143
- });
61144
-
61145
- // src/models/components/createauthorizedusererror.ts
61146
- var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
61147
- var init_createauthorizedusererror = __esm(() => {
61148
- init_esm();
61149
- init_birthdateerror();
61150
- CreateAuthorizedUserError$inboundSchema = objectType({
61151
- firstName: stringType().optional(),
61152
- lastName: stringType().optional(),
61153
- birthDate: BirthDateError$inboundSchema.optional()
61154
- });
61155
- CreateAuthorizedUserError$outboundSchema = objectType({
61156
- firstName: stringType().optional(),
61157
- lastName: stringType().optional(),
61158
- birthDate: BirthDateError$outboundSchema.optional()
61159
- });
61160
- });
61161
-
61162
- // src/models/components/createauthorizeduserupdate.ts
61163
- var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
61164
- var init_createauthorizeduserupdate = __esm(() => {
61165
- init_esm();
61166
- init_birthdateupdate();
61167
- CreateAuthorizedUserUpdate$inboundSchema = objectType({
61168
- firstName: stringType().optional(),
61169
- lastName: stringType().optional(),
61170
- birthDate: BirthDateUpdate$inboundSchema.optional()
61171
- });
61172
- CreateAuthorizedUserUpdate$outboundSchema = objectType({
61173
- firstName: stringType().optional(),
61174
- lastName: stringType().optional(),
61175
- birthDate: BirthDateUpdate$outboundSchema.optional()
61176
- });
61177
- });
61178
-
61179
61205
  // src/models/components/phonenumbererror.ts
61180
61206
  var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
61181
61207
  var init_phonenumbererror = __esm(() => {
@@ -62914,7 +62940,8 @@ var init_webhookeventtype = __esm(() => {
62914
62940
  WalletCreated: "wallet.created",
62915
62941
  WalletUpdated: "wallet.updated",
62916
62942
  WalletTransactionUpdated: "walletTransaction.updated",
62917
- BillingStatementCreated: "billingStatement.created"
62943
+ BillingStatementCreated: "billingStatement.created",
62944
+ AuthorizationExpiring: "authorization.expiring"
62918
62945
  };
62919
62946
  WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
62920
62947
  WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
@@ -63633,8 +63660,6 @@ var init_issuedcardstate = __esm(() => {
63633
63660
  init_esm();
63634
63661
  IssuedCardState = {
63635
63662
  Active: "active",
63636
- Inactive: "inactive",
63637
- PendingVerification: "pending-verification",
63638
63663
  Closed: "closed"
63639
63664
  };
63640
63665
  IssuedCardState$inboundSchema = nativeEnumType(IssuedCardState);
@@ -63686,7 +63711,7 @@ var init_issuingcontrols = __esm(() => {
63686
63711
  var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
63687
63712
  var init_fullissuedcard = __esm(() => {
63688
63713
  init_esm();
63689
- init_authorizeduser();
63714
+ init_address();
63690
63715
  init_cardbrand();
63691
63716
  init_cardexpiration();
63692
63717
  init_issuedcardformfactor();
@@ -63697,13 +63722,16 @@ var init_fullissuedcard = __esm(() => {
63697
63722
  brand: CardBrand$inboundSchema,
63698
63723
  lastFourCardNumber: stringType(),
63699
63724
  expiration: CardExpiration$inboundSchema,
63700
- authorizedUser: AuthorizedUser$inboundSchema,
63701
- memo: stringType().optional(),
63702
63725
  fundingWalletID: stringType(),
63726
+ authorizedUserAccountID: stringType().optional(),
63727
+ nickname: stringType().optional(),
63728
+ metadata: recordType(stringType()).optional(),
63729
+ billingAddress: Address$inboundSchema.optional(),
63703
63730
  state: IssuedCardState$inboundSchema,
63704
63731
  formFactor: IssuedCardFormFactor$inboundSchema,
63705
63732
  controls: IssuingControls$inboundSchema.optional(),
63706
63733
  createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63734
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63707
63735
  pan: stringType(),
63708
63736
  cvv: stringType()
63709
63737
  });
@@ -63712,13 +63740,16 @@ var init_fullissuedcard = __esm(() => {
63712
63740
  brand: CardBrand$outboundSchema,
63713
63741
  lastFourCardNumber: stringType(),
63714
63742
  expiration: CardExpiration$outboundSchema,
63715
- authorizedUser: AuthorizedUser$outboundSchema,
63716
- memo: stringType().optional(),
63717
63743
  fundingWalletID: stringType(),
63744
+ authorizedUserAccountID: stringType().optional(),
63745
+ nickname: stringType().optional(),
63746
+ metadata: recordType(stringType()).optional(),
63747
+ billingAddress: Address$outboundSchema.optional(),
63718
63748
  state: IssuedCardState$outboundSchema,
63719
63749
  formFactor: IssuedCardFormFactor$outboundSchema,
63720
63750
  controls: IssuingControls$outboundSchema.optional(),
63721
63751
  createdOn: dateType().transform((v2) => v2.toISOString()),
63752
+ updatedOn: dateType().transform((v2) => v2.toISOString()),
63722
63753
  pan: stringType(),
63723
63754
  cvv: stringType()
63724
63755
  });
@@ -64091,7 +64122,7 @@ var init_invoicestatus = __esm(() => {
64091
64122
  var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
64092
64123
  var init_issuedcard = __esm(() => {
64093
64124
  init_esm();
64094
- init_authorizeduser();
64125
+ init_address();
64095
64126
  init_cardbrand();
64096
64127
  init_cardexpiration();
64097
64128
  init_issuedcardformfactor();
@@ -64102,26 +64133,32 @@ var init_issuedcard = __esm(() => {
64102
64133
  brand: CardBrand$inboundSchema,
64103
64134
  lastFourCardNumber: stringType(),
64104
64135
  expiration: CardExpiration$inboundSchema,
64105
- authorizedUser: AuthorizedUser$inboundSchema,
64106
- memo: stringType().optional(),
64107
64136
  fundingWalletID: stringType(),
64137
+ authorizedUserAccountID: stringType().optional(),
64138
+ nickname: stringType().optional(),
64139
+ metadata: recordType(stringType()).optional(),
64140
+ billingAddress: Address$inboundSchema.optional(),
64108
64141
  state: IssuedCardState$inboundSchema,
64109
64142
  formFactor: IssuedCardFormFactor$inboundSchema,
64110
64143
  controls: IssuingControls$inboundSchema.optional(),
64111
- createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
64144
+ createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
64145
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
64112
64146
  });
64113
64147
  IssuedCard$outboundSchema = objectType({
64114
64148
  issuedCardID: stringType(),
64115
64149
  brand: CardBrand$outboundSchema,
64116
64150
  lastFourCardNumber: stringType(),
64117
64151
  expiration: CardExpiration$outboundSchema,
64118
- authorizedUser: AuthorizedUser$outboundSchema,
64119
- memo: stringType().optional(),
64120
64152
  fundingWalletID: stringType(),
64153
+ authorizedUserAccountID: stringType().optional(),
64154
+ nickname: stringType().optional(),
64155
+ metadata: recordType(stringType()).optional(),
64156
+ billingAddress: Address$outboundSchema.optional(),
64121
64157
  state: IssuedCardState$outboundSchema,
64122
64158
  formFactor: IssuedCardFormFactor$outboundSchema,
64123
64159
  controls: IssuingControls$outboundSchema.optional(),
64124
- createdOn: dateType().transform((v2) => v2.toISOString())
64160
+ createdOn: dateType().transform((v2) => v2.toISOString()),
64161
+ updatedOn: dateType().transform((v2) => v2.toISOString())
64125
64162
  });
64126
64163
  });
64127
64164
 
@@ -66180,23 +66217,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
66180
66217
  var RequestCard$inboundSchema, RequestCard$outboundSchema;
66181
66218
  var init_requestcard = __esm(() => {
66182
66219
  init_esm();
66220
+ init_address();
66183
66221
  init_cardexpiration();
66184
- init_createauthorizeduser();
66185
- init_issuedcardformfactor();
66186
66222
  init_issuingcontrols();
66187
66223
  RequestCard$inboundSchema = objectType({
66188
- fundingWalletID: stringType(),
66189
- authorizedUser: CreateAuthorizedUser$inboundSchema,
66190
- formFactor: IssuedCardFormFactor$inboundSchema,
66191
- memo: stringType().optional(),
66224
+ authorizedUserAccountID: stringType().optional(),
66225
+ nickname: stringType().optional(),
66226
+ metadata: recordType(stringType()).optional(),
66227
+ billingAddress: Address$inboundSchema.optional(),
66192
66228
  expiration: CardExpiration$inboundSchema.optional(),
66193
66229
  controls: IssuingControls$inboundSchema.optional()
66194
66230
  });
66195
66231
  RequestCard$outboundSchema = objectType({
66196
- fundingWalletID: stringType(),
66197
- authorizedUser: CreateAuthorizedUser$outboundSchema,
66198
- formFactor: IssuedCardFormFactor$outboundSchema,
66199
- memo: stringType().optional(),
66232
+ authorizedUserAccountID: stringType().optional(),
66233
+ nickname: stringType().optional(),
66234
+ metadata: recordType(stringType()).optional(),
66235
+ billingAddress: Address$outboundSchema.optional(),
66200
66236
  expiration: CardExpiration$outboundSchema.optional(),
66201
66237
  controls: IssuingControls$outboundSchema.optional()
66202
66238
  });
@@ -67322,20 +67358,37 @@ var init_updateissuedcardstate = __esm(() => {
67322
67358
  });
67323
67359
 
67324
67360
  // src/models/components/updateissuedcard.ts
67325
- var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
67361
+ var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
67326
67362
  var init_updateissuedcard = __esm(() => {
67327
67363
  init_esm();
67328
- init_createauthorizeduserupdate();
67329
67364
  init_updateissuedcardstate();
67365
+ BillingAddress$inboundSchema = objectType({
67366
+ addressLine1: stringType().optional(),
67367
+ addressLine2: stringType().optional(),
67368
+ city: stringType().optional(),
67369
+ stateOrProvince: stringType().optional(),
67370
+ postalCode: stringType().optional(),
67371
+ country: stringType().optional()
67372
+ });
67373
+ BillingAddress$outboundSchema = objectType({
67374
+ addressLine1: stringType().optional(),
67375
+ addressLine2: stringType().optional(),
67376
+ city: stringType().optional(),
67377
+ stateOrProvince: stringType().optional(),
67378
+ postalCode: stringType().optional(),
67379
+ country: stringType().optional()
67380
+ });
67330
67381
  UpdateIssuedCard$inboundSchema = objectType({
67331
67382
  state: UpdateIssuedCardState$inboundSchema.optional(),
67332
- memo: stringType().optional(),
67333
- authorizedUser: CreateAuthorizedUserUpdate$inboundSchema.optional()
67383
+ nickname: nullableType(stringType()).optional(),
67384
+ metadata: nullableType(recordType(stringType())).optional(),
67385
+ billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
67334
67386
  });
67335
67387
  UpdateIssuedCard$outboundSchema = objectType({
67336
67388
  state: UpdateIssuedCardState$outboundSchema.optional(),
67337
- memo: stringType().optional(),
67338
- authorizedUser: CreateAuthorizedUserUpdate$outboundSchema.optional()
67389
+ nickname: nullableType(stringType()).optional(),
67390
+ metadata: nullableType(recordType(stringType())).optional(),
67391
+ billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
67339
67392
  });
67340
67393
  });
67341
67394
 
@@ -67807,6 +67860,24 @@ var init_webhookdataaccountupdated = __esm(() => {
67807
67860
  });
67808
67861
  });
67809
67862
 
67863
+ // src/models/components/webhookdataauthorizationexpiring.ts
67864
+ var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
67865
+ var init_webhookdataauthorizationexpiring = __esm(() => {
67866
+ init_esm();
67867
+ WebhookDataAuthorizationExpiring$inboundSchema = objectType({
67868
+ merchantAccountID: stringType(),
67869
+ partnerAccountID: stringType(),
67870
+ authorizationID: stringType(),
67871
+ expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
67872
+ });
67873
+ WebhookDataAuthorizationExpiring$outboundSchema = objectType({
67874
+ merchantAccountID: stringType(),
67875
+ partnerAccountID: stringType(),
67876
+ authorizationID: stringType(),
67877
+ expiresOn: dateType().transform((v2) => v2.toISOString())
67878
+ });
67879
+ });
67880
+
67810
67881
  // src/models/components/webhookdatabalanceupdated.ts
67811
67882
  var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
67812
67883
  var init_webhookdatabalanceupdated = __esm(() => {
@@ -68181,10 +68252,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
68181
68252
  var init_webhookdatasweepcreated = __esm(() => {
68182
68253
  init_esm();
68183
68254
  WebhookDataSweepCreated$inboundSchema = objectType({
68255
+ accountID: stringType(),
68184
68256
  walletID: stringType(),
68185
68257
  sweepID: stringType()
68186
68258
  });
68187
68259
  WebhookDataSweepCreated$outboundSchema = objectType({
68260
+ accountID: stringType(),
68188
68261
  walletID: stringType(),
68189
68262
  sweepID: stringType()
68190
68263
  });
@@ -68196,12 +68269,14 @@ var init_webhookdatasweepupdated = __esm(() => {
68196
68269
  init_esm();
68197
68270
  init_sweepstatus();
68198
68271
  WebhookDataSweepUpdated$inboundSchema = objectType({
68272
+ accountID: stringType(),
68199
68273
  walletID: stringType(),
68200
68274
  sweepID: stringType(),
68201
68275
  transferID: stringType().optional(),
68202
68276
  status: SweepStatus$inboundSchema
68203
68277
  });
68204
68278
  WebhookDataSweepUpdated$outboundSchema = objectType({
68279
+ accountID: stringType(),
68205
68280
  walletID: stringType(),
68206
68281
  sweepID: stringType(),
68207
68282
  transferID: stringType().optional(),
@@ -68442,6 +68517,7 @@ var init_webhookdata = __esm(() => {
68442
68517
  init_webhookdataaccountcreated();
68443
68518
  init_webhookdataaccountdisconnected();
68444
68519
  init_webhookdataaccountupdated();
68520
+ init_webhookdataauthorizationexpiring();
68445
68521
  init_webhookdatabalanceupdated();
68446
68522
  init_webhookdatabankaccountcreated();
68447
68523
  init_webhookdatabankaccountdeleted();
@@ -68481,7 +68557,9 @@ var init_webhookdata = __esm(() => {
68481
68557
  WebhookDataTransferUpdated$inboundSchema,
68482
68558
  WebhookDataBankAccountUpdated$inboundSchema,
68483
68559
  WebhookDataRefundUpdated$inboundSchema,
68560
+ WebhookDataSweepUpdated$inboundSchema,
68484
68561
  WebhookDataWalletTransactionUpdated$inboundSchema,
68562
+ WebhookDataAuthorizationExpiring$inboundSchema,
68485
68563
  WebhookDataBankAccountCreated$inboundSchema,
68486
68564
  WebhookDataBankAccountDeleted$inboundSchema,
68487
68565
  WebhookDataCancellationCreated$inboundSchema,
@@ -68492,7 +68570,7 @@ var init_webhookdata = __esm(() => {
68492
68570
  WebhookDataPaymentMethodEnabled$inboundSchema,
68493
68571
  WebhookDataPaymentMethodDisabled$inboundSchema,
68494
68572
  WebhookDataRefundCreated$inboundSchema,
68495
- WebhookDataSweepUpdated$inboundSchema,
68573
+ WebhookDataSweepCreated$inboundSchema,
68496
68574
  WebhookDataTicketUpdated$inboundSchema,
68497
68575
  WebhookDataTransferCreated$inboundSchema,
68498
68576
  WebhookDataWalletUpdated$inboundSchema,
@@ -68502,7 +68580,6 @@ var init_webhookdata = __esm(() => {
68502
68580
  WebhookDataRepresentativeCreated$inboundSchema,
68503
68581
  WebhookDataRepresentativeUpdated$inboundSchema,
68504
68582
  WebhookDataRepresentativeDisabled$inboundSchema,
68505
- WebhookDataSweepCreated$inboundSchema,
68506
68583
  WebhookDataTerminalApplicationCreated$inboundSchema,
68507
68584
  WebhookDataTerminalApplicationUpdated$inboundSchema,
68508
68585
  WebhookDataTicketCreated$inboundSchema,
@@ -68520,7 +68597,9 @@ var init_webhookdata = __esm(() => {
68520
68597
  WebhookDataTransferUpdated$outboundSchema,
68521
68598
  WebhookDataBankAccountUpdated$outboundSchema,
68522
68599
  WebhookDataRefundUpdated$outboundSchema,
68600
+ WebhookDataSweepUpdated$outboundSchema,
68523
68601
  WebhookDataWalletTransactionUpdated$outboundSchema,
68602
+ WebhookDataAuthorizationExpiring$outboundSchema,
68524
68603
  WebhookDataBankAccountCreated$outboundSchema,
68525
68604
  WebhookDataBankAccountDeleted$outboundSchema,
68526
68605
  WebhookDataCancellationCreated$outboundSchema,
@@ -68531,7 +68610,7 @@ var init_webhookdata = __esm(() => {
68531
68610
  WebhookDataPaymentMethodEnabled$outboundSchema,
68532
68611
  WebhookDataPaymentMethodDisabled$outboundSchema,
68533
68612
  WebhookDataRefundCreated$outboundSchema,
68534
- WebhookDataSweepUpdated$outboundSchema,
68613
+ WebhookDataSweepCreated$outboundSchema,
68535
68614
  WebhookDataTicketUpdated$outboundSchema,
68536
68615
  WebhookDataTransferCreated$outboundSchema,
68537
68616
  WebhookDataWalletUpdated$outboundSchema,
@@ -68541,7 +68620,6 @@ var init_webhookdata = __esm(() => {
68541
68620
  WebhookDataRepresentativeCreated$outboundSchema,
68542
68621
  WebhookDataRepresentativeUpdated$outboundSchema,
68543
68622
  WebhookDataRepresentativeDisabled$outboundSchema,
68544
- WebhookDataSweepCreated$outboundSchema,
68545
68623
  WebhookDataTerminalApplicationCreated$outboundSchema,
68546
68624
  WebhookDataTerminalApplicationUpdated$outboundSchema,
68547
68625
  WebhookDataTicketCreated$outboundSchema,
@@ -68638,7 +68716,6 @@ var init_components = __esm(() => {
68638
68716
  init_assignproductimagevalidationerror();
68639
68717
  init_asynccreatedrefund();
68640
68718
  init_asynctransfer();
68641
- init_authorizeduser();
68642
68719
  init_authtoken();
68643
68720
  init_authtokenrequest();
68644
68721
  init_bankaccount();
@@ -68726,9 +68803,6 @@ var init_components = __esm(() => {
68726
68803
  init_createaccountsettings();
68727
68804
  init_createaccounttype();
68728
68805
  init_createapplepaysession();
68729
- init_createauthorizeduser();
68730
- init_createauthorizedusererror();
68731
- init_createauthorizeduserupdate();
68732
68806
  init_createbusinesserror();
68733
68807
  init_createbusinessprofile();
68734
68808
  init_createdtransfer();
@@ -69106,6 +69180,7 @@ var init_components = __esm(() => {
69106
69180
  init_webhookdataaccountcreated();
69107
69181
  init_webhookdataaccountdisconnected();
69108
69182
  init_webhookdataaccountupdated();
69183
+ init_webhookdataauthorizationexpiring();
69109
69184
  init_webhookdatabalanceupdated();
69110
69185
  init_webhookdatabankaccountcreated();
69111
69186
  init_webhookdatabankaccountdeleted();
@@ -70741,10 +70816,10 @@ var init_requestcarderror = __esm(() => {
70741
70816
  init_components();
70742
70817
  init_mooverror();
70743
70818
  RequestCardError = class RequestCardError extends MoovError {
70744
- fundingWalletID;
70745
- formFactor;
70746
- authorizedUser;
70747
- memo;
70819
+ authorizedUserAccountID;
70820
+ nickname;
70821
+ metadata;
70822
+ billingAddress;
70748
70823
  expiration;
70749
70824
  controls;
70750
70825
  data$;
@@ -70752,14 +70827,15 @@ var init_requestcarderror = __esm(() => {
70752
70827
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
70753
70828
  super(message, httpMeta);
70754
70829
  this.data$ = err;
70755
- if (err.fundingWalletID != null)
70756
- this.fundingWalletID = err.fundingWalletID;
70757
- if (err.formFactor != null)
70758
- this.formFactor = err.formFactor;
70759
- if (err.authorizedUser != null)
70760
- this.authorizedUser = err.authorizedUser;
70761
- if (err.memo != null)
70762
- this.memo = err.memo;
70830
+ if (err.authorizedUserAccountID != null) {
70831
+ this.authorizedUserAccountID = err.authorizedUserAccountID;
70832
+ }
70833
+ if (err.nickname != null)
70834
+ this.nickname = err.nickname;
70835
+ if (err.metadata != null)
70836
+ this.metadata = err.metadata;
70837
+ if (err.billingAddress != null)
70838
+ this.billingAddress = err.billingAddress;
70763
70839
  if (err.expiration != null)
70764
70840
  this.expiration = err.expiration;
70765
70841
  if (err.controls != null)
@@ -70768,10 +70844,10 @@ var init_requestcarderror = __esm(() => {
70768
70844
  }
70769
70845
  };
70770
70846
  RequestCardError$inboundSchema = objectType({
70771
- fundingWalletID: stringType().optional(),
70772
- formFactor: stringType().optional(),
70773
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
70774
- memo: stringType().optional(),
70847
+ authorizedUserAccountID: stringType().optional(),
70848
+ nickname: stringType().optional(),
70849
+ metadata: stringType().optional(),
70850
+ billingAddress: AddressError$inboundSchema.optional(),
70775
70851
  expiration: CardExpirationError$inboundSchema.optional(),
70776
70852
  controls: IssuingControlsError$inboundSchema.optional(),
70777
70853
  request$: instanceOfType(Request),
@@ -70785,10 +70861,10 @@ var init_requestcarderror = __esm(() => {
70785
70861
  });
70786
70862
  });
70787
70863
  RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
70788
- fundingWalletID: stringType().optional(),
70789
- formFactor: stringType().optional(),
70790
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional(),
70791
- memo: stringType().optional(),
70864
+ authorizedUserAccountID: stringType().optional(),
70865
+ nickname: stringType().optional(),
70866
+ metadata: stringType().optional(),
70867
+ billingAddress: AddressError$outboundSchema.optional(),
70792
70868
  expiration: CardExpirationError$outboundSchema.optional(),
70793
70869
  controls: IssuingControlsError$outboundSchema.optional()
70794
70870
  }));
@@ -71359,8 +71435,9 @@ var init_updateissuedcarderror = __esm(() => {
71359
71435
  init_mooverror();
71360
71436
  UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
71361
71437
  state;
71362
- memo;
71363
- authorizedUser;
71438
+ nickname;
71439
+ metadata;
71440
+ billingAddress;
71364
71441
  data$;
71365
71442
  constructor(err, httpMeta) {
71366
71443
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -71368,17 +71445,20 @@ var init_updateissuedcarderror = __esm(() => {
71368
71445
  this.data$ = err;
71369
71446
  if (err.state != null)
71370
71447
  this.state = err.state;
71371
- if (err.memo != null)
71372
- this.memo = err.memo;
71373
- if (err.authorizedUser != null)
71374
- this.authorizedUser = err.authorizedUser;
71448
+ if (err.nickname != null)
71449
+ this.nickname = err.nickname;
71450
+ if (err.metadata != null)
71451
+ this.metadata = err.metadata;
71452
+ if (err.billingAddress != null)
71453
+ this.billingAddress = err.billingAddress;
71375
71454
  this.name = "UpdateIssuedCardError";
71376
71455
  }
71377
71456
  };
71378
71457
  UpdateIssuedCardError$inboundSchema = objectType({
71379
71458
  state: stringType().optional(),
71380
- memo: stringType().optional(),
71381
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
71459
+ nickname: stringType().optional(),
71460
+ metadata: stringType().optional(),
71461
+ billingAddress: AddressError$inboundSchema.optional(),
71382
71462
  request$: instanceOfType(Request),
71383
71463
  response$: instanceOfType(Response),
71384
71464
  body$: stringType()
@@ -71391,8 +71471,9 @@ var init_updateissuedcarderror = __esm(() => {
71391
71471
  });
71392
71472
  UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
71393
71473
  state: stringType().optional(),
71394
- memo: stringType().optional(),
71395
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional()
71474
+ nickname: stringType().optional(),
71475
+ metadata: stringType().optional(),
71476
+ billingAddress: AddressError$outboundSchema.optional()
71396
71477
  }));
71397
71478
  });
71398
71479
 
@@ -75361,6 +75442,40 @@ var init_listbankaccounts = __esm(() => {
75361
75442
  });
75362
75443
  });
75363
75444
 
75445
+ // src/models/operations/listcancellations.ts
75446
+ var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
75447
+ var init_listcancellations = __esm(() => {
75448
+ init_esm();
75449
+ init_primitives();
75450
+ init_components();
75451
+ ListCancellationsRequest$inboundSchema = objectType({
75452
+ accountID: stringType(),
75453
+ transferID: stringType()
75454
+ });
75455
+ ListCancellationsRequest$outboundSchema = objectType({
75456
+ accountID: stringType(),
75457
+ transferID: stringType()
75458
+ });
75459
+ ListCancellationsResponse$inboundSchema = objectType({
75460
+ Headers: recordType(arrayType(stringType())).default({}),
75461
+ Result: arrayType(Cancellation$inboundSchema)
75462
+ }).transform((v2) => {
75463
+ return remap(v2, {
75464
+ Headers: "headers",
75465
+ Result: "result"
75466
+ });
75467
+ });
75468
+ ListCancellationsResponse$outboundSchema = objectType({
75469
+ headers: recordType(arrayType(stringType())),
75470
+ result: arrayType(Cancellation$outboundSchema)
75471
+ }).transform((v2) => {
75472
+ return remap(v2, {
75473
+ headers: "Headers",
75474
+ result: "Result"
75475
+ });
75476
+ });
75477
+ });
75478
+
75364
75479
  // src/models/operations/listcapabilities.ts
75365
75480
  var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
75366
75481
  var init_listcapabilities = __esm(() => {
@@ -78309,6 +78424,7 @@ var init_operations = __esm(() => {
78309
78424
  init_listaccountterminalapplications();
78310
78425
  init_listadjustments();
78311
78426
  init_listbankaccounts();
78427
+ init_listcancellations();
78312
78428
  init_listcapabilities();
78313
78429
  init_listcards();
78314
78430
  init_listconnectedaccountsforaccount();
@@ -78393,16 +78509,19 @@ var init_async = __esm(() => {
78393
78509
  [Symbol.toStringTag] = "APIPromise";
78394
78510
  constructor(p) {
78395
78511
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
78396
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
78512
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
78513
+ }
78514
+ #getUnwrapped() {
78515
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
78397
78516
  }
78398
78517
  then(onfulfilled, onrejected) {
78399
78518
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
78400
78519
  }
78401
78520
  catch(onrejected) {
78402
- return this.#unwrapped.catch(onrejected);
78521
+ return this.#getUnwrapped().catch(onrejected);
78403
78522
  }
78404
78523
  finally(onfinally) {
78405
- return this.#unwrapped.finally(onfinally);
78524
+ return this.#getUnwrapped().finally(onfinally);
78406
78525
  }
78407
78526
  $inspect() {
78408
78527
  return this.#promise;
@@ -78725,21 +78844,19 @@ var init_accountsCreate2 = __esm(() => {
78725
78844
  };
78726
78845
  tool$accountsCreate = {
78727
78846
  name: "accounts-create",
78728
- description: `You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
78729
- information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
78847
+ 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/).
78848
+
78849
+ 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:
78850
+ + 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.
78851
+ + 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.
78730
78852
 
78731
- If you're requesting the \`wallet\`, \`send-funds\`, \`collect-funds\`, or \`card-issuing\` capabilities, you'll need to:
78732
- + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
78733
- 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.
78734
- If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
78853
+ If you're creating a business account, depending on the business type, you'll also need to:
78735
78854
  + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
78736
78855
  + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
78737
78856
 
78738
- 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/).
78739
- 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.
78857
+ 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.
78740
78858
 
78741
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
78742
- to specify the \`/accounts.write\` scope.`,
78859
+ 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.`,
78743
78860
  args: args3,
78744
78861
  tool: async (client, args4, ctx) => {
78745
78862
  const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -82211,7 +82328,7 @@ var init_bankAccountsLink2 = __esm(() => {
82211
82328
  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.
82212
82329
 
82213
82330
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
82214
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
82331
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
82215
82332
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
82216
82333
  endpoint to wait for the new payment methods to be available for use.
82217
82334
 
@@ -82778,7 +82895,7 @@ var init_capabilitiesDisable2 = __esm(() => {
82778
82895
  };
82779
82896
  tool$capabilitiesDisable = {
82780
82897
  name: "capabilities-disable",
82781
- description: `Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
82898
+ 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.
82782
82899
 
82783
82900
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
82784
82901
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -82892,7 +83009,7 @@ var init_capabilitiesGet2 = __esm(() => {
82892
83009
  };
82893
83010
  tool$capabilitiesGet = {
82894
83011
  name: "capabilities-get",
82895
- description: `Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
83012
+ 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.
82896
83013
 
82897
83014
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
82898
83015
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -83005,7 +83122,7 @@ var init_capabilitiesList2 = __esm(() => {
83005
83122
  name: "capabilities-list",
83006
83123
  description: `Retrieve all the capabilities an account has requested.
83007
83124
 
83008
- Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
83125
+ Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
83009
83126
 
83010
83127
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
83011
83128
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -83118,7 +83235,7 @@ var init_capabilitiesRequest2 = __esm(() => {
83118
83235
  };
83119
83236
  tool$capabilitiesRequest = {
83120
83237
  name: "capabilities-request",
83121
- description: `Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
83238
+ description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
83122
83239
 
83123
83240
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
83124
83241
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -83158,7 +83275,7 @@ async function $do42(client, request, options) {
83158
83275
  charEncoding: "percent"
83159
83276
  })
83160
83277
  };
83161
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
83278
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
83162
83279
  const headers = new Headers(compactMap({
83163
83280
  Accept: "application/json"
83164
83281
  }));
@@ -83273,7 +83390,7 @@ async function $do43(client, request, options) {
83273
83390
  charEncoding: "percent"
83274
83391
  })
83275
83392
  };
83276
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}/details")(pathParams);
83393
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
83277
83394
  const headers = new Headers(compactMap({
83278
83395
  Accept: "application/json"
83279
83396
  }));
@@ -83386,7 +83503,7 @@ async function $do44(client, request, options) {
83386
83503
  charEncoding: "percent"
83387
83504
  })
83388
83505
  };
83389
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
83506
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
83390
83507
  const query = encodeFormQuery({
83391
83508
  count: payload.count,
83392
83509
  skip: payload.skip,
@@ -83503,7 +83620,7 @@ async function $do45(client, request, options) {
83503
83620
  charEncoding: "percent"
83504
83621
  })
83505
83622
  };
83506
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
83623
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
83507
83624
  const headers = new Headers(compactMap({
83508
83625
  "Content-Type": "application/json",
83509
83626
  Accept: "application/json"
@@ -83620,7 +83737,7 @@ async function $do46(client, request, options) {
83620
83737
  charEncoding: "percent"
83621
83738
  })
83622
83739
  };
83623
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
83740
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
83624
83741
  const headers = new Headers(compactMap({
83625
83742
  "Content-Type": "application/json",
83626
83743
  Accept: "application/json"
@@ -96237,11 +96354,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96237
96354
  };
96238
96355
  });
96239
96356
 
96240
- // src/funcs/transfersListRefunds.ts
96241
- function transfersListRefunds(client, request, options) {
96357
+ // src/funcs/transfersListCancellations.ts
96358
+ function transfersListCancellations(client, request, options) {
96242
96359
  return new APIPromise($do154(client, request, options));
96243
96360
  }
96244
96361
  async function $do154(client, request, options) {
96362
+ const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
96363
+ if (!parsed.ok) {
96364
+ return [parsed, { status: "invalid" }];
96365
+ }
96366
+ const payload = parsed.value;
96367
+ const body = null;
96368
+ const pathParams = {
96369
+ accountID: encodeSimple("accountID", payload.accountID, {
96370
+ explode: false,
96371
+ charEncoding: "percent"
96372
+ }),
96373
+ transferID: encodeSimple("transferID", payload.transferID, {
96374
+ explode: false,
96375
+ charEncoding: "percent"
96376
+ })
96377
+ };
96378
+ const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
96379
+ const headers = new Headers(compactMap({
96380
+ Accept: "application/json"
96381
+ }));
96382
+ const securityInput = await extractSecurity(client._options.security);
96383
+ const requestSecurity = resolveGlobalSecurity(securityInput);
96384
+ const context = {
96385
+ options: client._options,
96386
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
96387
+ operationID: "listCancellations",
96388
+ oAuth2Scopes: null,
96389
+ resolvedSecurity: requestSecurity,
96390
+ securitySource: client._options.security,
96391
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
96392
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
96393
+ };
96394
+ const requestRes = client._createRequest(context, {
96395
+ security: requestSecurity,
96396
+ method: "GET",
96397
+ baseURL: options?.serverURL,
96398
+ path,
96399
+ headers,
96400
+ body,
96401
+ userAgent: client._options.userAgent,
96402
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
96403
+ }, options);
96404
+ if (!requestRes.ok) {
96405
+ return [requestRes, { status: "invalid" }];
96406
+ }
96407
+ const req = requestRes.value;
96408
+ const doResult = await client._do(req, {
96409
+ context,
96410
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
96411
+ retryConfig: context.retryConfig,
96412
+ retryCodes: context.retryCodes
96413
+ });
96414
+ if (!doResult.ok) {
96415
+ return [doResult, { status: "request-error", request: req }];
96416
+ }
96417
+ const response = doResult.value;
96418
+ const responseFields = {
96419
+ HttpMeta: { Response: response, Request: req }
96420
+ };
96421
+ const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
96422
+ hdrs: true,
96423
+ key: "Result"
96424
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
96425
+ if (!result.ok) {
96426
+ return [result, { status: "complete", request: req, response }];
96427
+ }
96428
+ return [result, { status: "complete", request: req, response }];
96429
+ }
96430
+ var init_transfersListCancellations = __esm(() => {
96431
+ init_encodings();
96432
+ init_http();
96433
+ init_matchers();
96434
+ init_primitives();
96435
+ init_schemas4();
96436
+ init_security();
96437
+ init_url();
96438
+ init_operations();
96439
+ init_async();
96440
+ });
96441
+
96442
+ // src/mcp-server/tools/transfersListCancellations.ts
96443
+ var args149, tool$transfersListCancellations;
96444
+ var init_transfersListCancellations2 = __esm(() => {
96445
+ init_transfersListCancellations();
96446
+ init_operations();
96447
+ init_tools();
96448
+ args149 = {
96449
+ request: ListCancellationsRequest$inboundSchema
96450
+ };
96451
+ tool$transfersListCancellations = {
96452
+ name: "transfers-list-cancellations",
96453
+ description: ` Get a list of cancellations for a transfer.
96454
+
96455
+ To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
96456
+ to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96457
+ args: args149,
96458
+ tool: async (client, args150, ctx) => {
96459
+ const [result, apiCall] = await transfersListCancellations(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96460
+ if (!result.ok) {
96461
+ return {
96462
+ content: [{ type: "text", text: result.error.message }],
96463
+ isError: true
96464
+ };
96465
+ }
96466
+ const value = result.value.result;
96467
+ return formatResult(value, apiCall);
96468
+ }
96469
+ };
96470
+ });
96471
+
96472
+ // src/funcs/transfersListRefunds.ts
96473
+ function transfersListRefunds(client, request, options) {
96474
+ return new APIPromise($do155(client, request, options));
96475
+ }
96476
+ async function $do155(client, request, options) {
96245
96477
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
96246
96478
  if (!parsed.ok) {
96247
96479
  return [parsed, { status: "invalid" }];
@@ -96323,12 +96555,12 @@ var init_transfersListRefunds = __esm(() => {
96323
96555
  });
96324
96556
 
96325
96557
  // src/mcp-server/tools/transfersListRefunds.ts
96326
- var args149, tool$transfersListRefunds;
96558
+ var args150, tool$transfersListRefunds;
96327
96559
  var init_transfersListRefunds2 = __esm(() => {
96328
96560
  init_transfersListRefunds();
96329
96561
  init_operations();
96330
96562
  init_tools();
96331
- args149 = {
96563
+ args150 = {
96332
96564
  request: ListRefundsRequest$inboundSchema
96333
96565
  };
96334
96566
  tool$transfersListRefunds = {
@@ -96337,9 +96569,9 @@ var init_transfersListRefunds2 = __esm(() => {
96337
96569
 
96338
96570
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96339
96571
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96340
- args: args149,
96341
- tool: async (client, args150, ctx) => {
96342
- const [result, apiCall] = await transfersListRefunds(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96572
+ args: args150,
96573
+ tool: async (client, args151, ctx) => {
96574
+ const [result, apiCall] = await transfersListRefunds(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96343
96575
  if (!result.ok) {
96344
96576
  return {
96345
96577
  content: [{ type: "text", text: result.error.message }],
@@ -96354,9 +96586,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
96354
96586
 
96355
96587
  // src/funcs/transfersUpdate.ts
96356
96588
  function transfersUpdate(client, request, options) {
96357
- return new APIPromise($do155(client, request, options));
96589
+ return new APIPromise($do156(client, request, options));
96358
96590
  }
96359
- async function $do155(client, request, options) {
96591
+ async function $do156(client, request, options) {
96360
96592
  const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
96361
96593
  if (!parsed.ok) {
96362
96594
  return [parsed, { status: "invalid" }];
@@ -96442,12 +96674,12 @@ var init_transfersUpdate = __esm(() => {
96442
96674
  });
96443
96675
 
96444
96676
  // src/mcp-server/tools/transfersUpdate.ts
96445
- var args150, tool$transfersUpdate;
96677
+ var args151, tool$transfersUpdate;
96446
96678
  var init_transfersUpdate2 = __esm(() => {
96447
96679
  init_transfersUpdate();
96448
96680
  init_operations();
96449
96681
  init_tools();
96450
- args150 = {
96682
+ args151 = {
96451
96683
  request: UpdateTransferRequest$inboundSchema
96452
96684
  };
96453
96685
  tool$transfersUpdate = {
@@ -96458,9 +96690,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
96458
96690
 
96459
96691
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96460
96692
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
96461
- args: args150,
96462
- tool: async (client, args151, ctx) => {
96463
- const [result, apiCall] = await transfersUpdate(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96693
+ args: args151,
96694
+ tool: async (client, args152, ctx) => {
96695
+ const [result, apiCall] = await transfersUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96464
96696
  if (!result.ok) {
96465
96697
  return {
96466
96698
  content: [{ type: "text", text: result.error.message }],
@@ -96475,9 +96707,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
96475
96707
 
96476
96708
  // src/funcs/underwritingGet.ts
96477
96709
  function underwritingGet(client, request, options) {
96478
- return new APIPromise($do156(client, request, options));
96710
+ return new APIPromise($do157(client, request, options));
96479
96711
  }
96480
- async function $do156(client, request, options) {
96712
+ async function $do157(client, request, options) {
96481
96713
  const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96482
96714
  if (!parsed.ok) {
96483
96715
  return [parsed, { status: "invalid" }];
@@ -96555,12 +96787,12 @@ var init_underwritingGet = __esm(() => {
96555
96787
  });
96556
96788
 
96557
96789
  // src/mcp-server/tools/underwritingGet.ts
96558
- var args151, tool$underwritingGet;
96790
+ var args152, tool$underwritingGet;
96559
96791
  var init_underwritingGet2 = __esm(() => {
96560
96792
  init_underwritingGet();
96561
96793
  init_operations();
96562
96794
  init_tools();
96563
- args151 = {
96795
+ args152 = {
96564
96796
  request: GetUnderwritingRequest$inboundSchema
96565
96797
  };
96566
96798
  tool$underwritingGet = {
@@ -96571,9 +96803,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96571
96803
 
96572
96804
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96573
96805
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
96574
- args: args151,
96575
- tool: async (client, args152, ctx) => {
96576
- const [result, apiCall] = await underwritingGet(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96806
+ args: args152,
96807
+ tool: async (client, args153, ctx) => {
96808
+ const [result, apiCall] = await underwritingGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96577
96809
  if (!result.ok) {
96578
96810
  return {
96579
96811
  content: [{ type: "text", text: result.error.message }],
@@ -96588,9 +96820,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
96588
96820
 
96589
96821
  // src/funcs/underwritingSave.ts
96590
96822
  function underwritingSave(client, request, options) {
96591
- return new APIPromise($do157(client, request, options));
96823
+ return new APIPromise($do158(client, request, options));
96592
96824
  }
96593
- async function $do157(client, request, options) {
96825
+ async function $do158(client, request, options) {
96594
96826
  const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96595
96827
  if (!parsed.ok) {
96596
96828
  return [parsed, { status: "invalid" }];
@@ -96674,12 +96906,12 @@ var init_underwritingSave = __esm(() => {
96674
96906
  });
96675
96907
 
96676
96908
  // src/mcp-server/tools/underwritingSave.ts
96677
- var args152, tool$underwritingSave;
96909
+ var args153, tool$underwritingSave;
96678
96910
  var init_underwritingSave2 = __esm(() => {
96679
96911
  init_underwritingSave();
96680
96912
  init_operations();
96681
96913
  init_tools();
96682
- args152 = {
96914
+ args153 = {
96683
96915
  request: SaveUnderwritingRequest$inboundSchema
96684
96916
  };
96685
96917
  tool$underwritingSave = {
@@ -96690,9 +96922,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96690
96922
 
96691
96923
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96692
96924
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96693
- args: args152,
96694
- tool: async (client, args153, ctx) => {
96695
- const [result, apiCall] = await underwritingSave(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96925
+ args: args153,
96926
+ tool: async (client, args154, ctx) => {
96927
+ const [result, apiCall] = await underwritingSave(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96696
96928
  if (!result.ok) {
96697
96929
  return {
96698
96930
  content: [{ type: "text", text: result.error.message }],
@@ -96707,9 +96939,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96707
96939
 
96708
96940
  // src/funcs/underwritingUpsert.ts
96709
96941
  function underwritingUpsert(client, request, options) {
96710
- return new APIPromise($do158(client, request, options));
96942
+ return new APIPromise($do159(client, request, options));
96711
96943
  }
96712
- async function $do158(client, request, options) {
96944
+ async function $do159(client, request, options) {
96713
96945
  const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
96714
96946
  if (!parsed.ok) {
96715
96947
  return [parsed, { status: "invalid" }];
@@ -96793,12 +97025,12 @@ var init_underwritingUpsert = __esm(() => {
96793
97025
  });
96794
97026
 
96795
97027
  // src/mcp-server/tools/underwritingUpsert.ts
96796
- var args153, tool$underwritingUpsert;
97028
+ var args154, tool$underwritingUpsert;
96797
97029
  var init_underwritingUpsert2 = __esm(() => {
96798
97030
  init_underwritingUpsert();
96799
97031
  init_operations();
96800
97032
  init_tools();
96801
- args153 = {
97033
+ args154 = {
96802
97034
  request: UpsertUnderwritingRequest$inboundSchema
96803
97035
  };
96804
97036
  tool$underwritingUpsert = {
@@ -96809,9 +97041,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
96809
97041
 
96810
97042
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96811
97043
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96812
- args: args153,
96813
- tool: async (client, args154, ctx) => {
96814
- const [result, apiCall] = await underwritingUpsert(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97044
+ args: args154,
97045
+ tool: async (client, args155, ctx) => {
97046
+ const [result, apiCall] = await underwritingUpsert(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96815
97047
  if (!result.ok) {
96816
97048
  return {
96817
97049
  content: [{ type: "text", text: result.error.message }],
@@ -96826,9 +97058,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
96826
97058
 
96827
97059
  // src/funcs/walletsCreate.ts
96828
97060
  function walletsCreate(client, request, options) {
96829
- return new APIPromise($do159(client, request, options));
97061
+ return new APIPromise($do160(client, request, options));
96830
97062
  }
96831
- async function $do159(client, request, options) {
97063
+ async function $do160(client, request, options) {
96832
97064
  const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
96833
97065
  if (!parsed.ok) {
96834
97066
  return [parsed, { status: "invalid" }];
@@ -96910,12 +97142,12 @@ var init_walletsCreate = __esm(() => {
96910
97142
  });
96911
97143
 
96912
97144
  // src/mcp-server/tools/walletsCreate.ts
96913
- var args154, tool$walletsCreate;
97145
+ var args155, tool$walletsCreate;
96914
97146
  var init_walletsCreate2 = __esm(() => {
96915
97147
  init_walletsCreate();
96916
97148
  init_operations();
96917
97149
  init_tools();
96918
- args154 = {
97150
+ args155 = {
96919
97151
  request: CreateWalletRequest$inboundSchema
96920
97152
  };
96921
97153
  tool$walletsCreate = {
@@ -96926,9 +97158,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
96926
97158
 
96927
97159
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
96928
97160
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
96929
- args: args154,
96930
- tool: async (client, args155, ctx) => {
96931
- const [result, apiCall] = await walletsCreate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97161
+ args: args155,
97162
+ tool: async (client, args156, ctx) => {
97163
+ const [result, apiCall] = await walletsCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96932
97164
  if (!result.ok) {
96933
97165
  return {
96934
97166
  content: [{ type: "text", text: result.error.message }],
@@ -96943,9 +97175,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
96943
97175
 
96944
97176
  // src/funcs/walletsGet.ts
96945
97177
  function walletsGet(client, request, options) {
96946
- return new APIPromise($do160(client, request, options));
97178
+ return new APIPromise($do161(client, request, options));
96947
97179
  }
96948
- async function $do160(client, request, options) {
97180
+ async function $do161(client, request, options) {
96949
97181
  const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
96950
97182
  if (!parsed.ok) {
96951
97183
  return [parsed, { status: "invalid" }];
@@ -97027,12 +97259,12 @@ var init_walletsGet = __esm(() => {
97027
97259
  });
97028
97260
 
97029
97261
  // src/mcp-server/tools/walletsGet.ts
97030
- var args155, tool$walletsGet;
97262
+ var args156, tool$walletsGet;
97031
97263
  var init_walletsGet2 = __esm(() => {
97032
97264
  init_walletsGet();
97033
97265
  init_operations();
97034
97266
  init_tools();
97035
- args155 = {
97267
+ args156 = {
97036
97268
  request: GetWalletRequest$inboundSchema
97037
97269
  };
97038
97270
  tool$walletsGet = {
@@ -97043,9 +97275,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
97043
97275
 
97044
97276
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97045
97277
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97046
- args: args155,
97047
- tool: async (client, args156, ctx) => {
97048
- const [result, apiCall] = await walletsGet(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97278
+ args: args156,
97279
+ tool: async (client, args157, ctx) => {
97280
+ const [result, apiCall] = await walletsGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97049
97281
  if (!result.ok) {
97050
97282
  return {
97051
97283
  content: [{ type: "text", text: result.error.message }],
@@ -97060,9 +97292,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97060
97292
 
97061
97293
  // src/funcs/walletsList.ts
97062
97294
  function walletsList(client, request, options) {
97063
- return new APIPromise($do161(client, request, options));
97295
+ return new APIPromise($do162(client, request, options));
97064
97296
  }
97065
- async function $do161(client, request, options) {
97297
+ async function $do162(client, request, options) {
97066
97298
  const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
97067
97299
  if (!parsed.ok) {
97068
97300
  return [parsed, { status: "invalid" }];
@@ -97150,12 +97382,12 @@ var init_walletsList = __esm(() => {
97150
97382
  });
97151
97383
 
97152
97384
  // src/mcp-server/tools/walletsList.ts
97153
- var args156, tool$walletsList;
97385
+ var args157, tool$walletsList;
97154
97386
  var init_walletsList2 = __esm(() => {
97155
97387
  init_walletsList();
97156
97388
  init_operations();
97157
97389
  init_tools();
97158
- args156 = {
97390
+ args157 = {
97159
97391
  request: ListWalletsRequest$inboundSchema
97160
97392
  };
97161
97393
  tool$walletsList = {
@@ -97166,9 +97398,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
97166
97398
 
97167
97399
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97168
97400
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97169
- args: args156,
97170
- tool: async (client, args157, ctx) => {
97171
- const [result, apiCall] = await walletsList(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97401
+ args: args157,
97402
+ tool: async (client, args158, ctx) => {
97403
+ const [result, apiCall] = await walletsList(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97172
97404
  if (!result.ok) {
97173
97405
  return {
97174
97406
  content: [{ type: "text", text: result.error.message }],
@@ -97183,9 +97415,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97183
97415
 
97184
97416
  // src/funcs/walletsUpdate.ts
97185
97417
  function walletsUpdate(client, request, options) {
97186
- return new APIPromise($do162(client, request, options));
97418
+ return new APIPromise($do163(client, request, options));
97187
97419
  }
97188
- async function $do162(client, request, options) {
97420
+ async function $do163(client, request, options) {
97189
97421
  const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
97190
97422
  if (!parsed.ok) {
97191
97423
  return [parsed, { status: "invalid" }];
@@ -97271,12 +97503,12 @@ var init_walletsUpdate = __esm(() => {
97271
97503
  });
97272
97504
 
97273
97505
  // src/mcp-server/tools/walletsUpdate.ts
97274
- var args157, tool$walletsUpdate;
97506
+ var args158, tool$walletsUpdate;
97275
97507
  var init_walletsUpdate2 = __esm(() => {
97276
97508
  init_walletsUpdate();
97277
97509
  init_operations();
97278
97510
  init_tools();
97279
- args157 = {
97511
+ args158 = {
97280
97512
  request: UpdateWalletRequest$inboundSchema
97281
97513
  };
97282
97514
  tool$walletsUpdate = {
@@ -97287,9 +97519,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
97287
97519
 
97288
97520
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97289
97521
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
97290
- args: args157,
97291
- tool: async (client, args158, ctx) => {
97292
- const [result, apiCall] = await walletsUpdate(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97522
+ args: args158,
97523
+ tool: async (client, args159, ctx) => {
97524
+ const [result, apiCall] = await walletsUpdate(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97293
97525
  if (!result.ok) {
97294
97526
  return {
97295
97527
  content: [{ type: "text", text: result.error.message }],
@@ -97304,9 +97536,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
97304
97536
 
97305
97537
  // src/funcs/walletTransactionsGet.ts
97306
97538
  function walletTransactionsGet(client, request, options) {
97307
- return new APIPromise($do163(client, request, options));
97539
+ return new APIPromise($do164(client, request, options));
97308
97540
  }
97309
- async function $do163(client, request, options) {
97541
+ async function $do164(client, request, options) {
97310
97542
  const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
97311
97543
  if (!parsed.ok) {
97312
97544
  return [parsed, { status: "invalid" }];
@@ -97392,12 +97624,12 @@ var init_walletTransactionsGet = __esm(() => {
97392
97624
  });
97393
97625
 
97394
97626
  // src/mcp-server/tools/walletTransactionsGet.ts
97395
- var args158, tool$walletTransactionsGet;
97627
+ var args159, tool$walletTransactionsGet;
97396
97628
  var init_walletTransactionsGet2 = __esm(() => {
97397
97629
  init_walletTransactionsGet();
97398
97630
  init_operations();
97399
97631
  init_tools();
97400
- args158 = {
97632
+ args159 = {
97401
97633
  request: GetWalletTransactionRequest$inboundSchema
97402
97634
  };
97403
97635
  tool$walletTransactionsGet = {
@@ -97408,9 +97640,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
97408
97640
 
97409
97641
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97410
97642
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97411
- args: args158,
97412
- tool: async (client, args159, ctx) => {
97413
- const [result, apiCall] = await walletTransactionsGet(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97643
+ args: args159,
97644
+ tool: async (client, args160, ctx) => {
97645
+ const [result, apiCall] = await walletTransactionsGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97414
97646
  if (!result.ok) {
97415
97647
  return {
97416
97648
  content: [{ type: "text", text: result.error.message }],
@@ -97425,9 +97657,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97425
97657
 
97426
97658
  // src/funcs/walletTransactionsList.ts
97427
97659
  function walletTransactionsList(client, request, options) {
97428
- return new APIPromise($do164(client, request, options));
97660
+ return new APIPromise($do165(client, request, options));
97429
97661
  }
97430
- async function $do164(client, request, options) {
97662
+ async function $do165(client, request, options) {
97431
97663
  const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
97432
97664
  if (!parsed.ok) {
97433
97665
  return [parsed, { status: "invalid" }];
@@ -97527,12 +97759,12 @@ var init_walletTransactionsList = __esm(() => {
97527
97759
  });
97528
97760
 
97529
97761
  // src/mcp-server/tools/walletTransactionsList.ts
97530
- var args159, tool$walletTransactionsList;
97762
+ var args160, tool$walletTransactionsList;
97531
97763
  var init_walletTransactionsList2 = __esm(() => {
97532
97764
  init_walletTransactionsList();
97533
97765
  init_operations();
97534
97766
  init_tools();
97535
- args159 = {
97767
+ args160 = {
97536
97768
  request: ListWalletTransactionsRequest$inboundSchema
97537
97769
  };
97538
97770
  tool$walletTransactionsList = {
@@ -97543,9 +97775,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
97543
97775
 
97544
97776
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
97545
97777
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97546
- args: args159,
97547
- tool: async (client, args160, ctx) => {
97548
- const [result, apiCall] = await walletTransactionsList(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97778
+ args: args160,
97779
+ tool: async (client, args161, ctx) => {
97780
+ const [result, apiCall] = await walletTransactionsList(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97549
97781
  if (!result.ok) {
97550
97782
  return {
97551
97783
  content: [{ type: "text", text: result.error.message }],
@@ -97560,9 +97792,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
97560
97792
 
97561
97793
  // src/funcs/webhooksCreate.ts
97562
97794
  function webhooksCreate(client, request, options) {
97563
- return new APIPromise($do165(client, request, options));
97795
+ return new APIPromise($do166(client, request, options));
97564
97796
  }
97565
- async function $do165(client, request, options) {
97797
+ async function $do166(client, request, options) {
97566
97798
  const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
97567
97799
  if (!parsed.ok) {
97568
97800
  return [parsed, { status: "invalid" }];
@@ -97639,20 +97871,20 @@ var init_webhooksCreate = __esm(() => {
97639
97871
  });
97640
97872
 
97641
97873
  // src/mcp-server/tools/webhooksCreate.ts
97642
- var args160, tool$webhooksCreate;
97874
+ var args161, tool$webhooksCreate;
97643
97875
  var init_webhooksCreate2 = __esm(() => {
97644
97876
  init_webhooksCreate();
97645
97877
  init_components();
97646
97878
  init_tools();
97647
- args160 = {
97879
+ args161 = {
97648
97880
  request: CreateWebhook$inboundSchema
97649
97881
  };
97650
97882
  tool$webhooksCreate = {
97651
97883
  name: "webhooks-create",
97652
97884
  description: `Create a new webhook for the account.`,
97653
- args: args160,
97654
- tool: async (client, args161, ctx) => {
97655
- const [result, apiCall] = await webhooksCreate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97885
+ args: args161,
97886
+ tool: async (client, args162, ctx) => {
97887
+ const [result, apiCall] = await webhooksCreate(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97656
97888
  if (!result.ok) {
97657
97889
  return {
97658
97890
  content: [{ type: "text", text: result.error.message }],
@@ -97667,9 +97899,9 @@ var init_webhooksCreate2 = __esm(() => {
97667
97899
 
97668
97900
  // src/funcs/webhooksDisable.ts
97669
97901
  function webhooksDisable(client, request, options) {
97670
- return new APIPromise($do166(client, request, options));
97902
+ return new APIPromise($do167(client, request, options));
97671
97903
  }
97672
- async function $do166(client, request, options) {
97904
+ async function $do167(client, request, options) {
97673
97905
  const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
97674
97906
  if (!parsed.ok) {
97675
97907
  return [parsed, { status: "invalid" }];
@@ -97747,20 +97979,20 @@ var init_webhooksDisable = __esm(() => {
97747
97979
  });
97748
97980
 
97749
97981
  // src/mcp-server/tools/webhooksDisable.ts
97750
- var args161, tool$webhooksDisable;
97982
+ var args162, tool$webhooksDisable;
97751
97983
  var init_webhooksDisable2 = __esm(() => {
97752
97984
  init_webhooksDisable();
97753
97985
  init_operations();
97754
97986
  init_tools();
97755
- args161 = {
97987
+ args162 = {
97756
97988
  request: DisableWebhookRequest$inboundSchema
97757
97989
  };
97758
97990
  tool$webhooksDisable = {
97759
97991
  name: "webhooks-disable",
97760
97992
  description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
97761
- args: args161,
97762
- tool: async (client, args162, ctx) => {
97763
- const [result, apiCall] = await webhooksDisable(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97993
+ args: args162,
97994
+ tool: async (client, args163, ctx) => {
97995
+ const [result, apiCall] = await webhooksDisable(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97764
97996
  if (!result.ok) {
97765
97997
  return {
97766
97998
  content: [{ type: "text", text: result.error.message }],
@@ -97774,9 +98006,9 @@ var init_webhooksDisable2 = __esm(() => {
97774
98006
 
97775
98007
  // src/funcs/webhooksGet.ts
97776
98008
  function webhooksGet(client, request, options) {
97777
- return new APIPromise($do167(client, request, options));
98009
+ return new APIPromise($do168(client, request, options));
97778
98010
  }
97779
- async function $do167(client, request, options) {
98011
+ async function $do168(client, request, options) {
97780
98012
  const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
97781
98013
  if (!parsed.ok) {
97782
98014
  return [parsed, { status: "invalid" }];
@@ -97854,20 +98086,20 @@ var init_webhooksGet = __esm(() => {
97854
98086
  });
97855
98087
 
97856
98088
  // src/mcp-server/tools/webhooksGet.ts
97857
- var args162, tool$webhooksGet;
98089
+ var args163, tool$webhooksGet;
97858
98090
  var init_webhooksGet2 = __esm(() => {
97859
98091
  init_webhooksGet();
97860
98092
  init_operations();
97861
98093
  init_tools();
97862
- args162 = {
98094
+ args163 = {
97863
98095
  request: GetWebhookRequest$inboundSchema
97864
98096
  };
97865
98097
  tool$webhooksGet = {
97866
98098
  name: "webhooks-get",
97867
98099
  description: `Get details of a specific webhook.`,
97868
- args: args162,
97869
- tool: async (client, args163, ctx) => {
97870
- const [result, apiCall] = await webhooksGet(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98100
+ args: args163,
98101
+ tool: async (client, args164, ctx) => {
98102
+ const [result, apiCall] = await webhooksGet(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97871
98103
  if (!result.ok) {
97872
98104
  return {
97873
98105
  content: [{ type: "text", text: result.error.message }],
@@ -97882,9 +98114,9 @@ var init_webhooksGet2 = __esm(() => {
97882
98114
 
97883
98115
  // src/funcs/webhooksGetSecret.ts
97884
98116
  function webhooksGetSecret(client, request, options) {
97885
- return new APIPromise($do168(client, request, options));
98117
+ return new APIPromise($do169(client, request, options));
97886
98118
  }
97887
- async function $do168(client, request, options) {
98119
+ async function $do169(client, request, options) {
97888
98120
  const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
97889
98121
  if (!parsed.ok) {
97890
98122
  return [parsed, { status: "invalid" }];
@@ -97962,20 +98194,20 @@ var init_webhooksGetSecret = __esm(() => {
97962
98194
  });
97963
98195
 
97964
98196
  // src/mcp-server/tools/webhooksGetSecret.ts
97965
- var args163, tool$webhooksGetSecret;
98197
+ var args164, tool$webhooksGetSecret;
97966
98198
  var init_webhooksGetSecret2 = __esm(() => {
97967
98199
  init_webhooksGetSecret();
97968
98200
  init_operations();
97969
98201
  init_tools();
97970
- args163 = {
98202
+ args164 = {
97971
98203
  request: GetWebhookSecretRequest$inboundSchema
97972
98204
  };
97973
98205
  tool$webhooksGetSecret = {
97974
98206
  name: "webhooks-get-secret",
97975
98207
  description: `Get the secret key for verifying webhook payloads.`,
97976
- args: args163,
97977
- tool: async (client, args164, ctx) => {
97978
- const [result, apiCall] = await webhooksGetSecret(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98208
+ args: args164,
98209
+ tool: async (client, args165, ctx) => {
98210
+ const [result, apiCall] = await webhooksGetSecret(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
97979
98211
  if (!result.ok) {
97980
98212
  return {
97981
98213
  content: [{ type: "text", text: result.error.message }],
@@ -97990,9 +98222,9 @@ var init_webhooksGetSecret2 = __esm(() => {
97990
98222
 
97991
98223
  // src/funcs/webhooksList.ts
97992
98224
  function webhooksList(client, options) {
97993
- return new APIPromise($do169(client, options));
98225
+ return new APIPromise($do170(client, options));
97994
98226
  }
97995
- async function $do169(client, options) {
98227
+ async function $do170(client, options) {
97996
98228
  const path = pathToFunc("/webhooks")();
97997
98229
  const headers = new Headers(compactMap({
97998
98230
  Accept: "application/json"
@@ -98078,9 +98310,9 @@ var init_webhooksList2 = __esm(() => {
98078
98310
 
98079
98311
  // src/funcs/webhooksListEventTypes.ts
98080
98312
  function webhooksListEventTypes(client, options) {
98081
- return new APIPromise($do170(client, options));
98313
+ return new APIPromise($do171(client, options));
98082
98314
  }
98083
- async function $do170(client, options) {
98315
+ async function $do171(client, options) {
98084
98316
  const path = pathToFunc("/event-types")();
98085
98317
  const headers = new Headers(compactMap({
98086
98318
  Accept: "application/json"
@@ -98166,9 +98398,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
98166
98398
 
98167
98399
  // src/funcs/webhooksPing.ts
98168
98400
  function webhooksPing(client, request, options) {
98169
- return new APIPromise($do171(client, request, options));
98401
+ return new APIPromise($do172(client, request, options));
98170
98402
  }
98171
- async function $do171(client, request, options) {
98403
+ async function $do172(client, request, options) {
98172
98404
  const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
98173
98405
  if (!parsed.ok) {
98174
98406
  return [parsed, { status: "invalid" }];
@@ -98246,20 +98478,20 @@ var init_webhooksPing = __esm(() => {
98246
98478
  });
98247
98479
 
98248
98480
  // src/mcp-server/tools/webhooksPing.ts
98249
- var args164, tool$webhooksPing;
98481
+ var args165, tool$webhooksPing;
98250
98482
  var init_webhooksPing2 = __esm(() => {
98251
98483
  init_webhooksPing();
98252
98484
  init_operations();
98253
98485
  init_tools();
98254
- args164 = {
98486
+ args165 = {
98255
98487
  request: PingWebhookRequest$inboundSchema
98256
98488
  };
98257
98489
  tool$webhooksPing = {
98258
98490
  name: "webhooks-ping",
98259
98491
  description: `Send a test ping to a webhook to verify it is configured correctly.`,
98260
- args: args164,
98261
- tool: async (client, args165, ctx) => {
98262
- const [result, apiCall] = await webhooksPing(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98492
+ args: args165,
98493
+ tool: async (client, args166, ctx) => {
98494
+ const [result, apiCall] = await webhooksPing(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98263
98495
  if (!result.ok) {
98264
98496
  return {
98265
98497
  content: [{ type: "text", text: result.error.message }],
@@ -98274,9 +98506,9 @@ var init_webhooksPing2 = __esm(() => {
98274
98506
 
98275
98507
  // src/funcs/webhooksUpdate.ts
98276
98508
  function webhooksUpdate(client, request, options) {
98277
- return new APIPromise($do172(client, request, options));
98509
+ return new APIPromise($do173(client, request, options));
98278
98510
  }
98279
- async function $do172(client, request, options) {
98511
+ async function $do173(client, request, options) {
98280
98512
  const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
98281
98513
  if (!parsed.ok) {
98282
98514
  return [parsed, { status: "invalid" }];
@@ -98358,20 +98590,20 @@ var init_webhooksUpdate = __esm(() => {
98358
98590
  });
98359
98591
 
98360
98592
  // src/mcp-server/tools/webhooksUpdate.ts
98361
- var args165, tool$webhooksUpdate;
98593
+ var args166, tool$webhooksUpdate;
98362
98594
  var init_webhooksUpdate2 = __esm(() => {
98363
98595
  init_webhooksUpdate();
98364
98596
  init_operations();
98365
98597
  init_tools();
98366
- args165 = {
98598
+ args166 = {
98367
98599
  request: UpdateWebhookRequest$inboundSchema
98368
98600
  };
98369
98601
  tool$webhooksUpdate = {
98370
98602
  name: "webhooks-update",
98371
98603
  description: `Update an existing webhook.`,
98372
- args: args165,
98373
- tool: async (client, args166, ctx) => {
98374
- const [result, apiCall] = await webhooksUpdate(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98604
+ args: args166,
98605
+ tool: async (client, args167, ctx) => {
98606
+ const [result, apiCall] = await webhooksUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
98375
98607
  if (!result.ok) {
98376
98608
  return {
98377
98609
  content: [{ type: "text", text: result.error.message }],
@@ -98388,7 +98620,7 @@ var init_webhooksUpdate2 = __esm(() => {
98388
98620
  function createMCPServer(deps) {
98389
98621
  const server = new McpServer({
98390
98622
  name: "Moov",
98391
- version: "26.3.0"
98623
+ version: "26.3.2"
98392
98624
  });
98393
98625
  const client = new MoovCore({
98394
98626
  security: deps.security,
@@ -98521,6 +98753,7 @@ function createMCPServer(deps) {
98521
98753
  tool(tool$transfersGet);
98522
98754
  tool(tool$transfersUpdate);
98523
98755
  tool(tool$transfersCreateCancellation);
98756
+ tool(tool$transfersListCancellations);
98524
98757
  tool(tool$transfersGetCancellation);
98525
98758
  tool(tool$transfersInitiateRefund);
98526
98759
  tool(tool$transfersListRefunds);
@@ -98735,6 +98968,7 @@ var init_server2 = __esm(() => {
98735
98968
  init_transfersGetRefund2();
98736
98969
  init_transfersInitiateRefund2();
98737
98970
  init_transfersList2();
98971
+ init_transfersListCancellations2();
98738
98972
  init_transfersListRefunds2();
98739
98973
  init_transfersUpdate2();
98740
98974
  init_underwritingGet2();
@@ -99956,7 +100190,7 @@ var routes = rn({
99956
100190
  var app = Ve(routes, {
99957
100191
  name: "mcp",
99958
100192
  versionInfo: {
99959
- currentVersion: "26.3.0"
100193
+ currentVersion: "26.3.2"
99960
100194
  }
99961
100195
  });
99962
100196
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -99964,5 +100198,5 @@ export {
99964
100198
  app
99965
100199
  };
99966
100200
 
99967
- //# debugId=2E0782758D2E3D8464756E2164756E21
100201
+ //# debugId=44F2CA8CD40E2FBC64756E2164756E21
99968
100202
  //# sourceMappingURL=mcp-server.js.map