@moovio/sdk 25.8.7 → 25.9.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.
- package/README.md +112 -80
- package/bin/mcp-server.js +604 -324
- package/bin/mcp-server.js.map +59 -59
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/access-token-hook.d.ts +25 -0
- package/hooks/access-token-hook.d.ts.map +1 -0
- package/hooks/access-token-hook.js +60 -0
- package/hooks/access-token-hook.js.map +1 -0
- package/hooks/registration.d.ts.map +1 -1
- package/hooks/registration.js +4 -0
- package/hooks/registration.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +8 -0
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +1 -0
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +2 -0
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts +1 -0
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createaccount.d.ts +9 -0
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -3
- package/models/components/fullissuedcard.d.ts +25 -9
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +1 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -4
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/access-token-hook.ts +73 -0
- package/src/hooks/registration.ts +5 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +8 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/cli/start/command.ts +9 -0
- package/src/mcp-server/cli/start/impl.ts +3 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +1 -4
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- package/test/tests/accessToken.test.ts +86 -0
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js +0 -63
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js +0 -63
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- 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
|
|
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 (
|
|
39708
|
+
if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
|
|
39644
39709
|
result[k2] = { ...baseValue, ...addValue };
|
|
39645
39710
|
} else {
|
|
39646
39711
|
result[k2] = addValue;
|
|
@@ -52835,6 +52900,36 @@ var init_mcp = __esm(() => {
|
|
|
52835
52900
|
};
|
|
52836
52901
|
});
|
|
52837
52902
|
|
|
52903
|
+
// src/hooks/access-token-hook.ts
|
|
52904
|
+
class AccessTokenHook {
|
|
52905
|
+
sdkInit(opts) {
|
|
52906
|
+
const token = opts.accessToken;
|
|
52907
|
+
const hasToken = typeof token === "string" && token.length > 0;
|
|
52908
|
+
if (hasToken && opts.security != null) {
|
|
52909
|
+
throw new Error("Moov SDK: `accessToken` and `security.username`/`password` cannot " + "both be set. Use `accessToken` for OAuth2 bearer auth " + "(typically client-side) or `security.username`/`password` for " + "HTTP Basic auth with API keys (server-side).");
|
|
52910
|
+
}
|
|
52911
|
+
if (isBrowserLike && opts.security != null) {
|
|
52912
|
+
throw new Error("Moov SDK: HTTP Basic credentials were provided in a browser-like " + "environment. API keys must never be embedded in client-side " + "code. Mint a short-lived OAuth2 access token on your server " + "and pass it via the `accessToken` option instead.");
|
|
52913
|
+
}
|
|
52914
|
+
return opts;
|
|
52915
|
+
}
|
|
52916
|
+
beforeRequest(ctx, request) {
|
|
52917
|
+
const token = ctx.options.accessToken;
|
|
52918
|
+
if (!token || request.headers.has("Authorization")) {
|
|
52919
|
+
return request;
|
|
52920
|
+
}
|
|
52921
|
+
const next = new Request(request);
|
|
52922
|
+
next.headers.set("Authorization", `Bearer ${token}`);
|
|
52923
|
+
return next;
|
|
52924
|
+
}
|
|
52925
|
+
}
|
|
52926
|
+
var gt, webWorkerLike, isBrowserLike;
|
|
52927
|
+
var init_access_token_hook = __esm(() => {
|
|
52928
|
+
gt = typeof globalThis === "undefined" ? null : globalThis;
|
|
52929
|
+
webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
|
|
52930
|
+
isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
|
|
52931
|
+
});
|
|
52932
|
+
|
|
52838
52933
|
// src/lib/url.ts
|
|
52839
52934
|
function pathToFunc(pathPattern, options) {
|
|
52840
52935
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
@@ -52879,9 +52974,9 @@ var init_config = __esm(() => {
|
|
|
52879
52974
|
SDK_METADATA = {
|
|
52880
52975
|
language: "typescript",
|
|
52881
52976
|
openapiDocVersion: "v2025.07.00",
|
|
52882
|
-
sdkVersion: "25.
|
|
52883
|
-
genVersion: "2.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 25.
|
|
52977
|
+
sdkVersion: "25.9.1",
|
|
52978
|
+
genVersion: "2.910.1",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 25.9.1 2.910.1 v2025.07.00 @moovio/sdk"
|
|
52885
52980
|
};
|
|
52886
52981
|
});
|
|
52887
52982
|
|
|
@@ -52901,8 +52996,12 @@ var init_moov_version_hook = __esm(() => {
|
|
|
52901
52996
|
function initHooks(hooks) {
|
|
52902
52997
|
const versionHook = new MoovVersionHook;
|
|
52903
52998
|
hooks.registerBeforeRequestHook(versionHook);
|
|
52999
|
+
const accessTokenHook = new AccessTokenHook;
|
|
53000
|
+
hooks.registerSDKInitHook(accessTokenHook);
|
|
53001
|
+
hooks.registerBeforeRequestHook(accessTokenHook);
|
|
52904
53002
|
}
|
|
52905
53003
|
var init_registration = __esm(() => {
|
|
53004
|
+
init_access_token_hook();
|
|
52906
53005
|
init_moov_version_hook();
|
|
52907
53006
|
});
|
|
52908
53007
|
|
|
@@ -53050,15 +53149,6 @@ var init_base64 = __esm(() => {
|
|
|
53050
53149
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
53051
53150
|
});
|
|
53052
53151
|
|
|
53053
|
-
// src/lib/is-plain-object.ts
|
|
53054
|
-
function isPlainObject3(value) {
|
|
53055
|
-
if (typeof value !== "object" || value === null) {
|
|
53056
|
-
return false;
|
|
53057
|
-
}
|
|
53058
|
-
const prototype = Object.getPrototypeOf(value);
|
|
53059
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
53060
|
-
}
|
|
53061
|
-
|
|
53062
53152
|
// src/lib/encodings.ts
|
|
53063
53153
|
function formEncoder(sep) {
|
|
53064
53154
|
return (key, value, options) => {
|
|
@@ -53079,7 +53169,7 @@ function formEncoder(sep) {
|
|
|
53079
53169
|
return;
|
|
53080
53170
|
} else if (Array.isArray(pv)) {
|
|
53081
53171
|
encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
|
|
53082
|
-
} else if (
|
|
53172
|
+
} else if (isPlainObject2(pv)) {
|
|
53083
53173
|
encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53084
53174
|
return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
|
|
53085
53175
|
})?.join(encodedSep);
|
|
@@ -53102,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
|
|
|
53102
53192
|
if (value == null) {
|
|
53103
53193
|
return;
|
|
53104
53194
|
}
|
|
53105
|
-
if (!
|
|
53195
|
+
if (!isPlainObject2(value)) {
|
|
53106
53196
|
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
53107
53197
|
}
|
|
53108
53198
|
return encodeDeepObjectObject(key, value, options);
|
|
@@ -53115,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53115
53205
|
const encodeString = (v2) => {
|
|
53116
53206
|
return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
|
|
53117
53207
|
};
|
|
53118
|
-
if (!
|
|
53208
|
+
if (!isPlainObject2(value)) {
|
|
53119
53209
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
53120
53210
|
}
|
|
53121
53211
|
Object.entries(value).forEach(([ck, cv]) => {
|
|
@@ -53123,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53123
53213
|
return;
|
|
53124
53214
|
}
|
|
53125
53215
|
const pk = `${key}[${ck}]`;
|
|
53126
|
-
if (
|
|
53216
|
+
if (isPlainObject2(cv)) {
|
|
53127
53217
|
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
53128
53218
|
out += objOut == null ? "" : `&${objOut}`;
|
|
53129
53219
|
return;
|
|
@@ -53149,7 +53239,7 @@ function encodeJSON(key, value, options) {
|
|
|
53149
53239
|
function explode(key, value) {
|
|
53150
53240
|
if (Array.isArray(value)) {
|
|
53151
53241
|
return value.map((v2) => [key, v2]);
|
|
53152
|
-
} else if (
|
|
53242
|
+
} else if (isPlainObject2(value)) {
|
|
53153
53243
|
const o = value ?? {};
|
|
53154
53244
|
return Object.entries(o).map(([k2, v2]) => [k2, v2]);
|
|
53155
53245
|
} else {
|
|
@@ -53274,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53274
53364
|
return;
|
|
53275
53365
|
} else if (Array.isArray(pv)) {
|
|
53276
53366
|
tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
|
|
53277
|
-
} else if (
|
|
53367
|
+
} else if (isPlainObject2(pv)) {
|
|
53278
53368
|
const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53279
53369
|
return `,${encodeString(k2)},${encodeValue(v2)}`;
|
|
53280
53370
|
});
|
|
53281
53371
|
tmp = mapped?.join("").slice(1);
|
|
53282
53372
|
} else {
|
|
53283
|
-
const k2 = options?.explode &&
|
|
53373
|
+
const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
|
|
53284
53374
|
tmp = `${k2}${encodeValue(pv)}`;
|
|
53285
53375
|
}
|
|
53286
53376
|
out += tmp ? `,${tmp}` : "";
|
|
@@ -53289,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53289
53379
|
}, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
53290
53380
|
var init_encodings = __esm(() => {
|
|
53291
53381
|
init_base64();
|
|
53382
|
+
init_primitives();
|
|
53292
53383
|
EncodingError = class EncodingError extends Error {
|
|
53293
53384
|
constructor(message) {
|
|
53294
53385
|
super(message);
|
|
@@ -53554,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
53554
53645
|
}
|
|
53555
53646
|
}
|
|
53556
53647
|
function retryIntervalFromResponse(res) {
|
|
53648
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
53649
|
+
if (retryAfterMsVal) {
|
|
53650
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
53651
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
53652
|
+
return parsedMs;
|
|
53653
|
+
}
|
|
53654
|
+
}
|
|
53557
53655
|
const retryVal = res.headers.get("retry-after") || "";
|
|
53558
53656
|
if (!retryVal) {
|
|
53559
53657
|
return 0;
|
|
@@ -53645,24 +53743,41 @@ class ClientSDK {
|
|
|
53645
53743
|
if (path) {
|
|
53646
53744
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53647
53745
|
reqURL = new URL(path, baseURL);
|
|
53746
|
+
if (!reqURL.search && baseURL.search) {
|
|
53747
|
+
reqURL.search = baseURL.search;
|
|
53748
|
+
}
|
|
53648
53749
|
} else {
|
|
53649
53750
|
reqURL = baseURL;
|
|
53650
53751
|
}
|
|
53651
53752
|
reqURL.hash = "";
|
|
53652
|
-
|
|
53653
|
-
|
|
53654
|
-
|
|
53655
|
-
const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
|
|
53656
|
-
if (typeof q2 !== "undefined") {
|
|
53657
|
-
secQuery.push(q2);
|
|
53753
|
+
const mergeQuery = (current, additions) => {
|
|
53754
|
+
if (!additions) {
|
|
53755
|
+
return current;
|
|
53658
53756
|
}
|
|
53659
|
-
|
|
53660
|
-
|
|
53661
|
-
|
|
53662
|
-
|
|
53757
|
+
const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
|
|
53758
|
+
const kept = current.split("&").filter((pair) => {
|
|
53759
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
53760
|
+
});
|
|
53761
|
+
return [...kept, additions].join("&");
|
|
53762
|
+
};
|
|
53763
|
+
const encodeQueryRecord = (record3) => {
|
|
53764
|
+
return Object.entries(record3).map(([k2, v2]) => {
|
|
53765
|
+
if (v2 == null) {
|
|
53766
|
+
return;
|
|
53767
|
+
}
|
|
53768
|
+
const value = v2;
|
|
53769
|
+
return encodeForm(k2, value, {
|
|
53770
|
+
explode: Array.isArray(value),
|
|
53771
|
+
charEncoding: "percent"
|
|
53772
|
+
});
|
|
53773
|
+
}).filter((pair) => typeof pair !== "undefined").join("&");
|
|
53774
|
+
};
|
|
53775
|
+
const finalQuery = [
|
|
53776
|
+
query || "",
|
|
53777
|
+
encodeQueryRecord(security?.queryParams || {})
|
|
53778
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
53663
53779
|
if (finalQuery) {
|
|
53664
|
-
|
|
53665
|
-
reqURL.search = `?${q2}`;
|
|
53780
|
+
reqURL.search = `?${finalQuery}`;
|
|
53666
53781
|
}
|
|
53667
53782
|
const headers = new Headers(opHeaders);
|
|
53668
53783
|
const username = security?.basic.username;
|
|
@@ -53685,16 +53800,15 @@ class ClientSDK {
|
|
|
53685
53800
|
for (const [k2, v2] of userHeaders) {
|
|
53686
53801
|
headers.set(k2, v2);
|
|
53687
53802
|
}
|
|
53688
|
-
if (!
|
|
53803
|
+
if (!isBrowserLike2) {
|
|
53689
53804
|
headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
|
|
53690
53805
|
}
|
|
53691
53806
|
const fetchOptions = {
|
|
53692
53807
|
...options?.fetchOptions,
|
|
53693
53808
|
...options
|
|
53694
53809
|
};
|
|
53695
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
53696
|
-
|
|
53697
|
-
fetchOptions.signal = timeoutSignal;
|
|
53810
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
53811
|
+
context.timeoutMs = conf.timeoutMs;
|
|
53698
53812
|
}
|
|
53699
53813
|
if (conf.body instanceof ReadableStream) {
|
|
53700
53814
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -53719,8 +53833,16 @@ class ClientSDK {
|
|
|
53719
53833
|
}
|
|
53720
53834
|
async _do(request, options) {
|
|
53721
53835
|
const { context, isErrorStatusCode } = options;
|
|
53836
|
+
const timeoutMs = context.timeoutMs;
|
|
53722
53837
|
return retry(async () => {
|
|
53723
|
-
const
|
|
53838
|
+
const cloned = request.clone();
|
|
53839
|
+
let attempt = cloned;
|
|
53840
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
53841
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
53842
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
53843
|
+
attempt = new Request(cloned, { signal: combined });
|
|
53844
|
+
}
|
|
53845
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
53724
53846
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
53725
53847
|
let response = await this.#httpClient.request(req);
|
|
53726
53848
|
try {
|
|
@@ -53830,7 +53952,7 @@ async function logResponse(logger, res, req) {
|
|
|
53830
53952
|
logger.groupEnd();
|
|
53831
53953
|
logger.groupEnd();
|
|
53832
53954
|
}
|
|
53833
|
-
var
|
|
53955
|
+
var gt2, webWorkerLike2, isBrowserLike2, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
|
|
53834
53956
|
var init_sdks = __esm(() => {
|
|
53835
53957
|
init_hooks();
|
|
53836
53958
|
init_httpclienterrors();
|
|
@@ -53838,10 +53960,11 @@ var init_sdks = __esm(() => {
|
|
|
53838
53960
|
init_config();
|
|
53839
53961
|
init_encodings();
|
|
53840
53962
|
init_http();
|
|
53963
|
+
init_primitives();
|
|
53841
53964
|
init_retries();
|
|
53842
|
-
|
|
53843
|
-
|
|
53844
|
-
|
|
53965
|
+
gt2 = typeof globalThis === "undefined" ? null : globalThis;
|
|
53966
|
+
webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
|
|
53967
|
+
isBrowserLike2 = webWorkerLike2 || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
|
|
53845
53968
|
jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
|
|
53846
53969
|
jsonlLikeContentTypeRE = /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
|
|
53847
53970
|
});
|
|
@@ -54287,7 +54410,7 @@ function match(...matchers) {
|
|
|
54287
54410
|
data = {
|
|
54288
54411
|
...options?.extraFields,
|
|
54289
54412
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54290
|
-
...
|
|
54413
|
+
...isPlainObject2(raw) ? raw : null,
|
|
54291
54414
|
request$: request,
|
|
54292
54415
|
response$: response,
|
|
54293
54416
|
body$: body
|
|
@@ -54302,7 +54425,7 @@ function match(...matchers) {
|
|
|
54302
54425
|
data = {
|
|
54303
54426
|
...options?.extraFields,
|
|
54304
54427
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54305
|
-
...
|
|
54428
|
+
...isPlainObject2(raw) ? raw : null
|
|
54306
54429
|
};
|
|
54307
54430
|
} else {
|
|
54308
54431
|
data = raw;
|
|
@@ -54342,6 +54465,7 @@ var init_matchers = __esm(() => {
|
|
|
54342
54465
|
init_apierror();
|
|
54343
54466
|
init_responsevalidationerror();
|
|
54344
54467
|
init_http();
|
|
54468
|
+
init_primitives();
|
|
54345
54469
|
DEFAULT_CONTENT_TYPES = {
|
|
54346
54470
|
jsonl: "application/jsonl",
|
|
54347
54471
|
json: "application/json",
|
|
@@ -56342,20 +56466,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56342
56466
|
});
|
|
56343
56467
|
});
|
|
56344
56468
|
|
|
56345
|
-
// src/models/components/authorizeduser.ts
|
|
56346
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56347
|
-
var init_authorizeduser = __esm(() => {
|
|
56348
|
-
init_esm();
|
|
56349
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56350
|
-
firstName: stringType(),
|
|
56351
|
-
lastName: stringType()
|
|
56352
|
-
});
|
|
56353
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56354
|
-
firstName: stringType(),
|
|
56355
|
-
lastName: stringType()
|
|
56356
|
-
});
|
|
56357
|
-
});
|
|
56358
|
-
|
|
56359
56469
|
// src/models/components/tokentype.ts
|
|
56360
56470
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56361
56471
|
var init_tokentype = __esm(() => {
|
|
@@ -61090,57 +61200,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
61090
61200
|
});
|
|
61091
61201
|
});
|
|
61092
61202
|
|
|
61093
|
-
// src/models/components/createauthorizeduser.ts
|
|
61094
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
61095
|
-
var init_createauthorizeduser = __esm(() => {
|
|
61096
|
-
init_esm();
|
|
61097
|
-
init_birthdate();
|
|
61098
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
61099
|
-
firstName: stringType(),
|
|
61100
|
-
lastName: stringType(),
|
|
61101
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
61102
|
-
});
|
|
61103
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
61104
|
-
firstName: stringType(),
|
|
61105
|
-
lastName: stringType(),
|
|
61106
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
61107
|
-
});
|
|
61108
|
-
});
|
|
61109
|
-
|
|
61110
|
-
// src/models/components/createauthorizedusererror.ts
|
|
61111
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
61112
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
61113
|
-
init_esm();
|
|
61114
|
-
init_birthdateerror();
|
|
61115
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
61116
|
-
firstName: stringType().optional(),
|
|
61117
|
-
lastName: stringType().optional(),
|
|
61118
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
61119
|
-
});
|
|
61120
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
61121
|
-
firstName: stringType().optional(),
|
|
61122
|
-
lastName: stringType().optional(),
|
|
61123
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
61124
|
-
});
|
|
61125
|
-
});
|
|
61126
|
-
|
|
61127
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
61128
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
61129
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
61130
|
-
init_esm();
|
|
61131
|
-
init_birthdateupdate();
|
|
61132
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
61133
|
-
firstName: stringType().optional(),
|
|
61134
|
-
lastName: stringType().optional(),
|
|
61135
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
61136
|
-
});
|
|
61137
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
61138
|
-
firstName: stringType().optional(),
|
|
61139
|
-
lastName: stringType().optional(),
|
|
61140
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
61141
|
-
});
|
|
61142
|
-
});
|
|
61143
|
-
|
|
61144
61203
|
// src/models/components/phonenumbererror.ts
|
|
61145
61204
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
61146
61205
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62878,7 +62937,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62878
62937
|
WalletCreated: "wallet.created",
|
|
62879
62938
|
WalletUpdated: "wallet.updated",
|
|
62880
62939
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62881
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62940
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62941
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62882
62942
|
};
|
|
62883
62943
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62884
62944
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63650,7 +63710,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63650
63710
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63651
63711
|
var init_fullissuedcard = __esm(() => {
|
|
63652
63712
|
init_esm();
|
|
63653
|
-
|
|
63713
|
+
init_address();
|
|
63654
63714
|
init_cardbrand();
|
|
63655
63715
|
init_cardexpiration();
|
|
63656
63716
|
init_issuedcardformfactor();
|
|
@@ -63661,13 +63721,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63661
63721
|
brand: CardBrand$inboundSchema,
|
|
63662
63722
|
lastFourCardNumber: stringType(),
|
|
63663
63723
|
expiration: CardExpiration$inboundSchema,
|
|
63664
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63665
|
-
memo: stringType().optional(),
|
|
63666
63724
|
fundingWalletID: stringType(),
|
|
63725
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63726
|
+
nickname: stringType().optional(),
|
|
63727
|
+
metadata: recordType(stringType()).optional(),
|
|
63728
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63667
63729
|
state: IssuedCardState$inboundSchema,
|
|
63668
63730
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63669
63731
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63670
63732
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63733
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63671
63734
|
pan: stringType(),
|
|
63672
63735
|
cvv: stringType()
|
|
63673
63736
|
});
|
|
@@ -63676,13 +63739,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63676
63739
|
brand: CardBrand$outboundSchema,
|
|
63677
63740
|
lastFourCardNumber: stringType(),
|
|
63678
63741
|
expiration: CardExpiration$outboundSchema,
|
|
63679
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63680
|
-
memo: stringType().optional(),
|
|
63681
63742
|
fundingWalletID: stringType(),
|
|
63743
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63744
|
+
nickname: stringType().optional(),
|
|
63745
|
+
metadata: recordType(stringType()).optional(),
|
|
63746
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63682
63747
|
state: IssuedCardState$outboundSchema,
|
|
63683
63748
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63684
63749
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63685
63750
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63751
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63686
63752
|
pan: stringType(),
|
|
63687
63753
|
cvv: stringType()
|
|
63688
63754
|
});
|
|
@@ -64021,7 +64087,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
64021
64087
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
64022
64088
|
var init_issuedcard = __esm(() => {
|
|
64023
64089
|
init_esm();
|
|
64024
|
-
|
|
64090
|
+
init_address();
|
|
64025
64091
|
init_cardbrand();
|
|
64026
64092
|
init_cardexpiration();
|
|
64027
64093
|
init_issuedcardformfactor();
|
|
@@ -64032,26 +64098,32 @@ var init_issuedcard = __esm(() => {
|
|
|
64032
64098
|
brand: CardBrand$inboundSchema,
|
|
64033
64099
|
lastFourCardNumber: stringType(),
|
|
64034
64100
|
expiration: CardExpiration$inboundSchema,
|
|
64035
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
64036
|
-
memo: stringType().optional(),
|
|
64037
64101
|
fundingWalletID: stringType(),
|
|
64102
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64103
|
+
nickname: stringType().optional(),
|
|
64104
|
+
metadata: recordType(stringType()).optional(),
|
|
64105
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
64038
64106
|
state: IssuedCardState$inboundSchema,
|
|
64039
64107
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
64040
64108
|
controls: IssuingControls$inboundSchema.optional(),
|
|
64041
|
-
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))
|
|
64042
64111
|
});
|
|
64043
64112
|
IssuedCard$outboundSchema = objectType({
|
|
64044
64113
|
issuedCardID: stringType(),
|
|
64045
64114
|
brand: CardBrand$outboundSchema,
|
|
64046
64115
|
lastFourCardNumber: stringType(),
|
|
64047
64116
|
expiration: CardExpiration$outboundSchema,
|
|
64048
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
64049
|
-
memo: stringType().optional(),
|
|
64050
64117
|
fundingWalletID: stringType(),
|
|
64118
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64119
|
+
nickname: stringType().optional(),
|
|
64120
|
+
metadata: recordType(stringType()).optional(),
|
|
64121
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
64051
64122
|
state: IssuedCardState$outboundSchema,
|
|
64052
64123
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
64053
64124
|
controls: IssuingControls$outboundSchema.optional(),
|
|
64054
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
64125
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
64126
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
64055
64127
|
});
|
|
64056
64128
|
});
|
|
64057
64129
|
|
|
@@ -66107,23 +66179,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
66107
66179
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
66108
66180
|
var init_requestcard = __esm(() => {
|
|
66109
66181
|
init_esm();
|
|
66182
|
+
init_address();
|
|
66110
66183
|
init_cardexpiration();
|
|
66111
|
-
init_createauthorizeduser();
|
|
66112
|
-
init_issuedcardformfactor();
|
|
66113
66184
|
init_issuingcontrols();
|
|
66114
66185
|
RequestCard$inboundSchema = objectType({
|
|
66115
|
-
|
|
66116
|
-
|
|
66117
|
-
|
|
66118
|
-
|
|
66186
|
+
authorizedUserAccountID: stringType().optional(),
|
|
66187
|
+
nickname: stringType().optional(),
|
|
66188
|
+
metadata: recordType(stringType()).optional(),
|
|
66189
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
66119
66190
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
66120
66191
|
controls: IssuingControls$inboundSchema.optional()
|
|
66121
66192
|
});
|
|
66122
66193
|
RequestCard$outboundSchema = objectType({
|
|
66123
|
-
|
|
66124
|
-
|
|
66125
|
-
|
|
66126
|
-
|
|
66194
|
+
authorizedUserAccountID: stringType().optional(),
|
|
66195
|
+
nickname: stringType().optional(),
|
|
66196
|
+
metadata: recordType(stringType()).optional(),
|
|
66197
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
66127
66198
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
66128
66199
|
controls: IssuingControls$outboundSchema.optional()
|
|
66129
66200
|
});
|
|
@@ -67246,20 +67317,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
67246
67317
|
});
|
|
67247
67318
|
|
|
67248
67319
|
// src/models/components/updateissuedcard.ts
|
|
67249
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
67320
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
67250
67321
|
var init_updateissuedcard = __esm(() => {
|
|
67251
67322
|
init_esm();
|
|
67252
|
-
init_createauthorizeduserupdate();
|
|
67253
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
|
+
});
|
|
67254
67340
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
67255
67341
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
67256
|
-
|
|
67257
|
-
|
|
67342
|
+
nickname: nullableType(stringType()).optional(),
|
|
67343
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
67344
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
67258
67345
|
});
|
|
67259
67346
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
67260
67347
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
67261
|
-
|
|
67262
|
-
|
|
67348
|
+
nickname: nullableType(stringType()).optional(),
|
|
67349
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
67350
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
67263
67351
|
});
|
|
67264
67352
|
});
|
|
67265
67353
|
|
|
@@ -67731,6 +67819,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
67731
67819
|
});
|
|
67732
67820
|
});
|
|
67733
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
|
+
|
|
67734
67840
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
67735
67841
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
67736
67842
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -68105,10 +68211,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
68105
68211
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
68106
68212
|
init_esm();
|
|
68107
68213
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
68214
|
+
accountID: stringType(),
|
|
68108
68215
|
walletID: stringType(),
|
|
68109
68216
|
sweepID: stringType()
|
|
68110
68217
|
});
|
|
68111
68218
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
68219
|
+
accountID: stringType(),
|
|
68112
68220
|
walletID: stringType(),
|
|
68113
68221
|
sweepID: stringType()
|
|
68114
68222
|
});
|
|
@@ -68120,12 +68228,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
68120
68228
|
init_esm();
|
|
68121
68229
|
init_sweepstatus();
|
|
68122
68230
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
68231
|
+
accountID: stringType(),
|
|
68123
68232
|
walletID: stringType(),
|
|
68124
68233
|
sweepID: stringType(),
|
|
68125
68234
|
transferID: stringType().optional(),
|
|
68126
68235
|
status: SweepStatus$inboundSchema
|
|
68127
68236
|
});
|
|
68128
68237
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
68238
|
+
accountID: stringType(),
|
|
68129
68239
|
walletID: stringType(),
|
|
68130
68240
|
sweepID: stringType(),
|
|
68131
68241
|
transferID: stringType().optional(),
|
|
@@ -68366,6 +68476,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68366
68476
|
init_webhookdataaccountcreated();
|
|
68367
68477
|
init_webhookdataaccountdisconnected();
|
|
68368
68478
|
init_webhookdataaccountupdated();
|
|
68479
|
+
init_webhookdataauthorizationexpiring();
|
|
68369
68480
|
init_webhookdatabalanceupdated();
|
|
68370
68481
|
init_webhookdatabankaccountcreated();
|
|
68371
68482
|
init_webhookdatabankaccountdeleted();
|
|
@@ -68405,7 +68516,9 @@ var init_webhookdata = __esm(() => {
|
|
|
68405
68516
|
WebhookDataTransferUpdated$inboundSchema,
|
|
68406
68517
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
68407
68518
|
WebhookDataRefundUpdated$inboundSchema,
|
|
68519
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
68408
68520
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
68521
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
68409
68522
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
68410
68523
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
68411
68524
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -68416,7 +68529,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68416
68529
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
68417
68530
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
68418
68531
|
WebhookDataRefundCreated$inboundSchema,
|
|
68419
|
-
|
|
68532
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
68420
68533
|
WebhookDataTicketUpdated$inboundSchema,
|
|
68421
68534
|
WebhookDataTransferCreated$inboundSchema,
|
|
68422
68535
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -68426,7 +68539,6 @@ var init_webhookdata = __esm(() => {
|
|
|
68426
68539
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
68427
68540
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
68428
68541
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
68429
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
68430
68542
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
68431
68543
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
68432
68544
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -68444,7 +68556,9 @@ var init_webhookdata = __esm(() => {
|
|
|
68444
68556
|
WebhookDataTransferUpdated$outboundSchema,
|
|
68445
68557
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
68446
68558
|
WebhookDataRefundUpdated$outboundSchema,
|
|
68559
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
68447
68560
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
68561
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
68448
68562
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
68449
68563
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
68450
68564
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -68455,7 +68569,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68455
68569
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
68456
68570
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
68457
68571
|
WebhookDataRefundCreated$outboundSchema,
|
|
68458
|
-
|
|
68572
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
68459
68573
|
WebhookDataTicketUpdated$outboundSchema,
|
|
68460
68574
|
WebhookDataTransferCreated$outboundSchema,
|
|
68461
68575
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -68465,7 +68579,6 @@ var init_webhookdata = __esm(() => {
|
|
|
68465
68579
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
68466
68580
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
68467
68581
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
68468
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
68469
68582
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
68470
68583
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
68471
68584
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -68562,7 +68675,6 @@ var init_components = __esm(() => {
|
|
|
68562
68675
|
init_assignproductimagevalidationerror();
|
|
68563
68676
|
init_asynccreatedrefund();
|
|
68564
68677
|
init_asynctransfer();
|
|
68565
|
-
init_authorizeduser();
|
|
68566
68678
|
init_authtoken();
|
|
68567
68679
|
init_authtokenrequest();
|
|
68568
68680
|
init_bankaccount();
|
|
@@ -68650,9 +68762,6 @@ var init_components = __esm(() => {
|
|
|
68650
68762
|
init_createaccountsettings();
|
|
68651
68763
|
init_createaccounttype();
|
|
68652
68764
|
init_createapplepaysession();
|
|
68653
|
-
init_createauthorizeduser();
|
|
68654
|
-
init_createauthorizedusererror();
|
|
68655
|
-
init_createauthorizeduserupdate();
|
|
68656
68765
|
init_createbusinesserror();
|
|
68657
68766
|
init_createbusinessprofile();
|
|
68658
68767
|
init_createdtransfer();
|
|
@@ -69028,6 +69137,7 @@ var init_components = __esm(() => {
|
|
|
69028
69137
|
init_webhookdataaccountcreated();
|
|
69029
69138
|
init_webhookdataaccountdisconnected();
|
|
69030
69139
|
init_webhookdataaccountupdated();
|
|
69140
|
+
init_webhookdataauthorizationexpiring();
|
|
69031
69141
|
init_webhookdatabalanceupdated();
|
|
69032
69142
|
init_webhookdatabankaccountcreated();
|
|
69033
69143
|
init_webhookdatabankaccountdeleted();
|
|
@@ -70663,10 +70773,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70663
70773
|
init_components();
|
|
70664
70774
|
init_mooverror();
|
|
70665
70775
|
RequestCardError = class RequestCardError extends MoovError {
|
|
70666
|
-
|
|
70667
|
-
|
|
70668
|
-
|
|
70669
|
-
|
|
70776
|
+
authorizedUserAccountID;
|
|
70777
|
+
nickname;
|
|
70778
|
+
metadata;
|
|
70779
|
+
billingAddress;
|
|
70670
70780
|
expiration;
|
|
70671
70781
|
controls;
|
|
70672
70782
|
data$;
|
|
@@ -70674,14 +70784,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
70674
70784
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
70675
70785
|
super(message, httpMeta);
|
|
70676
70786
|
this.data$ = err;
|
|
70677
|
-
if (err.
|
|
70678
|
-
this.
|
|
70679
|
-
|
|
70680
|
-
|
|
70681
|
-
|
|
70682
|
-
|
|
70683
|
-
|
|
70684
|
-
|
|
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;
|
|
70685
70796
|
if (err.expiration != null)
|
|
70686
70797
|
this.expiration = err.expiration;
|
|
70687
70798
|
if (err.controls != null)
|
|
@@ -70690,10 +70801,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70690
70801
|
}
|
|
70691
70802
|
};
|
|
70692
70803
|
RequestCardError$inboundSchema = objectType({
|
|
70693
|
-
|
|
70694
|
-
|
|
70695
|
-
|
|
70696
|
-
|
|
70804
|
+
authorizedUserAccountID: stringType().optional(),
|
|
70805
|
+
nickname: stringType().optional(),
|
|
70806
|
+
metadata: stringType().optional(),
|
|
70807
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70697
70808
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
70698
70809
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
70699
70810
|
request$: instanceOfType(Request),
|
|
@@ -70707,10 +70818,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70707
70818
|
});
|
|
70708
70819
|
});
|
|
70709
70820
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70710
|
-
|
|
70711
|
-
|
|
70712
|
-
|
|
70713
|
-
|
|
70821
|
+
authorizedUserAccountID: stringType().optional(),
|
|
70822
|
+
nickname: stringType().optional(),
|
|
70823
|
+
metadata: stringType().optional(),
|
|
70824
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
70714
70825
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
70715
70826
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
70716
70827
|
}));
|
|
@@ -71281,8 +71392,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71281
71392
|
init_mooverror();
|
|
71282
71393
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
71283
71394
|
state;
|
|
71284
|
-
|
|
71285
|
-
|
|
71395
|
+
nickname;
|
|
71396
|
+
metadata;
|
|
71397
|
+
billingAddress;
|
|
71286
71398
|
data$;
|
|
71287
71399
|
constructor(err, httpMeta) {
|
|
71288
71400
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -71290,17 +71402,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71290
71402
|
this.data$ = err;
|
|
71291
71403
|
if (err.state != null)
|
|
71292
71404
|
this.state = err.state;
|
|
71293
|
-
if (err.
|
|
71294
|
-
this.
|
|
71295
|
-
if (err.
|
|
71296
|
-
this.
|
|
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;
|
|
71297
71411
|
this.name = "UpdateIssuedCardError";
|
|
71298
71412
|
}
|
|
71299
71413
|
};
|
|
71300
71414
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
71301
71415
|
state: stringType().optional(),
|
|
71302
|
-
|
|
71303
|
-
|
|
71416
|
+
nickname: stringType().optional(),
|
|
71417
|
+
metadata: stringType().optional(),
|
|
71418
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
71304
71419
|
request$: instanceOfType(Request),
|
|
71305
71420
|
response$: instanceOfType(Response),
|
|
71306
71421
|
body$: stringType()
|
|
@@ -71313,8 +71428,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71313
71428
|
});
|
|
71314
71429
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
71315
71430
|
state: stringType().optional(),
|
|
71316
|
-
|
|
71317
|
-
|
|
71431
|
+
nickname: stringType().optional(),
|
|
71432
|
+
metadata: stringType().optional(),
|
|
71433
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
71318
71434
|
}));
|
|
71319
71435
|
});
|
|
71320
71436
|
|
|
@@ -75283,6 +75399,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
75283
75399
|
});
|
|
75284
75400
|
});
|
|
75285
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
|
+
|
|
75286
75436
|
// src/models/operations/listcapabilities.ts
|
|
75287
75437
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
75288
75438
|
var init_listcapabilities = __esm(() => {
|
|
@@ -78231,6 +78381,7 @@ var init_operations = __esm(() => {
|
|
|
78231
78381
|
init_listaccountterminalapplications();
|
|
78232
78382
|
init_listadjustments();
|
|
78233
78383
|
init_listbankaccounts();
|
|
78384
|
+
init_listcancellations();
|
|
78234
78385
|
init_listcapabilities();
|
|
78235
78386
|
init_listcards();
|
|
78236
78387
|
init_listconnectedaccountsforaccount();
|
|
@@ -78315,16 +78466,19 @@ var init_async = __esm(() => {
|
|
|
78315
78466
|
[Symbol.toStringTag] = "APIPromise";
|
|
78316
78467
|
constructor(p) {
|
|
78317
78468
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
78318
|
-
this.#unwrapped = p instanceof Promise ?
|
|
78469
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
78470
|
+
}
|
|
78471
|
+
#getUnwrapped() {
|
|
78472
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
78319
78473
|
}
|
|
78320
78474
|
then(onfulfilled, onrejected) {
|
|
78321
78475
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
78322
78476
|
}
|
|
78323
78477
|
catch(onrejected) {
|
|
78324
|
-
return this.#
|
|
78478
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
78325
78479
|
}
|
|
78326
78480
|
finally(onfinally) {
|
|
78327
|
-
return this.#
|
|
78481
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
78328
78482
|
}
|
|
78329
78483
|
$inspect() {
|
|
78330
78484
|
return this.#promise;
|
|
@@ -78647,21 +78801,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
78647
78801
|
};
|
|
78648
78802
|
tool$accountsCreate = {
|
|
78649
78803
|
name: "accounts-create",
|
|
78650
|
-
description: `You can create
|
|
78651
|
-
|
|
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.
|
|
78652
78809
|
|
|
78653
|
-
If you're
|
|
78654
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
78655
|
-
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.
|
|
78656
|
-
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:
|
|
78657
78811
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
78658
78812
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
78659
78813
|
|
|
78660
|
-
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/).
|
|
78661
|
-
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.
|
|
78662
78815
|
|
|
78663
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78664
|
-
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.`,
|
|
78665
78817
|
args: args3,
|
|
78666
78818
|
tool: async (client, args4, ctx) => {
|
|
78667
78819
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -82700,7 +82852,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
82700
82852
|
};
|
|
82701
82853
|
tool$capabilitiesDisable = {
|
|
82702
82854
|
name: "capabilities-disable",
|
|
82703
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
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.
|
|
82704
82856
|
|
|
82705
82857
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
82706
82858
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -82814,7 +82966,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
82814
82966
|
};
|
|
82815
82967
|
tool$capabilitiesGet = {
|
|
82816
82968
|
name: "capabilities-get",
|
|
82817
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
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.
|
|
82818
82970
|
|
|
82819
82971
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
82820
82972
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -82927,7 +83079,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
82927
83079
|
name: "capabilities-list",
|
|
82928
83080
|
description: `Retrieve all the capabilities an account has requested.
|
|
82929
83081
|
|
|
82930
|
-
Read our [capabilities
|
|
83082
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
82931
83083
|
|
|
82932
83084
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
82933
83085
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -83040,7 +83192,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
83040
83192
|
};
|
|
83041
83193
|
tool$capabilitiesRequest = {
|
|
83042
83194
|
name: "capabilities-request",
|
|
83043
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
83195
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
83044
83196
|
|
|
83045
83197
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
83046
83198
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -83080,7 +83232,7 @@ async function $do42(client, request, options) {
|
|
|
83080
83232
|
charEncoding: "percent"
|
|
83081
83233
|
})
|
|
83082
83234
|
};
|
|
83083
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83235
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
83084
83236
|
const headers = new Headers(compactMap({
|
|
83085
83237
|
Accept: "application/json"
|
|
83086
83238
|
}));
|
|
@@ -83195,7 +83347,7 @@ async function $do43(client, request, options) {
|
|
|
83195
83347
|
charEncoding: "percent"
|
|
83196
83348
|
})
|
|
83197
83349
|
};
|
|
83198
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83350
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
83199
83351
|
const headers = new Headers(compactMap({
|
|
83200
83352
|
Accept: "application/json"
|
|
83201
83353
|
}));
|
|
@@ -83308,7 +83460,7 @@ async function $do44(client, request, options) {
|
|
|
83308
83460
|
charEncoding: "percent"
|
|
83309
83461
|
})
|
|
83310
83462
|
};
|
|
83311
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83463
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
83312
83464
|
const query = encodeFormQuery({
|
|
83313
83465
|
count: payload.count,
|
|
83314
83466
|
skip: payload.skip,
|
|
@@ -83425,7 +83577,7 @@ async function $do45(client, request, options) {
|
|
|
83425
83577
|
charEncoding: "percent"
|
|
83426
83578
|
})
|
|
83427
83579
|
};
|
|
83428
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83580
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
83429
83581
|
const headers = new Headers(compactMap({
|
|
83430
83582
|
"Content-Type": "application/json",
|
|
83431
83583
|
Accept: "application/json"
|
|
@@ -83542,7 +83694,7 @@ async function $do46(client, request, options) {
|
|
|
83542
83694
|
charEncoding: "percent"
|
|
83543
83695
|
})
|
|
83544
83696
|
};
|
|
83545
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83697
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
83546
83698
|
const headers = new Headers(compactMap({
|
|
83547
83699
|
"Content-Type": "application/json",
|
|
83548
83700
|
Accept: "application/json"
|
|
@@ -96159,11 +96311,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
96159
96311
|
};
|
|
96160
96312
|
});
|
|
96161
96313
|
|
|
96162
|
-
// src/funcs/
|
|
96163
|
-
function
|
|
96314
|
+
// src/funcs/transfersListCancellations.ts
|
|
96315
|
+
function transfersListCancellations(client, request, options) {
|
|
96164
96316
|
return new APIPromise($do154(client, request, options));
|
|
96165
96317
|
}
|
|
96166
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) {
|
|
96167
96434
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96168
96435
|
if (!parsed.ok) {
|
|
96169
96436
|
return [parsed, { status: "invalid" }];
|
|
@@ -96245,12 +96512,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
96245
96512
|
});
|
|
96246
96513
|
|
|
96247
96514
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
96248
|
-
var
|
|
96515
|
+
var args150, tool$transfersListRefunds;
|
|
96249
96516
|
var init_transfersListRefunds2 = __esm(() => {
|
|
96250
96517
|
init_transfersListRefunds();
|
|
96251
96518
|
init_operations();
|
|
96252
96519
|
init_tools();
|
|
96253
|
-
|
|
96520
|
+
args150 = {
|
|
96254
96521
|
request: ListRefundsRequest$inboundSchema
|
|
96255
96522
|
};
|
|
96256
96523
|
tool$transfersListRefunds = {
|
|
@@ -96259,9 +96526,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
96259
96526
|
|
|
96260
96527
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96261
96528
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
96262
|
-
args:
|
|
96263
|
-
tool: async (client,
|
|
96264
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
96529
|
+
args: args150,
|
|
96530
|
+
tool: async (client, args151, ctx) => {
|
|
96531
|
+
const [result, apiCall] = await transfersListRefunds(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96265
96532
|
if (!result.ok) {
|
|
96266
96533
|
return {
|
|
96267
96534
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96276,9 +96543,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
96276
96543
|
|
|
96277
96544
|
// src/funcs/transfersUpdate.ts
|
|
96278
96545
|
function transfersUpdate(client, request, options) {
|
|
96279
|
-
return new APIPromise($
|
|
96546
|
+
return new APIPromise($do156(client, request, options));
|
|
96280
96547
|
}
|
|
96281
|
-
async function $
|
|
96548
|
+
async function $do156(client, request, options) {
|
|
96282
96549
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96283
96550
|
if (!parsed.ok) {
|
|
96284
96551
|
return [parsed, { status: "invalid" }];
|
|
@@ -96364,12 +96631,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
96364
96631
|
});
|
|
96365
96632
|
|
|
96366
96633
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
96367
|
-
var
|
|
96634
|
+
var args151, tool$transfersUpdate;
|
|
96368
96635
|
var init_transfersUpdate2 = __esm(() => {
|
|
96369
96636
|
init_transfersUpdate();
|
|
96370
96637
|
init_operations();
|
|
96371
96638
|
init_tools();
|
|
96372
|
-
|
|
96639
|
+
args151 = {
|
|
96373
96640
|
request: UpdateTransferRequest$inboundSchema
|
|
96374
96641
|
};
|
|
96375
96642
|
tool$transfersUpdate = {
|
|
@@ -96380,9 +96647,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
96380
96647
|
|
|
96381
96648
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96382
96649
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
96383
|
-
args:
|
|
96384
|
-
tool: async (client,
|
|
96385
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
96650
|
+
args: args151,
|
|
96651
|
+
tool: async (client, args152, ctx) => {
|
|
96652
|
+
const [result, apiCall] = await transfersUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96386
96653
|
if (!result.ok) {
|
|
96387
96654
|
return {
|
|
96388
96655
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96397,9 +96664,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
96397
96664
|
|
|
96398
96665
|
// src/funcs/underwritingGet.ts
|
|
96399
96666
|
function underwritingGet(client, request, options) {
|
|
96400
|
-
return new APIPromise($
|
|
96667
|
+
return new APIPromise($do157(client, request, options));
|
|
96401
96668
|
}
|
|
96402
|
-
async function $
|
|
96669
|
+
async function $do157(client, request, options) {
|
|
96403
96670
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96404
96671
|
if (!parsed.ok) {
|
|
96405
96672
|
return [parsed, { status: "invalid" }];
|
|
@@ -96477,12 +96744,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
96477
96744
|
});
|
|
96478
96745
|
|
|
96479
96746
|
// src/mcp-server/tools/underwritingGet.ts
|
|
96480
|
-
var
|
|
96747
|
+
var args152, tool$underwritingGet;
|
|
96481
96748
|
var init_underwritingGet2 = __esm(() => {
|
|
96482
96749
|
init_underwritingGet();
|
|
96483
96750
|
init_operations();
|
|
96484
96751
|
init_tools();
|
|
96485
|
-
|
|
96752
|
+
args152 = {
|
|
96486
96753
|
request: GetUnderwritingRequest$inboundSchema
|
|
96487
96754
|
};
|
|
96488
96755
|
tool$underwritingGet = {
|
|
@@ -96493,9 +96760,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96493
96760
|
|
|
96494
96761
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96495
96762
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
96496
|
-
args:
|
|
96497
|
-
tool: async (client,
|
|
96498
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
96763
|
+
args: args152,
|
|
96764
|
+
tool: async (client, args153, ctx) => {
|
|
96765
|
+
const [result, apiCall] = await underwritingGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96499
96766
|
if (!result.ok) {
|
|
96500
96767
|
return {
|
|
96501
96768
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96510,9 +96777,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
96510
96777
|
|
|
96511
96778
|
// src/funcs/underwritingSave.ts
|
|
96512
96779
|
function underwritingSave(client, request, options) {
|
|
96513
|
-
return new APIPromise($
|
|
96780
|
+
return new APIPromise($do158(client, request, options));
|
|
96514
96781
|
}
|
|
96515
|
-
async function $
|
|
96782
|
+
async function $do158(client, request, options) {
|
|
96516
96783
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96517
96784
|
if (!parsed.ok) {
|
|
96518
96785
|
return [parsed, { status: "invalid" }];
|
|
@@ -96596,12 +96863,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
96596
96863
|
});
|
|
96597
96864
|
|
|
96598
96865
|
// src/mcp-server/tools/underwritingSave.ts
|
|
96599
|
-
var
|
|
96866
|
+
var args153, tool$underwritingSave;
|
|
96600
96867
|
var init_underwritingSave2 = __esm(() => {
|
|
96601
96868
|
init_underwritingSave();
|
|
96602
96869
|
init_operations();
|
|
96603
96870
|
init_tools();
|
|
96604
|
-
|
|
96871
|
+
args153 = {
|
|
96605
96872
|
request: SaveUnderwritingRequest$inboundSchema
|
|
96606
96873
|
};
|
|
96607
96874
|
tool$underwritingSave = {
|
|
@@ -96612,9 +96879,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96612
96879
|
|
|
96613
96880
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96614
96881
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
96615
|
-
args:
|
|
96616
|
-
tool: async (client,
|
|
96617
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
96882
|
+
args: args153,
|
|
96883
|
+
tool: async (client, args154, ctx) => {
|
|
96884
|
+
const [result, apiCall] = await underwritingSave(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96618
96885
|
if (!result.ok) {
|
|
96619
96886
|
return {
|
|
96620
96887
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96629,9 +96896,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
96629
96896
|
|
|
96630
96897
|
// src/funcs/underwritingUpsert.ts
|
|
96631
96898
|
function underwritingUpsert(client, request, options) {
|
|
96632
|
-
return new APIPromise($
|
|
96899
|
+
return new APIPromise($do159(client, request, options));
|
|
96633
96900
|
}
|
|
96634
|
-
async function $
|
|
96901
|
+
async function $do159(client, request, options) {
|
|
96635
96902
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96636
96903
|
if (!parsed.ok) {
|
|
96637
96904
|
return [parsed, { status: "invalid" }];
|
|
@@ -96715,12 +96982,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
96715
96982
|
});
|
|
96716
96983
|
|
|
96717
96984
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
96718
|
-
var
|
|
96985
|
+
var args154, tool$underwritingUpsert;
|
|
96719
96986
|
var init_underwritingUpsert2 = __esm(() => {
|
|
96720
96987
|
init_underwritingUpsert();
|
|
96721
96988
|
init_operations();
|
|
96722
96989
|
init_tools();
|
|
96723
|
-
|
|
96990
|
+
args154 = {
|
|
96724
96991
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
96725
96992
|
};
|
|
96726
96993
|
tool$underwritingUpsert = {
|
|
@@ -96731,9 +96998,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96731
96998
|
|
|
96732
96999
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96733
97000
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
96734
|
-
args:
|
|
96735
|
-
tool: async (client,
|
|
96736
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
97001
|
+
args: args154,
|
|
97002
|
+
tool: async (client, args155, ctx) => {
|
|
97003
|
+
const [result, apiCall] = await underwritingUpsert(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96737
97004
|
if (!result.ok) {
|
|
96738
97005
|
return {
|
|
96739
97006
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96748,9 +97015,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
96748
97015
|
|
|
96749
97016
|
// src/funcs/walletsCreate.ts
|
|
96750
97017
|
function walletsCreate(client, request, options) {
|
|
96751
|
-
return new APIPromise($
|
|
97018
|
+
return new APIPromise($do160(client, request, options));
|
|
96752
97019
|
}
|
|
96753
|
-
async function $
|
|
97020
|
+
async function $do160(client, request, options) {
|
|
96754
97021
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96755
97022
|
if (!parsed.ok) {
|
|
96756
97023
|
return [parsed, { status: "invalid" }];
|
|
@@ -96832,12 +97099,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
96832
97099
|
});
|
|
96833
97100
|
|
|
96834
97101
|
// src/mcp-server/tools/walletsCreate.ts
|
|
96835
|
-
var
|
|
97102
|
+
var args155, tool$walletsCreate;
|
|
96836
97103
|
var init_walletsCreate2 = __esm(() => {
|
|
96837
97104
|
init_walletsCreate();
|
|
96838
97105
|
init_operations();
|
|
96839
97106
|
init_tools();
|
|
96840
|
-
|
|
97107
|
+
args155 = {
|
|
96841
97108
|
request: CreateWalletRequest$inboundSchema
|
|
96842
97109
|
};
|
|
96843
97110
|
tool$walletsCreate = {
|
|
@@ -96848,9 +97115,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
96848
97115
|
|
|
96849
97116
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96850
97117
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
96851
|
-
args:
|
|
96852
|
-
tool: async (client,
|
|
96853
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
97118
|
+
args: args155,
|
|
97119
|
+
tool: async (client, args156, ctx) => {
|
|
97120
|
+
const [result, apiCall] = await walletsCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96854
97121
|
if (!result.ok) {
|
|
96855
97122
|
return {
|
|
96856
97123
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96865,9 +97132,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
96865
97132
|
|
|
96866
97133
|
// src/funcs/walletsGet.ts
|
|
96867
97134
|
function walletsGet(client, request, options) {
|
|
96868
|
-
return new APIPromise($
|
|
97135
|
+
return new APIPromise($do161(client, request, options));
|
|
96869
97136
|
}
|
|
96870
|
-
async function $
|
|
97137
|
+
async function $do161(client, request, options) {
|
|
96871
97138
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96872
97139
|
if (!parsed.ok) {
|
|
96873
97140
|
return [parsed, { status: "invalid" }];
|
|
@@ -96949,12 +97216,12 @@ var init_walletsGet = __esm(() => {
|
|
|
96949
97216
|
});
|
|
96950
97217
|
|
|
96951
97218
|
// src/mcp-server/tools/walletsGet.ts
|
|
96952
|
-
var
|
|
97219
|
+
var args156, tool$walletsGet;
|
|
96953
97220
|
var init_walletsGet2 = __esm(() => {
|
|
96954
97221
|
init_walletsGet();
|
|
96955
97222
|
init_operations();
|
|
96956
97223
|
init_tools();
|
|
96957
|
-
|
|
97224
|
+
args156 = {
|
|
96958
97225
|
request: GetWalletRequest$inboundSchema
|
|
96959
97226
|
};
|
|
96960
97227
|
tool$walletsGet = {
|
|
@@ -96965,9 +97232,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
96965
97232
|
|
|
96966
97233
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96967
97234
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
96968
|
-
args:
|
|
96969
|
-
tool: async (client,
|
|
96970
|
-
const [result, apiCall] = await walletsGet(client,
|
|
97235
|
+
args: args156,
|
|
97236
|
+
tool: async (client, args157, ctx) => {
|
|
97237
|
+
const [result, apiCall] = await walletsGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96971
97238
|
if (!result.ok) {
|
|
96972
97239
|
return {
|
|
96973
97240
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96982,9 +97249,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
96982
97249
|
|
|
96983
97250
|
// src/funcs/walletsList.ts
|
|
96984
97251
|
function walletsList(client, request, options) {
|
|
96985
|
-
return new APIPromise($
|
|
97252
|
+
return new APIPromise($do162(client, request, options));
|
|
96986
97253
|
}
|
|
96987
|
-
async function $
|
|
97254
|
+
async function $do162(client, request, options) {
|
|
96988
97255
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96989
97256
|
if (!parsed.ok) {
|
|
96990
97257
|
return [parsed, { status: "invalid" }];
|
|
@@ -97072,12 +97339,12 @@ var init_walletsList = __esm(() => {
|
|
|
97072
97339
|
});
|
|
97073
97340
|
|
|
97074
97341
|
// src/mcp-server/tools/walletsList.ts
|
|
97075
|
-
var
|
|
97342
|
+
var args157, tool$walletsList;
|
|
97076
97343
|
var init_walletsList2 = __esm(() => {
|
|
97077
97344
|
init_walletsList();
|
|
97078
97345
|
init_operations();
|
|
97079
97346
|
init_tools();
|
|
97080
|
-
|
|
97347
|
+
args157 = {
|
|
97081
97348
|
request: ListWalletsRequest$inboundSchema
|
|
97082
97349
|
};
|
|
97083
97350
|
tool$walletsList = {
|
|
@@ -97088,9 +97355,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
97088
97355
|
|
|
97089
97356
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97090
97357
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97091
|
-
args:
|
|
97092
|
-
tool: async (client,
|
|
97093
|
-
const [result, apiCall] = await walletsList(client,
|
|
97358
|
+
args: args157,
|
|
97359
|
+
tool: async (client, args158, ctx) => {
|
|
97360
|
+
const [result, apiCall] = await walletsList(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97094
97361
|
if (!result.ok) {
|
|
97095
97362
|
return {
|
|
97096
97363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97105,9 +97372,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97105
97372
|
|
|
97106
97373
|
// src/funcs/walletsUpdate.ts
|
|
97107
97374
|
function walletsUpdate(client, request, options) {
|
|
97108
|
-
return new APIPromise($
|
|
97375
|
+
return new APIPromise($do163(client, request, options));
|
|
97109
97376
|
}
|
|
97110
|
-
async function $
|
|
97377
|
+
async function $do163(client, request, options) {
|
|
97111
97378
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97112
97379
|
if (!parsed.ok) {
|
|
97113
97380
|
return [parsed, { status: "invalid" }];
|
|
@@ -97193,12 +97460,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
97193
97460
|
});
|
|
97194
97461
|
|
|
97195
97462
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
97196
|
-
var
|
|
97463
|
+
var args158, tool$walletsUpdate;
|
|
97197
97464
|
var init_walletsUpdate2 = __esm(() => {
|
|
97198
97465
|
init_walletsUpdate();
|
|
97199
97466
|
init_operations();
|
|
97200
97467
|
init_tools();
|
|
97201
|
-
|
|
97468
|
+
args158 = {
|
|
97202
97469
|
request: UpdateWalletRequest$inboundSchema
|
|
97203
97470
|
};
|
|
97204
97471
|
tool$walletsUpdate = {
|
|
@@ -97209,9 +97476,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
97209
97476
|
|
|
97210
97477
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97211
97478
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
97212
|
-
args:
|
|
97213
|
-
tool: async (client,
|
|
97214
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
97479
|
+
args: args158,
|
|
97480
|
+
tool: async (client, args159, ctx) => {
|
|
97481
|
+
const [result, apiCall] = await walletsUpdate(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97215
97482
|
if (!result.ok) {
|
|
97216
97483
|
return {
|
|
97217
97484
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97226,9 +97493,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
97226
97493
|
|
|
97227
97494
|
// src/funcs/walletTransactionsGet.ts
|
|
97228
97495
|
function walletTransactionsGet(client, request, options) {
|
|
97229
|
-
return new APIPromise($
|
|
97496
|
+
return new APIPromise($do164(client, request, options));
|
|
97230
97497
|
}
|
|
97231
|
-
async function $
|
|
97498
|
+
async function $do164(client, request, options) {
|
|
97232
97499
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97233
97500
|
if (!parsed.ok) {
|
|
97234
97501
|
return [parsed, { status: "invalid" }];
|
|
@@ -97314,12 +97581,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
97314
97581
|
});
|
|
97315
97582
|
|
|
97316
97583
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
97317
|
-
var
|
|
97584
|
+
var args159, tool$walletTransactionsGet;
|
|
97318
97585
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
97319
97586
|
init_walletTransactionsGet();
|
|
97320
97587
|
init_operations();
|
|
97321
97588
|
init_tools();
|
|
97322
|
-
|
|
97589
|
+
args159 = {
|
|
97323
97590
|
request: GetWalletTransactionRequest$inboundSchema
|
|
97324
97591
|
};
|
|
97325
97592
|
tool$walletTransactionsGet = {
|
|
@@ -97330,9 +97597,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
97330
97597
|
|
|
97331
97598
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97332
97599
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97333
|
-
args:
|
|
97334
|
-
tool: async (client,
|
|
97335
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
97600
|
+
args: args159,
|
|
97601
|
+
tool: async (client, args160, ctx) => {
|
|
97602
|
+
const [result, apiCall] = await walletTransactionsGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97336
97603
|
if (!result.ok) {
|
|
97337
97604
|
return {
|
|
97338
97605
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97347,9 +97614,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97347
97614
|
|
|
97348
97615
|
// src/funcs/walletTransactionsList.ts
|
|
97349
97616
|
function walletTransactionsList(client, request, options) {
|
|
97350
|
-
return new APIPromise($
|
|
97617
|
+
return new APIPromise($do165(client, request, options));
|
|
97351
97618
|
}
|
|
97352
|
-
async function $
|
|
97619
|
+
async function $do165(client, request, options) {
|
|
97353
97620
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97354
97621
|
if (!parsed.ok) {
|
|
97355
97622
|
return [parsed, { status: "invalid" }];
|
|
@@ -97449,12 +97716,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
97449
97716
|
});
|
|
97450
97717
|
|
|
97451
97718
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
97452
|
-
var
|
|
97719
|
+
var args160, tool$walletTransactionsList;
|
|
97453
97720
|
var init_walletTransactionsList2 = __esm(() => {
|
|
97454
97721
|
init_walletTransactionsList();
|
|
97455
97722
|
init_operations();
|
|
97456
97723
|
init_tools();
|
|
97457
|
-
|
|
97724
|
+
args160 = {
|
|
97458
97725
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
97459
97726
|
};
|
|
97460
97727
|
tool$walletTransactionsList = {
|
|
@@ -97465,9 +97732,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
97465
97732
|
|
|
97466
97733
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97467
97734
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97468
|
-
args:
|
|
97469
|
-
tool: async (client,
|
|
97470
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
97735
|
+
args: args160,
|
|
97736
|
+
tool: async (client, args161, ctx) => {
|
|
97737
|
+
const [result, apiCall] = await walletTransactionsList(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97471
97738
|
if (!result.ok) {
|
|
97472
97739
|
return {
|
|
97473
97740
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97482,9 +97749,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97482
97749
|
|
|
97483
97750
|
// src/funcs/webhooksCreate.ts
|
|
97484
97751
|
function webhooksCreate(client, request, options) {
|
|
97485
|
-
return new APIPromise($
|
|
97752
|
+
return new APIPromise($do166(client, request, options));
|
|
97486
97753
|
}
|
|
97487
|
-
async function $
|
|
97754
|
+
async function $do166(client, request, options) {
|
|
97488
97755
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
97489
97756
|
if (!parsed.ok) {
|
|
97490
97757
|
return [parsed, { status: "invalid" }];
|
|
@@ -97561,20 +97828,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
97561
97828
|
});
|
|
97562
97829
|
|
|
97563
97830
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
97564
|
-
var
|
|
97831
|
+
var args161, tool$webhooksCreate;
|
|
97565
97832
|
var init_webhooksCreate2 = __esm(() => {
|
|
97566
97833
|
init_webhooksCreate();
|
|
97567
97834
|
init_components();
|
|
97568
97835
|
init_tools();
|
|
97569
|
-
|
|
97836
|
+
args161 = {
|
|
97570
97837
|
request: CreateWebhook$inboundSchema
|
|
97571
97838
|
};
|
|
97572
97839
|
tool$webhooksCreate = {
|
|
97573
97840
|
name: "webhooks-create",
|
|
97574
97841
|
description: `Create a new webhook for the account.`,
|
|
97575
|
-
args:
|
|
97576
|
-
tool: async (client,
|
|
97577
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
97842
|
+
args: args161,
|
|
97843
|
+
tool: async (client, args162, ctx) => {
|
|
97844
|
+
const [result, apiCall] = await webhooksCreate(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97578
97845
|
if (!result.ok) {
|
|
97579
97846
|
return {
|
|
97580
97847
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97589,9 +97856,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
97589
97856
|
|
|
97590
97857
|
// src/funcs/webhooksDisable.ts
|
|
97591
97858
|
function webhooksDisable(client, request, options) {
|
|
97592
|
-
return new APIPromise($
|
|
97859
|
+
return new APIPromise($do167(client, request, options));
|
|
97593
97860
|
}
|
|
97594
|
-
async function $
|
|
97861
|
+
async function $do167(client, request, options) {
|
|
97595
97862
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97596
97863
|
if (!parsed.ok) {
|
|
97597
97864
|
return [parsed, { status: "invalid" }];
|
|
@@ -97669,20 +97936,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
97669
97936
|
});
|
|
97670
97937
|
|
|
97671
97938
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
97672
|
-
var
|
|
97939
|
+
var args162, tool$webhooksDisable;
|
|
97673
97940
|
var init_webhooksDisable2 = __esm(() => {
|
|
97674
97941
|
init_webhooksDisable();
|
|
97675
97942
|
init_operations();
|
|
97676
97943
|
init_tools();
|
|
97677
|
-
|
|
97944
|
+
args162 = {
|
|
97678
97945
|
request: DisableWebhookRequest$inboundSchema
|
|
97679
97946
|
};
|
|
97680
97947
|
tool$webhooksDisable = {
|
|
97681
97948
|
name: "webhooks-disable",
|
|
97682
97949
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
97683
|
-
args:
|
|
97684
|
-
tool: async (client,
|
|
97685
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
97950
|
+
args: args162,
|
|
97951
|
+
tool: async (client, args163, ctx) => {
|
|
97952
|
+
const [result, apiCall] = await webhooksDisable(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97686
97953
|
if (!result.ok) {
|
|
97687
97954
|
return {
|
|
97688
97955
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97696,9 +97963,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
97696
97963
|
|
|
97697
97964
|
// src/funcs/webhooksGet.ts
|
|
97698
97965
|
function webhooksGet(client, request, options) {
|
|
97699
|
-
return new APIPromise($
|
|
97966
|
+
return new APIPromise($do168(client, request, options));
|
|
97700
97967
|
}
|
|
97701
|
-
async function $
|
|
97968
|
+
async function $do168(client, request, options) {
|
|
97702
97969
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97703
97970
|
if (!parsed.ok) {
|
|
97704
97971
|
return [parsed, { status: "invalid" }];
|
|
@@ -97776,20 +98043,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
97776
98043
|
});
|
|
97777
98044
|
|
|
97778
98045
|
// src/mcp-server/tools/webhooksGet.ts
|
|
97779
|
-
var
|
|
98046
|
+
var args163, tool$webhooksGet;
|
|
97780
98047
|
var init_webhooksGet2 = __esm(() => {
|
|
97781
98048
|
init_webhooksGet();
|
|
97782
98049
|
init_operations();
|
|
97783
98050
|
init_tools();
|
|
97784
|
-
|
|
98051
|
+
args163 = {
|
|
97785
98052
|
request: GetWebhookRequest$inboundSchema
|
|
97786
98053
|
};
|
|
97787
98054
|
tool$webhooksGet = {
|
|
97788
98055
|
name: "webhooks-get",
|
|
97789
98056
|
description: `Get details of a specific webhook.`,
|
|
97790
|
-
args:
|
|
97791
|
-
tool: async (client,
|
|
97792
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
98057
|
+
args: args163,
|
|
98058
|
+
tool: async (client, args164, ctx) => {
|
|
98059
|
+
const [result, apiCall] = await webhooksGet(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97793
98060
|
if (!result.ok) {
|
|
97794
98061
|
return {
|
|
97795
98062
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97804,9 +98071,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
97804
98071
|
|
|
97805
98072
|
// src/funcs/webhooksGetSecret.ts
|
|
97806
98073
|
function webhooksGetSecret(client, request, options) {
|
|
97807
|
-
return new APIPromise($
|
|
98074
|
+
return new APIPromise($do169(client, request, options));
|
|
97808
98075
|
}
|
|
97809
|
-
async function $
|
|
98076
|
+
async function $do169(client, request, options) {
|
|
97810
98077
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97811
98078
|
if (!parsed.ok) {
|
|
97812
98079
|
return [parsed, { status: "invalid" }];
|
|
@@ -97884,20 +98151,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
97884
98151
|
});
|
|
97885
98152
|
|
|
97886
98153
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
97887
|
-
var
|
|
98154
|
+
var args164, tool$webhooksGetSecret;
|
|
97888
98155
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
97889
98156
|
init_webhooksGetSecret();
|
|
97890
98157
|
init_operations();
|
|
97891
98158
|
init_tools();
|
|
97892
|
-
|
|
98159
|
+
args164 = {
|
|
97893
98160
|
request: GetWebhookSecretRequest$inboundSchema
|
|
97894
98161
|
};
|
|
97895
98162
|
tool$webhooksGetSecret = {
|
|
97896
98163
|
name: "webhooks-get-secret",
|
|
97897
98164
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
97898
|
-
args:
|
|
97899
|
-
tool: async (client,
|
|
97900
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
98165
|
+
args: args164,
|
|
98166
|
+
tool: async (client, args165, ctx) => {
|
|
98167
|
+
const [result, apiCall] = await webhooksGetSecret(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97901
98168
|
if (!result.ok) {
|
|
97902
98169
|
return {
|
|
97903
98170
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97912,9 +98179,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
97912
98179
|
|
|
97913
98180
|
// src/funcs/webhooksList.ts
|
|
97914
98181
|
function webhooksList(client, options) {
|
|
97915
|
-
return new APIPromise($
|
|
98182
|
+
return new APIPromise($do170(client, options));
|
|
97916
98183
|
}
|
|
97917
|
-
async function $
|
|
98184
|
+
async function $do170(client, options) {
|
|
97918
98185
|
const path = pathToFunc("/webhooks")();
|
|
97919
98186
|
const headers = new Headers(compactMap({
|
|
97920
98187
|
Accept: "application/json"
|
|
@@ -98000,9 +98267,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
98000
98267
|
|
|
98001
98268
|
// src/funcs/webhooksListEventTypes.ts
|
|
98002
98269
|
function webhooksListEventTypes(client, options) {
|
|
98003
|
-
return new APIPromise($
|
|
98270
|
+
return new APIPromise($do171(client, options));
|
|
98004
98271
|
}
|
|
98005
|
-
async function $
|
|
98272
|
+
async function $do171(client, options) {
|
|
98006
98273
|
const path = pathToFunc("/event-types")();
|
|
98007
98274
|
const headers = new Headers(compactMap({
|
|
98008
98275
|
Accept: "application/json"
|
|
@@ -98088,9 +98355,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
98088
98355
|
|
|
98089
98356
|
// src/funcs/webhooksPing.ts
|
|
98090
98357
|
function webhooksPing(client, request, options) {
|
|
98091
|
-
return new APIPromise($
|
|
98358
|
+
return new APIPromise($do172(client, request, options));
|
|
98092
98359
|
}
|
|
98093
|
-
async function $
|
|
98360
|
+
async function $do172(client, request, options) {
|
|
98094
98361
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98095
98362
|
if (!parsed.ok) {
|
|
98096
98363
|
return [parsed, { status: "invalid" }];
|
|
@@ -98168,20 +98435,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
98168
98435
|
});
|
|
98169
98436
|
|
|
98170
98437
|
// src/mcp-server/tools/webhooksPing.ts
|
|
98171
|
-
var
|
|
98438
|
+
var args165, tool$webhooksPing;
|
|
98172
98439
|
var init_webhooksPing2 = __esm(() => {
|
|
98173
98440
|
init_webhooksPing();
|
|
98174
98441
|
init_operations();
|
|
98175
98442
|
init_tools();
|
|
98176
|
-
|
|
98443
|
+
args165 = {
|
|
98177
98444
|
request: PingWebhookRequest$inboundSchema
|
|
98178
98445
|
};
|
|
98179
98446
|
tool$webhooksPing = {
|
|
98180
98447
|
name: "webhooks-ping",
|
|
98181
98448
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
98182
|
-
args:
|
|
98183
|
-
tool: async (client,
|
|
98184
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
98449
|
+
args: args165,
|
|
98450
|
+
tool: async (client, args166, ctx) => {
|
|
98451
|
+
const [result, apiCall] = await webhooksPing(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98185
98452
|
if (!result.ok) {
|
|
98186
98453
|
return {
|
|
98187
98454
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98196,9 +98463,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
98196
98463
|
|
|
98197
98464
|
// src/funcs/webhooksUpdate.ts
|
|
98198
98465
|
function webhooksUpdate(client, request, options) {
|
|
98199
|
-
return new APIPromise($
|
|
98466
|
+
return new APIPromise($do173(client, request, options));
|
|
98200
98467
|
}
|
|
98201
|
-
async function $
|
|
98468
|
+
async function $do173(client, request, options) {
|
|
98202
98469
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98203
98470
|
if (!parsed.ok) {
|
|
98204
98471
|
return [parsed, { status: "invalid" }];
|
|
@@ -98280,20 +98547,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
98280
98547
|
});
|
|
98281
98548
|
|
|
98282
98549
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
98283
|
-
var
|
|
98550
|
+
var args166, tool$webhooksUpdate;
|
|
98284
98551
|
var init_webhooksUpdate2 = __esm(() => {
|
|
98285
98552
|
init_webhooksUpdate();
|
|
98286
98553
|
init_operations();
|
|
98287
98554
|
init_tools();
|
|
98288
|
-
|
|
98555
|
+
args166 = {
|
|
98289
98556
|
request: UpdateWebhookRequest$inboundSchema
|
|
98290
98557
|
};
|
|
98291
98558
|
tool$webhooksUpdate = {
|
|
98292
98559
|
name: "webhooks-update",
|
|
98293
98560
|
description: `Update an existing webhook.`,
|
|
98294
|
-
args:
|
|
98295
|
-
tool: async (client,
|
|
98296
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
98561
|
+
args: args166,
|
|
98562
|
+
tool: async (client, args167, ctx) => {
|
|
98563
|
+
const [result, apiCall] = await webhooksUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98297
98564
|
if (!result.ok) {
|
|
98298
98565
|
return {
|
|
98299
98566
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98310,10 +98577,11 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
98310
98577
|
function createMCPServer(deps) {
|
|
98311
98578
|
const server = new McpServer({
|
|
98312
98579
|
name: "Moov",
|
|
98313
|
-
version: "25.
|
|
98580
|
+
version: "25.9.1"
|
|
98314
98581
|
});
|
|
98315
98582
|
const client = new MoovCore({
|
|
98316
98583
|
security: deps.security,
|
|
98584
|
+
accessToken: deps.accessToken,
|
|
98317
98585
|
serverURL: deps.serverURL,
|
|
98318
98586
|
serverIdx: deps.serverIdx
|
|
98319
98587
|
});
|
|
@@ -98442,6 +98710,7 @@ function createMCPServer(deps) {
|
|
|
98442
98710
|
tool(tool$transfersGet);
|
|
98443
98711
|
tool(tool$transfersUpdate);
|
|
98444
98712
|
tool(tool$transfersCreateCancellation);
|
|
98713
|
+
tool(tool$transfersListCancellations);
|
|
98445
98714
|
tool(tool$transfersGetCancellation);
|
|
98446
98715
|
tool(tool$transfersInitiateRefund);
|
|
98447
98716
|
tool(tool$transfersListRefunds);
|
|
@@ -98656,6 +98925,7 @@ var init_server2 = __esm(() => {
|
|
|
98656
98925
|
init_transfersGetRefund2();
|
|
98657
98926
|
init_transfersInitiateRefund2();
|
|
98658
98927
|
init_transfersList2();
|
|
98928
|
+
init_transfersListCancellations2();
|
|
98659
98929
|
init_transfersListRefunds2();
|
|
98660
98930
|
init_transfersUpdate2();
|
|
98661
98931
|
init_underwritingGet2();
|
|
@@ -98707,6 +98977,7 @@ async function startStdio(flags) {
|
|
|
98707
98977
|
username: flags.username ?? "",
|
|
98708
98978
|
password: flags.password ?? ""
|
|
98709
98979
|
}),
|
|
98980
|
+
accessToken: flags["access-token"],
|
|
98710
98981
|
serverURL: flags["server-url"],
|
|
98711
98982
|
serverIdx: flags["server-index"]
|
|
98712
98983
|
});
|
|
@@ -98728,6 +98999,7 @@ async function startSSE(flags) {
|
|
|
98728
98999
|
username: flags.username ?? "",
|
|
98729
99000
|
password: flags.password ?? ""
|
|
98730
99001
|
}),
|
|
99002
|
+
accessToken: flags["access-token"],
|
|
98731
99003
|
serverURL: flags["server-url"],
|
|
98732
99004
|
serverIdx: flags["server-index"]
|
|
98733
99005
|
});
|
|
@@ -99808,6 +100080,14 @@ var startCommand = tn({
|
|
|
99808
100080
|
return stringType().parse(value);
|
|
99809
100081
|
}
|
|
99810
100082
|
},
|
|
100083
|
+
"access-token": {
|
|
100084
|
+
kind: "parsed",
|
|
100085
|
+
brief: "Allows setting the accessToken parameter for all supported operations",
|
|
100086
|
+
optional: true,
|
|
100087
|
+
parse: (value) => {
|
|
100088
|
+
return stringType().parse(value);
|
|
100089
|
+
}
|
|
100090
|
+
},
|
|
99811
100091
|
"server-url": {
|
|
99812
100092
|
kind: "parsed",
|
|
99813
100093
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -99867,7 +100147,7 @@ var routes = rn({
|
|
|
99867
100147
|
var app = Ve(routes, {
|
|
99868
100148
|
name: "mcp",
|
|
99869
100149
|
versionInfo: {
|
|
99870
|
-
currentVersion: "25.
|
|
100150
|
+
currentVersion: "25.9.1"
|
|
99871
100151
|
}
|
|
99872
100152
|
});
|
|
99873
100153
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -99875,5 +100155,5 @@ export {
|
|
|
99875
100155
|
app
|
|
99876
100156
|
};
|
|
99877
100157
|
|
|
99878
|
-
//# debugId=
|
|
100158
|
+
//# debugId=D17C12CC5C3B3F1964756E2164756E21
|
|
99879
100159
|
//# sourceMappingURL=mcp-server.js.map
|