@moovio/sdk 0.0.0-dev.24 → 0.0.0-dev.25
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 +90 -86
- package/bin/mcp-server.js +670 -357
- package/bin/mcp-server.js.map +68 -66
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/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/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 -23
- 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/amountdecimalrange.d.ts +15 -4
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js +5 -4
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +11 -0
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardtransactiondetails.d.ts +5 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +2 -0
- package/models/components/cardtransactiondetails.js.map +1 -1
- package/models/components/cardtransactionstatus.d.ts +1 -0
- package/models/components/cardtransactionstatus.d.ts.map +1 -1
- package/models/components/cardtransactionstatus.js +1 -0
- package/models/components/cardtransactionstatus.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 +9 -3
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +4 -0
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createtransferdestinationcard.d.ts +5 -0
- package/models/components/createtransferdestinationcard.d.ts.map +1 -1
- package/models/components/createtransferdestinationcard.js +2 -0
- package/models/components/createtransferdestinationcard.js.map +1 -1
- package/models/components/customamountpaymentdetailserror.d.ts +29 -0
- package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
- package/models/components/customamountpaymentdetailserror.js +71 -0
- package/models/components/customamountpaymentdetailserror.js.map +1 -0
- package/models/components/fullissuedcard.d.ts +25 -9
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +4 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -4
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/paymentlink.d.ts +13 -2
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +4 -0
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
- package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetails.js +1 -21
- package/models/components/paymentlinkpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
- package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinktype.d.ts +1 -0
- package/models/components/paymentlinktype.d.ts.map +1 -1
- package/models/components/paymentlinktype.js +1 -0
- package/models/components/paymentlinktype.js.map +1 -1
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updatepaymentlink.d.ts +6 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +3 -0
- package/models/components/updatepaymentlink.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/createpaymentlinkerror.d.ts +3 -0
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +6 -0
- package/models/errors/createpaymentlinkerror.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/errors/updatepaymentlinkerror.d.ts +3 -0
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +6 -0
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +91 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/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/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/amountdecimalrange.ts +20 -8
- package/src/models/components/amountdecimalrangeupdate.ts +11 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/cardtransactiondetails.ts +7 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +21 -3
- package/src/models/components/createtransferdestinationcard.ts +7 -0
- package/src/models/components/customamountpaymentdetailserror.ts +86 -0
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +4 -4
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/paymentlink.ts +25 -2
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
- package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
- package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
- package/src/models/components/paymentlinktype.ts +1 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/updatepaymentlink.ts +18 -0
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +66 -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/createpaymentlinkerror.ts +13 -0
- package/src/models/errors/requestcarderror.ts +26 -27
- package/src/models/errors/updateissuedcarderror.ts +18 -15
- package/src/models/errors/updatepaymentlinkerror.ts +13 -0
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +121 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- 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 -64
- 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 -64
- 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 -55
- package/src/models/components/createauthorizeduser.ts +0 -69
- package/src/models/components/createauthorizedusererror.ts +0 -66
- package/src/models/components/createauthorizeduserupdate.ts +0 -69
package/bin/mcp-server.js
CHANGED
|
@@ -37787,6 +37787,57 @@ function remap(inp, mappings) {
|
|
|
37787
37787
|
}
|
|
37788
37788
|
return out;
|
|
37789
37789
|
}
|
|
37790
|
+
function combineSignals(...signals) {
|
|
37791
|
+
const filtered = [];
|
|
37792
|
+
for (const signal of signals) {
|
|
37793
|
+
if (signal) {
|
|
37794
|
+
filtered.push(signal);
|
|
37795
|
+
}
|
|
37796
|
+
}
|
|
37797
|
+
switch (filtered.length) {
|
|
37798
|
+
case 0:
|
|
37799
|
+
case 1:
|
|
37800
|
+
return filtered[0] || null;
|
|
37801
|
+
default:
|
|
37802
|
+
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
|
|
37803
|
+
return AbortSignal.any(filtered);
|
|
37804
|
+
}
|
|
37805
|
+
return abortSignalAny(filtered);
|
|
37806
|
+
}
|
|
37807
|
+
}
|
|
37808
|
+
function abortSignalAny(signals) {
|
|
37809
|
+
const controller = new AbortController;
|
|
37810
|
+
const result = controller.signal;
|
|
37811
|
+
if (!signals.length) {
|
|
37812
|
+
return controller.signal;
|
|
37813
|
+
}
|
|
37814
|
+
if (signals.length === 1) {
|
|
37815
|
+
return signals[0] || controller.signal;
|
|
37816
|
+
}
|
|
37817
|
+
for (const signal of signals) {
|
|
37818
|
+
if (signal.aborted) {
|
|
37819
|
+
return signal;
|
|
37820
|
+
}
|
|
37821
|
+
}
|
|
37822
|
+
function abort() {
|
|
37823
|
+
controller.abort(this.reason);
|
|
37824
|
+
clean();
|
|
37825
|
+
}
|
|
37826
|
+
const signalRefs = [];
|
|
37827
|
+
function clean() {
|
|
37828
|
+
for (const signalRef of signalRefs) {
|
|
37829
|
+
const signal = signalRef.deref();
|
|
37830
|
+
if (signal) {
|
|
37831
|
+
signal.removeEventListener("abort", abort);
|
|
37832
|
+
}
|
|
37833
|
+
}
|
|
37834
|
+
}
|
|
37835
|
+
for (const signal of signals) {
|
|
37836
|
+
signalRefs.push(new WeakRef(signal));
|
|
37837
|
+
signal.addEventListener("abort", abort);
|
|
37838
|
+
}
|
|
37839
|
+
return result;
|
|
37840
|
+
}
|
|
37790
37841
|
function compactMap(values) {
|
|
37791
37842
|
const out = {};
|
|
37792
37843
|
for (const [k2, v2] of Object.entries(values)) {
|
|
@@ -37802,6 +37853,20 @@ function allRequired(v2) {
|
|
|
37802
37853
|
}
|
|
37803
37854
|
return v2;
|
|
37804
37855
|
}
|
|
37856
|
+
function isPlainObject2(value) {
|
|
37857
|
+
if (value === null || typeof value !== "object")
|
|
37858
|
+
return false;
|
|
37859
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
37860
|
+
return false;
|
|
37861
|
+
const proto = Object.getPrototypeOf(value);
|
|
37862
|
+
if (proto === null || proto === Object.prototype)
|
|
37863
|
+
return true;
|
|
37864
|
+
try {
|
|
37865
|
+
return Object.getPrototypeOf(proto) === null;
|
|
37866
|
+
} catch {
|
|
37867
|
+
return false;
|
|
37868
|
+
}
|
|
37869
|
+
}
|
|
37805
37870
|
var init_primitives = () => {};
|
|
37806
37871
|
|
|
37807
37872
|
// node_modules/zod/v4/mini/parse.js
|
|
@@ -40301,7 +40366,7 @@ class Protocol {
|
|
|
40301
40366
|
};
|
|
40302
40367
|
}
|
|
40303
40368
|
}
|
|
40304
|
-
function
|
|
40369
|
+
function isPlainObject3(value) {
|
|
40305
40370
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
40306
40371
|
}
|
|
40307
40372
|
function mergeCapabilities(base, additional) {
|
|
@@ -40312,7 +40377,7 @@ function mergeCapabilities(base, additional) {
|
|
|
40312
40377
|
if (addValue === undefined)
|
|
40313
40378
|
continue;
|
|
40314
40379
|
const baseValue = result[k2];
|
|
40315
|
-
if (
|
|
40380
|
+
if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
|
|
40316
40381
|
result[k2] = { ...baseValue, ...addValue };
|
|
40317
40382
|
} else {
|
|
40318
40383
|
result[k2] = addValue;
|
|
@@ -53586,9 +53651,9 @@ var init_config = __esm(() => {
|
|
|
53586
53651
|
SDK_METADATA = {
|
|
53587
53652
|
language: "typescript",
|
|
53588
53653
|
openapiDocVersion: "dev",
|
|
53589
|
-
sdkVersion: "0.0.0-dev.
|
|
53590
|
-
genVersion: "2.
|
|
53591
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
53654
|
+
sdkVersion: "0.0.0-dev.25",
|
|
53655
|
+
genVersion: "2.911.0",
|
|
53656
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.25 2.911.0 dev @moovio/sdk"
|
|
53592
53657
|
};
|
|
53593
53658
|
});
|
|
53594
53659
|
|
|
@@ -53761,15 +53826,6 @@ var init_base64 = __esm(() => {
|
|
|
53761
53826
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
53762
53827
|
});
|
|
53763
53828
|
|
|
53764
|
-
// src/lib/is-plain-object.ts
|
|
53765
|
-
function isPlainObject3(value) {
|
|
53766
|
-
if (typeof value !== "object" || value === null) {
|
|
53767
|
-
return false;
|
|
53768
|
-
}
|
|
53769
|
-
const prototype = Object.getPrototypeOf(value);
|
|
53770
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
53771
|
-
}
|
|
53772
|
-
|
|
53773
53829
|
// src/lib/encodings.ts
|
|
53774
53830
|
function formEncoder(sep) {
|
|
53775
53831
|
return (key, value, options) => {
|
|
@@ -53790,7 +53846,7 @@ function formEncoder(sep) {
|
|
|
53790
53846
|
return;
|
|
53791
53847
|
} else if (Array.isArray(pv)) {
|
|
53792
53848
|
encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
|
|
53793
|
-
} else if (
|
|
53849
|
+
} else if (isPlainObject2(pv)) {
|
|
53794
53850
|
encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53795
53851
|
return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
|
|
53796
53852
|
})?.join(encodedSep);
|
|
@@ -53813,7 +53869,7 @@ function encodeDeepObject(key, value, options) {
|
|
|
53813
53869
|
if (value == null) {
|
|
53814
53870
|
return;
|
|
53815
53871
|
}
|
|
53816
|
-
if (!
|
|
53872
|
+
if (!isPlainObject2(value)) {
|
|
53817
53873
|
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
53818
53874
|
}
|
|
53819
53875
|
return encodeDeepObjectObject(key, value, options);
|
|
@@ -53826,7 +53882,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53826
53882
|
const encodeString = (v2) => {
|
|
53827
53883
|
return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
|
|
53828
53884
|
};
|
|
53829
|
-
if (!
|
|
53885
|
+
if (!isPlainObject2(value)) {
|
|
53830
53886
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
53831
53887
|
}
|
|
53832
53888
|
Object.entries(value).forEach(([ck, cv]) => {
|
|
@@ -53834,7 +53890,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53834
53890
|
return;
|
|
53835
53891
|
}
|
|
53836
53892
|
const pk = `${key}[${ck}]`;
|
|
53837
|
-
if (
|
|
53893
|
+
if (isPlainObject2(cv)) {
|
|
53838
53894
|
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
53839
53895
|
out += objOut == null ? "" : `&${objOut}`;
|
|
53840
53896
|
return;
|
|
@@ -53860,7 +53916,7 @@ function encodeJSON(key, value, options) {
|
|
|
53860
53916
|
function explode(key, value) {
|
|
53861
53917
|
if (Array.isArray(value)) {
|
|
53862
53918
|
return value.map((v2) => [key, v2]);
|
|
53863
|
-
} else if (
|
|
53919
|
+
} else if (isPlainObject2(value)) {
|
|
53864
53920
|
const o = value ?? {};
|
|
53865
53921
|
return Object.entries(o).map(([k2, v2]) => [k2, v2]);
|
|
53866
53922
|
} else {
|
|
@@ -53985,13 +54041,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53985
54041
|
return;
|
|
53986
54042
|
} else if (Array.isArray(pv)) {
|
|
53987
54043
|
tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
|
|
53988
|
-
} else if (
|
|
54044
|
+
} else if (isPlainObject2(pv)) {
|
|
53989
54045
|
const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53990
54046
|
return `,${encodeString(k2)},${encodeValue(v2)}`;
|
|
53991
54047
|
});
|
|
53992
54048
|
tmp = mapped?.join("").slice(1);
|
|
53993
54049
|
} else {
|
|
53994
|
-
const k2 = options?.explode &&
|
|
54050
|
+
const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
|
|
53995
54051
|
tmp = `${k2}${encodeValue(pv)}`;
|
|
53996
54052
|
}
|
|
53997
54053
|
out += tmp ? `,${tmp}` : "";
|
|
@@ -54000,6 +54056,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
54000
54056
|
}, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
54001
54057
|
var init_encodings = __esm(() => {
|
|
54002
54058
|
init_base64();
|
|
54059
|
+
init_primitives();
|
|
54003
54060
|
EncodingError = class EncodingError extends Error {
|
|
54004
54061
|
constructor(message) {
|
|
54005
54062
|
super(message);
|
|
@@ -54265,6 +54322,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
54265
54322
|
}
|
|
54266
54323
|
}
|
|
54267
54324
|
function retryIntervalFromResponse(res) {
|
|
54325
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
54326
|
+
if (retryAfterMsVal) {
|
|
54327
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
54328
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
54329
|
+
return parsedMs;
|
|
54330
|
+
}
|
|
54331
|
+
}
|
|
54268
54332
|
const retryVal = res.headers.get("retry-after") || "";
|
|
54269
54333
|
if (!retryVal) {
|
|
54270
54334
|
return 0;
|
|
@@ -54356,24 +54420,41 @@ class ClientSDK {
|
|
|
54356
54420
|
if (path) {
|
|
54357
54421
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
54358
54422
|
reqURL = new URL(path, baseURL);
|
|
54423
|
+
if (!reqURL.search && baseURL.search) {
|
|
54424
|
+
reqURL.search = baseURL.search;
|
|
54425
|
+
}
|
|
54359
54426
|
} else {
|
|
54360
54427
|
reqURL = baseURL;
|
|
54361
54428
|
}
|
|
54362
54429
|
reqURL.hash = "";
|
|
54363
|
-
|
|
54364
|
-
|
|
54365
|
-
|
|
54366
|
-
const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
|
|
54367
|
-
if (typeof q2 !== "undefined") {
|
|
54368
|
-
secQuery.push(q2);
|
|
54430
|
+
const mergeQuery = (current, additions) => {
|
|
54431
|
+
if (!additions) {
|
|
54432
|
+
return current;
|
|
54369
54433
|
}
|
|
54370
|
-
|
|
54371
|
-
|
|
54372
|
-
|
|
54373
|
-
|
|
54434
|
+
const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
|
|
54435
|
+
const kept = current.split("&").filter((pair) => {
|
|
54436
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
54437
|
+
});
|
|
54438
|
+
return [...kept, additions].join("&");
|
|
54439
|
+
};
|
|
54440
|
+
const encodeQueryRecord = (record3) => {
|
|
54441
|
+
return Object.entries(record3).map(([k2, v2]) => {
|
|
54442
|
+
if (v2 == null) {
|
|
54443
|
+
return;
|
|
54444
|
+
}
|
|
54445
|
+
const value = v2;
|
|
54446
|
+
return encodeForm(k2, value, {
|
|
54447
|
+
explode: Array.isArray(value),
|
|
54448
|
+
charEncoding: "percent"
|
|
54449
|
+
});
|
|
54450
|
+
}).filter((pair) => typeof pair !== "undefined").join("&");
|
|
54451
|
+
};
|
|
54452
|
+
const finalQuery = [
|
|
54453
|
+
query || "",
|
|
54454
|
+
encodeQueryRecord(security?.queryParams || {})
|
|
54455
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
54374
54456
|
if (finalQuery) {
|
|
54375
|
-
|
|
54376
|
-
reqURL.search = `?${q2}`;
|
|
54457
|
+
reqURL.search = `?${finalQuery}`;
|
|
54377
54458
|
}
|
|
54378
54459
|
const headers = new Headers(opHeaders);
|
|
54379
54460
|
const username = security?.basic.username;
|
|
@@ -54403,9 +54484,8 @@ class ClientSDK {
|
|
|
54403
54484
|
...options?.fetchOptions,
|
|
54404
54485
|
...options
|
|
54405
54486
|
};
|
|
54406
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
54407
|
-
|
|
54408
|
-
fetchOptions.signal = timeoutSignal;
|
|
54487
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
54488
|
+
context.timeoutMs = conf.timeoutMs;
|
|
54409
54489
|
}
|
|
54410
54490
|
if (conf.body instanceof ReadableStream) {
|
|
54411
54491
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -54430,8 +54510,16 @@ class ClientSDK {
|
|
|
54430
54510
|
}
|
|
54431
54511
|
async _do(request, options) {
|
|
54432
54512
|
const { context, isErrorStatusCode } = options;
|
|
54513
|
+
const timeoutMs = context.timeoutMs;
|
|
54433
54514
|
return retry(async () => {
|
|
54434
|
-
const
|
|
54515
|
+
const cloned = request.clone();
|
|
54516
|
+
let attempt = cloned;
|
|
54517
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
54518
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
54519
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
54520
|
+
attempt = new Request(cloned, { signal: combined });
|
|
54521
|
+
}
|
|
54522
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
54435
54523
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
54436
54524
|
let response = await this.#httpClient.request(req);
|
|
54437
54525
|
try {
|
|
@@ -54549,6 +54637,7 @@ var init_sdks = __esm(() => {
|
|
|
54549
54637
|
init_config();
|
|
54550
54638
|
init_encodings();
|
|
54551
54639
|
init_http();
|
|
54640
|
+
init_primitives();
|
|
54552
54641
|
init_retries();
|
|
54553
54642
|
gt2 = typeof globalThis === "undefined" ? null : globalThis;
|
|
54554
54643
|
webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
|
|
@@ -54998,7 +55087,7 @@ function match(...matchers) {
|
|
|
54998
55087
|
data = {
|
|
54999
55088
|
...options?.extraFields,
|
|
55000
55089
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
55001
|
-
...
|
|
55090
|
+
...isPlainObject2(raw) ? raw : null,
|
|
55002
55091
|
request$: request,
|
|
55003
55092
|
response$: response,
|
|
55004
55093
|
body$: body
|
|
@@ -55013,7 +55102,7 @@ function match(...matchers) {
|
|
|
55013
55102
|
data = {
|
|
55014
55103
|
...options?.extraFields,
|
|
55015
55104
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
55016
|
-
...
|
|
55105
|
+
...isPlainObject2(raw) ? raw : null
|
|
55017
55106
|
};
|
|
55018
55107
|
} else {
|
|
55019
55108
|
data = raw;
|
|
@@ -55053,6 +55142,7 @@ var init_matchers = __esm(() => {
|
|
|
55053
55142
|
init_apierror();
|
|
55054
55143
|
init_responsevalidationerror();
|
|
55055
55144
|
init_http();
|
|
55145
|
+
init_primitives();
|
|
55056
55146
|
DEFAULT_CONTENT_TYPES = {
|
|
55057
55147
|
jsonl: "application/jsonl",
|
|
55058
55148
|
json: "application/json",
|
|
@@ -56970,14 +57060,15 @@ var init_amount = __esm(() => {
|
|
|
56970
57060
|
var AmountDecimalRange$inboundSchema, AmountDecimalRange$outboundSchema;
|
|
56971
57061
|
var init_amountdecimalrange = __esm(() => {
|
|
56972
57062
|
init_v3();
|
|
57063
|
+
init_primitives2();
|
|
56973
57064
|
init_amountdecimal();
|
|
56974
57065
|
AmountDecimalRange$inboundSchema = objectType({
|
|
56975
|
-
minimum: AmountDecimal$inboundSchema,
|
|
56976
|
-
maximum: AmountDecimal$inboundSchema
|
|
57066
|
+
minimum: optional3(AmountDecimal$inboundSchema),
|
|
57067
|
+
maximum: optional3(AmountDecimal$inboundSchema)
|
|
56977
57068
|
});
|
|
56978
57069
|
AmountDecimalRange$outboundSchema = objectType({
|
|
56979
|
-
minimum: AmountDecimal$outboundSchema,
|
|
56980
|
-
maximum: AmountDecimal$outboundSchema
|
|
57070
|
+
minimum: AmountDecimal$outboundSchema.optional(),
|
|
57071
|
+
maximum: AmountDecimal$outboundSchema.optional()
|
|
56981
57072
|
});
|
|
56982
57073
|
});
|
|
56983
57074
|
|
|
@@ -57389,21 +57480,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
57389
57480
|
});
|
|
57390
57481
|
});
|
|
57391
57482
|
|
|
57392
|
-
// src/models/components/authorizeduser.ts
|
|
57393
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
57394
|
-
var init_authorizeduser = __esm(() => {
|
|
57395
|
-
init_v3();
|
|
57396
|
-
init_primitives2();
|
|
57397
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
57398
|
-
firstName: string4(),
|
|
57399
|
-
lastName: string4()
|
|
57400
|
-
});
|
|
57401
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
57402
|
-
firstName: stringType(),
|
|
57403
|
-
lastName: stringType()
|
|
57404
|
-
});
|
|
57405
|
-
});
|
|
57406
|
-
|
|
57407
57483
|
// src/models/components/tokentype.ts
|
|
57408
57484
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
57409
57485
|
var init_tokentype = __esm(() => {
|
|
@@ -61609,7 +61685,8 @@ var init_cardtransactionstatus = __esm(() => {
|
|
|
61609
61685
|
Canceled: "canceled",
|
|
61610
61686
|
Settled: "settled",
|
|
61611
61687
|
Failed: "failed",
|
|
61612
|
-
Completed: "completed"
|
|
61688
|
+
Completed: "completed",
|
|
61689
|
+
Deferred: "deferred"
|
|
61613
61690
|
};
|
|
61614
61691
|
CardTransactionStatus$inboundSchema = inboundSchema(CardTransactionStatus);
|
|
61615
61692
|
CardTransactionStatus$outboundSchema = outboundSchema(CardTransactionStatus);
|
|
@@ -61640,6 +61717,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
61640
61717
|
status: optional3(CardTransactionStatus$inboundSchema),
|
|
61641
61718
|
failureCode: optional3(CardTransactionFailureCode$inboundSchema),
|
|
61642
61719
|
dynamicDescriptor: optional3(string4()),
|
|
61720
|
+
scheduledDeliveryOn: optional3(date4()),
|
|
61643
61721
|
transactionSource: optional3(TransactionSource$inboundSchema),
|
|
61644
61722
|
initiatedOn: optional3(date4()),
|
|
61645
61723
|
confirmedOn: optional3(date4()),
|
|
@@ -61655,6 +61733,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
61655
61733
|
status: CardTransactionStatus$outboundSchema.optional(),
|
|
61656
61734
|
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
61657
61735
|
dynamicDescriptor: stringType().optional(),
|
|
61736
|
+
scheduledDeliveryOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
61658
61737
|
transactionSource: TransactionSource$outboundSchema.optional(),
|
|
61659
61738
|
initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
61660
61739
|
confirmedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
@@ -62299,60 +62378,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
62299
62378
|
});
|
|
62300
62379
|
});
|
|
62301
62380
|
|
|
62302
|
-
// src/models/components/createauthorizeduser.ts
|
|
62303
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
62304
|
-
var init_createauthorizeduser = __esm(() => {
|
|
62305
|
-
init_v3();
|
|
62306
|
-
init_primitives2();
|
|
62307
|
-
init_birthdate();
|
|
62308
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
62309
|
-
firstName: string4(),
|
|
62310
|
-
lastName: string4(),
|
|
62311
|
-
birthDate: optional3(BirthDate$inboundSchema)
|
|
62312
|
-
});
|
|
62313
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
62314
|
-
firstName: stringType(),
|
|
62315
|
-
lastName: stringType(),
|
|
62316
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
62317
|
-
});
|
|
62318
|
-
});
|
|
62319
|
-
|
|
62320
|
-
// src/models/components/createauthorizedusererror.ts
|
|
62321
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
62322
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
62323
|
-
init_v3();
|
|
62324
|
-
init_primitives2();
|
|
62325
|
-
init_birthdateerror();
|
|
62326
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
62327
|
-
firstName: optional3(string4()),
|
|
62328
|
-
lastName: optional3(string4()),
|
|
62329
|
-
birthDate: optional3(BirthDateError$inboundSchema)
|
|
62330
|
-
});
|
|
62331
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
62332
|
-
firstName: stringType().optional(),
|
|
62333
|
-
lastName: stringType().optional(),
|
|
62334
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
62335
|
-
});
|
|
62336
|
-
});
|
|
62337
|
-
|
|
62338
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
62339
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
62340
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
62341
|
-
init_v3();
|
|
62342
|
-
init_primitives2();
|
|
62343
|
-
init_birthdateupdate();
|
|
62344
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
62345
|
-
firstName: optional3(string4()),
|
|
62346
|
-
lastName: optional3(string4()),
|
|
62347
|
-
birthDate: optional3(BirthDateUpdate$inboundSchema)
|
|
62348
|
-
});
|
|
62349
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
62350
|
-
firstName: stringType().optional(),
|
|
62351
|
-
lastName: stringType().optional(),
|
|
62352
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
62353
|
-
});
|
|
62354
|
-
});
|
|
62355
|
-
|
|
62356
62381
|
// src/models/components/phonenumbererror.ts
|
|
62357
62382
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
62358
62383
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -63397,6 +63422,34 @@ var init_createpaymentlinklineitems = __esm(() => {
|
|
|
63397
63422
|
});
|
|
63398
63423
|
});
|
|
63399
63424
|
|
|
63425
|
+
// src/models/components/paymentlinkcustomamountpaymentdetails.ts
|
|
63426
|
+
var PaymentLinkCustomAmountPaymentDetails$inboundSchema, PaymentLinkCustomAmountPaymentDetails$outboundSchema;
|
|
63427
|
+
var init_paymentlinkcustomamountpaymentdetails = __esm(() => {
|
|
63428
|
+
init_v3();
|
|
63429
|
+
init_primitives2();
|
|
63430
|
+
init_achpaymentdetails();
|
|
63431
|
+
init_amountdecimal();
|
|
63432
|
+
init_amountdecimalrange();
|
|
63433
|
+
init_cardpaymentdetails();
|
|
63434
|
+
init_collectionpaymentmethodtype();
|
|
63435
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema = objectType({
|
|
63436
|
+
allowedMethods: arrayType(CollectionPaymentMethodType$inboundSchema),
|
|
63437
|
+
cardDetails: optional3(CardPaymentDetails$inboundSchema),
|
|
63438
|
+
achDetails: optional3(ACHPaymentDetails$inboundSchema),
|
|
63439
|
+
metadata: optional3(recordType(string4())),
|
|
63440
|
+
amountRange: optional3(AmountDecimalRange$inboundSchema),
|
|
63441
|
+
suggestedAmounts: optional3(arrayType(AmountDecimal$inboundSchema))
|
|
63442
|
+
});
|
|
63443
|
+
PaymentLinkCustomAmountPaymentDetails$outboundSchema = objectType({
|
|
63444
|
+
allowedMethods: arrayType(CollectionPaymentMethodType$outboundSchema),
|
|
63445
|
+
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
63446
|
+
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
63447
|
+
metadata: recordType(stringType()).optional(),
|
|
63448
|
+
amountRange: AmountDecimalRange$outboundSchema.optional(),
|
|
63449
|
+
suggestedAmounts: arrayType(AmountDecimal$outboundSchema).optional()
|
|
63450
|
+
});
|
|
63451
|
+
});
|
|
63452
|
+
|
|
63400
63453
|
// src/models/components/paymentlinkcustomeroptions.ts
|
|
63401
63454
|
var PaymentLinkCustomerOptions$inboundSchema, PaymentLinkCustomerOptions$outboundSchema;
|
|
63402
63455
|
var init_paymentlinkcustomeroptions = __esm(() => {
|
|
@@ -63435,36 +63488,21 @@ var init_paymentlinkdisplayoptions = __esm(() => {
|
|
|
63435
63488
|
});
|
|
63436
63489
|
|
|
63437
63490
|
// src/models/components/paymentlinkpaymentdetails.ts
|
|
63438
|
-
var
|
|
63491
|
+
var PaymentLinkPaymentDetails$inboundSchema, PaymentLinkPaymentDetails$outboundSchema;
|
|
63439
63492
|
var init_paymentlinkpaymentdetails = __esm(() => {
|
|
63440
63493
|
init_v3();
|
|
63441
|
-
init_enums();
|
|
63442
63494
|
init_primitives2();
|
|
63443
63495
|
init_achpaymentdetails();
|
|
63444
|
-
init_amountdecimal();
|
|
63445
|
-
init_amountdecimalrange();
|
|
63446
63496
|
init_cardpaymentdetails();
|
|
63447
63497
|
init_collectionpaymentmethodtype();
|
|
63448
|
-
AmountType = {
|
|
63449
|
-
Fixed: "fixed",
|
|
63450
|
-
Open: "open"
|
|
63451
|
-
};
|
|
63452
|
-
AmountType$inboundSchema = inboundSchema(AmountType);
|
|
63453
|
-
AmountType$outboundSchema = outboundSchema(AmountType);
|
|
63454
63498
|
PaymentLinkPaymentDetails$inboundSchema = objectType({
|
|
63455
63499
|
allowedMethods: arrayType(CollectionPaymentMethodType$inboundSchema),
|
|
63456
|
-
amountType: AmountType$inboundSchema.default("fixed"),
|
|
63457
|
-
amountRange: optional3(AmountDecimalRange$inboundSchema),
|
|
63458
|
-
suggestedAmounts: optional3(arrayType(AmountDecimal$inboundSchema)),
|
|
63459
63500
|
cardDetails: optional3(CardPaymentDetails$inboundSchema),
|
|
63460
63501
|
achDetails: optional3(ACHPaymentDetails$inboundSchema),
|
|
63461
63502
|
metadata: optional3(recordType(string4()))
|
|
63462
63503
|
});
|
|
63463
63504
|
PaymentLinkPaymentDetails$outboundSchema = objectType({
|
|
63464
63505
|
allowedMethods: arrayType(CollectionPaymentMethodType$outboundSchema),
|
|
63465
|
-
amountType: AmountType$outboundSchema.default("fixed"),
|
|
63466
|
-
amountRange: AmountDecimalRange$outboundSchema.optional(),
|
|
63467
|
-
suggestedAmounts: arrayType(AmountDecimal$outboundSchema).optional(),
|
|
63468
63506
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
63469
63507
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
63470
63508
|
metadata: recordType(stringType()).optional()
|
|
@@ -63530,6 +63568,7 @@ var init_createpaymentlink = __esm(() => {
|
|
|
63530
63568
|
init_amount();
|
|
63531
63569
|
init_createpaymentlinkamountdetails();
|
|
63532
63570
|
init_createpaymentlinklineitems();
|
|
63571
|
+
init_paymentlinkcustomamountpaymentdetails();
|
|
63533
63572
|
init_paymentlinkcustomeroptions();
|
|
63534
63573
|
init_paymentlinkdisplayoptions();
|
|
63535
63574
|
init_paymentlinkpaymentdetails();
|
|
@@ -63544,6 +63583,7 @@ var init_createpaymentlink = __esm(() => {
|
|
|
63544
63583
|
customer: optional3(PaymentLinkCustomerOptions$inboundSchema),
|
|
63545
63584
|
payment: optional3(PaymentLinkPaymentDetails$inboundSchema),
|
|
63546
63585
|
payout: optional3(PaymentLinkPayoutDetails$inboundSchema),
|
|
63586
|
+
customAmountPayment: optional3(PaymentLinkCustomAmountPaymentDetails$inboundSchema),
|
|
63547
63587
|
lineItems: optional3(CreatePaymentLinkLineItems$inboundSchema),
|
|
63548
63588
|
amountDetails: optional3(CreatePaymentLinkAmountDetails$inboundSchema)
|
|
63549
63589
|
});
|
|
@@ -63557,6 +63597,7 @@ var init_createpaymentlink = __esm(() => {
|
|
|
63557
63597
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
63558
63598
|
payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
|
|
63559
63599
|
payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
|
|
63600
|
+
customAmountPayment: PaymentLinkCustomAmountPaymentDetails$outboundSchema.optional(),
|
|
63560
63601
|
lineItems: CreatePaymentLinkLineItems$outboundSchema.optional(),
|
|
63561
63602
|
amountDetails: CreatePaymentLinkAmountDetails$outboundSchema.optional()
|
|
63562
63603
|
});
|
|
@@ -64329,10 +64370,12 @@ var init_createtransferdestinationcard = __esm(() => {
|
|
|
64329
64370
|
init_cardpayouttype();
|
|
64330
64371
|
CreateTransferDestinationCard$inboundSchema = objectType({
|
|
64331
64372
|
dynamicDescriptor: optional3(string4()),
|
|
64373
|
+
scheduledDeliveryOn: optional3(date4()),
|
|
64332
64374
|
payoutType: optional3(CardPayoutType$inboundSchema)
|
|
64333
64375
|
});
|
|
64334
64376
|
CreateTransferDestinationCard$outboundSchema = objectType({
|
|
64335
64377
|
dynamicDescriptor: stringType().optional(),
|
|
64378
|
+
scheduledDeliveryOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
64336
64379
|
payoutType: CardPayoutType$outboundSchema.optional()
|
|
64337
64380
|
});
|
|
64338
64381
|
});
|
|
@@ -64698,7 +64741,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
64698
64741
|
WalletCreated: "wallet.created",
|
|
64699
64742
|
WalletUpdated: "wallet.updated",
|
|
64700
64743
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
64701
|
-
BillingStatementCreated: "billingStatement.created"
|
|
64744
|
+
BillingStatementCreated: "billingStatement.created",
|
|
64745
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
64702
64746
|
};
|
|
64703
64747
|
WebhookEventType$inboundSchema = inboundSchema(WebhookEventType);
|
|
64704
64748
|
WebhookEventType$outboundSchema = outboundSchema(WebhookEventType);
|
|
@@ -64737,6 +64781,31 @@ var init_createwebhook = __esm(() => {
|
|
|
64737
64781
|
});
|
|
64738
64782
|
});
|
|
64739
64783
|
|
|
64784
|
+
// src/models/components/customamountpaymentdetailserror.ts
|
|
64785
|
+
var CustomAmountPaymentDetailsError$inboundSchema, CustomAmountPaymentDetailsError$outboundSchema;
|
|
64786
|
+
var init_customamountpaymentdetailserror = __esm(() => {
|
|
64787
|
+
init_v3();
|
|
64788
|
+
init_primitives2();
|
|
64789
|
+
init_achpaymentdetailserror();
|
|
64790
|
+
init_cardpaymentdetailserror();
|
|
64791
|
+
CustomAmountPaymentDetailsError$inboundSchema = objectType({
|
|
64792
|
+
allowedMethods: optional3(string4()),
|
|
64793
|
+
cardDetails: optional3(CardPaymentDetailsError$inboundSchema),
|
|
64794
|
+
achDetails: optional3(ACHPaymentDetailsError$inboundSchema),
|
|
64795
|
+
metadata: optional3(string4()),
|
|
64796
|
+
amountRange: optional3(string4()),
|
|
64797
|
+
suggestedAmounts: optional3(string4())
|
|
64798
|
+
});
|
|
64799
|
+
CustomAmountPaymentDetailsError$outboundSchema = objectType({
|
|
64800
|
+
allowedMethods: stringType().optional(),
|
|
64801
|
+
cardDetails: CardPaymentDetailsError$outboundSchema.optional(),
|
|
64802
|
+
achDetails: ACHPaymentDetailsError$outboundSchema.optional(),
|
|
64803
|
+
metadata: stringType().optional(),
|
|
64804
|
+
amountRange: stringType().optional(),
|
|
64805
|
+
suggestedAmounts: stringType().optional()
|
|
64806
|
+
});
|
|
64807
|
+
});
|
|
64808
|
+
|
|
64740
64809
|
// src/models/components/customersupporterror.ts
|
|
64741
64810
|
var CustomerSupportError$inboundSchema, CustomerSupportError$outboundSchema;
|
|
64742
64811
|
var init_customersupporterror = __esm(() => {
|
|
@@ -65487,7 +65556,7 @@ var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
|
65487
65556
|
var init_fullissuedcard = __esm(() => {
|
|
65488
65557
|
init_v3();
|
|
65489
65558
|
init_primitives2();
|
|
65490
|
-
|
|
65559
|
+
init_address();
|
|
65491
65560
|
init_cardbrand();
|
|
65492
65561
|
init_cardexpiration();
|
|
65493
65562
|
init_issuedcardformfactor();
|
|
@@ -65498,13 +65567,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
65498
65567
|
brand: CardBrand$inboundSchema,
|
|
65499
65568
|
lastFourCardNumber: string4(),
|
|
65500
65569
|
expiration: CardExpiration$inboundSchema,
|
|
65501
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
65502
|
-
memo: optional3(string4()),
|
|
65503
65570
|
fundingWalletID: string4(),
|
|
65571
|
+
authorizedUserAccountID: optional3(string4()),
|
|
65572
|
+
nickname: optional3(string4()),
|
|
65573
|
+
metadata: optional3(recordType(string4())),
|
|
65574
|
+
billingAddress: optional3(Address$inboundSchema),
|
|
65504
65575
|
state: IssuedCardState$inboundSchema,
|
|
65505
65576
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
65506
65577
|
controls: optional3(IssuingControls$inboundSchema),
|
|
65507
65578
|
createdOn: date4(),
|
|
65579
|
+
updatedOn: date4(),
|
|
65508
65580
|
pan: string4(),
|
|
65509
65581
|
cvv: string4()
|
|
65510
65582
|
});
|
|
@@ -65513,13 +65585,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
65513
65585
|
brand: CardBrand$outboundSchema,
|
|
65514
65586
|
lastFourCardNumber: stringType(),
|
|
65515
65587
|
expiration: CardExpiration$outboundSchema,
|
|
65516
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
65517
|
-
memo: stringType().optional(),
|
|
65518
65588
|
fundingWalletID: stringType(),
|
|
65589
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65590
|
+
nickname: stringType().optional(),
|
|
65591
|
+
metadata: recordType(stringType()).optional(),
|
|
65592
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
65519
65593
|
state: IssuedCardState$outboundSchema,
|
|
65520
65594
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
65521
65595
|
controls: IssuingControls$outboundSchema.optional(),
|
|
65522
65596
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
65597
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
65523
65598
|
pan: stringType(),
|
|
65524
65599
|
cvv: stringType()
|
|
65525
65600
|
});
|
|
@@ -66350,7 +66425,7 @@ var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
|
66350
66425
|
var init_issuedcard = __esm(() => {
|
|
66351
66426
|
init_v3();
|
|
66352
66427
|
init_primitives2();
|
|
66353
|
-
|
|
66428
|
+
init_address();
|
|
66354
66429
|
init_cardbrand();
|
|
66355
66430
|
init_cardexpiration();
|
|
66356
66431
|
init_issuedcardformfactor();
|
|
@@ -66361,26 +66436,32 @@ var init_issuedcard = __esm(() => {
|
|
|
66361
66436
|
brand: CardBrand$inboundSchema,
|
|
66362
66437
|
lastFourCardNumber: string4(),
|
|
66363
66438
|
expiration: CardExpiration$inboundSchema,
|
|
66364
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
66365
|
-
memo: optional3(string4()),
|
|
66366
66439
|
fundingWalletID: string4(),
|
|
66440
|
+
authorizedUserAccountID: optional3(string4()),
|
|
66441
|
+
nickname: optional3(string4()),
|
|
66442
|
+
metadata: optional3(recordType(string4())),
|
|
66443
|
+
billingAddress: optional3(Address$inboundSchema),
|
|
66367
66444
|
state: IssuedCardState$inboundSchema,
|
|
66368
66445
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
66369
66446
|
controls: optional3(IssuingControls$inboundSchema),
|
|
66370
|
-
createdOn: date4()
|
|
66447
|
+
createdOn: date4(),
|
|
66448
|
+
updatedOn: date4()
|
|
66371
66449
|
});
|
|
66372
66450
|
IssuedCard$outboundSchema = objectType({
|
|
66373
66451
|
issuedCardID: stringType(),
|
|
66374
66452
|
brand: CardBrand$outboundSchema,
|
|
66375
66453
|
lastFourCardNumber: stringType(),
|
|
66376
66454
|
expiration: CardExpiration$outboundSchema,
|
|
66377
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
66378
|
-
memo: stringType().optional(),
|
|
66379
66455
|
fundingWalletID: stringType(),
|
|
66456
|
+
authorizedUserAccountID: stringType().optional(),
|
|
66457
|
+
nickname: stringType().optional(),
|
|
66458
|
+
metadata: recordType(stringType()).optional(),
|
|
66459
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
66380
66460
|
state: IssuedCardState$outboundSchema,
|
|
66381
66461
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
66382
66462
|
controls: IssuingControls$outboundSchema.optional(),
|
|
66383
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
66463
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
66464
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
66384
66465
|
});
|
|
66385
66466
|
});
|
|
66386
66467
|
|
|
@@ -67847,7 +67928,8 @@ var init_paymentlinktype = __esm(() => {
|
|
|
67847
67928
|
PaymentLinkType = {
|
|
67848
67929
|
Payment: "payment",
|
|
67849
67930
|
Payout: "payout",
|
|
67850
|
-
InvoicePayment: "invoice-payment"
|
|
67931
|
+
InvoicePayment: "invoice-payment",
|
|
67932
|
+
CustomAmountPayment: "custom-amount-payment"
|
|
67851
67933
|
};
|
|
67852
67934
|
PaymentLinkType$inboundSchema = inboundSchema(PaymentLinkType);
|
|
67853
67935
|
PaymentLinkType$outboundSchema = outboundSchema(PaymentLinkType);
|
|
@@ -67861,6 +67943,7 @@ var init_paymentlink = __esm(() => {
|
|
|
67861
67943
|
init_amount();
|
|
67862
67944
|
init_mode();
|
|
67863
67945
|
init_paymentlinkamountdetails();
|
|
67946
|
+
init_paymentlinkcustomamountpaymentdetails();
|
|
67864
67947
|
init_paymentlinkcustomeroptions();
|
|
67865
67948
|
init_paymentlinkdisplayoptions();
|
|
67866
67949
|
init_paymentlinklineitems();
|
|
@@ -67887,6 +67970,7 @@ var init_paymentlink = __esm(() => {
|
|
|
67887
67970
|
customer: PaymentLinkCustomerOptions$inboundSchema,
|
|
67888
67971
|
payment: optional3(PaymentLinkPaymentDetails$inboundSchema),
|
|
67889
67972
|
payout: optional3(PaymentLinkPayoutDetails$inboundSchema),
|
|
67973
|
+
customAmountPayment: optional3(PaymentLinkCustomAmountPaymentDetails$inboundSchema),
|
|
67890
67974
|
lineItems: optional3(PaymentLinkLineItems$inboundSchema),
|
|
67891
67975
|
createdOn: date4(),
|
|
67892
67976
|
updatedOn: date4(),
|
|
@@ -67912,6 +67996,7 @@ var init_paymentlink = __esm(() => {
|
|
|
67912
67996
|
customer: PaymentLinkCustomerOptions$outboundSchema,
|
|
67913
67997
|
payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
|
|
67914
67998
|
payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
|
|
67999
|
+
customAmountPayment: PaymentLinkCustomAmountPaymentDetails$outboundSchema.optional(),
|
|
67915
68000
|
lineItems: PaymentLinkLineItems$outboundSchema.optional(),
|
|
67916
68001
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
67917
68002
|
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
@@ -67920,6 +68005,34 @@ var init_paymentlink = __esm(() => {
|
|
|
67920
68005
|
});
|
|
67921
68006
|
});
|
|
67922
68007
|
|
|
68008
|
+
// src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts
|
|
68009
|
+
var PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema, PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema;
|
|
68010
|
+
var init_paymentlinkcustomamountpaymentdetailsupdate = __esm(() => {
|
|
68011
|
+
init_v3();
|
|
68012
|
+
init_primitives2();
|
|
68013
|
+
init_achpaymentdetails();
|
|
68014
|
+
init_amountdecimal();
|
|
68015
|
+
init_amountdecimalrangeupdate();
|
|
68016
|
+
init_cardpaymentdetails();
|
|
68017
|
+
init_collectionpaymentmethodtype();
|
|
68018
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema = objectType({
|
|
68019
|
+
allowedMethods: optional3(arrayType(CollectionPaymentMethodType$inboundSchema)),
|
|
68020
|
+
cardDetails: optional3(CardPaymentDetails$inboundSchema),
|
|
68021
|
+
achDetails: optional3(ACHPaymentDetails$inboundSchema),
|
|
68022
|
+
metadata: optional3(recordType(string4())),
|
|
68023
|
+
amountRange: optional3(AmountDecimalRangeUpdate$inboundSchema),
|
|
68024
|
+
suggestedAmounts: optional3(arrayType(AmountDecimal$inboundSchema))
|
|
68025
|
+
});
|
|
68026
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema = objectType({
|
|
68027
|
+
allowedMethods: arrayType(CollectionPaymentMethodType$outboundSchema).optional(),
|
|
68028
|
+
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
68029
|
+
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
68030
|
+
metadata: recordType(stringType()).optional(),
|
|
68031
|
+
amountRange: AmountDecimalRangeUpdate$outboundSchema.optional(),
|
|
68032
|
+
suggestedAmounts: arrayType(AmountDecimal$outboundSchema).optional()
|
|
68033
|
+
});
|
|
68034
|
+
});
|
|
68035
|
+
|
|
67923
68036
|
// src/models/components/paymentlinkdisplayoptionsupdate.ts
|
|
67924
68037
|
var PaymentLinkDisplayOptionsUpdate$inboundSchema, PaymentLinkDisplayOptionsUpdate$outboundSchema;
|
|
67925
68038
|
var init_paymentlinkdisplayoptionsupdate = __esm(() => {
|
|
@@ -67939,35 +68052,21 @@ var init_paymentlinkdisplayoptionsupdate = __esm(() => {
|
|
|
67939
68052
|
});
|
|
67940
68053
|
|
|
67941
68054
|
// src/models/components/paymentlinkpaymentdetailsupdate.ts
|
|
67942
|
-
var
|
|
68055
|
+
var PaymentLinkPaymentDetailsUpdate$inboundSchema, PaymentLinkPaymentDetailsUpdate$outboundSchema;
|
|
67943
68056
|
var init_paymentlinkpaymentdetailsupdate = __esm(() => {
|
|
67944
68057
|
init_v3();
|
|
67945
68058
|
init_primitives2();
|
|
67946
68059
|
init_achpaymentdetails();
|
|
67947
|
-
init_amountdecimal();
|
|
67948
|
-
init_amountdecimalrangeupdate();
|
|
67949
68060
|
init_cardpaymentdetails();
|
|
67950
68061
|
init_collectionpaymentmethodtype();
|
|
67951
|
-
PaymentLinkPaymentDetailsUpdateAmountType = {
|
|
67952
|
-
Fixed: "fixed",
|
|
67953
|
-
Open: "open"
|
|
67954
|
-
};
|
|
67955
|
-
PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema = nativeEnumType(PaymentLinkPaymentDetailsUpdateAmountType);
|
|
67956
|
-
PaymentLinkPaymentDetailsUpdateAmountType$outboundSchema = PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema;
|
|
67957
68062
|
PaymentLinkPaymentDetailsUpdate$inboundSchema = objectType({
|
|
67958
68063
|
allowedMethods: optional3(arrayType(CollectionPaymentMethodType$inboundSchema)),
|
|
67959
|
-
amountType: PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema.default("fixed"),
|
|
67960
|
-
amountRange: optional3(AmountDecimalRangeUpdate$inboundSchema),
|
|
67961
|
-
suggestedAmounts: optional3(arrayType(AmountDecimal$inboundSchema)),
|
|
67962
68064
|
cardDetails: optional3(CardPaymentDetails$inboundSchema),
|
|
67963
68065
|
achDetails: optional3(ACHPaymentDetails$inboundSchema),
|
|
67964
68066
|
metadata: optional3(recordType(string4()))
|
|
67965
68067
|
});
|
|
67966
68068
|
PaymentLinkPaymentDetailsUpdate$outboundSchema = objectType({
|
|
67967
68069
|
allowedMethods: arrayType(CollectionPaymentMethodType$outboundSchema).optional(),
|
|
67968
|
-
amountType: PaymentLinkPaymentDetailsUpdateAmountType$outboundSchema.default("fixed"),
|
|
67969
|
-
amountRange: AmountDecimalRangeUpdate$outboundSchema.optional(),
|
|
67970
|
-
suggestedAmounts: arrayType(AmountDecimal$outboundSchema).optional(),
|
|
67971
68070
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
67972
68071
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
67973
68072
|
metadata: recordType(stringType()).optional()
|
|
@@ -68794,23 +68893,22 @@ var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
|
68794
68893
|
var init_requestcard = __esm(() => {
|
|
68795
68894
|
init_v3();
|
|
68796
68895
|
init_primitives2();
|
|
68896
|
+
init_address();
|
|
68797
68897
|
init_cardexpiration();
|
|
68798
|
-
init_createauthorizeduser();
|
|
68799
|
-
init_issuedcardformfactor();
|
|
68800
68898
|
init_issuingcontrols();
|
|
68801
68899
|
RequestCard$inboundSchema = objectType({
|
|
68802
|
-
|
|
68803
|
-
|
|
68804
|
-
|
|
68805
|
-
|
|
68900
|
+
authorizedUserAccountID: optional3(string4()),
|
|
68901
|
+
nickname: optional3(string4()),
|
|
68902
|
+
metadata: optional3(recordType(string4())),
|
|
68903
|
+
billingAddress: optional3(Address$inboundSchema),
|
|
68806
68904
|
expiration: optional3(CardExpiration$inboundSchema),
|
|
68807
68905
|
controls: optional3(IssuingControls$inboundSchema)
|
|
68808
68906
|
});
|
|
68809
68907
|
RequestCard$outboundSchema = objectType({
|
|
68810
|
-
|
|
68811
|
-
|
|
68812
|
-
|
|
68813
|
-
|
|
68908
|
+
authorizedUserAccountID: stringType().optional(),
|
|
68909
|
+
nickname: stringType().optional(),
|
|
68910
|
+
metadata: recordType(stringType()).optional(),
|
|
68911
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
68814
68912
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
68815
68913
|
controls: IssuingControls$outboundSchema.optional()
|
|
68816
68914
|
});
|
|
@@ -70141,21 +70239,38 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
70141
70239
|
});
|
|
70142
70240
|
|
|
70143
70241
|
// src/models/components/updateissuedcard.ts
|
|
70144
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
70242
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
70145
70243
|
var init_updateissuedcard = __esm(() => {
|
|
70146
70244
|
init_v3();
|
|
70147
70245
|
init_primitives2();
|
|
70148
|
-
init_createauthorizeduserupdate();
|
|
70149
70246
|
init_updateissuedcardstate();
|
|
70247
|
+
BillingAddress$inboundSchema = objectType({
|
|
70248
|
+
addressLine1: optional3(string4()),
|
|
70249
|
+
addressLine2: optional3(string4()),
|
|
70250
|
+
city: optional3(string4()),
|
|
70251
|
+
stateOrProvince: optional3(string4()),
|
|
70252
|
+
postalCode: optional3(string4()),
|
|
70253
|
+
country: optional3(string4())
|
|
70254
|
+
});
|
|
70255
|
+
BillingAddress$outboundSchema = objectType({
|
|
70256
|
+
addressLine1: stringType().optional(),
|
|
70257
|
+
addressLine2: stringType().optional(),
|
|
70258
|
+
city: stringType().optional(),
|
|
70259
|
+
stateOrProvince: stringType().optional(),
|
|
70260
|
+
postalCode: stringType().optional(),
|
|
70261
|
+
country: stringType().optional()
|
|
70262
|
+
});
|
|
70150
70263
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
70151
70264
|
state: optional3(UpdateIssuedCardState$inboundSchema),
|
|
70152
|
-
|
|
70153
|
-
|
|
70265
|
+
nickname: nullableType(string4()).optional(),
|
|
70266
|
+
metadata: nullableType(recordType(string4())).optional(),
|
|
70267
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
70154
70268
|
});
|
|
70155
70269
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
70156
70270
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
70157
|
-
|
|
70158
|
-
|
|
70271
|
+
nickname: nullableType(stringType()).optional(),
|
|
70272
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
70273
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
70159
70274
|
});
|
|
70160
70275
|
});
|
|
70161
70276
|
|
|
@@ -70182,6 +70297,7 @@ var init_updatepaymentlink = __esm(() => {
|
|
|
70182
70297
|
init_primitives2();
|
|
70183
70298
|
init_amountupdate();
|
|
70184
70299
|
init_createpaymentlinklineitemsupdate();
|
|
70300
|
+
init_paymentlinkcustomamountpaymentdetailsupdate();
|
|
70185
70301
|
init_paymentlinkcustomeroptions();
|
|
70186
70302
|
init_paymentlinkdisplayoptionsupdate();
|
|
70187
70303
|
init_paymentlinkpaymentdetailsupdate();
|
|
@@ -70194,6 +70310,7 @@ var init_updatepaymentlink = __esm(() => {
|
|
|
70194
70310
|
customer: optional3(PaymentLinkCustomerOptions$inboundSchema),
|
|
70195
70311
|
payment: optional3(PaymentLinkPaymentDetailsUpdate$inboundSchema),
|
|
70196
70312
|
payout: optional3(PaymentLinkPayoutDetailsUpdate$inboundSchema),
|
|
70313
|
+
customAmountPayment: optional3(PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema),
|
|
70197
70314
|
lineItems: optional3(CreatePaymentLinkLineItemsUpdate$inboundSchema),
|
|
70198
70315
|
amountDetails: optional3(UpdatePaymentLinkAmountDetails$inboundSchema)
|
|
70199
70316
|
});
|
|
@@ -70204,6 +70321,7 @@ var init_updatepaymentlink = __esm(() => {
|
|
|
70204
70321
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
70205
70322
|
payment: PaymentLinkPaymentDetailsUpdate$outboundSchema.optional(),
|
|
70206
70323
|
payout: PaymentLinkPayoutDetailsUpdate$outboundSchema.optional(),
|
|
70324
|
+
customAmountPayment: PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema.optional(),
|
|
70207
70325
|
lineItems: CreatePaymentLinkLineItemsUpdate$outboundSchema.optional(),
|
|
70208
70326
|
amountDetails: UpdatePaymentLinkAmountDetails$outboundSchema.optional()
|
|
70209
70327
|
});
|
|
@@ -70675,6 +70793,25 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
70675
70793
|
});
|
|
70676
70794
|
});
|
|
70677
70795
|
|
|
70796
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
70797
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
70798
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
70799
|
+
init_v3();
|
|
70800
|
+
init_primitives2();
|
|
70801
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
70802
|
+
merchantAccountID: string4(),
|
|
70803
|
+
partnerAccountID: string4(),
|
|
70804
|
+
authorizationID: string4(),
|
|
70805
|
+
expiresOn: date4()
|
|
70806
|
+
});
|
|
70807
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
70808
|
+
merchantAccountID: stringType(),
|
|
70809
|
+
partnerAccountID: stringType(),
|
|
70810
|
+
authorizationID: stringType(),
|
|
70811
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
70812
|
+
});
|
|
70813
|
+
});
|
|
70814
|
+
|
|
70678
70815
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
70679
70816
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
70680
70817
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -71071,10 +71208,12 @@ var init_webhookdatasweepcreated = __esm(() => {
|
|
|
71071
71208
|
init_v3();
|
|
71072
71209
|
init_primitives2();
|
|
71073
71210
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
71211
|
+
accountID: string4(),
|
|
71074
71212
|
walletID: string4(),
|
|
71075
71213
|
sweepID: string4()
|
|
71076
71214
|
});
|
|
71077
71215
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
71216
|
+
accountID: stringType(),
|
|
71078
71217
|
walletID: stringType(),
|
|
71079
71218
|
sweepID: stringType()
|
|
71080
71219
|
});
|
|
@@ -71087,12 +71226,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
71087
71226
|
init_primitives2();
|
|
71088
71227
|
init_sweepstatus();
|
|
71089
71228
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
71229
|
+
accountID: string4(),
|
|
71090
71230
|
walletID: string4(),
|
|
71091
71231
|
sweepID: string4(),
|
|
71092
71232
|
transferID: optional3(string4()),
|
|
71093
71233
|
status: SweepStatus$inboundSchema
|
|
71094
71234
|
});
|
|
71095
71235
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
71236
|
+
accountID: stringType(),
|
|
71096
71237
|
walletID: stringType(),
|
|
71097
71238
|
sweepID: stringType(),
|
|
71098
71239
|
transferID: stringType().optional(),
|
|
@@ -71344,6 +71485,7 @@ var init_webhookdata = __esm(() => {
|
|
|
71344
71485
|
init_webhookdataaccountcreated();
|
|
71345
71486
|
init_webhookdataaccountdisconnected();
|
|
71346
71487
|
init_webhookdataaccountupdated();
|
|
71488
|
+
init_webhookdataauthorizationexpiring();
|
|
71347
71489
|
init_webhookdatabalanceupdated();
|
|
71348
71490
|
init_webhookdatabankaccountcreated();
|
|
71349
71491
|
init_webhookdatabankaccountdeleted();
|
|
@@ -71383,7 +71525,9 @@ var init_webhookdata = __esm(() => {
|
|
|
71383
71525
|
WebhookDataTransferUpdated$inboundSchema,
|
|
71384
71526
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
71385
71527
|
WebhookDataRefundUpdated$inboundSchema,
|
|
71528
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
71386
71529
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
71530
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
71387
71531
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
71388
71532
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
71389
71533
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -71394,7 +71538,7 @@ var init_webhookdata = __esm(() => {
|
|
|
71394
71538
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
71395
71539
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
71396
71540
|
WebhookDataRefundCreated$inboundSchema,
|
|
71397
|
-
|
|
71541
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
71398
71542
|
WebhookDataTicketUpdated$inboundSchema,
|
|
71399
71543
|
WebhookDataTransferCreated$inboundSchema,
|
|
71400
71544
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -71404,7 +71548,6 @@ var init_webhookdata = __esm(() => {
|
|
|
71404
71548
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
71405
71549
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
71406
71550
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
71407
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
71408
71551
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
71409
71552
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
71410
71553
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -71422,7 +71565,9 @@ var init_webhookdata = __esm(() => {
|
|
|
71422
71565
|
WebhookDataTransferUpdated$outboundSchema,
|
|
71423
71566
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
71424
71567
|
WebhookDataRefundUpdated$outboundSchema,
|
|
71568
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
71425
71569
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
71570
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
71426
71571
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
71427
71572
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
71428
71573
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -71433,7 +71578,7 @@ var init_webhookdata = __esm(() => {
|
|
|
71433
71578
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
71434
71579
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
71435
71580
|
WebhookDataRefundCreated$outboundSchema,
|
|
71436
|
-
|
|
71581
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
71437
71582
|
WebhookDataTicketUpdated$outboundSchema,
|
|
71438
71583
|
WebhookDataTransferCreated$outboundSchema,
|
|
71439
71584
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -71443,7 +71588,6 @@ var init_webhookdata = __esm(() => {
|
|
|
71443
71588
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
71444
71589
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
71445
71590
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
71446
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
71447
71591
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
71448
71592
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
71449
71593
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -71548,7 +71692,6 @@ var init_components = __esm(() => {
|
|
|
71548
71692
|
init_assignproductimagevalidationerror();
|
|
71549
71693
|
init_asynccreatedrefund();
|
|
71550
71694
|
init_asynctransfer();
|
|
71551
|
-
init_authorizeduser();
|
|
71552
71695
|
init_authtoken();
|
|
71553
71696
|
init_authtokenrequest();
|
|
71554
71697
|
init_bankaccount();
|
|
@@ -71639,9 +71782,6 @@ var init_components = __esm(() => {
|
|
|
71639
71782
|
init_createaccountsettings();
|
|
71640
71783
|
init_createaccounttype();
|
|
71641
71784
|
init_createapplepaysession();
|
|
71642
|
-
init_createauthorizeduser();
|
|
71643
|
-
init_createauthorizedusererror();
|
|
71644
|
-
init_createauthorizeduserupdate();
|
|
71645
71785
|
init_createbusinesserror();
|
|
71646
71786
|
init_createbusinessprofile();
|
|
71647
71787
|
init_createdtransfer();
|
|
@@ -71707,6 +71847,7 @@ var init_components = __esm(() => {
|
|
|
71707
71847
|
init_createtransfersourcecard();
|
|
71708
71848
|
init_createwallet();
|
|
71709
71849
|
init_createwebhook();
|
|
71850
|
+
init_customamountpaymentdetailserror();
|
|
71710
71851
|
init_customersupport();
|
|
71711
71852
|
init_customersupporterror();
|
|
71712
71853
|
init_debitholdperiod();
|
|
@@ -71872,6 +72013,8 @@ var init_components = __esm(() => {
|
|
|
71872
72013
|
init_paymentdetailserror();
|
|
71873
72014
|
init_paymentlink();
|
|
71874
72015
|
init_paymentlinkamountdetails();
|
|
72016
|
+
init_paymentlinkcustomamountpaymentdetails();
|
|
72017
|
+
init_paymentlinkcustomamountpaymentdetailsupdate();
|
|
71875
72018
|
init_paymentlinkcustomeroptions();
|
|
71876
72019
|
init_paymentlinkdisplayoptions();
|
|
71877
72020
|
init_paymentlinkdisplayoptionsupdate();
|
|
@@ -72081,6 +72224,7 @@ var init_components = __esm(() => {
|
|
|
72081
72224
|
init_webhookdataaccountcreated();
|
|
72082
72225
|
init_webhookdataaccountdisconnected();
|
|
72083
72226
|
init_webhookdataaccountupdated();
|
|
72227
|
+
init_webhookdataauthorizationexpiring();
|
|
72084
72228
|
init_webhookdatabalanceupdated();
|
|
72085
72229
|
init_webhookdatabankaccountcreated();
|
|
72086
72230
|
init_webhookdatabankaccountdeleted();
|
|
@@ -72508,6 +72652,7 @@ var init_createpaymentlinkerror = __esm(() => {
|
|
|
72508
72652
|
display;
|
|
72509
72653
|
payment;
|
|
72510
72654
|
payout;
|
|
72655
|
+
customAmountPayment;
|
|
72511
72656
|
lineItems;
|
|
72512
72657
|
amountDetails;
|
|
72513
72658
|
data$;
|
|
@@ -72533,6 +72678,9 @@ var init_createpaymentlinkerror = __esm(() => {
|
|
|
72533
72678
|
this.payment = err.payment;
|
|
72534
72679
|
if (err.payout != null)
|
|
72535
72680
|
this.payout = err.payout;
|
|
72681
|
+
if (err.customAmountPayment != null) {
|
|
72682
|
+
this.customAmountPayment = err.customAmountPayment;
|
|
72683
|
+
}
|
|
72536
72684
|
if (err.lineItems != null)
|
|
72537
72685
|
this.lineItems = err.lineItems;
|
|
72538
72686
|
if (err.amountDetails != null)
|
|
@@ -72549,6 +72697,7 @@ var init_createpaymentlinkerror = __esm(() => {
|
|
|
72549
72697
|
display: optional3(DisplayOptionsError$inboundSchema),
|
|
72550
72698
|
payment: optional3(PaymentDetailsError$inboundSchema),
|
|
72551
72699
|
payout: optional3(PayoutDetailsError$inboundSchema),
|
|
72700
|
+
customAmountPayment: optional3(CustomAmountPaymentDetailsError$inboundSchema),
|
|
72552
72701
|
lineItems: optional3(CreatePaymentLinkLineItemsValidationError$inboundSchema),
|
|
72553
72702
|
amountDetails: optional3(CreatePaymentLinkAmountDetailsValidationError$inboundSchema),
|
|
72554
72703
|
request$: instanceOfType(Request),
|
|
@@ -72570,6 +72719,7 @@ var init_createpaymentlinkerror = __esm(() => {
|
|
|
72570
72719
|
display: DisplayOptionsError$outboundSchema.optional(),
|
|
72571
72720
|
payment: PaymentDetailsError$outboundSchema.optional(),
|
|
72572
72721
|
payout: PayoutDetailsError$outboundSchema.optional(),
|
|
72722
|
+
customAmountPayment: CustomAmountPaymentDetailsError$outboundSchema.optional(),
|
|
72573
72723
|
lineItems: CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
|
|
72574
72724
|
amountDetails: CreatePaymentLinkAmountDetailsValidationError$outboundSchema.optional()
|
|
72575
72725
|
}));
|
|
@@ -74078,10 +74228,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
74078
74228
|
init_components();
|
|
74079
74229
|
init_mooverror();
|
|
74080
74230
|
RequestCardError = class RequestCardError extends MoovError {
|
|
74081
|
-
|
|
74082
|
-
|
|
74083
|
-
|
|
74084
|
-
|
|
74231
|
+
authorizedUserAccountID;
|
|
74232
|
+
nickname;
|
|
74233
|
+
metadata;
|
|
74234
|
+
billingAddress;
|
|
74085
74235
|
expiration;
|
|
74086
74236
|
controls;
|
|
74087
74237
|
data$;
|
|
@@ -74089,14 +74239,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
74089
74239
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
74090
74240
|
super(message, httpMeta);
|
|
74091
74241
|
this.data$ = err;
|
|
74092
|
-
if (err.
|
|
74093
|
-
this.
|
|
74094
|
-
|
|
74095
|
-
|
|
74096
|
-
|
|
74097
|
-
|
|
74098
|
-
|
|
74099
|
-
|
|
74242
|
+
if (err.authorizedUserAccountID != null) {
|
|
74243
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
74244
|
+
}
|
|
74245
|
+
if (err.nickname != null)
|
|
74246
|
+
this.nickname = err.nickname;
|
|
74247
|
+
if (err.metadata != null)
|
|
74248
|
+
this.metadata = err.metadata;
|
|
74249
|
+
if (err.billingAddress != null)
|
|
74250
|
+
this.billingAddress = err.billingAddress;
|
|
74100
74251
|
if (err.expiration != null)
|
|
74101
74252
|
this.expiration = err.expiration;
|
|
74102
74253
|
if (err.controls != null)
|
|
@@ -74105,10 +74256,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
74105
74256
|
}
|
|
74106
74257
|
};
|
|
74107
74258
|
RequestCardError$inboundSchema = objectType({
|
|
74108
|
-
|
|
74109
|
-
|
|
74110
|
-
|
|
74111
|
-
|
|
74259
|
+
authorizedUserAccountID: optional3(string4()),
|
|
74260
|
+
nickname: optional3(string4()),
|
|
74261
|
+
metadata: optional3(string4()),
|
|
74262
|
+
billingAddress: optional3(AddressError$inboundSchema),
|
|
74112
74263
|
expiration: optional3(CardExpirationError$inboundSchema),
|
|
74113
74264
|
controls: optional3(IssuingControlsError$inboundSchema),
|
|
74114
74265
|
request$: instanceOfType(Request),
|
|
@@ -74122,10 +74273,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
74122
74273
|
});
|
|
74123
74274
|
});
|
|
74124
74275
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
74125
|
-
|
|
74126
|
-
|
|
74127
|
-
|
|
74128
|
-
|
|
74276
|
+
authorizedUserAccountID: stringType().optional(),
|
|
74277
|
+
nickname: stringType().optional(),
|
|
74278
|
+
metadata: stringType().optional(),
|
|
74279
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
74129
74280
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
74130
74281
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
74131
74282
|
}));
|
|
@@ -74843,8 +74994,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
74843
74994
|
init_mooverror();
|
|
74844
74995
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
74845
74996
|
state;
|
|
74846
|
-
|
|
74847
|
-
|
|
74997
|
+
nickname;
|
|
74998
|
+
metadata;
|
|
74999
|
+
billingAddress;
|
|
74848
75000
|
data$;
|
|
74849
75001
|
constructor(err, httpMeta) {
|
|
74850
75002
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -74852,17 +75004,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
74852
75004
|
this.data$ = err;
|
|
74853
75005
|
if (err.state != null)
|
|
74854
75006
|
this.state = err.state;
|
|
74855
|
-
if (err.
|
|
74856
|
-
this.
|
|
74857
|
-
if (err.
|
|
74858
|
-
this.
|
|
75007
|
+
if (err.nickname != null)
|
|
75008
|
+
this.nickname = err.nickname;
|
|
75009
|
+
if (err.metadata != null)
|
|
75010
|
+
this.metadata = err.metadata;
|
|
75011
|
+
if (err.billingAddress != null)
|
|
75012
|
+
this.billingAddress = err.billingAddress;
|
|
74859
75013
|
this.name = "UpdateIssuedCardError";
|
|
74860
75014
|
}
|
|
74861
75015
|
};
|
|
74862
75016
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
74863
75017
|
state: optional3(string4()),
|
|
74864
|
-
|
|
74865
|
-
|
|
75018
|
+
nickname: optional3(string4()),
|
|
75019
|
+
metadata: optional3(string4()),
|
|
75020
|
+
billingAddress: optional3(AddressError$inboundSchema),
|
|
74866
75021
|
request$: instanceOfType(Request),
|
|
74867
75022
|
response$: instanceOfType(Response),
|
|
74868
75023
|
body$: stringType()
|
|
@@ -74875,8 +75030,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
74875
75030
|
});
|
|
74876
75031
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
74877
75032
|
state: stringType().optional(),
|
|
74878
|
-
|
|
74879
|
-
|
|
75033
|
+
nickname: stringType().optional(),
|
|
75034
|
+
metadata: stringType().optional(),
|
|
75035
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
74880
75036
|
}));
|
|
74881
75037
|
});
|
|
74882
75038
|
|
|
@@ -74893,6 +75049,7 @@ var init_updatepaymentlinkerror = __esm(() => {
|
|
|
74893
75049
|
display;
|
|
74894
75050
|
payment;
|
|
74895
75051
|
payout;
|
|
75052
|
+
customAmountPayment;
|
|
74896
75053
|
lineItems;
|
|
74897
75054
|
amountDetails;
|
|
74898
75055
|
data$;
|
|
@@ -74910,6 +75067,9 @@ var init_updatepaymentlinkerror = __esm(() => {
|
|
|
74910
75067
|
this.payment = err.payment;
|
|
74911
75068
|
if (err.payout != null)
|
|
74912
75069
|
this.payout = err.payout;
|
|
75070
|
+
if (err.customAmountPayment != null) {
|
|
75071
|
+
this.customAmountPayment = err.customAmountPayment;
|
|
75072
|
+
}
|
|
74913
75073
|
if (err.lineItems != null)
|
|
74914
75074
|
this.lineItems = err.lineItems;
|
|
74915
75075
|
if (err.amountDetails != null)
|
|
@@ -74923,6 +75083,7 @@ var init_updatepaymentlinkerror = __esm(() => {
|
|
|
74923
75083
|
display: optional3(DisplayOptionsError$inboundSchema),
|
|
74924
75084
|
payment: optional3(PaymentDetailsError$inboundSchema),
|
|
74925
75085
|
payout: optional3(PayoutDetailsError$inboundSchema),
|
|
75086
|
+
customAmountPayment: optional3(CustomAmountPaymentDetailsError$inboundSchema),
|
|
74926
75087
|
lineItems: optional3(CreatePaymentLinkLineItemsValidationError$inboundSchema),
|
|
74927
75088
|
amountDetails: optional3(UpdatePaymentLinkAmountDetailsValidationError$inboundSchema),
|
|
74928
75089
|
request$: instanceOfType(Request),
|
|
@@ -74941,6 +75102,7 @@ var init_updatepaymentlinkerror = __esm(() => {
|
|
|
74941
75102
|
display: DisplayOptionsError$outboundSchema.optional(),
|
|
74942
75103
|
payment: PaymentDetailsError$outboundSchema.optional(),
|
|
74943
75104
|
payout: PayoutDetailsError$outboundSchema.optional(),
|
|
75105
|
+
customAmountPayment: CustomAmountPaymentDetailsError$outboundSchema.optional(),
|
|
74944
75106
|
lineItems: CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
|
|
74945
75107
|
amountDetails: UpdatePaymentLinkAmountDetailsValidationError$outboundSchema.optional()
|
|
74946
75108
|
}));
|
|
@@ -79362,6 +79524,41 @@ var init_listbankaccounts = __esm(() => {
|
|
|
79362
79524
|
});
|
|
79363
79525
|
});
|
|
79364
79526
|
|
|
79527
|
+
// src/models/operations/listcancellations.ts
|
|
79528
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
79529
|
+
var init_listcancellations = __esm(() => {
|
|
79530
|
+
init_v3();
|
|
79531
|
+
init_primitives();
|
|
79532
|
+
init_primitives2();
|
|
79533
|
+
init_components();
|
|
79534
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
79535
|
+
accountID: string4(),
|
|
79536
|
+
transferID: string4()
|
|
79537
|
+
});
|
|
79538
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
79539
|
+
accountID: stringType(),
|
|
79540
|
+
transferID: stringType()
|
|
79541
|
+
});
|
|
79542
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
79543
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
79544
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
79545
|
+
}).transform((v2) => {
|
|
79546
|
+
return remap(v2, {
|
|
79547
|
+
Headers: "headers",
|
|
79548
|
+
Result: "result"
|
|
79549
|
+
});
|
|
79550
|
+
});
|
|
79551
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
79552
|
+
headers: recordType(arrayType(stringType())),
|
|
79553
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
79554
|
+
}).transform((v2) => {
|
|
79555
|
+
return remap(v2, {
|
|
79556
|
+
headers: "Headers",
|
|
79557
|
+
result: "Result"
|
|
79558
|
+
});
|
|
79559
|
+
});
|
|
79560
|
+
});
|
|
79561
|
+
|
|
79365
79562
|
// src/models/operations/listcapabilities.ts
|
|
79366
79563
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
79367
79564
|
var init_listcapabilities = __esm(() => {
|
|
@@ -82595,6 +82792,7 @@ var init_operations = __esm(() => {
|
|
|
82595
82792
|
init_listaccountterminalapplications();
|
|
82596
82793
|
init_listadjustments();
|
|
82597
82794
|
init_listbankaccounts();
|
|
82795
|
+
init_listcancellations();
|
|
82598
82796
|
init_listcapabilities();
|
|
82599
82797
|
init_listcards();
|
|
82600
82798
|
init_listconnectedaccountsforaccount();
|
|
@@ -83018,21 +83216,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
83018
83216
|
};
|
|
83019
83217
|
tool$accountsCreate = {
|
|
83020
83218
|
name: "accounts-create",
|
|
83021
|
-
description: `You can create
|
|
83022
|
-
information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
83219
|
+
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/).
|
|
83023
83220
|
|
|
83024
|
-
If you
|
|
83025
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
83026
|
-
|
|
83027
|
-
|
|
83221
|
+
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:
|
|
83222
|
+
+ 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.
|
|
83223
|
+
+ 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.
|
|
83224
|
+
|
|
83225
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
83028
83226
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
83029
83227
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
83030
83228
|
|
|
83031
|
-
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/).
|
|
83032
|
-
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.
|
|
83229
|
+
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.
|
|
83033
83230
|
|
|
83034
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
83035
|
-
to specify the \`/accounts.write\` scope.`,
|
|
83231
|
+
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.`,
|
|
83036
83232
|
args: args3,
|
|
83037
83233
|
tool: async (client, args4, ctx) => {
|
|
83038
83234
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -87069,7 +87265,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
87069
87265
|
};
|
|
87070
87266
|
tool$capabilitiesDisable = {
|
|
87071
87267
|
name: "capabilities-disable",
|
|
87072
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
87268
|
+
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.
|
|
87073
87269
|
|
|
87074
87270
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
87075
87271
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -87183,7 +87379,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
87183
87379
|
};
|
|
87184
87380
|
tool$capabilitiesGet = {
|
|
87185
87381
|
name: "capabilities-get",
|
|
87186
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
87382
|
+
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.
|
|
87187
87383
|
|
|
87188
87384
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
87189
87385
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -87296,7 +87492,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
87296
87492
|
name: "capabilities-list",
|
|
87297
87493
|
description: `Retrieve all the capabilities an account has requested.
|
|
87298
87494
|
|
|
87299
|
-
Read our [capabilities
|
|
87495
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
87300
87496
|
|
|
87301
87497
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
87302
87498
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -87409,7 +87605,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
87409
87605
|
};
|
|
87410
87606
|
tool$capabilitiesRequest = {
|
|
87411
87607
|
name: "capabilities-request",
|
|
87412
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
87608
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
87413
87609
|
|
|
87414
87610
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
87415
87611
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -87449,7 +87645,7 @@ async function $do42(client, request, options) {
|
|
|
87449
87645
|
charEncoding: "percent"
|
|
87450
87646
|
})
|
|
87451
87647
|
};
|
|
87452
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
87648
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
87453
87649
|
const headers = new Headers(compactMap({
|
|
87454
87650
|
Accept: "application/json"
|
|
87455
87651
|
}));
|
|
@@ -87564,7 +87760,7 @@ async function $do43(client, request, options) {
|
|
|
87564
87760
|
charEncoding: "percent"
|
|
87565
87761
|
})
|
|
87566
87762
|
};
|
|
87567
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
87763
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
87568
87764
|
const headers = new Headers(compactMap({
|
|
87569
87765
|
Accept: "application/json"
|
|
87570
87766
|
}));
|
|
@@ -87677,7 +87873,7 @@ async function $do44(client, request, options) {
|
|
|
87677
87873
|
charEncoding: "percent"
|
|
87678
87874
|
})
|
|
87679
87875
|
};
|
|
87680
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
87876
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
87681
87877
|
const query = encodeFormQuery({
|
|
87682
87878
|
count: payload.count,
|
|
87683
87879
|
skip: payload.skip,
|
|
@@ -87794,7 +87990,7 @@ async function $do45(client, request, options) {
|
|
|
87794
87990
|
charEncoding: "percent"
|
|
87795
87991
|
})
|
|
87796
87992
|
};
|
|
87797
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
87993
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
87798
87994
|
const headers = new Headers(compactMap({
|
|
87799
87995
|
"Content-Type": "application/json",
|
|
87800
87996
|
Accept: "application/json"
|
|
@@ -87911,7 +88107,7 @@ async function $do46(client, request, options) {
|
|
|
87911
88107
|
charEncoding: "percent"
|
|
87912
88108
|
})
|
|
87913
88109
|
};
|
|
87914
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
88110
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
87915
88111
|
const headers = new Headers(compactMap({
|
|
87916
88112
|
"Content-Type": "application/json",
|
|
87917
88113
|
Accept: "application/json"
|
|
@@ -102361,11 +102557,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
102361
102557
|
};
|
|
102362
102558
|
});
|
|
102363
102559
|
|
|
102364
|
-
// src/funcs/
|
|
102365
|
-
function
|
|
102560
|
+
// src/funcs/transfersListCancellations.ts
|
|
102561
|
+
function transfersListCancellations(client, request, options) {
|
|
102366
102562
|
return new APIPromise($do170(client, request, options));
|
|
102367
102563
|
}
|
|
102368
102564
|
async function $do170(client, request, options) {
|
|
102565
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102566
|
+
if (!parsed.ok) {
|
|
102567
|
+
return [parsed, { status: "invalid" }];
|
|
102568
|
+
}
|
|
102569
|
+
const payload = parsed.value;
|
|
102570
|
+
const body = null;
|
|
102571
|
+
const pathParams = {
|
|
102572
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
102573
|
+
explode: false,
|
|
102574
|
+
charEncoding: "percent"
|
|
102575
|
+
}),
|
|
102576
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
102577
|
+
explode: false,
|
|
102578
|
+
charEncoding: "percent"
|
|
102579
|
+
})
|
|
102580
|
+
};
|
|
102581
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
102582
|
+
const headers = new Headers(compactMap({
|
|
102583
|
+
Accept: "application/json"
|
|
102584
|
+
}));
|
|
102585
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
102586
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102587
|
+
const context = {
|
|
102588
|
+
options: client._options,
|
|
102589
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102590
|
+
operationID: "listCancellations",
|
|
102591
|
+
oAuth2Scopes: null,
|
|
102592
|
+
resolvedSecurity: requestSecurity,
|
|
102593
|
+
securitySource: client._options.security,
|
|
102594
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
102595
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
102596
|
+
};
|
|
102597
|
+
const requestRes = client._createRequest(context, {
|
|
102598
|
+
security: requestSecurity,
|
|
102599
|
+
method: "GET",
|
|
102600
|
+
baseURL: options?.serverURL,
|
|
102601
|
+
path,
|
|
102602
|
+
headers,
|
|
102603
|
+
body,
|
|
102604
|
+
userAgent: client._options.userAgent,
|
|
102605
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
102606
|
+
}, options);
|
|
102607
|
+
if (!requestRes.ok) {
|
|
102608
|
+
return [requestRes, { status: "invalid" }];
|
|
102609
|
+
}
|
|
102610
|
+
const req = requestRes.value;
|
|
102611
|
+
const doResult = await client._do(req, {
|
|
102612
|
+
context,
|
|
102613
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
102614
|
+
retryConfig: context.retryConfig,
|
|
102615
|
+
retryCodes: context.retryCodes
|
|
102616
|
+
});
|
|
102617
|
+
if (!doResult.ok) {
|
|
102618
|
+
return [doResult, { status: "request-error", request: req }];
|
|
102619
|
+
}
|
|
102620
|
+
const response = doResult.value;
|
|
102621
|
+
const responseFields = {
|
|
102622
|
+
HttpMeta: { Response: response, Request: req }
|
|
102623
|
+
};
|
|
102624
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
102625
|
+
hdrs: true,
|
|
102626
|
+
key: "Result"
|
|
102627
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
102628
|
+
if (!result.ok) {
|
|
102629
|
+
return [result, { status: "complete", request: req, response }];
|
|
102630
|
+
}
|
|
102631
|
+
return [result, { status: "complete", request: req, response }];
|
|
102632
|
+
}
|
|
102633
|
+
var init_transfersListCancellations = __esm(() => {
|
|
102634
|
+
init_encodings();
|
|
102635
|
+
init_http();
|
|
102636
|
+
init_matchers();
|
|
102637
|
+
init_primitives();
|
|
102638
|
+
init_schemas4();
|
|
102639
|
+
init_security();
|
|
102640
|
+
init_url();
|
|
102641
|
+
init_operations();
|
|
102642
|
+
init_async();
|
|
102643
|
+
});
|
|
102644
|
+
|
|
102645
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
102646
|
+
var args165, tool$transfersListCancellations;
|
|
102647
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
102648
|
+
init_transfersListCancellations();
|
|
102649
|
+
init_operations();
|
|
102650
|
+
init_tools();
|
|
102651
|
+
args165 = {
|
|
102652
|
+
request: ListCancellationsRequest$inboundSchema
|
|
102653
|
+
};
|
|
102654
|
+
tool$transfersListCancellations = {
|
|
102655
|
+
name: "transfers-list-cancellations",
|
|
102656
|
+
description: ` Get a list of cancellations for a transfer.
|
|
102657
|
+
|
|
102658
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
102659
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
102660
|
+
args: args165,
|
|
102661
|
+
tool: async (client, args166, ctx) => {
|
|
102662
|
+
const [result, apiCall] = await transfersListCancellations(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102663
|
+
if (!result.ok) {
|
|
102664
|
+
return {
|
|
102665
|
+
content: [{ type: "text", text: result.error.message }],
|
|
102666
|
+
isError: true
|
|
102667
|
+
};
|
|
102668
|
+
}
|
|
102669
|
+
const value = result.value.result;
|
|
102670
|
+
return formatResult(value, apiCall);
|
|
102671
|
+
}
|
|
102672
|
+
};
|
|
102673
|
+
});
|
|
102674
|
+
|
|
102675
|
+
// src/funcs/transfersListRefunds.ts
|
|
102676
|
+
function transfersListRefunds(client, request, options) {
|
|
102677
|
+
return new APIPromise($do171(client, request, options));
|
|
102678
|
+
}
|
|
102679
|
+
async function $do171(client, request, options) {
|
|
102369
102680
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102370
102681
|
if (!parsed.ok) {
|
|
102371
102682
|
return [parsed, { status: "invalid" }];
|
|
@@ -102447,12 +102758,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
102447
102758
|
});
|
|
102448
102759
|
|
|
102449
102760
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
102450
|
-
var
|
|
102761
|
+
var args166, tool$transfersListRefunds;
|
|
102451
102762
|
var init_transfersListRefunds2 = __esm(() => {
|
|
102452
102763
|
init_transfersListRefunds();
|
|
102453
102764
|
init_operations();
|
|
102454
102765
|
init_tools();
|
|
102455
|
-
|
|
102766
|
+
args166 = {
|
|
102456
102767
|
request: ListRefundsRequest$inboundSchema
|
|
102457
102768
|
};
|
|
102458
102769
|
tool$transfersListRefunds = {
|
|
@@ -102461,9 +102772,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
102461
102772
|
|
|
102462
102773
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102463
102774
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
102464
|
-
args:
|
|
102465
|
-
tool: async (client,
|
|
102466
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
102775
|
+
args: args166,
|
|
102776
|
+
tool: async (client, args167, ctx) => {
|
|
102777
|
+
const [result, apiCall] = await transfersListRefunds(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102467
102778
|
if (!result.ok) {
|
|
102468
102779
|
return {
|
|
102469
102780
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102478,9 +102789,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
102478
102789
|
|
|
102479
102790
|
// src/funcs/transfersUpdate.ts
|
|
102480
102791
|
function transfersUpdate(client, request, options) {
|
|
102481
|
-
return new APIPromise($
|
|
102792
|
+
return new APIPromise($do172(client, request, options));
|
|
102482
102793
|
}
|
|
102483
|
-
async function $
|
|
102794
|
+
async function $do172(client, request, options) {
|
|
102484
102795
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102485
102796
|
if (!parsed.ok) {
|
|
102486
102797
|
return [parsed, { status: "invalid" }];
|
|
@@ -102566,12 +102877,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
102566
102877
|
});
|
|
102567
102878
|
|
|
102568
102879
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
102569
|
-
var
|
|
102880
|
+
var args167, tool$transfersUpdate;
|
|
102570
102881
|
var init_transfersUpdate2 = __esm(() => {
|
|
102571
102882
|
init_transfersUpdate();
|
|
102572
102883
|
init_operations();
|
|
102573
102884
|
init_tools();
|
|
102574
|
-
|
|
102885
|
+
args167 = {
|
|
102575
102886
|
request: UpdateTransferRequest$inboundSchema
|
|
102576
102887
|
};
|
|
102577
102888
|
tool$transfersUpdate = {
|
|
@@ -102582,9 +102893,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
102582
102893
|
|
|
102583
102894
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102584
102895
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
102585
|
-
args:
|
|
102586
|
-
tool: async (client,
|
|
102587
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
102896
|
+
args: args167,
|
|
102897
|
+
tool: async (client, args168, ctx) => {
|
|
102898
|
+
const [result, apiCall] = await transfersUpdate(client, args168.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102588
102899
|
if (!result.ok) {
|
|
102589
102900
|
return {
|
|
102590
102901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102599,9 +102910,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
102599
102910
|
|
|
102600
102911
|
// src/funcs/underwritingGet.ts
|
|
102601
102912
|
function underwritingGet(client, request, options) {
|
|
102602
|
-
return new APIPromise($
|
|
102913
|
+
return new APIPromise($do173(client, request, options));
|
|
102603
102914
|
}
|
|
102604
|
-
async function $
|
|
102915
|
+
async function $do173(client, request, options) {
|
|
102605
102916
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102606
102917
|
if (!parsed.ok) {
|
|
102607
102918
|
return [parsed, { status: "invalid" }];
|
|
@@ -102679,12 +102990,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
102679
102990
|
});
|
|
102680
102991
|
|
|
102681
102992
|
// src/mcp-server/tools/underwritingGet.ts
|
|
102682
|
-
var
|
|
102993
|
+
var args168, tool$underwritingGet;
|
|
102683
102994
|
var init_underwritingGet2 = __esm(() => {
|
|
102684
102995
|
init_underwritingGet();
|
|
102685
102996
|
init_operations();
|
|
102686
102997
|
init_tools();
|
|
102687
|
-
|
|
102998
|
+
args168 = {
|
|
102688
102999
|
request: GetUnderwritingRequest$inboundSchema
|
|
102689
103000
|
};
|
|
102690
103001
|
tool$underwritingGet = {
|
|
@@ -102695,9 +103006,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
102695
103006
|
|
|
102696
103007
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102697
103008
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
102698
|
-
args:
|
|
102699
|
-
tool: async (client,
|
|
102700
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
103009
|
+
args: args168,
|
|
103010
|
+
tool: async (client, args169, ctx) => {
|
|
103011
|
+
const [result, apiCall] = await underwritingGet(client, args169.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102701
103012
|
if (!result.ok) {
|
|
102702
103013
|
return {
|
|
102703
103014
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102712,9 +103023,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
102712
103023
|
|
|
102713
103024
|
// src/funcs/underwritingSave.ts
|
|
102714
103025
|
function underwritingSave(client, request, options) {
|
|
102715
|
-
return new APIPromise($
|
|
103026
|
+
return new APIPromise($do174(client, request, options));
|
|
102716
103027
|
}
|
|
102717
|
-
async function $
|
|
103028
|
+
async function $do174(client, request, options) {
|
|
102718
103029
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102719
103030
|
if (!parsed.ok) {
|
|
102720
103031
|
return [parsed, { status: "invalid" }];
|
|
@@ -102798,12 +103109,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
102798
103109
|
});
|
|
102799
103110
|
|
|
102800
103111
|
// src/mcp-server/tools/underwritingSave.ts
|
|
102801
|
-
var
|
|
103112
|
+
var args169, tool$underwritingSave;
|
|
102802
103113
|
var init_underwritingSave2 = __esm(() => {
|
|
102803
103114
|
init_underwritingSave();
|
|
102804
103115
|
init_operations();
|
|
102805
103116
|
init_tools();
|
|
102806
|
-
|
|
103117
|
+
args169 = {
|
|
102807
103118
|
request: SaveUnderwritingRequest$inboundSchema
|
|
102808
103119
|
};
|
|
102809
103120
|
tool$underwritingSave = {
|
|
@@ -102814,9 +103125,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
102814
103125
|
|
|
102815
103126
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102816
103127
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
102817
|
-
args:
|
|
102818
|
-
tool: async (client,
|
|
102819
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
103128
|
+
args: args169,
|
|
103129
|
+
tool: async (client, args170, ctx) => {
|
|
103130
|
+
const [result, apiCall] = await underwritingSave(client, args170.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102820
103131
|
if (!result.ok) {
|
|
102821
103132
|
return {
|
|
102822
103133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102831,9 +103142,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
102831
103142
|
|
|
102832
103143
|
// src/funcs/underwritingUpsert.ts
|
|
102833
103144
|
function underwritingUpsert(client, request, options) {
|
|
102834
|
-
return new APIPromise($
|
|
103145
|
+
return new APIPromise($do175(client, request, options));
|
|
102835
103146
|
}
|
|
102836
|
-
async function $
|
|
103147
|
+
async function $do175(client, request, options) {
|
|
102837
103148
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102838
103149
|
if (!parsed.ok) {
|
|
102839
103150
|
return [parsed, { status: "invalid" }];
|
|
@@ -102917,12 +103228,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
102917
103228
|
});
|
|
102918
103229
|
|
|
102919
103230
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
102920
|
-
var
|
|
103231
|
+
var args170, tool$underwritingUpsert;
|
|
102921
103232
|
var init_underwritingUpsert2 = __esm(() => {
|
|
102922
103233
|
init_underwritingUpsert();
|
|
102923
103234
|
init_operations();
|
|
102924
103235
|
init_tools();
|
|
102925
|
-
|
|
103236
|
+
args170 = {
|
|
102926
103237
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
102927
103238
|
};
|
|
102928
103239
|
tool$underwritingUpsert = {
|
|
@@ -102933,9 +103244,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
102933
103244
|
|
|
102934
103245
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102935
103246
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
102936
|
-
args:
|
|
102937
|
-
tool: async (client,
|
|
102938
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
103247
|
+
args: args170,
|
|
103248
|
+
tool: async (client, args171, ctx) => {
|
|
103249
|
+
const [result, apiCall] = await underwritingUpsert(client, args171.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102939
103250
|
if (!result.ok) {
|
|
102940
103251
|
return {
|
|
102941
103252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102950,9 +103261,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
102950
103261
|
|
|
102951
103262
|
// src/funcs/walletsCreate.ts
|
|
102952
103263
|
function walletsCreate(client, request, options) {
|
|
102953
|
-
return new APIPromise($
|
|
103264
|
+
return new APIPromise($do176(client, request, options));
|
|
102954
103265
|
}
|
|
102955
|
-
async function $
|
|
103266
|
+
async function $do176(client, request, options) {
|
|
102956
103267
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102957
103268
|
if (!parsed.ok) {
|
|
102958
103269
|
return [parsed, { status: "invalid" }];
|
|
@@ -103034,12 +103345,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
103034
103345
|
});
|
|
103035
103346
|
|
|
103036
103347
|
// src/mcp-server/tools/walletsCreate.ts
|
|
103037
|
-
var
|
|
103348
|
+
var args171, tool$walletsCreate;
|
|
103038
103349
|
var init_walletsCreate2 = __esm(() => {
|
|
103039
103350
|
init_walletsCreate();
|
|
103040
103351
|
init_operations();
|
|
103041
103352
|
init_tools();
|
|
103042
|
-
|
|
103353
|
+
args171 = {
|
|
103043
103354
|
request: CreateWalletRequest$inboundSchema
|
|
103044
103355
|
};
|
|
103045
103356
|
tool$walletsCreate = {
|
|
@@ -103050,9 +103361,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
103050
103361
|
|
|
103051
103362
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103052
103363
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
103053
|
-
args:
|
|
103054
|
-
tool: async (client,
|
|
103055
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
103364
|
+
args: args171,
|
|
103365
|
+
tool: async (client, args172, ctx) => {
|
|
103366
|
+
const [result, apiCall] = await walletsCreate(client, args172.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103056
103367
|
if (!result.ok) {
|
|
103057
103368
|
return {
|
|
103058
103369
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103067,9 +103378,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
103067
103378
|
|
|
103068
103379
|
// src/funcs/walletsGet.ts
|
|
103069
103380
|
function walletsGet(client, request, options) {
|
|
103070
|
-
return new APIPromise($
|
|
103381
|
+
return new APIPromise($do177(client, request, options));
|
|
103071
103382
|
}
|
|
103072
|
-
async function $
|
|
103383
|
+
async function $do177(client, request, options) {
|
|
103073
103384
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103074
103385
|
if (!parsed.ok) {
|
|
103075
103386
|
return [parsed, { status: "invalid" }];
|
|
@@ -103151,12 +103462,12 @@ var init_walletsGet = __esm(() => {
|
|
|
103151
103462
|
});
|
|
103152
103463
|
|
|
103153
103464
|
// src/mcp-server/tools/walletsGet.ts
|
|
103154
|
-
var
|
|
103465
|
+
var args172, tool$walletsGet;
|
|
103155
103466
|
var init_walletsGet2 = __esm(() => {
|
|
103156
103467
|
init_walletsGet();
|
|
103157
103468
|
init_operations();
|
|
103158
103469
|
init_tools();
|
|
103159
|
-
|
|
103470
|
+
args172 = {
|
|
103160
103471
|
request: GetWalletRequest$inboundSchema
|
|
103161
103472
|
};
|
|
103162
103473
|
tool$walletsGet = {
|
|
@@ -103167,9 +103478,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
103167
103478
|
|
|
103168
103479
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103169
103480
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
103170
|
-
args:
|
|
103171
|
-
tool: async (client,
|
|
103172
|
-
const [result, apiCall] = await walletsGet(client,
|
|
103481
|
+
args: args172,
|
|
103482
|
+
tool: async (client, args173, ctx) => {
|
|
103483
|
+
const [result, apiCall] = await walletsGet(client, args173.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103173
103484
|
if (!result.ok) {
|
|
103174
103485
|
return {
|
|
103175
103486
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103184,9 +103495,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
103184
103495
|
|
|
103185
103496
|
// src/funcs/walletsList.ts
|
|
103186
103497
|
function walletsList(client, request, options) {
|
|
103187
|
-
return new APIPromise($
|
|
103498
|
+
return new APIPromise($do178(client, request, options));
|
|
103188
103499
|
}
|
|
103189
|
-
async function $
|
|
103500
|
+
async function $do178(client, request, options) {
|
|
103190
103501
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103191
103502
|
if (!parsed.ok) {
|
|
103192
103503
|
return [parsed, { status: "invalid" }];
|
|
@@ -103274,12 +103585,12 @@ var init_walletsList = __esm(() => {
|
|
|
103274
103585
|
});
|
|
103275
103586
|
|
|
103276
103587
|
// src/mcp-server/tools/walletsList.ts
|
|
103277
|
-
var
|
|
103588
|
+
var args173, tool$walletsList;
|
|
103278
103589
|
var init_walletsList2 = __esm(() => {
|
|
103279
103590
|
init_walletsList();
|
|
103280
103591
|
init_operations();
|
|
103281
103592
|
init_tools();
|
|
103282
|
-
|
|
103593
|
+
args173 = {
|
|
103283
103594
|
request: ListWalletsRequest$inboundSchema
|
|
103284
103595
|
};
|
|
103285
103596
|
tool$walletsList = {
|
|
@@ -103290,9 +103601,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
103290
103601
|
|
|
103291
103602
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103292
103603
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
103293
|
-
args:
|
|
103294
|
-
tool: async (client,
|
|
103295
|
-
const [result, apiCall] = await walletsList(client,
|
|
103604
|
+
args: args173,
|
|
103605
|
+
tool: async (client, args174, ctx) => {
|
|
103606
|
+
const [result, apiCall] = await walletsList(client, args174.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103296
103607
|
if (!result.ok) {
|
|
103297
103608
|
return {
|
|
103298
103609
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103307,9 +103618,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
103307
103618
|
|
|
103308
103619
|
// src/funcs/walletsUpdate.ts
|
|
103309
103620
|
function walletsUpdate(client, request, options) {
|
|
103310
|
-
return new APIPromise($
|
|
103621
|
+
return new APIPromise($do179(client, request, options));
|
|
103311
103622
|
}
|
|
103312
|
-
async function $
|
|
103623
|
+
async function $do179(client, request, options) {
|
|
103313
103624
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103314
103625
|
if (!parsed.ok) {
|
|
103315
103626
|
return [parsed, { status: "invalid" }];
|
|
@@ -103395,12 +103706,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
103395
103706
|
});
|
|
103396
103707
|
|
|
103397
103708
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
103398
|
-
var
|
|
103709
|
+
var args174, tool$walletsUpdate;
|
|
103399
103710
|
var init_walletsUpdate2 = __esm(() => {
|
|
103400
103711
|
init_walletsUpdate();
|
|
103401
103712
|
init_operations();
|
|
103402
103713
|
init_tools();
|
|
103403
|
-
|
|
103714
|
+
args174 = {
|
|
103404
103715
|
request: UpdateWalletRequest$inboundSchema
|
|
103405
103716
|
};
|
|
103406
103717
|
tool$walletsUpdate = {
|
|
@@ -103411,9 +103722,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
103411
103722
|
|
|
103412
103723
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103413
103724
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
103414
|
-
args:
|
|
103415
|
-
tool: async (client,
|
|
103416
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
103725
|
+
args: args174,
|
|
103726
|
+
tool: async (client, args175, ctx) => {
|
|
103727
|
+
const [result, apiCall] = await walletsUpdate(client, args175.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103417
103728
|
if (!result.ok) {
|
|
103418
103729
|
return {
|
|
103419
103730
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103428,9 +103739,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
103428
103739
|
|
|
103429
103740
|
// src/funcs/walletTransactionsGet.ts
|
|
103430
103741
|
function walletTransactionsGet(client, request, options) {
|
|
103431
|
-
return new APIPromise($
|
|
103742
|
+
return new APIPromise($do180(client, request, options));
|
|
103432
103743
|
}
|
|
103433
|
-
async function $
|
|
103744
|
+
async function $do180(client, request, options) {
|
|
103434
103745
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103435
103746
|
if (!parsed.ok) {
|
|
103436
103747
|
return [parsed, { status: "invalid" }];
|
|
@@ -103516,12 +103827,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
103516
103827
|
});
|
|
103517
103828
|
|
|
103518
103829
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
103519
|
-
var
|
|
103830
|
+
var args175, tool$walletTransactionsGet;
|
|
103520
103831
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
103521
103832
|
init_walletTransactionsGet();
|
|
103522
103833
|
init_operations();
|
|
103523
103834
|
init_tools();
|
|
103524
|
-
|
|
103835
|
+
args175 = {
|
|
103525
103836
|
request: GetWalletTransactionRequest$inboundSchema
|
|
103526
103837
|
};
|
|
103527
103838
|
tool$walletTransactionsGet = {
|
|
@@ -103532,9 +103843,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
103532
103843
|
|
|
103533
103844
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103534
103845
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
103535
|
-
args:
|
|
103536
|
-
tool: async (client,
|
|
103537
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
103846
|
+
args: args175,
|
|
103847
|
+
tool: async (client, args176, ctx) => {
|
|
103848
|
+
const [result, apiCall] = await walletTransactionsGet(client, args176.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103538
103849
|
if (!result.ok) {
|
|
103539
103850
|
return {
|
|
103540
103851
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103549,9 +103860,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
103549
103860
|
|
|
103550
103861
|
// src/funcs/walletTransactionsList.ts
|
|
103551
103862
|
function walletTransactionsList(client, request, options) {
|
|
103552
|
-
return new APIPromise($
|
|
103863
|
+
return new APIPromise($do181(client, request, options));
|
|
103553
103864
|
}
|
|
103554
|
-
async function $
|
|
103865
|
+
async function $do181(client, request, options) {
|
|
103555
103866
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103556
103867
|
if (!parsed.ok) {
|
|
103557
103868
|
return [parsed, { status: "invalid" }];
|
|
@@ -103651,12 +103962,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
103651
103962
|
});
|
|
103652
103963
|
|
|
103653
103964
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
103654
|
-
var
|
|
103965
|
+
var args176, tool$walletTransactionsList;
|
|
103655
103966
|
var init_walletTransactionsList2 = __esm(() => {
|
|
103656
103967
|
init_walletTransactionsList();
|
|
103657
103968
|
init_operations();
|
|
103658
103969
|
init_tools();
|
|
103659
|
-
|
|
103970
|
+
args176 = {
|
|
103660
103971
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
103661
103972
|
};
|
|
103662
103973
|
tool$walletTransactionsList = {
|
|
@@ -103667,9 +103978,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
103667
103978
|
|
|
103668
103979
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
103669
103980
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
103670
|
-
args:
|
|
103671
|
-
tool: async (client,
|
|
103672
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
103981
|
+
args: args176,
|
|
103982
|
+
tool: async (client, args177, ctx) => {
|
|
103983
|
+
const [result, apiCall] = await walletTransactionsList(client, args177.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103673
103984
|
if (!result.ok) {
|
|
103674
103985
|
return {
|
|
103675
103986
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103684,9 +103995,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
103684
103995
|
|
|
103685
103996
|
// src/funcs/webhooksCreate.ts
|
|
103686
103997
|
function webhooksCreate(client, request, options) {
|
|
103687
|
-
return new APIPromise($
|
|
103998
|
+
return new APIPromise($do182(client, request, options));
|
|
103688
103999
|
}
|
|
103689
|
-
async function $
|
|
104000
|
+
async function $do182(client, request, options) {
|
|
103690
104001
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
103691
104002
|
if (!parsed.ok) {
|
|
103692
104003
|
return [parsed, { status: "invalid" }];
|
|
@@ -103763,20 +104074,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
103763
104074
|
});
|
|
103764
104075
|
|
|
103765
104076
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
103766
|
-
var
|
|
104077
|
+
var args177, tool$webhooksCreate;
|
|
103767
104078
|
var init_webhooksCreate2 = __esm(() => {
|
|
103768
104079
|
init_webhooksCreate();
|
|
103769
104080
|
init_components();
|
|
103770
104081
|
init_tools();
|
|
103771
|
-
|
|
104082
|
+
args177 = {
|
|
103772
104083
|
request: CreateWebhook$inboundSchema
|
|
103773
104084
|
};
|
|
103774
104085
|
tool$webhooksCreate = {
|
|
103775
104086
|
name: "webhooks-create",
|
|
103776
104087
|
description: `Create a new webhook for the account.`,
|
|
103777
|
-
args:
|
|
103778
|
-
tool: async (client,
|
|
103779
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
104088
|
+
args: args177,
|
|
104089
|
+
tool: async (client, args178, ctx) => {
|
|
104090
|
+
const [result, apiCall] = await webhooksCreate(client, args178.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103780
104091
|
if (!result.ok) {
|
|
103781
104092
|
return {
|
|
103782
104093
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103791,9 +104102,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
103791
104102
|
|
|
103792
104103
|
// src/funcs/webhooksDisable.ts
|
|
103793
104104
|
function webhooksDisable(client, request, options) {
|
|
103794
|
-
return new APIPromise($
|
|
104105
|
+
return new APIPromise($do183(client, request, options));
|
|
103795
104106
|
}
|
|
103796
|
-
async function $
|
|
104107
|
+
async function $do183(client, request, options) {
|
|
103797
104108
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103798
104109
|
if (!parsed.ok) {
|
|
103799
104110
|
return [parsed, { status: "invalid" }];
|
|
@@ -103870,20 +104181,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
103870
104181
|
});
|
|
103871
104182
|
|
|
103872
104183
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
103873
|
-
var
|
|
104184
|
+
var args178, tool$webhooksDisable;
|
|
103874
104185
|
var init_webhooksDisable2 = __esm(() => {
|
|
103875
104186
|
init_webhooksDisable();
|
|
103876
104187
|
init_operations();
|
|
103877
104188
|
init_tools();
|
|
103878
|
-
|
|
104189
|
+
args178 = {
|
|
103879
104190
|
request: DisableWebhookRequest$inboundSchema
|
|
103880
104191
|
};
|
|
103881
104192
|
tool$webhooksDisable = {
|
|
103882
104193
|
name: "webhooks-disable",
|
|
103883
104194
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
103884
|
-
args:
|
|
103885
|
-
tool: async (client,
|
|
103886
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
104195
|
+
args: args178,
|
|
104196
|
+
tool: async (client, args179, ctx) => {
|
|
104197
|
+
const [result, apiCall] = await webhooksDisable(client, args179.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103887
104198
|
if (!result.ok) {
|
|
103888
104199
|
return {
|
|
103889
104200
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103897,9 +104208,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
103897
104208
|
|
|
103898
104209
|
// src/funcs/webhooksGet.ts
|
|
103899
104210
|
function webhooksGet(client, request, options) {
|
|
103900
|
-
return new APIPromise($
|
|
104211
|
+
return new APIPromise($do184(client, request, options));
|
|
103901
104212
|
}
|
|
103902
|
-
async function $
|
|
104213
|
+
async function $do184(client, request, options) {
|
|
103903
104214
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103904
104215
|
if (!parsed.ok) {
|
|
103905
104216
|
return [parsed, { status: "invalid" }];
|
|
@@ -103977,20 +104288,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
103977
104288
|
});
|
|
103978
104289
|
|
|
103979
104290
|
// src/mcp-server/tools/webhooksGet.ts
|
|
103980
|
-
var
|
|
104291
|
+
var args179, tool$webhooksGet;
|
|
103981
104292
|
var init_webhooksGet2 = __esm(() => {
|
|
103982
104293
|
init_webhooksGet();
|
|
103983
104294
|
init_operations();
|
|
103984
104295
|
init_tools();
|
|
103985
|
-
|
|
104296
|
+
args179 = {
|
|
103986
104297
|
request: GetWebhookRequest$inboundSchema
|
|
103987
104298
|
};
|
|
103988
104299
|
tool$webhooksGet = {
|
|
103989
104300
|
name: "webhooks-get",
|
|
103990
104301
|
description: `Get details of a specific webhook.`,
|
|
103991
|
-
args:
|
|
103992
|
-
tool: async (client,
|
|
103993
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
104302
|
+
args: args179,
|
|
104303
|
+
tool: async (client, args180, ctx) => {
|
|
104304
|
+
const [result, apiCall] = await webhooksGet(client, args180.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103994
104305
|
if (!result.ok) {
|
|
103995
104306
|
return {
|
|
103996
104307
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -104005,9 +104316,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
104005
104316
|
|
|
104006
104317
|
// src/funcs/webhooksGetSecret.ts
|
|
104007
104318
|
function webhooksGetSecret(client, request, options) {
|
|
104008
|
-
return new APIPromise($
|
|
104319
|
+
return new APIPromise($do185(client, request, options));
|
|
104009
104320
|
}
|
|
104010
|
-
async function $
|
|
104321
|
+
async function $do185(client, request, options) {
|
|
104011
104322
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
104012
104323
|
if (!parsed.ok) {
|
|
104013
104324
|
return [parsed, { status: "invalid" }];
|
|
@@ -104085,20 +104396,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
104085
104396
|
});
|
|
104086
104397
|
|
|
104087
104398
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
104088
|
-
var
|
|
104399
|
+
var args180, tool$webhooksGetSecret;
|
|
104089
104400
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
104090
104401
|
init_webhooksGetSecret();
|
|
104091
104402
|
init_operations();
|
|
104092
104403
|
init_tools();
|
|
104093
|
-
|
|
104404
|
+
args180 = {
|
|
104094
104405
|
request: GetWebhookSecretRequest$inboundSchema
|
|
104095
104406
|
};
|
|
104096
104407
|
tool$webhooksGetSecret = {
|
|
104097
104408
|
name: "webhooks-get-secret",
|
|
104098
104409
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
104099
|
-
args:
|
|
104100
|
-
tool: async (client,
|
|
104101
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
104410
|
+
args: args180,
|
|
104411
|
+
tool: async (client, args181, ctx) => {
|
|
104412
|
+
const [result, apiCall] = await webhooksGetSecret(client, args181.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
104102
104413
|
if (!result.ok) {
|
|
104103
104414
|
return {
|
|
104104
104415
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -104113,9 +104424,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
104113
104424
|
|
|
104114
104425
|
// src/funcs/webhooksList.ts
|
|
104115
104426
|
function webhooksList(client, options) {
|
|
104116
|
-
return new APIPromise($
|
|
104427
|
+
return new APIPromise($do186(client, options));
|
|
104117
104428
|
}
|
|
104118
|
-
async function $
|
|
104429
|
+
async function $do186(client, options) {
|
|
104119
104430
|
const path = pathToFunc("/webhooks")();
|
|
104120
104431
|
const headers = new Headers(compactMap({
|
|
104121
104432
|
Accept: "application/json"
|
|
@@ -104201,9 +104512,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
104201
104512
|
|
|
104202
104513
|
// src/funcs/webhooksListEventTypes.ts
|
|
104203
104514
|
function webhooksListEventTypes(client, options) {
|
|
104204
|
-
return new APIPromise($
|
|
104515
|
+
return new APIPromise($do187(client, options));
|
|
104205
104516
|
}
|
|
104206
|
-
async function $
|
|
104517
|
+
async function $do187(client, options) {
|
|
104207
104518
|
const path = pathToFunc("/event-types")();
|
|
104208
104519
|
const headers = new Headers(compactMap({
|
|
104209
104520
|
Accept: "application/json"
|
|
@@ -104289,9 +104600,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
104289
104600
|
|
|
104290
104601
|
// src/funcs/webhooksPing.ts
|
|
104291
104602
|
function webhooksPing(client, request, options) {
|
|
104292
|
-
return new APIPromise($
|
|
104603
|
+
return new APIPromise($do188(client, request, options));
|
|
104293
104604
|
}
|
|
104294
|
-
async function $
|
|
104605
|
+
async function $do188(client, request, options) {
|
|
104295
104606
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
104296
104607
|
if (!parsed.ok) {
|
|
104297
104608
|
return [parsed, { status: "invalid" }];
|
|
@@ -104369,20 +104680,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
104369
104680
|
});
|
|
104370
104681
|
|
|
104371
104682
|
// src/mcp-server/tools/webhooksPing.ts
|
|
104372
|
-
var
|
|
104683
|
+
var args181, tool$webhooksPing;
|
|
104373
104684
|
var init_webhooksPing2 = __esm(() => {
|
|
104374
104685
|
init_webhooksPing();
|
|
104375
104686
|
init_operations();
|
|
104376
104687
|
init_tools();
|
|
104377
|
-
|
|
104688
|
+
args181 = {
|
|
104378
104689
|
request: PingWebhookRequest$inboundSchema
|
|
104379
104690
|
};
|
|
104380
104691
|
tool$webhooksPing = {
|
|
104381
104692
|
name: "webhooks-ping",
|
|
104382
104693
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
104383
|
-
args:
|
|
104384
|
-
tool: async (client,
|
|
104385
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
104694
|
+
args: args181,
|
|
104695
|
+
tool: async (client, args182, ctx) => {
|
|
104696
|
+
const [result, apiCall] = await webhooksPing(client, args182.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
104386
104697
|
if (!result.ok) {
|
|
104387
104698
|
return {
|
|
104388
104699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -104397,9 +104708,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
104397
104708
|
|
|
104398
104709
|
// src/funcs/webhooksUpdate.ts
|
|
104399
104710
|
function webhooksUpdate(client, request, options) {
|
|
104400
|
-
return new APIPromise($
|
|
104711
|
+
return new APIPromise($do189(client, request, options));
|
|
104401
104712
|
}
|
|
104402
|
-
async function $
|
|
104713
|
+
async function $do189(client, request, options) {
|
|
104403
104714
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
104404
104715
|
if (!parsed.ok) {
|
|
104405
104716
|
return [parsed, { status: "invalid" }];
|
|
@@ -104481,20 +104792,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
104481
104792
|
});
|
|
104482
104793
|
|
|
104483
104794
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
104484
|
-
var
|
|
104795
|
+
var args182, tool$webhooksUpdate;
|
|
104485
104796
|
var init_webhooksUpdate2 = __esm(() => {
|
|
104486
104797
|
init_webhooksUpdate();
|
|
104487
104798
|
init_operations();
|
|
104488
104799
|
init_tools();
|
|
104489
|
-
|
|
104800
|
+
args182 = {
|
|
104490
104801
|
request: UpdateWebhookRequest$inboundSchema
|
|
104491
104802
|
};
|
|
104492
104803
|
tool$webhooksUpdate = {
|
|
104493
104804
|
name: "webhooks-update",
|
|
104494
104805
|
description: `Update an existing webhook.`,
|
|
104495
|
-
args:
|
|
104496
|
-
tool: async (client,
|
|
104497
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
104806
|
+
args: args182,
|
|
104807
|
+
tool: async (client, args183, ctx) => {
|
|
104808
|
+
const [result, apiCall] = await webhooksUpdate(client, args183.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
104498
104809
|
if (!result.ok) {
|
|
104499
104810
|
return {
|
|
104500
104811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -104511,7 +104822,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
104511
104822
|
function createMCPServer(deps) {
|
|
104512
104823
|
const server = new McpServer({
|
|
104513
104824
|
name: "Moov",
|
|
104514
|
-
version: "0.0.0-dev.
|
|
104825
|
+
version: "0.0.0-dev.25"
|
|
104515
104826
|
});
|
|
104516
104827
|
const client = new MoovCore({
|
|
104517
104828
|
security: deps.security,
|
|
@@ -104660,6 +104971,7 @@ function createMCPServer(deps) {
|
|
|
104660
104971
|
tool(tool$transfersGet);
|
|
104661
104972
|
tool(tool$transfersUpdate);
|
|
104662
104973
|
tool(tool$transfersCreateCancellation);
|
|
104974
|
+
tool(tool$transfersListCancellations);
|
|
104663
104975
|
tool(tool$transfersGetCancellation);
|
|
104664
104976
|
tool(tool$transfersInitiateRefund);
|
|
104665
104977
|
tool(tool$transfersListRefunds);
|
|
@@ -104890,6 +105202,7 @@ var init_server2 = __esm(() => {
|
|
|
104890
105202
|
init_transfersGetRefund2();
|
|
104891
105203
|
init_transfersInitiateRefund2();
|
|
104892
105204
|
init_transfersList2();
|
|
105205
|
+
init_transfersListCancellations2();
|
|
104893
105206
|
init_transfersListRefunds2();
|
|
104894
105207
|
init_transfersUpdate2();
|
|
104895
105208
|
init_underwritingGet2();
|
|
@@ -106111,7 +106424,7 @@ var routes = rn({
|
|
|
106111
106424
|
var app = Ve(routes, {
|
|
106112
106425
|
name: "mcp",
|
|
106113
106426
|
versionInfo: {
|
|
106114
|
-
currentVersion: "0.0.0-dev.
|
|
106427
|
+
currentVersion: "0.0.0-dev.25"
|
|
106115
106428
|
}
|
|
106116
106429
|
});
|
|
106117
106430
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -106119,5 +106432,5 @@ export {
|
|
|
106119
106432
|
app
|
|
106120
106433
|
};
|
|
106121
106434
|
|
|
106122
|
-
//# debugId=
|
|
106435
|
+
//# debugId=102845F49F4E76B864756E2164756E21
|
|
106123
106436
|
//# sourceMappingURL=mcp-server.js.map
|