@moovio/sdk 26.5.1 → 26.5.3
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 +91 -87
- package/bin/mcp-server.js +635 -326
- package/bin/mcp-server.js.map +74 -71
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/bankAccountsLink.d.ts +1 -1
- package/funcs/bankAccountsLink.js +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/bankAccountsLink.js +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/mcp-server/tools/transfersListCancellations.js +65 -0
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +15 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +8 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardtransactiondetails.d.ts +7 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +5 -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 +3 -3
- 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/fullissuedcard.d.ts +26 -12
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +5 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +5 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/issuedcard.d.ts +26 -12
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +2 -8
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +1 -5
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/manualtermsofservice.d.ts +1 -1
- package/models/components/manualtermsofserviceupdate.d.ts +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/patchtransfer.d.ts +3 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js.map +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +3 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/payoutdetailserror.d.ts +3 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +3 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/components/pushdeliveryspeed.d.ts +18 -0
- package/models/components/pushdeliveryspeed.d.ts.map +1 -0
- package/models/components/pushdeliveryspeed.js +52 -0
- package/models/components/pushdeliveryspeed.js.map +1 -0
- package/models/components/pushoptions.d.ts +35 -0
- package/models/components/pushoptions.d.ts.map +1 -0
- package/models/components/{createauthorizeduser.js → pushoptions.js} +15 -17
- package/models/components/pushoptions.js.map +1 -0
- package/models/components/pushoptionserror.d.ts +19 -0
- package/models/components/pushoptionserror.d.ts.map +1 -0
- package/models/components/{authorizeduser.js → pushoptionserror.js} +14 -14
- package/models/components/pushoptionserror.js.map +1 -0
- package/models/components/pushoptionsupdate.d.ts +35 -0
- package/models/components/pushoptionsupdate.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → pushoptionsupdate.js} +15 -17
- package/models/components/pushoptionsupdate.js.map +1 -0
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/termsofservice.d.ts +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizeduserupdate.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/linkbankaccount.d.ts +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/models/operations/listissuedcards.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/bankaccounts.d.ts +1 -1
- package/sdk/bankaccounts.js +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/bankAccountsLink.ts +1 -1
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +15 -2
- package/src/models/components/cardtransactiondetails.ts +14 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/createtransferdestinationcard.ts +9 -0
- package/src/models/components/fullissuedcard.ts +36 -20
- package/src/models/components/index.ts +5 -4
- package/src/models/components/invoice.ts +7 -0
- package/src/models/components/issuedcard.ts +36 -20
- package/src/models/components/issuedcardstate.ts +2 -8
- package/src/models/components/manualtermsofservice.ts +1 -1
- package/src/models/components/manualtermsofserviceupdate.ts +1 -1
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/patchtransfer.ts +3 -0
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
- package/src/models/components/payoutdetailserror.ts +10 -0
- package/src/models/components/pushdeliveryspeed.ts +27 -0
- package/src/models/components/pushoptions.ts +71 -0
- package/src/models/components/pushoptionserror.ts +55 -0
- package/src/models/components/pushoptionsupdate.ts +75 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/termsofservice.ts +1 -1
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/bankaccounts.ts +1 -1
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/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.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.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- package/src/models/components/createauthorizeduserupdate.ts +0 -68
package/bin/mcp-server.js
CHANGED
|
@@ -37121,6 +37121,57 @@ function remap(inp, mappings) {
|
|
|
37121
37121
|
}
|
|
37122
37122
|
return out;
|
|
37123
37123
|
}
|
|
37124
|
+
function combineSignals(...signals) {
|
|
37125
|
+
const filtered = [];
|
|
37126
|
+
for (const signal of signals) {
|
|
37127
|
+
if (signal) {
|
|
37128
|
+
filtered.push(signal);
|
|
37129
|
+
}
|
|
37130
|
+
}
|
|
37131
|
+
switch (filtered.length) {
|
|
37132
|
+
case 0:
|
|
37133
|
+
case 1:
|
|
37134
|
+
return filtered[0] || null;
|
|
37135
|
+
default:
|
|
37136
|
+
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
|
|
37137
|
+
return AbortSignal.any(filtered);
|
|
37138
|
+
}
|
|
37139
|
+
return abortSignalAny(filtered);
|
|
37140
|
+
}
|
|
37141
|
+
}
|
|
37142
|
+
function abortSignalAny(signals) {
|
|
37143
|
+
const controller = new AbortController;
|
|
37144
|
+
const result = controller.signal;
|
|
37145
|
+
if (!signals.length) {
|
|
37146
|
+
return controller.signal;
|
|
37147
|
+
}
|
|
37148
|
+
if (signals.length === 1) {
|
|
37149
|
+
return signals[0] || controller.signal;
|
|
37150
|
+
}
|
|
37151
|
+
for (const signal of signals) {
|
|
37152
|
+
if (signal.aborted) {
|
|
37153
|
+
return signal;
|
|
37154
|
+
}
|
|
37155
|
+
}
|
|
37156
|
+
function abort() {
|
|
37157
|
+
controller.abort(this.reason);
|
|
37158
|
+
clean();
|
|
37159
|
+
}
|
|
37160
|
+
const signalRefs = [];
|
|
37161
|
+
function clean() {
|
|
37162
|
+
for (const signalRef of signalRefs) {
|
|
37163
|
+
const signal = signalRef.deref();
|
|
37164
|
+
if (signal) {
|
|
37165
|
+
signal.removeEventListener("abort", abort);
|
|
37166
|
+
}
|
|
37167
|
+
}
|
|
37168
|
+
}
|
|
37169
|
+
for (const signal of signals) {
|
|
37170
|
+
signalRefs.push(new WeakRef(signal));
|
|
37171
|
+
signal.addEventListener("abort", abort);
|
|
37172
|
+
}
|
|
37173
|
+
return result;
|
|
37174
|
+
}
|
|
37124
37175
|
function compactMap(values) {
|
|
37125
37176
|
const out = {};
|
|
37126
37177
|
for (const [k2, v2] of Object.entries(values)) {
|
|
@@ -37136,6 +37187,20 @@ function allRequired(v2) {
|
|
|
37136
37187
|
}
|
|
37137
37188
|
return v2;
|
|
37138
37189
|
}
|
|
37190
|
+
function isPlainObject2(value) {
|
|
37191
|
+
if (value === null || typeof value !== "object")
|
|
37192
|
+
return false;
|
|
37193
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
37194
|
+
return false;
|
|
37195
|
+
const proto = Object.getPrototypeOf(value);
|
|
37196
|
+
if (proto === null || proto === Object.prototype)
|
|
37197
|
+
return true;
|
|
37198
|
+
try {
|
|
37199
|
+
return Object.getPrototypeOf(proto) === null;
|
|
37200
|
+
} catch {
|
|
37201
|
+
return false;
|
|
37202
|
+
}
|
|
37203
|
+
}
|
|
37139
37204
|
var init_primitives = () => {};
|
|
37140
37205
|
|
|
37141
37206
|
// node_modules/zod/dist/esm/v4/mini/parse.js
|
|
@@ -39629,7 +39694,7 @@ class Protocol {
|
|
|
39629
39694
|
};
|
|
39630
39695
|
}
|
|
39631
39696
|
}
|
|
39632
|
-
function
|
|
39697
|
+
function isPlainObject3(value) {
|
|
39633
39698
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
39634
39699
|
}
|
|
39635
39700
|
function mergeCapabilities(base, additional) {
|
|
@@ -39640,7 +39705,7 @@ function mergeCapabilities(base, additional) {
|
|
|
39640
39705
|
if (addValue === undefined)
|
|
39641
39706
|
continue;
|
|
39642
39707
|
const baseValue = result[k2];
|
|
39643
|
-
if (
|
|
39708
|
+
if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
|
|
39644
39709
|
result[k2] = { ...baseValue, ...addValue };
|
|
39645
39710
|
} else {
|
|
39646
39711
|
result[k2] = addValue;
|
|
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
|
|
|
52909
52974
|
SDK_METADATA = {
|
|
52910
52975
|
language: "typescript",
|
|
52911
52976
|
openapiDocVersion: "v2026.04.00",
|
|
52912
|
-
sdkVersion: "26.5.
|
|
52913
|
-
genVersion: "2.
|
|
52914
|
-
userAgent: "speakeasy-sdk/typescript 26.5.
|
|
52977
|
+
sdkVersion: "26.5.3",
|
|
52978
|
+
genVersion: "2.916.2",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 26.5.3 2.916.2 v2026.04.00 @moovio/sdk"
|
|
52915
52980
|
};
|
|
52916
52981
|
});
|
|
52917
52982
|
|
|
@@ -53084,15 +53149,6 @@ var init_base64 = __esm(() => {
|
|
|
53084
53149
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
53085
53150
|
});
|
|
53086
53151
|
|
|
53087
|
-
// src/lib/is-plain-object.ts
|
|
53088
|
-
function isPlainObject3(value) {
|
|
53089
|
-
if (typeof value !== "object" || value === null) {
|
|
53090
|
-
return false;
|
|
53091
|
-
}
|
|
53092
|
-
const prototype = Object.getPrototypeOf(value);
|
|
53093
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
53094
|
-
}
|
|
53095
|
-
|
|
53096
53152
|
// src/lib/encodings.ts
|
|
53097
53153
|
function formEncoder(sep) {
|
|
53098
53154
|
return (key, value, options) => {
|
|
@@ -53113,7 +53169,7 @@ function formEncoder(sep) {
|
|
|
53113
53169
|
return;
|
|
53114
53170
|
} else if (Array.isArray(pv)) {
|
|
53115
53171
|
encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
|
|
53116
|
-
} else if (
|
|
53172
|
+
} else if (isPlainObject2(pv)) {
|
|
53117
53173
|
encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53118
53174
|
return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
|
|
53119
53175
|
})?.join(encodedSep);
|
|
@@ -53136,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
|
|
|
53136
53192
|
if (value == null) {
|
|
53137
53193
|
return;
|
|
53138
53194
|
}
|
|
53139
|
-
if (!
|
|
53195
|
+
if (!isPlainObject2(value)) {
|
|
53140
53196
|
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
53141
53197
|
}
|
|
53142
53198
|
return encodeDeepObjectObject(key, value, options);
|
|
@@ -53149,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53149
53205
|
const encodeString = (v2) => {
|
|
53150
53206
|
return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
|
|
53151
53207
|
};
|
|
53152
|
-
if (!
|
|
53208
|
+
if (!isPlainObject2(value)) {
|
|
53153
53209
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
53154
53210
|
}
|
|
53155
53211
|
Object.entries(value).forEach(([ck, cv]) => {
|
|
@@ -53157,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53157
53213
|
return;
|
|
53158
53214
|
}
|
|
53159
53215
|
const pk = `${key}[${ck}]`;
|
|
53160
|
-
if (
|
|
53216
|
+
if (isPlainObject2(cv)) {
|
|
53161
53217
|
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
53162
53218
|
out += objOut == null ? "" : `&${objOut}`;
|
|
53163
53219
|
return;
|
|
@@ -53183,7 +53239,7 @@ function encodeJSON(key, value, options) {
|
|
|
53183
53239
|
function explode(key, value) {
|
|
53184
53240
|
if (Array.isArray(value)) {
|
|
53185
53241
|
return value.map((v2) => [key, v2]);
|
|
53186
|
-
} else if (
|
|
53242
|
+
} else if (isPlainObject2(value)) {
|
|
53187
53243
|
const o = value ?? {};
|
|
53188
53244
|
return Object.entries(o).map(([k2, v2]) => [k2, v2]);
|
|
53189
53245
|
} else {
|
|
@@ -53308,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53308
53364
|
return;
|
|
53309
53365
|
} else if (Array.isArray(pv)) {
|
|
53310
53366
|
tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
|
|
53311
|
-
} else if (
|
|
53367
|
+
} else if (isPlainObject2(pv)) {
|
|
53312
53368
|
const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53313
53369
|
return `,${encodeString(k2)},${encodeValue(v2)}`;
|
|
53314
53370
|
});
|
|
53315
53371
|
tmp = mapped?.join("").slice(1);
|
|
53316
53372
|
} else {
|
|
53317
|
-
const k2 = options?.explode &&
|
|
53373
|
+
const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
|
|
53318
53374
|
tmp = `${k2}${encodeValue(pv)}`;
|
|
53319
53375
|
}
|
|
53320
53376
|
out += tmp ? `,${tmp}` : "";
|
|
@@ -53323,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53323
53379
|
}, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
53324
53380
|
var init_encodings = __esm(() => {
|
|
53325
53381
|
init_base64();
|
|
53382
|
+
init_primitives();
|
|
53326
53383
|
EncodingError = class EncodingError extends Error {
|
|
53327
53384
|
constructor(message) {
|
|
53328
53385
|
super(message);
|
|
@@ -53588,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
53588
53645
|
}
|
|
53589
53646
|
}
|
|
53590
53647
|
function retryIntervalFromResponse(res) {
|
|
53648
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
53649
|
+
if (retryAfterMsVal) {
|
|
53650
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
53651
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
53652
|
+
return parsedMs;
|
|
53653
|
+
}
|
|
53654
|
+
}
|
|
53591
53655
|
const retryVal = res.headers.get("retry-after") || "";
|
|
53592
53656
|
if (!retryVal) {
|
|
53593
53657
|
return 0;
|
|
@@ -53679,24 +53743,41 @@ class ClientSDK {
|
|
|
53679
53743
|
if (path) {
|
|
53680
53744
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53681
53745
|
reqURL = new URL(path, baseURL);
|
|
53746
|
+
if (!reqURL.search && baseURL.search) {
|
|
53747
|
+
reqURL.search = baseURL.search;
|
|
53748
|
+
}
|
|
53682
53749
|
} else {
|
|
53683
53750
|
reqURL = baseURL;
|
|
53684
53751
|
}
|
|
53685
53752
|
reqURL.hash = "";
|
|
53686
|
-
|
|
53687
|
-
|
|
53688
|
-
|
|
53689
|
-
const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
|
|
53690
|
-
if (typeof q2 !== "undefined") {
|
|
53691
|
-
secQuery.push(q2);
|
|
53753
|
+
const mergeQuery = (current, additions) => {
|
|
53754
|
+
if (!additions) {
|
|
53755
|
+
return current;
|
|
53692
53756
|
}
|
|
53693
|
-
|
|
53694
|
-
|
|
53695
|
-
|
|
53696
|
-
|
|
53757
|
+
const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
|
|
53758
|
+
const kept = current.split("&").filter((pair) => {
|
|
53759
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
53760
|
+
});
|
|
53761
|
+
return [...kept, additions].join("&");
|
|
53762
|
+
};
|
|
53763
|
+
const encodeQueryRecord = (record3) => {
|
|
53764
|
+
return Object.entries(record3).map(([k2, v2]) => {
|
|
53765
|
+
if (v2 == null) {
|
|
53766
|
+
return;
|
|
53767
|
+
}
|
|
53768
|
+
const value = v2;
|
|
53769
|
+
return encodeForm(k2, value, {
|
|
53770
|
+
explode: Array.isArray(value),
|
|
53771
|
+
charEncoding: "percent"
|
|
53772
|
+
});
|
|
53773
|
+
}).filter((pair) => typeof pair !== "undefined").join("&");
|
|
53774
|
+
};
|
|
53775
|
+
const finalQuery = [
|
|
53776
|
+
query || "",
|
|
53777
|
+
encodeQueryRecord(security?.queryParams || {})
|
|
53778
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
53697
53779
|
if (finalQuery) {
|
|
53698
|
-
|
|
53699
|
-
reqURL.search = `?${q2}`;
|
|
53780
|
+
reqURL.search = `?${finalQuery}`;
|
|
53700
53781
|
}
|
|
53701
53782
|
const headers = new Headers(opHeaders);
|
|
53702
53783
|
const username = security?.basic.username;
|
|
@@ -53726,9 +53807,8 @@ class ClientSDK {
|
|
|
53726
53807
|
...options?.fetchOptions,
|
|
53727
53808
|
...options
|
|
53728
53809
|
};
|
|
53729
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
53730
|
-
|
|
53731
|
-
fetchOptions.signal = timeoutSignal;
|
|
53810
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
53811
|
+
context.timeoutMs = conf.timeoutMs;
|
|
53732
53812
|
}
|
|
53733
53813
|
if (conf.body instanceof ReadableStream) {
|
|
53734
53814
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -53753,8 +53833,16 @@ class ClientSDK {
|
|
|
53753
53833
|
}
|
|
53754
53834
|
async _do(request, options) {
|
|
53755
53835
|
const { context, isErrorStatusCode } = options;
|
|
53836
|
+
const timeoutMs = context.timeoutMs;
|
|
53756
53837
|
return retry(async () => {
|
|
53757
|
-
const
|
|
53838
|
+
const cloned = request.clone();
|
|
53839
|
+
let attempt = cloned;
|
|
53840
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
53841
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
53842
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
53843
|
+
attempt = new Request(cloned, { signal: combined });
|
|
53844
|
+
}
|
|
53845
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
53758
53846
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
53759
53847
|
let response = await this.#httpClient.request(req);
|
|
53760
53848
|
try {
|
|
@@ -53872,6 +53960,7 @@ var init_sdks = __esm(() => {
|
|
|
53872
53960
|
init_config();
|
|
53873
53961
|
init_encodings();
|
|
53874
53962
|
init_http();
|
|
53963
|
+
init_primitives();
|
|
53875
53964
|
init_retries();
|
|
53876
53965
|
gt2 = typeof globalThis === "undefined" ? null : globalThis;
|
|
53877
53966
|
webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
|
|
@@ -54321,7 +54410,7 @@ function match(...matchers) {
|
|
|
54321
54410
|
data = {
|
|
54322
54411
|
...options?.extraFields,
|
|
54323
54412
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54324
|
-
...
|
|
54413
|
+
...isPlainObject2(raw) ? raw : null,
|
|
54325
54414
|
request$: request,
|
|
54326
54415
|
response$: response,
|
|
54327
54416
|
body$: body
|
|
@@ -54336,7 +54425,7 @@ function match(...matchers) {
|
|
|
54336
54425
|
data = {
|
|
54337
54426
|
...options?.extraFields,
|
|
54338
54427
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54339
|
-
...
|
|
54428
|
+
...isPlainObject2(raw) ? raw : null
|
|
54340
54429
|
};
|
|
54341
54430
|
} else {
|
|
54342
54431
|
data = raw;
|
|
@@ -54376,6 +54465,7 @@ var init_matchers = __esm(() => {
|
|
|
54376
54465
|
init_apierror();
|
|
54377
54466
|
init_responsevalidationerror();
|
|
54378
54467
|
init_http();
|
|
54468
|
+
init_primitives();
|
|
54379
54469
|
DEFAULT_CONTENT_TYPES = {
|
|
54380
54470
|
jsonl: "application/jsonl",
|
|
54381
54471
|
json: "application/json",
|
|
@@ -55957,6 +56047,7 @@ var init_capabilityid = __esm(() => {
|
|
|
55957
56047
|
Wallet: "wallet",
|
|
55958
56048
|
WalletBalance: "wallet.balance",
|
|
55959
56049
|
CardIssuing: "card-issuing",
|
|
56050
|
+
IssuingCardholder: "issuing.cardholder",
|
|
55960
56051
|
ProductionApp: "production-app",
|
|
55961
56052
|
PlatformProductionApp: "platform.production-app",
|
|
55962
56053
|
PlatformWalletTransfers: "platform.wallet-transfers"
|
|
@@ -56390,20 +56481,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56390
56481
|
});
|
|
56391
56482
|
});
|
|
56392
56483
|
|
|
56393
|
-
// src/models/components/authorizeduser.ts
|
|
56394
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56395
|
-
var init_authorizeduser = __esm(() => {
|
|
56396
|
-
init_esm();
|
|
56397
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56398
|
-
firstName: stringType(),
|
|
56399
|
-
lastName: stringType()
|
|
56400
|
-
});
|
|
56401
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56402
|
-
firstName: stringType(),
|
|
56403
|
-
lastName: stringType()
|
|
56404
|
-
});
|
|
56405
|
-
});
|
|
56406
|
-
|
|
56407
56484
|
// src/models/components/tokentype.ts
|
|
56408
56485
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56409
56486
|
var init_tokentype = __esm(() => {
|
|
@@ -60493,7 +60570,8 @@ var init_cardtransactionstatus = __esm(() => {
|
|
|
60493
60570
|
Canceled: "canceled",
|
|
60494
60571
|
Settled: "settled",
|
|
60495
60572
|
Failed: "failed",
|
|
60496
|
-
Completed: "completed"
|
|
60573
|
+
Completed: "completed",
|
|
60574
|
+
Deferred: "deferred"
|
|
60497
60575
|
};
|
|
60498
60576
|
CardTransactionStatus$inboundSchema = nativeEnumType(CardTransactionStatus);
|
|
60499
60577
|
CardTransactionStatus$outboundSchema = CardTransactionStatus$inboundSchema;
|
|
@@ -60523,6 +60601,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
60523
60601
|
status: CardTransactionStatus$inboundSchema.optional(),
|
|
60524
60602
|
failureCode: CardTransactionFailureCode$inboundSchema.optional(),
|
|
60525
60603
|
dynamicDescriptor: stringType().optional(),
|
|
60604
|
+
scheduledDeliveryOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60526
60605
|
transactionSource: TransactionSource$inboundSchema.optional(),
|
|
60527
60606
|
initiatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60528
60607
|
confirmedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
@@ -60530,6 +60609,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
60530
60609
|
failedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60531
60610
|
canceledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60532
60611
|
completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60612
|
+
deferredOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
60533
60613
|
interchangeQualification: stringType().optional(),
|
|
60534
60614
|
feeProgram: stringType().optional(),
|
|
60535
60615
|
authorizationCode: stringType().optional()
|
|
@@ -60538,6 +60618,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
60538
60618
|
status: CardTransactionStatus$outboundSchema.optional(),
|
|
60539
60619
|
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
60540
60620
|
dynamicDescriptor: stringType().optional(),
|
|
60621
|
+
scheduledDeliveryOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60541
60622
|
transactionSource: TransactionSource$outboundSchema.optional(),
|
|
60542
60623
|
initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60543
60624
|
confirmedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
@@ -60545,6 +60626,7 @@ var init_cardtransactiondetails = __esm(() => {
|
|
|
60545
60626
|
failedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60546
60627
|
canceledOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60547
60628
|
completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60629
|
+
deferredOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
60548
60630
|
interchangeQualification: stringType().optional(),
|
|
60549
60631
|
feeProgram: stringType().optional(),
|
|
60550
60632
|
authorizationCode: stringType().optional()
|
|
@@ -61157,57 +61239,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
61157
61239
|
});
|
|
61158
61240
|
});
|
|
61159
61241
|
|
|
61160
|
-
// src/models/components/createauthorizeduser.ts
|
|
61161
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
61162
|
-
var init_createauthorizeduser = __esm(() => {
|
|
61163
|
-
init_esm();
|
|
61164
|
-
init_birthdate();
|
|
61165
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
61166
|
-
firstName: stringType(),
|
|
61167
|
-
lastName: stringType(),
|
|
61168
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
61169
|
-
});
|
|
61170
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
61171
|
-
firstName: stringType(),
|
|
61172
|
-
lastName: stringType(),
|
|
61173
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
61174
|
-
});
|
|
61175
|
-
});
|
|
61176
|
-
|
|
61177
|
-
// src/models/components/createauthorizedusererror.ts
|
|
61178
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
61179
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
61180
|
-
init_esm();
|
|
61181
|
-
init_birthdateerror();
|
|
61182
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
61183
|
-
firstName: stringType().optional(),
|
|
61184
|
-
lastName: stringType().optional(),
|
|
61185
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
61186
|
-
});
|
|
61187
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
61188
|
-
firstName: stringType().optional(),
|
|
61189
|
-
lastName: stringType().optional(),
|
|
61190
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
61191
|
-
});
|
|
61192
|
-
});
|
|
61193
|
-
|
|
61194
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
61195
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
61196
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
61197
|
-
init_esm();
|
|
61198
|
-
init_birthdateupdate();
|
|
61199
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
61200
|
-
firstName: stringType().optional(),
|
|
61201
|
-
lastName: stringType().optional(),
|
|
61202
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
61203
|
-
});
|
|
61204
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
61205
|
-
firstName: stringType().optional(),
|
|
61206
|
-
lastName: stringType().optional(),
|
|
61207
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
61208
|
-
});
|
|
61209
|
-
});
|
|
61210
|
-
|
|
61211
61242
|
// src/models/components/phonenumbererror.ts
|
|
61212
61243
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
61213
61244
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62335,21 +62366,51 @@ var init_payoutrecipient = __esm(() => {
|
|
|
62335
62366
|
});
|
|
62336
62367
|
});
|
|
62337
62368
|
|
|
62369
|
+
// src/models/components/pushdeliveryspeed.ts
|
|
62370
|
+
var PushDeliverySpeed, PushDeliverySpeed$inboundSchema, PushDeliverySpeed$outboundSchema;
|
|
62371
|
+
var init_pushdeliveryspeed = __esm(() => {
|
|
62372
|
+
init_esm();
|
|
62373
|
+
PushDeliverySpeed = {
|
|
62374
|
+
Instant: "instant",
|
|
62375
|
+
Deferred: "deferred"
|
|
62376
|
+
};
|
|
62377
|
+
PushDeliverySpeed$inboundSchema = nativeEnumType(PushDeliverySpeed);
|
|
62378
|
+
PushDeliverySpeed$outboundSchema = PushDeliverySpeed$inboundSchema;
|
|
62379
|
+
});
|
|
62380
|
+
|
|
62381
|
+
// src/models/components/pushoptions.ts
|
|
62382
|
+
var PushOptions$inboundSchema, PushOptions$outboundSchema;
|
|
62383
|
+
var init_pushoptions = __esm(() => {
|
|
62384
|
+
init_esm();
|
|
62385
|
+
init_pushdeliveryspeed();
|
|
62386
|
+
PushOptions$inboundSchema = objectType({
|
|
62387
|
+
allowedSpeeds: arrayType(PushDeliverySpeed$inboundSchema),
|
|
62388
|
+
deferredBy: stringType().optional()
|
|
62389
|
+
});
|
|
62390
|
+
PushOptions$outboundSchema = objectType({
|
|
62391
|
+
allowedSpeeds: arrayType(PushDeliverySpeed$outboundSchema),
|
|
62392
|
+
deferredBy: stringType().optional()
|
|
62393
|
+
});
|
|
62394
|
+
});
|
|
62395
|
+
|
|
62338
62396
|
// src/models/components/paymentlinkpayoutdetails.ts
|
|
62339
62397
|
var PaymentLinkPayoutDetails$inboundSchema, PaymentLinkPayoutDetails$outboundSchema;
|
|
62340
62398
|
var init_paymentlinkpayoutdetails = __esm(() => {
|
|
62341
62399
|
init_esm();
|
|
62342
62400
|
init_disbursementpaymentmethodtype();
|
|
62343
62401
|
init_payoutrecipient();
|
|
62402
|
+
init_pushoptions();
|
|
62344
62403
|
PaymentLinkPayoutDetails$inboundSchema = objectType({
|
|
62345
62404
|
allowedMethods: arrayType(DisbursementPaymentMethodType$inboundSchema),
|
|
62346
62405
|
recipient: PayoutRecipient$inboundSchema,
|
|
62347
|
-
metadata: recordType(stringType()).optional()
|
|
62406
|
+
metadata: recordType(stringType()).optional(),
|
|
62407
|
+
pushOptions: PushOptions$inboundSchema.optional()
|
|
62348
62408
|
});
|
|
62349
62409
|
PaymentLinkPayoutDetails$outboundSchema = objectType({
|
|
62350
62410
|
allowedMethods: arrayType(DisbursementPaymentMethodType$outboundSchema),
|
|
62351
62411
|
recipient: PayoutRecipient$outboundSchema,
|
|
62352
|
-
metadata: recordType(stringType()).optional()
|
|
62412
|
+
metadata: recordType(stringType()).optional(),
|
|
62413
|
+
pushOptions: PushOptions$outboundSchema.optional()
|
|
62353
62414
|
});
|
|
62354
62415
|
});
|
|
62355
62416
|
|
|
@@ -62925,10 +62986,12 @@ var init_createtransferdestinationcard = __esm(() => {
|
|
|
62925
62986
|
init_cardpayouttype();
|
|
62926
62987
|
CreateTransferDestinationCard$inboundSchema = objectType({
|
|
62927
62988
|
dynamicDescriptor: stringType().optional(),
|
|
62989
|
+
scheduledDeliveryOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
62928
62990
|
payoutType: CardPayoutType$inboundSchema.optional()
|
|
62929
62991
|
});
|
|
62930
62992
|
CreateTransferDestinationCard$outboundSchema = objectType({
|
|
62931
62993
|
dynamicDescriptor: stringType().optional(),
|
|
62994
|
+
scheduledDeliveryOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
62932
62995
|
payoutType: CardPayoutType$outboundSchema.optional()
|
|
62933
62996
|
});
|
|
62934
62997
|
});
|
|
@@ -63278,7 +63341,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
63278
63341
|
WalletCreated: "wallet.created",
|
|
63279
63342
|
WalletUpdated: "wallet.updated",
|
|
63280
63343
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
63281
|
-
BillingStatementCreated: "billingStatement.created"
|
|
63344
|
+
BillingStatementCreated: "billingStatement.created",
|
|
63345
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
63282
63346
|
};
|
|
63283
63347
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
63284
63348
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63997,8 +64061,6 @@ var init_issuedcardstate = __esm(() => {
|
|
|
63997
64061
|
init_esm();
|
|
63998
64062
|
IssuedCardState = {
|
|
63999
64063
|
Active: "active",
|
|
64000
|
-
Inactive: "inactive",
|
|
64001
|
-
PendingVerification: "pending-verification",
|
|
64002
64064
|
Closed: "closed"
|
|
64003
64065
|
};
|
|
64004
64066
|
IssuedCardState$inboundSchema = nativeEnumType(IssuedCardState);
|
|
@@ -64050,7 +64112,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
64050
64112
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
64051
64113
|
var init_fullissuedcard = __esm(() => {
|
|
64052
64114
|
init_esm();
|
|
64053
|
-
|
|
64115
|
+
init_address();
|
|
64054
64116
|
init_cardbrand();
|
|
64055
64117
|
init_cardexpiration();
|
|
64056
64118
|
init_issuedcardformfactor();
|
|
@@ -64061,13 +64123,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
64061
64123
|
brand: CardBrand$inboundSchema,
|
|
64062
64124
|
lastFourCardNumber: stringType(),
|
|
64063
64125
|
expiration: CardExpiration$inboundSchema,
|
|
64064
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
64065
|
-
memo: stringType().optional(),
|
|
64066
64126
|
fundingWalletID: stringType(),
|
|
64127
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64128
|
+
nickname: stringType().optional(),
|
|
64129
|
+
metadata: recordType(stringType()).optional(),
|
|
64130
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
64067
64131
|
state: IssuedCardState$inboundSchema,
|
|
64068
64132
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
64069
64133
|
controls: IssuingControls$inboundSchema.optional(),
|
|
64070
64134
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
64135
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
64071
64136
|
pan: stringType(),
|
|
64072
64137
|
cvv: stringType()
|
|
64073
64138
|
});
|
|
@@ -64076,13 +64141,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
64076
64141
|
brand: CardBrand$outboundSchema,
|
|
64077
64142
|
lastFourCardNumber: stringType(),
|
|
64078
64143
|
expiration: CardExpiration$outboundSchema,
|
|
64079
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
64080
|
-
memo: stringType().optional(),
|
|
64081
64144
|
fundingWalletID: stringType(),
|
|
64145
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64146
|
+
nickname: stringType().optional(),
|
|
64147
|
+
metadata: recordType(stringType()).optional(),
|
|
64148
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
64082
64149
|
state: IssuedCardState$outboundSchema,
|
|
64083
64150
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
64084
64151
|
controls: IssuingControls$outboundSchema.optional(),
|
|
64085
64152
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
64153
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
64086
64154
|
pan: stringType(),
|
|
64087
64155
|
cvv: stringType()
|
|
64088
64156
|
});
|
|
@@ -64782,6 +64850,7 @@ var init_invoice = __esm(() => {
|
|
|
64782
64850
|
refundedAmount: AmountDecimal$inboundSchema,
|
|
64783
64851
|
disputedAmount: AmountDecimal$inboundSchema,
|
|
64784
64852
|
paymentLinkCode: stringType().optional(),
|
|
64853
|
+
paymentLinkURL: stringType().optional(),
|
|
64785
64854
|
invoicePayments: arrayType(InvoicePayment$inboundSchema).optional(),
|
|
64786
64855
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
64787
64856
|
invoiceDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
@@ -64809,6 +64878,7 @@ var init_invoice = __esm(() => {
|
|
|
64809
64878
|
refundedAmount: AmountDecimal$outboundSchema,
|
|
64810
64879
|
disputedAmount: AmountDecimal$outboundSchema,
|
|
64811
64880
|
paymentLinkCode: stringType().optional(),
|
|
64881
|
+
paymentLinkURL: stringType().optional(),
|
|
64812
64882
|
invoicePayments: arrayType(InvoicePayment$outboundSchema).optional(),
|
|
64813
64883
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
64814
64884
|
invoiceDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
@@ -64878,7 +64948,7 @@ var init_invoicelineitemsvalidationerror = __esm(() => {
|
|
|
64878
64948
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
64879
64949
|
var init_issuedcard = __esm(() => {
|
|
64880
64950
|
init_esm();
|
|
64881
|
-
|
|
64951
|
+
init_address();
|
|
64882
64952
|
init_cardbrand();
|
|
64883
64953
|
init_cardexpiration();
|
|
64884
64954
|
init_issuedcardformfactor();
|
|
@@ -64889,26 +64959,32 @@ var init_issuedcard = __esm(() => {
|
|
|
64889
64959
|
brand: CardBrand$inboundSchema,
|
|
64890
64960
|
lastFourCardNumber: stringType(),
|
|
64891
64961
|
expiration: CardExpiration$inboundSchema,
|
|
64892
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
64893
|
-
memo: stringType().optional(),
|
|
64894
64962
|
fundingWalletID: stringType(),
|
|
64963
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64964
|
+
nickname: stringType().optional(),
|
|
64965
|
+
metadata: recordType(stringType()).optional(),
|
|
64966
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
64895
64967
|
state: IssuedCardState$inboundSchema,
|
|
64896
64968
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
64897
64969
|
controls: IssuingControls$inboundSchema.optional(),
|
|
64898
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
64970
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
64971
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
64899
64972
|
});
|
|
64900
64973
|
IssuedCard$outboundSchema = objectType({
|
|
64901
64974
|
issuedCardID: stringType(),
|
|
64902
64975
|
brand: CardBrand$outboundSchema,
|
|
64903
64976
|
lastFourCardNumber: stringType(),
|
|
64904
64977
|
expiration: CardExpiration$outboundSchema,
|
|
64905
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
64906
|
-
memo: stringType().optional(),
|
|
64907
64978
|
fundingWalletID: stringType(),
|
|
64979
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64980
|
+
nickname: stringType().optional(),
|
|
64981
|
+
metadata: recordType(stringType()).optional(),
|
|
64982
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
64908
64983
|
state: IssuedCardState$outboundSchema,
|
|
64909
64984
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
64910
64985
|
controls: IssuingControls$outboundSchema.optional(),
|
|
64911
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
64986
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
64987
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
64912
64988
|
});
|
|
64913
64989
|
});
|
|
64914
64990
|
|
|
@@ -66411,21 +66487,39 @@ var init_paymentlinkpaymentdetailsupdate = __esm(() => {
|
|
|
66411
66487
|
});
|
|
66412
66488
|
});
|
|
66413
66489
|
|
|
66490
|
+
// src/models/components/pushoptionsupdate.ts
|
|
66491
|
+
var PushOptionsUpdate$inboundSchema, PushOptionsUpdate$outboundSchema;
|
|
66492
|
+
var init_pushoptionsupdate = __esm(() => {
|
|
66493
|
+
init_esm();
|
|
66494
|
+
init_pushdeliveryspeed();
|
|
66495
|
+
PushOptionsUpdate$inboundSchema = objectType({
|
|
66496
|
+
allowedSpeeds: arrayType(PushDeliverySpeed$inboundSchema).optional(),
|
|
66497
|
+
deferredBy: stringType().optional()
|
|
66498
|
+
});
|
|
66499
|
+
PushOptionsUpdate$outboundSchema = objectType({
|
|
66500
|
+
allowedSpeeds: arrayType(PushDeliverySpeed$outboundSchema).optional(),
|
|
66501
|
+
deferredBy: stringType().optional()
|
|
66502
|
+
});
|
|
66503
|
+
});
|
|
66504
|
+
|
|
66414
66505
|
// src/models/components/paymentlinkpayoutdetailsupdate.ts
|
|
66415
66506
|
var PaymentLinkPayoutDetailsUpdate$inboundSchema, PaymentLinkPayoutDetailsUpdate$outboundSchema;
|
|
66416
66507
|
var init_paymentlinkpayoutdetailsupdate = __esm(() => {
|
|
66417
66508
|
init_esm();
|
|
66418
66509
|
init_disbursementpaymentmethodtype();
|
|
66419
66510
|
init_payoutrecipient();
|
|
66511
|
+
init_pushoptionsupdate();
|
|
66420
66512
|
PaymentLinkPayoutDetailsUpdate$inboundSchema = objectType({
|
|
66421
66513
|
allowedMethods: arrayType(DisbursementPaymentMethodType$inboundSchema).optional(),
|
|
66422
66514
|
recipient: PayoutRecipient$inboundSchema.optional(),
|
|
66423
|
-
metadata: recordType(stringType()).optional()
|
|
66515
|
+
metadata: recordType(stringType()).optional(),
|
|
66516
|
+
pushOptions: PushOptionsUpdate$inboundSchema.optional()
|
|
66424
66517
|
});
|
|
66425
66518
|
PaymentLinkPayoutDetailsUpdate$outboundSchema = objectType({
|
|
66426
66519
|
allowedMethods: arrayType(DisbursementPaymentMethodType$outboundSchema).optional(),
|
|
66427
66520
|
recipient: PayoutRecipient$outboundSchema.optional(),
|
|
66428
|
-
metadata: recordType(stringType()).optional()
|
|
66521
|
+
metadata: recordType(stringType()).optional(),
|
|
66522
|
+
pushOptions: PushOptionsUpdate$outboundSchema.optional()
|
|
66429
66523
|
});
|
|
66430
66524
|
});
|
|
66431
66525
|
|
|
@@ -66624,20 +66718,37 @@ var init_payoutrecipienterror = __esm(() => {
|
|
|
66624
66718
|
});
|
|
66625
66719
|
});
|
|
66626
66720
|
|
|
66721
|
+
// src/models/components/pushoptionserror.ts
|
|
66722
|
+
var PushOptionsError$inboundSchema, PushOptionsError$outboundSchema;
|
|
66723
|
+
var init_pushoptionserror = __esm(() => {
|
|
66724
|
+
init_esm();
|
|
66725
|
+
PushOptionsError$inboundSchema = objectType({
|
|
66726
|
+
allowedSpeeds: stringType().optional(),
|
|
66727
|
+
deferredBy: stringType().optional()
|
|
66728
|
+
});
|
|
66729
|
+
PushOptionsError$outboundSchema = objectType({
|
|
66730
|
+
allowedSpeeds: stringType().optional(),
|
|
66731
|
+
deferredBy: stringType().optional()
|
|
66732
|
+
});
|
|
66733
|
+
});
|
|
66734
|
+
|
|
66627
66735
|
// src/models/components/payoutdetailserror.ts
|
|
66628
66736
|
var PayoutDetailsError$inboundSchema, PayoutDetailsError$outboundSchema;
|
|
66629
66737
|
var init_payoutdetailserror = __esm(() => {
|
|
66630
66738
|
init_esm();
|
|
66631
66739
|
init_payoutrecipienterror();
|
|
66740
|
+
init_pushoptionserror();
|
|
66632
66741
|
PayoutDetailsError$inboundSchema = objectType({
|
|
66633
66742
|
allowedMethods: stringType().optional(),
|
|
66634
66743
|
recipient: PayoutRecipientError$inboundSchema.optional(),
|
|
66635
|
-
metadata: stringType().optional()
|
|
66744
|
+
metadata: stringType().optional(),
|
|
66745
|
+
pushOptions: PushOptionsError$inboundSchema.optional()
|
|
66636
66746
|
});
|
|
66637
66747
|
PayoutDetailsError$outboundSchema = objectType({
|
|
66638
66748
|
allowedMethods: stringType().optional(),
|
|
66639
66749
|
recipient: PayoutRecipientError$outboundSchema.optional(),
|
|
66640
|
-
metadata: stringType().optional()
|
|
66750
|
+
metadata: stringType().optional(),
|
|
66751
|
+
pushOptions: PushOptionsError$outboundSchema.optional()
|
|
66641
66752
|
});
|
|
66642
66753
|
});
|
|
66643
66754
|
|
|
@@ -67182,23 +67293,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
67182
67293
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
67183
67294
|
var init_requestcard = __esm(() => {
|
|
67184
67295
|
init_esm();
|
|
67296
|
+
init_address();
|
|
67185
67297
|
init_cardexpiration();
|
|
67186
|
-
init_createauthorizeduser();
|
|
67187
|
-
init_issuedcardformfactor();
|
|
67188
67298
|
init_issuingcontrols();
|
|
67189
67299
|
RequestCard$inboundSchema = objectType({
|
|
67190
|
-
|
|
67191
|
-
|
|
67192
|
-
|
|
67193
|
-
|
|
67300
|
+
authorizedUserAccountID: stringType().optional(),
|
|
67301
|
+
nickname: stringType().optional(),
|
|
67302
|
+
metadata: recordType(stringType()).optional(),
|
|
67303
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
67194
67304
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
67195
67305
|
controls: IssuingControls$inboundSchema.optional()
|
|
67196
67306
|
});
|
|
67197
67307
|
RequestCard$outboundSchema = objectType({
|
|
67198
|
-
|
|
67199
|
-
|
|
67200
|
-
|
|
67201
|
-
|
|
67308
|
+
authorizedUserAccountID: stringType().optional(),
|
|
67309
|
+
nickname: stringType().optional(),
|
|
67310
|
+
metadata: recordType(stringType()).optional(),
|
|
67311
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
67202
67312
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
67203
67313
|
controls: IssuingControls$outboundSchema.optional()
|
|
67204
67314
|
});
|
|
@@ -68470,20 +68580,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
68470
68580
|
});
|
|
68471
68581
|
|
|
68472
68582
|
// src/models/components/updateissuedcard.ts
|
|
68473
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
68583
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
68474
68584
|
var init_updateissuedcard = __esm(() => {
|
|
68475
68585
|
init_esm();
|
|
68476
|
-
init_createauthorizeduserupdate();
|
|
68477
68586
|
init_updateissuedcardstate();
|
|
68587
|
+
BillingAddress$inboundSchema = objectType({
|
|
68588
|
+
addressLine1: stringType().optional(),
|
|
68589
|
+
addressLine2: stringType().optional(),
|
|
68590
|
+
city: stringType().optional(),
|
|
68591
|
+
stateOrProvince: stringType().optional(),
|
|
68592
|
+
postalCode: stringType().optional(),
|
|
68593
|
+
country: stringType().optional()
|
|
68594
|
+
});
|
|
68595
|
+
BillingAddress$outboundSchema = objectType({
|
|
68596
|
+
addressLine1: stringType().optional(),
|
|
68597
|
+
addressLine2: stringType().optional(),
|
|
68598
|
+
city: stringType().optional(),
|
|
68599
|
+
stateOrProvince: stringType().optional(),
|
|
68600
|
+
postalCode: stringType().optional(),
|
|
68601
|
+
country: stringType().optional()
|
|
68602
|
+
});
|
|
68478
68603
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
68479
68604
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
68480
|
-
|
|
68481
|
-
|
|
68605
|
+
nickname: nullableType(stringType()).optional(),
|
|
68606
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
68607
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
68482
68608
|
});
|
|
68483
68609
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
68484
68610
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
68485
|
-
|
|
68486
|
-
|
|
68611
|
+
nickname: nullableType(stringType()).optional(),
|
|
68612
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
68613
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
68487
68614
|
});
|
|
68488
68615
|
});
|
|
68489
68616
|
|
|
@@ -68955,6 +69082,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
68955
69082
|
});
|
|
68956
69083
|
});
|
|
68957
69084
|
|
|
69085
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
69086
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
69087
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
69088
|
+
init_esm();
|
|
69089
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
69090
|
+
merchantAccountID: stringType(),
|
|
69091
|
+
partnerAccountID: stringType(),
|
|
69092
|
+
authorizationID: stringType(),
|
|
69093
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
69094
|
+
});
|
|
69095
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
69096
|
+
merchantAccountID: stringType(),
|
|
69097
|
+
partnerAccountID: stringType(),
|
|
69098
|
+
authorizationID: stringType(),
|
|
69099
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
69100
|
+
});
|
|
69101
|
+
});
|
|
69102
|
+
|
|
68958
69103
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
68959
69104
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
68960
69105
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -69329,10 +69474,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
69329
69474
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
69330
69475
|
init_esm();
|
|
69331
69476
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
69477
|
+
accountID: stringType(),
|
|
69332
69478
|
walletID: stringType(),
|
|
69333
69479
|
sweepID: stringType()
|
|
69334
69480
|
});
|
|
69335
69481
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
69482
|
+
accountID: stringType(),
|
|
69336
69483
|
walletID: stringType(),
|
|
69337
69484
|
sweepID: stringType()
|
|
69338
69485
|
});
|
|
@@ -69344,12 +69491,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
69344
69491
|
init_esm();
|
|
69345
69492
|
init_sweepstatus();
|
|
69346
69493
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
69494
|
+
accountID: stringType(),
|
|
69347
69495
|
walletID: stringType(),
|
|
69348
69496
|
sweepID: stringType(),
|
|
69349
69497
|
transferID: stringType().optional(),
|
|
69350
69498
|
status: SweepStatus$inboundSchema
|
|
69351
69499
|
});
|
|
69352
69500
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
69501
|
+
accountID: stringType(),
|
|
69353
69502
|
walletID: stringType(),
|
|
69354
69503
|
sweepID: stringType(),
|
|
69355
69504
|
transferID: stringType().optional(),
|
|
@@ -69590,6 +69739,7 @@ var init_webhookdata = __esm(() => {
|
|
|
69590
69739
|
init_webhookdataaccountcreated();
|
|
69591
69740
|
init_webhookdataaccountdisconnected();
|
|
69592
69741
|
init_webhookdataaccountupdated();
|
|
69742
|
+
init_webhookdataauthorizationexpiring();
|
|
69593
69743
|
init_webhookdatabalanceupdated();
|
|
69594
69744
|
init_webhookdatabankaccountcreated();
|
|
69595
69745
|
init_webhookdatabankaccountdeleted();
|
|
@@ -69629,7 +69779,9 @@ var init_webhookdata = __esm(() => {
|
|
|
69629
69779
|
WebhookDataTransferUpdated$inboundSchema,
|
|
69630
69780
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
69631
69781
|
WebhookDataRefundUpdated$inboundSchema,
|
|
69782
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
69632
69783
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
69784
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
69633
69785
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
69634
69786
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
69635
69787
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -69640,7 +69792,7 @@ var init_webhookdata = __esm(() => {
|
|
|
69640
69792
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
69641
69793
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
69642
69794
|
WebhookDataRefundCreated$inboundSchema,
|
|
69643
|
-
|
|
69795
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
69644
69796
|
WebhookDataTicketUpdated$inboundSchema,
|
|
69645
69797
|
WebhookDataTransferCreated$inboundSchema,
|
|
69646
69798
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -69650,7 +69802,6 @@ var init_webhookdata = __esm(() => {
|
|
|
69650
69802
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
69651
69803
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
69652
69804
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
69653
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
69654
69805
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
69655
69806
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
69656
69807
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -69668,7 +69819,9 @@ var init_webhookdata = __esm(() => {
|
|
|
69668
69819
|
WebhookDataTransferUpdated$outboundSchema,
|
|
69669
69820
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
69670
69821
|
WebhookDataRefundUpdated$outboundSchema,
|
|
69822
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
69671
69823
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
69824
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
69672
69825
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
69673
69826
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
69674
69827
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -69679,7 +69832,7 @@ var init_webhookdata = __esm(() => {
|
|
|
69679
69832
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
69680
69833
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
69681
69834
|
WebhookDataRefundCreated$outboundSchema,
|
|
69682
|
-
|
|
69835
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
69683
69836
|
WebhookDataTicketUpdated$outboundSchema,
|
|
69684
69837
|
WebhookDataTransferCreated$outboundSchema,
|
|
69685
69838
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -69689,7 +69842,6 @@ var init_webhookdata = __esm(() => {
|
|
|
69689
69842
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
69690
69843
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
69691
69844
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
69692
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
69693
69845
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
69694
69846
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
69695
69847
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -69787,7 +69939,6 @@ var init_components = __esm(() => {
|
|
|
69787
69939
|
init_assignproductimagevalidationerror();
|
|
69788
69940
|
init_asynccreatedrefund();
|
|
69789
69941
|
init_asynctransfer();
|
|
69790
|
-
init_authorizeduser();
|
|
69791
69942
|
init_authtoken();
|
|
69792
69943
|
init_authtokenrequest();
|
|
69793
69944
|
init_bankaccount();
|
|
@@ -69876,9 +70027,6 @@ var init_components = __esm(() => {
|
|
|
69876
70027
|
init_createaccountsettings();
|
|
69877
70028
|
init_createaccounttype();
|
|
69878
70029
|
init_createapplepaysession();
|
|
69879
|
-
init_createauthorizeduser();
|
|
69880
|
-
init_createauthorizedusererror();
|
|
69881
|
-
init_createauthorizeduserupdate();
|
|
69882
70030
|
init_createbusinesserror();
|
|
69883
70031
|
init_createbusinessprofile();
|
|
69884
70032
|
init_createdtransfer();
|
|
@@ -70151,6 +70299,10 @@ var init_components = __esm(() => {
|
|
|
70151
70299
|
init_pullfromcardtransferpaymentmethod();
|
|
70152
70300
|
init_pullfromgooglepaypaymentmethod();
|
|
70153
70301
|
init_pullfromgooglepaytransferpaymentmethod();
|
|
70302
|
+
init_pushdeliveryspeed();
|
|
70303
|
+
init_pushoptions();
|
|
70304
|
+
init_pushoptionserror();
|
|
70305
|
+
init_pushoptionsupdate();
|
|
70154
70306
|
init_pushtoapplepaypaymentmethod();
|
|
70155
70307
|
init_pushtoapplepaytransferpaymentmethod();
|
|
70156
70308
|
init_pushtocardpaymentmethod();
|
|
@@ -70311,6 +70463,7 @@ var init_components = __esm(() => {
|
|
|
70311
70463
|
init_webhookdataaccountcreated();
|
|
70312
70464
|
init_webhookdataaccountdisconnected();
|
|
70313
70465
|
init_webhookdataaccountupdated();
|
|
70466
|
+
init_webhookdataauthorizationexpiring();
|
|
70314
70467
|
init_webhookdatabalanceupdated();
|
|
70315
70468
|
init_webhookdatabankaccountcreated();
|
|
70316
70469
|
init_webhookdatabankaccountdeleted();
|
|
@@ -72215,10 +72368,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
72215
72368
|
init_components();
|
|
72216
72369
|
init_mooverror();
|
|
72217
72370
|
RequestCardError = class RequestCardError extends MoovError {
|
|
72218
|
-
|
|
72219
|
-
|
|
72220
|
-
|
|
72221
|
-
|
|
72371
|
+
authorizedUserAccountID;
|
|
72372
|
+
nickname;
|
|
72373
|
+
metadata;
|
|
72374
|
+
billingAddress;
|
|
72222
72375
|
expiration;
|
|
72223
72376
|
controls;
|
|
72224
72377
|
data$;
|
|
@@ -72226,14 +72379,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
72226
72379
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
72227
72380
|
super(message, httpMeta);
|
|
72228
72381
|
this.data$ = err;
|
|
72229
|
-
if (err.
|
|
72230
|
-
this.
|
|
72231
|
-
|
|
72232
|
-
|
|
72233
|
-
|
|
72234
|
-
|
|
72235
|
-
|
|
72236
|
-
|
|
72382
|
+
if (err.authorizedUserAccountID != null) {
|
|
72383
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
72384
|
+
}
|
|
72385
|
+
if (err.nickname != null)
|
|
72386
|
+
this.nickname = err.nickname;
|
|
72387
|
+
if (err.metadata != null)
|
|
72388
|
+
this.metadata = err.metadata;
|
|
72389
|
+
if (err.billingAddress != null)
|
|
72390
|
+
this.billingAddress = err.billingAddress;
|
|
72237
72391
|
if (err.expiration != null)
|
|
72238
72392
|
this.expiration = err.expiration;
|
|
72239
72393
|
if (err.controls != null)
|
|
@@ -72242,10 +72396,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
72242
72396
|
}
|
|
72243
72397
|
};
|
|
72244
72398
|
RequestCardError$inboundSchema = objectType({
|
|
72245
|
-
|
|
72246
|
-
|
|
72247
|
-
|
|
72248
|
-
|
|
72399
|
+
authorizedUserAccountID: stringType().optional(),
|
|
72400
|
+
nickname: stringType().optional(),
|
|
72401
|
+
metadata: stringType().optional(),
|
|
72402
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
72249
72403
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
72250
72404
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
72251
72405
|
request$: instanceOfType(Request),
|
|
@@ -72259,10 +72413,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
72259
72413
|
});
|
|
72260
72414
|
});
|
|
72261
72415
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
72262
|
-
|
|
72263
|
-
|
|
72264
|
-
|
|
72265
|
-
|
|
72416
|
+
authorizedUserAccountID: stringType().optional(),
|
|
72417
|
+
nickname: stringType().optional(),
|
|
72418
|
+
metadata: stringType().optional(),
|
|
72419
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
72266
72420
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
72267
72421
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
72268
72422
|
}));
|
|
@@ -72968,8 +73122,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
72968
73122
|
init_mooverror();
|
|
72969
73123
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
72970
73124
|
state;
|
|
72971
|
-
|
|
72972
|
-
|
|
73125
|
+
nickname;
|
|
73126
|
+
metadata;
|
|
73127
|
+
billingAddress;
|
|
72973
73128
|
data$;
|
|
72974
73129
|
constructor(err, httpMeta) {
|
|
72975
73130
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -72977,17 +73132,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
72977
73132
|
this.data$ = err;
|
|
72978
73133
|
if (err.state != null)
|
|
72979
73134
|
this.state = err.state;
|
|
72980
|
-
if (err.
|
|
72981
|
-
this.
|
|
72982
|
-
if (err.
|
|
72983
|
-
this.
|
|
73135
|
+
if (err.nickname != null)
|
|
73136
|
+
this.nickname = err.nickname;
|
|
73137
|
+
if (err.metadata != null)
|
|
73138
|
+
this.metadata = err.metadata;
|
|
73139
|
+
if (err.billingAddress != null)
|
|
73140
|
+
this.billingAddress = err.billingAddress;
|
|
72984
73141
|
this.name = "UpdateIssuedCardError";
|
|
72985
73142
|
}
|
|
72986
73143
|
};
|
|
72987
73144
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
72988
73145
|
state: stringType().optional(),
|
|
72989
|
-
|
|
72990
|
-
|
|
73146
|
+
nickname: stringType().optional(),
|
|
73147
|
+
metadata: stringType().optional(),
|
|
73148
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
72991
73149
|
request$: instanceOfType(Request),
|
|
72992
73150
|
response$: instanceOfType(Response),
|
|
72993
73151
|
body$: stringType()
|
|
@@ -73000,8 +73158,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
73000
73158
|
});
|
|
73001
73159
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
73002
73160
|
state: stringType().optional(),
|
|
73003
|
-
|
|
73004
|
-
|
|
73161
|
+
nickname: stringType().optional(),
|
|
73162
|
+
metadata: stringType().optional(),
|
|
73163
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
73005
73164
|
}));
|
|
73006
73165
|
});
|
|
73007
73166
|
|
|
@@ -77347,6 +77506,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
77347
77506
|
});
|
|
77348
77507
|
});
|
|
77349
77508
|
|
|
77509
|
+
// src/models/operations/listcancellations.ts
|
|
77510
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
77511
|
+
var init_listcancellations = __esm(() => {
|
|
77512
|
+
init_esm();
|
|
77513
|
+
init_primitives();
|
|
77514
|
+
init_components();
|
|
77515
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
77516
|
+
accountID: stringType(),
|
|
77517
|
+
transferID: stringType()
|
|
77518
|
+
});
|
|
77519
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
77520
|
+
accountID: stringType(),
|
|
77521
|
+
transferID: stringType()
|
|
77522
|
+
});
|
|
77523
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
77524
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
77525
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
77526
|
+
}).transform((v2) => {
|
|
77527
|
+
return remap(v2, {
|
|
77528
|
+
Headers: "headers",
|
|
77529
|
+
Result: "result"
|
|
77530
|
+
});
|
|
77531
|
+
});
|
|
77532
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
77533
|
+
headers: recordType(arrayType(stringType())),
|
|
77534
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
77535
|
+
}).transform((v2) => {
|
|
77536
|
+
return remap(v2, {
|
|
77537
|
+
headers: "Headers",
|
|
77538
|
+
result: "Result"
|
|
77539
|
+
});
|
|
77540
|
+
});
|
|
77541
|
+
});
|
|
77542
|
+
|
|
77350
77543
|
// src/models/operations/listcapabilities.ts
|
|
77351
77544
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
77352
77545
|
var init_listcapabilities = __esm(() => {
|
|
@@ -80505,6 +80698,7 @@ var init_operations = __esm(() => {
|
|
|
80505
80698
|
init_listaccountterminalapplications();
|
|
80506
80699
|
init_listadjustments();
|
|
80507
80700
|
init_listbankaccounts();
|
|
80701
|
+
init_listcancellations();
|
|
80508
80702
|
init_listcapabilities();
|
|
80509
80703
|
init_listcards();
|
|
80510
80704
|
init_listconnectedaccountsforaccount();
|
|
@@ -80929,21 +81123,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
80929
81123
|
};
|
|
80930
81124
|
tool$accountsCreate = {
|
|
80931
81125
|
name: "accounts-create",
|
|
80932
|
-
description: `You can create
|
|
80933
|
-
information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
81126
|
+
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/).
|
|
80934
81127
|
|
|
80935
|
-
If you
|
|
80936
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
80937
|
-
|
|
80938
|
-
|
|
81128
|
+
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:
|
|
81129
|
+
+ 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.
|
|
81130
|
+
+ 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.
|
|
81131
|
+
|
|
81132
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
80939
81133
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
80940
81134
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
80941
81135
|
|
|
80942
|
-
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/).
|
|
80943
|
-
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.
|
|
81136
|
+
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.
|
|
80944
81137
|
|
|
80945
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
80946
|
-
to specify the \`/accounts.write\` scope.`,
|
|
81138
|
+
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.`,
|
|
80947
81139
|
args: args3,
|
|
80948
81140
|
tool: async (client, args4, ctx) => {
|
|
80949
81141
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -84415,7 +84607,7 @@ var init_bankAccountsLink2 = __esm(() => {
|
|
|
84415
84607
|
description: `Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
84416
84608
|
|
|
84417
84609
|
It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
|
|
84418
|
-
bank
|
|
84610
|
+
bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
84419
84611
|
Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
84420
84612
|
endpoint to wait for the new payment methods to be available for use.
|
|
84421
84613
|
|
|
@@ -84982,7 +85174,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
84982
85174
|
};
|
|
84983
85175
|
tool$capabilitiesDisable = {
|
|
84984
85176
|
name: "capabilities-disable",
|
|
84985
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
85177
|
+
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.
|
|
84986
85178
|
|
|
84987
85179
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
84988
85180
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -85096,7 +85288,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
85096
85288
|
};
|
|
85097
85289
|
tool$capabilitiesGet = {
|
|
85098
85290
|
name: "capabilities-get",
|
|
85099
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
85291
|
+
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.
|
|
85100
85292
|
|
|
85101
85293
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
85102
85294
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -85209,7 +85401,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
85209
85401
|
name: "capabilities-list",
|
|
85210
85402
|
description: `Retrieve all the capabilities an account has requested.
|
|
85211
85403
|
|
|
85212
|
-
Read our [capabilities
|
|
85404
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
85213
85405
|
|
|
85214
85406
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
85215
85407
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -85322,7 +85514,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
85322
85514
|
};
|
|
85323
85515
|
tool$capabilitiesRequest = {
|
|
85324
85516
|
name: "capabilities-request",
|
|
85325
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
85517
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
85326
85518
|
|
|
85327
85519
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
85328
85520
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -85362,7 +85554,7 @@ async function $do42(client, request, options) {
|
|
|
85362
85554
|
charEncoding: "percent"
|
|
85363
85555
|
})
|
|
85364
85556
|
};
|
|
85365
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
85557
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
85366
85558
|
const headers = new Headers(compactMap({
|
|
85367
85559
|
Accept: "application/json"
|
|
85368
85560
|
}));
|
|
@@ -85477,7 +85669,7 @@ async function $do43(client, request, options) {
|
|
|
85477
85669
|
charEncoding: "percent"
|
|
85478
85670
|
})
|
|
85479
85671
|
};
|
|
85480
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
85672
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
85481
85673
|
const headers = new Headers(compactMap({
|
|
85482
85674
|
Accept: "application/json"
|
|
85483
85675
|
}));
|
|
@@ -85590,7 +85782,7 @@ async function $do44(client, request, options) {
|
|
|
85590
85782
|
charEncoding: "percent"
|
|
85591
85783
|
})
|
|
85592
85784
|
};
|
|
85593
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
85785
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
85594
85786
|
const query = encodeFormQuery({
|
|
85595
85787
|
count: payload.count,
|
|
85596
85788
|
skip: payload.skip,
|
|
@@ -85707,7 +85899,7 @@ async function $do45(client, request, options) {
|
|
|
85707
85899
|
charEncoding: "percent"
|
|
85708
85900
|
})
|
|
85709
85901
|
};
|
|
85710
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
85902
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
85711
85903
|
const headers = new Headers(compactMap({
|
|
85712
85904
|
"Content-Type": "application/json",
|
|
85713
85905
|
Accept: "application/json"
|
|
@@ -85824,7 +86016,7 @@ async function $do46(client, request, options) {
|
|
|
85824
86016
|
charEncoding: "percent"
|
|
85825
86017
|
})
|
|
85826
86018
|
};
|
|
85827
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
86019
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
85828
86020
|
const headers = new Headers(compactMap({
|
|
85829
86021
|
"Content-Type": "application/json",
|
|
85830
86022
|
Accept: "application/json"
|
|
@@ -100170,11 +100362,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
100170
100362
|
};
|
|
100171
100363
|
});
|
|
100172
100364
|
|
|
100173
|
-
// src/funcs/
|
|
100174
|
-
function
|
|
100365
|
+
// src/funcs/transfersListCancellations.ts
|
|
100366
|
+
function transfersListCancellations(client, request, options) {
|
|
100175
100367
|
return new APIPromise($do169(client, request, options));
|
|
100176
100368
|
}
|
|
100177
100369
|
async function $do169(client, request, options) {
|
|
100370
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100371
|
+
if (!parsed.ok) {
|
|
100372
|
+
return [parsed, { status: "invalid" }];
|
|
100373
|
+
}
|
|
100374
|
+
const payload = parsed.value;
|
|
100375
|
+
const body = null;
|
|
100376
|
+
const pathParams = {
|
|
100377
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
100378
|
+
explode: false,
|
|
100379
|
+
charEncoding: "percent"
|
|
100380
|
+
}),
|
|
100381
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
100382
|
+
explode: false,
|
|
100383
|
+
charEncoding: "percent"
|
|
100384
|
+
})
|
|
100385
|
+
};
|
|
100386
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
100387
|
+
const headers = new Headers(compactMap({
|
|
100388
|
+
Accept: "application/json"
|
|
100389
|
+
}));
|
|
100390
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
100391
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100392
|
+
const context = {
|
|
100393
|
+
options: client._options,
|
|
100394
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
100395
|
+
operationID: "listCancellations",
|
|
100396
|
+
oAuth2Scopes: null,
|
|
100397
|
+
resolvedSecurity: requestSecurity,
|
|
100398
|
+
securitySource: client._options.security,
|
|
100399
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
100400
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
100401
|
+
};
|
|
100402
|
+
const requestRes = client._createRequest(context, {
|
|
100403
|
+
security: requestSecurity,
|
|
100404
|
+
method: "GET",
|
|
100405
|
+
baseURL: options?.serverURL,
|
|
100406
|
+
path,
|
|
100407
|
+
headers,
|
|
100408
|
+
body,
|
|
100409
|
+
userAgent: client._options.userAgent,
|
|
100410
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
100411
|
+
}, options);
|
|
100412
|
+
if (!requestRes.ok) {
|
|
100413
|
+
return [requestRes, { status: "invalid" }];
|
|
100414
|
+
}
|
|
100415
|
+
const req = requestRes.value;
|
|
100416
|
+
const doResult = await client._do(req, {
|
|
100417
|
+
context,
|
|
100418
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
100419
|
+
retryConfig: context.retryConfig,
|
|
100420
|
+
retryCodes: context.retryCodes
|
|
100421
|
+
});
|
|
100422
|
+
if (!doResult.ok) {
|
|
100423
|
+
return [doResult, { status: "request-error", request: req }];
|
|
100424
|
+
}
|
|
100425
|
+
const response = doResult.value;
|
|
100426
|
+
const responseFields = {
|
|
100427
|
+
HttpMeta: { Response: response, Request: req }
|
|
100428
|
+
};
|
|
100429
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
100430
|
+
hdrs: true,
|
|
100431
|
+
key: "Result"
|
|
100432
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
100433
|
+
if (!result.ok) {
|
|
100434
|
+
return [result, { status: "complete", request: req, response }];
|
|
100435
|
+
}
|
|
100436
|
+
return [result, { status: "complete", request: req, response }];
|
|
100437
|
+
}
|
|
100438
|
+
var init_transfersListCancellations = __esm(() => {
|
|
100439
|
+
init_encodings();
|
|
100440
|
+
init_http();
|
|
100441
|
+
init_matchers();
|
|
100442
|
+
init_primitives();
|
|
100443
|
+
init_schemas4();
|
|
100444
|
+
init_security();
|
|
100445
|
+
init_url();
|
|
100446
|
+
init_operations();
|
|
100447
|
+
init_async();
|
|
100448
|
+
});
|
|
100449
|
+
|
|
100450
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
100451
|
+
var args164, tool$transfersListCancellations;
|
|
100452
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
100453
|
+
init_transfersListCancellations();
|
|
100454
|
+
init_operations();
|
|
100455
|
+
init_tools();
|
|
100456
|
+
args164 = {
|
|
100457
|
+
request: ListCancellationsRequest$inboundSchema
|
|
100458
|
+
};
|
|
100459
|
+
tool$transfersListCancellations = {
|
|
100460
|
+
name: "transfers-list-cancellations",
|
|
100461
|
+
description: ` Get a list of cancellations for a transfer.
|
|
100462
|
+
|
|
100463
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
100464
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100465
|
+
args: args164,
|
|
100466
|
+
tool: async (client, args165, ctx) => {
|
|
100467
|
+
const [result, apiCall] = await transfersListCancellations(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100468
|
+
if (!result.ok) {
|
|
100469
|
+
return {
|
|
100470
|
+
content: [{ type: "text", text: result.error.message }],
|
|
100471
|
+
isError: true
|
|
100472
|
+
};
|
|
100473
|
+
}
|
|
100474
|
+
const value = result.value.result;
|
|
100475
|
+
return formatResult(value, apiCall);
|
|
100476
|
+
}
|
|
100477
|
+
};
|
|
100478
|
+
});
|
|
100479
|
+
|
|
100480
|
+
// src/funcs/transfersListRefunds.ts
|
|
100481
|
+
function transfersListRefunds(client, request, options) {
|
|
100482
|
+
return new APIPromise($do170(client, request, options));
|
|
100483
|
+
}
|
|
100484
|
+
async function $do170(client, request, options) {
|
|
100178
100485
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100179
100486
|
if (!parsed.ok) {
|
|
100180
100487
|
return [parsed, { status: "invalid" }];
|
|
@@ -100256,12 +100563,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
100256
100563
|
});
|
|
100257
100564
|
|
|
100258
100565
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
100259
|
-
var
|
|
100566
|
+
var args165, tool$transfersListRefunds;
|
|
100260
100567
|
var init_transfersListRefunds2 = __esm(() => {
|
|
100261
100568
|
init_transfersListRefunds();
|
|
100262
100569
|
init_operations();
|
|
100263
100570
|
init_tools();
|
|
100264
|
-
|
|
100571
|
+
args165 = {
|
|
100265
100572
|
request: ListRefundsRequest$inboundSchema
|
|
100266
100573
|
};
|
|
100267
100574
|
tool$transfersListRefunds = {
|
|
@@ -100270,9 +100577,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
100270
100577
|
|
|
100271
100578
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100272
100579
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100273
|
-
args:
|
|
100274
|
-
tool: async (client,
|
|
100275
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
100580
|
+
args: args165,
|
|
100581
|
+
tool: async (client, args166, ctx) => {
|
|
100582
|
+
const [result, apiCall] = await transfersListRefunds(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100276
100583
|
if (!result.ok) {
|
|
100277
100584
|
return {
|
|
100278
100585
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100287,9 +100594,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
100287
100594
|
|
|
100288
100595
|
// src/funcs/transfersUpdate.ts
|
|
100289
100596
|
function transfersUpdate(client, request, options) {
|
|
100290
|
-
return new APIPromise($
|
|
100597
|
+
return new APIPromise($do171(client, request, options));
|
|
100291
100598
|
}
|
|
100292
|
-
async function $
|
|
100599
|
+
async function $do171(client, request, options) {
|
|
100293
100600
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100294
100601
|
if (!parsed.ok) {
|
|
100295
100602
|
return [parsed, { status: "invalid" }];
|
|
@@ -100375,12 +100682,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
100375
100682
|
});
|
|
100376
100683
|
|
|
100377
100684
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
100378
|
-
var
|
|
100685
|
+
var args166, tool$transfersUpdate;
|
|
100379
100686
|
var init_transfersUpdate2 = __esm(() => {
|
|
100380
100687
|
init_transfersUpdate();
|
|
100381
100688
|
init_operations();
|
|
100382
100689
|
init_tools();
|
|
100383
|
-
|
|
100690
|
+
args166 = {
|
|
100384
100691
|
request: UpdateTransferRequest$inboundSchema
|
|
100385
100692
|
};
|
|
100386
100693
|
tool$transfersUpdate = {
|
|
@@ -100391,9 +100698,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
100391
100698
|
|
|
100392
100699
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100393
100700
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
100394
|
-
args:
|
|
100395
|
-
tool: async (client,
|
|
100396
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
100701
|
+
args: args166,
|
|
100702
|
+
tool: async (client, args167, ctx) => {
|
|
100703
|
+
const [result, apiCall] = await transfersUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100397
100704
|
if (!result.ok) {
|
|
100398
100705
|
return {
|
|
100399
100706
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100408,9 +100715,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
100408
100715
|
|
|
100409
100716
|
// src/funcs/underwritingGet.ts
|
|
100410
100717
|
function underwritingGet(client, request, options) {
|
|
100411
|
-
return new APIPromise($
|
|
100718
|
+
return new APIPromise($do172(client, request, options));
|
|
100412
100719
|
}
|
|
100413
|
-
async function $
|
|
100720
|
+
async function $do172(client, request, options) {
|
|
100414
100721
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100415
100722
|
if (!parsed.ok) {
|
|
100416
100723
|
return [parsed, { status: "invalid" }];
|
|
@@ -100488,12 +100795,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
100488
100795
|
});
|
|
100489
100796
|
|
|
100490
100797
|
// src/mcp-server/tools/underwritingGet.ts
|
|
100491
|
-
var
|
|
100798
|
+
var args167, tool$underwritingGet;
|
|
100492
100799
|
var init_underwritingGet2 = __esm(() => {
|
|
100493
100800
|
init_underwritingGet();
|
|
100494
100801
|
init_operations();
|
|
100495
100802
|
init_tools();
|
|
100496
|
-
|
|
100803
|
+
args167 = {
|
|
100497
100804
|
request: GetUnderwritingRequest$inboundSchema
|
|
100498
100805
|
};
|
|
100499
100806
|
tool$underwritingGet = {
|
|
@@ -100504,9 +100811,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
100504
100811
|
|
|
100505
100812
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100506
100813
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
100507
|
-
args:
|
|
100508
|
-
tool: async (client,
|
|
100509
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
100814
|
+
args: args167,
|
|
100815
|
+
tool: async (client, args168, ctx) => {
|
|
100816
|
+
const [result, apiCall] = await underwritingGet(client, args168.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100510
100817
|
if (!result.ok) {
|
|
100511
100818
|
return {
|
|
100512
100819
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100521,9 +100828,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
100521
100828
|
|
|
100522
100829
|
// src/funcs/underwritingSave.ts
|
|
100523
100830
|
function underwritingSave(client, request, options) {
|
|
100524
|
-
return new APIPromise($
|
|
100831
|
+
return new APIPromise($do173(client, request, options));
|
|
100525
100832
|
}
|
|
100526
|
-
async function $
|
|
100833
|
+
async function $do173(client, request, options) {
|
|
100527
100834
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100528
100835
|
if (!parsed.ok) {
|
|
100529
100836
|
return [parsed, { status: "invalid" }];
|
|
@@ -100607,12 +100914,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
100607
100914
|
});
|
|
100608
100915
|
|
|
100609
100916
|
// src/mcp-server/tools/underwritingSave.ts
|
|
100610
|
-
var
|
|
100917
|
+
var args168, tool$underwritingSave;
|
|
100611
100918
|
var init_underwritingSave2 = __esm(() => {
|
|
100612
100919
|
init_underwritingSave();
|
|
100613
100920
|
init_operations();
|
|
100614
100921
|
init_tools();
|
|
100615
|
-
|
|
100922
|
+
args168 = {
|
|
100616
100923
|
request: SaveUnderwritingRequest$inboundSchema
|
|
100617
100924
|
};
|
|
100618
100925
|
tool$underwritingSave = {
|
|
@@ -100623,9 +100930,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
100623
100930
|
|
|
100624
100931
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100625
100932
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
100626
|
-
args:
|
|
100627
|
-
tool: async (client,
|
|
100628
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
100933
|
+
args: args168,
|
|
100934
|
+
tool: async (client, args169, ctx) => {
|
|
100935
|
+
const [result, apiCall] = await underwritingSave(client, args169.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100629
100936
|
if (!result.ok) {
|
|
100630
100937
|
return {
|
|
100631
100938
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100640,9 +100947,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
100640
100947
|
|
|
100641
100948
|
// src/funcs/underwritingUpsert.ts
|
|
100642
100949
|
function underwritingUpsert(client, request, options) {
|
|
100643
|
-
return new APIPromise($
|
|
100950
|
+
return new APIPromise($do174(client, request, options));
|
|
100644
100951
|
}
|
|
100645
|
-
async function $
|
|
100952
|
+
async function $do174(client, request, options) {
|
|
100646
100953
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100647
100954
|
if (!parsed.ok) {
|
|
100648
100955
|
return [parsed, { status: "invalid" }];
|
|
@@ -100726,12 +101033,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
100726
101033
|
});
|
|
100727
101034
|
|
|
100728
101035
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
100729
|
-
var
|
|
101036
|
+
var args169, tool$underwritingUpsert;
|
|
100730
101037
|
var init_underwritingUpsert2 = __esm(() => {
|
|
100731
101038
|
init_underwritingUpsert();
|
|
100732
101039
|
init_operations();
|
|
100733
101040
|
init_tools();
|
|
100734
|
-
|
|
101041
|
+
args169 = {
|
|
100735
101042
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
100736
101043
|
};
|
|
100737
101044
|
tool$underwritingUpsert = {
|
|
@@ -100742,9 +101049,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
100742
101049
|
|
|
100743
101050
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100744
101051
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
100745
|
-
args:
|
|
100746
|
-
tool: async (client,
|
|
100747
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
101052
|
+
args: args169,
|
|
101053
|
+
tool: async (client, args170, ctx) => {
|
|
101054
|
+
const [result, apiCall] = await underwritingUpsert(client, args170.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100748
101055
|
if (!result.ok) {
|
|
100749
101056
|
return {
|
|
100750
101057
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100759,9 +101066,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
100759
101066
|
|
|
100760
101067
|
// src/funcs/walletsCreate.ts
|
|
100761
101068
|
function walletsCreate(client, request, options) {
|
|
100762
|
-
return new APIPromise($
|
|
101069
|
+
return new APIPromise($do175(client, request, options));
|
|
100763
101070
|
}
|
|
100764
|
-
async function $
|
|
101071
|
+
async function $do175(client, request, options) {
|
|
100765
101072
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100766
101073
|
if (!parsed.ok) {
|
|
100767
101074
|
return [parsed, { status: "invalid" }];
|
|
@@ -100843,12 +101150,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
100843
101150
|
});
|
|
100844
101151
|
|
|
100845
101152
|
// src/mcp-server/tools/walletsCreate.ts
|
|
100846
|
-
var
|
|
101153
|
+
var args170, tool$walletsCreate;
|
|
100847
101154
|
var init_walletsCreate2 = __esm(() => {
|
|
100848
101155
|
init_walletsCreate();
|
|
100849
101156
|
init_operations();
|
|
100850
101157
|
init_tools();
|
|
100851
|
-
|
|
101158
|
+
args170 = {
|
|
100852
101159
|
request: CreateWalletRequest$inboundSchema
|
|
100853
101160
|
};
|
|
100854
101161
|
tool$walletsCreate = {
|
|
@@ -100859,9 +101166,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
100859
101166
|
|
|
100860
101167
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100861
101168
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
100862
|
-
args:
|
|
100863
|
-
tool: async (client,
|
|
100864
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
101169
|
+
args: args170,
|
|
101170
|
+
tool: async (client, args171, ctx) => {
|
|
101171
|
+
const [result, apiCall] = await walletsCreate(client, args171.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100865
101172
|
if (!result.ok) {
|
|
100866
101173
|
return {
|
|
100867
101174
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100876,9 +101183,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
100876
101183
|
|
|
100877
101184
|
// src/funcs/walletsGet.ts
|
|
100878
101185
|
function walletsGet(client, request, options) {
|
|
100879
|
-
return new APIPromise($
|
|
101186
|
+
return new APIPromise($do176(client, request, options));
|
|
100880
101187
|
}
|
|
100881
|
-
async function $
|
|
101188
|
+
async function $do176(client, request, options) {
|
|
100882
101189
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100883
101190
|
if (!parsed.ok) {
|
|
100884
101191
|
return [parsed, { status: "invalid" }];
|
|
@@ -100960,12 +101267,12 @@ var init_walletsGet = __esm(() => {
|
|
|
100960
101267
|
});
|
|
100961
101268
|
|
|
100962
101269
|
// src/mcp-server/tools/walletsGet.ts
|
|
100963
|
-
var
|
|
101270
|
+
var args171, tool$walletsGet;
|
|
100964
101271
|
var init_walletsGet2 = __esm(() => {
|
|
100965
101272
|
init_walletsGet();
|
|
100966
101273
|
init_operations();
|
|
100967
101274
|
init_tools();
|
|
100968
|
-
|
|
101275
|
+
args171 = {
|
|
100969
101276
|
request: GetWalletRequest$inboundSchema
|
|
100970
101277
|
};
|
|
100971
101278
|
tool$walletsGet = {
|
|
@@ -100976,9 +101283,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
100976
101283
|
|
|
100977
101284
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100978
101285
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
100979
|
-
args:
|
|
100980
|
-
tool: async (client,
|
|
100981
|
-
const [result, apiCall] = await walletsGet(client,
|
|
101286
|
+
args: args171,
|
|
101287
|
+
tool: async (client, args172, ctx) => {
|
|
101288
|
+
const [result, apiCall] = await walletsGet(client, args172.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100982
101289
|
if (!result.ok) {
|
|
100983
101290
|
return {
|
|
100984
101291
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100993,9 +101300,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
100993
101300
|
|
|
100994
101301
|
// src/funcs/walletsList.ts
|
|
100995
101302
|
function walletsList(client, request, options) {
|
|
100996
|
-
return new APIPromise($
|
|
101303
|
+
return new APIPromise($do177(client, request, options));
|
|
100997
101304
|
}
|
|
100998
|
-
async function $
|
|
101305
|
+
async function $do177(client, request, options) {
|
|
100999
101306
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101000
101307
|
if (!parsed.ok) {
|
|
101001
101308
|
return [parsed, { status: "invalid" }];
|
|
@@ -101083,12 +101390,12 @@ var init_walletsList = __esm(() => {
|
|
|
101083
101390
|
});
|
|
101084
101391
|
|
|
101085
101392
|
// src/mcp-server/tools/walletsList.ts
|
|
101086
|
-
var
|
|
101393
|
+
var args172, tool$walletsList;
|
|
101087
101394
|
var init_walletsList2 = __esm(() => {
|
|
101088
101395
|
init_walletsList();
|
|
101089
101396
|
init_operations();
|
|
101090
101397
|
init_tools();
|
|
101091
|
-
|
|
101398
|
+
args172 = {
|
|
101092
101399
|
request: ListWalletsRequest$inboundSchema
|
|
101093
101400
|
};
|
|
101094
101401
|
tool$walletsList = {
|
|
@@ -101099,9 +101406,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
101099
101406
|
|
|
101100
101407
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101101
101408
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
101102
|
-
args:
|
|
101103
|
-
tool: async (client,
|
|
101104
|
-
const [result, apiCall] = await walletsList(client,
|
|
101409
|
+
args: args172,
|
|
101410
|
+
tool: async (client, args173, ctx) => {
|
|
101411
|
+
const [result, apiCall] = await walletsList(client, args173.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101105
101412
|
if (!result.ok) {
|
|
101106
101413
|
return {
|
|
101107
101414
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101116,9 +101423,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
101116
101423
|
|
|
101117
101424
|
// src/funcs/walletsUpdate.ts
|
|
101118
101425
|
function walletsUpdate(client, request, options) {
|
|
101119
|
-
return new APIPromise($
|
|
101426
|
+
return new APIPromise($do178(client, request, options));
|
|
101120
101427
|
}
|
|
101121
|
-
async function $
|
|
101428
|
+
async function $do178(client, request, options) {
|
|
101122
101429
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101123
101430
|
if (!parsed.ok) {
|
|
101124
101431
|
return [parsed, { status: "invalid" }];
|
|
@@ -101204,12 +101511,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
101204
101511
|
});
|
|
101205
101512
|
|
|
101206
101513
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
101207
|
-
var
|
|
101514
|
+
var args173, tool$walletsUpdate;
|
|
101208
101515
|
var init_walletsUpdate2 = __esm(() => {
|
|
101209
101516
|
init_walletsUpdate();
|
|
101210
101517
|
init_operations();
|
|
101211
101518
|
init_tools();
|
|
101212
|
-
|
|
101519
|
+
args173 = {
|
|
101213
101520
|
request: UpdateWalletRequest$inboundSchema
|
|
101214
101521
|
};
|
|
101215
101522
|
tool$walletsUpdate = {
|
|
@@ -101220,9 +101527,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
101220
101527
|
|
|
101221
101528
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101222
101529
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
101223
|
-
args:
|
|
101224
|
-
tool: async (client,
|
|
101225
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
101530
|
+
args: args173,
|
|
101531
|
+
tool: async (client, args174, ctx) => {
|
|
101532
|
+
const [result, apiCall] = await walletsUpdate(client, args174.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101226
101533
|
if (!result.ok) {
|
|
101227
101534
|
return {
|
|
101228
101535
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101237,9 +101544,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
101237
101544
|
|
|
101238
101545
|
// src/funcs/walletTransactionsGet.ts
|
|
101239
101546
|
function walletTransactionsGet(client, request, options) {
|
|
101240
|
-
return new APIPromise($
|
|
101547
|
+
return new APIPromise($do179(client, request, options));
|
|
101241
101548
|
}
|
|
101242
|
-
async function $
|
|
101549
|
+
async function $do179(client, request, options) {
|
|
101243
101550
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101244
101551
|
if (!parsed.ok) {
|
|
101245
101552
|
return [parsed, { status: "invalid" }];
|
|
@@ -101325,12 +101632,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
101325
101632
|
});
|
|
101326
101633
|
|
|
101327
101634
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
101328
|
-
var
|
|
101635
|
+
var args174, tool$walletTransactionsGet;
|
|
101329
101636
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
101330
101637
|
init_walletTransactionsGet();
|
|
101331
101638
|
init_operations();
|
|
101332
101639
|
init_tools();
|
|
101333
|
-
|
|
101640
|
+
args174 = {
|
|
101334
101641
|
request: GetWalletTransactionRequest$inboundSchema
|
|
101335
101642
|
};
|
|
101336
101643
|
tool$walletTransactionsGet = {
|
|
@@ -101341,9 +101648,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
101341
101648
|
|
|
101342
101649
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101343
101650
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
101344
|
-
args:
|
|
101345
|
-
tool: async (client,
|
|
101346
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
101651
|
+
args: args174,
|
|
101652
|
+
tool: async (client, args175, ctx) => {
|
|
101653
|
+
const [result, apiCall] = await walletTransactionsGet(client, args175.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101347
101654
|
if (!result.ok) {
|
|
101348
101655
|
return {
|
|
101349
101656
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101358,9 +101665,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
101358
101665
|
|
|
101359
101666
|
// src/funcs/walletTransactionsList.ts
|
|
101360
101667
|
function walletTransactionsList(client, request, options) {
|
|
101361
|
-
return new APIPromise($
|
|
101668
|
+
return new APIPromise($do180(client, request, options));
|
|
101362
101669
|
}
|
|
101363
|
-
async function $
|
|
101670
|
+
async function $do180(client, request, options) {
|
|
101364
101671
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101365
101672
|
if (!parsed.ok) {
|
|
101366
101673
|
return [parsed, { status: "invalid" }];
|
|
@@ -101460,12 +101767,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
101460
101767
|
});
|
|
101461
101768
|
|
|
101462
101769
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
101463
|
-
var
|
|
101770
|
+
var args175, tool$walletTransactionsList;
|
|
101464
101771
|
var init_walletTransactionsList2 = __esm(() => {
|
|
101465
101772
|
init_walletTransactionsList();
|
|
101466
101773
|
init_operations();
|
|
101467
101774
|
init_tools();
|
|
101468
|
-
|
|
101775
|
+
args175 = {
|
|
101469
101776
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
101470
101777
|
};
|
|
101471
101778
|
tool$walletTransactionsList = {
|
|
@@ -101476,9 +101783,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
101476
101783
|
|
|
101477
101784
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101478
101785
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
101479
|
-
args:
|
|
101480
|
-
tool: async (client,
|
|
101481
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
101786
|
+
args: args175,
|
|
101787
|
+
tool: async (client, args176, ctx) => {
|
|
101788
|
+
const [result, apiCall] = await walletTransactionsList(client, args176.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101482
101789
|
if (!result.ok) {
|
|
101483
101790
|
return {
|
|
101484
101791
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101493,9 +101800,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
101493
101800
|
|
|
101494
101801
|
// src/funcs/webhooksCreate.ts
|
|
101495
101802
|
function webhooksCreate(client, request, options) {
|
|
101496
|
-
return new APIPromise($
|
|
101803
|
+
return new APIPromise($do181(client, request, options));
|
|
101497
101804
|
}
|
|
101498
|
-
async function $
|
|
101805
|
+
async function $do181(client, request, options) {
|
|
101499
101806
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
101500
101807
|
if (!parsed.ok) {
|
|
101501
101808
|
return [parsed, { status: "invalid" }];
|
|
@@ -101572,20 +101879,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
101572
101879
|
});
|
|
101573
101880
|
|
|
101574
101881
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
101575
|
-
var
|
|
101882
|
+
var args176, tool$webhooksCreate;
|
|
101576
101883
|
var init_webhooksCreate2 = __esm(() => {
|
|
101577
101884
|
init_webhooksCreate();
|
|
101578
101885
|
init_components();
|
|
101579
101886
|
init_tools();
|
|
101580
|
-
|
|
101887
|
+
args176 = {
|
|
101581
101888
|
request: CreateWebhook$inboundSchema
|
|
101582
101889
|
};
|
|
101583
101890
|
tool$webhooksCreate = {
|
|
101584
101891
|
name: "webhooks-create",
|
|
101585
101892
|
description: `Create a new webhook for the account.`,
|
|
101586
|
-
args:
|
|
101587
|
-
tool: async (client,
|
|
101588
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
101893
|
+
args: args176,
|
|
101894
|
+
tool: async (client, args177, ctx) => {
|
|
101895
|
+
const [result, apiCall] = await webhooksCreate(client, args177.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101589
101896
|
if (!result.ok) {
|
|
101590
101897
|
return {
|
|
101591
101898
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101600,9 +101907,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
101600
101907
|
|
|
101601
101908
|
// src/funcs/webhooksDisable.ts
|
|
101602
101909
|
function webhooksDisable(client, request, options) {
|
|
101603
|
-
return new APIPromise($
|
|
101910
|
+
return new APIPromise($do182(client, request, options));
|
|
101604
101911
|
}
|
|
101605
|
-
async function $
|
|
101912
|
+
async function $do182(client, request, options) {
|
|
101606
101913
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101607
101914
|
if (!parsed.ok) {
|
|
101608
101915
|
return [parsed, { status: "invalid" }];
|
|
@@ -101680,20 +101987,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
101680
101987
|
});
|
|
101681
101988
|
|
|
101682
101989
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
101683
|
-
var
|
|
101990
|
+
var args177, tool$webhooksDisable;
|
|
101684
101991
|
var init_webhooksDisable2 = __esm(() => {
|
|
101685
101992
|
init_webhooksDisable();
|
|
101686
101993
|
init_operations();
|
|
101687
101994
|
init_tools();
|
|
101688
|
-
|
|
101995
|
+
args177 = {
|
|
101689
101996
|
request: DisableWebhookRequest$inboundSchema
|
|
101690
101997
|
};
|
|
101691
101998
|
tool$webhooksDisable = {
|
|
101692
101999
|
name: "webhooks-disable",
|
|
101693
102000
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
101694
|
-
args:
|
|
101695
|
-
tool: async (client,
|
|
101696
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
102001
|
+
args: args177,
|
|
102002
|
+
tool: async (client, args178, ctx) => {
|
|
102003
|
+
const [result, apiCall] = await webhooksDisable(client, args178.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101697
102004
|
if (!result.ok) {
|
|
101698
102005
|
return {
|
|
101699
102006
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101707,9 +102014,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
101707
102014
|
|
|
101708
102015
|
// src/funcs/webhooksGet.ts
|
|
101709
102016
|
function webhooksGet(client, request, options) {
|
|
101710
|
-
return new APIPromise($
|
|
102017
|
+
return new APIPromise($do183(client, request, options));
|
|
101711
102018
|
}
|
|
101712
|
-
async function $
|
|
102019
|
+
async function $do183(client, request, options) {
|
|
101713
102020
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101714
102021
|
if (!parsed.ok) {
|
|
101715
102022
|
return [parsed, { status: "invalid" }];
|
|
@@ -101787,20 +102094,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
101787
102094
|
});
|
|
101788
102095
|
|
|
101789
102096
|
// src/mcp-server/tools/webhooksGet.ts
|
|
101790
|
-
var
|
|
102097
|
+
var args178, tool$webhooksGet;
|
|
101791
102098
|
var init_webhooksGet2 = __esm(() => {
|
|
101792
102099
|
init_webhooksGet();
|
|
101793
102100
|
init_operations();
|
|
101794
102101
|
init_tools();
|
|
101795
|
-
|
|
102102
|
+
args178 = {
|
|
101796
102103
|
request: GetWebhookRequest$inboundSchema
|
|
101797
102104
|
};
|
|
101798
102105
|
tool$webhooksGet = {
|
|
101799
102106
|
name: "webhooks-get",
|
|
101800
102107
|
description: `Get details of a specific webhook.`,
|
|
101801
|
-
args:
|
|
101802
|
-
tool: async (client,
|
|
101803
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
102108
|
+
args: args178,
|
|
102109
|
+
tool: async (client, args179, ctx) => {
|
|
102110
|
+
const [result, apiCall] = await webhooksGet(client, args179.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101804
102111
|
if (!result.ok) {
|
|
101805
102112
|
return {
|
|
101806
102113
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101815,9 +102122,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
101815
102122
|
|
|
101816
102123
|
// src/funcs/webhooksGetSecret.ts
|
|
101817
102124
|
function webhooksGetSecret(client, request, options) {
|
|
101818
|
-
return new APIPromise($
|
|
102125
|
+
return new APIPromise($do184(client, request, options));
|
|
101819
102126
|
}
|
|
101820
|
-
async function $
|
|
102127
|
+
async function $do184(client, request, options) {
|
|
101821
102128
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101822
102129
|
if (!parsed.ok) {
|
|
101823
102130
|
return [parsed, { status: "invalid" }];
|
|
@@ -101895,20 +102202,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
101895
102202
|
});
|
|
101896
102203
|
|
|
101897
102204
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
101898
|
-
var
|
|
102205
|
+
var args179, tool$webhooksGetSecret;
|
|
101899
102206
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
101900
102207
|
init_webhooksGetSecret();
|
|
101901
102208
|
init_operations();
|
|
101902
102209
|
init_tools();
|
|
101903
|
-
|
|
102210
|
+
args179 = {
|
|
101904
102211
|
request: GetWebhookSecretRequest$inboundSchema
|
|
101905
102212
|
};
|
|
101906
102213
|
tool$webhooksGetSecret = {
|
|
101907
102214
|
name: "webhooks-get-secret",
|
|
101908
102215
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
101909
|
-
args:
|
|
101910
|
-
tool: async (client,
|
|
101911
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
102216
|
+
args: args179,
|
|
102217
|
+
tool: async (client, args180, ctx) => {
|
|
102218
|
+
const [result, apiCall] = await webhooksGetSecret(client, args180.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101912
102219
|
if (!result.ok) {
|
|
101913
102220
|
return {
|
|
101914
102221
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101923,9 +102230,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
101923
102230
|
|
|
101924
102231
|
// src/funcs/webhooksList.ts
|
|
101925
102232
|
function webhooksList(client, options) {
|
|
101926
|
-
return new APIPromise($
|
|
102233
|
+
return new APIPromise($do185(client, options));
|
|
101927
102234
|
}
|
|
101928
|
-
async function $
|
|
102235
|
+
async function $do185(client, options) {
|
|
101929
102236
|
const path = pathToFunc("/webhooks")();
|
|
101930
102237
|
const headers = new Headers(compactMap({
|
|
101931
102238
|
Accept: "application/json"
|
|
@@ -102011,9 +102318,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
102011
102318
|
|
|
102012
102319
|
// src/funcs/webhooksListEventTypes.ts
|
|
102013
102320
|
function webhooksListEventTypes(client, options) {
|
|
102014
|
-
return new APIPromise($
|
|
102321
|
+
return new APIPromise($do186(client, options));
|
|
102015
102322
|
}
|
|
102016
|
-
async function $
|
|
102323
|
+
async function $do186(client, options) {
|
|
102017
102324
|
const path = pathToFunc("/event-types")();
|
|
102018
102325
|
const headers = new Headers(compactMap({
|
|
102019
102326
|
Accept: "application/json"
|
|
@@ -102099,9 +102406,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
102099
102406
|
|
|
102100
102407
|
// src/funcs/webhooksPing.ts
|
|
102101
102408
|
function webhooksPing(client, request, options) {
|
|
102102
|
-
return new APIPromise($
|
|
102409
|
+
return new APIPromise($do187(client, request, options));
|
|
102103
102410
|
}
|
|
102104
|
-
async function $
|
|
102411
|
+
async function $do187(client, request, options) {
|
|
102105
102412
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102106
102413
|
if (!parsed.ok) {
|
|
102107
102414
|
return [parsed, { status: "invalid" }];
|
|
@@ -102179,20 +102486,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
102179
102486
|
});
|
|
102180
102487
|
|
|
102181
102488
|
// src/mcp-server/tools/webhooksPing.ts
|
|
102182
|
-
var
|
|
102489
|
+
var args180, tool$webhooksPing;
|
|
102183
102490
|
var init_webhooksPing2 = __esm(() => {
|
|
102184
102491
|
init_webhooksPing();
|
|
102185
102492
|
init_operations();
|
|
102186
102493
|
init_tools();
|
|
102187
|
-
|
|
102494
|
+
args180 = {
|
|
102188
102495
|
request: PingWebhookRequest$inboundSchema
|
|
102189
102496
|
};
|
|
102190
102497
|
tool$webhooksPing = {
|
|
102191
102498
|
name: "webhooks-ping",
|
|
102192
102499
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
102193
|
-
args:
|
|
102194
|
-
tool: async (client,
|
|
102195
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
102500
|
+
args: args180,
|
|
102501
|
+
tool: async (client, args181, ctx) => {
|
|
102502
|
+
const [result, apiCall] = await webhooksPing(client, args181.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102196
102503
|
if (!result.ok) {
|
|
102197
102504
|
return {
|
|
102198
102505
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102207,9 +102514,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
102207
102514
|
|
|
102208
102515
|
// src/funcs/webhooksUpdate.ts
|
|
102209
102516
|
function webhooksUpdate(client, request, options) {
|
|
102210
|
-
return new APIPromise($
|
|
102517
|
+
return new APIPromise($do188(client, request, options));
|
|
102211
102518
|
}
|
|
102212
|
-
async function $
|
|
102519
|
+
async function $do188(client, request, options) {
|
|
102213
102520
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102214
102521
|
if (!parsed.ok) {
|
|
102215
102522
|
return [parsed, { status: "invalid" }];
|
|
@@ -102291,20 +102598,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
102291
102598
|
});
|
|
102292
102599
|
|
|
102293
102600
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
102294
|
-
var
|
|
102601
|
+
var args181, tool$webhooksUpdate;
|
|
102295
102602
|
var init_webhooksUpdate2 = __esm(() => {
|
|
102296
102603
|
init_webhooksUpdate();
|
|
102297
102604
|
init_operations();
|
|
102298
102605
|
init_tools();
|
|
102299
|
-
|
|
102606
|
+
args181 = {
|
|
102300
102607
|
request: UpdateWebhookRequest$inboundSchema
|
|
102301
102608
|
};
|
|
102302
102609
|
tool$webhooksUpdate = {
|
|
102303
102610
|
name: "webhooks-update",
|
|
102304
102611
|
description: `Update an existing webhook.`,
|
|
102305
|
-
args:
|
|
102306
|
-
tool: async (client,
|
|
102307
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
102612
|
+
args: args181,
|
|
102613
|
+
tool: async (client, args182, ctx) => {
|
|
102614
|
+
const [result, apiCall] = await webhooksUpdate(client, args182.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102308
102615
|
if (!result.ok) {
|
|
102309
102616
|
return {
|
|
102310
102617
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102321,7 +102628,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
102321
102628
|
function createMCPServer(deps) {
|
|
102322
102629
|
const server = new McpServer({
|
|
102323
102630
|
name: "Moov",
|
|
102324
|
-
version: "26.5.
|
|
102631
|
+
version: "26.5.3"
|
|
102325
102632
|
});
|
|
102326
102633
|
const client = new MoovCore({
|
|
102327
102634
|
security: deps.security,
|
|
@@ -102469,6 +102776,7 @@ function createMCPServer(deps) {
|
|
|
102469
102776
|
tool(tool$transfersGet);
|
|
102470
102777
|
tool(tool$transfersUpdate);
|
|
102471
102778
|
tool(tool$transfersCreateCancellation);
|
|
102779
|
+
tool(tool$transfersListCancellations);
|
|
102472
102780
|
tool(tool$transfersGetCancellation);
|
|
102473
102781
|
tool(tool$transfersInitiateRefund);
|
|
102474
102782
|
tool(tool$transfersListRefunds);
|
|
@@ -102698,6 +103006,7 @@ var init_server2 = __esm(() => {
|
|
|
102698
103006
|
init_transfersGetRefund2();
|
|
102699
103007
|
init_transfersInitiateRefund2();
|
|
102700
103008
|
init_transfersList2();
|
|
103009
|
+
init_transfersListCancellations2();
|
|
102701
103010
|
init_transfersListRefunds2();
|
|
102702
103011
|
init_transfersUpdate2();
|
|
102703
103012
|
init_underwritingGet2();
|
|
@@ -103919,7 +104228,7 @@ var routes = rn({
|
|
|
103919
104228
|
var app = Ve(routes, {
|
|
103920
104229
|
name: "mcp",
|
|
103921
104230
|
versionInfo: {
|
|
103922
|
-
currentVersion: "26.5.
|
|
104231
|
+
currentVersion: "26.5.3"
|
|
103923
104232
|
}
|
|
103924
104233
|
});
|
|
103925
104234
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -103927,5 +104236,5 @@ export {
|
|
|
103927
104236
|
app
|
|
103928
104237
|
};
|
|
103929
104238
|
|
|
103930
|
-
//# debugId=
|
|
104239
|
+
//# debugId=9008C8064D55D73D64756E2164756E21
|
|
103931
104240
|
//# sourceMappingURL=mcp-server.js.map
|