@moovio/sdk 25.6.0 → 25.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -75
- package/bin/mcp-server.js +547 -312
- package/bin/mcp-server.js.map +55 -56
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createaccount.d.ts +9 -0
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -3
- package/models/components/fullissuedcard.d.ts +25 -9
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +1 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -4
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +1 -4
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js +0 -63
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js +0 -63
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- package/src/models/components/createauthorizeduserupdate.ts +0 -68
package/bin/mcp-server.js
CHANGED
|
@@ -37121,6 +37121,57 @@ function remap(inp, mappings) {
|
|
|
37121
37121
|
}
|
|
37122
37122
|
return out;
|
|
37123
37123
|
}
|
|
37124
|
+
function combineSignals(...signals) {
|
|
37125
|
+
const filtered = [];
|
|
37126
|
+
for (const signal of signals) {
|
|
37127
|
+
if (signal) {
|
|
37128
|
+
filtered.push(signal);
|
|
37129
|
+
}
|
|
37130
|
+
}
|
|
37131
|
+
switch (filtered.length) {
|
|
37132
|
+
case 0:
|
|
37133
|
+
case 1:
|
|
37134
|
+
return filtered[0] || null;
|
|
37135
|
+
default:
|
|
37136
|
+
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
|
|
37137
|
+
return AbortSignal.any(filtered);
|
|
37138
|
+
}
|
|
37139
|
+
return abortSignalAny(filtered);
|
|
37140
|
+
}
|
|
37141
|
+
}
|
|
37142
|
+
function abortSignalAny(signals) {
|
|
37143
|
+
const controller = new AbortController;
|
|
37144
|
+
const result = controller.signal;
|
|
37145
|
+
if (!signals.length) {
|
|
37146
|
+
return controller.signal;
|
|
37147
|
+
}
|
|
37148
|
+
if (signals.length === 1) {
|
|
37149
|
+
return signals[0] || controller.signal;
|
|
37150
|
+
}
|
|
37151
|
+
for (const signal of signals) {
|
|
37152
|
+
if (signal.aborted) {
|
|
37153
|
+
return signal;
|
|
37154
|
+
}
|
|
37155
|
+
}
|
|
37156
|
+
function abort() {
|
|
37157
|
+
controller.abort(this.reason);
|
|
37158
|
+
clean();
|
|
37159
|
+
}
|
|
37160
|
+
const signalRefs = [];
|
|
37161
|
+
function clean() {
|
|
37162
|
+
for (const signalRef of signalRefs) {
|
|
37163
|
+
const signal = signalRef.deref();
|
|
37164
|
+
if (signal) {
|
|
37165
|
+
signal.removeEventListener("abort", abort);
|
|
37166
|
+
}
|
|
37167
|
+
}
|
|
37168
|
+
}
|
|
37169
|
+
for (const signal of signals) {
|
|
37170
|
+
signalRefs.push(new WeakRef(signal));
|
|
37171
|
+
signal.addEventListener("abort", abort);
|
|
37172
|
+
}
|
|
37173
|
+
return result;
|
|
37174
|
+
}
|
|
37124
37175
|
function compactMap(values) {
|
|
37125
37176
|
const out = {};
|
|
37126
37177
|
for (const [k2, v2] of Object.entries(values)) {
|
|
@@ -37136,6 +37187,20 @@ function allRequired(v2) {
|
|
|
37136
37187
|
}
|
|
37137
37188
|
return v2;
|
|
37138
37189
|
}
|
|
37190
|
+
function isPlainObject2(value) {
|
|
37191
|
+
if (value === null || typeof value !== "object")
|
|
37192
|
+
return false;
|
|
37193
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
37194
|
+
return false;
|
|
37195
|
+
const proto = Object.getPrototypeOf(value);
|
|
37196
|
+
if (proto === null || proto === Object.prototype)
|
|
37197
|
+
return true;
|
|
37198
|
+
try {
|
|
37199
|
+
return Object.getPrototypeOf(proto) === null;
|
|
37200
|
+
} catch {
|
|
37201
|
+
return false;
|
|
37202
|
+
}
|
|
37203
|
+
}
|
|
37139
37204
|
var init_primitives = () => {};
|
|
37140
37205
|
|
|
37141
37206
|
// node_modules/zod/dist/esm/v4/mini/parse.js
|
|
@@ -39629,7 +39694,7 @@ class Protocol {
|
|
|
39629
39694
|
};
|
|
39630
39695
|
}
|
|
39631
39696
|
}
|
|
39632
|
-
function
|
|
39697
|
+
function isPlainObject3(value) {
|
|
39633
39698
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
39634
39699
|
}
|
|
39635
39700
|
function mergeCapabilities(base, additional) {
|
|
@@ -39640,7 +39705,7 @@ function mergeCapabilities(base, additional) {
|
|
|
39640
39705
|
if (addValue === undefined)
|
|
39641
39706
|
continue;
|
|
39642
39707
|
const baseValue = result[k2];
|
|
39643
|
-
if (
|
|
39708
|
+
if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
|
|
39644
39709
|
result[k2] = { ...baseValue, ...addValue };
|
|
39645
39710
|
} else {
|
|
39646
39711
|
result[k2] = addValue;
|
|
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
|
|
|
52909
52974
|
SDK_METADATA = {
|
|
52910
52975
|
language: "typescript",
|
|
52911
52976
|
openapiDocVersion: "v2025.04.00",
|
|
52912
|
-
sdkVersion: "25.6.
|
|
52913
|
-
genVersion: "2.
|
|
52914
|
-
userAgent: "speakeasy-sdk/typescript 25.6.
|
|
52977
|
+
sdkVersion: "25.6.1",
|
|
52978
|
+
genVersion: "2.910.1",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 25.6.1 2.910.1 v2025.04.00 @moovio/sdk"
|
|
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",
|
|
@@ -56343,20 +56433,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56343
56433
|
});
|
|
56344
56434
|
});
|
|
56345
56435
|
|
|
56346
|
-
// src/models/components/authorizeduser.ts
|
|
56347
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56348
|
-
var init_authorizeduser = __esm(() => {
|
|
56349
|
-
init_esm();
|
|
56350
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56351
|
-
firstName: stringType(),
|
|
56352
|
-
lastName: stringType()
|
|
56353
|
-
});
|
|
56354
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56355
|
-
firstName: stringType(),
|
|
56356
|
-
lastName: stringType()
|
|
56357
|
-
});
|
|
56358
|
-
});
|
|
56359
|
-
|
|
56360
56436
|
// src/models/components/tokentype.ts
|
|
56361
56437
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56362
56438
|
var init_tokentype = __esm(() => {
|
|
@@ -60735,57 +60811,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
60735
60811
|
});
|
|
60736
60812
|
});
|
|
60737
60813
|
|
|
60738
|
-
// src/models/components/createauthorizeduser.ts
|
|
60739
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
60740
|
-
var init_createauthorizeduser = __esm(() => {
|
|
60741
|
-
init_esm();
|
|
60742
|
-
init_birthdate();
|
|
60743
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
60744
|
-
firstName: stringType(),
|
|
60745
|
-
lastName: stringType(),
|
|
60746
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
60747
|
-
});
|
|
60748
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
60749
|
-
firstName: stringType(),
|
|
60750
|
-
lastName: stringType(),
|
|
60751
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
60752
|
-
});
|
|
60753
|
-
});
|
|
60754
|
-
|
|
60755
|
-
// src/models/components/createauthorizedusererror.ts
|
|
60756
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
60757
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
60758
|
-
init_esm();
|
|
60759
|
-
init_birthdateerror();
|
|
60760
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
60761
|
-
firstName: stringType().optional(),
|
|
60762
|
-
lastName: stringType().optional(),
|
|
60763
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
60764
|
-
});
|
|
60765
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
60766
|
-
firstName: stringType().optional(),
|
|
60767
|
-
lastName: stringType().optional(),
|
|
60768
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
60769
|
-
});
|
|
60770
|
-
});
|
|
60771
|
-
|
|
60772
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
60773
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
60774
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
60775
|
-
init_esm();
|
|
60776
|
-
init_birthdateupdate();
|
|
60777
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
60778
|
-
firstName: stringType().optional(),
|
|
60779
|
-
lastName: stringType().optional(),
|
|
60780
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
60781
|
-
});
|
|
60782
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
60783
|
-
firstName: stringType().optional(),
|
|
60784
|
-
lastName: stringType().optional(),
|
|
60785
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
60786
|
-
});
|
|
60787
|
-
});
|
|
60788
|
-
|
|
60789
60814
|
// src/models/components/phonenumbererror.ts
|
|
60790
60815
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
60791
60816
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62474,7 +62499,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62474
62499
|
WalletCreated: "wallet.created",
|
|
62475
62500
|
WalletUpdated: "wallet.updated",
|
|
62476
62501
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62477
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62502
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62503
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62478
62504
|
};
|
|
62479
62505
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62480
62506
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63244,7 +63270,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63244
63270
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63245
63271
|
var init_fullissuedcard = __esm(() => {
|
|
63246
63272
|
init_esm();
|
|
63247
|
-
|
|
63273
|
+
init_address();
|
|
63248
63274
|
init_cardbrand();
|
|
63249
63275
|
init_cardexpiration();
|
|
63250
63276
|
init_issuedcardformfactor();
|
|
@@ -63255,13 +63281,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63255
63281
|
brand: CardBrand$inboundSchema,
|
|
63256
63282
|
lastFourCardNumber: stringType(),
|
|
63257
63283
|
expiration: CardExpiration$inboundSchema,
|
|
63258
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63259
|
-
memo: stringType().optional(),
|
|
63260
63284
|
fundingWalletID: stringType(),
|
|
63285
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63286
|
+
nickname: stringType().optional(),
|
|
63287
|
+
metadata: recordType(stringType()).optional(),
|
|
63288
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63261
63289
|
state: IssuedCardState$inboundSchema,
|
|
63262
63290
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63263
63291
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63264
63292
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63293
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63265
63294
|
pan: stringType(),
|
|
63266
63295
|
cvv: stringType()
|
|
63267
63296
|
});
|
|
@@ -63270,13 +63299,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63270
63299
|
brand: CardBrand$outboundSchema,
|
|
63271
63300
|
lastFourCardNumber: stringType(),
|
|
63272
63301
|
expiration: CardExpiration$outboundSchema,
|
|
63273
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63274
|
-
memo: stringType().optional(),
|
|
63275
63302
|
fundingWalletID: stringType(),
|
|
63303
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63304
|
+
nickname: stringType().optional(),
|
|
63305
|
+
metadata: recordType(stringType()).optional(),
|
|
63306
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63276
63307
|
state: IssuedCardState$outboundSchema,
|
|
63277
63308
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63278
63309
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63279
63310
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63311
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63280
63312
|
pan: stringType(),
|
|
63281
63313
|
cvv: stringType()
|
|
63282
63314
|
});
|
|
@@ -63602,7 +63634,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
63602
63634
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
63603
63635
|
var init_issuedcard = __esm(() => {
|
|
63604
63636
|
init_esm();
|
|
63605
|
-
|
|
63637
|
+
init_address();
|
|
63606
63638
|
init_cardbrand();
|
|
63607
63639
|
init_cardexpiration();
|
|
63608
63640
|
init_issuedcardformfactor();
|
|
@@ -63613,26 +63645,32 @@ var init_issuedcard = __esm(() => {
|
|
|
63613
63645
|
brand: CardBrand$inboundSchema,
|
|
63614
63646
|
lastFourCardNumber: stringType(),
|
|
63615
63647
|
expiration: CardExpiration$inboundSchema,
|
|
63616
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63617
|
-
memo: stringType().optional(),
|
|
63618
63648
|
fundingWalletID: stringType(),
|
|
63649
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63650
|
+
nickname: stringType().optional(),
|
|
63651
|
+
metadata: recordType(stringType()).optional(),
|
|
63652
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63619
63653
|
state: IssuedCardState$inboundSchema,
|
|
63620
63654
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63621
63655
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63622
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63656
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63657
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63623
63658
|
});
|
|
63624
63659
|
IssuedCard$outboundSchema = objectType({
|
|
63625
63660
|
issuedCardID: stringType(),
|
|
63626
63661
|
brand: CardBrand$outboundSchema,
|
|
63627
63662
|
lastFourCardNumber: stringType(),
|
|
63628
63663
|
expiration: CardExpiration$outboundSchema,
|
|
63629
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63630
|
-
memo: stringType().optional(),
|
|
63631
63664
|
fundingWalletID: stringType(),
|
|
63665
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63666
|
+
nickname: stringType().optional(),
|
|
63667
|
+
metadata: recordType(stringType()).optional(),
|
|
63668
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63632
63669
|
state: IssuedCardState$outboundSchema,
|
|
63633
63670
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63634
63671
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63635
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
63672
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63673
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
63636
63674
|
});
|
|
63637
63675
|
});
|
|
63638
63676
|
|
|
@@ -65572,23 +65610,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
65572
65610
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
65573
65611
|
var init_requestcard = __esm(() => {
|
|
65574
65612
|
init_esm();
|
|
65613
|
+
init_address();
|
|
65575
65614
|
init_cardexpiration();
|
|
65576
|
-
init_createauthorizeduser();
|
|
65577
|
-
init_issuedcardformfactor();
|
|
65578
65615
|
init_issuingcontrols();
|
|
65579
65616
|
RequestCard$inboundSchema = objectType({
|
|
65580
|
-
|
|
65581
|
-
|
|
65582
|
-
|
|
65583
|
-
|
|
65617
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65618
|
+
nickname: stringType().optional(),
|
|
65619
|
+
metadata: recordType(stringType()).optional(),
|
|
65620
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
65584
65621
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
65585
65622
|
controls: IssuingControls$inboundSchema.optional()
|
|
65586
65623
|
});
|
|
65587
65624
|
RequestCard$outboundSchema = objectType({
|
|
65588
|
-
|
|
65589
|
-
|
|
65590
|
-
|
|
65591
|
-
|
|
65625
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65626
|
+
nickname: stringType().optional(),
|
|
65627
|
+
metadata: recordType(stringType()).optional(),
|
|
65628
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
65592
65629
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
65593
65630
|
controls: IssuingControls$outboundSchema.optional()
|
|
65594
65631
|
});
|
|
@@ -66466,20 +66503,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
66466
66503
|
});
|
|
66467
66504
|
|
|
66468
66505
|
// src/models/components/updateissuedcard.ts
|
|
66469
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66506
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66470
66507
|
var init_updateissuedcard = __esm(() => {
|
|
66471
66508
|
init_esm();
|
|
66472
|
-
init_createauthorizeduserupdate();
|
|
66473
66509
|
init_updateissuedcardstate();
|
|
66510
|
+
BillingAddress$inboundSchema = objectType({
|
|
66511
|
+
addressLine1: stringType().optional(),
|
|
66512
|
+
addressLine2: stringType().optional(),
|
|
66513
|
+
city: stringType().optional(),
|
|
66514
|
+
stateOrProvince: stringType().optional(),
|
|
66515
|
+
postalCode: stringType().optional(),
|
|
66516
|
+
country: stringType().optional()
|
|
66517
|
+
});
|
|
66518
|
+
BillingAddress$outboundSchema = objectType({
|
|
66519
|
+
addressLine1: stringType().optional(),
|
|
66520
|
+
addressLine2: stringType().optional(),
|
|
66521
|
+
city: stringType().optional(),
|
|
66522
|
+
stateOrProvince: stringType().optional(),
|
|
66523
|
+
postalCode: stringType().optional(),
|
|
66524
|
+
country: stringType().optional()
|
|
66525
|
+
});
|
|
66474
66526
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
66475
66527
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
66476
|
-
|
|
66477
|
-
|
|
66528
|
+
nickname: nullableType(stringType()).optional(),
|
|
66529
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66530
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
66478
66531
|
});
|
|
66479
66532
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
66480
66533
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
66481
|
-
|
|
66482
|
-
|
|
66534
|
+
nickname: nullableType(stringType()).optional(),
|
|
66535
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66536
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
66483
66537
|
});
|
|
66484
66538
|
});
|
|
66485
66539
|
|
|
@@ -66877,6 +66931,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
66877
66931
|
});
|
|
66878
66932
|
});
|
|
66879
66933
|
|
|
66934
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
66935
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
66936
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
66937
|
+
init_esm();
|
|
66938
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
66939
|
+
merchantAccountID: stringType(),
|
|
66940
|
+
partnerAccountID: stringType(),
|
|
66941
|
+
authorizationID: stringType(),
|
|
66942
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
66943
|
+
});
|
|
66944
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
66945
|
+
merchantAccountID: stringType(),
|
|
66946
|
+
partnerAccountID: stringType(),
|
|
66947
|
+
authorizationID: stringType(),
|
|
66948
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
66949
|
+
});
|
|
66950
|
+
});
|
|
66951
|
+
|
|
66880
66952
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
66881
66953
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
66882
66954
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -67251,10 +67323,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
67251
67323
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
67252
67324
|
init_esm();
|
|
67253
67325
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
67326
|
+
accountID: stringType(),
|
|
67254
67327
|
walletID: stringType(),
|
|
67255
67328
|
sweepID: stringType()
|
|
67256
67329
|
});
|
|
67257
67330
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
67331
|
+
accountID: stringType(),
|
|
67258
67332
|
walletID: stringType(),
|
|
67259
67333
|
sweepID: stringType()
|
|
67260
67334
|
});
|
|
@@ -67266,12 +67340,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
67266
67340
|
init_esm();
|
|
67267
67341
|
init_sweepstatus();
|
|
67268
67342
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
67343
|
+
accountID: stringType(),
|
|
67269
67344
|
walletID: stringType(),
|
|
67270
67345
|
sweepID: stringType(),
|
|
67271
67346
|
transferID: stringType().optional(),
|
|
67272
67347
|
status: SweepStatus$inboundSchema
|
|
67273
67348
|
});
|
|
67274
67349
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
67350
|
+
accountID: stringType(),
|
|
67275
67351
|
walletID: stringType(),
|
|
67276
67352
|
sweepID: stringType(),
|
|
67277
67353
|
transferID: stringType().optional(),
|
|
@@ -67512,6 +67588,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67512
67588
|
init_webhookdataaccountcreated();
|
|
67513
67589
|
init_webhookdataaccountdisconnected();
|
|
67514
67590
|
init_webhookdataaccountupdated();
|
|
67591
|
+
init_webhookdataauthorizationexpiring();
|
|
67515
67592
|
init_webhookdatabalanceupdated();
|
|
67516
67593
|
init_webhookdatabankaccountcreated();
|
|
67517
67594
|
init_webhookdatabankaccountdeleted();
|
|
@@ -67551,7 +67628,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67551
67628
|
WebhookDataTransferUpdated$inboundSchema,
|
|
67552
67629
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
67553
67630
|
WebhookDataRefundUpdated$inboundSchema,
|
|
67631
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
67554
67632
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
67633
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
67555
67634
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
67556
67635
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
67557
67636
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -67562,7 +67641,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67562
67641
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
67563
67642
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
67564
67643
|
WebhookDataRefundCreated$inboundSchema,
|
|
67565
|
-
|
|
67644
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
67566
67645
|
WebhookDataTicketUpdated$inboundSchema,
|
|
67567
67646
|
WebhookDataTransferCreated$inboundSchema,
|
|
67568
67647
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -67572,7 +67651,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67572
67651
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
67573
67652
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
67574
67653
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
67575
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
67576
67654
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
67577
67655
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
67578
67656
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -67590,7 +67668,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67590
67668
|
WebhookDataTransferUpdated$outboundSchema,
|
|
67591
67669
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
67592
67670
|
WebhookDataRefundUpdated$outboundSchema,
|
|
67671
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
67593
67672
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
67673
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
67594
67674
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
67595
67675
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
67596
67676
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -67601,7 +67681,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67601
67681
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
67602
67682
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
67603
67683
|
WebhookDataRefundCreated$outboundSchema,
|
|
67604
|
-
|
|
67684
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
67605
67685
|
WebhookDataTicketUpdated$outboundSchema,
|
|
67606
67686
|
WebhookDataTransferCreated$outboundSchema,
|
|
67607
67687
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -67611,7 +67691,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67611
67691
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
67612
67692
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
67613
67693
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
67614
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
67615
67694
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
67616
67695
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
67617
67696
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -67708,7 +67787,6 @@ var init_components = __esm(() => {
|
|
|
67708
67787
|
init_assignproductimagevalidationerror();
|
|
67709
67788
|
init_asynccreatedrefund();
|
|
67710
67789
|
init_asynctransfer();
|
|
67711
|
-
init_authorizeduser();
|
|
67712
67790
|
init_authtoken();
|
|
67713
67791
|
init_authtokenrequest();
|
|
67714
67792
|
init_bankaccount();
|
|
@@ -67786,9 +67864,6 @@ var init_components = __esm(() => {
|
|
|
67786
67864
|
init_createaccount();
|
|
67787
67865
|
init_createaccountsettings();
|
|
67788
67866
|
init_createapplepaysession();
|
|
67789
|
-
init_createauthorizeduser();
|
|
67790
|
-
init_createauthorizedusererror();
|
|
67791
|
-
init_createauthorizeduserupdate();
|
|
67792
67867
|
init_createbusinesserror();
|
|
67793
67868
|
init_createbusinessprofile();
|
|
67794
67869
|
init_createdtransfer();
|
|
@@ -68125,6 +68200,7 @@ var init_components = __esm(() => {
|
|
|
68125
68200
|
init_webhookdataaccountcreated();
|
|
68126
68201
|
init_webhookdataaccountdisconnected();
|
|
68127
68202
|
init_webhookdataaccountupdated();
|
|
68203
|
+
init_webhookdataauthorizationexpiring();
|
|
68128
68204
|
init_webhookdatabalanceupdated();
|
|
68129
68205
|
init_webhookdatabankaccountcreated();
|
|
68130
68206
|
init_webhookdatabankaccountdeleted();
|
|
@@ -69708,10 +69784,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69708
69784
|
init_components();
|
|
69709
69785
|
init_mooverror();
|
|
69710
69786
|
RequestCardError = class RequestCardError extends MoovError {
|
|
69711
|
-
|
|
69712
|
-
|
|
69713
|
-
|
|
69714
|
-
|
|
69787
|
+
authorizedUserAccountID;
|
|
69788
|
+
nickname;
|
|
69789
|
+
metadata;
|
|
69790
|
+
billingAddress;
|
|
69715
69791
|
expiration;
|
|
69716
69792
|
controls;
|
|
69717
69793
|
data$;
|
|
@@ -69719,14 +69795,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
69719
69795
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
69720
69796
|
super(message, httpMeta);
|
|
69721
69797
|
this.data$ = err;
|
|
69722
|
-
if (err.
|
|
69723
|
-
this.
|
|
69724
|
-
|
|
69725
|
-
|
|
69726
|
-
|
|
69727
|
-
|
|
69728
|
-
|
|
69729
|
-
|
|
69798
|
+
if (err.authorizedUserAccountID != null) {
|
|
69799
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
69800
|
+
}
|
|
69801
|
+
if (err.nickname != null)
|
|
69802
|
+
this.nickname = err.nickname;
|
|
69803
|
+
if (err.metadata != null)
|
|
69804
|
+
this.metadata = err.metadata;
|
|
69805
|
+
if (err.billingAddress != null)
|
|
69806
|
+
this.billingAddress = err.billingAddress;
|
|
69730
69807
|
if (err.expiration != null)
|
|
69731
69808
|
this.expiration = err.expiration;
|
|
69732
69809
|
if (err.controls != null)
|
|
@@ -69735,10 +69812,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69735
69812
|
}
|
|
69736
69813
|
};
|
|
69737
69814
|
RequestCardError$inboundSchema = objectType({
|
|
69738
|
-
|
|
69739
|
-
|
|
69740
|
-
|
|
69741
|
-
|
|
69815
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69816
|
+
nickname: stringType().optional(),
|
|
69817
|
+
metadata: stringType().optional(),
|
|
69818
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
69742
69819
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
69743
69820
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
69744
69821
|
request$: instanceOfType(Request),
|
|
@@ -69752,10 +69829,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69752
69829
|
});
|
|
69753
69830
|
});
|
|
69754
69831
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
69755
|
-
|
|
69756
|
-
|
|
69757
|
-
|
|
69758
|
-
|
|
69832
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69833
|
+
nickname: stringType().optional(),
|
|
69834
|
+
metadata: stringType().optional(),
|
|
69835
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
69759
69836
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
69760
69837
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
69761
69838
|
}));
|
|
@@ -70326,8 +70403,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70326
70403
|
init_mooverror();
|
|
70327
70404
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
70328
70405
|
state;
|
|
70329
|
-
|
|
70330
|
-
|
|
70406
|
+
nickname;
|
|
70407
|
+
metadata;
|
|
70408
|
+
billingAddress;
|
|
70331
70409
|
data$;
|
|
70332
70410
|
constructor(err, httpMeta) {
|
|
70333
70411
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -70335,17 +70413,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70335
70413
|
this.data$ = err;
|
|
70336
70414
|
if (err.state != null)
|
|
70337
70415
|
this.state = err.state;
|
|
70338
|
-
if (err.
|
|
70339
|
-
this.
|
|
70340
|
-
if (err.
|
|
70341
|
-
this.
|
|
70416
|
+
if (err.nickname != null)
|
|
70417
|
+
this.nickname = err.nickname;
|
|
70418
|
+
if (err.metadata != null)
|
|
70419
|
+
this.metadata = err.metadata;
|
|
70420
|
+
if (err.billingAddress != null)
|
|
70421
|
+
this.billingAddress = err.billingAddress;
|
|
70342
70422
|
this.name = "UpdateIssuedCardError";
|
|
70343
70423
|
}
|
|
70344
70424
|
};
|
|
70345
70425
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
70346
70426
|
state: stringType().optional(),
|
|
70347
|
-
|
|
70348
|
-
|
|
70427
|
+
nickname: stringType().optional(),
|
|
70428
|
+
metadata: stringType().optional(),
|
|
70429
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70349
70430
|
request$: instanceOfType(Request),
|
|
70350
70431
|
response$: instanceOfType(Response),
|
|
70351
70432
|
body$: stringType()
|
|
@@ -70358,8 +70439,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70358
70439
|
});
|
|
70359
70440
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70360
70441
|
state: stringType().optional(),
|
|
70361
|
-
|
|
70362
|
-
|
|
70442
|
+
nickname: stringType().optional(),
|
|
70443
|
+
metadata: stringType().optional(),
|
|
70444
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
70363
70445
|
}));
|
|
70364
70446
|
});
|
|
70365
70447
|
|
|
@@ -74107,6 +74189,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
74107
74189
|
});
|
|
74108
74190
|
});
|
|
74109
74191
|
|
|
74192
|
+
// src/models/operations/listcancellations.ts
|
|
74193
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
74194
|
+
var init_listcancellations = __esm(() => {
|
|
74195
|
+
init_esm();
|
|
74196
|
+
init_primitives();
|
|
74197
|
+
init_components();
|
|
74198
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
74199
|
+
accountID: stringType(),
|
|
74200
|
+
transferID: stringType()
|
|
74201
|
+
});
|
|
74202
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
74203
|
+
accountID: stringType(),
|
|
74204
|
+
transferID: stringType()
|
|
74205
|
+
});
|
|
74206
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
74207
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
74208
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
74209
|
+
}).transform((v2) => {
|
|
74210
|
+
return remap(v2, {
|
|
74211
|
+
Headers: "headers",
|
|
74212
|
+
Result: "result"
|
|
74213
|
+
});
|
|
74214
|
+
});
|
|
74215
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
74216
|
+
headers: recordType(arrayType(stringType())),
|
|
74217
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
74218
|
+
}).transform((v2) => {
|
|
74219
|
+
return remap(v2, {
|
|
74220
|
+
headers: "Headers",
|
|
74221
|
+
result: "Result"
|
|
74222
|
+
});
|
|
74223
|
+
});
|
|
74224
|
+
});
|
|
74225
|
+
|
|
74110
74226
|
// src/models/operations/listcapabilities.ts
|
|
74111
74227
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
74112
74228
|
var init_listcapabilities = __esm(() => {
|
|
@@ -76885,6 +77001,7 @@ var init_operations = __esm(() => {
|
|
|
76885
77001
|
init_listaccountterminalapplications();
|
|
76886
77002
|
init_listadjustments();
|
|
76887
77003
|
init_listbankaccounts();
|
|
77004
|
+
init_listcancellations();
|
|
76888
77005
|
init_listcapabilities();
|
|
76889
77006
|
init_listcards();
|
|
76890
77007
|
init_listconnectedaccountsforaccount();
|
|
@@ -76965,16 +77082,19 @@ var init_async = __esm(() => {
|
|
|
76965
77082
|
[Symbol.toStringTag] = "APIPromise";
|
|
76966
77083
|
constructor(p) {
|
|
76967
77084
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
76968
|
-
this.#unwrapped = p instanceof Promise ?
|
|
77085
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
77086
|
+
}
|
|
77087
|
+
#getUnwrapped() {
|
|
77088
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
76969
77089
|
}
|
|
76970
77090
|
then(onfulfilled, onrejected) {
|
|
76971
77091
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
76972
77092
|
}
|
|
76973
77093
|
catch(onrejected) {
|
|
76974
|
-
return this.#
|
|
77094
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
76975
77095
|
}
|
|
76976
77096
|
finally(onfinally) {
|
|
76977
|
-
return this.#
|
|
77097
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
76978
77098
|
}
|
|
76979
77099
|
$inspect() {
|
|
76980
77100
|
return this.#promise;
|
|
@@ -77297,21 +77417,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
77297
77417
|
};
|
|
77298
77418
|
tool$accountsCreate = {
|
|
77299
77419
|
name: "accounts-create",
|
|
77300
|
-
description: `You can create
|
|
77301
|
-
information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
77420
|
+
description: `You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
77302
77421
|
|
|
77303
|
-
If you
|
|
77304
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
77305
|
-
|
|
77306
|
-
|
|
77422
|
+
The \`transfers\` capability is automatically requested for every account. If you request any capability beyond \`transfers\` (for example, \`send-funds.ach\`, \`collect-funds.card-payments\`), you'll need to:
|
|
77423
|
+
+ Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the \`termsOfService\` field.
|
|
77424
|
+
+ Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
|
|
77425
|
+
|
|
77426
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
77307
77427
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
77308
77428
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
77309
77429
|
|
|
77310
|
-
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/).
|
|
77311
|
-
Note that the \`mode\` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
77430
|
+
Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the \`mode\` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
77312
77431
|
|
|
77313
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77314
|
-
to specify the \`/accounts.write\` scope.`,
|
|
77432
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the \`/accounts.write\` scope.`,
|
|
77315
77433
|
args: args3,
|
|
77316
77434
|
tool: async (client, args4, ctx) => {
|
|
77317
77435
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -81350,7 +81468,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
81350
81468
|
};
|
|
81351
81469
|
tool$capabilitiesDisable = {
|
|
81352
81470
|
name: "capabilities-disable",
|
|
81353
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
81471
|
+
description: `Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81354
81472
|
|
|
81355
81473
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81356
81474
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81464,7 +81582,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
81464
81582
|
};
|
|
81465
81583
|
tool$capabilitiesGet = {
|
|
81466
81584
|
name: "capabilities-get",
|
|
81467
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
81585
|
+
description: `Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81468
81586
|
|
|
81469
81587
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81470
81588
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81577,7 +81695,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
81577
81695
|
name: "capabilities-list",
|
|
81578
81696
|
description: `Retrieve all the capabilities an account has requested.
|
|
81579
81697
|
|
|
81580
|
-
Read our [capabilities
|
|
81698
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81581
81699
|
|
|
81582
81700
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81583
81701
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81690,7 +81808,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
81690
81808
|
};
|
|
81691
81809
|
tool$capabilitiesRequest = {
|
|
81692
81810
|
name: "capabilities-request",
|
|
81693
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
81811
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81694
81812
|
|
|
81695
81813
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81696
81814
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81730,7 +81848,7 @@ async function $do42(client, request, options) {
|
|
|
81730
81848
|
charEncoding: "percent"
|
|
81731
81849
|
})
|
|
81732
81850
|
};
|
|
81733
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81851
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
81734
81852
|
const headers = new Headers(compactMap({
|
|
81735
81853
|
Accept: "application/json"
|
|
81736
81854
|
}));
|
|
@@ -81845,7 +81963,7 @@ async function $do43(client, request, options) {
|
|
|
81845
81963
|
charEncoding: "percent"
|
|
81846
81964
|
})
|
|
81847
81965
|
};
|
|
81848
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81966
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
81849
81967
|
const headers = new Headers(compactMap({
|
|
81850
81968
|
Accept: "application/json"
|
|
81851
81969
|
}));
|
|
@@ -81958,7 +82076,7 @@ async function $do44(client, request, options) {
|
|
|
81958
82076
|
charEncoding: "percent"
|
|
81959
82077
|
})
|
|
81960
82078
|
};
|
|
81961
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82079
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81962
82080
|
const query = encodeFormQuery({
|
|
81963
82081
|
count: payload.count,
|
|
81964
82082
|
skip: payload.skip,
|
|
@@ -82075,7 +82193,7 @@ async function $do45(client, request, options) {
|
|
|
82075
82193
|
charEncoding: "percent"
|
|
82076
82194
|
})
|
|
82077
82195
|
};
|
|
82078
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82196
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
82079
82197
|
const headers = new Headers(compactMap({
|
|
82080
82198
|
"Content-Type": "application/json",
|
|
82081
82199
|
Accept: "application/json"
|
|
@@ -82192,7 +82310,7 @@ async function $do46(client, request, options) {
|
|
|
82192
82310
|
charEncoding: "percent"
|
|
82193
82311
|
})
|
|
82194
82312
|
};
|
|
82195
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82313
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
82196
82314
|
const headers = new Headers(compactMap({
|
|
82197
82315
|
"Content-Type": "application/json",
|
|
82198
82316
|
Accept: "application/json"
|
|
@@ -94216,11 +94334,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94216
94334
|
};
|
|
94217
94335
|
});
|
|
94218
94336
|
|
|
94219
|
-
// src/funcs/
|
|
94220
|
-
function
|
|
94337
|
+
// src/funcs/transfersListCancellations.ts
|
|
94338
|
+
function transfersListCancellations(client, request, options) {
|
|
94221
94339
|
return new APIPromise($do149(client, request, options));
|
|
94222
94340
|
}
|
|
94223
94341
|
async function $do149(client, request, options) {
|
|
94342
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94343
|
+
if (!parsed.ok) {
|
|
94344
|
+
return [parsed, { status: "invalid" }];
|
|
94345
|
+
}
|
|
94346
|
+
const payload = parsed.value;
|
|
94347
|
+
const body = null;
|
|
94348
|
+
const pathParams = {
|
|
94349
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
94350
|
+
explode: false,
|
|
94351
|
+
charEncoding: "percent"
|
|
94352
|
+
}),
|
|
94353
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
94354
|
+
explode: false,
|
|
94355
|
+
charEncoding: "percent"
|
|
94356
|
+
})
|
|
94357
|
+
};
|
|
94358
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
94359
|
+
const headers = new Headers(compactMap({
|
|
94360
|
+
Accept: "application/json"
|
|
94361
|
+
}));
|
|
94362
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
94363
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
94364
|
+
const context = {
|
|
94365
|
+
options: client._options,
|
|
94366
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
94367
|
+
operationID: "listCancellations",
|
|
94368
|
+
oAuth2Scopes: null,
|
|
94369
|
+
resolvedSecurity: requestSecurity,
|
|
94370
|
+
securitySource: client._options.security,
|
|
94371
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
94372
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
94373
|
+
};
|
|
94374
|
+
const requestRes = client._createRequest(context, {
|
|
94375
|
+
security: requestSecurity,
|
|
94376
|
+
method: "GET",
|
|
94377
|
+
baseURL: options?.serverURL,
|
|
94378
|
+
path,
|
|
94379
|
+
headers,
|
|
94380
|
+
body,
|
|
94381
|
+
userAgent: client._options.userAgent,
|
|
94382
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
94383
|
+
}, options);
|
|
94384
|
+
if (!requestRes.ok) {
|
|
94385
|
+
return [requestRes, { status: "invalid" }];
|
|
94386
|
+
}
|
|
94387
|
+
const req = requestRes.value;
|
|
94388
|
+
const doResult = await client._do(req, {
|
|
94389
|
+
context,
|
|
94390
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
94391
|
+
retryConfig: context.retryConfig,
|
|
94392
|
+
retryCodes: context.retryCodes
|
|
94393
|
+
});
|
|
94394
|
+
if (!doResult.ok) {
|
|
94395
|
+
return [doResult, { status: "request-error", request: req }];
|
|
94396
|
+
}
|
|
94397
|
+
const response = doResult.value;
|
|
94398
|
+
const responseFields = {
|
|
94399
|
+
HttpMeta: { Response: response, Request: req }
|
|
94400
|
+
};
|
|
94401
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
94402
|
+
hdrs: true,
|
|
94403
|
+
key: "Result"
|
|
94404
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
94405
|
+
if (!result.ok) {
|
|
94406
|
+
return [result, { status: "complete", request: req, response }];
|
|
94407
|
+
}
|
|
94408
|
+
return [result, { status: "complete", request: req, response }];
|
|
94409
|
+
}
|
|
94410
|
+
var init_transfersListCancellations = __esm(() => {
|
|
94411
|
+
init_encodings();
|
|
94412
|
+
init_http();
|
|
94413
|
+
init_matchers();
|
|
94414
|
+
init_primitives();
|
|
94415
|
+
init_schemas4();
|
|
94416
|
+
init_security();
|
|
94417
|
+
init_url();
|
|
94418
|
+
init_operations();
|
|
94419
|
+
init_async();
|
|
94420
|
+
});
|
|
94421
|
+
|
|
94422
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
94423
|
+
var args144, tool$transfersListCancellations;
|
|
94424
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
94425
|
+
init_transfersListCancellations();
|
|
94426
|
+
init_operations();
|
|
94427
|
+
init_tools();
|
|
94428
|
+
args144 = {
|
|
94429
|
+
request: ListCancellationsRequest$inboundSchema
|
|
94430
|
+
};
|
|
94431
|
+
tool$transfersListCancellations = {
|
|
94432
|
+
name: "transfers-list-cancellations",
|
|
94433
|
+
description: ` Get a list of cancellations for a transfer.
|
|
94434
|
+
|
|
94435
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
94436
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94437
|
+
args: args144,
|
|
94438
|
+
tool: async (client, args145, ctx) => {
|
|
94439
|
+
const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94440
|
+
if (!result.ok) {
|
|
94441
|
+
return {
|
|
94442
|
+
content: [{ type: "text", text: result.error.message }],
|
|
94443
|
+
isError: true
|
|
94444
|
+
};
|
|
94445
|
+
}
|
|
94446
|
+
const value = result.value.result;
|
|
94447
|
+
return formatResult(value, apiCall);
|
|
94448
|
+
}
|
|
94449
|
+
};
|
|
94450
|
+
});
|
|
94451
|
+
|
|
94452
|
+
// src/funcs/transfersListRefunds.ts
|
|
94453
|
+
function transfersListRefunds(client, request, options) {
|
|
94454
|
+
return new APIPromise($do150(client, request, options));
|
|
94455
|
+
}
|
|
94456
|
+
async function $do150(client, request, options) {
|
|
94224
94457
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94225
94458
|
if (!parsed.ok) {
|
|
94226
94459
|
return [parsed, { status: "invalid" }];
|
|
@@ -94302,12 +94535,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
94302
94535
|
});
|
|
94303
94536
|
|
|
94304
94537
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
94305
|
-
var
|
|
94538
|
+
var args145, tool$transfersListRefunds;
|
|
94306
94539
|
var init_transfersListRefunds2 = __esm(() => {
|
|
94307
94540
|
init_transfersListRefunds();
|
|
94308
94541
|
init_operations();
|
|
94309
94542
|
init_tools();
|
|
94310
|
-
|
|
94543
|
+
args145 = {
|
|
94311
94544
|
request: ListRefundsRequest$inboundSchema
|
|
94312
94545
|
};
|
|
94313
94546
|
tool$transfersListRefunds = {
|
|
@@ -94316,9 +94549,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
94316
94549
|
|
|
94317
94550
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94318
94551
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94319
|
-
args:
|
|
94320
|
-
tool: async (client,
|
|
94321
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
94552
|
+
args: args145,
|
|
94553
|
+
tool: async (client, args146, ctx) => {
|
|
94554
|
+
const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94322
94555
|
if (!result.ok) {
|
|
94323
94556
|
return {
|
|
94324
94557
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94333,9 +94566,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94333
94566
|
|
|
94334
94567
|
// src/funcs/transfersUpdate.ts
|
|
94335
94568
|
function transfersUpdate(client, request, options) {
|
|
94336
|
-
return new APIPromise($
|
|
94569
|
+
return new APIPromise($do151(client, request, options));
|
|
94337
94570
|
}
|
|
94338
|
-
async function $
|
|
94571
|
+
async function $do151(client, request, options) {
|
|
94339
94572
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94340
94573
|
if (!parsed.ok) {
|
|
94341
94574
|
return [parsed, { status: "invalid" }];
|
|
@@ -94421,12 +94654,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
94421
94654
|
});
|
|
94422
94655
|
|
|
94423
94656
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
94424
|
-
var
|
|
94657
|
+
var args146, tool$transfersUpdate;
|
|
94425
94658
|
var init_transfersUpdate2 = __esm(() => {
|
|
94426
94659
|
init_transfersUpdate();
|
|
94427
94660
|
init_operations();
|
|
94428
94661
|
init_tools();
|
|
94429
|
-
|
|
94662
|
+
args146 = {
|
|
94430
94663
|
request: UpdateTransferRequest$inboundSchema
|
|
94431
94664
|
};
|
|
94432
94665
|
tool$transfersUpdate = {
|
|
@@ -94437,9 +94670,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
94437
94670
|
|
|
94438
94671
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94439
94672
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
94440
|
-
args:
|
|
94441
|
-
tool: async (client,
|
|
94442
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
94673
|
+
args: args146,
|
|
94674
|
+
tool: async (client, args147, ctx) => {
|
|
94675
|
+
const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94443
94676
|
if (!result.ok) {
|
|
94444
94677
|
return {
|
|
94445
94678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94454,9 +94687,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
94454
94687
|
|
|
94455
94688
|
// src/funcs/underwritingGet.ts
|
|
94456
94689
|
function underwritingGet(client, request, options) {
|
|
94457
|
-
return new APIPromise($
|
|
94690
|
+
return new APIPromise($do152(client, request, options));
|
|
94458
94691
|
}
|
|
94459
|
-
async function $
|
|
94692
|
+
async function $do152(client, request, options) {
|
|
94460
94693
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94461
94694
|
if (!parsed.ok) {
|
|
94462
94695
|
return [parsed, { status: "invalid" }];
|
|
@@ -94534,12 +94767,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
94534
94767
|
});
|
|
94535
94768
|
|
|
94536
94769
|
// src/mcp-server/tools/underwritingGet.ts
|
|
94537
|
-
var
|
|
94770
|
+
var args147, tool$underwritingGet;
|
|
94538
94771
|
var init_underwritingGet2 = __esm(() => {
|
|
94539
94772
|
init_underwritingGet();
|
|
94540
94773
|
init_operations();
|
|
94541
94774
|
init_tools();
|
|
94542
|
-
|
|
94775
|
+
args147 = {
|
|
94543
94776
|
request: GetUnderwritingRequest$inboundSchema
|
|
94544
94777
|
};
|
|
94545
94778
|
tool$underwritingGet = {
|
|
@@ -94550,9 +94783,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94550
94783
|
|
|
94551
94784
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94552
94785
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
94553
|
-
args:
|
|
94554
|
-
tool: async (client,
|
|
94555
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
94786
|
+
args: args147,
|
|
94787
|
+
tool: async (client, args148, ctx) => {
|
|
94788
|
+
const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94556
94789
|
if (!result.ok) {
|
|
94557
94790
|
return {
|
|
94558
94791
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94567,9 +94800,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
94567
94800
|
|
|
94568
94801
|
// src/funcs/underwritingUpsert.ts
|
|
94569
94802
|
function underwritingUpsert(client, request, options) {
|
|
94570
|
-
return new APIPromise($
|
|
94803
|
+
return new APIPromise($do153(client, request, options));
|
|
94571
94804
|
}
|
|
94572
|
-
async function $
|
|
94805
|
+
async function $do153(client, request, options) {
|
|
94573
94806
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94574
94807
|
if (!parsed.ok) {
|
|
94575
94808
|
return [parsed, { status: "invalid" }];
|
|
@@ -94653,12 +94886,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
94653
94886
|
});
|
|
94654
94887
|
|
|
94655
94888
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
94656
|
-
var
|
|
94889
|
+
var args148, tool$underwritingUpsert;
|
|
94657
94890
|
var init_underwritingUpsert2 = __esm(() => {
|
|
94658
94891
|
init_underwritingUpsert();
|
|
94659
94892
|
init_operations();
|
|
94660
94893
|
init_tools();
|
|
94661
|
-
|
|
94894
|
+
args148 = {
|
|
94662
94895
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
94663
94896
|
};
|
|
94664
94897
|
tool$underwritingUpsert = {
|
|
@@ -94669,9 +94902,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94669
94902
|
|
|
94670
94903
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94671
94904
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
94672
|
-
args:
|
|
94673
|
-
tool: async (client,
|
|
94674
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
94905
|
+
args: args148,
|
|
94906
|
+
tool: async (client, args149, ctx) => {
|
|
94907
|
+
const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94675
94908
|
if (!result.ok) {
|
|
94676
94909
|
return {
|
|
94677
94910
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94686,9 +94919,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
94686
94919
|
|
|
94687
94920
|
// src/funcs/walletsCreate.ts
|
|
94688
94921
|
function walletsCreate(client, request, options) {
|
|
94689
|
-
return new APIPromise($
|
|
94922
|
+
return new APIPromise($do154(client, request, options));
|
|
94690
94923
|
}
|
|
94691
|
-
async function $
|
|
94924
|
+
async function $do154(client, request, options) {
|
|
94692
94925
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94693
94926
|
if (!parsed.ok) {
|
|
94694
94927
|
return [parsed, { status: "invalid" }];
|
|
@@ -94770,12 +95003,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
94770
95003
|
});
|
|
94771
95004
|
|
|
94772
95005
|
// src/mcp-server/tools/walletsCreate.ts
|
|
94773
|
-
var
|
|
95006
|
+
var args149, tool$walletsCreate;
|
|
94774
95007
|
var init_walletsCreate2 = __esm(() => {
|
|
94775
95008
|
init_walletsCreate();
|
|
94776
95009
|
init_operations();
|
|
94777
95010
|
init_tools();
|
|
94778
|
-
|
|
95011
|
+
args149 = {
|
|
94779
95012
|
request: CreateWalletRequest$inboundSchema
|
|
94780
95013
|
};
|
|
94781
95014
|
tool$walletsCreate = {
|
|
@@ -94786,9 +95019,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94786
95019
|
|
|
94787
95020
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94788
95021
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
94789
|
-
args:
|
|
94790
|
-
tool: async (client,
|
|
94791
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
95022
|
+
args: args149,
|
|
95023
|
+
tool: async (client, args150, ctx) => {
|
|
95024
|
+
const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94792
95025
|
if (!result.ok) {
|
|
94793
95026
|
return {
|
|
94794
95027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94803,9 +95036,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
94803
95036
|
|
|
94804
95037
|
// src/funcs/walletsGet.ts
|
|
94805
95038
|
function walletsGet(client, request, options) {
|
|
94806
|
-
return new APIPromise($
|
|
95039
|
+
return new APIPromise($do155(client, request, options));
|
|
94807
95040
|
}
|
|
94808
|
-
async function $
|
|
95041
|
+
async function $do155(client, request, options) {
|
|
94809
95042
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94810
95043
|
if (!parsed.ok) {
|
|
94811
95044
|
return [parsed, { status: "invalid" }];
|
|
@@ -94887,12 +95120,12 @@ var init_walletsGet = __esm(() => {
|
|
|
94887
95120
|
});
|
|
94888
95121
|
|
|
94889
95122
|
// src/mcp-server/tools/walletsGet.ts
|
|
94890
|
-
var
|
|
95123
|
+
var args150, tool$walletsGet;
|
|
94891
95124
|
var init_walletsGet2 = __esm(() => {
|
|
94892
95125
|
init_walletsGet();
|
|
94893
95126
|
init_operations();
|
|
94894
95127
|
init_tools();
|
|
94895
|
-
|
|
95128
|
+
args150 = {
|
|
94896
95129
|
request: GetWalletRequest$inboundSchema
|
|
94897
95130
|
};
|
|
94898
95131
|
tool$walletsGet = {
|
|
@@ -94903,9 +95136,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94903
95136
|
|
|
94904
95137
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94905
95138
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94906
|
-
args:
|
|
94907
|
-
tool: async (client,
|
|
94908
|
-
const [result, apiCall] = await walletsGet(client,
|
|
95139
|
+
args: args150,
|
|
95140
|
+
tool: async (client, args151, ctx) => {
|
|
95141
|
+
const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94909
95142
|
if (!result.ok) {
|
|
94910
95143
|
return {
|
|
94911
95144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94920,9 +95153,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94920
95153
|
|
|
94921
95154
|
// src/funcs/walletsList.ts
|
|
94922
95155
|
function walletsList(client, request, options) {
|
|
94923
|
-
return new APIPromise($
|
|
95156
|
+
return new APIPromise($do156(client, request, options));
|
|
94924
95157
|
}
|
|
94925
|
-
async function $
|
|
95158
|
+
async function $do156(client, request, options) {
|
|
94926
95159
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94927
95160
|
if (!parsed.ok) {
|
|
94928
95161
|
return [parsed, { status: "invalid" }];
|
|
@@ -95010,12 +95243,12 @@ var init_walletsList = __esm(() => {
|
|
|
95010
95243
|
});
|
|
95011
95244
|
|
|
95012
95245
|
// src/mcp-server/tools/walletsList.ts
|
|
95013
|
-
var
|
|
95246
|
+
var args151, tool$walletsList;
|
|
95014
95247
|
var init_walletsList2 = __esm(() => {
|
|
95015
95248
|
init_walletsList();
|
|
95016
95249
|
init_operations();
|
|
95017
95250
|
init_tools();
|
|
95018
|
-
|
|
95251
|
+
args151 = {
|
|
95019
95252
|
request: ListWalletsRequest$inboundSchema
|
|
95020
95253
|
};
|
|
95021
95254
|
tool$walletsList = {
|
|
@@ -95026,9 +95259,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
95026
95259
|
|
|
95027
95260
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95028
95261
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95029
|
-
args:
|
|
95030
|
-
tool: async (client,
|
|
95031
|
-
const [result, apiCall] = await walletsList(client,
|
|
95262
|
+
args: args151,
|
|
95263
|
+
tool: async (client, args152, ctx) => {
|
|
95264
|
+
const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95032
95265
|
if (!result.ok) {
|
|
95033
95266
|
return {
|
|
95034
95267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95043,9 +95276,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95043
95276
|
|
|
95044
95277
|
// src/funcs/walletsUpdate.ts
|
|
95045
95278
|
function walletsUpdate(client, request, options) {
|
|
95046
|
-
return new APIPromise($
|
|
95279
|
+
return new APIPromise($do157(client, request, options));
|
|
95047
95280
|
}
|
|
95048
|
-
async function $
|
|
95281
|
+
async function $do157(client, request, options) {
|
|
95049
95282
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95050
95283
|
if (!parsed.ok) {
|
|
95051
95284
|
return [parsed, { status: "invalid" }];
|
|
@@ -95131,12 +95364,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
95131
95364
|
});
|
|
95132
95365
|
|
|
95133
95366
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
95134
|
-
var
|
|
95367
|
+
var args152, tool$walletsUpdate;
|
|
95135
95368
|
var init_walletsUpdate2 = __esm(() => {
|
|
95136
95369
|
init_walletsUpdate();
|
|
95137
95370
|
init_operations();
|
|
95138
95371
|
init_tools();
|
|
95139
|
-
|
|
95372
|
+
args152 = {
|
|
95140
95373
|
request: UpdateWalletRequest$inboundSchema
|
|
95141
95374
|
};
|
|
95142
95375
|
tool$walletsUpdate = {
|
|
@@ -95147,9 +95380,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
95147
95380
|
|
|
95148
95381
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95149
95382
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
95150
|
-
args:
|
|
95151
|
-
tool: async (client,
|
|
95152
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
95383
|
+
args: args152,
|
|
95384
|
+
tool: async (client, args153, ctx) => {
|
|
95385
|
+
const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95153
95386
|
if (!result.ok) {
|
|
95154
95387
|
return {
|
|
95155
95388
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95164,9 +95397,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
95164
95397
|
|
|
95165
95398
|
// src/funcs/walletTransactionsGet.ts
|
|
95166
95399
|
function walletTransactionsGet(client, request, options) {
|
|
95167
|
-
return new APIPromise($
|
|
95400
|
+
return new APIPromise($do158(client, request, options));
|
|
95168
95401
|
}
|
|
95169
|
-
async function $
|
|
95402
|
+
async function $do158(client, request, options) {
|
|
95170
95403
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95171
95404
|
if (!parsed.ok) {
|
|
95172
95405
|
return [parsed, { status: "invalid" }];
|
|
@@ -95252,12 +95485,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
95252
95485
|
});
|
|
95253
95486
|
|
|
95254
95487
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
95255
|
-
var
|
|
95488
|
+
var args153, tool$walletTransactionsGet;
|
|
95256
95489
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
95257
95490
|
init_walletTransactionsGet();
|
|
95258
95491
|
init_operations();
|
|
95259
95492
|
init_tools();
|
|
95260
|
-
|
|
95493
|
+
args153 = {
|
|
95261
95494
|
request: GetWalletTransactionRequest$inboundSchema
|
|
95262
95495
|
};
|
|
95263
95496
|
tool$walletTransactionsGet = {
|
|
@@ -95268,9 +95501,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95268
95501
|
|
|
95269
95502
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95270
95503
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95271
|
-
args:
|
|
95272
|
-
tool: async (client,
|
|
95273
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
95504
|
+
args: args153,
|
|
95505
|
+
tool: async (client, args154, ctx) => {
|
|
95506
|
+
const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95274
95507
|
if (!result.ok) {
|
|
95275
95508
|
return {
|
|
95276
95509
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95285,9 +95518,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95285
95518
|
|
|
95286
95519
|
// src/funcs/walletTransactionsList.ts
|
|
95287
95520
|
function walletTransactionsList(client, request, options) {
|
|
95288
|
-
return new APIPromise($
|
|
95521
|
+
return new APIPromise($do159(client, request, options));
|
|
95289
95522
|
}
|
|
95290
|
-
async function $
|
|
95523
|
+
async function $do159(client, request, options) {
|
|
95291
95524
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95292
95525
|
if (!parsed.ok) {
|
|
95293
95526
|
return [parsed, { status: "invalid" }];
|
|
@@ -95387,12 +95620,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
95387
95620
|
});
|
|
95388
95621
|
|
|
95389
95622
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
95390
|
-
var
|
|
95623
|
+
var args154, tool$walletTransactionsList;
|
|
95391
95624
|
var init_walletTransactionsList2 = __esm(() => {
|
|
95392
95625
|
init_walletTransactionsList();
|
|
95393
95626
|
init_operations();
|
|
95394
95627
|
init_tools();
|
|
95395
|
-
|
|
95628
|
+
args154 = {
|
|
95396
95629
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
95397
95630
|
};
|
|
95398
95631
|
tool$walletTransactionsList = {
|
|
@@ -95403,9 +95636,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95403
95636
|
|
|
95404
95637
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95405
95638
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95406
|
-
args:
|
|
95407
|
-
tool: async (client,
|
|
95408
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
95639
|
+
args: args154,
|
|
95640
|
+
tool: async (client, args155, ctx) => {
|
|
95641
|
+
const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95409
95642
|
if (!result.ok) {
|
|
95410
95643
|
return {
|
|
95411
95644
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95420,9 +95653,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95420
95653
|
|
|
95421
95654
|
// src/funcs/webhooksCreate.ts
|
|
95422
95655
|
function webhooksCreate(client, request, options) {
|
|
95423
|
-
return new APIPromise($
|
|
95656
|
+
return new APIPromise($do160(client, request, options));
|
|
95424
95657
|
}
|
|
95425
|
-
async function $
|
|
95658
|
+
async function $do160(client, request, options) {
|
|
95426
95659
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
95427
95660
|
if (!parsed.ok) {
|
|
95428
95661
|
return [parsed, { status: "invalid" }];
|
|
@@ -95499,20 +95732,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
95499
95732
|
});
|
|
95500
95733
|
|
|
95501
95734
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
95502
|
-
var
|
|
95735
|
+
var args155, tool$webhooksCreate;
|
|
95503
95736
|
var init_webhooksCreate2 = __esm(() => {
|
|
95504
95737
|
init_webhooksCreate();
|
|
95505
95738
|
init_components();
|
|
95506
95739
|
init_tools();
|
|
95507
|
-
|
|
95740
|
+
args155 = {
|
|
95508
95741
|
request: CreateWebhook$inboundSchema
|
|
95509
95742
|
};
|
|
95510
95743
|
tool$webhooksCreate = {
|
|
95511
95744
|
name: "webhooks-create",
|
|
95512
95745
|
description: `Create a new webhook for the account.`,
|
|
95513
|
-
args:
|
|
95514
|
-
tool: async (client,
|
|
95515
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
95746
|
+
args: args155,
|
|
95747
|
+
tool: async (client, args156, ctx) => {
|
|
95748
|
+
const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95516
95749
|
if (!result.ok) {
|
|
95517
95750
|
return {
|
|
95518
95751
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95527,9 +95760,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
95527
95760
|
|
|
95528
95761
|
// src/funcs/webhooksDisable.ts
|
|
95529
95762
|
function webhooksDisable(client, request, options) {
|
|
95530
|
-
return new APIPromise($
|
|
95763
|
+
return new APIPromise($do161(client, request, options));
|
|
95531
95764
|
}
|
|
95532
|
-
async function $
|
|
95765
|
+
async function $do161(client, request, options) {
|
|
95533
95766
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95534
95767
|
if (!parsed.ok) {
|
|
95535
95768
|
return [parsed, { status: "invalid" }];
|
|
@@ -95607,20 +95840,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
95607
95840
|
});
|
|
95608
95841
|
|
|
95609
95842
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
95610
|
-
var
|
|
95843
|
+
var args156, tool$webhooksDisable;
|
|
95611
95844
|
var init_webhooksDisable2 = __esm(() => {
|
|
95612
95845
|
init_webhooksDisable();
|
|
95613
95846
|
init_operations();
|
|
95614
95847
|
init_tools();
|
|
95615
|
-
|
|
95848
|
+
args156 = {
|
|
95616
95849
|
request: DisableWebhookRequest$inboundSchema
|
|
95617
95850
|
};
|
|
95618
95851
|
tool$webhooksDisable = {
|
|
95619
95852
|
name: "webhooks-disable",
|
|
95620
95853
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
95621
|
-
args:
|
|
95622
|
-
tool: async (client,
|
|
95623
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
95854
|
+
args: args156,
|
|
95855
|
+
tool: async (client, args157, ctx) => {
|
|
95856
|
+
const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95624
95857
|
if (!result.ok) {
|
|
95625
95858
|
return {
|
|
95626
95859
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95634,9 +95867,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
95634
95867
|
|
|
95635
95868
|
// src/funcs/webhooksGet.ts
|
|
95636
95869
|
function webhooksGet(client, request, options) {
|
|
95637
|
-
return new APIPromise($
|
|
95870
|
+
return new APIPromise($do162(client, request, options));
|
|
95638
95871
|
}
|
|
95639
|
-
async function $
|
|
95872
|
+
async function $do162(client, request, options) {
|
|
95640
95873
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95641
95874
|
if (!parsed.ok) {
|
|
95642
95875
|
return [parsed, { status: "invalid" }];
|
|
@@ -95714,20 +95947,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
95714
95947
|
});
|
|
95715
95948
|
|
|
95716
95949
|
// src/mcp-server/tools/webhooksGet.ts
|
|
95717
|
-
var
|
|
95950
|
+
var args157, tool$webhooksGet;
|
|
95718
95951
|
var init_webhooksGet2 = __esm(() => {
|
|
95719
95952
|
init_webhooksGet();
|
|
95720
95953
|
init_operations();
|
|
95721
95954
|
init_tools();
|
|
95722
|
-
|
|
95955
|
+
args157 = {
|
|
95723
95956
|
request: GetWebhookRequest$inboundSchema
|
|
95724
95957
|
};
|
|
95725
95958
|
tool$webhooksGet = {
|
|
95726
95959
|
name: "webhooks-get",
|
|
95727
95960
|
description: `Get details of a specific webhook.`,
|
|
95728
|
-
args:
|
|
95729
|
-
tool: async (client,
|
|
95730
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
95961
|
+
args: args157,
|
|
95962
|
+
tool: async (client, args158, ctx) => {
|
|
95963
|
+
const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95731
95964
|
if (!result.ok) {
|
|
95732
95965
|
return {
|
|
95733
95966
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95742,9 +95975,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
95742
95975
|
|
|
95743
95976
|
// src/funcs/webhooksGetSecret.ts
|
|
95744
95977
|
function webhooksGetSecret(client, request, options) {
|
|
95745
|
-
return new APIPromise($
|
|
95978
|
+
return new APIPromise($do163(client, request, options));
|
|
95746
95979
|
}
|
|
95747
|
-
async function $
|
|
95980
|
+
async function $do163(client, request, options) {
|
|
95748
95981
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95749
95982
|
if (!parsed.ok) {
|
|
95750
95983
|
return [parsed, { status: "invalid" }];
|
|
@@ -95822,20 +96055,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
95822
96055
|
});
|
|
95823
96056
|
|
|
95824
96057
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
95825
|
-
var
|
|
96058
|
+
var args158, tool$webhooksGetSecret;
|
|
95826
96059
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
95827
96060
|
init_webhooksGetSecret();
|
|
95828
96061
|
init_operations();
|
|
95829
96062
|
init_tools();
|
|
95830
|
-
|
|
96063
|
+
args158 = {
|
|
95831
96064
|
request: GetWebhookSecretRequest$inboundSchema
|
|
95832
96065
|
};
|
|
95833
96066
|
tool$webhooksGetSecret = {
|
|
95834
96067
|
name: "webhooks-get-secret",
|
|
95835
96068
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
95836
|
-
args:
|
|
95837
|
-
tool: async (client,
|
|
95838
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
96069
|
+
args: args158,
|
|
96070
|
+
tool: async (client, args159, ctx) => {
|
|
96071
|
+
const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95839
96072
|
if (!result.ok) {
|
|
95840
96073
|
return {
|
|
95841
96074
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95850,9 +96083,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
95850
96083
|
|
|
95851
96084
|
// src/funcs/webhooksList.ts
|
|
95852
96085
|
function webhooksList(client, options) {
|
|
95853
|
-
return new APIPromise($
|
|
96086
|
+
return new APIPromise($do164(client, options));
|
|
95854
96087
|
}
|
|
95855
|
-
async function $
|
|
96088
|
+
async function $do164(client, options) {
|
|
95856
96089
|
const path = pathToFunc("/webhooks")();
|
|
95857
96090
|
const headers = new Headers(compactMap({
|
|
95858
96091
|
Accept: "application/json"
|
|
@@ -95938,9 +96171,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
95938
96171
|
|
|
95939
96172
|
// src/funcs/webhooksListEventTypes.ts
|
|
95940
96173
|
function webhooksListEventTypes(client, options) {
|
|
95941
|
-
return new APIPromise($
|
|
96174
|
+
return new APIPromise($do165(client, options));
|
|
95942
96175
|
}
|
|
95943
|
-
async function $
|
|
96176
|
+
async function $do165(client, options) {
|
|
95944
96177
|
const path = pathToFunc("/event-types")();
|
|
95945
96178
|
const headers = new Headers(compactMap({
|
|
95946
96179
|
Accept: "application/json"
|
|
@@ -96026,9 +96259,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
96026
96259
|
|
|
96027
96260
|
// src/funcs/webhooksPing.ts
|
|
96028
96261
|
function webhooksPing(client, request, options) {
|
|
96029
|
-
return new APIPromise($
|
|
96262
|
+
return new APIPromise($do166(client, request, options));
|
|
96030
96263
|
}
|
|
96031
|
-
async function $
|
|
96264
|
+
async function $do166(client, request, options) {
|
|
96032
96265
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96033
96266
|
if (!parsed.ok) {
|
|
96034
96267
|
return [parsed, { status: "invalid" }];
|
|
@@ -96106,20 +96339,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
96106
96339
|
});
|
|
96107
96340
|
|
|
96108
96341
|
// src/mcp-server/tools/webhooksPing.ts
|
|
96109
|
-
var
|
|
96342
|
+
var args159, tool$webhooksPing;
|
|
96110
96343
|
var init_webhooksPing2 = __esm(() => {
|
|
96111
96344
|
init_webhooksPing();
|
|
96112
96345
|
init_operations();
|
|
96113
96346
|
init_tools();
|
|
96114
|
-
|
|
96347
|
+
args159 = {
|
|
96115
96348
|
request: PingWebhookRequest$inboundSchema
|
|
96116
96349
|
};
|
|
96117
96350
|
tool$webhooksPing = {
|
|
96118
96351
|
name: "webhooks-ping",
|
|
96119
96352
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
96120
|
-
args:
|
|
96121
|
-
tool: async (client,
|
|
96122
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
96353
|
+
args: args159,
|
|
96354
|
+
tool: async (client, args160, ctx) => {
|
|
96355
|
+
const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96123
96356
|
if (!result.ok) {
|
|
96124
96357
|
return {
|
|
96125
96358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96134,9 +96367,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
96134
96367
|
|
|
96135
96368
|
// src/funcs/webhooksUpdate.ts
|
|
96136
96369
|
function webhooksUpdate(client, request, options) {
|
|
96137
|
-
return new APIPromise($
|
|
96370
|
+
return new APIPromise($do167(client, request, options));
|
|
96138
96371
|
}
|
|
96139
|
-
async function $
|
|
96372
|
+
async function $do167(client, request, options) {
|
|
96140
96373
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96141
96374
|
if (!parsed.ok) {
|
|
96142
96375
|
return [parsed, { status: "invalid" }];
|
|
@@ -96218,20 +96451,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
96218
96451
|
});
|
|
96219
96452
|
|
|
96220
96453
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
96221
|
-
var
|
|
96454
|
+
var args160, tool$webhooksUpdate;
|
|
96222
96455
|
var init_webhooksUpdate2 = __esm(() => {
|
|
96223
96456
|
init_webhooksUpdate();
|
|
96224
96457
|
init_operations();
|
|
96225
96458
|
init_tools();
|
|
96226
|
-
|
|
96459
|
+
args160 = {
|
|
96227
96460
|
request: UpdateWebhookRequest$inboundSchema
|
|
96228
96461
|
};
|
|
96229
96462
|
tool$webhooksUpdate = {
|
|
96230
96463
|
name: "webhooks-update",
|
|
96231
96464
|
description: `Update an existing webhook.`,
|
|
96232
|
-
args:
|
|
96233
|
-
tool: async (client,
|
|
96234
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
96465
|
+
args: args160,
|
|
96466
|
+
tool: async (client, args161, ctx) => {
|
|
96467
|
+
const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96235
96468
|
if (!result.ok) {
|
|
96236
96469
|
return {
|
|
96237
96470
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96248,7 +96481,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
96248
96481
|
function createMCPServer(deps) {
|
|
96249
96482
|
const server = new McpServer({
|
|
96250
96483
|
name: "Moov",
|
|
96251
|
-
version: "25.6.
|
|
96484
|
+
version: "25.6.1"
|
|
96252
96485
|
});
|
|
96253
96486
|
const client = new MoovCore({
|
|
96254
96487
|
security: deps.security,
|
|
@@ -96376,6 +96609,7 @@ function createMCPServer(deps) {
|
|
|
96376
96609
|
tool(tool$transfersGet);
|
|
96377
96610
|
tool(tool$transfersUpdate);
|
|
96378
96611
|
tool(tool$transfersCreateCancellation);
|
|
96612
|
+
tool(tool$transfersListCancellations);
|
|
96379
96613
|
tool(tool$transfersGetCancellation);
|
|
96380
96614
|
tool(tool$transfersInitiateRefund);
|
|
96381
96615
|
tool(tool$transfersListRefunds);
|
|
@@ -96584,6 +96818,7 @@ var init_server2 = __esm(() => {
|
|
|
96584
96818
|
init_transfersGetRefund2();
|
|
96585
96819
|
init_transfersInitiateRefund2();
|
|
96586
96820
|
init_transfersList2();
|
|
96821
|
+
init_transfersListCancellations2();
|
|
96587
96822
|
init_transfersListRefunds2();
|
|
96588
96823
|
init_transfersUpdate2();
|
|
96589
96824
|
init_underwritingGet2();
|
|
@@ -97804,7 +98039,7 @@ var routes = rn({
|
|
|
97804
98039
|
var app = Ve(routes, {
|
|
97805
98040
|
name: "mcp",
|
|
97806
98041
|
versionInfo: {
|
|
97807
|
-
currentVersion: "25.6.
|
|
98042
|
+
currentVersion: "25.6.1"
|
|
97808
98043
|
}
|
|
97809
98044
|
});
|
|
97810
98045
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -97812,5 +98047,5 @@ export {
|
|
|
97812
98047
|
app
|
|
97813
98048
|
};
|
|
97814
98049
|
|
|
97815
|
-
//# debugId=
|
|
98050
|
+
//# debugId=3EFC1C4F31FA920C64756E2164756E21
|
|
97816
98051
|
//# sourceMappingURL=mcp-server.js.map
|