@moovio/sdk 25.3.0 → 25.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -77
- package/bin/mcp-server.js +549 -315
- package/bin/mcp-server.js.map +64 -65
- 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/bankAccountsLink.d.ts +1 -1
- package/funcs/bankAccountsLink.js +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/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -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/bankAccountsLink.js +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 +15 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +8 -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 +26 -12
- 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 +26 -12
- 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/issuedcardstate.d.ts +2 -8
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +1 -5
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/manualtermsofservice.d.ts +1 -1
- package/models/components/manualtermsofserviceupdate.d.ts +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/patchtransfer.d.ts +3 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js.map +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/termsofservice.d.ts +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/linkbankaccount.d.ts +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/models/operations/listissuedcards.d.ts +1 -1
- 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/bankaccounts.d.ts +1 -1
- package/sdk/bankaccounts.js +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/bankAccountsLink.ts +1 -1
- 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/types.ts +1 -0
- package/src/lib/config.ts +3 -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/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
- 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 +15 -2
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/fullissuedcard.ts +36 -20
- package/src/models/components/index.ts +1 -4
- package/src/models/components/issuedcard.ts +36 -20
- package/src/models/components/issuedcardstate.ts +2 -8
- package/src/models/components/manualtermsofservice.ts +1 -1
- package/src/models/components/manualtermsofserviceupdate.ts +1 -1
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/patchtransfer.ts +3 -0
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/termsofservice.ts +1 -1
- 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/linkbankaccount.ts +1 -1
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/bankaccounts.ts +1 -1
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- 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;
|
|
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
|
|
|
52909
52974
|
SDK_METADATA = {
|
|
52910
52975
|
language: "typescript",
|
|
52911
52976
|
openapiDocVersion: "v2025.01.00",
|
|
52912
|
-
sdkVersion: "25.3.
|
|
52913
|
-
genVersion: "2.
|
|
52914
|
-
userAgent: "speakeasy-sdk/typescript 25.3.
|
|
52977
|
+
sdkVersion: "25.3.2",
|
|
52978
|
+
genVersion: "2.916.2",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 25.3.2 2.916.2 v2025.01.00 @moovio/sdk"
|
|
52915
52980
|
};
|
|
52916
52981
|
});
|
|
52917
52982
|
|
|
@@ -53084,15 +53149,6 @@ var init_base64 = __esm(() => {
|
|
|
53084
53149
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
53085
53150
|
});
|
|
53086
53151
|
|
|
53087
|
-
// src/lib/is-plain-object.ts
|
|
53088
|
-
function isPlainObject3(value) {
|
|
53089
|
-
if (typeof value !== "object" || value === null) {
|
|
53090
|
-
return false;
|
|
53091
|
-
}
|
|
53092
|
-
const prototype = Object.getPrototypeOf(value);
|
|
53093
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
53094
|
-
}
|
|
53095
|
-
|
|
53096
53152
|
// src/lib/encodings.ts
|
|
53097
53153
|
function formEncoder(sep) {
|
|
53098
53154
|
return (key, value, options) => {
|
|
@@ -53113,7 +53169,7 @@ function formEncoder(sep) {
|
|
|
53113
53169
|
return;
|
|
53114
53170
|
} else if (Array.isArray(pv)) {
|
|
53115
53171
|
encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
|
|
53116
|
-
} else if (
|
|
53172
|
+
} else if (isPlainObject2(pv)) {
|
|
53117
53173
|
encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53118
53174
|
return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
|
|
53119
53175
|
})?.join(encodedSep);
|
|
@@ -53136,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
|
|
|
53136
53192
|
if (value == null) {
|
|
53137
53193
|
return;
|
|
53138
53194
|
}
|
|
53139
|
-
if (!
|
|
53195
|
+
if (!isPlainObject2(value)) {
|
|
53140
53196
|
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
53141
53197
|
}
|
|
53142
53198
|
return encodeDeepObjectObject(key, value, options);
|
|
@@ -53149,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53149
53205
|
const encodeString = (v2) => {
|
|
53150
53206
|
return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
|
|
53151
53207
|
};
|
|
53152
|
-
if (!
|
|
53208
|
+
if (!isPlainObject2(value)) {
|
|
53153
53209
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
53154
53210
|
}
|
|
53155
53211
|
Object.entries(value).forEach(([ck, cv]) => {
|
|
@@ -53157,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53157
53213
|
return;
|
|
53158
53214
|
}
|
|
53159
53215
|
const pk = `${key}[${ck}]`;
|
|
53160
|
-
if (
|
|
53216
|
+
if (isPlainObject2(cv)) {
|
|
53161
53217
|
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
53162
53218
|
out += objOut == null ? "" : `&${objOut}`;
|
|
53163
53219
|
return;
|
|
@@ -53183,7 +53239,7 @@ function encodeJSON(key, value, options) {
|
|
|
53183
53239
|
function explode(key, value) {
|
|
53184
53240
|
if (Array.isArray(value)) {
|
|
53185
53241
|
return value.map((v2) => [key, v2]);
|
|
53186
|
-
} else if (
|
|
53242
|
+
} else if (isPlainObject2(value)) {
|
|
53187
53243
|
const o = value ?? {};
|
|
53188
53244
|
return Object.entries(o).map(([k2, v2]) => [k2, v2]);
|
|
53189
53245
|
} else {
|
|
@@ -53308,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53308
53364
|
return;
|
|
53309
53365
|
} else if (Array.isArray(pv)) {
|
|
53310
53366
|
tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
|
|
53311
|
-
} else if (
|
|
53367
|
+
} else if (isPlainObject2(pv)) {
|
|
53312
53368
|
const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53313
53369
|
return `,${encodeString(k2)},${encodeValue(v2)}`;
|
|
53314
53370
|
});
|
|
53315
53371
|
tmp = mapped?.join("").slice(1);
|
|
53316
53372
|
} else {
|
|
53317
|
-
const k2 = options?.explode &&
|
|
53373
|
+
const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
|
|
53318
53374
|
tmp = `${k2}${encodeValue(pv)}`;
|
|
53319
53375
|
}
|
|
53320
53376
|
out += tmp ? `,${tmp}` : "";
|
|
@@ -53323,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53323
53379
|
}, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
53324
53380
|
var init_encodings = __esm(() => {
|
|
53325
53381
|
init_base64();
|
|
53382
|
+
init_primitives();
|
|
53326
53383
|
EncodingError = class EncodingError extends Error {
|
|
53327
53384
|
constructor(message) {
|
|
53328
53385
|
super(message);
|
|
@@ -53588,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
53588
53645
|
}
|
|
53589
53646
|
}
|
|
53590
53647
|
function retryIntervalFromResponse(res) {
|
|
53648
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
53649
|
+
if (retryAfterMsVal) {
|
|
53650
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
53651
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
53652
|
+
return parsedMs;
|
|
53653
|
+
}
|
|
53654
|
+
}
|
|
53591
53655
|
const retryVal = res.headers.get("retry-after") || "";
|
|
53592
53656
|
if (!retryVal) {
|
|
53593
53657
|
return 0;
|
|
@@ -53679,24 +53743,41 @@ class ClientSDK {
|
|
|
53679
53743
|
if (path) {
|
|
53680
53744
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53681
53745
|
reqURL = new URL(path, baseURL);
|
|
53746
|
+
if (!reqURL.search && baseURL.search) {
|
|
53747
|
+
reqURL.search = baseURL.search;
|
|
53748
|
+
}
|
|
53682
53749
|
} else {
|
|
53683
53750
|
reqURL = baseURL;
|
|
53684
53751
|
}
|
|
53685
53752
|
reqURL.hash = "";
|
|
53686
|
-
|
|
53687
|
-
|
|
53688
|
-
|
|
53689
|
-
const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
|
|
53690
|
-
if (typeof q2 !== "undefined") {
|
|
53691
|
-
secQuery.push(q2);
|
|
53753
|
+
const mergeQuery = (current, additions) => {
|
|
53754
|
+
if (!additions) {
|
|
53755
|
+
return current;
|
|
53692
53756
|
}
|
|
53693
|
-
|
|
53694
|
-
|
|
53695
|
-
|
|
53696
|
-
|
|
53757
|
+
const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
|
|
53758
|
+
const kept = current.split("&").filter((pair) => {
|
|
53759
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
53760
|
+
});
|
|
53761
|
+
return [...kept, additions].join("&");
|
|
53762
|
+
};
|
|
53763
|
+
const encodeQueryRecord = (record3) => {
|
|
53764
|
+
return Object.entries(record3).map(([k2, v2]) => {
|
|
53765
|
+
if (v2 == null) {
|
|
53766
|
+
return;
|
|
53767
|
+
}
|
|
53768
|
+
const value = v2;
|
|
53769
|
+
return encodeForm(k2, value, {
|
|
53770
|
+
explode: Array.isArray(value),
|
|
53771
|
+
charEncoding: "percent"
|
|
53772
|
+
});
|
|
53773
|
+
}).filter((pair) => typeof pair !== "undefined").join("&");
|
|
53774
|
+
};
|
|
53775
|
+
const finalQuery = [
|
|
53776
|
+
query || "",
|
|
53777
|
+
encodeQueryRecord(security?.queryParams || {})
|
|
53778
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
53697
53779
|
if (finalQuery) {
|
|
53698
|
-
|
|
53699
|
-
reqURL.search = `?${q2}`;
|
|
53780
|
+
reqURL.search = `?${finalQuery}`;
|
|
53700
53781
|
}
|
|
53701
53782
|
const headers = new Headers(opHeaders);
|
|
53702
53783
|
const username = security?.basic.username;
|
|
@@ -53726,9 +53807,8 @@ class ClientSDK {
|
|
|
53726
53807
|
...options?.fetchOptions,
|
|
53727
53808
|
...options
|
|
53728
53809
|
};
|
|
53729
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
53730
|
-
|
|
53731
|
-
fetchOptions.signal = timeoutSignal;
|
|
53810
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
53811
|
+
context.timeoutMs = conf.timeoutMs;
|
|
53732
53812
|
}
|
|
53733
53813
|
if (conf.body instanceof ReadableStream) {
|
|
53734
53814
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -53753,8 +53833,16 @@ class ClientSDK {
|
|
|
53753
53833
|
}
|
|
53754
53834
|
async _do(request, options) {
|
|
53755
53835
|
const { context, isErrorStatusCode } = options;
|
|
53836
|
+
const timeoutMs = context.timeoutMs;
|
|
53756
53837
|
return retry(async () => {
|
|
53757
|
-
const
|
|
53838
|
+
const cloned = request.clone();
|
|
53839
|
+
let attempt = cloned;
|
|
53840
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
53841
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
53842
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
53843
|
+
attempt = new Request(cloned, { signal: combined });
|
|
53844
|
+
}
|
|
53845
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
53758
53846
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
53759
53847
|
let response = await this.#httpClient.request(req);
|
|
53760
53848
|
try {
|
|
@@ -53872,6 +53960,7 @@ var init_sdks = __esm(() => {
|
|
|
53872
53960
|
init_config();
|
|
53873
53961
|
init_encodings();
|
|
53874
53962
|
init_http();
|
|
53963
|
+
init_primitives();
|
|
53875
53964
|
init_retries();
|
|
53876
53965
|
gt2 = typeof globalThis === "undefined" ? null : globalThis;
|
|
53877
53966
|
webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
|
|
@@ -54321,7 +54410,7 @@ function match(...matchers) {
|
|
|
54321
54410
|
data = {
|
|
54322
54411
|
...options?.extraFields,
|
|
54323
54412
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54324
|
-
...
|
|
54413
|
+
...isPlainObject2(raw) ? raw : null,
|
|
54325
54414
|
request$: request,
|
|
54326
54415
|
response$: response,
|
|
54327
54416
|
body$: body
|
|
@@ -54336,7 +54425,7 @@ function match(...matchers) {
|
|
|
54336
54425
|
data = {
|
|
54337
54426
|
...options?.extraFields,
|
|
54338
54427
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54339
|
-
...
|
|
54428
|
+
...isPlainObject2(raw) ? raw : null
|
|
54340
54429
|
};
|
|
54341
54430
|
} else {
|
|
54342
54431
|
data = raw;
|
|
@@ -54376,6 +54465,7 @@ var init_matchers = __esm(() => {
|
|
|
54376
54465
|
init_apierror();
|
|
54377
54466
|
init_responsevalidationerror();
|
|
54378
54467
|
init_http();
|
|
54468
|
+
init_primitives();
|
|
54379
54469
|
DEFAULT_CONTENT_TYPES = {
|
|
54380
54470
|
jsonl: "application/jsonl",
|
|
54381
54471
|
json: "application/json",
|
|
@@ -55926,6 +56016,7 @@ var init_capabilityid = __esm(() => {
|
|
|
55926
56016
|
CollectFunds: "collect-funds",
|
|
55927
56017
|
Wallet: "wallet",
|
|
55928
56018
|
CardIssuing: "card-issuing",
|
|
56019
|
+
IssuingCardholder: "issuing.cardholder",
|
|
55929
56020
|
ProductionApp: "production-app"
|
|
55930
56021
|
};
|
|
55931
56022
|
CapabilityID$inboundSchema = nativeEnumType(CapabilityID);
|
|
@@ -56343,20 +56434,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56343
56434
|
});
|
|
56344
56435
|
});
|
|
56345
56436
|
|
|
56346
|
-
// src/models/components/authorizeduser.ts
|
|
56347
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56348
|
-
var init_authorizeduser = __esm(() => {
|
|
56349
|
-
init_esm();
|
|
56350
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56351
|
-
firstName: stringType(),
|
|
56352
|
-
lastName: stringType()
|
|
56353
|
-
});
|
|
56354
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56355
|
-
firstName: stringType(),
|
|
56356
|
-
lastName: stringType()
|
|
56357
|
-
});
|
|
56358
|
-
});
|
|
56359
|
-
|
|
56360
56437
|
// src/models/components/tokentype.ts
|
|
56361
56438
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56362
56439
|
var init_tokentype = __esm(() => {
|
|
@@ -60602,57 +60679,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
60602
60679
|
});
|
|
60603
60680
|
});
|
|
60604
60681
|
|
|
60605
|
-
// src/models/components/createauthorizeduser.ts
|
|
60606
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
60607
|
-
var init_createauthorizeduser = __esm(() => {
|
|
60608
|
-
init_esm();
|
|
60609
|
-
init_birthdate();
|
|
60610
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
60611
|
-
firstName: stringType(),
|
|
60612
|
-
lastName: stringType(),
|
|
60613
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
60614
|
-
});
|
|
60615
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
60616
|
-
firstName: stringType(),
|
|
60617
|
-
lastName: stringType(),
|
|
60618
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
60619
|
-
});
|
|
60620
|
-
});
|
|
60621
|
-
|
|
60622
|
-
// src/models/components/createauthorizedusererror.ts
|
|
60623
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
60624
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
60625
|
-
init_esm();
|
|
60626
|
-
init_birthdateerror();
|
|
60627
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
60628
|
-
firstName: stringType().optional(),
|
|
60629
|
-
lastName: stringType().optional(),
|
|
60630
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
60631
|
-
});
|
|
60632
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
60633
|
-
firstName: stringType().optional(),
|
|
60634
|
-
lastName: stringType().optional(),
|
|
60635
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
60636
|
-
});
|
|
60637
|
-
});
|
|
60638
|
-
|
|
60639
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
60640
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
60641
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
60642
|
-
init_esm();
|
|
60643
|
-
init_birthdateupdate();
|
|
60644
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
60645
|
-
firstName: stringType().optional(),
|
|
60646
|
-
lastName: stringType().optional(),
|
|
60647
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
60648
|
-
});
|
|
60649
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
60650
|
-
firstName: stringType().optional(),
|
|
60651
|
-
lastName: stringType().optional(),
|
|
60652
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
60653
|
-
});
|
|
60654
|
-
});
|
|
60655
|
-
|
|
60656
60682
|
// src/models/components/phonenumbererror.ts
|
|
60657
60683
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
60658
60684
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62337,7 +62363,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62337
62363
|
WalletCreated: "wallet.created",
|
|
62338
62364
|
WalletUpdated: "wallet.updated",
|
|
62339
62365
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62340
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62366
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62367
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62341
62368
|
};
|
|
62342
62369
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62343
62370
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63054,8 +63081,6 @@ var init_issuedcardstate = __esm(() => {
|
|
|
63054
63081
|
init_esm();
|
|
63055
63082
|
IssuedCardState = {
|
|
63056
63083
|
Active: "active",
|
|
63057
|
-
Inactive: "inactive",
|
|
63058
|
-
PendingVerification: "pending-verification",
|
|
63059
63084
|
Closed: "closed"
|
|
63060
63085
|
};
|
|
63061
63086
|
IssuedCardState$inboundSchema = nativeEnumType(IssuedCardState);
|
|
@@ -63107,7 +63132,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63107
63132
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63108
63133
|
var init_fullissuedcard = __esm(() => {
|
|
63109
63134
|
init_esm();
|
|
63110
|
-
|
|
63135
|
+
init_address();
|
|
63111
63136
|
init_cardbrand();
|
|
63112
63137
|
init_cardexpiration();
|
|
63113
63138
|
init_issuedcardformfactor();
|
|
@@ -63118,13 +63143,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63118
63143
|
brand: CardBrand$inboundSchema,
|
|
63119
63144
|
lastFourCardNumber: stringType(),
|
|
63120
63145
|
expiration: CardExpiration$inboundSchema,
|
|
63121
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63122
|
-
memo: stringType().optional(),
|
|
63123
63146
|
fundingWalletID: stringType(),
|
|
63147
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63148
|
+
nickname: stringType().optional(),
|
|
63149
|
+
metadata: recordType(stringType()).optional(),
|
|
63150
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63124
63151
|
state: IssuedCardState$inboundSchema,
|
|
63125
63152
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63126
63153
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63127
63154
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63155
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63128
63156
|
pan: stringType(),
|
|
63129
63157
|
cvv: stringType()
|
|
63130
63158
|
});
|
|
@@ -63133,13 +63161,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63133
63161
|
brand: CardBrand$outboundSchema,
|
|
63134
63162
|
lastFourCardNumber: stringType(),
|
|
63135
63163
|
expiration: CardExpiration$outboundSchema,
|
|
63136
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63137
|
-
memo: stringType().optional(),
|
|
63138
63164
|
fundingWalletID: stringType(),
|
|
63165
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63166
|
+
nickname: stringType().optional(),
|
|
63167
|
+
metadata: recordType(stringType()).optional(),
|
|
63168
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63139
63169
|
state: IssuedCardState$outboundSchema,
|
|
63140
63170
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63141
63171
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63142
63172
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63173
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63143
63174
|
pan: stringType(),
|
|
63144
63175
|
cvv: stringType()
|
|
63145
63176
|
});
|
|
@@ -63465,7 +63496,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
63465
63496
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
63466
63497
|
var init_issuedcard = __esm(() => {
|
|
63467
63498
|
init_esm();
|
|
63468
|
-
|
|
63499
|
+
init_address();
|
|
63469
63500
|
init_cardbrand();
|
|
63470
63501
|
init_cardexpiration();
|
|
63471
63502
|
init_issuedcardformfactor();
|
|
@@ -63476,26 +63507,32 @@ var init_issuedcard = __esm(() => {
|
|
|
63476
63507
|
brand: CardBrand$inboundSchema,
|
|
63477
63508
|
lastFourCardNumber: stringType(),
|
|
63478
63509
|
expiration: CardExpiration$inboundSchema,
|
|
63479
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63480
|
-
memo: stringType().optional(),
|
|
63481
63510
|
fundingWalletID: stringType(),
|
|
63511
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63512
|
+
nickname: stringType().optional(),
|
|
63513
|
+
metadata: recordType(stringType()).optional(),
|
|
63514
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63482
63515
|
state: IssuedCardState$inboundSchema,
|
|
63483
63516
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63484
63517
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63485
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63518
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63519
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63486
63520
|
});
|
|
63487
63521
|
IssuedCard$outboundSchema = objectType({
|
|
63488
63522
|
issuedCardID: stringType(),
|
|
63489
63523
|
brand: CardBrand$outboundSchema,
|
|
63490
63524
|
lastFourCardNumber: stringType(),
|
|
63491
63525
|
expiration: CardExpiration$outboundSchema,
|
|
63492
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63493
|
-
memo: stringType().optional(),
|
|
63494
63526
|
fundingWalletID: stringType(),
|
|
63527
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63528
|
+
nickname: stringType().optional(),
|
|
63529
|
+
metadata: recordType(stringType()).optional(),
|
|
63530
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63495
63531
|
state: IssuedCardState$outboundSchema,
|
|
63496
63532
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63497
63533
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63498
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
63534
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63535
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
63499
63536
|
});
|
|
63500
63537
|
});
|
|
63501
63538
|
|
|
@@ -65432,23 +65469,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
65432
65469
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
65433
65470
|
var init_requestcard = __esm(() => {
|
|
65434
65471
|
init_esm();
|
|
65472
|
+
init_address();
|
|
65435
65473
|
init_cardexpiration();
|
|
65436
|
-
init_createauthorizeduser();
|
|
65437
|
-
init_issuedcardformfactor();
|
|
65438
65474
|
init_issuingcontrols();
|
|
65439
65475
|
RequestCard$inboundSchema = objectType({
|
|
65440
|
-
|
|
65441
|
-
|
|
65442
|
-
|
|
65443
|
-
|
|
65476
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65477
|
+
nickname: stringType().optional(),
|
|
65478
|
+
metadata: recordType(stringType()).optional(),
|
|
65479
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
65444
65480
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
65445
65481
|
controls: IssuingControls$inboundSchema.optional()
|
|
65446
65482
|
});
|
|
65447
65483
|
RequestCard$outboundSchema = objectType({
|
|
65448
|
-
|
|
65449
|
-
|
|
65450
|
-
|
|
65451
|
-
|
|
65484
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65485
|
+
nickname: stringType().optional(),
|
|
65486
|
+
metadata: recordType(stringType()).optional(),
|
|
65487
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
65452
65488
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
65453
65489
|
controls: IssuingControls$outboundSchema.optional()
|
|
65454
65490
|
});
|
|
@@ -66323,20 +66359,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
66323
66359
|
});
|
|
66324
66360
|
|
|
66325
66361
|
// src/models/components/updateissuedcard.ts
|
|
66326
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66362
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66327
66363
|
var init_updateissuedcard = __esm(() => {
|
|
66328
66364
|
init_esm();
|
|
66329
|
-
init_createauthorizeduserupdate();
|
|
66330
66365
|
init_updateissuedcardstate();
|
|
66366
|
+
BillingAddress$inboundSchema = objectType({
|
|
66367
|
+
addressLine1: stringType().optional(),
|
|
66368
|
+
addressLine2: stringType().optional(),
|
|
66369
|
+
city: stringType().optional(),
|
|
66370
|
+
stateOrProvince: stringType().optional(),
|
|
66371
|
+
postalCode: stringType().optional(),
|
|
66372
|
+
country: stringType().optional()
|
|
66373
|
+
});
|
|
66374
|
+
BillingAddress$outboundSchema = objectType({
|
|
66375
|
+
addressLine1: stringType().optional(),
|
|
66376
|
+
addressLine2: stringType().optional(),
|
|
66377
|
+
city: stringType().optional(),
|
|
66378
|
+
stateOrProvince: stringType().optional(),
|
|
66379
|
+
postalCode: stringType().optional(),
|
|
66380
|
+
country: stringType().optional()
|
|
66381
|
+
});
|
|
66331
66382
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
66332
66383
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
66333
|
-
|
|
66334
|
-
|
|
66384
|
+
nickname: nullableType(stringType()).optional(),
|
|
66385
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66386
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
66335
66387
|
});
|
|
66336
66388
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
66337
66389
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
66338
|
-
|
|
66339
|
-
|
|
66390
|
+
nickname: nullableType(stringType()).optional(),
|
|
66391
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66392
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
66340
66393
|
});
|
|
66341
66394
|
});
|
|
66342
66395
|
|
|
@@ -66734,6 +66787,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
66734
66787
|
});
|
|
66735
66788
|
});
|
|
66736
66789
|
|
|
66790
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
66791
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
66792
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
66793
|
+
init_esm();
|
|
66794
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
66795
|
+
merchantAccountID: stringType(),
|
|
66796
|
+
partnerAccountID: stringType(),
|
|
66797
|
+
authorizationID: stringType(),
|
|
66798
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
66799
|
+
});
|
|
66800
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
66801
|
+
merchantAccountID: stringType(),
|
|
66802
|
+
partnerAccountID: stringType(),
|
|
66803
|
+
authorizationID: stringType(),
|
|
66804
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
66805
|
+
});
|
|
66806
|
+
});
|
|
66807
|
+
|
|
66737
66808
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
66738
66809
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
66739
66810
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -67108,10 +67179,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
67108
67179
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
67109
67180
|
init_esm();
|
|
67110
67181
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
67182
|
+
accountID: stringType(),
|
|
67111
67183
|
walletID: stringType(),
|
|
67112
67184
|
sweepID: stringType()
|
|
67113
67185
|
});
|
|
67114
67186
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
67187
|
+
accountID: stringType(),
|
|
67115
67188
|
walletID: stringType(),
|
|
67116
67189
|
sweepID: stringType()
|
|
67117
67190
|
});
|
|
@@ -67123,12 +67196,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
67123
67196
|
init_esm();
|
|
67124
67197
|
init_sweepstatus();
|
|
67125
67198
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
67199
|
+
accountID: stringType(),
|
|
67126
67200
|
walletID: stringType(),
|
|
67127
67201
|
sweepID: stringType(),
|
|
67128
67202
|
transferID: stringType().optional(),
|
|
67129
67203
|
status: SweepStatus$inboundSchema
|
|
67130
67204
|
});
|
|
67131
67205
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
67206
|
+
accountID: stringType(),
|
|
67132
67207
|
walletID: stringType(),
|
|
67133
67208
|
sweepID: stringType(),
|
|
67134
67209
|
transferID: stringType().optional(),
|
|
@@ -67369,6 +67444,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67369
67444
|
init_webhookdataaccountcreated();
|
|
67370
67445
|
init_webhookdataaccountdisconnected();
|
|
67371
67446
|
init_webhookdataaccountupdated();
|
|
67447
|
+
init_webhookdataauthorizationexpiring();
|
|
67372
67448
|
init_webhookdatabalanceupdated();
|
|
67373
67449
|
init_webhookdatabankaccountcreated();
|
|
67374
67450
|
init_webhookdatabankaccountdeleted();
|
|
@@ -67408,7 +67484,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67408
67484
|
WebhookDataTransferUpdated$inboundSchema,
|
|
67409
67485
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
67410
67486
|
WebhookDataRefundUpdated$inboundSchema,
|
|
67487
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
67411
67488
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
67489
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
67412
67490
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
67413
67491
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
67414
67492
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -67419,7 +67497,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67419
67497
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
67420
67498
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
67421
67499
|
WebhookDataRefundCreated$inboundSchema,
|
|
67422
|
-
|
|
67500
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
67423
67501
|
WebhookDataTicketUpdated$inboundSchema,
|
|
67424
67502
|
WebhookDataTransferCreated$inboundSchema,
|
|
67425
67503
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -67429,7 +67507,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67429
67507
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
67430
67508
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
67431
67509
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
67432
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
67433
67510
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
67434
67511
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
67435
67512
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -67447,7 +67524,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67447
67524
|
WebhookDataTransferUpdated$outboundSchema,
|
|
67448
67525
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
67449
67526
|
WebhookDataRefundUpdated$outboundSchema,
|
|
67527
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
67450
67528
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
67529
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
67451
67530
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
67452
67531
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
67453
67532
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -67458,7 +67537,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67458
67537
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
67459
67538
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
67460
67539
|
WebhookDataRefundCreated$outboundSchema,
|
|
67461
|
-
|
|
67540
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
67462
67541
|
WebhookDataTicketUpdated$outboundSchema,
|
|
67463
67542
|
WebhookDataTransferCreated$outboundSchema,
|
|
67464
67543
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -67468,7 +67547,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67468
67547
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
67469
67548
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
67470
67549
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
67471
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
67472
67550
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
67473
67551
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
67474
67552
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -67565,7 +67643,6 @@ var init_components = __esm(() => {
|
|
|
67565
67643
|
init_assignproductimagevalidationerror();
|
|
67566
67644
|
init_asynccreatedrefund();
|
|
67567
67645
|
init_asynctransfer();
|
|
67568
|
-
init_authorizeduser();
|
|
67569
67646
|
init_authtoken();
|
|
67570
67647
|
init_authtokenrequest();
|
|
67571
67648
|
init_bankaccount();
|
|
@@ -67641,9 +67718,6 @@ var init_components = __esm(() => {
|
|
|
67641
67718
|
init_createaccount();
|
|
67642
67719
|
init_createaccountsettings();
|
|
67643
67720
|
init_createapplepaysession();
|
|
67644
|
-
init_createauthorizeduser();
|
|
67645
|
-
init_createauthorizedusererror();
|
|
67646
|
-
init_createauthorizeduserupdate();
|
|
67647
67721
|
init_createbusinesserror();
|
|
67648
67722
|
init_createbusinessprofile();
|
|
67649
67723
|
init_createdtransfer();
|
|
@@ -67976,6 +68050,7 @@ var init_components = __esm(() => {
|
|
|
67976
68050
|
init_webhookdataaccountcreated();
|
|
67977
68051
|
init_webhookdataaccountdisconnected();
|
|
67978
68052
|
init_webhookdataaccountupdated();
|
|
68053
|
+
init_webhookdataauthorizationexpiring();
|
|
67979
68054
|
init_webhookdatabalanceupdated();
|
|
67980
68055
|
init_webhookdatabankaccountcreated();
|
|
67981
68056
|
init_webhookdatabankaccountdeleted();
|
|
@@ -69559,10 +69634,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69559
69634
|
init_components();
|
|
69560
69635
|
init_mooverror();
|
|
69561
69636
|
RequestCardError = class RequestCardError extends MoovError {
|
|
69562
|
-
|
|
69563
|
-
|
|
69564
|
-
|
|
69565
|
-
|
|
69637
|
+
authorizedUserAccountID;
|
|
69638
|
+
nickname;
|
|
69639
|
+
metadata;
|
|
69640
|
+
billingAddress;
|
|
69566
69641
|
expiration;
|
|
69567
69642
|
controls;
|
|
69568
69643
|
data$;
|
|
@@ -69570,14 +69645,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
69570
69645
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
69571
69646
|
super(message, httpMeta);
|
|
69572
69647
|
this.data$ = err;
|
|
69573
|
-
if (err.
|
|
69574
|
-
this.
|
|
69575
|
-
|
|
69576
|
-
|
|
69577
|
-
|
|
69578
|
-
|
|
69579
|
-
|
|
69580
|
-
|
|
69648
|
+
if (err.authorizedUserAccountID != null) {
|
|
69649
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
69650
|
+
}
|
|
69651
|
+
if (err.nickname != null)
|
|
69652
|
+
this.nickname = err.nickname;
|
|
69653
|
+
if (err.metadata != null)
|
|
69654
|
+
this.metadata = err.metadata;
|
|
69655
|
+
if (err.billingAddress != null)
|
|
69656
|
+
this.billingAddress = err.billingAddress;
|
|
69581
69657
|
if (err.expiration != null)
|
|
69582
69658
|
this.expiration = err.expiration;
|
|
69583
69659
|
if (err.controls != null)
|
|
@@ -69586,10 +69662,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69586
69662
|
}
|
|
69587
69663
|
};
|
|
69588
69664
|
RequestCardError$inboundSchema = objectType({
|
|
69589
|
-
|
|
69590
|
-
|
|
69591
|
-
|
|
69592
|
-
|
|
69665
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69666
|
+
nickname: stringType().optional(),
|
|
69667
|
+
metadata: stringType().optional(),
|
|
69668
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
69593
69669
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
69594
69670
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
69595
69671
|
request$: instanceOfType(Request),
|
|
@@ -69603,10 +69679,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69603
69679
|
});
|
|
69604
69680
|
});
|
|
69605
69681
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
69606
|
-
|
|
69607
|
-
|
|
69608
|
-
|
|
69609
|
-
|
|
69682
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69683
|
+
nickname: stringType().optional(),
|
|
69684
|
+
metadata: stringType().optional(),
|
|
69685
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
69610
69686
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
69611
69687
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
69612
69688
|
}));
|
|
@@ -70177,8 +70253,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70177
70253
|
init_mooverror();
|
|
70178
70254
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
70179
70255
|
state;
|
|
70180
|
-
|
|
70181
|
-
|
|
70256
|
+
nickname;
|
|
70257
|
+
metadata;
|
|
70258
|
+
billingAddress;
|
|
70182
70259
|
data$;
|
|
70183
70260
|
constructor(err, httpMeta) {
|
|
70184
70261
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -70186,17 +70263,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70186
70263
|
this.data$ = err;
|
|
70187
70264
|
if (err.state != null)
|
|
70188
70265
|
this.state = err.state;
|
|
70189
|
-
if (err.
|
|
70190
|
-
this.
|
|
70191
|
-
if (err.
|
|
70192
|
-
this.
|
|
70266
|
+
if (err.nickname != null)
|
|
70267
|
+
this.nickname = err.nickname;
|
|
70268
|
+
if (err.metadata != null)
|
|
70269
|
+
this.metadata = err.metadata;
|
|
70270
|
+
if (err.billingAddress != null)
|
|
70271
|
+
this.billingAddress = err.billingAddress;
|
|
70193
70272
|
this.name = "UpdateIssuedCardError";
|
|
70194
70273
|
}
|
|
70195
70274
|
};
|
|
70196
70275
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
70197
70276
|
state: stringType().optional(),
|
|
70198
|
-
|
|
70199
|
-
|
|
70277
|
+
nickname: stringType().optional(),
|
|
70278
|
+
metadata: stringType().optional(),
|
|
70279
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70200
70280
|
request$: instanceOfType(Request),
|
|
70201
70281
|
response$: instanceOfType(Response),
|
|
70202
70282
|
body$: stringType()
|
|
@@ -70209,8 +70289,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70209
70289
|
});
|
|
70210
70290
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70211
70291
|
state: stringType().optional(),
|
|
70212
|
-
|
|
70213
|
-
|
|
70292
|
+
nickname: stringType().optional(),
|
|
70293
|
+
metadata: stringType().optional(),
|
|
70294
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
70214
70295
|
}));
|
|
70215
70296
|
});
|
|
70216
70297
|
|
|
@@ -73958,6 +74039,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
73958
74039
|
});
|
|
73959
74040
|
});
|
|
73960
74041
|
|
|
74042
|
+
// src/models/operations/listcancellations.ts
|
|
74043
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
74044
|
+
var init_listcancellations = __esm(() => {
|
|
74045
|
+
init_esm();
|
|
74046
|
+
init_primitives();
|
|
74047
|
+
init_components();
|
|
74048
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
74049
|
+
accountID: stringType(),
|
|
74050
|
+
transferID: stringType()
|
|
74051
|
+
});
|
|
74052
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
74053
|
+
accountID: stringType(),
|
|
74054
|
+
transferID: stringType()
|
|
74055
|
+
});
|
|
74056
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
74057
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
74058
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
74059
|
+
}).transform((v2) => {
|
|
74060
|
+
return remap(v2, {
|
|
74061
|
+
Headers: "headers",
|
|
74062
|
+
Result: "result"
|
|
74063
|
+
});
|
|
74064
|
+
});
|
|
74065
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
74066
|
+
headers: recordType(arrayType(stringType())),
|
|
74067
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
74068
|
+
}).transform((v2) => {
|
|
74069
|
+
return remap(v2, {
|
|
74070
|
+
headers: "Headers",
|
|
74071
|
+
result: "Result"
|
|
74072
|
+
});
|
|
74073
|
+
});
|
|
74074
|
+
});
|
|
74075
|
+
|
|
73961
74076
|
// src/models/operations/listcapabilities.ts
|
|
73962
74077
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
73963
74078
|
var init_listcapabilities = __esm(() => {
|
|
@@ -76736,6 +76851,7 @@ var init_operations = __esm(() => {
|
|
|
76736
76851
|
init_listaccountterminalapplications();
|
|
76737
76852
|
init_listadjustments();
|
|
76738
76853
|
init_listbankaccounts();
|
|
76854
|
+
init_listcancellations();
|
|
76739
76855
|
init_listcapabilities();
|
|
76740
76856
|
init_listcards();
|
|
76741
76857
|
init_listconnectedaccountsforaccount();
|
|
@@ -76816,16 +76932,19 @@ var init_async = __esm(() => {
|
|
|
76816
76932
|
[Symbol.toStringTag] = "APIPromise";
|
|
76817
76933
|
constructor(p) {
|
|
76818
76934
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
76819
|
-
this.#unwrapped = p instanceof Promise ?
|
|
76935
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
76936
|
+
}
|
|
76937
|
+
#getUnwrapped() {
|
|
76938
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
76820
76939
|
}
|
|
76821
76940
|
then(onfulfilled, onrejected) {
|
|
76822
76941
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
76823
76942
|
}
|
|
76824
76943
|
catch(onrejected) {
|
|
76825
|
-
return this.#
|
|
76944
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
76826
76945
|
}
|
|
76827
76946
|
finally(onfinally) {
|
|
76828
|
-
return this.#
|
|
76947
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
76829
76948
|
}
|
|
76830
76949
|
$inspect() {
|
|
76831
76950
|
return this.#promise;
|
|
@@ -77148,21 +77267,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
77148
77267
|
};
|
|
77149
77268
|
tool$accountsCreate = {
|
|
77150
77269
|
name: "accounts-create",
|
|
77151
|
-
description: `You can create
|
|
77152
|
-
information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
77270
|
+
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/).
|
|
77153
77271
|
|
|
77154
|
-
If you
|
|
77155
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
77156
|
-
|
|
77157
|
-
|
|
77272
|
+
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:
|
|
77273
|
+
+ 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.
|
|
77274
|
+
+ 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.
|
|
77275
|
+
|
|
77276
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
77158
77277
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
77159
77278
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
77160
77279
|
|
|
77161
|
-
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/).
|
|
77162
|
-
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.
|
|
77280
|
+
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.
|
|
77163
77281
|
|
|
77164
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77165
|
-
to specify the \`/accounts.write\` scope.`,
|
|
77282
|
+
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.`,
|
|
77166
77283
|
args: args3,
|
|
77167
77284
|
tool: async (client, args4, ctx) => {
|
|
77168
77285
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -80634,7 +80751,7 @@ var init_bankAccountsLink2 = __esm(() => {
|
|
|
80634
80751
|
description: `Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
80635
80752
|
|
|
80636
80753
|
It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
|
|
80637
|
-
bank
|
|
80754
|
+
bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
80638
80755
|
Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
80639
80756
|
endpoint to wait for the new payment methods to be available for use.
|
|
80640
80757
|
|
|
@@ -81201,7 +81318,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
81201
81318
|
};
|
|
81202
81319
|
tool$capabilitiesDisable = {
|
|
81203
81320
|
name: "capabilities-disable",
|
|
81204
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
81321
|
+
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.
|
|
81205
81322
|
|
|
81206
81323
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81207
81324
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81315,7 +81432,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
81315
81432
|
};
|
|
81316
81433
|
tool$capabilitiesGet = {
|
|
81317
81434
|
name: "capabilities-get",
|
|
81318
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
81435
|
+
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.
|
|
81319
81436
|
|
|
81320
81437
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81321
81438
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81428,7 +81545,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
81428
81545
|
name: "capabilities-list",
|
|
81429
81546
|
description: `Retrieve all the capabilities an account has requested.
|
|
81430
81547
|
|
|
81431
|
-
Read our [capabilities
|
|
81548
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81432
81549
|
|
|
81433
81550
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81434
81551
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81541,7 +81658,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
81541
81658
|
};
|
|
81542
81659
|
tool$capabilitiesRequest = {
|
|
81543
81660
|
name: "capabilities-request",
|
|
81544
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
81661
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81545
81662
|
|
|
81546
81663
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81547
81664
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81581,7 +81698,7 @@ async function $do42(client, request, options) {
|
|
|
81581
81698
|
charEncoding: "percent"
|
|
81582
81699
|
})
|
|
81583
81700
|
};
|
|
81584
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81701
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
81585
81702
|
const headers = new Headers(compactMap({
|
|
81586
81703
|
Accept: "application/json"
|
|
81587
81704
|
}));
|
|
@@ -81696,7 +81813,7 @@ async function $do43(client, request, options) {
|
|
|
81696
81813
|
charEncoding: "percent"
|
|
81697
81814
|
})
|
|
81698
81815
|
};
|
|
81699
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81816
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
81700
81817
|
const headers = new Headers(compactMap({
|
|
81701
81818
|
Accept: "application/json"
|
|
81702
81819
|
}));
|
|
@@ -81809,7 +81926,7 @@ async function $do44(client, request, options) {
|
|
|
81809
81926
|
charEncoding: "percent"
|
|
81810
81927
|
})
|
|
81811
81928
|
};
|
|
81812
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81929
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81813
81930
|
const query = encodeFormQuery({
|
|
81814
81931
|
count: payload.count,
|
|
81815
81932
|
skip: payload.skip,
|
|
@@ -81926,7 +82043,7 @@ async function $do45(client, request, options) {
|
|
|
81926
82043
|
charEncoding: "percent"
|
|
81927
82044
|
})
|
|
81928
82045
|
};
|
|
81929
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82046
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81930
82047
|
const headers = new Headers(compactMap({
|
|
81931
82048
|
"Content-Type": "application/json",
|
|
81932
82049
|
Accept: "application/json"
|
|
@@ -82043,7 +82160,7 @@ async function $do46(client, request, options) {
|
|
|
82043
82160
|
charEncoding: "percent"
|
|
82044
82161
|
})
|
|
82045
82162
|
};
|
|
82046
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82163
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
82047
82164
|
const headers = new Headers(compactMap({
|
|
82048
82165
|
"Content-Type": "application/json",
|
|
82049
82166
|
Accept: "application/json"
|
|
@@ -94067,11 +94184,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94067
94184
|
};
|
|
94068
94185
|
});
|
|
94069
94186
|
|
|
94070
|
-
// src/funcs/
|
|
94071
|
-
function
|
|
94187
|
+
// src/funcs/transfersListCancellations.ts
|
|
94188
|
+
function transfersListCancellations(client, request, options) {
|
|
94072
94189
|
return new APIPromise($do149(client, request, options));
|
|
94073
94190
|
}
|
|
94074
94191
|
async function $do149(client, request, options) {
|
|
94192
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94193
|
+
if (!parsed.ok) {
|
|
94194
|
+
return [parsed, { status: "invalid" }];
|
|
94195
|
+
}
|
|
94196
|
+
const payload = parsed.value;
|
|
94197
|
+
const body = null;
|
|
94198
|
+
const pathParams = {
|
|
94199
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
94200
|
+
explode: false,
|
|
94201
|
+
charEncoding: "percent"
|
|
94202
|
+
}),
|
|
94203
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
94204
|
+
explode: false,
|
|
94205
|
+
charEncoding: "percent"
|
|
94206
|
+
})
|
|
94207
|
+
};
|
|
94208
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
94209
|
+
const headers = new Headers(compactMap({
|
|
94210
|
+
Accept: "application/json"
|
|
94211
|
+
}));
|
|
94212
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
94213
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
94214
|
+
const context = {
|
|
94215
|
+
options: client._options,
|
|
94216
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
94217
|
+
operationID: "listCancellations",
|
|
94218
|
+
oAuth2Scopes: null,
|
|
94219
|
+
resolvedSecurity: requestSecurity,
|
|
94220
|
+
securitySource: client._options.security,
|
|
94221
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
94222
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
94223
|
+
};
|
|
94224
|
+
const requestRes = client._createRequest(context, {
|
|
94225
|
+
security: requestSecurity,
|
|
94226
|
+
method: "GET",
|
|
94227
|
+
baseURL: options?.serverURL,
|
|
94228
|
+
path,
|
|
94229
|
+
headers,
|
|
94230
|
+
body,
|
|
94231
|
+
userAgent: client._options.userAgent,
|
|
94232
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
94233
|
+
}, options);
|
|
94234
|
+
if (!requestRes.ok) {
|
|
94235
|
+
return [requestRes, { status: "invalid" }];
|
|
94236
|
+
}
|
|
94237
|
+
const req = requestRes.value;
|
|
94238
|
+
const doResult = await client._do(req, {
|
|
94239
|
+
context,
|
|
94240
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
94241
|
+
retryConfig: context.retryConfig,
|
|
94242
|
+
retryCodes: context.retryCodes
|
|
94243
|
+
});
|
|
94244
|
+
if (!doResult.ok) {
|
|
94245
|
+
return [doResult, { status: "request-error", request: req }];
|
|
94246
|
+
}
|
|
94247
|
+
const response = doResult.value;
|
|
94248
|
+
const responseFields = {
|
|
94249
|
+
HttpMeta: { Response: response, Request: req }
|
|
94250
|
+
};
|
|
94251
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
94252
|
+
hdrs: true,
|
|
94253
|
+
key: "Result"
|
|
94254
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
94255
|
+
if (!result.ok) {
|
|
94256
|
+
return [result, { status: "complete", request: req, response }];
|
|
94257
|
+
}
|
|
94258
|
+
return [result, { status: "complete", request: req, response }];
|
|
94259
|
+
}
|
|
94260
|
+
var init_transfersListCancellations = __esm(() => {
|
|
94261
|
+
init_encodings();
|
|
94262
|
+
init_http();
|
|
94263
|
+
init_matchers();
|
|
94264
|
+
init_primitives();
|
|
94265
|
+
init_schemas4();
|
|
94266
|
+
init_security();
|
|
94267
|
+
init_url();
|
|
94268
|
+
init_operations();
|
|
94269
|
+
init_async();
|
|
94270
|
+
});
|
|
94271
|
+
|
|
94272
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
94273
|
+
var args144, tool$transfersListCancellations;
|
|
94274
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
94275
|
+
init_transfersListCancellations();
|
|
94276
|
+
init_operations();
|
|
94277
|
+
init_tools();
|
|
94278
|
+
args144 = {
|
|
94279
|
+
request: ListCancellationsRequest$inboundSchema
|
|
94280
|
+
};
|
|
94281
|
+
tool$transfersListCancellations = {
|
|
94282
|
+
name: "transfers-list-cancellations",
|
|
94283
|
+
description: ` Get a list of cancellations for a transfer.
|
|
94284
|
+
|
|
94285
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
94286
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94287
|
+
args: args144,
|
|
94288
|
+
tool: async (client, args145, ctx) => {
|
|
94289
|
+
const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94290
|
+
if (!result.ok) {
|
|
94291
|
+
return {
|
|
94292
|
+
content: [{ type: "text", text: result.error.message }],
|
|
94293
|
+
isError: true
|
|
94294
|
+
};
|
|
94295
|
+
}
|
|
94296
|
+
const value = result.value.result;
|
|
94297
|
+
return formatResult(value, apiCall);
|
|
94298
|
+
}
|
|
94299
|
+
};
|
|
94300
|
+
});
|
|
94301
|
+
|
|
94302
|
+
// src/funcs/transfersListRefunds.ts
|
|
94303
|
+
function transfersListRefunds(client, request, options) {
|
|
94304
|
+
return new APIPromise($do150(client, request, options));
|
|
94305
|
+
}
|
|
94306
|
+
async function $do150(client, request, options) {
|
|
94075
94307
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94076
94308
|
if (!parsed.ok) {
|
|
94077
94309
|
return [parsed, { status: "invalid" }];
|
|
@@ -94153,12 +94385,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
94153
94385
|
});
|
|
94154
94386
|
|
|
94155
94387
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
94156
|
-
var
|
|
94388
|
+
var args145, tool$transfersListRefunds;
|
|
94157
94389
|
var init_transfersListRefunds2 = __esm(() => {
|
|
94158
94390
|
init_transfersListRefunds();
|
|
94159
94391
|
init_operations();
|
|
94160
94392
|
init_tools();
|
|
94161
|
-
|
|
94393
|
+
args145 = {
|
|
94162
94394
|
request: ListRefundsRequest$inboundSchema
|
|
94163
94395
|
};
|
|
94164
94396
|
tool$transfersListRefunds = {
|
|
@@ -94167,9 +94399,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
94167
94399
|
|
|
94168
94400
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94169
94401
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94170
|
-
args:
|
|
94171
|
-
tool: async (client,
|
|
94172
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
94402
|
+
args: args145,
|
|
94403
|
+
tool: async (client, args146, ctx) => {
|
|
94404
|
+
const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94173
94405
|
if (!result.ok) {
|
|
94174
94406
|
return {
|
|
94175
94407
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94184,9 +94416,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94184
94416
|
|
|
94185
94417
|
// src/funcs/transfersUpdate.ts
|
|
94186
94418
|
function transfersUpdate(client, request, options) {
|
|
94187
|
-
return new APIPromise($
|
|
94419
|
+
return new APIPromise($do151(client, request, options));
|
|
94188
94420
|
}
|
|
94189
|
-
async function $
|
|
94421
|
+
async function $do151(client, request, options) {
|
|
94190
94422
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94191
94423
|
if (!parsed.ok) {
|
|
94192
94424
|
return [parsed, { status: "invalid" }];
|
|
@@ -94272,12 +94504,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
94272
94504
|
});
|
|
94273
94505
|
|
|
94274
94506
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
94275
|
-
var
|
|
94507
|
+
var args146, tool$transfersUpdate;
|
|
94276
94508
|
var init_transfersUpdate2 = __esm(() => {
|
|
94277
94509
|
init_transfersUpdate();
|
|
94278
94510
|
init_operations();
|
|
94279
94511
|
init_tools();
|
|
94280
|
-
|
|
94512
|
+
args146 = {
|
|
94281
94513
|
request: UpdateTransferRequest$inboundSchema
|
|
94282
94514
|
};
|
|
94283
94515
|
tool$transfersUpdate = {
|
|
@@ -94288,9 +94520,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
94288
94520
|
|
|
94289
94521
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94290
94522
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
94291
|
-
args:
|
|
94292
|
-
tool: async (client,
|
|
94293
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
94523
|
+
args: args146,
|
|
94524
|
+
tool: async (client, args147, ctx) => {
|
|
94525
|
+
const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94294
94526
|
if (!result.ok) {
|
|
94295
94527
|
return {
|
|
94296
94528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94305,9 +94537,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
94305
94537
|
|
|
94306
94538
|
// src/funcs/underwritingGet.ts
|
|
94307
94539
|
function underwritingGet(client, request, options) {
|
|
94308
|
-
return new APIPromise($
|
|
94540
|
+
return new APIPromise($do152(client, request, options));
|
|
94309
94541
|
}
|
|
94310
|
-
async function $
|
|
94542
|
+
async function $do152(client, request, options) {
|
|
94311
94543
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94312
94544
|
if (!parsed.ok) {
|
|
94313
94545
|
return [parsed, { status: "invalid" }];
|
|
@@ -94385,12 +94617,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
94385
94617
|
});
|
|
94386
94618
|
|
|
94387
94619
|
// src/mcp-server/tools/underwritingGet.ts
|
|
94388
|
-
var
|
|
94620
|
+
var args147, tool$underwritingGet;
|
|
94389
94621
|
var init_underwritingGet2 = __esm(() => {
|
|
94390
94622
|
init_underwritingGet();
|
|
94391
94623
|
init_operations();
|
|
94392
94624
|
init_tools();
|
|
94393
|
-
|
|
94625
|
+
args147 = {
|
|
94394
94626
|
request: GetUnderwritingRequest$inboundSchema
|
|
94395
94627
|
};
|
|
94396
94628
|
tool$underwritingGet = {
|
|
@@ -94401,9 +94633,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94401
94633
|
|
|
94402
94634
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94403
94635
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
94404
|
-
args:
|
|
94405
|
-
tool: async (client,
|
|
94406
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
94636
|
+
args: args147,
|
|
94637
|
+
tool: async (client, args148, ctx) => {
|
|
94638
|
+
const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94407
94639
|
if (!result.ok) {
|
|
94408
94640
|
return {
|
|
94409
94641
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94418,9 +94650,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
94418
94650
|
|
|
94419
94651
|
// src/funcs/underwritingUpsert.ts
|
|
94420
94652
|
function underwritingUpsert(client, request, options) {
|
|
94421
|
-
return new APIPromise($
|
|
94653
|
+
return new APIPromise($do153(client, request, options));
|
|
94422
94654
|
}
|
|
94423
|
-
async function $
|
|
94655
|
+
async function $do153(client, request, options) {
|
|
94424
94656
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94425
94657
|
if (!parsed.ok) {
|
|
94426
94658
|
return [parsed, { status: "invalid" }];
|
|
@@ -94504,12 +94736,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
94504
94736
|
});
|
|
94505
94737
|
|
|
94506
94738
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
94507
|
-
var
|
|
94739
|
+
var args148, tool$underwritingUpsert;
|
|
94508
94740
|
var init_underwritingUpsert2 = __esm(() => {
|
|
94509
94741
|
init_underwritingUpsert();
|
|
94510
94742
|
init_operations();
|
|
94511
94743
|
init_tools();
|
|
94512
|
-
|
|
94744
|
+
args148 = {
|
|
94513
94745
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
94514
94746
|
};
|
|
94515
94747
|
tool$underwritingUpsert = {
|
|
@@ -94520,9 +94752,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94520
94752
|
|
|
94521
94753
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94522
94754
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
94523
|
-
args:
|
|
94524
|
-
tool: async (client,
|
|
94525
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
94755
|
+
args: args148,
|
|
94756
|
+
tool: async (client, args149, ctx) => {
|
|
94757
|
+
const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94526
94758
|
if (!result.ok) {
|
|
94527
94759
|
return {
|
|
94528
94760
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94537,9 +94769,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
94537
94769
|
|
|
94538
94770
|
// src/funcs/walletsCreate.ts
|
|
94539
94771
|
function walletsCreate(client, request, options) {
|
|
94540
|
-
return new APIPromise($
|
|
94772
|
+
return new APIPromise($do154(client, request, options));
|
|
94541
94773
|
}
|
|
94542
|
-
async function $
|
|
94774
|
+
async function $do154(client, request, options) {
|
|
94543
94775
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94544
94776
|
if (!parsed.ok) {
|
|
94545
94777
|
return [parsed, { status: "invalid" }];
|
|
@@ -94621,12 +94853,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
94621
94853
|
});
|
|
94622
94854
|
|
|
94623
94855
|
// src/mcp-server/tools/walletsCreate.ts
|
|
94624
|
-
var
|
|
94856
|
+
var args149, tool$walletsCreate;
|
|
94625
94857
|
var init_walletsCreate2 = __esm(() => {
|
|
94626
94858
|
init_walletsCreate();
|
|
94627
94859
|
init_operations();
|
|
94628
94860
|
init_tools();
|
|
94629
|
-
|
|
94861
|
+
args149 = {
|
|
94630
94862
|
request: CreateWalletRequest$inboundSchema
|
|
94631
94863
|
};
|
|
94632
94864
|
tool$walletsCreate = {
|
|
@@ -94637,9 +94869,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94637
94869
|
|
|
94638
94870
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94639
94871
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
94640
|
-
args:
|
|
94641
|
-
tool: async (client,
|
|
94642
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
94872
|
+
args: args149,
|
|
94873
|
+
tool: async (client, args150, ctx) => {
|
|
94874
|
+
const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94643
94875
|
if (!result.ok) {
|
|
94644
94876
|
return {
|
|
94645
94877
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94654,9 +94886,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
94654
94886
|
|
|
94655
94887
|
// src/funcs/walletsGet.ts
|
|
94656
94888
|
function walletsGet(client, request, options) {
|
|
94657
|
-
return new APIPromise($
|
|
94889
|
+
return new APIPromise($do155(client, request, options));
|
|
94658
94890
|
}
|
|
94659
|
-
async function $
|
|
94891
|
+
async function $do155(client, request, options) {
|
|
94660
94892
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94661
94893
|
if (!parsed.ok) {
|
|
94662
94894
|
return [parsed, { status: "invalid" }];
|
|
@@ -94738,12 +94970,12 @@ var init_walletsGet = __esm(() => {
|
|
|
94738
94970
|
});
|
|
94739
94971
|
|
|
94740
94972
|
// src/mcp-server/tools/walletsGet.ts
|
|
94741
|
-
var
|
|
94973
|
+
var args150, tool$walletsGet;
|
|
94742
94974
|
var init_walletsGet2 = __esm(() => {
|
|
94743
94975
|
init_walletsGet();
|
|
94744
94976
|
init_operations();
|
|
94745
94977
|
init_tools();
|
|
94746
|
-
|
|
94978
|
+
args150 = {
|
|
94747
94979
|
request: GetWalletRequest$inboundSchema
|
|
94748
94980
|
};
|
|
94749
94981
|
tool$walletsGet = {
|
|
@@ -94754,9 +94986,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94754
94986
|
|
|
94755
94987
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94756
94988
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94757
|
-
args:
|
|
94758
|
-
tool: async (client,
|
|
94759
|
-
const [result, apiCall] = await walletsGet(client,
|
|
94989
|
+
args: args150,
|
|
94990
|
+
tool: async (client, args151, ctx) => {
|
|
94991
|
+
const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94760
94992
|
if (!result.ok) {
|
|
94761
94993
|
return {
|
|
94762
94994
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94771,9 +95003,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94771
95003
|
|
|
94772
95004
|
// src/funcs/walletsList.ts
|
|
94773
95005
|
function walletsList(client, request, options) {
|
|
94774
|
-
return new APIPromise($
|
|
95006
|
+
return new APIPromise($do156(client, request, options));
|
|
94775
95007
|
}
|
|
94776
|
-
async function $
|
|
95008
|
+
async function $do156(client, request, options) {
|
|
94777
95009
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94778
95010
|
if (!parsed.ok) {
|
|
94779
95011
|
return [parsed, { status: "invalid" }];
|
|
@@ -94861,12 +95093,12 @@ var init_walletsList = __esm(() => {
|
|
|
94861
95093
|
});
|
|
94862
95094
|
|
|
94863
95095
|
// src/mcp-server/tools/walletsList.ts
|
|
94864
|
-
var
|
|
95096
|
+
var args151, tool$walletsList;
|
|
94865
95097
|
var init_walletsList2 = __esm(() => {
|
|
94866
95098
|
init_walletsList();
|
|
94867
95099
|
init_operations();
|
|
94868
95100
|
init_tools();
|
|
94869
|
-
|
|
95101
|
+
args151 = {
|
|
94870
95102
|
request: ListWalletsRequest$inboundSchema
|
|
94871
95103
|
};
|
|
94872
95104
|
tool$walletsList = {
|
|
@@ -94877,9 +95109,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94877
95109
|
|
|
94878
95110
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94879
95111
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94880
|
-
args:
|
|
94881
|
-
tool: async (client,
|
|
94882
|
-
const [result, apiCall] = await walletsList(client,
|
|
95112
|
+
args: args151,
|
|
95113
|
+
tool: async (client, args152, ctx) => {
|
|
95114
|
+
const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94883
95115
|
if (!result.ok) {
|
|
94884
95116
|
return {
|
|
94885
95117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94894,9 +95126,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94894
95126
|
|
|
94895
95127
|
// src/funcs/walletsUpdate.ts
|
|
94896
95128
|
function walletsUpdate(client, request, options) {
|
|
94897
|
-
return new APIPromise($
|
|
95129
|
+
return new APIPromise($do157(client, request, options));
|
|
94898
95130
|
}
|
|
94899
|
-
async function $
|
|
95131
|
+
async function $do157(client, request, options) {
|
|
94900
95132
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94901
95133
|
if (!parsed.ok) {
|
|
94902
95134
|
return [parsed, { status: "invalid" }];
|
|
@@ -94982,12 +95214,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
94982
95214
|
});
|
|
94983
95215
|
|
|
94984
95216
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
94985
|
-
var
|
|
95217
|
+
var args152, tool$walletsUpdate;
|
|
94986
95218
|
var init_walletsUpdate2 = __esm(() => {
|
|
94987
95219
|
init_walletsUpdate();
|
|
94988
95220
|
init_operations();
|
|
94989
95221
|
init_tools();
|
|
94990
|
-
|
|
95222
|
+
args152 = {
|
|
94991
95223
|
request: UpdateWalletRequest$inboundSchema
|
|
94992
95224
|
};
|
|
94993
95225
|
tool$walletsUpdate = {
|
|
@@ -94998,9 +95230,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94998
95230
|
|
|
94999
95231
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95000
95232
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
95001
|
-
args:
|
|
95002
|
-
tool: async (client,
|
|
95003
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
95233
|
+
args: args152,
|
|
95234
|
+
tool: async (client, args153, ctx) => {
|
|
95235
|
+
const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95004
95236
|
if (!result.ok) {
|
|
95005
95237
|
return {
|
|
95006
95238
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95015,9 +95247,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
95015
95247
|
|
|
95016
95248
|
// src/funcs/walletTransactionsGet.ts
|
|
95017
95249
|
function walletTransactionsGet(client, request, options) {
|
|
95018
|
-
return new APIPromise($
|
|
95250
|
+
return new APIPromise($do158(client, request, options));
|
|
95019
95251
|
}
|
|
95020
|
-
async function $
|
|
95252
|
+
async function $do158(client, request, options) {
|
|
95021
95253
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95022
95254
|
if (!parsed.ok) {
|
|
95023
95255
|
return [parsed, { status: "invalid" }];
|
|
@@ -95103,12 +95335,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
95103
95335
|
});
|
|
95104
95336
|
|
|
95105
95337
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
95106
|
-
var
|
|
95338
|
+
var args153, tool$walletTransactionsGet;
|
|
95107
95339
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
95108
95340
|
init_walletTransactionsGet();
|
|
95109
95341
|
init_operations();
|
|
95110
95342
|
init_tools();
|
|
95111
|
-
|
|
95343
|
+
args153 = {
|
|
95112
95344
|
request: GetWalletTransactionRequest$inboundSchema
|
|
95113
95345
|
};
|
|
95114
95346
|
tool$walletTransactionsGet = {
|
|
@@ -95119,9 +95351,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95119
95351
|
|
|
95120
95352
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95121
95353
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95122
|
-
args:
|
|
95123
|
-
tool: async (client,
|
|
95124
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
95354
|
+
args: args153,
|
|
95355
|
+
tool: async (client, args154, ctx) => {
|
|
95356
|
+
const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95125
95357
|
if (!result.ok) {
|
|
95126
95358
|
return {
|
|
95127
95359
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95136,9 +95368,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95136
95368
|
|
|
95137
95369
|
// src/funcs/walletTransactionsList.ts
|
|
95138
95370
|
function walletTransactionsList(client, request, options) {
|
|
95139
|
-
return new APIPromise($
|
|
95371
|
+
return new APIPromise($do159(client, request, options));
|
|
95140
95372
|
}
|
|
95141
|
-
async function $
|
|
95373
|
+
async function $do159(client, request, options) {
|
|
95142
95374
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95143
95375
|
if (!parsed.ok) {
|
|
95144
95376
|
return [parsed, { status: "invalid" }];
|
|
@@ -95238,12 +95470,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
95238
95470
|
});
|
|
95239
95471
|
|
|
95240
95472
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
95241
|
-
var
|
|
95473
|
+
var args154, tool$walletTransactionsList;
|
|
95242
95474
|
var init_walletTransactionsList2 = __esm(() => {
|
|
95243
95475
|
init_walletTransactionsList();
|
|
95244
95476
|
init_operations();
|
|
95245
95477
|
init_tools();
|
|
95246
|
-
|
|
95478
|
+
args154 = {
|
|
95247
95479
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
95248
95480
|
};
|
|
95249
95481
|
tool$walletTransactionsList = {
|
|
@@ -95254,9 +95486,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95254
95486
|
|
|
95255
95487
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95256
95488
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95257
|
-
args:
|
|
95258
|
-
tool: async (client,
|
|
95259
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
95489
|
+
args: args154,
|
|
95490
|
+
tool: async (client, args155, ctx) => {
|
|
95491
|
+
const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95260
95492
|
if (!result.ok) {
|
|
95261
95493
|
return {
|
|
95262
95494
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95271,9 +95503,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95271
95503
|
|
|
95272
95504
|
// src/funcs/webhooksCreate.ts
|
|
95273
95505
|
function webhooksCreate(client, request, options) {
|
|
95274
|
-
return new APIPromise($
|
|
95506
|
+
return new APIPromise($do160(client, request, options));
|
|
95275
95507
|
}
|
|
95276
|
-
async function $
|
|
95508
|
+
async function $do160(client, request, options) {
|
|
95277
95509
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
95278
95510
|
if (!parsed.ok) {
|
|
95279
95511
|
return [parsed, { status: "invalid" }];
|
|
@@ -95350,20 +95582,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
95350
95582
|
});
|
|
95351
95583
|
|
|
95352
95584
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
95353
|
-
var
|
|
95585
|
+
var args155, tool$webhooksCreate;
|
|
95354
95586
|
var init_webhooksCreate2 = __esm(() => {
|
|
95355
95587
|
init_webhooksCreate();
|
|
95356
95588
|
init_components();
|
|
95357
95589
|
init_tools();
|
|
95358
|
-
|
|
95590
|
+
args155 = {
|
|
95359
95591
|
request: CreateWebhook$inboundSchema
|
|
95360
95592
|
};
|
|
95361
95593
|
tool$webhooksCreate = {
|
|
95362
95594
|
name: "webhooks-create",
|
|
95363
95595
|
description: `Create a new webhook for the account.`,
|
|
95364
|
-
args:
|
|
95365
|
-
tool: async (client,
|
|
95366
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
95596
|
+
args: args155,
|
|
95597
|
+
tool: async (client, args156, ctx) => {
|
|
95598
|
+
const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95367
95599
|
if (!result.ok) {
|
|
95368
95600
|
return {
|
|
95369
95601
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95378,9 +95610,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
95378
95610
|
|
|
95379
95611
|
// src/funcs/webhooksDisable.ts
|
|
95380
95612
|
function webhooksDisable(client, request, options) {
|
|
95381
|
-
return new APIPromise($
|
|
95613
|
+
return new APIPromise($do161(client, request, options));
|
|
95382
95614
|
}
|
|
95383
|
-
async function $
|
|
95615
|
+
async function $do161(client, request, options) {
|
|
95384
95616
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95385
95617
|
if (!parsed.ok) {
|
|
95386
95618
|
return [parsed, { status: "invalid" }];
|
|
@@ -95458,20 +95690,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
95458
95690
|
});
|
|
95459
95691
|
|
|
95460
95692
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
95461
|
-
var
|
|
95693
|
+
var args156, tool$webhooksDisable;
|
|
95462
95694
|
var init_webhooksDisable2 = __esm(() => {
|
|
95463
95695
|
init_webhooksDisable();
|
|
95464
95696
|
init_operations();
|
|
95465
95697
|
init_tools();
|
|
95466
|
-
|
|
95698
|
+
args156 = {
|
|
95467
95699
|
request: DisableWebhookRequest$inboundSchema
|
|
95468
95700
|
};
|
|
95469
95701
|
tool$webhooksDisable = {
|
|
95470
95702
|
name: "webhooks-disable",
|
|
95471
95703
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
95472
|
-
args:
|
|
95473
|
-
tool: async (client,
|
|
95474
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
95704
|
+
args: args156,
|
|
95705
|
+
tool: async (client, args157, ctx) => {
|
|
95706
|
+
const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95475
95707
|
if (!result.ok) {
|
|
95476
95708
|
return {
|
|
95477
95709
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95485,9 +95717,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
95485
95717
|
|
|
95486
95718
|
// src/funcs/webhooksGet.ts
|
|
95487
95719
|
function webhooksGet(client, request, options) {
|
|
95488
|
-
return new APIPromise($
|
|
95720
|
+
return new APIPromise($do162(client, request, options));
|
|
95489
95721
|
}
|
|
95490
|
-
async function $
|
|
95722
|
+
async function $do162(client, request, options) {
|
|
95491
95723
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95492
95724
|
if (!parsed.ok) {
|
|
95493
95725
|
return [parsed, { status: "invalid" }];
|
|
@@ -95565,20 +95797,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
95565
95797
|
});
|
|
95566
95798
|
|
|
95567
95799
|
// src/mcp-server/tools/webhooksGet.ts
|
|
95568
|
-
var
|
|
95800
|
+
var args157, tool$webhooksGet;
|
|
95569
95801
|
var init_webhooksGet2 = __esm(() => {
|
|
95570
95802
|
init_webhooksGet();
|
|
95571
95803
|
init_operations();
|
|
95572
95804
|
init_tools();
|
|
95573
|
-
|
|
95805
|
+
args157 = {
|
|
95574
95806
|
request: GetWebhookRequest$inboundSchema
|
|
95575
95807
|
};
|
|
95576
95808
|
tool$webhooksGet = {
|
|
95577
95809
|
name: "webhooks-get",
|
|
95578
95810
|
description: `Get details of a specific webhook.`,
|
|
95579
|
-
args:
|
|
95580
|
-
tool: async (client,
|
|
95581
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
95811
|
+
args: args157,
|
|
95812
|
+
tool: async (client, args158, ctx) => {
|
|
95813
|
+
const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95582
95814
|
if (!result.ok) {
|
|
95583
95815
|
return {
|
|
95584
95816
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95593,9 +95825,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
95593
95825
|
|
|
95594
95826
|
// src/funcs/webhooksGetSecret.ts
|
|
95595
95827
|
function webhooksGetSecret(client, request, options) {
|
|
95596
|
-
return new APIPromise($
|
|
95828
|
+
return new APIPromise($do163(client, request, options));
|
|
95597
95829
|
}
|
|
95598
|
-
async function $
|
|
95830
|
+
async function $do163(client, request, options) {
|
|
95599
95831
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95600
95832
|
if (!parsed.ok) {
|
|
95601
95833
|
return [parsed, { status: "invalid" }];
|
|
@@ -95673,20 +95905,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
95673
95905
|
});
|
|
95674
95906
|
|
|
95675
95907
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
95676
|
-
var
|
|
95908
|
+
var args158, tool$webhooksGetSecret;
|
|
95677
95909
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
95678
95910
|
init_webhooksGetSecret();
|
|
95679
95911
|
init_operations();
|
|
95680
95912
|
init_tools();
|
|
95681
|
-
|
|
95913
|
+
args158 = {
|
|
95682
95914
|
request: GetWebhookSecretRequest$inboundSchema
|
|
95683
95915
|
};
|
|
95684
95916
|
tool$webhooksGetSecret = {
|
|
95685
95917
|
name: "webhooks-get-secret",
|
|
95686
95918
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
95687
|
-
args:
|
|
95688
|
-
tool: async (client,
|
|
95689
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
95919
|
+
args: args158,
|
|
95920
|
+
tool: async (client, args159, ctx) => {
|
|
95921
|
+
const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95690
95922
|
if (!result.ok) {
|
|
95691
95923
|
return {
|
|
95692
95924
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95701,9 +95933,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
95701
95933
|
|
|
95702
95934
|
// src/funcs/webhooksList.ts
|
|
95703
95935
|
function webhooksList(client, options) {
|
|
95704
|
-
return new APIPromise($
|
|
95936
|
+
return new APIPromise($do164(client, options));
|
|
95705
95937
|
}
|
|
95706
|
-
async function $
|
|
95938
|
+
async function $do164(client, options) {
|
|
95707
95939
|
const path = pathToFunc("/webhooks")();
|
|
95708
95940
|
const headers = new Headers(compactMap({
|
|
95709
95941
|
Accept: "application/json"
|
|
@@ -95789,9 +96021,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
95789
96021
|
|
|
95790
96022
|
// src/funcs/webhooksListEventTypes.ts
|
|
95791
96023
|
function webhooksListEventTypes(client, options) {
|
|
95792
|
-
return new APIPromise($
|
|
96024
|
+
return new APIPromise($do165(client, options));
|
|
95793
96025
|
}
|
|
95794
|
-
async function $
|
|
96026
|
+
async function $do165(client, options) {
|
|
95795
96027
|
const path = pathToFunc("/event-types")();
|
|
95796
96028
|
const headers = new Headers(compactMap({
|
|
95797
96029
|
Accept: "application/json"
|
|
@@ -95877,9 +96109,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
95877
96109
|
|
|
95878
96110
|
// src/funcs/webhooksPing.ts
|
|
95879
96111
|
function webhooksPing(client, request, options) {
|
|
95880
|
-
return new APIPromise($
|
|
96112
|
+
return new APIPromise($do166(client, request, options));
|
|
95881
96113
|
}
|
|
95882
|
-
async function $
|
|
96114
|
+
async function $do166(client, request, options) {
|
|
95883
96115
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95884
96116
|
if (!parsed.ok) {
|
|
95885
96117
|
return [parsed, { status: "invalid" }];
|
|
@@ -95957,20 +96189,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
95957
96189
|
});
|
|
95958
96190
|
|
|
95959
96191
|
// src/mcp-server/tools/webhooksPing.ts
|
|
95960
|
-
var
|
|
96192
|
+
var args159, tool$webhooksPing;
|
|
95961
96193
|
var init_webhooksPing2 = __esm(() => {
|
|
95962
96194
|
init_webhooksPing();
|
|
95963
96195
|
init_operations();
|
|
95964
96196
|
init_tools();
|
|
95965
|
-
|
|
96197
|
+
args159 = {
|
|
95966
96198
|
request: PingWebhookRequest$inboundSchema
|
|
95967
96199
|
};
|
|
95968
96200
|
tool$webhooksPing = {
|
|
95969
96201
|
name: "webhooks-ping",
|
|
95970
96202
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
95971
|
-
args:
|
|
95972
|
-
tool: async (client,
|
|
95973
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
96203
|
+
args: args159,
|
|
96204
|
+
tool: async (client, args160, ctx) => {
|
|
96205
|
+
const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95974
96206
|
if (!result.ok) {
|
|
95975
96207
|
return {
|
|
95976
96208
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95985,9 +96217,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
95985
96217
|
|
|
95986
96218
|
// src/funcs/webhooksUpdate.ts
|
|
95987
96219
|
function webhooksUpdate(client, request, options) {
|
|
95988
|
-
return new APIPromise($
|
|
96220
|
+
return new APIPromise($do167(client, request, options));
|
|
95989
96221
|
}
|
|
95990
|
-
async function $
|
|
96222
|
+
async function $do167(client, request, options) {
|
|
95991
96223
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95992
96224
|
if (!parsed.ok) {
|
|
95993
96225
|
return [parsed, { status: "invalid" }];
|
|
@@ -96069,20 +96301,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
96069
96301
|
});
|
|
96070
96302
|
|
|
96071
96303
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
96072
|
-
var
|
|
96304
|
+
var args160, tool$webhooksUpdate;
|
|
96073
96305
|
var init_webhooksUpdate2 = __esm(() => {
|
|
96074
96306
|
init_webhooksUpdate();
|
|
96075
96307
|
init_operations();
|
|
96076
96308
|
init_tools();
|
|
96077
|
-
|
|
96309
|
+
args160 = {
|
|
96078
96310
|
request: UpdateWebhookRequest$inboundSchema
|
|
96079
96311
|
};
|
|
96080
96312
|
tool$webhooksUpdate = {
|
|
96081
96313
|
name: "webhooks-update",
|
|
96082
96314
|
description: `Update an existing webhook.`,
|
|
96083
|
-
args:
|
|
96084
|
-
tool: async (client,
|
|
96085
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
96315
|
+
args: args160,
|
|
96316
|
+
tool: async (client, args161, ctx) => {
|
|
96317
|
+
const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96086
96318
|
if (!result.ok) {
|
|
96087
96319
|
return {
|
|
96088
96320
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96099,7 +96331,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
96099
96331
|
function createMCPServer(deps) {
|
|
96100
96332
|
const server = new McpServer({
|
|
96101
96333
|
name: "Moov",
|
|
96102
|
-
version: "25.3.
|
|
96334
|
+
version: "25.3.2"
|
|
96103
96335
|
});
|
|
96104
96336
|
const client = new MoovCore({
|
|
96105
96337
|
security: deps.security,
|
|
@@ -96227,6 +96459,7 @@ function createMCPServer(deps) {
|
|
|
96227
96459
|
tool(tool$transfersGet);
|
|
96228
96460
|
tool(tool$transfersUpdate);
|
|
96229
96461
|
tool(tool$transfersCreateCancellation);
|
|
96462
|
+
tool(tool$transfersListCancellations);
|
|
96230
96463
|
tool(tool$transfersGetCancellation);
|
|
96231
96464
|
tool(tool$transfersInitiateRefund);
|
|
96232
96465
|
tool(tool$transfersListRefunds);
|
|
@@ -96435,6 +96668,7 @@ var init_server2 = __esm(() => {
|
|
|
96435
96668
|
init_transfersGetRefund2();
|
|
96436
96669
|
init_transfersInitiateRefund2();
|
|
96437
96670
|
init_transfersList2();
|
|
96671
|
+
init_transfersListCancellations2();
|
|
96438
96672
|
init_transfersListRefunds2();
|
|
96439
96673
|
init_transfersUpdate2();
|
|
96440
96674
|
init_underwritingGet2();
|
|
@@ -97655,7 +97889,7 @@ var routes = rn({
|
|
|
97655
97889
|
var app = Ve(routes, {
|
|
97656
97890
|
name: "mcp",
|
|
97657
97891
|
versionInfo: {
|
|
97658
|
-
currentVersion: "25.3.
|
|
97892
|
+
currentVersion: "25.3.2"
|
|
97659
97893
|
}
|
|
97660
97894
|
});
|
|
97661
97895
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -97663,5 +97897,5 @@ export {
|
|
|
97663
97897
|
app
|
|
97664
97898
|
};
|
|
97665
97899
|
|
|
97666
|
-
//# debugId=
|
|
97900
|
+
//# debugId=03D635011ED2882964756E2164756E21
|
|
97667
97901
|
//# sourceMappingURL=mcp-server.js.map
|