@moovio/sdk 25.12.0 → 25.12.1

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