@moovio/sdk 25.5.7 → 25.6.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 +109 -77
- package/bin/mcp-server.js +597 -317
- 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.04.00",
|
|
52882
|
-
sdkVersion: "25.
|
|
52883
|
-
genVersion: "2.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 25.
|
|
52977
|
+
sdkVersion: "25.6.1",
|
|
52978
|
+
genVersion: "2.910.1",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 25.6.1 2.910.1 v2025.04.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",
|
|
@@ -56309,20 +56433,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56309
56433
|
});
|
|
56310
56434
|
});
|
|
56311
56435
|
|
|
56312
|
-
// src/models/components/authorizeduser.ts
|
|
56313
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56314
|
-
var init_authorizeduser = __esm(() => {
|
|
56315
|
-
init_esm();
|
|
56316
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56317
|
-
firstName: stringType(),
|
|
56318
|
-
lastName: stringType()
|
|
56319
|
-
});
|
|
56320
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56321
|
-
firstName: stringType(),
|
|
56322
|
-
lastName: stringType()
|
|
56323
|
-
});
|
|
56324
|
-
});
|
|
56325
|
-
|
|
56326
56436
|
// src/models/components/tokentype.ts
|
|
56327
56437
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56328
56438
|
var init_tokentype = __esm(() => {
|
|
@@ -60701,57 +60811,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
60701
60811
|
});
|
|
60702
60812
|
});
|
|
60703
60813
|
|
|
60704
|
-
// src/models/components/createauthorizeduser.ts
|
|
60705
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
60706
|
-
var init_createauthorizeduser = __esm(() => {
|
|
60707
|
-
init_esm();
|
|
60708
|
-
init_birthdate();
|
|
60709
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
60710
|
-
firstName: stringType(),
|
|
60711
|
-
lastName: stringType(),
|
|
60712
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
60713
|
-
});
|
|
60714
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
60715
|
-
firstName: stringType(),
|
|
60716
|
-
lastName: stringType(),
|
|
60717
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
60718
|
-
});
|
|
60719
|
-
});
|
|
60720
|
-
|
|
60721
|
-
// src/models/components/createauthorizedusererror.ts
|
|
60722
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
60723
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
60724
|
-
init_esm();
|
|
60725
|
-
init_birthdateerror();
|
|
60726
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
60727
|
-
firstName: stringType().optional(),
|
|
60728
|
-
lastName: stringType().optional(),
|
|
60729
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
60730
|
-
});
|
|
60731
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
60732
|
-
firstName: stringType().optional(),
|
|
60733
|
-
lastName: stringType().optional(),
|
|
60734
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
60735
|
-
});
|
|
60736
|
-
});
|
|
60737
|
-
|
|
60738
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
60739
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
60740
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
60741
|
-
init_esm();
|
|
60742
|
-
init_birthdateupdate();
|
|
60743
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
60744
|
-
firstName: stringType().optional(),
|
|
60745
|
-
lastName: stringType().optional(),
|
|
60746
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
60747
|
-
});
|
|
60748
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
60749
|
-
firstName: stringType().optional(),
|
|
60750
|
-
lastName: stringType().optional(),
|
|
60751
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
60752
|
-
});
|
|
60753
|
-
});
|
|
60754
|
-
|
|
60755
60814
|
// src/models/components/phonenumbererror.ts
|
|
60756
60815
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
60757
60816
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62440,7 +62499,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62440
62499
|
WalletCreated: "wallet.created",
|
|
62441
62500
|
WalletUpdated: "wallet.updated",
|
|
62442
62501
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62443
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62502
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62503
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62444
62504
|
};
|
|
62445
62505
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62446
62506
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63210,7 +63270,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63210
63270
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63211
63271
|
var init_fullissuedcard = __esm(() => {
|
|
63212
63272
|
init_esm();
|
|
63213
|
-
|
|
63273
|
+
init_address();
|
|
63214
63274
|
init_cardbrand();
|
|
63215
63275
|
init_cardexpiration();
|
|
63216
63276
|
init_issuedcardformfactor();
|
|
@@ -63221,13 +63281,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63221
63281
|
brand: CardBrand$inboundSchema,
|
|
63222
63282
|
lastFourCardNumber: stringType(),
|
|
63223
63283
|
expiration: CardExpiration$inboundSchema,
|
|
63224
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63225
|
-
memo: stringType().optional(),
|
|
63226
63284
|
fundingWalletID: stringType(),
|
|
63285
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63286
|
+
nickname: stringType().optional(),
|
|
63287
|
+
metadata: recordType(stringType()).optional(),
|
|
63288
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63227
63289
|
state: IssuedCardState$inboundSchema,
|
|
63228
63290
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63229
63291
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63230
63292
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63293
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63231
63294
|
pan: stringType(),
|
|
63232
63295
|
cvv: stringType()
|
|
63233
63296
|
});
|
|
@@ -63236,13 +63299,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63236
63299
|
brand: CardBrand$outboundSchema,
|
|
63237
63300
|
lastFourCardNumber: stringType(),
|
|
63238
63301
|
expiration: CardExpiration$outboundSchema,
|
|
63239
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63240
|
-
memo: stringType().optional(),
|
|
63241
63302
|
fundingWalletID: stringType(),
|
|
63303
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63304
|
+
nickname: stringType().optional(),
|
|
63305
|
+
metadata: recordType(stringType()).optional(),
|
|
63306
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63242
63307
|
state: IssuedCardState$outboundSchema,
|
|
63243
63308
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63244
63309
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63245
63310
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63311
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63246
63312
|
pan: stringType(),
|
|
63247
63313
|
cvv: stringType()
|
|
63248
63314
|
});
|
|
@@ -63568,7 +63634,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
63568
63634
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
63569
63635
|
var init_issuedcard = __esm(() => {
|
|
63570
63636
|
init_esm();
|
|
63571
|
-
|
|
63637
|
+
init_address();
|
|
63572
63638
|
init_cardbrand();
|
|
63573
63639
|
init_cardexpiration();
|
|
63574
63640
|
init_issuedcardformfactor();
|
|
@@ -63579,26 +63645,32 @@ var init_issuedcard = __esm(() => {
|
|
|
63579
63645
|
brand: CardBrand$inboundSchema,
|
|
63580
63646
|
lastFourCardNumber: stringType(),
|
|
63581
63647
|
expiration: CardExpiration$inboundSchema,
|
|
63582
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63583
|
-
memo: stringType().optional(),
|
|
63584
63648
|
fundingWalletID: stringType(),
|
|
63649
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63650
|
+
nickname: stringType().optional(),
|
|
63651
|
+
metadata: recordType(stringType()).optional(),
|
|
63652
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63585
63653
|
state: IssuedCardState$inboundSchema,
|
|
63586
63654
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63587
63655
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63588
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63656
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63657
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63589
63658
|
});
|
|
63590
63659
|
IssuedCard$outboundSchema = objectType({
|
|
63591
63660
|
issuedCardID: stringType(),
|
|
63592
63661
|
brand: CardBrand$outboundSchema,
|
|
63593
63662
|
lastFourCardNumber: stringType(),
|
|
63594
63663
|
expiration: CardExpiration$outboundSchema,
|
|
63595
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63596
|
-
memo: stringType().optional(),
|
|
63597
63664
|
fundingWalletID: stringType(),
|
|
63665
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63666
|
+
nickname: stringType().optional(),
|
|
63667
|
+
metadata: recordType(stringType()).optional(),
|
|
63668
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63598
63669
|
state: IssuedCardState$outboundSchema,
|
|
63599
63670
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63600
63671
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63601
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
63672
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63673
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
63602
63674
|
});
|
|
63603
63675
|
});
|
|
63604
63676
|
|
|
@@ -65538,23 +65610,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
65538
65610
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
65539
65611
|
var init_requestcard = __esm(() => {
|
|
65540
65612
|
init_esm();
|
|
65613
|
+
init_address();
|
|
65541
65614
|
init_cardexpiration();
|
|
65542
|
-
init_createauthorizeduser();
|
|
65543
|
-
init_issuedcardformfactor();
|
|
65544
65615
|
init_issuingcontrols();
|
|
65545
65616
|
RequestCard$inboundSchema = objectType({
|
|
65546
|
-
|
|
65547
|
-
|
|
65548
|
-
|
|
65549
|
-
|
|
65617
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65618
|
+
nickname: stringType().optional(),
|
|
65619
|
+
metadata: recordType(stringType()).optional(),
|
|
65620
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
65550
65621
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
65551
65622
|
controls: IssuingControls$inboundSchema.optional()
|
|
65552
65623
|
});
|
|
65553
65624
|
RequestCard$outboundSchema = objectType({
|
|
65554
|
-
|
|
65555
|
-
|
|
65556
|
-
|
|
65557
|
-
|
|
65625
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65626
|
+
nickname: stringType().optional(),
|
|
65627
|
+
metadata: recordType(stringType()).optional(),
|
|
65628
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
65558
65629
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
65559
65630
|
controls: IssuingControls$outboundSchema.optional()
|
|
65560
65631
|
});
|
|
@@ -66432,20 +66503,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
66432
66503
|
});
|
|
66433
66504
|
|
|
66434
66505
|
// src/models/components/updateissuedcard.ts
|
|
66435
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66506
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66436
66507
|
var init_updateissuedcard = __esm(() => {
|
|
66437
66508
|
init_esm();
|
|
66438
|
-
init_createauthorizeduserupdate();
|
|
66439
66509
|
init_updateissuedcardstate();
|
|
66510
|
+
BillingAddress$inboundSchema = objectType({
|
|
66511
|
+
addressLine1: stringType().optional(),
|
|
66512
|
+
addressLine2: stringType().optional(),
|
|
66513
|
+
city: stringType().optional(),
|
|
66514
|
+
stateOrProvince: stringType().optional(),
|
|
66515
|
+
postalCode: stringType().optional(),
|
|
66516
|
+
country: stringType().optional()
|
|
66517
|
+
});
|
|
66518
|
+
BillingAddress$outboundSchema = objectType({
|
|
66519
|
+
addressLine1: stringType().optional(),
|
|
66520
|
+
addressLine2: stringType().optional(),
|
|
66521
|
+
city: stringType().optional(),
|
|
66522
|
+
stateOrProvince: stringType().optional(),
|
|
66523
|
+
postalCode: stringType().optional(),
|
|
66524
|
+
country: stringType().optional()
|
|
66525
|
+
});
|
|
66440
66526
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
66441
66527
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
66442
|
-
|
|
66443
|
-
|
|
66528
|
+
nickname: nullableType(stringType()).optional(),
|
|
66529
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66530
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
66444
66531
|
});
|
|
66445
66532
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
66446
66533
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
66447
|
-
|
|
66448
|
-
|
|
66534
|
+
nickname: nullableType(stringType()).optional(),
|
|
66535
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66536
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
66449
66537
|
});
|
|
66450
66538
|
});
|
|
66451
66539
|
|
|
@@ -66843,6 +66931,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
66843
66931
|
});
|
|
66844
66932
|
});
|
|
66845
66933
|
|
|
66934
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
66935
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
66936
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
66937
|
+
init_esm();
|
|
66938
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
66939
|
+
merchantAccountID: stringType(),
|
|
66940
|
+
partnerAccountID: stringType(),
|
|
66941
|
+
authorizationID: stringType(),
|
|
66942
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
66943
|
+
});
|
|
66944
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
66945
|
+
merchantAccountID: stringType(),
|
|
66946
|
+
partnerAccountID: stringType(),
|
|
66947
|
+
authorizationID: stringType(),
|
|
66948
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
66949
|
+
});
|
|
66950
|
+
});
|
|
66951
|
+
|
|
66846
66952
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
66847
66953
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
66848
66954
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -67217,10 +67323,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
67217
67323
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
67218
67324
|
init_esm();
|
|
67219
67325
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
67326
|
+
accountID: stringType(),
|
|
67220
67327
|
walletID: stringType(),
|
|
67221
67328
|
sweepID: stringType()
|
|
67222
67329
|
});
|
|
67223
67330
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
67331
|
+
accountID: stringType(),
|
|
67224
67332
|
walletID: stringType(),
|
|
67225
67333
|
sweepID: stringType()
|
|
67226
67334
|
});
|
|
@@ -67232,12 +67340,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
67232
67340
|
init_esm();
|
|
67233
67341
|
init_sweepstatus();
|
|
67234
67342
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
67343
|
+
accountID: stringType(),
|
|
67235
67344
|
walletID: stringType(),
|
|
67236
67345
|
sweepID: stringType(),
|
|
67237
67346
|
transferID: stringType().optional(),
|
|
67238
67347
|
status: SweepStatus$inboundSchema
|
|
67239
67348
|
});
|
|
67240
67349
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
67350
|
+
accountID: stringType(),
|
|
67241
67351
|
walletID: stringType(),
|
|
67242
67352
|
sweepID: stringType(),
|
|
67243
67353
|
transferID: stringType().optional(),
|
|
@@ -67478,6 +67588,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67478
67588
|
init_webhookdataaccountcreated();
|
|
67479
67589
|
init_webhookdataaccountdisconnected();
|
|
67480
67590
|
init_webhookdataaccountupdated();
|
|
67591
|
+
init_webhookdataauthorizationexpiring();
|
|
67481
67592
|
init_webhookdatabalanceupdated();
|
|
67482
67593
|
init_webhookdatabankaccountcreated();
|
|
67483
67594
|
init_webhookdatabankaccountdeleted();
|
|
@@ -67517,7 +67628,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67517
67628
|
WebhookDataTransferUpdated$inboundSchema,
|
|
67518
67629
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
67519
67630
|
WebhookDataRefundUpdated$inboundSchema,
|
|
67631
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
67520
67632
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
67633
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
67521
67634
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
67522
67635
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
67523
67636
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -67528,7 +67641,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67528
67641
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
67529
67642
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
67530
67643
|
WebhookDataRefundCreated$inboundSchema,
|
|
67531
|
-
|
|
67644
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
67532
67645
|
WebhookDataTicketUpdated$inboundSchema,
|
|
67533
67646
|
WebhookDataTransferCreated$inboundSchema,
|
|
67534
67647
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -67538,7 +67651,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67538
67651
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
67539
67652
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
67540
67653
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
67541
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
67542
67654
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
67543
67655
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
67544
67656
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -67556,7 +67668,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67556
67668
|
WebhookDataTransferUpdated$outboundSchema,
|
|
67557
67669
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
67558
67670
|
WebhookDataRefundUpdated$outboundSchema,
|
|
67671
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
67559
67672
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
67673
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
67560
67674
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
67561
67675
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
67562
67676
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -67567,7 +67681,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67567
67681
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
67568
67682
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
67569
67683
|
WebhookDataRefundCreated$outboundSchema,
|
|
67570
|
-
|
|
67684
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
67571
67685
|
WebhookDataTicketUpdated$outboundSchema,
|
|
67572
67686
|
WebhookDataTransferCreated$outboundSchema,
|
|
67573
67687
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -67577,7 +67691,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67577
67691
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
67578
67692
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
67579
67693
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
67580
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
67581
67694
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
67582
67695
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
67583
67696
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -67674,7 +67787,6 @@ var init_components = __esm(() => {
|
|
|
67674
67787
|
init_assignproductimagevalidationerror();
|
|
67675
67788
|
init_asynccreatedrefund();
|
|
67676
67789
|
init_asynctransfer();
|
|
67677
|
-
init_authorizeduser();
|
|
67678
67790
|
init_authtoken();
|
|
67679
67791
|
init_authtokenrequest();
|
|
67680
67792
|
init_bankaccount();
|
|
@@ -67752,9 +67864,6 @@ var init_components = __esm(() => {
|
|
|
67752
67864
|
init_createaccount();
|
|
67753
67865
|
init_createaccountsettings();
|
|
67754
67866
|
init_createapplepaysession();
|
|
67755
|
-
init_createauthorizeduser();
|
|
67756
|
-
init_createauthorizedusererror();
|
|
67757
|
-
init_createauthorizeduserupdate();
|
|
67758
67867
|
init_createbusinesserror();
|
|
67759
67868
|
init_createbusinessprofile();
|
|
67760
67869
|
init_createdtransfer();
|
|
@@ -68091,6 +68200,7 @@ var init_components = __esm(() => {
|
|
|
68091
68200
|
init_webhookdataaccountcreated();
|
|
68092
68201
|
init_webhookdataaccountdisconnected();
|
|
68093
68202
|
init_webhookdataaccountupdated();
|
|
68203
|
+
init_webhookdataauthorizationexpiring();
|
|
68094
68204
|
init_webhookdatabalanceupdated();
|
|
68095
68205
|
init_webhookdatabankaccountcreated();
|
|
68096
68206
|
init_webhookdatabankaccountdeleted();
|
|
@@ -69674,10 +69784,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69674
69784
|
init_components();
|
|
69675
69785
|
init_mooverror();
|
|
69676
69786
|
RequestCardError = class RequestCardError extends MoovError {
|
|
69677
|
-
|
|
69678
|
-
|
|
69679
|
-
|
|
69680
|
-
|
|
69787
|
+
authorizedUserAccountID;
|
|
69788
|
+
nickname;
|
|
69789
|
+
metadata;
|
|
69790
|
+
billingAddress;
|
|
69681
69791
|
expiration;
|
|
69682
69792
|
controls;
|
|
69683
69793
|
data$;
|
|
@@ -69685,14 +69795,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
69685
69795
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
69686
69796
|
super(message, httpMeta);
|
|
69687
69797
|
this.data$ = err;
|
|
69688
|
-
if (err.
|
|
69689
|
-
this.
|
|
69690
|
-
|
|
69691
|
-
|
|
69692
|
-
|
|
69693
|
-
|
|
69694
|
-
|
|
69695
|
-
|
|
69798
|
+
if (err.authorizedUserAccountID != null) {
|
|
69799
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
69800
|
+
}
|
|
69801
|
+
if (err.nickname != null)
|
|
69802
|
+
this.nickname = err.nickname;
|
|
69803
|
+
if (err.metadata != null)
|
|
69804
|
+
this.metadata = err.metadata;
|
|
69805
|
+
if (err.billingAddress != null)
|
|
69806
|
+
this.billingAddress = err.billingAddress;
|
|
69696
69807
|
if (err.expiration != null)
|
|
69697
69808
|
this.expiration = err.expiration;
|
|
69698
69809
|
if (err.controls != null)
|
|
@@ -69701,10 +69812,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69701
69812
|
}
|
|
69702
69813
|
};
|
|
69703
69814
|
RequestCardError$inboundSchema = objectType({
|
|
69704
|
-
|
|
69705
|
-
|
|
69706
|
-
|
|
69707
|
-
|
|
69815
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69816
|
+
nickname: stringType().optional(),
|
|
69817
|
+
metadata: stringType().optional(),
|
|
69818
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
69708
69819
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
69709
69820
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
69710
69821
|
request$: instanceOfType(Request),
|
|
@@ -69718,10 +69829,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69718
69829
|
});
|
|
69719
69830
|
});
|
|
69720
69831
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
69721
|
-
|
|
69722
|
-
|
|
69723
|
-
|
|
69724
|
-
|
|
69832
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69833
|
+
nickname: stringType().optional(),
|
|
69834
|
+
metadata: stringType().optional(),
|
|
69835
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
69725
69836
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
69726
69837
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
69727
69838
|
}));
|
|
@@ -70292,8 +70403,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70292
70403
|
init_mooverror();
|
|
70293
70404
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
70294
70405
|
state;
|
|
70295
|
-
|
|
70296
|
-
|
|
70406
|
+
nickname;
|
|
70407
|
+
metadata;
|
|
70408
|
+
billingAddress;
|
|
70297
70409
|
data$;
|
|
70298
70410
|
constructor(err, httpMeta) {
|
|
70299
70411
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -70301,17 +70413,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70301
70413
|
this.data$ = err;
|
|
70302
70414
|
if (err.state != null)
|
|
70303
70415
|
this.state = err.state;
|
|
70304
|
-
if (err.
|
|
70305
|
-
this.
|
|
70306
|
-
if (err.
|
|
70307
|
-
this.
|
|
70416
|
+
if (err.nickname != null)
|
|
70417
|
+
this.nickname = err.nickname;
|
|
70418
|
+
if (err.metadata != null)
|
|
70419
|
+
this.metadata = err.metadata;
|
|
70420
|
+
if (err.billingAddress != null)
|
|
70421
|
+
this.billingAddress = err.billingAddress;
|
|
70308
70422
|
this.name = "UpdateIssuedCardError";
|
|
70309
70423
|
}
|
|
70310
70424
|
};
|
|
70311
70425
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
70312
70426
|
state: stringType().optional(),
|
|
70313
|
-
|
|
70314
|
-
|
|
70427
|
+
nickname: stringType().optional(),
|
|
70428
|
+
metadata: stringType().optional(),
|
|
70429
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70315
70430
|
request$: instanceOfType(Request),
|
|
70316
70431
|
response$: instanceOfType(Response),
|
|
70317
70432
|
body$: stringType()
|
|
@@ -70324,8 +70439,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70324
70439
|
});
|
|
70325
70440
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70326
70441
|
state: stringType().optional(),
|
|
70327
|
-
|
|
70328
|
-
|
|
70442
|
+
nickname: stringType().optional(),
|
|
70443
|
+
metadata: stringType().optional(),
|
|
70444
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
70329
70445
|
}));
|
|
70330
70446
|
});
|
|
70331
70447
|
|
|
@@ -74073,6 +74189,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
74073
74189
|
});
|
|
74074
74190
|
});
|
|
74075
74191
|
|
|
74192
|
+
// src/models/operations/listcancellations.ts
|
|
74193
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
74194
|
+
var init_listcancellations = __esm(() => {
|
|
74195
|
+
init_esm();
|
|
74196
|
+
init_primitives();
|
|
74197
|
+
init_components();
|
|
74198
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
74199
|
+
accountID: stringType(),
|
|
74200
|
+
transferID: stringType()
|
|
74201
|
+
});
|
|
74202
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
74203
|
+
accountID: stringType(),
|
|
74204
|
+
transferID: stringType()
|
|
74205
|
+
});
|
|
74206
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
74207
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
74208
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
74209
|
+
}).transform((v2) => {
|
|
74210
|
+
return remap(v2, {
|
|
74211
|
+
Headers: "headers",
|
|
74212
|
+
Result: "result"
|
|
74213
|
+
});
|
|
74214
|
+
});
|
|
74215
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
74216
|
+
headers: recordType(arrayType(stringType())),
|
|
74217
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
74218
|
+
}).transform((v2) => {
|
|
74219
|
+
return remap(v2, {
|
|
74220
|
+
headers: "Headers",
|
|
74221
|
+
result: "Result"
|
|
74222
|
+
});
|
|
74223
|
+
});
|
|
74224
|
+
});
|
|
74225
|
+
|
|
74076
74226
|
// src/models/operations/listcapabilities.ts
|
|
74077
74227
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
74078
74228
|
var init_listcapabilities = __esm(() => {
|
|
@@ -76851,6 +77001,7 @@ var init_operations = __esm(() => {
|
|
|
76851
77001
|
init_listaccountterminalapplications();
|
|
76852
77002
|
init_listadjustments();
|
|
76853
77003
|
init_listbankaccounts();
|
|
77004
|
+
init_listcancellations();
|
|
76854
77005
|
init_listcapabilities();
|
|
76855
77006
|
init_listcards();
|
|
76856
77007
|
init_listconnectedaccountsforaccount();
|
|
@@ -76931,16 +77082,19 @@ var init_async = __esm(() => {
|
|
|
76931
77082
|
[Symbol.toStringTag] = "APIPromise";
|
|
76932
77083
|
constructor(p) {
|
|
76933
77084
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
76934
|
-
this.#unwrapped = p instanceof Promise ?
|
|
77085
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
77086
|
+
}
|
|
77087
|
+
#getUnwrapped() {
|
|
77088
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
76935
77089
|
}
|
|
76936
77090
|
then(onfulfilled, onrejected) {
|
|
76937
77091
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
76938
77092
|
}
|
|
76939
77093
|
catch(onrejected) {
|
|
76940
|
-
return this.#
|
|
77094
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
76941
77095
|
}
|
|
76942
77096
|
finally(onfinally) {
|
|
76943
|
-
return this.#
|
|
77097
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
76944
77098
|
}
|
|
76945
77099
|
$inspect() {
|
|
76946
77100
|
return this.#promise;
|
|
@@ -77263,21 +77417,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
77263
77417
|
};
|
|
77264
77418
|
tool$accountsCreate = {
|
|
77265
77419
|
name: "accounts-create",
|
|
77266
|
-
description: `You can create
|
|
77267
|
-
|
|
77420
|
+
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/).
|
|
77421
|
+
|
|
77422
|
+
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:
|
|
77423
|
+
+ 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.
|
|
77424
|
+
+ 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.
|
|
77268
77425
|
|
|
77269
|
-
If you're
|
|
77270
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
77271
|
-
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.
|
|
77272
|
-
If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
|
|
77426
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
77273
77427
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
77274
77428
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
77275
77429
|
|
|
77276
|
-
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/).
|
|
77277
|
-
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.
|
|
77430
|
+
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.
|
|
77278
77431
|
|
|
77279
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77280
|
-
to specify the \`/accounts.write\` scope.`,
|
|
77432
|
+
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.`,
|
|
77281
77433
|
args: args3,
|
|
77282
77434
|
tool: async (client, args4, ctx) => {
|
|
77283
77435
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -81316,7 +81468,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
81316
81468
|
};
|
|
81317
81469
|
tool$capabilitiesDisable = {
|
|
81318
81470
|
name: "capabilities-disable",
|
|
81319
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
81471
|
+
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.
|
|
81320
81472
|
|
|
81321
81473
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81322
81474
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81430,7 +81582,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
81430
81582
|
};
|
|
81431
81583
|
tool$capabilitiesGet = {
|
|
81432
81584
|
name: "capabilities-get",
|
|
81433
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
81585
|
+
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.
|
|
81434
81586
|
|
|
81435
81587
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81436
81588
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81543,7 +81695,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
81543
81695
|
name: "capabilities-list",
|
|
81544
81696
|
description: `Retrieve all the capabilities an account has requested.
|
|
81545
81697
|
|
|
81546
|
-
Read our [capabilities
|
|
81698
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81547
81699
|
|
|
81548
81700
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81549
81701
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81656,7 +81808,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
81656
81808
|
};
|
|
81657
81809
|
tool$capabilitiesRequest = {
|
|
81658
81810
|
name: "capabilities-request",
|
|
81659
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
81811
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81660
81812
|
|
|
81661
81813
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81662
81814
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81696,7 +81848,7 @@ async function $do42(client, request, options) {
|
|
|
81696
81848
|
charEncoding: "percent"
|
|
81697
81849
|
})
|
|
81698
81850
|
};
|
|
81699
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81851
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
81700
81852
|
const headers = new Headers(compactMap({
|
|
81701
81853
|
Accept: "application/json"
|
|
81702
81854
|
}));
|
|
@@ -81811,7 +81963,7 @@ async function $do43(client, request, options) {
|
|
|
81811
81963
|
charEncoding: "percent"
|
|
81812
81964
|
})
|
|
81813
81965
|
};
|
|
81814
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81966
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
81815
81967
|
const headers = new Headers(compactMap({
|
|
81816
81968
|
Accept: "application/json"
|
|
81817
81969
|
}));
|
|
@@ -81924,7 +82076,7 @@ async function $do44(client, request, options) {
|
|
|
81924
82076
|
charEncoding: "percent"
|
|
81925
82077
|
})
|
|
81926
82078
|
};
|
|
81927
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82079
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81928
82080
|
const query = encodeFormQuery({
|
|
81929
82081
|
count: payload.count,
|
|
81930
82082
|
skip: payload.skip,
|
|
@@ -82041,7 +82193,7 @@ async function $do45(client, request, options) {
|
|
|
82041
82193
|
charEncoding: "percent"
|
|
82042
82194
|
})
|
|
82043
82195
|
};
|
|
82044
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82196
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
82045
82197
|
const headers = new Headers(compactMap({
|
|
82046
82198
|
"Content-Type": "application/json",
|
|
82047
82199
|
Accept: "application/json"
|
|
@@ -82158,7 +82310,7 @@ async function $do46(client, request, options) {
|
|
|
82158
82310
|
charEncoding: "percent"
|
|
82159
82311
|
})
|
|
82160
82312
|
};
|
|
82161
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82313
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
82162
82314
|
const headers = new Headers(compactMap({
|
|
82163
82315
|
"Content-Type": "application/json",
|
|
82164
82316
|
Accept: "application/json"
|
|
@@ -94182,11 +94334,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94182
94334
|
};
|
|
94183
94335
|
});
|
|
94184
94336
|
|
|
94185
|
-
// src/funcs/
|
|
94186
|
-
function
|
|
94337
|
+
// src/funcs/transfersListCancellations.ts
|
|
94338
|
+
function transfersListCancellations(client, request, options) {
|
|
94187
94339
|
return new APIPromise($do149(client, request, options));
|
|
94188
94340
|
}
|
|
94189
94341
|
async function $do149(client, request, options) {
|
|
94342
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94343
|
+
if (!parsed.ok) {
|
|
94344
|
+
return [parsed, { status: "invalid" }];
|
|
94345
|
+
}
|
|
94346
|
+
const payload = parsed.value;
|
|
94347
|
+
const body = null;
|
|
94348
|
+
const pathParams = {
|
|
94349
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
94350
|
+
explode: false,
|
|
94351
|
+
charEncoding: "percent"
|
|
94352
|
+
}),
|
|
94353
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
94354
|
+
explode: false,
|
|
94355
|
+
charEncoding: "percent"
|
|
94356
|
+
})
|
|
94357
|
+
};
|
|
94358
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
94359
|
+
const headers = new Headers(compactMap({
|
|
94360
|
+
Accept: "application/json"
|
|
94361
|
+
}));
|
|
94362
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
94363
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
94364
|
+
const context = {
|
|
94365
|
+
options: client._options,
|
|
94366
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
94367
|
+
operationID: "listCancellations",
|
|
94368
|
+
oAuth2Scopes: null,
|
|
94369
|
+
resolvedSecurity: requestSecurity,
|
|
94370
|
+
securitySource: client._options.security,
|
|
94371
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
94372
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
94373
|
+
};
|
|
94374
|
+
const requestRes = client._createRequest(context, {
|
|
94375
|
+
security: requestSecurity,
|
|
94376
|
+
method: "GET",
|
|
94377
|
+
baseURL: options?.serverURL,
|
|
94378
|
+
path,
|
|
94379
|
+
headers,
|
|
94380
|
+
body,
|
|
94381
|
+
userAgent: client._options.userAgent,
|
|
94382
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
94383
|
+
}, options);
|
|
94384
|
+
if (!requestRes.ok) {
|
|
94385
|
+
return [requestRes, { status: "invalid" }];
|
|
94386
|
+
}
|
|
94387
|
+
const req = requestRes.value;
|
|
94388
|
+
const doResult = await client._do(req, {
|
|
94389
|
+
context,
|
|
94390
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
94391
|
+
retryConfig: context.retryConfig,
|
|
94392
|
+
retryCodes: context.retryCodes
|
|
94393
|
+
});
|
|
94394
|
+
if (!doResult.ok) {
|
|
94395
|
+
return [doResult, { status: "request-error", request: req }];
|
|
94396
|
+
}
|
|
94397
|
+
const response = doResult.value;
|
|
94398
|
+
const responseFields = {
|
|
94399
|
+
HttpMeta: { Response: response, Request: req }
|
|
94400
|
+
};
|
|
94401
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
94402
|
+
hdrs: true,
|
|
94403
|
+
key: "Result"
|
|
94404
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
94405
|
+
if (!result.ok) {
|
|
94406
|
+
return [result, { status: "complete", request: req, response }];
|
|
94407
|
+
}
|
|
94408
|
+
return [result, { status: "complete", request: req, response }];
|
|
94409
|
+
}
|
|
94410
|
+
var init_transfersListCancellations = __esm(() => {
|
|
94411
|
+
init_encodings();
|
|
94412
|
+
init_http();
|
|
94413
|
+
init_matchers();
|
|
94414
|
+
init_primitives();
|
|
94415
|
+
init_schemas4();
|
|
94416
|
+
init_security();
|
|
94417
|
+
init_url();
|
|
94418
|
+
init_operations();
|
|
94419
|
+
init_async();
|
|
94420
|
+
});
|
|
94421
|
+
|
|
94422
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
94423
|
+
var args144, tool$transfersListCancellations;
|
|
94424
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
94425
|
+
init_transfersListCancellations();
|
|
94426
|
+
init_operations();
|
|
94427
|
+
init_tools();
|
|
94428
|
+
args144 = {
|
|
94429
|
+
request: ListCancellationsRequest$inboundSchema
|
|
94430
|
+
};
|
|
94431
|
+
tool$transfersListCancellations = {
|
|
94432
|
+
name: "transfers-list-cancellations",
|
|
94433
|
+
description: ` Get a list of cancellations for a transfer.
|
|
94434
|
+
|
|
94435
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
94436
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94437
|
+
args: args144,
|
|
94438
|
+
tool: async (client, args145, ctx) => {
|
|
94439
|
+
const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94440
|
+
if (!result.ok) {
|
|
94441
|
+
return {
|
|
94442
|
+
content: [{ type: "text", text: result.error.message }],
|
|
94443
|
+
isError: true
|
|
94444
|
+
};
|
|
94445
|
+
}
|
|
94446
|
+
const value = result.value.result;
|
|
94447
|
+
return formatResult(value, apiCall);
|
|
94448
|
+
}
|
|
94449
|
+
};
|
|
94450
|
+
});
|
|
94451
|
+
|
|
94452
|
+
// src/funcs/transfersListRefunds.ts
|
|
94453
|
+
function transfersListRefunds(client, request, options) {
|
|
94454
|
+
return new APIPromise($do150(client, request, options));
|
|
94455
|
+
}
|
|
94456
|
+
async function $do150(client, request, options) {
|
|
94190
94457
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94191
94458
|
if (!parsed.ok) {
|
|
94192
94459
|
return [parsed, { status: "invalid" }];
|
|
@@ -94268,12 +94535,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
94268
94535
|
});
|
|
94269
94536
|
|
|
94270
94537
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
94271
|
-
var
|
|
94538
|
+
var args145, tool$transfersListRefunds;
|
|
94272
94539
|
var init_transfersListRefunds2 = __esm(() => {
|
|
94273
94540
|
init_transfersListRefunds();
|
|
94274
94541
|
init_operations();
|
|
94275
94542
|
init_tools();
|
|
94276
|
-
|
|
94543
|
+
args145 = {
|
|
94277
94544
|
request: ListRefundsRequest$inboundSchema
|
|
94278
94545
|
};
|
|
94279
94546
|
tool$transfersListRefunds = {
|
|
@@ -94282,9 +94549,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
94282
94549
|
|
|
94283
94550
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94284
94551
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94285
|
-
args:
|
|
94286
|
-
tool: async (client,
|
|
94287
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
94552
|
+
args: args145,
|
|
94553
|
+
tool: async (client, args146, ctx) => {
|
|
94554
|
+
const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94288
94555
|
if (!result.ok) {
|
|
94289
94556
|
return {
|
|
94290
94557
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94299,9 +94566,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94299
94566
|
|
|
94300
94567
|
// src/funcs/transfersUpdate.ts
|
|
94301
94568
|
function transfersUpdate(client, request, options) {
|
|
94302
|
-
return new APIPromise($
|
|
94569
|
+
return new APIPromise($do151(client, request, options));
|
|
94303
94570
|
}
|
|
94304
|
-
async function $
|
|
94571
|
+
async function $do151(client, request, options) {
|
|
94305
94572
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94306
94573
|
if (!parsed.ok) {
|
|
94307
94574
|
return [parsed, { status: "invalid" }];
|
|
@@ -94387,12 +94654,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
94387
94654
|
});
|
|
94388
94655
|
|
|
94389
94656
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
94390
|
-
var
|
|
94657
|
+
var args146, tool$transfersUpdate;
|
|
94391
94658
|
var init_transfersUpdate2 = __esm(() => {
|
|
94392
94659
|
init_transfersUpdate();
|
|
94393
94660
|
init_operations();
|
|
94394
94661
|
init_tools();
|
|
94395
|
-
|
|
94662
|
+
args146 = {
|
|
94396
94663
|
request: UpdateTransferRequest$inboundSchema
|
|
94397
94664
|
};
|
|
94398
94665
|
tool$transfersUpdate = {
|
|
@@ -94403,9 +94670,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
94403
94670
|
|
|
94404
94671
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94405
94672
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
94406
|
-
args:
|
|
94407
|
-
tool: async (client,
|
|
94408
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
94673
|
+
args: args146,
|
|
94674
|
+
tool: async (client, args147, ctx) => {
|
|
94675
|
+
const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94409
94676
|
if (!result.ok) {
|
|
94410
94677
|
return {
|
|
94411
94678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94420,9 +94687,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
94420
94687
|
|
|
94421
94688
|
// src/funcs/underwritingGet.ts
|
|
94422
94689
|
function underwritingGet(client, request, options) {
|
|
94423
|
-
return new APIPromise($
|
|
94690
|
+
return new APIPromise($do152(client, request, options));
|
|
94424
94691
|
}
|
|
94425
|
-
async function $
|
|
94692
|
+
async function $do152(client, request, options) {
|
|
94426
94693
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94427
94694
|
if (!parsed.ok) {
|
|
94428
94695
|
return [parsed, { status: "invalid" }];
|
|
@@ -94500,12 +94767,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
94500
94767
|
});
|
|
94501
94768
|
|
|
94502
94769
|
// src/mcp-server/tools/underwritingGet.ts
|
|
94503
|
-
var
|
|
94770
|
+
var args147, tool$underwritingGet;
|
|
94504
94771
|
var init_underwritingGet2 = __esm(() => {
|
|
94505
94772
|
init_underwritingGet();
|
|
94506
94773
|
init_operations();
|
|
94507
94774
|
init_tools();
|
|
94508
|
-
|
|
94775
|
+
args147 = {
|
|
94509
94776
|
request: GetUnderwritingRequest$inboundSchema
|
|
94510
94777
|
};
|
|
94511
94778
|
tool$underwritingGet = {
|
|
@@ -94516,9 +94783,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94516
94783
|
|
|
94517
94784
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94518
94785
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
94519
|
-
args:
|
|
94520
|
-
tool: async (client,
|
|
94521
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
94786
|
+
args: args147,
|
|
94787
|
+
tool: async (client, args148, ctx) => {
|
|
94788
|
+
const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94522
94789
|
if (!result.ok) {
|
|
94523
94790
|
return {
|
|
94524
94791
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94533,9 +94800,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
94533
94800
|
|
|
94534
94801
|
// src/funcs/underwritingUpsert.ts
|
|
94535
94802
|
function underwritingUpsert(client, request, options) {
|
|
94536
|
-
return new APIPromise($
|
|
94803
|
+
return new APIPromise($do153(client, request, options));
|
|
94537
94804
|
}
|
|
94538
|
-
async function $
|
|
94805
|
+
async function $do153(client, request, options) {
|
|
94539
94806
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94540
94807
|
if (!parsed.ok) {
|
|
94541
94808
|
return [parsed, { status: "invalid" }];
|
|
@@ -94619,12 +94886,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
94619
94886
|
});
|
|
94620
94887
|
|
|
94621
94888
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
94622
|
-
var
|
|
94889
|
+
var args148, tool$underwritingUpsert;
|
|
94623
94890
|
var init_underwritingUpsert2 = __esm(() => {
|
|
94624
94891
|
init_underwritingUpsert();
|
|
94625
94892
|
init_operations();
|
|
94626
94893
|
init_tools();
|
|
94627
|
-
|
|
94894
|
+
args148 = {
|
|
94628
94895
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
94629
94896
|
};
|
|
94630
94897
|
tool$underwritingUpsert = {
|
|
@@ -94635,9 +94902,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94635
94902
|
|
|
94636
94903
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94637
94904
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
94638
|
-
args:
|
|
94639
|
-
tool: async (client,
|
|
94640
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
94905
|
+
args: args148,
|
|
94906
|
+
tool: async (client, args149, ctx) => {
|
|
94907
|
+
const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94641
94908
|
if (!result.ok) {
|
|
94642
94909
|
return {
|
|
94643
94910
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94652,9 +94919,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
94652
94919
|
|
|
94653
94920
|
// src/funcs/walletsCreate.ts
|
|
94654
94921
|
function walletsCreate(client, request, options) {
|
|
94655
|
-
return new APIPromise($
|
|
94922
|
+
return new APIPromise($do154(client, request, options));
|
|
94656
94923
|
}
|
|
94657
|
-
async function $
|
|
94924
|
+
async function $do154(client, request, options) {
|
|
94658
94925
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94659
94926
|
if (!parsed.ok) {
|
|
94660
94927
|
return [parsed, { status: "invalid" }];
|
|
@@ -94736,12 +95003,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
94736
95003
|
});
|
|
94737
95004
|
|
|
94738
95005
|
// src/mcp-server/tools/walletsCreate.ts
|
|
94739
|
-
var
|
|
95006
|
+
var args149, tool$walletsCreate;
|
|
94740
95007
|
var init_walletsCreate2 = __esm(() => {
|
|
94741
95008
|
init_walletsCreate();
|
|
94742
95009
|
init_operations();
|
|
94743
95010
|
init_tools();
|
|
94744
|
-
|
|
95011
|
+
args149 = {
|
|
94745
95012
|
request: CreateWalletRequest$inboundSchema
|
|
94746
95013
|
};
|
|
94747
95014
|
tool$walletsCreate = {
|
|
@@ -94752,9 +95019,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94752
95019
|
|
|
94753
95020
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94754
95021
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
94755
|
-
args:
|
|
94756
|
-
tool: async (client,
|
|
94757
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
95022
|
+
args: args149,
|
|
95023
|
+
tool: async (client, args150, ctx) => {
|
|
95024
|
+
const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94758
95025
|
if (!result.ok) {
|
|
94759
95026
|
return {
|
|
94760
95027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94769,9 +95036,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
94769
95036
|
|
|
94770
95037
|
// src/funcs/walletsGet.ts
|
|
94771
95038
|
function walletsGet(client, request, options) {
|
|
94772
|
-
return new APIPromise($
|
|
95039
|
+
return new APIPromise($do155(client, request, options));
|
|
94773
95040
|
}
|
|
94774
|
-
async function $
|
|
95041
|
+
async function $do155(client, request, options) {
|
|
94775
95042
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94776
95043
|
if (!parsed.ok) {
|
|
94777
95044
|
return [parsed, { status: "invalid" }];
|
|
@@ -94853,12 +95120,12 @@ var init_walletsGet = __esm(() => {
|
|
|
94853
95120
|
});
|
|
94854
95121
|
|
|
94855
95122
|
// src/mcp-server/tools/walletsGet.ts
|
|
94856
|
-
var
|
|
95123
|
+
var args150, tool$walletsGet;
|
|
94857
95124
|
var init_walletsGet2 = __esm(() => {
|
|
94858
95125
|
init_walletsGet();
|
|
94859
95126
|
init_operations();
|
|
94860
95127
|
init_tools();
|
|
94861
|
-
|
|
95128
|
+
args150 = {
|
|
94862
95129
|
request: GetWalletRequest$inboundSchema
|
|
94863
95130
|
};
|
|
94864
95131
|
tool$walletsGet = {
|
|
@@ -94869,9 +95136,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94869
95136
|
|
|
94870
95137
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94871
95138
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94872
|
-
args:
|
|
94873
|
-
tool: async (client,
|
|
94874
|
-
const [result, apiCall] = await walletsGet(client,
|
|
95139
|
+
args: args150,
|
|
95140
|
+
tool: async (client, args151, ctx) => {
|
|
95141
|
+
const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94875
95142
|
if (!result.ok) {
|
|
94876
95143
|
return {
|
|
94877
95144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94886,9 +95153,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94886
95153
|
|
|
94887
95154
|
// src/funcs/walletsList.ts
|
|
94888
95155
|
function walletsList(client, request, options) {
|
|
94889
|
-
return new APIPromise($
|
|
95156
|
+
return new APIPromise($do156(client, request, options));
|
|
94890
95157
|
}
|
|
94891
|
-
async function $
|
|
95158
|
+
async function $do156(client, request, options) {
|
|
94892
95159
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94893
95160
|
if (!parsed.ok) {
|
|
94894
95161
|
return [parsed, { status: "invalid" }];
|
|
@@ -94976,12 +95243,12 @@ var init_walletsList = __esm(() => {
|
|
|
94976
95243
|
});
|
|
94977
95244
|
|
|
94978
95245
|
// src/mcp-server/tools/walletsList.ts
|
|
94979
|
-
var
|
|
95246
|
+
var args151, tool$walletsList;
|
|
94980
95247
|
var init_walletsList2 = __esm(() => {
|
|
94981
95248
|
init_walletsList();
|
|
94982
95249
|
init_operations();
|
|
94983
95250
|
init_tools();
|
|
94984
|
-
|
|
95251
|
+
args151 = {
|
|
94985
95252
|
request: ListWalletsRequest$inboundSchema
|
|
94986
95253
|
};
|
|
94987
95254
|
tool$walletsList = {
|
|
@@ -94992,9 +95259,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94992
95259
|
|
|
94993
95260
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94994
95261
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94995
|
-
args:
|
|
94996
|
-
tool: async (client,
|
|
94997
|
-
const [result, apiCall] = await walletsList(client,
|
|
95262
|
+
args: args151,
|
|
95263
|
+
tool: async (client, args152, ctx) => {
|
|
95264
|
+
const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94998
95265
|
if (!result.ok) {
|
|
94999
95266
|
return {
|
|
95000
95267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95009,9 +95276,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95009
95276
|
|
|
95010
95277
|
// src/funcs/walletsUpdate.ts
|
|
95011
95278
|
function walletsUpdate(client, request, options) {
|
|
95012
|
-
return new APIPromise($
|
|
95279
|
+
return new APIPromise($do157(client, request, options));
|
|
95013
95280
|
}
|
|
95014
|
-
async function $
|
|
95281
|
+
async function $do157(client, request, options) {
|
|
95015
95282
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95016
95283
|
if (!parsed.ok) {
|
|
95017
95284
|
return [parsed, { status: "invalid" }];
|
|
@@ -95097,12 +95364,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
95097
95364
|
});
|
|
95098
95365
|
|
|
95099
95366
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
95100
|
-
var
|
|
95367
|
+
var args152, tool$walletsUpdate;
|
|
95101
95368
|
var init_walletsUpdate2 = __esm(() => {
|
|
95102
95369
|
init_walletsUpdate();
|
|
95103
95370
|
init_operations();
|
|
95104
95371
|
init_tools();
|
|
95105
|
-
|
|
95372
|
+
args152 = {
|
|
95106
95373
|
request: UpdateWalletRequest$inboundSchema
|
|
95107
95374
|
};
|
|
95108
95375
|
tool$walletsUpdate = {
|
|
@@ -95113,9 +95380,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
95113
95380
|
|
|
95114
95381
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95115
95382
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
95116
|
-
args:
|
|
95117
|
-
tool: async (client,
|
|
95118
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
95383
|
+
args: args152,
|
|
95384
|
+
tool: async (client, args153, ctx) => {
|
|
95385
|
+
const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95119
95386
|
if (!result.ok) {
|
|
95120
95387
|
return {
|
|
95121
95388
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95130,9 +95397,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
95130
95397
|
|
|
95131
95398
|
// src/funcs/walletTransactionsGet.ts
|
|
95132
95399
|
function walletTransactionsGet(client, request, options) {
|
|
95133
|
-
return new APIPromise($
|
|
95400
|
+
return new APIPromise($do158(client, request, options));
|
|
95134
95401
|
}
|
|
95135
|
-
async function $
|
|
95402
|
+
async function $do158(client, request, options) {
|
|
95136
95403
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95137
95404
|
if (!parsed.ok) {
|
|
95138
95405
|
return [parsed, { status: "invalid" }];
|
|
@@ -95218,12 +95485,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
95218
95485
|
});
|
|
95219
95486
|
|
|
95220
95487
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
95221
|
-
var
|
|
95488
|
+
var args153, tool$walletTransactionsGet;
|
|
95222
95489
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
95223
95490
|
init_walletTransactionsGet();
|
|
95224
95491
|
init_operations();
|
|
95225
95492
|
init_tools();
|
|
95226
|
-
|
|
95493
|
+
args153 = {
|
|
95227
95494
|
request: GetWalletTransactionRequest$inboundSchema
|
|
95228
95495
|
};
|
|
95229
95496
|
tool$walletTransactionsGet = {
|
|
@@ -95234,9 +95501,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95234
95501
|
|
|
95235
95502
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95236
95503
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95237
|
-
args:
|
|
95238
|
-
tool: async (client,
|
|
95239
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
95504
|
+
args: args153,
|
|
95505
|
+
tool: async (client, args154, ctx) => {
|
|
95506
|
+
const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95240
95507
|
if (!result.ok) {
|
|
95241
95508
|
return {
|
|
95242
95509
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95251,9 +95518,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95251
95518
|
|
|
95252
95519
|
// src/funcs/walletTransactionsList.ts
|
|
95253
95520
|
function walletTransactionsList(client, request, options) {
|
|
95254
|
-
return new APIPromise($
|
|
95521
|
+
return new APIPromise($do159(client, request, options));
|
|
95255
95522
|
}
|
|
95256
|
-
async function $
|
|
95523
|
+
async function $do159(client, request, options) {
|
|
95257
95524
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95258
95525
|
if (!parsed.ok) {
|
|
95259
95526
|
return [parsed, { status: "invalid" }];
|
|
@@ -95353,12 +95620,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
95353
95620
|
});
|
|
95354
95621
|
|
|
95355
95622
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
95356
|
-
var
|
|
95623
|
+
var args154, tool$walletTransactionsList;
|
|
95357
95624
|
var init_walletTransactionsList2 = __esm(() => {
|
|
95358
95625
|
init_walletTransactionsList();
|
|
95359
95626
|
init_operations();
|
|
95360
95627
|
init_tools();
|
|
95361
|
-
|
|
95628
|
+
args154 = {
|
|
95362
95629
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
95363
95630
|
};
|
|
95364
95631
|
tool$walletTransactionsList = {
|
|
@@ -95369,9 +95636,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95369
95636
|
|
|
95370
95637
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95371
95638
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95372
|
-
args:
|
|
95373
|
-
tool: async (client,
|
|
95374
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
95639
|
+
args: args154,
|
|
95640
|
+
tool: async (client, args155, ctx) => {
|
|
95641
|
+
const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95375
95642
|
if (!result.ok) {
|
|
95376
95643
|
return {
|
|
95377
95644
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95386,9 +95653,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95386
95653
|
|
|
95387
95654
|
// src/funcs/webhooksCreate.ts
|
|
95388
95655
|
function webhooksCreate(client, request, options) {
|
|
95389
|
-
return new APIPromise($
|
|
95656
|
+
return new APIPromise($do160(client, request, options));
|
|
95390
95657
|
}
|
|
95391
|
-
async function $
|
|
95658
|
+
async function $do160(client, request, options) {
|
|
95392
95659
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
95393
95660
|
if (!parsed.ok) {
|
|
95394
95661
|
return [parsed, { status: "invalid" }];
|
|
@@ -95465,20 +95732,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
95465
95732
|
});
|
|
95466
95733
|
|
|
95467
95734
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
95468
|
-
var
|
|
95735
|
+
var args155, tool$webhooksCreate;
|
|
95469
95736
|
var init_webhooksCreate2 = __esm(() => {
|
|
95470
95737
|
init_webhooksCreate();
|
|
95471
95738
|
init_components();
|
|
95472
95739
|
init_tools();
|
|
95473
|
-
|
|
95740
|
+
args155 = {
|
|
95474
95741
|
request: CreateWebhook$inboundSchema
|
|
95475
95742
|
};
|
|
95476
95743
|
tool$webhooksCreate = {
|
|
95477
95744
|
name: "webhooks-create",
|
|
95478
95745
|
description: `Create a new webhook for the account.`,
|
|
95479
|
-
args:
|
|
95480
|
-
tool: async (client,
|
|
95481
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
95746
|
+
args: args155,
|
|
95747
|
+
tool: async (client, args156, ctx) => {
|
|
95748
|
+
const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95482
95749
|
if (!result.ok) {
|
|
95483
95750
|
return {
|
|
95484
95751
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95493,9 +95760,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
95493
95760
|
|
|
95494
95761
|
// src/funcs/webhooksDisable.ts
|
|
95495
95762
|
function webhooksDisable(client, request, options) {
|
|
95496
|
-
return new APIPromise($
|
|
95763
|
+
return new APIPromise($do161(client, request, options));
|
|
95497
95764
|
}
|
|
95498
|
-
async function $
|
|
95765
|
+
async function $do161(client, request, options) {
|
|
95499
95766
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95500
95767
|
if (!parsed.ok) {
|
|
95501
95768
|
return [parsed, { status: "invalid" }];
|
|
@@ -95573,20 +95840,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
95573
95840
|
});
|
|
95574
95841
|
|
|
95575
95842
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
95576
|
-
var
|
|
95843
|
+
var args156, tool$webhooksDisable;
|
|
95577
95844
|
var init_webhooksDisable2 = __esm(() => {
|
|
95578
95845
|
init_webhooksDisable();
|
|
95579
95846
|
init_operations();
|
|
95580
95847
|
init_tools();
|
|
95581
|
-
|
|
95848
|
+
args156 = {
|
|
95582
95849
|
request: DisableWebhookRequest$inboundSchema
|
|
95583
95850
|
};
|
|
95584
95851
|
tool$webhooksDisable = {
|
|
95585
95852
|
name: "webhooks-disable",
|
|
95586
95853
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
95587
|
-
args:
|
|
95588
|
-
tool: async (client,
|
|
95589
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
95854
|
+
args: args156,
|
|
95855
|
+
tool: async (client, args157, ctx) => {
|
|
95856
|
+
const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95590
95857
|
if (!result.ok) {
|
|
95591
95858
|
return {
|
|
95592
95859
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95600,9 +95867,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
95600
95867
|
|
|
95601
95868
|
// src/funcs/webhooksGet.ts
|
|
95602
95869
|
function webhooksGet(client, request, options) {
|
|
95603
|
-
return new APIPromise($
|
|
95870
|
+
return new APIPromise($do162(client, request, options));
|
|
95604
95871
|
}
|
|
95605
|
-
async function $
|
|
95872
|
+
async function $do162(client, request, options) {
|
|
95606
95873
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95607
95874
|
if (!parsed.ok) {
|
|
95608
95875
|
return [parsed, { status: "invalid" }];
|
|
@@ -95680,20 +95947,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
95680
95947
|
});
|
|
95681
95948
|
|
|
95682
95949
|
// src/mcp-server/tools/webhooksGet.ts
|
|
95683
|
-
var
|
|
95950
|
+
var args157, tool$webhooksGet;
|
|
95684
95951
|
var init_webhooksGet2 = __esm(() => {
|
|
95685
95952
|
init_webhooksGet();
|
|
95686
95953
|
init_operations();
|
|
95687
95954
|
init_tools();
|
|
95688
|
-
|
|
95955
|
+
args157 = {
|
|
95689
95956
|
request: GetWebhookRequest$inboundSchema
|
|
95690
95957
|
};
|
|
95691
95958
|
tool$webhooksGet = {
|
|
95692
95959
|
name: "webhooks-get",
|
|
95693
95960
|
description: `Get details of a specific webhook.`,
|
|
95694
|
-
args:
|
|
95695
|
-
tool: async (client,
|
|
95696
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
95961
|
+
args: args157,
|
|
95962
|
+
tool: async (client, args158, ctx) => {
|
|
95963
|
+
const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95697
95964
|
if (!result.ok) {
|
|
95698
95965
|
return {
|
|
95699
95966
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95708,9 +95975,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
95708
95975
|
|
|
95709
95976
|
// src/funcs/webhooksGetSecret.ts
|
|
95710
95977
|
function webhooksGetSecret(client, request, options) {
|
|
95711
|
-
return new APIPromise($
|
|
95978
|
+
return new APIPromise($do163(client, request, options));
|
|
95712
95979
|
}
|
|
95713
|
-
async function $
|
|
95980
|
+
async function $do163(client, request, options) {
|
|
95714
95981
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95715
95982
|
if (!parsed.ok) {
|
|
95716
95983
|
return [parsed, { status: "invalid" }];
|
|
@@ -95788,20 +96055,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
95788
96055
|
});
|
|
95789
96056
|
|
|
95790
96057
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
95791
|
-
var
|
|
96058
|
+
var args158, tool$webhooksGetSecret;
|
|
95792
96059
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
95793
96060
|
init_webhooksGetSecret();
|
|
95794
96061
|
init_operations();
|
|
95795
96062
|
init_tools();
|
|
95796
|
-
|
|
96063
|
+
args158 = {
|
|
95797
96064
|
request: GetWebhookSecretRequest$inboundSchema
|
|
95798
96065
|
};
|
|
95799
96066
|
tool$webhooksGetSecret = {
|
|
95800
96067
|
name: "webhooks-get-secret",
|
|
95801
96068
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
95802
|
-
args:
|
|
95803
|
-
tool: async (client,
|
|
95804
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
96069
|
+
args: args158,
|
|
96070
|
+
tool: async (client, args159, ctx) => {
|
|
96071
|
+
const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95805
96072
|
if (!result.ok) {
|
|
95806
96073
|
return {
|
|
95807
96074
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95816,9 +96083,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
95816
96083
|
|
|
95817
96084
|
// src/funcs/webhooksList.ts
|
|
95818
96085
|
function webhooksList(client, options) {
|
|
95819
|
-
return new APIPromise($
|
|
96086
|
+
return new APIPromise($do164(client, options));
|
|
95820
96087
|
}
|
|
95821
|
-
async function $
|
|
96088
|
+
async function $do164(client, options) {
|
|
95822
96089
|
const path = pathToFunc("/webhooks")();
|
|
95823
96090
|
const headers = new Headers(compactMap({
|
|
95824
96091
|
Accept: "application/json"
|
|
@@ -95904,9 +96171,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
95904
96171
|
|
|
95905
96172
|
// src/funcs/webhooksListEventTypes.ts
|
|
95906
96173
|
function webhooksListEventTypes(client, options) {
|
|
95907
|
-
return new APIPromise($
|
|
96174
|
+
return new APIPromise($do165(client, options));
|
|
95908
96175
|
}
|
|
95909
|
-
async function $
|
|
96176
|
+
async function $do165(client, options) {
|
|
95910
96177
|
const path = pathToFunc("/event-types")();
|
|
95911
96178
|
const headers = new Headers(compactMap({
|
|
95912
96179
|
Accept: "application/json"
|
|
@@ -95992,9 +96259,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
95992
96259
|
|
|
95993
96260
|
// src/funcs/webhooksPing.ts
|
|
95994
96261
|
function webhooksPing(client, request, options) {
|
|
95995
|
-
return new APIPromise($
|
|
96262
|
+
return new APIPromise($do166(client, request, options));
|
|
95996
96263
|
}
|
|
95997
|
-
async function $
|
|
96264
|
+
async function $do166(client, request, options) {
|
|
95998
96265
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95999
96266
|
if (!parsed.ok) {
|
|
96000
96267
|
return [parsed, { status: "invalid" }];
|
|
@@ -96072,20 +96339,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
96072
96339
|
});
|
|
96073
96340
|
|
|
96074
96341
|
// src/mcp-server/tools/webhooksPing.ts
|
|
96075
|
-
var
|
|
96342
|
+
var args159, tool$webhooksPing;
|
|
96076
96343
|
var init_webhooksPing2 = __esm(() => {
|
|
96077
96344
|
init_webhooksPing();
|
|
96078
96345
|
init_operations();
|
|
96079
96346
|
init_tools();
|
|
96080
|
-
|
|
96347
|
+
args159 = {
|
|
96081
96348
|
request: PingWebhookRequest$inboundSchema
|
|
96082
96349
|
};
|
|
96083
96350
|
tool$webhooksPing = {
|
|
96084
96351
|
name: "webhooks-ping",
|
|
96085
96352
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
96086
|
-
args:
|
|
96087
|
-
tool: async (client,
|
|
96088
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
96353
|
+
args: args159,
|
|
96354
|
+
tool: async (client, args160, ctx) => {
|
|
96355
|
+
const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96089
96356
|
if (!result.ok) {
|
|
96090
96357
|
return {
|
|
96091
96358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96100,9 +96367,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
96100
96367
|
|
|
96101
96368
|
// src/funcs/webhooksUpdate.ts
|
|
96102
96369
|
function webhooksUpdate(client, request, options) {
|
|
96103
|
-
return new APIPromise($
|
|
96370
|
+
return new APIPromise($do167(client, request, options));
|
|
96104
96371
|
}
|
|
96105
|
-
async function $
|
|
96372
|
+
async function $do167(client, request, options) {
|
|
96106
96373
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96107
96374
|
if (!parsed.ok) {
|
|
96108
96375
|
return [parsed, { status: "invalid" }];
|
|
@@ -96184,20 +96451,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
96184
96451
|
});
|
|
96185
96452
|
|
|
96186
96453
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
96187
|
-
var
|
|
96454
|
+
var args160, tool$webhooksUpdate;
|
|
96188
96455
|
var init_webhooksUpdate2 = __esm(() => {
|
|
96189
96456
|
init_webhooksUpdate();
|
|
96190
96457
|
init_operations();
|
|
96191
96458
|
init_tools();
|
|
96192
|
-
|
|
96459
|
+
args160 = {
|
|
96193
96460
|
request: UpdateWebhookRequest$inboundSchema
|
|
96194
96461
|
};
|
|
96195
96462
|
tool$webhooksUpdate = {
|
|
96196
96463
|
name: "webhooks-update",
|
|
96197
96464
|
description: `Update an existing webhook.`,
|
|
96198
|
-
args:
|
|
96199
|
-
tool: async (client,
|
|
96200
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
96465
|
+
args: args160,
|
|
96466
|
+
tool: async (client, args161, ctx) => {
|
|
96467
|
+
const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96201
96468
|
if (!result.ok) {
|
|
96202
96469
|
return {
|
|
96203
96470
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96214,10 +96481,11 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
96214
96481
|
function createMCPServer(deps) {
|
|
96215
96482
|
const server = new McpServer({
|
|
96216
96483
|
name: "Moov",
|
|
96217
|
-
version: "25.
|
|
96484
|
+
version: "25.6.1"
|
|
96218
96485
|
});
|
|
96219
96486
|
const client = new MoovCore({
|
|
96220
96487
|
security: deps.security,
|
|
96488
|
+
accessToken: deps.accessToken,
|
|
96221
96489
|
serverURL: deps.serverURL,
|
|
96222
96490
|
serverIdx: deps.serverIdx
|
|
96223
96491
|
});
|
|
@@ -96341,6 +96609,7 @@ function createMCPServer(deps) {
|
|
|
96341
96609
|
tool(tool$transfersGet);
|
|
96342
96610
|
tool(tool$transfersUpdate);
|
|
96343
96611
|
tool(tool$transfersCreateCancellation);
|
|
96612
|
+
tool(tool$transfersListCancellations);
|
|
96344
96613
|
tool(tool$transfersGetCancellation);
|
|
96345
96614
|
tool(tool$transfersInitiateRefund);
|
|
96346
96615
|
tool(tool$transfersListRefunds);
|
|
@@ -96549,6 +96818,7 @@ var init_server2 = __esm(() => {
|
|
|
96549
96818
|
init_transfersGetRefund2();
|
|
96550
96819
|
init_transfersInitiateRefund2();
|
|
96551
96820
|
init_transfersList2();
|
|
96821
|
+
init_transfersListCancellations2();
|
|
96552
96822
|
init_transfersListRefunds2();
|
|
96553
96823
|
init_transfersUpdate2();
|
|
96554
96824
|
init_underwritingGet2();
|
|
@@ -96599,6 +96869,7 @@ async function startStdio(flags) {
|
|
|
96599
96869
|
username: flags.username ?? "",
|
|
96600
96870
|
password: flags.password ?? ""
|
|
96601
96871
|
}),
|
|
96872
|
+
accessToken: flags["access-token"],
|
|
96602
96873
|
serverURL: flags["server-url"],
|
|
96603
96874
|
serverIdx: flags["server-index"]
|
|
96604
96875
|
});
|
|
@@ -96620,6 +96891,7 @@ async function startSSE(flags) {
|
|
|
96620
96891
|
username: flags.username ?? "",
|
|
96621
96892
|
password: flags.password ?? ""
|
|
96622
96893
|
}),
|
|
96894
|
+
accessToken: flags["access-token"],
|
|
96623
96895
|
serverURL: flags["server-url"],
|
|
96624
96896
|
serverIdx: flags["server-index"]
|
|
96625
96897
|
});
|
|
@@ -97700,6 +97972,14 @@ var startCommand = tn({
|
|
|
97700
97972
|
return stringType().parse(value);
|
|
97701
97973
|
}
|
|
97702
97974
|
},
|
|
97975
|
+
"access-token": {
|
|
97976
|
+
kind: "parsed",
|
|
97977
|
+
brief: "Allows setting the accessToken parameter for all supported operations",
|
|
97978
|
+
optional: true,
|
|
97979
|
+
parse: (value) => {
|
|
97980
|
+
return stringType().parse(value);
|
|
97981
|
+
}
|
|
97982
|
+
},
|
|
97703
97983
|
"server-url": {
|
|
97704
97984
|
kind: "parsed",
|
|
97705
97985
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -97759,7 +98039,7 @@ var routes = rn({
|
|
|
97759
98039
|
var app = Ve(routes, {
|
|
97760
98040
|
name: "mcp",
|
|
97761
98041
|
versionInfo: {
|
|
97762
|
-
currentVersion: "25.
|
|
98042
|
+
currentVersion: "25.6.1"
|
|
97763
98043
|
}
|
|
97764
98044
|
});
|
|
97765
98045
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -97767,5 +98047,5 @@ export {
|
|
|
97767
98047
|
app
|
|
97768
98048
|
};
|
|
97769
98049
|
|
|
97770
|
-
//# debugId=
|
|
98050
|
+
//# debugId=3EFC1C4F31FA920C64756E2164756E21
|
|
97771
98051
|
//# sourceMappingURL=mcp-server.js.map
|