@moovio/sdk 25.2.7 → 25.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/README.md +109 -77
  2. package/bin/mcp-server.js +597 -317
  3. package/bin/mcp-server.js.map +59 -59
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/capabilitiesDisable.d.ts +1 -1
  9. package/funcs/capabilitiesDisable.js +1 -1
  10. package/funcs/capabilitiesGet.d.ts +1 -1
  11. package/funcs/capabilitiesGet.js +1 -1
  12. package/funcs/capabilitiesList.d.ts +1 -1
  13. package/funcs/capabilitiesList.js +1 -1
  14. package/funcs/capabilitiesRequest.d.ts +1 -1
  15. package/funcs/capabilitiesRequest.js +1 -1
  16. package/funcs/cardIssuingGet.js +1 -1
  17. package/funcs/cardIssuingGet.js.map +1 -1
  18. package/funcs/cardIssuingGetFull.js +1 -1
  19. package/funcs/cardIssuingGetFull.js.map +1 -1
  20. package/funcs/cardIssuingList.js +1 -1
  21. package/funcs/cardIssuingList.js.map +1 -1
  22. package/funcs/cardIssuingRequest.js +1 -1
  23. package/funcs/cardIssuingRequest.js.map +1 -1
  24. package/funcs/cardIssuingUpdate.js +1 -1
  25. package/funcs/cardIssuingUpdate.js.map +1 -1
  26. package/funcs/transfersListCancellations.d.ts +17 -0
  27. package/funcs/transfersListCancellations.d.ts.map +1 -0
  28. package/funcs/transfersListCancellations.js +129 -0
  29. package/funcs/transfersListCancellations.js.map +1 -0
  30. package/hooks/access-token-hook.d.ts +25 -0
  31. package/hooks/access-token-hook.d.ts.map +1 -0
  32. package/hooks/access-token-hook.js +60 -0
  33. package/hooks/access-token-hook.js.map +1 -0
  34. package/hooks/registration.d.ts.map +1 -1
  35. package/hooks/registration.js +4 -0
  36. package/hooks/registration.js.map +1 -1
  37. package/hooks/types.d.ts +1 -0
  38. package/hooks/types.d.ts.map +1 -1
  39. package/jsr.json +1 -1
  40. package/lib/config.d.ts +7 -3
  41. package/lib/config.d.ts.map +1 -1
  42. package/lib/config.js +3 -3
  43. package/lib/config.js.map +1 -1
  44. package/lib/encodings.js +12 -12
  45. package/lib/encodings.js.map +1 -1
  46. package/lib/matchers.js +3 -3
  47. package/lib/matchers.js.map +1 -1
  48. package/lib/primitives.d.ts +1 -0
  49. package/lib/primitives.d.ts.map +1 -1
  50. package/lib/primitives.js +18 -0
  51. package/lib/primitives.js.map +1 -1
  52. package/lib/retries.js +7 -0
  53. package/lib/retries.js.map +1 -1
  54. package/lib/sdks.d.ts.map +1 -1
  55. package/lib/sdks.js +50 -16
  56. package/lib/sdks.js.map +1 -1
  57. package/mcp-server/cli/start/command.d.ts.map +1 -1
  58. package/mcp-server/cli/start/command.js +8 -0
  59. package/mcp-server/cli/start/command.js.map +1 -1
  60. package/mcp-server/cli/start/impl.d.ts +1 -0
  61. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  62. package/mcp-server/cli/start/impl.js +2 -0
  63. package/mcp-server/cli/start/impl.js.map +1 -1
  64. package/mcp-server/mcp-server.js +1 -1
  65. package/mcp-server/server.d.ts +1 -0
  66. package/mcp-server/server.d.ts.map +1 -1
  67. package/mcp-server/server.js +4 -1
  68. package/mcp-server/server.js.map +1 -1
  69. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  70. package/mcp-server/tools/accountsCreate.js +8 -10
  71. package/mcp-server/tools/accountsCreate.js.map +1 -1
  72. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  73. package/mcp-server/tools/capabilitiesGet.js +1 -1
  74. package/mcp-server/tools/capabilitiesList.js +1 -1
  75. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  76. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  77. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  78. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
  79. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  80. package/models/components/addcapabilities.d.ts +9 -0
  81. package/models/components/addcapabilities.d.ts.map +1 -1
  82. package/models/components/addcapabilities.js.map +1 -1
  83. package/models/components/capability.d.ts +7 -1
  84. package/models/components/capability.d.ts.map +1 -1
  85. package/models/components/capability.js.map +1 -1
  86. package/models/components/capabilityid.d.ts +14 -2
  87. package/models/components/capabilityid.d.ts.map +1 -1
  88. package/models/components/capabilityid.js +7 -1
  89. package/models/components/capabilityid.js.map +1 -1
  90. package/models/components/createaccount.d.ts +9 -0
  91. package/models/components/createaccount.d.ts.map +1 -1
  92. package/models/components/createaccount.js.map +1 -1
  93. package/models/components/createpaymentlink.d.ts +3 -3
  94. package/models/components/fullissuedcard.d.ts +25 -9
  95. package/models/components/fullissuedcard.d.ts.map +1 -1
  96. package/models/components/fullissuedcard.js +11 -5
  97. package/models/components/fullissuedcard.js.map +1 -1
  98. package/models/components/index.d.ts +1 -4
  99. package/models/components/index.d.ts.map +1 -1
  100. package/models/components/index.js +1 -4
  101. package/models/components/index.js.map +1 -1
  102. package/models/components/issuedcard.d.ts +25 -9
  103. package/models/components/issuedcard.d.ts.map +1 -1
  104. package/models/components/issuedcard.js +11 -5
  105. package/models/components/issuedcard.js.map +1 -1
  106. package/models/components/onboardinginvite.d.ts +1 -1
  107. package/models/components/onboardinginviterequest.d.ts +1 -1
  108. package/models/components/paymentlink.d.ts +2 -2
  109. package/models/components/requestcard.d.ts +14 -17
  110. package/models/components/requestcard.d.ts.map +1 -1
  111. package/models/components/requestcard.js +9 -10
  112. package/models/components/requestcard.js.map +1 -1
  113. package/models/components/updateissuedcard.d.ts +33 -8
  114. package/models/components/updateissuedcard.d.ts.map +1 -1
  115. package/models/components/updateissuedcard.js +35 -6
  116. package/models/components/updateissuedcard.js.map +1 -1
  117. package/models/components/webhookdata.d.ts +3 -2
  118. package/models/components/webhookdata.d.ts.map +1 -1
  119. package/models/components/webhookdata.js +7 -4
  120. package/models/components/webhookdata.js.map +1 -1
  121. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  122. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  123. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  124. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  125. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  126. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  127. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  128. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  129. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  130. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  131. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  132. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  133. package/models/components/webhookdatasweepcreated.js +2 -0
  134. package/models/components/webhookdatasweepcreated.js.map +1 -1
  135. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  136. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  137. package/models/components/webhookdatasweepupdated.js +2 -0
  138. package/models/components/webhookdatasweepupdated.js.map +1 -1
  139. package/models/components/webhookeventtype.d.ts +1 -0
  140. package/models/components/webhookeventtype.d.ts.map +1 -1
  141. package/models/components/webhookeventtype.js +1 -0
  142. package/models/components/webhookeventtype.js.map +1 -1
  143. package/models/errors/requestcarderror.d.ts +12 -12
  144. package/models/errors/requestcarderror.d.ts.map +1 -1
  145. package/models/errors/requestcarderror.js +17 -17
  146. package/models/errors/requestcarderror.js.map +1 -1
  147. package/models/errors/updateissuedcarderror.d.ts +9 -6
  148. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  149. package/models/errors/updateissuedcarderror.js +12 -9
  150. package/models/errors/updateissuedcarderror.js.map +1 -1
  151. package/models/operations/disablecapability.d.ts +7 -1
  152. package/models/operations/disablecapability.d.ts.map +1 -1
  153. package/models/operations/disablecapability.js.map +1 -1
  154. package/models/operations/getcapability.d.ts +7 -1
  155. package/models/operations/getcapability.d.ts.map +1 -1
  156. package/models/operations/getcapability.js.map +1 -1
  157. package/models/operations/index.d.ts +1 -0
  158. package/models/operations/index.d.ts.map +1 -1
  159. package/models/operations/index.js +1 -0
  160. package/models/operations/index.js.map +1 -1
  161. package/models/operations/listcancellations.d.ts +45 -0
  162. package/models/operations/listcancellations.d.ts.map +1 -0
  163. package/models/operations/listcancellations.js +90 -0
  164. package/models/operations/listcancellations.js.map +1 -0
  165. package/package.json +1 -1
  166. package/sdk/accounts.d.ts +8 -10
  167. package/sdk/accounts.d.ts.map +1 -1
  168. package/sdk/accounts.js +8 -10
  169. package/sdk/accounts.js.map +1 -1
  170. package/sdk/capabilities.d.ts +4 -4
  171. package/sdk/capabilities.js +4 -4
  172. package/sdk/transfers.d.ts +7 -0
  173. package/sdk/transfers.d.ts.map +1 -1
  174. package/sdk/transfers.js +10 -0
  175. package/sdk/transfers.js.map +1 -1
  176. package/src/funcs/accountsCreate.ts +8 -10
  177. package/src/funcs/capabilitiesDisable.ts +1 -1
  178. package/src/funcs/capabilitiesGet.ts +1 -1
  179. package/src/funcs/capabilitiesList.ts +1 -1
  180. package/src/funcs/capabilitiesRequest.ts +1 -1
  181. package/src/funcs/cardIssuingGet.ts +1 -1
  182. package/src/funcs/cardIssuingGetFull.ts +3 -3
  183. package/src/funcs/cardIssuingList.ts +1 -1
  184. package/src/funcs/cardIssuingRequest.ts +1 -1
  185. package/src/funcs/cardIssuingUpdate.ts +1 -1
  186. package/src/funcs/transfersListCancellations.ts +181 -0
  187. package/src/hooks/access-token-hook.ts +73 -0
  188. package/src/hooks/registration.ts +5 -0
  189. package/src/hooks/types.ts +1 -0
  190. package/src/lib/config.ts +8 -3
  191. package/src/lib/encodings.ts +1 -1
  192. package/src/lib/matchers.ts +1 -1
  193. package/src/lib/primitives.ts +16 -0
  194. package/src/lib/retries.ts +8 -0
  195. package/src/lib/sdks.ts +54 -17
  196. package/src/mcp-server/cli/start/command.ts +9 -0
  197. package/src/mcp-server/cli/start/impl.ts +3 -0
  198. package/src/mcp-server/mcp-server.ts +1 -1
  199. package/src/mcp-server/server.ts +5 -1
  200. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  201. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  202. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  203. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  204. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  205. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  206. package/src/models/components/addcapabilities.ts +9 -0
  207. package/src/models/components/capability.ts +7 -1
  208. package/src/models/components/capabilityid.ts +14 -2
  209. package/src/models/components/createaccount.ts +9 -0
  210. package/src/models/components/createpaymentlink.ts +3 -3
  211. package/src/models/components/fullissuedcard.ts +35 -17
  212. package/src/models/components/index.ts +1 -4
  213. package/src/models/components/issuedcard.ts +35 -17
  214. package/src/models/components/onboardinginvite.ts +1 -1
  215. package/src/models/components/onboardinginviterequest.ts +1 -1
  216. package/src/models/components/paymentlink.ts +2 -2
  217. package/src/models/components/requestcard.ts +23 -34
  218. package/src/models/components/updateissuedcard.ts +73 -17
  219. package/src/models/components/webhookdata.ts +18 -8
  220. package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
  221. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  222. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  223. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  224. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  225. package/src/models/components/webhookeventtype.ts +1 -0
  226. package/src/models/errors/requestcarderror.ts +26 -25
  227. package/src/models/errors/updateissuedcarderror.ts +18 -13
  228. package/src/models/operations/disablecapability.ts +7 -1
  229. package/src/models/operations/getcapability.ts +7 -1
  230. package/src/models/operations/index.ts +1 -0
  231. package/src/models/operations/listcancellations.ts +120 -0
  232. package/src/sdk/accounts.ts +8 -10
  233. package/src/sdk/capabilities.ts +4 -4
  234. package/src/sdk/transfers.ts +18 -0
  235. package/src/types/async.ts +8 -7
  236. package/test/tests/accessToken.test.ts +86 -0
  237. package/types/async.d.ts.map +1 -1
  238. package/types/async.js +8 -7
  239. package/types/async.js.map +1 -1
  240. package/lib/dlv.d.ts +0 -14
  241. package/lib/dlv.d.ts.map +0 -1
  242. package/lib/dlv.js +0 -49
  243. package/lib/dlv.js.map +0 -1
  244. package/lib/is-plain-object.d.ts +0 -2
  245. package/lib/is-plain-object.d.ts.map +0 -1
  246. package/lib/is-plain-object.js +0 -41
  247. package/lib/is-plain-object.js.map +0 -1
  248. package/models/components/authorizeduser.d.ts +0 -22
  249. package/models/components/authorizeduser.d.ts.map +0 -1
  250. package/models/components/authorizeduser.js.map +0 -1
  251. package/models/components/createauthorizeduser.d.ts +0 -25
  252. package/models/components/createauthorizeduser.d.ts.map +0 -1
  253. package/models/components/createauthorizeduser.js +0 -63
  254. package/models/components/createauthorizeduser.js.map +0 -1
  255. package/models/components/createauthorizedusererror.d.ts +0 -22
  256. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  257. package/models/components/createauthorizedusererror.js.map +0 -1
  258. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  259. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  260. package/models/components/createauthorizeduserupdate.js +0 -63
  261. package/models/components/createauthorizeduserupdate.js.map +0 -1
  262. package/src/lib/dlv.ts +0 -53
  263. package/src/lib/is-plain-object.ts +0 -43
  264. package/src/models/components/authorizeduser.ts +0 -54
  265. package/src/models/components/createauthorizeduser.ts +0 -68
  266. package/src/models/components/createauthorizedusererror.ts +0 -65
  267. package/src/models/components/createauthorizeduserupdate.ts +0 -68
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;
@@ -52835,6 +52900,36 @@ var init_mcp = __esm(() => {
52835
52900
  };
52836
52901
  });
52837
52902
 
52903
+ // src/hooks/access-token-hook.ts
52904
+ class AccessTokenHook {
52905
+ sdkInit(opts) {
52906
+ const token = opts.accessToken;
52907
+ const hasToken = typeof token === "string" && token.length > 0;
52908
+ if (hasToken && opts.security != null) {
52909
+ throw new Error("Moov SDK: `accessToken` and `security.username`/`password` cannot " + "both be set. Use `accessToken` for OAuth2 bearer auth " + "(typically client-side) or `security.username`/`password` for " + "HTTP Basic auth with API keys (server-side).");
52910
+ }
52911
+ if (isBrowserLike && opts.security != null) {
52912
+ throw new Error("Moov SDK: HTTP Basic credentials were provided in a browser-like " + "environment. API keys must never be embedded in client-side " + "code. Mint a short-lived OAuth2 access token on your server " + "and pass it via the `accessToken` option instead.");
52913
+ }
52914
+ return opts;
52915
+ }
52916
+ beforeRequest(ctx, request) {
52917
+ const token = ctx.options.accessToken;
52918
+ if (!token || request.headers.has("Authorization")) {
52919
+ return request;
52920
+ }
52921
+ const next = new Request(request);
52922
+ next.headers.set("Authorization", `Bearer ${token}`);
52923
+ return next;
52924
+ }
52925
+ }
52926
+ var gt, webWorkerLike, isBrowserLike;
52927
+ var init_access_token_hook = __esm(() => {
52928
+ gt = typeof globalThis === "undefined" ? null : globalThis;
52929
+ webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
52930
+ isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
52931
+ });
52932
+
52838
52933
  // src/lib/url.ts
52839
52934
  function pathToFunc(pathPattern, options) {
52840
52935
  const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
@@ -52879,9 +52974,9 @@ var init_config = __esm(() => {
52879
52974
  SDK_METADATA = {
52880
52975
  language: "typescript",
52881
52976
  openapiDocVersion: "v2025.01.00",
52882
- sdkVersion: "25.2.7",
52883
- genVersion: "2.884.0",
52884
- userAgent: "speakeasy-sdk/typescript 25.2.7 2.884.0 v2025.01.00 @moovio/sdk"
52977
+ sdkVersion: "25.3.1",
52978
+ genVersion: "2.910.1",
52979
+ userAgent: "speakeasy-sdk/typescript 25.3.1 2.910.1 v2025.01.00 @moovio/sdk"
52885
52980
  };
52886
52981
  });
52887
52982
 
@@ -52901,8 +52996,12 @@ var init_moov_version_hook = __esm(() => {
52901
52996
  function initHooks(hooks) {
52902
52997
  const versionHook = new MoovVersionHook;
52903
52998
  hooks.registerBeforeRequestHook(versionHook);
52999
+ const accessTokenHook = new AccessTokenHook;
53000
+ hooks.registerSDKInitHook(accessTokenHook);
53001
+ hooks.registerBeforeRequestHook(accessTokenHook);
52904
53002
  }
52905
53003
  var init_registration = __esm(() => {
53004
+ init_access_token_hook();
52906
53005
  init_moov_version_hook();
52907
53006
  });
52908
53007
 
@@ -53050,15 +53149,6 @@ var init_base64 = __esm(() => {
53050
53149
  zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
53051
53150
  });
53052
53151
 
53053
- // src/lib/is-plain-object.ts
53054
- function isPlainObject3(value) {
53055
- if (typeof value !== "object" || value === null) {
53056
- return false;
53057
- }
53058
- const prototype = Object.getPrototypeOf(value);
53059
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
53060
- }
53061
-
53062
53152
  // src/lib/encodings.ts
53063
53153
  function formEncoder(sep) {
53064
53154
  return (key, value, options) => {
@@ -53079,7 +53169,7 @@ function formEncoder(sep) {
53079
53169
  return;
53080
53170
  } else if (Array.isArray(pv)) {
53081
53171
  encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
53082
- } else if (isPlainObject3(pv)) {
53172
+ } else if (isPlainObject2(pv)) {
53083
53173
  encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53084
53174
  return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
53085
53175
  })?.join(encodedSep);
@@ -53102,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
53102
53192
  if (value == null) {
53103
53193
  return;
53104
53194
  }
53105
- if (!isPlainObject3(value)) {
53195
+ if (!isPlainObject2(value)) {
53106
53196
  throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
53107
53197
  }
53108
53198
  return encodeDeepObjectObject(key, value, options);
@@ -53115,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
53115
53205
  const encodeString = (v2) => {
53116
53206
  return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
53117
53207
  };
53118
- if (!isPlainObject3(value)) {
53208
+ if (!isPlainObject2(value)) {
53119
53209
  throw new EncodingError(`Expected parameter '${key}' to be an object.`);
53120
53210
  }
53121
53211
  Object.entries(value).forEach(([ck, cv]) => {
@@ -53123,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
53123
53213
  return;
53124
53214
  }
53125
53215
  const pk = `${key}[${ck}]`;
53126
- if (isPlainObject3(cv)) {
53216
+ if (isPlainObject2(cv)) {
53127
53217
  const objOut = encodeDeepObjectObject(pk, cv, options);
53128
53218
  out += objOut == null ? "" : `&${objOut}`;
53129
53219
  return;
@@ -53149,7 +53239,7 @@ function encodeJSON(key, value, options) {
53149
53239
  function explode(key, value) {
53150
53240
  if (Array.isArray(value)) {
53151
53241
  return value.map((v2) => [key, v2]);
53152
- } else if (isPlainObject3(value)) {
53242
+ } else if (isPlainObject2(value)) {
53153
53243
  const o = value ?? {};
53154
53244
  return Object.entries(o).map(([k2, v2]) => [k2, v2]);
53155
53245
  } else {
@@ -53274,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53274
53364
  return;
53275
53365
  } else if (Array.isArray(pv)) {
53276
53366
  tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
53277
- } else if (isPlainObject3(pv)) {
53367
+ } else if (isPlainObject2(pv)) {
53278
53368
  const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
53279
53369
  return `,${encodeString(k2)},${encodeValue(v2)}`;
53280
53370
  });
53281
53371
  tmp = mapped?.join("").slice(1);
53282
53372
  } else {
53283
- const k2 = options?.explode && isPlainObject3(value) ? `${pk}=` : "";
53373
+ const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
53284
53374
  tmp = `${k2}${encodeValue(pv)}`;
53285
53375
  }
53286
53376
  out += tmp ? `,${tmp}` : "";
@@ -53289,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53289
53379
  }, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
53290
53380
  var init_encodings = __esm(() => {
53291
53381
  init_base64();
53382
+ init_primitives();
53292
53383
  EncodingError = class EncodingError extends Error {
53293
53384
  constructor(message) {
53294
53385
  super(message);
@@ -53554,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
53554
53645
  }
53555
53646
  }
53556
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
+ }
53557
53655
  const retryVal = res.headers.get("retry-after") || "";
53558
53656
  if (!retryVal) {
53559
53657
  return 0;
@@ -53645,24 +53743,41 @@ class ClientSDK {
53645
53743
  if (path) {
53646
53744
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
53647
53745
  reqURL = new URL(path, baseURL);
53746
+ if (!reqURL.search && baseURL.search) {
53747
+ reqURL.search = baseURL.search;
53748
+ }
53648
53749
  } else {
53649
53750
  reqURL = baseURL;
53650
53751
  }
53651
53752
  reqURL.hash = "";
53652
- let finalQuery = query || "";
53653
- const secQuery = [];
53654
- for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
53655
- const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
53656
- if (typeof q2 !== "undefined") {
53657
- secQuery.push(q2);
53753
+ const mergeQuery = (current, additions) => {
53754
+ if (!additions) {
53755
+ return current;
53658
53756
  }
53659
- }
53660
- if (secQuery.length) {
53661
- finalQuery += `&${secQuery.join("&")}`;
53662
- }
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));
53663
53779
  if (finalQuery) {
53664
- const q2 = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
53665
- reqURL.search = `?${q2}`;
53780
+ reqURL.search = `?${finalQuery}`;
53666
53781
  }
53667
53782
  const headers = new Headers(opHeaders);
53668
53783
  const username = security?.basic.username;
@@ -53685,16 +53800,15 @@ class ClientSDK {
53685
53800
  for (const [k2, v2] of userHeaders) {
53686
53801
  headers.set(k2, v2);
53687
53802
  }
53688
- if (!isBrowserLike) {
53803
+ if (!isBrowserLike2) {
53689
53804
  headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
53690
53805
  }
53691
53806
  const fetchOptions = {
53692
53807
  ...options?.fetchOptions,
53693
53808
  ...options
53694
53809
  };
53695
- if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
53696
- const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
53697
- fetchOptions.signal = timeoutSignal;
53810
+ if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
53811
+ context.timeoutMs = conf.timeoutMs;
53698
53812
  }
53699
53813
  if (conf.body instanceof ReadableStream) {
53700
53814
  Object.assign(fetchOptions, { duplex: "half" });
@@ -53719,8 +53833,16 @@ class ClientSDK {
53719
53833
  }
53720
53834
  async _do(request, options) {
53721
53835
  const { context, isErrorStatusCode } = options;
53836
+ const timeoutMs = context.timeoutMs;
53722
53837
  return retry(async () => {
53723
- 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);
53724
53846
  await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
53725
53847
  let response = await this.#httpClient.request(req);
53726
53848
  try {
@@ -53830,7 +53952,7 @@ async function logResponse(logger, res, req) {
53830
53952
  logger.groupEnd();
53831
53953
  logger.groupEnd();
53832
53954
  }
53833
- var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
53955
+ var gt2, webWorkerLike2, isBrowserLike2, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
53834
53956
  var init_sdks = __esm(() => {
53835
53957
  init_hooks();
53836
53958
  init_httpclienterrors();
@@ -53838,10 +53960,11 @@ var init_sdks = __esm(() => {
53838
53960
  init_config();
53839
53961
  init_encodings();
53840
53962
  init_http();
53963
+ init_primitives();
53841
53964
  init_retries();
53842
- gt = typeof globalThis === "undefined" ? null : globalThis;
53843
- webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
53844
- isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
53965
+ gt2 = typeof globalThis === "undefined" ? null : globalThis;
53966
+ webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
53967
+ isBrowserLike2 = webWorkerLike2 || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
53845
53968
  jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
53846
53969
  jsonlLikeContentTypeRE = /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
53847
53970
  });
@@ -54287,7 +54410,7 @@ function match(...matchers) {
54287
54410
  data = {
54288
54411
  ...options?.extraFields,
54289
54412
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54290
- ...isPlainObject3(raw) ? raw : null,
54413
+ ...isPlainObject2(raw) ? raw : null,
54291
54414
  request$: request,
54292
54415
  response$: response,
54293
54416
  body$: body
@@ -54302,7 +54425,7 @@ function match(...matchers) {
54302
54425
  data = {
54303
54426
  ...options?.extraFields,
54304
54427
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
54305
- ...isPlainObject3(raw) ? raw : null
54428
+ ...isPlainObject2(raw) ? raw : null
54306
54429
  };
54307
54430
  } else {
54308
54431
  data = raw;
@@ -54342,6 +54465,7 @@ var init_matchers = __esm(() => {
54342
54465
  init_apierror();
54343
54466
  init_responsevalidationerror();
54344
54467
  init_http();
54468
+ init_primitives();
54345
54469
  DEFAULT_CONTENT_TYPES = {
54346
54470
  jsonl: "application/jsonl",
54347
54471
  json: "application/json",
@@ -56309,20 +56433,6 @@ var init_asynctransfer = __esm(() => {
56309
56433
  });
56310
56434
  });
56311
56435
 
56312
- // src/models/components/authorizeduser.ts
56313
- var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
56314
- var init_authorizeduser = __esm(() => {
56315
- init_esm();
56316
- AuthorizedUser$inboundSchema = objectType({
56317
- firstName: stringType(),
56318
- lastName: stringType()
56319
- });
56320
- AuthorizedUser$outboundSchema = objectType({
56321
- firstName: stringType(),
56322
- lastName: stringType()
56323
- });
56324
- });
56325
-
56326
56436
  // src/models/components/tokentype.ts
56327
56437
  var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
56328
56438
  var init_tokentype = __esm(() => {
@@ -60568,57 +60678,6 @@ var init_createapplepaysession = __esm(() => {
60568
60678
  });
60569
60679
  });
60570
60680
 
60571
- // src/models/components/createauthorizeduser.ts
60572
- var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
60573
- var init_createauthorizeduser = __esm(() => {
60574
- init_esm();
60575
- init_birthdate();
60576
- CreateAuthorizedUser$inboundSchema = objectType({
60577
- firstName: stringType(),
60578
- lastName: stringType(),
60579
- birthDate: BirthDate$inboundSchema.optional()
60580
- });
60581
- CreateAuthorizedUser$outboundSchema = objectType({
60582
- firstName: stringType(),
60583
- lastName: stringType(),
60584
- birthDate: BirthDate$outboundSchema.optional()
60585
- });
60586
- });
60587
-
60588
- // src/models/components/createauthorizedusererror.ts
60589
- var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
60590
- var init_createauthorizedusererror = __esm(() => {
60591
- init_esm();
60592
- init_birthdateerror();
60593
- CreateAuthorizedUserError$inboundSchema = objectType({
60594
- firstName: stringType().optional(),
60595
- lastName: stringType().optional(),
60596
- birthDate: BirthDateError$inboundSchema.optional()
60597
- });
60598
- CreateAuthorizedUserError$outboundSchema = objectType({
60599
- firstName: stringType().optional(),
60600
- lastName: stringType().optional(),
60601
- birthDate: BirthDateError$outboundSchema.optional()
60602
- });
60603
- });
60604
-
60605
- // src/models/components/createauthorizeduserupdate.ts
60606
- var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
60607
- var init_createauthorizeduserupdate = __esm(() => {
60608
- init_esm();
60609
- init_birthdateupdate();
60610
- CreateAuthorizedUserUpdate$inboundSchema = objectType({
60611
- firstName: stringType().optional(),
60612
- lastName: stringType().optional(),
60613
- birthDate: BirthDateUpdate$inboundSchema.optional()
60614
- });
60615
- CreateAuthorizedUserUpdate$outboundSchema = objectType({
60616
- firstName: stringType().optional(),
60617
- lastName: stringType().optional(),
60618
- birthDate: BirthDateUpdate$outboundSchema.optional()
60619
- });
60620
- });
60621
-
60622
60681
  // src/models/components/phonenumbererror.ts
60623
60682
  var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
60624
60683
  var init_phonenumbererror = __esm(() => {
@@ -62303,7 +62362,8 @@ var init_webhookeventtype = __esm(() => {
62303
62362
  WalletCreated: "wallet.created",
62304
62363
  WalletUpdated: "wallet.updated",
62305
62364
  WalletTransactionUpdated: "walletTransaction.updated",
62306
- BillingStatementCreated: "billingStatement.created"
62365
+ BillingStatementCreated: "billingStatement.created",
62366
+ AuthorizationExpiring: "authorization.expiring"
62307
62367
  };
62308
62368
  WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
62309
62369
  WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
@@ -63073,7 +63133,7 @@ var init_issuingcontrols = __esm(() => {
63073
63133
  var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
63074
63134
  var init_fullissuedcard = __esm(() => {
63075
63135
  init_esm();
63076
- init_authorizeduser();
63136
+ init_address();
63077
63137
  init_cardbrand();
63078
63138
  init_cardexpiration();
63079
63139
  init_issuedcardformfactor();
@@ -63084,13 +63144,16 @@ var init_fullissuedcard = __esm(() => {
63084
63144
  brand: CardBrand$inboundSchema,
63085
63145
  lastFourCardNumber: stringType(),
63086
63146
  expiration: CardExpiration$inboundSchema,
63087
- authorizedUser: AuthorizedUser$inboundSchema,
63088
- memo: stringType().optional(),
63089
63147
  fundingWalletID: stringType(),
63148
+ authorizedUserAccountID: stringType().optional(),
63149
+ nickname: stringType().optional(),
63150
+ metadata: recordType(stringType()).optional(),
63151
+ billingAddress: Address$inboundSchema.optional(),
63090
63152
  state: IssuedCardState$inboundSchema,
63091
63153
  formFactor: IssuedCardFormFactor$inboundSchema,
63092
63154
  controls: IssuingControls$inboundSchema.optional(),
63093
63155
  createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63156
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63094
63157
  pan: stringType(),
63095
63158
  cvv: stringType()
63096
63159
  });
@@ -63099,13 +63162,16 @@ var init_fullissuedcard = __esm(() => {
63099
63162
  brand: CardBrand$outboundSchema,
63100
63163
  lastFourCardNumber: stringType(),
63101
63164
  expiration: CardExpiration$outboundSchema,
63102
- authorizedUser: AuthorizedUser$outboundSchema,
63103
- memo: stringType().optional(),
63104
63165
  fundingWalletID: stringType(),
63166
+ authorizedUserAccountID: stringType().optional(),
63167
+ nickname: stringType().optional(),
63168
+ metadata: recordType(stringType()).optional(),
63169
+ billingAddress: Address$outboundSchema.optional(),
63105
63170
  state: IssuedCardState$outboundSchema,
63106
63171
  formFactor: IssuedCardFormFactor$outboundSchema,
63107
63172
  controls: IssuingControls$outboundSchema.optional(),
63108
63173
  createdOn: dateType().transform((v2) => v2.toISOString()),
63174
+ updatedOn: dateType().transform((v2) => v2.toISOString()),
63109
63175
  pan: stringType(),
63110
63176
  cvv: stringType()
63111
63177
  });
@@ -63431,7 +63497,7 @@ var init_invoicestatus = __esm(() => {
63431
63497
  var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
63432
63498
  var init_issuedcard = __esm(() => {
63433
63499
  init_esm();
63434
- init_authorizeduser();
63500
+ init_address();
63435
63501
  init_cardbrand();
63436
63502
  init_cardexpiration();
63437
63503
  init_issuedcardformfactor();
@@ -63442,26 +63508,32 @@ var init_issuedcard = __esm(() => {
63442
63508
  brand: CardBrand$inboundSchema,
63443
63509
  lastFourCardNumber: stringType(),
63444
63510
  expiration: CardExpiration$inboundSchema,
63445
- authorizedUser: AuthorizedUser$inboundSchema,
63446
- memo: stringType().optional(),
63447
63511
  fundingWalletID: stringType(),
63512
+ authorizedUserAccountID: stringType().optional(),
63513
+ nickname: stringType().optional(),
63514
+ metadata: recordType(stringType()).optional(),
63515
+ billingAddress: Address$inboundSchema.optional(),
63448
63516
  state: IssuedCardState$inboundSchema,
63449
63517
  formFactor: IssuedCardFormFactor$inboundSchema,
63450
63518
  controls: IssuingControls$inboundSchema.optional(),
63451
- createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
63519
+ createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
63520
+ updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
63452
63521
  });
63453
63522
  IssuedCard$outboundSchema = objectType({
63454
63523
  issuedCardID: stringType(),
63455
63524
  brand: CardBrand$outboundSchema,
63456
63525
  lastFourCardNumber: stringType(),
63457
63526
  expiration: CardExpiration$outboundSchema,
63458
- authorizedUser: AuthorizedUser$outboundSchema,
63459
- memo: stringType().optional(),
63460
63527
  fundingWalletID: stringType(),
63528
+ authorizedUserAccountID: stringType().optional(),
63529
+ nickname: stringType().optional(),
63530
+ metadata: recordType(stringType()).optional(),
63531
+ billingAddress: Address$outboundSchema.optional(),
63461
63532
  state: IssuedCardState$outboundSchema,
63462
63533
  formFactor: IssuedCardFormFactor$outboundSchema,
63463
63534
  controls: IssuingControls$outboundSchema.optional(),
63464
- createdOn: dateType().transform((v2) => v2.toISOString())
63535
+ createdOn: dateType().transform((v2) => v2.toISOString()),
63536
+ updatedOn: dateType().transform((v2) => v2.toISOString())
63465
63537
  });
63466
63538
  });
63467
63539
 
@@ -65398,23 +65470,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
65398
65470
  var RequestCard$inboundSchema, RequestCard$outboundSchema;
65399
65471
  var init_requestcard = __esm(() => {
65400
65472
  init_esm();
65473
+ init_address();
65401
65474
  init_cardexpiration();
65402
- init_createauthorizeduser();
65403
- init_issuedcardformfactor();
65404
65475
  init_issuingcontrols();
65405
65476
  RequestCard$inboundSchema = objectType({
65406
- fundingWalletID: stringType(),
65407
- authorizedUser: CreateAuthorizedUser$inboundSchema,
65408
- formFactor: IssuedCardFormFactor$inboundSchema,
65409
- memo: stringType().optional(),
65477
+ authorizedUserAccountID: stringType().optional(),
65478
+ nickname: stringType().optional(),
65479
+ metadata: recordType(stringType()).optional(),
65480
+ billingAddress: Address$inboundSchema.optional(),
65410
65481
  expiration: CardExpiration$inboundSchema.optional(),
65411
65482
  controls: IssuingControls$inboundSchema.optional()
65412
65483
  });
65413
65484
  RequestCard$outboundSchema = objectType({
65414
- fundingWalletID: stringType(),
65415
- authorizedUser: CreateAuthorizedUser$outboundSchema,
65416
- formFactor: IssuedCardFormFactor$outboundSchema,
65417
- memo: stringType().optional(),
65485
+ authorizedUserAccountID: stringType().optional(),
65486
+ nickname: stringType().optional(),
65487
+ metadata: recordType(stringType()).optional(),
65488
+ billingAddress: Address$outboundSchema.optional(),
65418
65489
  expiration: CardExpiration$outboundSchema.optional(),
65419
65490
  controls: IssuingControls$outboundSchema.optional()
65420
65491
  });
@@ -66289,20 +66360,37 @@ var init_updateissuedcardstate = __esm(() => {
66289
66360
  });
66290
66361
 
66291
66362
  // src/models/components/updateissuedcard.ts
66292
- var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
66363
+ var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
66293
66364
  var init_updateissuedcard = __esm(() => {
66294
66365
  init_esm();
66295
- init_createauthorizeduserupdate();
66296
66366
  init_updateissuedcardstate();
66367
+ BillingAddress$inboundSchema = objectType({
66368
+ addressLine1: stringType().optional(),
66369
+ addressLine2: stringType().optional(),
66370
+ city: stringType().optional(),
66371
+ stateOrProvince: stringType().optional(),
66372
+ postalCode: stringType().optional(),
66373
+ country: stringType().optional()
66374
+ });
66375
+ BillingAddress$outboundSchema = objectType({
66376
+ addressLine1: stringType().optional(),
66377
+ addressLine2: stringType().optional(),
66378
+ city: stringType().optional(),
66379
+ stateOrProvince: stringType().optional(),
66380
+ postalCode: stringType().optional(),
66381
+ country: stringType().optional()
66382
+ });
66297
66383
  UpdateIssuedCard$inboundSchema = objectType({
66298
66384
  state: UpdateIssuedCardState$inboundSchema.optional(),
66299
- memo: stringType().optional(),
66300
- authorizedUser: CreateAuthorizedUserUpdate$inboundSchema.optional()
66385
+ nickname: nullableType(stringType()).optional(),
66386
+ metadata: nullableType(recordType(stringType())).optional(),
66387
+ billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
66301
66388
  });
66302
66389
  UpdateIssuedCard$outboundSchema = objectType({
66303
66390
  state: UpdateIssuedCardState$outboundSchema.optional(),
66304
- memo: stringType().optional(),
66305
- authorizedUser: CreateAuthorizedUserUpdate$outboundSchema.optional()
66391
+ nickname: nullableType(stringType()).optional(),
66392
+ metadata: nullableType(recordType(stringType())).optional(),
66393
+ billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
66306
66394
  });
66307
66395
  });
66308
66396
 
@@ -66700,6 +66788,24 @@ var init_webhookdataaccountupdated = __esm(() => {
66700
66788
  });
66701
66789
  });
66702
66790
 
66791
+ // src/models/components/webhookdataauthorizationexpiring.ts
66792
+ var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
66793
+ var init_webhookdataauthorizationexpiring = __esm(() => {
66794
+ init_esm();
66795
+ WebhookDataAuthorizationExpiring$inboundSchema = objectType({
66796
+ merchantAccountID: stringType(),
66797
+ partnerAccountID: stringType(),
66798
+ authorizationID: stringType(),
66799
+ expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
66800
+ });
66801
+ WebhookDataAuthorizationExpiring$outboundSchema = objectType({
66802
+ merchantAccountID: stringType(),
66803
+ partnerAccountID: stringType(),
66804
+ authorizationID: stringType(),
66805
+ expiresOn: dateType().transform((v2) => v2.toISOString())
66806
+ });
66807
+ });
66808
+
66703
66809
  // src/models/components/webhookdatabalanceupdated.ts
66704
66810
  var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
66705
66811
  var init_webhookdatabalanceupdated = __esm(() => {
@@ -67074,10 +67180,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
67074
67180
  var init_webhookdatasweepcreated = __esm(() => {
67075
67181
  init_esm();
67076
67182
  WebhookDataSweepCreated$inboundSchema = objectType({
67183
+ accountID: stringType(),
67077
67184
  walletID: stringType(),
67078
67185
  sweepID: stringType()
67079
67186
  });
67080
67187
  WebhookDataSweepCreated$outboundSchema = objectType({
67188
+ accountID: stringType(),
67081
67189
  walletID: stringType(),
67082
67190
  sweepID: stringType()
67083
67191
  });
@@ -67089,12 +67197,14 @@ var init_webhookdatasweepupdated = __esm(() => {
67089
67197
  init_esm();
67090
67198
  init_sweepstatus();
67091
67199
  WebhookDataSweepUpdated$inboundSchema = objectType({
67200
+ accountID: stringType(),
67092
67201
  walletID: stringType(),
67093
67202
  sweepID: stringType(),
67094
67203
  transferID: stringType().optional(),
67095
67204
  status: SweepStatus$inboundSchema
67096
67205
  });
67097
67206
  WebhookDataSweepUpdated$outboundSchema = objectType({
67207
+ accountID: stringType(),
67098
67208
  walletID: stringType(),
67099
67209
  sweepID: stringType(),
67100
67210
  transferID: stringType().optional(),
@@ -67335,6 +67445,7 @@ var init_webhookdata = __esm(() => {
67335
67445
  init_webhookdataaccountcreated();
67336
67446
  init_webhookdataaccountdisconnected();
67337
67447
  init_webhookdataaccountupdated();
67448
+ init_webhookdataauthorizationexpiring();
67338
67449
  init_webhookdatabalanceupdated();
67339
67450
  init_webhookdatabankaccountcreated();
67340
67451
  init_webhookdatabankaccountdeleted();
@@ -67374,7 +67485,9 @@ var init_webhookdata = __esm(() => {
67374
67485
  WebhookDataTransferUpdated$inboundSchema,
67375
67486
  WebhookDataBankAccountUpdated$inboundSchema,
67376
67487
  WebhookDataRefundUpdated$inboundSchema,
67488
+ WebhookDataSweepUpdated$inboundSchema,
67377
67489
  WebhookDataWalletTransactionUpdated$inboundSchema,
67490
+ WebhookDataAuthorizationExpiring$inboundSchema,
67378
67491
  WebhookDataBankAccountCreated$inboundSchema,
67379
67492
  WebhookDataBankAccountDeleted$inboundSchema,
67380
67493
  WebhookDataCancellationCreated$inboundSchema,
@@ -67385,7 +67498,7 @@ var init_webhookdata = __esm(() => {
67385
67498
  WebhookDataPaymentMethodEnabled$inboundSchema,
67386
67499
  WebhookDataPaymentMethodDisabled$inboundSchema,
67387
67500
  WebhookDataRefundCreated$inboundSchema,
67388
- WebhookDataSweepUpdated$inboundSchema,
67501
+ WebhookDataSweepCreated$inboundSchema,
67389
67502
  WebhookDataTicketUpdated$inboundSchema,
67390
67503
  WebhookDataTransferCreated$inboundSchema,
67391
67504
  WebhookDataWalletUpdated$inboundSchema,
@@ -67395,7 +67508,6 @@ var init_webhookdata = __esm(() => {
67395
67508
  WebhookDataRepresentativeCreated$inboundSchema,
67396
67509
  WebhookDataRepresentativeUpdated$inboundSchema,
67397
67510
  WebhookDataRepresentativeDisabled$inboundSchema,
67398
- WebhookDataSweepCreated$inboundSchema,
67399
67511
  WebhookDataTerminalApplicationCreated$inboundSchema,
67400
67512
  WebhookDataTerminalApplicationUpdated$inboundSchema,
67401
67513
  WebhookDataTicketCreated$inboundSchema,
@@ -67413,7 +67525,9 @@ var init_webhookdata = __esm(() => {
67413
67525
  WebhookDataTransferUpdated$outboundSchema,
67414
67526
  WebhookDataBankAccountUpdated$outboundSchema,
67415
67527
  WebhookDataRefundUpdated$outboundSchema,
67528
+ WebhookDataSweepUpdated$outboundSchema,
67416
67529
  WebhookDataWalletTransactionUpdated$outboundSchema,
67530
+ WebhookDataAuthorizationExpiring$outboundSchema,
67417
67531
  WebhookDataBankAccountCreated$outboundSchema,
67418
67532
  WebhookDataBankAccountDeleted$outboundSchema,
67419
67533
  WebhookDataCancellationCreated$outboundSchema,
@@ -67424,7 +67538,7 @@ var init_webhookdata = __esm(() => {
67424
67538
  WebhookDataPaymentMethodEnabled$outboundSchema,
67425
67539
  WebhookDataPaymentMethodDisabled$outboundSchema,
67426
67540
  WebhookDataRefundCreated$outboundSchema,
67427
- WebhookDataSweepUpdated$outboundSchema,
67541
+ WebhookDataSweepCreated$outboundSchema,
67428
67542
  WebhookDataTicketUpdated$outboundSchema,
67429
67543
  WebhookDataTransferCreated$outboundSchema,
67430
67544
  WebhookDataWalletUpdated$outboundSchema,
@@ -67434,7 +67548,6 @@ var init_webhookdata = __esm(() => {
67434
67548
  WebhookDataRepresentativeCreated$outboundSchema,
67435
67549
  WebhookDataRepresentativeUpdated$outboundSchema,
67436
67550
  WebhookDataRepresentativeDisabled$outboundSchema,
67437
- WebhookDataSweepCreated$outboundSchema,
67438
67551
  WebhookDataTerminalApplicationCreated$outboundSchema,
67439
67552
  WebhookDataTerminalApplicationUpdated$outboundSchema,
67440
67553
  WebhookDataTicketCreated$outboundSchema,
@@ -67531,7 +67644,6 @@ var init_components = __esm(() => {
67531
67644
  init_assignproductimagevalidationerror();
67532
67645
  init_asynccreatedrefund();
67533
67646
  init_asynctransfer();
67534
- init_authorizeduser();
67535
67647
  init_authtoken();
67536
67648
  init_authtokenrequest();
67537
67649
  init_bankaccount();
@@ -67607,9 +67719,6 @@ var init_components = __esm(() => {
67607
67719
  init_createaccount();
67608
67720
  init_createaccountsettings();
67609
67721
  init_createapplepaysession();
67610
- init_createauthorizeduser();
67611
- init_createauthorizedusererror();
67612
- init_createauthorizeduserupdate();
67613
67722
  init_createbusinesserror();
67614
67723
  init_createbusinessprofile();
67615
67724
  init_createdtransfer();
@@ -67942,6 +68051,7 @@ var init_components = __esm(() => {
67942
68051
  init_webhookdataaccountcreated();
67943
68052
  init_webhookdataaccountdisconnected();
67944
68053
  init_webhookdataaccountupdated();
68054
+ init_webhookdataauthorizationexpiring();
67945
68055
  init_webhookdatabalanceupdated();
67946
68056
  init_webhookdatabankaccountcreated();
67947
68057
  init_webhookdatabankaccountdeleted();
@@ -69525,10 +69635,10 @@ var init_requestcarderror = __esm(() => {
69525
69635
  init_components();
69526
69636
  init_mooverror();
69527
69637
  RequestCardError = class RequestCardError extends MoovError {
69528
- fundingWalletID;
69529
- formFactor;
69530
- authorizedUser;
69531
- memo;
69638
+ authorizedUserAccountID;
69639
+ nickname;
69640
+ metadata;
69641
+ billingAddress;
69532
69642
  expiration;
69533
69643
  controls;
69534
69644
  data$;
@@ -69536,14 +69646,15 @@ var init_requestcarderror = __esm(() => {
69536
69646
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
69537
69647
  super(message, httpMeta);
69538
69648
  this.data$ = err;
69539
- if (err.fundingWalletID != null)
69540
- this.fundingWalletID = err.fundingWalletID;
69541
- if (err.formFactor != null)
69542
- this.formFactor = err.formFactor;
69543
- if (err.authorizedUser != null)
69544
- this.authorizedUser = err.authorizedUser;
69545
- if (err.memo != null)
69546
- this.memo = err.memo;
69649
+ if (err.authorizedUserAccountID != null) {
69650
+ this.authorizedUserAccountID = err.authorizedUserAccountID;
69651
+ }
69652
+ if (err.nickname != null)
69653
+ this.nickname = err.nickname;
69654
+ if (err.metadata != null)
69655
+ this.metadata = err.metadata;
69656
+ if (err.billingAddress != null)
69657
+ this.billingAddress = err.billingAddress;
69547
69658
  if (err.expiration != null)
69548
69659
  this.expiration = err.expiration;
69549
69660
  if (err.controls != null)
@@ -69552,10 +69663,10 @@ var init_requestcarderror = __esm(() => {
69552
69663
  }
69553
69664
  };
69554
69665
  RequestCardError$inboundSchema = objectType({
69555
- fundingWalletID: stringType().optional(),
69556
- formFactor: stringType().optional(),
69557
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
69558
- memo: stringType().optional(),
69666
+ authorizedUserAccountID: stringType().optional(),
69667
+ nickname: stringType().optional(),
69668
+ metadata: stringType().optional(),
69669
+ billingAddress: AddressError$inboundSchema.optional(),
69559
69670
  expiration: CardExpirationError$inboundSchema.optional(),
69560
69671
  controls: IssuingControlsError$inboundSchema.optional(),
69561
69672
  request$: instanceOfType(Request),
@@ -69569,10 +69680,10 @@ var init_requestcarderror = __esm(() => {
69569
69680
  });
69570
69681
  });
69571
69682
  RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
69572
- fundingWalletID: stringType().optional(),
69573
- formFactor: stringType().optional(),
69574
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional(),
69575
- memo: stringType().optional(),
69683
+ authorizedUserAccountID: stringType().optional(),
69684
+ nickname: stringType().optional(),
69685
+ metadata: stringType().optional(),
69686
+ billingAddress: AddressError$outboundSchema.optional(),
69576
69687
  expiration: CardExpirationError$outboundSchema.optional(),
69577
69688
  controls: IssuingControlsError$outboundSchema.optional()
69578
69689
  }));
@@ -70143,8 +70254,9 @@ var init_updateissuedcarderror = __esm(() => {
70143
70254
  init_mooverror();
70144
70255
  UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
70145
70256
  state;
70146
- memo;
70147
- authorizedUser;
70257
+ nickname;
70258
+ metadata;
70259
+ billingAddress;
70148
70260
  data$;
70149
70261
  constructor(err, httpMeta) {
70150
70262
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -70152,17 +70264,20 @@ var init_updateissuedcarderror = __esm(() => {
70152
70264
  this.data$ = err;
70153
70265
  if (err.state != null)
70154
70266
  this.state = err.state;
70155
- if (err.memo != null)
70156
- this.memo = err.memo;
70157
- if (err.authorizedUser != null)
70158
- this.authorizedUser = err.authorizedUser;
70267
+ if (err.nickname != null)
70268
+ this.nickname = err.nickname;
70269
+ if (err.metadata != null)
70270
+ this.metadata = err.metadata;
70271
+ if (err.billingAddress != null)
70272
+ this.billingAddress = err.billingAddress;
70159
70273
  this.name = "UpdateIssuedCardError";
70160
70274
  }
70161
70275
  };
70162
70276
  UpdateIssuedCardError$inboundSchema = objectType({
70163
70277
  state: stringType().optional(),
70164
- memo: stringType().optional(),
70165
- authorizedUser: CreateAuthorizedUserError$inboundSchema.optional(),
70278
+ nickname: stringType().optional(),
70279
+ metadata: stringType().optional(),
70280
+ billingAddress: AddressError$inboundSchema.optional(),
70166
70281
  request$: instanceOfType(Request),
70167
70282
  response$: instanceOfType(Response),
70168
70283
  body$: stringType()
@@ -70175,8 +70290,9 @@ var init_updateissuedcarderror = __esm(() => {
70175
70290
  });
70176
70291
  UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
70177
70292
  state: stringType().optional(),
70178
- memo: stringType().optional(),
70179
- authorizedUser: CreateAuthorizedUserError$outboundSchema.optional()
70293
+ nickname: stringType().optional(),
70294
+ metadata: stringType().optional(),
70295
+ billingAddress: AddressError$outboundSchema.optional()
70180
70296
  }));
70181
70297
  });
70182
70298
 
@@ -73924,6 +74040,40 @@ var init_listbankaccounts = __esm(() => {
73924
74040
  });
73925
74041
  });
73926
74042
 
74043
+ // src/models/operations/listcancellations.ts
74044
+ var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
74045
+ var init_listcancellations = __esm(() => {
74046
+ init_esm();
74047
+ init_primitives();
74048
+ init_components();
74049
+ ListCancellationsRequest$inboundSchema = objectType({
74050
+ accountID: stringType(),
74051
+ transferID: stringType()
74052
+ });
74053
+ ListCancellationsRequest$outboundSchema = objectType({
74054
+ accountID: stringType(),
74055
+ transferID: stringType()
74056
+ });
74057
+ ListCancellationsResponse$inboundSchema = objectType({
74058
+ Headers: recordType(arrayType(stringType())).default({}),
74059
+ Result: arrayType(Cancellation$inboundSchema)
74060
+ }).transform((v2) => {
74061
+ return remap(v2, {
74062
+ Headers: "headers",
74063
+ Result: "result"
74064
+ });
74065
+ });
74066
+ ListCancellationsResponse$outboundSchema = objectType({
74067
+ headers: recordType(arrayType(stringType())),
74068
+ result: arrayType(Cancellation$outboundSchema)
74069
+ }).transform((v2) => {
74070
+ return remap(v2, {
74071
+ headers: "Headers",
74072
+ result: "Result"
74073
+ });
74074
+ });
74075
+ });
74076
+
73927
74077
  // src/models/operations/listcapabilities.ts
73928
74078
  var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
73929
74079
  var init_listcapabilities = __esm(() => {
@@ -76702,6 +76852,7 @@ var init_operations = __esm(() => {
76702
76852
  init_listaccountterminalapplications();
76703
76853
  init_listadjustments();
76704
76854
  init_listbankaccounts();
76855
+ init_listcancellations();
76705
76856
  init_listcapabilities();
76706
76857
  init_listcards();
76707
76858
  init_listconnectedaccountsforaccount();
@@ -76782,16 +76933,19 @@ var init_async = __esm(() => {
76782
76933
  [Symbol.toStringTag] = "APIPromise";
76783
76934
  constructor(p) {
76784
76935
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
76785
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
76936
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
76937
+ }
76938
+ #getUnwrapped() {
76939
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
76786
76940
  }
76787
76941
  then(onfulfilled, onrejected) {
76788
76942
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
76789
76943
  }
76790
76944
  catch(onrejected) {
76791
- return this.#unwrapped.catch(onrejected);
76945
+ return this.#getUnwrapped().catch(onrejected);
76792
76946
  }
76793
76947
  finally(onfinally) {
76794
- return this.#unwrapped.finally(onfinally);
76948
+ return this.#getUnwrapped().finally(onfinally);
76795
76949
  }
76796
76950
  $inspect() {
76797
76951
  return this.#promise;
@@ -77114,21 +77268,19 @@ var init_accountsCreate2 = __esm(() => {
77114
77268
  };
77115
77269
  tool$accountsCreate = {
77116
77270
  name: "accounts-create",
77117
- description: `You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
77118
- information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
77271
+ 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/).
77272
+
77273
+ 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:
77274
+ + 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.
77275
+ + 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.
77119
77276
 
77120
- If you're requesting the \`wallet\`, \`send-funds\`, \`collect-funds\`, or \`card-issuing\` capabilities, you'll need to:
77121
- + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
77122
- 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.
77123
- If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
77277
+ If you're creating a business account, depending on the business type, you'll also need to:
77124
77278
  + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
77125
77279
  + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
77126
77280
 
77127
- 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/).
77128
- 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.
77281
+ 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.
77129
77282
 
77130
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
77131
- to specify the \`/accounts.write\` scope.`,
77283
+ 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.`,
77132
77284
  args: args3,
77133
77285
  tool: async (client, args4, ctx) => {
77134
77286
  const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -81167,7 +81319,7 @@ var init_capabilitiesDisable2 = __esm(() => {
81167
81319
  };
81168
81320
  tool$capabilitiesDisable = {
81169
81321
  name: "capabilities-disable",
81170
- description: `Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81322
+ 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.
81171
81323
 
81172
81324
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81173
81325
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -81281,7 +81433,7 @@ var init_capabilitiesGet2 = __esm(() => {
81281
81433
  };
81282
81434
  tool$capabilitiesGet = {
81283
81435
  name: "capabilities-get",
81284
- description: `Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81436
+ 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.
81285
81437
 
81286
81438
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81287
81439
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -81394,7 +81546,7 @@ var init_capabilitiesList2 = __esm(() => {
81394
81546
  name: "capabilities-list",
81395
81547
  description: `Retrieve all the capabilities an account has requested.
81396
81548
 
81397
- Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81549
+ Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
81398
81550
 
81399
81551
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81400
81552
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -81507,7 +81659,7 @@ var init_capabilitiesRequest2 = __esm(() => {
81507
81659
  };
81508
81660
  tool$capabilitiesRequest = {
81509
81661
  name: "capabilities-request",
81510
- description: `Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
81662
+ description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
81511
81663
 
81512
81664
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
81513
81665
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -81547,7 +81699,7 @@ async function $do42(client, request, options) {
81547
81699
  charEncoding: "percent"
81548
81700
  })
81549
81701
  };
81550
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
81702
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
81551
81703
  const headers = new Headers(compactMap({
81552
81704
  Accept: "application/json"
81553
81705
  }));
@@ -81662,7 +81814,7 @@ async function $do43(client, request, options) {
81662
81814
  charEncoding: "percent"
81663
81815
  })
81664
81816
  };
81665
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}/details")(pathParams);
81817
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
81666
81818
  const headers = new Headers(compactMap({
81667
81819
  Accept: "application/json"
81668
81820
  }));
@@ -81775,7 +81927,7 @@ async function $do44(client, request, options) {
81775
81927
  charEncoding: "percent"
81776
81928
  })
81777
81929
  };
81778
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
81930
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
81779
81931
  const query = encodeFormQuery({
81780
81932
  count: payload.count,
81781
81933
  skip: payload.skip,
@@ -81892,7 +82044,7 @@ async function $do45(client, request, options) {
81892
82044
  charEncoding: "percent"
81893
82045
  })
81894
82046
  };
81895
- const path = pathToFunc("/issuing/{accountID}/issued-cards")(pathParams);
82047
+ const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
81896
82048
  const headers = new Headers(compactMap({
81897
82049
  "Content-Type": "application/json",
81898
82050
  Accept: "application/json"
@@ -82009,7 +82161,7 @@ async function $do46(client, request, options) {
82009
82161
  charEncoding: "percent"
82010
82162
  })
82011
82163
  };
82012
- const path = pathToFunc("/issuing/{accountID}/issued-cards/{issuedCardID}")(pathParams);
82164
+ const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
82013
82165
  const headers = new Headers(compactMap({
82014
82166
  "Content-Type": "application/json",
82015
82167
  Accept: "application/json"
@@ -94033,11 +94185,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94033
94185
  };
94034
94186
  });
94035
94187
 
94036
- // src/funcs/transfersListRefunds.ts
94037
- function transfersListRefunds(client, request, options) {
94188
+ // src/funcs/transfersListCancellations.ts
94189
+ function transfersListCancellations(client, request, options) {
94038
94190
  return new APIPromise($do149(client, request, options));
94039
94191
  }
94040
94192
  async function $do149(client, request, options) {
94193
+ const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
94194
+ if (!parsed.ok) {
94195
+ return [parsed, { status: "invalid" }];
94196
+ }
94197
+ const payload = parsed.value;
94198
+ const body = null;
94199
+ const pathParams = {
94200
+ accountID: encodeSimple("accountID", payload.accountID, {
94201
+ explode: false,
94202
+ charEncoding: "percent"
94203
+ }),
94204
+ transferID: encodeSimple("transferID", payload.transferID, {
94205
+ explode: false,
94206
+ charEncoding: "percent"
94207
+ })
94208
+ };
94209
+ const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
94210
+ const headers = new Headers(compactMap({
94211
+ Accept: "application/json"
94212
+ }));
94213
+ const securityInput = await extractSecurity(client._options.security);
94214
+ const requestSecurity = resolveGlobalSecurity(securityInput);
94215
+ const context = {
94216
+ options: client._options,
94217
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
94218
+ operationID: "listCancellations",
94219
+ oAuth2Scopes: null,
94220
+ resolvedSecurity: requestSecurity,
94221
+ securitySource: client._options.security,
94222
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
94223
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
94224
+ };
94225
+ const requestRes = client._createRequest(context, {
94226
+ security: requestSecurity,
94227
+ method: "GET",
94228
+ baseURL: options?.serverURL,
94229
+ path,
94230
+ headers,
94231
+ body,
94232
+ userAgent: client._options.userAgent,
94233
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
94234
+ }, options);
94235
+ if (!requestRes.ok) {
94236
+ return [requestRes, { status: "invalid" }];
94237
+ }
94238
+ const req = requestRes.value;
94239
+ const doResult = await client._do(req, {
94240
+ context,
94241
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
94242
+ retryConfig: context.retryConfig,
94243
+ retryCodes: context.retryCodes
94244
+ });
94245
+ if (!doResult.ok) {
94246
+ return [doResult, { status: "request-error", request: req }];
94247
+ }
94248
+ const response = doResult.value;
94249
+ const responseFields = {
94250
+ HttpMeta: { Response: response, Request: req }
94251
+ };
94252
+ const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
94253
+ hdrs: true,
94254
+ key: "Result"
94255
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
94256
+ if (!result.ok) {
94257
+ return [result, { status: "complete", request: req, response }];
94258
+ }
94259
+ return [result, { status: "complete", request: req, response }];
94260
+ }
94261
+ var init_transfersListCancellations = __esm(() => {
94262
+ init_encodings();
94263
+ init_http();
94264
+ init_matchers();
94265
+ init_primitives();
94266
+ init_schemas4();
94267
+ init_security();
94268
+ init_url();
94269
+ init_operations();
94270
+ init_async();
94271
+ });
94272
+
94273
+ // src/mcp-server/tools/transfersListCancellations.ts
94274
+ var args144, tool$transfersListCancellations;
94275
+ var init_transfersListCancellations2 = __esm(() => {
94276
+ init_transfersListCancellations();
94277
+ init_operations();
94278
+ init_tools();
94279
+ args144 = {
94280
+ request: ListCancellationsRequest$inboundSchema
94281
+ };
94282
+ tool$transfersListCancellations = {
94283
+ name: "transfers-list-cancellations",
94284
+ description: ` Get a list of cancellations for a transfer.
94285
+
94286
+ To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
94287
+ to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94288
+ args: args144,
94289
+ tool: async (client, args145, ctx) => {
94290
+ const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94291
+ if (!result.ok) {
94292
+ return {
94293
+ content: [{ type: "text", text: result.error.message }],
94294
+ isError: true
94295
+ };
94296
+ }
94297
+ const value = result.value.result;
94298
+ return formatResult(value, apiCall);
94299
+ }
94300
+ };
94301
+ });
94302
+
94303
+ // src/funcs/transfersListRefunds.ts
94304
+ function transfersListRefunds(client, request, options) {
94305
+ return new APIPromise($do150(client, request, options));
94306
+ }
94307
+ async function $do150(client, request, options) {
94041
94308
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
94042
94309
  if (!parsed.ok) {
94043
94310
  return [parsed, { status: "invalid" }];
@@ -94119,12 +94386,12 @@ var init_transfersListRefunds = __esm(() => {
94119
94386
  });
94120
94387
 
94121
94388
  // src/mcp-server/tools/transfersListRefunds.ts
94122
- var args144, tool$transfersListRefunds;
94389
+ var args145, tool$transfersListRefunds;
94123
94390
  var init_transfersListRefunds2 = __esm(() => {
94124
94391
  init_transfersListRefunds();
94125
94392
  init_operations();
94126
94393
  init_tools();
94127
- args144 = {
94394
+ args145 = {
94128
94395
  request: ListRefundsRequest$inboundSchema
94129
94396
  };
94130
94397
  tool$transfersListRefunds = {
@@ -94133,9 +94400,9 @@ var init_transfersListRefunds2 = __esm(() => {
94133
94400
 
94134
94401
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94135
94402
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94136
- args: args144,
94137
- tool: async (client, args145, ctx) => {
94138
- const [result, apiCall] = await transfersListRefunds(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94403
+ args: args145,
94404
+ tool: async (client, args146, ctx) => {
94405
+ const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94139
94406
  if (!result.ok) {
94140
94407
  return {
94141
94408
  content: [{ type: "text", text: result.error.message }],
@@ -94150,9 +94417,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
94150
94417
 
94151
94418
  // src/funcs/transfersUpdate.ts
94152
94419
  function transfersUpdate(client, request, options) {
94153
- return new APIPromise($do150(client, request, options));
94420
+ return new APIPromise($do151(client, request, options));
94154
94421
  }
94155
- async function $do150(client, request, options) {
94422
+ async function $do151(client, request, options) {
94156
94423
  const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
94157
94424
  if (!parsed.ok) {
94158
94425
  return [parsed, { status: "invalid" }];
@@ -94238,12 +94505,12 @@ var init_transfersUpdate = __esm(() => {
94238
94505
  });
94239
94506
 
94240
94507
  // src/mcp-server/tools/transfersUpdate.ts
94241
- var args145, tool$transfersUpdate;
94508
+ var args146, tool$transfersUpdate;
94242
94509
  var init_transfersUpdate2 = __esm(() => {
94243
94510
  init_transfersUpdate();
94244
94511
  init_operations();
94245
94512
  init_tools();
94246
- args145 = {
94513
+ args146 = {
94247
94514
  request: UpdateTransferRequest$inboundSchema
94248
94515
  };
94249
94516
  tool$transfersUpdate = {
@@ -94254,9 +94521,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
94254
94521
 
94255
94522
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94256
94523
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
94257
- args: args145,
94258
- tool: async (client, args146, ctx) => {
94259
- const [result, apiCall] = await transfersUpdate(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94524
+ args: args146,
94525
+ tool: async (client, args147, ctx) => {
94526
+ const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94260
94527
  if (!result.ok) {
94261
94528
  return {
94262
94529
  content: [{ type: "text", text: result.error.message }],
@@ -94271,9 +94538,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
94271
94538
 
94272
94539
  // src/funcs/underwritingGet.ts
94273
94540
  function underwritingGet(client, request, options) {
94274
- return new APIPromise($do151(client, request, options));
94541
+ return new APIPromise($do152(client, request, options));
94275
94542
  }
94276
- async function $do151(client, request, options) {
94543
+ async function $do152(client, request, options) {
94277
94544
  const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
94278
94545
  if (!parsed.ok) {
94279
94546
  return [parsed, { status: "invalid" }];
@@ -94351,12 +94618,12 @@ var init_underwritingGet = __esm(() => {
94351
94618
  });
94352
94619
 
94353
94620
  // src/mcp-server/tools/underwritingGet.ts
94354
- var args146, tool$underwritingGet;
94621
+ var args147, tool$underwritingGet;
94355
94622
  var init_underwritingGet2 = __esm(() => {
94356
94623
  init_underwritingGet();
94357
94624
  init_operations();
94358
94625
  init_tools();
94359
- args146 = {
94626
+ args147 = {
94360
94627
  request: GetUnderwritingRequest$inboundSchema
94361
94628
  };
94362
94629
  tool$underwritingGet = {
@@ -94367,9 +94634,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
94367
94634
 
94368
94635
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94369
94636
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
94370
- args: args146,
94371
- tool: async (client, args147, ctx) => {
94372
- const [result, apiCall] = await underwritingGet(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94637
+ args: args147,
94638
+ tool: async (client, args148, ctx) => {
94639
+ const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94373
94640
  if (!result.ok) {
94374
94641
  return {
94375
94642
  content: [{ type: "text", text: result.error.message }],
@@ -94384,9 +94651,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
94384
94651
 
94385
94652
  // src/funcs/underwritingUpsert.ts
94386
94653
  function underwritingUpsert(client, request, options) {
94387
- return new APIPromise($do152(client, request, options));
94654
+ return new APIPromise($do153(client, request, options));
94388
94655
  }
94389
- async function $do152(client, request, options) {
94656
+ async function $do153(client, request, options) {
94390
94657
  const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
94391
94658
  if (!parsed.ok) {
94392
94659
  return [parsed, { status: "invalid" }];
@@ -94470,12 +94737,12 @@ var init_underwritingUpsert = __esm(() => {
94470
94737
  });
94471
94738
 
94472
94739
  // src/mcp-server/tools/underwritingUpsert.ts
94473
- var args147, tool$underwritingUpsert;
94740
+ var args148, tool$underwritingUpsert;
94474
94741
  var init_underwritingUpsert2 = __esm(() => {
94475
94742
  init_underwritingUpsert();
94476
94743
  init_operations();
94477
94744
  init_tools();
94478
- args147 = {
94745
+ args148 = {
94479
94746
  request: UpsertUnderwritingRequest$inboundSchema
94480
94747
  };
94481
94748
  tool$underwritingUpsert = {
@@ -94486,9 +94753,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
94486
94753
 
94487
94754
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94488
94755
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
94489
- args: args147,
94490
- tool: async (client, args148, ctx) => {
94491
- const [result, apiCall] = await underwritingUpsert(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94756
+ args: args148,
94757
+ tool: async (client, args149, ctx) => {
94758
+ const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94492
94759
  if (!result.ok) {
94493
94760
  return {
94494
94761
  content: [{ type: "text", text: result.error.message }],
@@ -94503,9 +94770,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
94503
94770
 
94504
94771
  // src/funcs/walletsCreate.ts
94505
94772
  function walletsCreate(client, request, options) {
94506
- return new APIPromise($do153(client, request, options));
94773
+ return new APIPromise($do154(client, request, options));
94507
94774
  }
94508
- async function $do153(client, request, options) {
94775
+ async function $do154(client, request, options) {
94509
94776
  const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
94510
94777
  if (!parsed.ok) {
94511
94778
  return [parsed, { status: "invalid" }];
@@ -94587,12 +94854,12 @@ var init_walletsCreate = __esm(() => {
94587
94854
  });
94588
94855
 
94589
94856
  // src/mcp-server/tools/walletsCreate.ts
94590
- var args148, tool$walletsCreate;
94857
+ var args149, tool$walletsCreate;
94591
94858
  var init_walletsCreate2 = __esm(() => {
94592
94859
  init_walletsCreate();
94593
94860
  init_operations();
94594
94861
  init_tools();
94595
- args148 = {
94862
+ args149 = {
94596
94863
  request: CreateWalletRequest$inboundSchema
94597
94864
  };
94598
94865
  tool$walletsCreate = {
@@ -94603,9 +94870,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94603
94870
 
94604
94871
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94605
94872
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94606
- args: args148,
94607
- tool: async (client, args149, ctx) => {
94608
- const [result, apiCall] = await walletsCreate(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94873
+ args: args149,
94874
+ tool: async (client, args150, ctx) => {
94875
+ const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94609
94876
  if (!result.ok) {
94610
94877
  return {
94611
94878
  content: [{ type: "text", text: result.error.message }],
@@ -94620,9 +94887,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94620
94887
 
94621
94888
  // src/funcs/walletsGet.ts
94622
94889
  function walletsGet(client, request, options) {
94623
- return new APIPromise($do154(client, request, options));
94890
+ return new APIPromise($do155(client, request, options));
94624
94891
  }
94625
- async function $do154(client, request, options) {
94892
+ async function $do155(client, request, options) {
94626
94893
  const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
94627
94894
  if (!parsed.ok) {
94628
94895
  return [parsed, { status: "invalid" }];
@@ -94704,12 +94971,12 @@ var init_walletsGet = __esm(() => {
94704
94971
  });
94705
94972
 
94706
94973
  // src/mcp-server/tools/walletsGet.ts
94707
- var args149, tool$walletsGet;
94974
+ var args150, tool$walletsGet;
94708
94975
  var init_walletsGet2 = __esm(() => {
94709
94976
  init_walletsGet();
94710
94977
  init_operations();
94711
94978
  init_tools();
94712
- args149 = {
94979
+ args150 = {
94713
94980
  request: GetWalletRequest$inboundSchema
94714
94981
  };
94715
94982
  tool$walletsGet = {
@@ -94720,9 +94987,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94720
94987
 
94721
94988
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94722
94989
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94723
- args: args149,
94724
- tool: async (client, args150, ctx) => {
94725
- const [result, apiCall] = await walletsGet(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94990
+ args: args150,
94991
+ tool: async (client, args151, ctx) => {
94992
+ const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94726
94993
  if (!result.ok) {
94727
94994
  return {
94728
94995
  content: [{ type: "text", text: result.error.message }],
@@ -94737,9 +95004,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94737
95004
 
94738
95005
  // src/funcs/walletsList.ts
94739
95006
  function walletsList(client, request, options) {
94740
- return new APIPromise($do155(client, request, options));
95007
+ return new APIPromise($do156(client, request, options));
94741
95008
  }
94742
- async function $do155(client, request, options) {
95009
+ async function $do156(client, request, options) {
94743
95010
  const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
94744
95011
  if (!parsed.ok) {
94745
95012
  return [parsed, { status: "invalid" }];
@@ -94827,12 +95094,12 @@ var init_walletsList = __esm(() => {
94827
95094
  });
94828
95095
 
94829
95096
  // src/mcp-server/tools/walletsList.ts
94830
- var args150, tool$walletsList;
95097
+ var args151, tool$walletsList;
94831
95098
  var init_walletsList2 = __esm(() => {
94832
95099
  init_walletsList();
94833
95100
  init_operations();
94834
95101
  init_tools();
94835
- args150 = {
95102
+ args151 = {
94836
95103
  request: ListWalletsRequest$inboundSchema
94837
95104
  };
94838
95105
  tool$walletsList = {
@@ -94843,9 +95110,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94843
95110
 
94844
95111
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94845
95112
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94846
- args: args150,
94847
- tool: async (client, args151, ctx) => {
94848
- const [result, apiCall] = await walletsList(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95113
+ args: args151,
95114
+ tool: async (client, args152, ctx) => {
95115
+ const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94849
95116
  if (!result.ok) {
94850
95117
  return {
94851
95118
  content: [{ type: "text", text: result.error.message }],
@@ -94860,9 +95127,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
94860
95127
 
94861
95128
  // src/funcs/walletsUpdate.ts
94862
95129
  function walletsUpdate(client, request, options) {
94863
- return new APIPromise($do156(client, request, options));
95130
+ return new APIPromise($do157(client, request, options));
94864
95131
  }
94865
- async function $do156(client, request, options) {
95132
+ async function $do157(client, request, options) {
94866
95133
  const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
94867
95134
  if (!parsed.ok) {
94868
95135
  return [parsed, { status: "invalid" }];
@@ -94948,12 +95215,12 @@ var init_walletsUpdate = __esm(() => {
94948
95215
  });
94949
95216
 
94950
95217
  // src/mcp-server/tools/walletsUpdate.ts
94951
- var args151, tool$walletsUpdate;
95218
+ var args152, tool$walletsUpdate;
94952
95219
  var init_walletsUpdate2 = __esm(() => {
94953
95220
  init_walletsUpdate();
94954
95221
  init_operations();
94955
95222
  init_tools();
94956
- args151 = {
95223
+ args152 = {
94957
95224
  request: UpdateWalletRequest$inboundSchema
94958
95225
  };
94959
95226
  tool$walletsUpdate = {
@@ -94964,9 +95231,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
94964
95231
 
94965
95232
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94966
95233
  you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94967
- args: args151,
94968
- tool: async (client, args152, ctx) => {
94969
- const [result, apiCall] = await walletsUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95234
+ args: args152,
95235
+ tool: async (client, args153, ctx) => {
95236
+ const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
94970
95237
  if (!result.ok) {
94971
95238
  return {
94972
95239
  content: [{ type: "text", text: result.error.message }],
@@ -94981,9 +95248,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
94981
95248
 
94982
95249
  // src/funcs/walletTransactionsGet.ts
94983
95250
  function walletTransactionsGet(client, request, options) {
94984
- return new APIPromise($do157(client, request, options));
95251
+ return new APIPromise($do158(client, request, options));
94985
95252
  }
94986
- async function $do157(client, request, options) {
95253
+ async function $do158(client, request, options) {
94987
95254
  const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
94988
95255
  if (!parsed.ok) {
94989
95256
  return [parsed, { status: "invalid" }];
@@ -95069,12 +95336,12 @@ var init_walletTransactionsGet = __esm(() => {
95069
95336
  });
95070
95337
 
95071
95338
  // src/mcp-server/tools/walletTransactionsGet.ts
95072
- var args152, tool$walletTransactionsGet;
95339
+ var args153, tool$walletTransactionsGet;
95073
95340
  var init_walletTransactionsGet2 = __esm(() => {
95074
95341
  init_walletTransactionsGet();
95075
95342
  init_operations();
95076
95343
  init_tools();
95077
- args152 = {
95344
+ args153 = {
95078
95345
  request: GetWalletTransactionRequest$inboundSchema
95079
95346
  };
95080
95347
  tool$walletTransactionsGet = {
@@ -95085,9 +95352,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
95085
95352
 
95086
95353
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95087
95354
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95088
- args: args152,
95089
- tool: async (client, args153, ctx) => {
95090
- const [result, apiCall] = await walletTransactionsGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95355
+ args: args153,
95356
+ tool: async (client, args154, ctx) => {
95357
+ const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95091
95358
  if (!result.ok) {
95092
95359
  return {
95093
95360
  content: [{ type: "text", text: result.error.message }],
@@ -95102,9 +95369,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95102
95369
 
95103
95370
  // src/funcs/walletTransactionsList.ts
95104
95371
  function walletTransactionsList(client, request, options) {
95105
- return new APIPromise($do158(client, request, options));
95372
+ return new APIPromise($do159(client, request, options));
95106
95373
  }
95107
- async function $do158(client, request, options) {
95374
+ async function $do159(client, request, options) {
95108
95375
  const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
95109
95376
  if (!parsed.ok) {
95110
95377
  return [parsed, { status: "invalid" }];
@@ -95204,12 +95471,12 @@ var init_walletTransactionsList = __esm(() => {
95204
95471
  });
95205
95472
 
95206
95473
  // src/mcp-server/tools/walletTransactionsList.ts
95207
- var args153, tool$walletTransactionsList;
95474
+ var args154, tool$walletTransactionsList;
95208
95475
  var init_walletTransactionsList2 = __esm(() => {
95209
95476
  init_walletTransactionsList();
95210
95477
  init_operations();
95211
95478
  init_tools();
95212
- args153 = {
95479
+ args154 = {
95213
95480
  request: ListWalletTransactionsRequest$inboundSchema
95214
95481
  };
95215
95482
  tool$walletTransactionsList = {
@@ -95220,9 +95487,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
95220
95487
 
95221
95488
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
95222
95489
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95223
- args: args153,
95224
- tool: async (client, args154, ctx) => {
95225
- const [result, apiCall] = await walletTransactionsList(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95490
+ args: args154,
95491
+ tool: async (client, args155, ctx) => {
95492
+ const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95226
95493
  if (!result.ok) {
95227
95494
  return {
95228
95495
  content: [{ type: "text", text: result.error.message }],
@@ -95237,9 +95504,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
95237
95504
 
95238
95505
  // src/funcs/webhooksCreate.ts
95239
95506
  function webhooksCreate(client, request, options) {
95240
- return new APIPromise($do159(client, request, options));
95507
+ return new APIPromise($do160(client, request, options));
95241
95508
  }
95242
- async function $do159(client, request, options) {
95509
+ async function $do160(client, request, options) {
95243
95510
  const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
95244
95511
  if (!parsed.ok) {
95245
95512
  return [parsed, { status: "invalid" }];
@@ -95316,20 +95583,20 @@ var init_webhooksCreate = __esm(() => {
95316
95583
  });
95317
95584
 
95318
95585
  // src/mcp-server/tools/webhooksCreate.ts
95319
- var args154, tool$webhooksCreate;
95586
+ var args155, tool$webhooksCreate;
95320
95587
  var init_webhooksCreate2 = __esm(() => {
95321
95588
  init_webhooksCreate();
95322
95589
  init_components();
95323
95590
  init_tools();
95324
- args154 = {
95591
+ args155 = {
95325
95592
  request: CreateWebhook$inboundSchema
95326
95593
  };
95327
95594
  tool$webhooksCreate = {
95328
95595
  name: "webhooks-create",
95329
95596
  description: `Create a new webhook for the account.`,
95330
- args: args154,
95331
- tool: async (client, args155, ctx) => {
95332
- const [result, apiCall] = await webhooksCreate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95597
+ args: args155,
95598
+ tool: async (client, args156, ctx) => {
95599
+ const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95333
95600
  if (!result.ok) {
95334
95601
  return {
95335
95602
  content: [{ type: "text", text: result.error.message }],
@@ -95344,9 +95611,9 @@ var init_webhooksCreate2 = __esm(() => {
95344
95611
 
95345
95612
  // src/funcs/webhooksDisable.ts
95346
95613
  function webhooksDisable(client, request, options) {
95347
- return new APIPromise($do160(client, request, options));
95614
+ return new APIPromise($do161(client, request, options));
95348
95615
  }
95349
- async function $do160(client, request, options) {
95616
+ async function $do161(client, request, options) {
95350
95617
  const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95351
95618
  if (!parsed.ok) {
95352
95619
  return [parsed, { status: "invalid" }];
@@ -95424,20 +95691,20 @@ var init_webhooksDisable = __esm(() => {
95424
95691
  });
95425
95692
 
95426
95693
  // src/mcp-server/tools/webhooksDisable.ts
95427
- var args155, tool$webhooksDisable;
95694
+ var args156, tool$webhooksDisable;
95428
95695
  var init_webhooksDisable2 = __esm(() => {
95429
95696
  init_webhooksDisable();
95430
95697
  init_operations();
95431
95698
  init_tools();
95432
- args155 = {
95699
+ args156 = {
95433
95700
  request: DisableWebhookRequest$inboundSchema
95434
95701
  };
95435
95702
  tool$webhooksDisable = {
95436
95703
  name: "webhooks-disable",
95437
95704
  description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
95438
- args: args155,
95439
- tool: async (client, args156, ctx) => {
95440
- const [result, apiCall] = await webhooksDisable(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95705
+ args: args156,
95706
+ tool: async (client, args157, ctx) => {
95707
+ const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95441
95708
  if (!result.ok) {
95442
95709
  return {
95443
95710
  content: [{ type: "text", text: result.error.message }],
@@ -95451,9 +95718,9 @@ var init_webhooksDisable2 = __esm(() => {
95451
95718
 
95452
95719
  // src/funcs/webhooksGet.ts
95453
95720
  function webhooksGet(client, request, options) {
95454
- return new APIPromise($do161(client, request, options));
95721
+ return new APIPromise($do162(client, request, options));
95455
95722
  }
95456
- async function $do161(client, request, options) {
95723
+ async function $do162(client, request, options) {
95457
95724
  const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95458
95725
  if (!parsed.ok) {
95459
95726
  return [parsed, { status: "invalid" }];
@@ -95531,20 +95798,20 @@ var init_webhooksGet = __esm(() => {
95531
95798
  });
95532
95799
 
95533
95800
  // src/mcp-server/tools/webhooksGet.ts
95534
- var args156, tool$webhooksGet;
95801
+ var args157, tool$webhooksGet;
95535
95802
  var init_webhooksGet2 = __esm(() => {
95536
95803
  init_webhooksGet();
95537
95804
  init_operations();
95538
95805
  init_tools();
95539
- args156 = {
95806
+ args157 = {
95540
95807
  request: GetWebhookRequest$inboundSchema
95541
95808
  };
95542
95809
  tool$webhooksGet = {
95543
95810
  name: "webhooks-get",
95544
95811
  description: `Get details of a specific webhook.`,
95545
- args: args156,
95546
- tool: async (client, args157, ctx) => {
95547
- const [result, apiCall] = await webhooksGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95812
+ args: args157,
95813
+ tool: async (client, args158, ctx) => {
95814
+ const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95548
95815
  if (!result.ok) {
95549
95816
  return {
95550
95817
  content: [{ type: "text", text: result.error.message }],
@@ -95559,9 +95826,9 @@ var init_webhooksGet2 = __esm(() => {
95559
95826
 
95560
95827
  // src/funcs/webhooksGetSecret.ts
95561
95828
  function webhooksGetSecret(client, request, options) {
95562
- return new APIPromise($do162(client, request, options));
95829
+ return new APIPromise($do163(client, request, options));
95563
95830
  }
95564
- async function $do162(client, request, options) {
95831
+ async function $do163(client, request, options) {
95565
95832
  const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
95566
95833
  if (!parsed.ok) {
95567
95834
  return [parsed, { status: "invalid" }];
@@ -95639,20 +95906,20 @@ var init_webhooksGetSecret = __esm(() => {
95639
95906
  });
95640
95907
 
95641
95908
  // src/mcp-server/tools/webhooksGetSecret.ts
95642
- var args157, tool$webhooksGetSecret;
95909
+ var args158, tool$webhooksGetSecret;
95643
95910
  var init_webhooksGetSecret2 = __esm(() => {
95644
95911
  init_webhooksGetSecret();
95645
95912
  init_operations();
95646
95913
  init_tools();
95647
- args157 = {
95914
+ args158 = {
95648
95915
  request: GetWebhookSecretRequest$inboundSchema
95649
95916
  };
95650
95917
  tool$webhooksGetSecret = {
95651
95918
  name: "webhooks-get-secret",
95652
95919
  description: `Get the secret key for verifying webhook payloads.`,
95653
- args: args157,
95654
- tool: async (client, args158, ctx) => {
95655
- const [result, apiCall] = await webhooksGetSecret(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95920
+ args: args158,
95921
+ tool: async (client, args159, ctx) => {
95922
+ const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95656
95923
  if (!result.ok) {
95657
95924
  return {
95658
95925
  content: [{ type: "text", text: result.error.message }],
@@ -95667,9 +95934,9 @@ var init_webhooksGetSecret2 = __esm(() => {
95667
95934
 
95668
95935
  // src/funcs/webhooksList.ts
95669
95936
  function webhooksList(client, options) {
95670
- return new APIPromise($do163(client, options));
95937
+ return new APIPromise($do164(client, options));
95671
95938
  }
95672
- async function $do163(client, options) {
95939
+ async function $do164(client, options) {
95673
95940
  const path = pathToFunc("/webhooks")();
95674
95941
  const headers = new Headers(compactMap({
95675
95942
  Accept: "application/json"
@@ -95755,9 +96022,9 @@ var init_webhooksList2 = __esm(() => {
95755
96022
 
95756
96023
  // src/funcs/webhooksListEventTypes.ts
95757
96024
  function webhooksListEventTypes(client, options) {
95758
- return new APIPromise($do164(client, options));
96025
+ return new APIPromise($do165(client, options));
95759
96026
  }
95760
- async function $do164(client, options) {
96027
+ async function $do165(client, options) {
95761
96028
  const path = pathToFunc("/event-types")();
95762
96029
  const headers = new Headers(compactMap({
95763
96030
  Accept: "application/json"
@@ -95843,9 +96110,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
95843
96110
 
95844
96111
  // src/funcs/webhooksPing.ts
95845
96112
  function webhooksPing(client, request, options) {
95846
- return new APIPromise($do165(client, request, options));
96113
+ return new APIPromise($do166(client, request, options));
95847
96114
  }
95848
- async function $do165(client, request, options) {
96115
+ async function $do166(client, request, options) {
95849
96116
  const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95850
96117
  if (!parsed.ok) {
95851
96118
  return [parsed, { status: "invalid" }];
@@ -95923,20 +96190,20 @@ var init_webhooksPing = __esm(() => {
95923
96190
  });
95924
96191
 
95925
96192
  // src/mcp-server/tools/webhooksPing.ts
95926
- var args158, tool$webhooksPing;
96193
+ var args159, tool$webhooksPing;
95927
96194
  var init_webhooksPing2 = __esm(() => {
95928
96195
  init_webhooksPing();
95929
96196
  init_operations();
95930
96197
  init_tools();
95931
- args158 = {
96198
+ args159 = {
95932
96199
  request: PingWebhookRequest$inboundSchema
95933
96200
  };
95934
96201
  tool$webhooksPing = {
95935
96202
  name: "webhooks-ping",
95936
96203
  description: `Send a test ping to a webhook to verify it is configured correctly.`,
95937
- args: args158,
95938
- tool: async (client, args159, ctx) => {
95939
- const [result, apiCall] = await webhooksPing(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96204
+ args: args159,
96205
+ tool: async (client, args160, ctx) => {
96206
+ const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
95940
96207
  if (!result.ok) {
95941
96208
  return {
95942
96209
  content: [{ type: "text", text: result.error.message }],
@@ -95951,9 +96218,9 @@ var init_webhooksPing2 = __esm(() => {
95951
96218
 
95952
96219
  // src/funcs/webhooksUpdate.ts
95953
96220
  function webhooksUpdate(client, request, options) {
95954
- return new APIPromise($do166(client, request, options));
96221
+ return new APIPromise($do167(client, request, options));
95955
96222
  }
95956
- async function $do166(client, request, options) {
96223
+ async function $do167(client, request, options) {
95957
96224
  const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
95958
96225
  if (!parsed.ok) {
95959
96226
  return [parsed, { status: "invalid" }];
@@ -96035,20 +96302,20 @@ var init_webhooksUpdate = __esm(() => {
96035
96302
  });
96036
96303
 
96037
96304
  // src/mcp-server/tools/webhooksUpdate.ts
96038
- var args159, tool$webhooksUpdate;
96305
+ var args160, tool$webhooksUpdate;
96039
96306
  var init_webhooksUpdate2 = __esm(() => {
96040
96307
  init_webhooksUpdate();
96041
96308
  init_operations();
96042
96309
  init_tools();
96043
- args159 = {
96310
+ args160 = {
96044
96311
  request: UpdateWebhookRequest$inboundSchema
96045
96312
  };
96046
96313
  tool$webhooksUpdate = {
96047
96314
  name: "webhooks-update",
96048
96315
  description: `Update an existing webhook.`,
96049
- args: args159,
96050
- tool: async (client, args160, ctx) => {
96051
- const [result, apiCall] = await webhooksUpdate(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96316
+ args: args160,
96317
+ tool: async (client, args161, ctx) => {
96318
+ const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
96052
96319
  if (!result.ok) {
96053
96320
  return {
96054
96321
  content: [{ type: "text", text: result.error.message }],
@@ -96065,10 +96332,11 @@ var init_webhooksUpdate2 = __esm(() => {
96065
96332
  function createMCPServer(deps) {
96066
96333
  const server = new McpServer({
96067
96334
  name: "Moov",
96068
- version: "25.2.7"
96335
+ version: "25.3.1"
96069
96336
  });
96070
96337
  const client = new MoovCore({
96071
96338
  security: deps.security,
96339
+ accessToken: deps.accessToken,
96072
96340
  serverURL: deps.serverURL,
96073
96341
  serverIdx: deps.serverIdx
96074
96342
  });
@@ -96192,6 +96460,7 @@ function createMCPServer(deps) {
96192
96460
  tool(tool$transfersGet);
96193
96461
  tool(tool$transfersUpdate);
96194
96462
  tool(tool$transfersCreateCancellation);
96463
+ tool(tool$transfersListCancellations);
96195
96464
  tool(tool$transfersGetCancellation);
96196
96465
  tool(tool$transfersInitiateRefund);
96197
96466
  tool(tool$transfersListRefunds);
@@ -96400,6 +96669,7 @@ var init_server2 = __esm(() => {
96400
96669
  init_transfersGetRefund2();
96401
96670
  init_transfersInitiateRefund2();
96402
96671
  init_transfersList2();
96672
+ init_transfersListCancellations2();
96403
96673
  init_transfersListRefunds2();
96404
96674
  init_transfersUpdate2();
96405
96675
  init_underwritingGet2();
@@ -96450,6 +96720,7 @@ async function startStdio(flags) {
96450
96720
  username: flags.username ?? "",
96451
96721
  password: flags.password ?? ""
96452
96722
  }),
96723
+ accessToken: flags["access-token"],
96453
96724
  serverURL: flags["server-url"],
96454
96725
  serverIdx: flags["server-index"]
96455
96726
  });
@@ -96471,6 +96742,7 @@ async function startSSE(flags) {
96471
96742
  username: flags.username ?? "",
96472
96743
  password: flags.password ?? ""
96473
96744
  }),
96745
+ accessToken: flags["access-token"],
96474
96746
  serverURL: flags["server-url"],
96475
96747
  serverIdx: flags["server-index"]
96476
96748
  });
@@ -97551,6 +97823,14 @@ var startCommand = tn({
97551
97823
  return stringType().parse(value);
97552
97824
  }
97553
97825
  },
97826
+ "access-token": {
97827
+ kind: "parsed",
97828
+ brief: "Allows setting the accessToken parameter for all supported operations",
97829
+ optional: true,
97830
+ parse: (value) => {
97831
+ return stringType().parse(value);
97832
+ }
97833
+ },
97554
97834
  "server-url": {
97555
97835
  kind: "parsed",
97556
97836
  brief: "Overrides the default server URL used by the SDK",
@@ -97610,7 +97890,7 @@ var routes = rn({
97610
97890
  var app = Ve(routes, {
97611
97891
  name: "mcp",
97612
97892
  versionInfo: {
97613
- currentVersion: "25.2.7"
97893
+ currentVersion: "25.3.1"
97614
97894
  }
97615
97895
  });
97616
97896
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -97618,5 +97898,5 @@ export {
97618
97898
  app
97619
97899
  };
97620
97900
 
97621
- //# debugId=73498375EF374C0464756E2164756E21
97901
+ //# debugId=42719F539E5175C764756E2164756E21
97622
97902
  //# sourceMappingURL=mcp-server.js.map