@moovio/sdk 26.3.0 → 26.3.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 +82 -78
- package/bin/mcp-server.js +554 -319
- 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: "v2026.01.00",
|
|
52912
|
-
sdkVersion: "26.3.
|
|
52913
|
-
genVersion: "2.
|
|
52914
|
-
userAgent: "speakeasy-sdk/typescript 26.3.
|
|
52977
|
+
sdkVersion: "26.3.1",
|
|
52978
|
+
genVersion: "2.910.1",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 26.3.1 2.910.1 v2026.01.00 @moovio/sdk"
|
|
52915
52980
|
};
|
|
52916
52981
|
});
|
|
52917
52982
|
|
|
@@ -53084,15 +53149,6 @@ var init_base64 = __esm(() => {
|
|
|
53084
53149
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
53085
53150
|
});
|
|
53086
53151
|
|
|
53087
|
-
// src/lib/is-plain-object.ts
|
|
53088
|
-
function isPlainObject3(value) {
|
|
53089
|
-
if (typeof value !== "object" || value === null) {
|
|
53090
|
-
return false;
|
|
53091
|
-
}
|
|
53092
|
-
const prototype = Object.getPrototypeOf(value);
|
|
53093
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
53094
|
-
}
|
|
53095
|
-
|
|
53096
53152
|
// src/lib/encodings.ts
|
|
53097
53153
|
function formEncoder(sep) {
|
|
53098
53154
|
return (key, value, options) => {
|
|
@@ -53113,7 +53169,7 @@ function formEncoder(sep) {
|
|
|
53113
53169
|
return;
|
|
53114
53170
|
} else if (Array.isArray(pv)) {
|
|
53115
53171
|
encValue = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(encodedSep);
|
|
53116
|
-
} else if (
|
|
53172
|
+
} else if (isPlainObject2(pv)) {
|
|
53117
53173
|
encValue = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53118
53174
|
return `${encodeString(k2)}${encodedSep}${encodeValue(v2)}`;
|
|
53119
53175
|
})?.join(encodedSep);
|
|
@@ -53136,7 +53192,7 @@ function encodeDeepObject(key, value, options) {
|
|
|
53136
53192
|
if (value == null) {
|
|
53137
53193
|
return;
|
|
53138
53194
|
}
|
|
53139
|
-
if (!
|
|
53195
|
+
if (!isPlainObject2(value)) {
|
|
53140
53196
|
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
53141
53197
|
}
|
|
53142
53198
|
return encodeDeepObjectObject(key, value, options);
|
|
@@ -53149,7 +53205,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53149
53205
|
const encodeString = (v2) => {
|
|
53150
53206
|
return options?.charEncoding === "percent" ? encodeURIComponent(v2) : v2;
|
|
53151
53207
|
};
|
|
53152
|
-
if (!
|
|
53208
|
+
if (!isPlainObject2(value)) {
|
|
53153
53209
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
53154
53210
|
}
|
|
53155
53211
|
Object.entries(value).forEach(([ck, cv]) => {
|
|
@@ -53157,7 +53213,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
53157
53213
|
return;
|
|
53158
53214
|
}
|
|
53159
53215
|
const pk = `${key}[${ck}]`;
|
|
53160
|
-
if (
|
|
53216
|
+
if (isPlainObject2(cv)) {
|
|
53161
53217
|
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
53162
53218
|
out += objOut == null ? "" : `&${objOut}`;
|
|
53163
53219
|
return;
|
|
@@ -53183,7 +53239,7 @@ function encodeJSON(key, value, options) {
|
|
|
53183
53239
|
function explode(key, value) {
|
|
53184
53240
|
if (Array.isArray(value)) {
|
|
53185
53241
|
return value.map((v2) => [key, v2]);
|
|
53186
|
-
} else if (
|
|
53242
|
+
} else if (isPlainObject2(value)) {
|
|
53187
53243
|
const o = value ?? {};
|
|
53188
53244
|
return Object.entries(o).map(([k2, v2]) => [k2, v2]);
|
|
53189
53245
|
} else {
|
|
@@ -53308,13 +53364,13 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53308
53364
|
return;
|
|
53309
53365
|
} else if (Array.isArray(pv)) {
|
|
53310
53366
|
tmp = mapDefined(pv, (v2) => `${encodeValue(v2)}`)?.join(",");
|
|
53311
|
-
} else if (
|
|
53367
|
+
} else if (isPlainObject2(pv)) {
|
|
53312
53368
|
const mapped = mapDefinedEntries(Object.entries(pv), ([k2, v2]) => {
|
|
53313
53369
|
return `,${encodeString(k2)},${encodeValue(v2)}`;
|
|
53314
53370
|
});
|
|
53315
53371
|
tmp = mapped?.join("").slice(1);
|
|
53316
53372
|
} else {
|
|
53317
|
-
const k2 = options?.explode &&
|
|
53373
|
+
const k2 = options?.explode && isPlainObject2(value) ? `${pk}=` : "";
|
|
53318
53374
|
tmp = `${k2}${encodeValue(pv)}`;
|
|
53319
53375
|
}
|
|
53320
53376
|
out += tmp ? `,${tmp}` : "";
|
|
@@ -53323,6 +53379,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
|
|
|
53323
53379
|
}, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
53324
53380
|
var init_encodings = __esm(() => {
|
|
53325
53381
|
init_base64();
|
|
53382
|
+
init_primitives();
|
|
53326
53383
|
EncodingError = class EncodingError extends Error {
|
|
53327
53384
|
constructor(message) {
|
|
53328
53385
|
super(message);
|
|
@@ -53588,6 +53645,13 @@ async function retryBackoff(fn, strategy) {
|
|
|
53588
53645
|
}
|
|
53589
53646
|
}
|
|
53590
53647
|
function retryIntervalFromResponse(res) {
|
|
53648
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
53649
|
+
if (retryAfterMsVal) {
|
|
53650
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
53651
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
53652
|
+
return parsedMs;
|
|
53653
|
+
}
|
|
53654
|
+
}
|
|
53591
53655
|
const retryVal = res.headers.get("retry-after") || "";
|
|
53592
53656
|
if (!retryVal) {
|
|
53593
53657
|
return 0;
|
|
@@ -53679,24 +53743,41 @@ class ClientSDK {
|
|
|
53679
53743
|
if (path) {
|
|
53680
53744
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53681
53745
|
reqURL = new URL(path, baseURL);
|
|
53746
|
+
if (!reqURL.search && baseURL.search) {
|
|
53747
|
+
reqURL.search = baseURL.search;
|
|
53748
|
+
}
|
|
53682
53749
|
} else {
|
|
53683
53750
|
reqURL = baseURL;
|
|
53684
53751
|
}
|
|
53685
53752
|
reqURL.hash = "";
|
|
53686
|
-
|
|
53687
|
-
|
|
53688
|
-
|
|
53689
|
-
const q2 = encodeForm(k2, v2, { charEncoding: "percent" });
|
|
53690
|
-
if (typeof q2 !== "undefined") {
|
|
53691
|
-
secQuery.push(q2);
|
|
53753
|
+
const mergeQuery = (current, additions) => {
|
|
53754
|
+
if (!additions) {
|
|
53755
|
+
return current;
|
|
53692
53756
|
}
|
|
53693
|
-
|
|
53694
|
-
|
|
53695
|
-
|
|
53696
|
-
|
|
53757
|
+
const additionKeys = new Set(additions.split("&").filter((pair) => pair !== "").map((pair) => pair.split("=")[0] ?? ""));
|
|
53758
|
+
const kept = current.split("&").filter((pair) => {
|
|
53759
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
53760
|
+
});
|
|
53761
|
+
return [...kept, additions].join("&");
|
|
53762
|
+
};
|
|
53763
|
+
const encodeQueryRecord = (record3) => {
|
|
53764
|
+
return Object.entries(record3).map(([k2, v2]) => {
|
|
53765
|
+
if (v2 == null) {
|
|
53766
|
+
return;
|
|
53767
|
+
}
|
|
53768
|
+
const value = v2;
|
|
53769
|
+
return encodeForm(k2, value, {
|
|
53770
|
+
explode: Array.isArray(value),
|
|
53771
|
+
charEncoding: "percent"
|
|
53772
|
+
});
|
|
53773
|
+
}).filter((pair) => typeof pair !== "undefined").join("&");
|
|
53774
|
+
};
|
|
53775
|
+
const finalQuery = [
|
|
53776
|
+
query || "",
|
|
53777
|
+
encodeQueryRecord(security?.queryParams || {})
|
|
53778
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
53697
53779
|
if (finalQuery) {
|
|
53698
|
-
|
|
53699
|
-
reqURL.search = `?${q2}`;
|
|
53780
|
+
reqURL.search = `?${finalQuery}`;
|
|
53700
53781
|
}
|
|
53701
53782
|
const headers = new Headers(opHeaders);
|
|
53702
53783
|
const username = security?.basic.username;
|
|
@@ -53726,9 +53807,8 @@ class ClientSDK {
|
|
|
53726
53807
|
...options?.fetchOptions,
|
|
53727
53808
|
...options
|
|
53728
53809
|
};
|
|
53729
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
53730
|
-
|
|
53731
|
-
fetchOptions.signal = timeoutSignal;
|
|
53810
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
53811
|
+
context.timeoutMs = conf.timeoutMs;
|
|
53732
53812
|
}
|
|
53733
53813
|
if (conf.body instanceof ReadableStream) {
|
|
53734
53814
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -53753,8 +53833,16 @@ class ClientSDK {
|
|
|
53753
53833
|
}
|
|
53754
53834
|
async _do(request, options) {
|
|
53755
53835
|
const { context, isErrorStatusCode } = options;
|
|
53836
|
+
const timeoutMs = context.timeoutMs;
|
|
53756
53837
|
return retry(async () => {
|
|
53757
|
-
const
|
|
53838
|
+
const cloned = request.clone();
|
|
53839
|
+
let attempt = cloned;
|
|
53840
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
53841
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
53842
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
53843
|
+
attempt = new Request(cloned, { signal: combined });
|
|
53844
|
+
}
|
|
53845
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
53758
53846
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
53759
53847
|
let response = await this.#httpClient.request(req);
|
|
53760
53848
|
try {
|
|
@@ -53872,6 +53960,7 @@ var init_sdks = __esm(() => {
|
|
|
53872
53960
|
init_config();
|
|
53873
53961
|
init_encodings();
|
|
53874
53962
|
init_http();
|
|
53963
|
+
init_primitives();
|
|
53875
53964
|
init_retries();
|
|
53876
53965
|
gt2 = typeof globalThis === "undefined" ? null : globalThis;
|
|
53877
53966
|
webWorkerLike2 = typeof gt2 === "object" && gt2 != null && "importScripts" in gt2 && typeof gt2["importScripts"] === "function";
|
|
@@ -54321,7 +54410,7 @@ function match(...matchers) {
|
|
|
54321
54410
|
data = {
|
|
54322
54411
|
...options?.extraFields,
|
|
54323
54412
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54324
|
-
...
|
|
54413
|
+
...isPlainObject2(raw) ? raw : null,
|
|
54325
54414
|
request$: request,
|
|
54326
54415
|
response$: response,
|
|
54327
54416
|
body$: body
|
|
@@ -54336,7 +54425,7 @@ function match(...matchers) {
|
|
|
54336
54425
|
data = {
|
|
54337
54426
|
...options?.extraFields,
|
|
54338
54427
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
54339
|
-
...
|
|
54428
|
+
...isPlainObject2(raw) ? raw : null
|
|
54340
54429
|
};
|
|
54341
54430
|
} else {
|
|
54342
54431
|
data = raw;
|
|
@@ -54376,6 +54465,7 @@ var init_matchers = __esm(() => {
|
|
|
54376
54465
|
init_apierror();
|
|
54377
54466
|
init_responsevalidationerror();
|
|
54378
54467
|
init_http();
|
|
54468
|
+
init_primitives();
|
|
54379
54469
|
DEFAULT_CONTENT_TYPES = {
|
|
54380
54470
|
jsonl: "application/jsonl",
|
|
54381
54471
|
json: "application/json",
|
|
@@ -56376,20 +56466,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56376
56466
|
});
|
|
56377
56467
|
});
|
|
56378
56468
|
|
|
56379
|
-
// src/models/components/authorizeduser.ts
|
|
56380
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56381
|
-
var init_authorizeduser = __esm(() => {
|
|
56382
|
-
init_esm();
|
|
56383
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56384
|
-
firstName: stringType(),
|
|
56385
|
-
lastName: stringType()
|
|
56386
|
-
});
|
|
56387
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56388
|
-
firstName: stringType(),
|
|
56389
|
-
lastName: stringType()
|
|
56390
|
-
});
|
|
56391
|
-
});
|
|
56392
|
-
|
|
56393
56469
|
// src/models/components/tokentype.ts
|
|
56394
56470
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56395
56471
|
var init_tokentype = __esm(() => {
|
|
@@ -61125,57 +61201,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
61125
61201
|
});
|
|
61126
61202
|
});
|
|
61127
61203
|
|
|
61128
|
-
// src/models/components/createauthorizeduser.ts
|
|
61129
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
61130
|
-
var init_createauthorizeduser = __esm(() => {
|
|
61131
|
-
init_esm();
|
|
61132
|
-
init_birthdate();
|
|
61133
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
61134
|
-
firstName: stringType(),
|
|
61135
|
-
lastName: stringType(),
|
|
61136
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
61137
|
-
});
|
|
61138
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
61139
|
-
firstName: stringType(),
|
|
61140
|
-
lastName: stringType(),
|
|
61141
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
61142
|
-
});
|
|
61143
|
-
});
|
|
61144
|
-
|
|
61145
|
-
// src/models/components/createauthorizedusererror.ts
|
|
61146
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
61147
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
61148
|
-
init_esm();
|
|
61149
|
-
init_birthdateerror();
|
|
61150
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
61151
|
-
firstName: stringType().optional(),
|
|
61152
|
-
lastName: stringType().optional(),
|
|
61153
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
61154
|
-
});
|
|
61155
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
61156
|
-
firstName: stringType().optional(),
|
|
61157
|
-
lastName: stringType().optional(),
|
|
61158
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
61159
|
-
});
|
|
61160
|
-
});
|
|
61161
|
-
|
|
61162
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
61163
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
61164
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
61165
|
-
init_esm();
|
|
61166
|
-
init_birthdateupdate();
|
|
61167
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
61168
|
-
firstName: stringType().optional(),
|
|
61169
|
-
lastName: stringType().optional(),
|
|
61170
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
61171
|
-
});
|
|
61172
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
61173
|
-
firstName: stringType().optional(),
|
|
61174
|
-
lastName: stringType().optional(),
|
|
61175
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
61176
|
-
});
|
|
61177
|
-
});
|
|
61178
|
-
|
|
61179
61204
|
// src/models/components/phonenumbererror.ts
|
|
61180
61205
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
61181
61206
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62914,7 +62939,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62914
62939
|
WalletCreated: "wallet.created",
|
|
62915
62940
|
WalletUpdated: "wallet.updated",
|
|
62916
62941
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62917
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62942
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62943
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62918
62944
|
};
|
|
62919
62945
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62920
62946
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63686,7 +63712,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63686
63712
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63687
63713
|
var init_fullissuedcard = __esm(() => {
|
|
63688
63714
|
init_esm();
|
|
63689
|
-
|
|
63715
|
+
init_address();
|
|
63690
63716
|
init_cardbrand();
|
|
63691
63717
|
init_cardexpiration();
|
|
63692
63718
|
init_issuedcardformfactor();
|
|
@@ -63697,13 +63723,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63697
63723
|
brand: CardBrand$inboundSchema,
|
|
63698
63724
|
lastFourCardNumber: stringType(),
|
|
63699
63725
|
expiration: CardExpiration$inboundSchema,
|
|
63700
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63701
|
-
memo: stringType().optional(),
|
|
63702
63726
|
fundingWalletID: stringType(),
|
|
63727
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63728
|
+
nickname: stringType().optional(),
|
|
63729
|
+
metadata: recordType(stringType()).optional(),
|
|
63730
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63703
63731
|
state: IssuedCardState$inboundSchema,
|
|
63704
63732
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63705
63733
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63706
63734
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63735
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63707
63736
|
pan: stringType(),
|
|
63708
63737
|
cvv: stringType()
|
|
63709
63738
|
});
|
|
@@ -63712,13 +63741,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63712
63741
|
brand: CardBrand$outboundSchema,
|
|
63713
63742
|
lastFourCardNumber: stringType(),
|
|
63714
63743
|
expiration: CardExpiration$outboundSchema,
|
|
63715
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63716
|
-
memo: stringType().optional(),
|
|
63717
63744
|
fundingWalletID: stringType(),
|
|
63745
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63746
|
+
nickname: stringType().optional(),
|
|
63747
|
+
metadata: recordType(stringType()).optional(),
|
|
63748
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63718
63749
|
state: IssuedCardState$outboundSchema,
|
|
63719
63750
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63720
63751
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63721
63752
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63753
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63722
63754
|
pan: stringType(),
|
|
63723
63755
|
cvv: stringType()
|
|
63724
63756
|
});
|
|
@@ -64091,7 +64123,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
64091
64123
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
64092
64124
|
var init_issuedcard = __esm(() => {
|
|
64093
64125
|
init_esm();
|
|
64094
|
-
|
|
64126
|
+
init_address();
|
|
64095
64127
|
init_cardbrand();
|
|
64096
64128
|
init_cardexpiration();
|
|
64097
64129
|
init_issuedcardformfactor();
|
|
@@ -64102,26 +64134,32 @@ var init_issuedcard = __esm(() => {
|
|
|
64102
64134
|
brand: CardBrand$inboundSchema,
|
|
64103
64135
|
lastFourCardNumber: stringType(),
|
|
64104
64136
|
expiration: CardExpiration$inboundSchema,
|
|
64105
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
64106
|
-
memo: stringType().optional(),
|
|
64107
64137
|
fundingWalletID: stringType(),
|
|
64138
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64139
|
+
nickname: stringType().optional(),
|
|
64140
|
+
metadata: recordType(stringType()).optional(),
|
|
64141
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
64108
64142
|
state: IssuedCardState$inboundSchema,
|
|
64109
64143
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
64110
64144
|
controls: IssuingControls$inboundSchema.optional(),
|
|
64111
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
64145
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
64146
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
64112
64147
|
});
|
|
64113
64148
|
IssuedCard$outboundSchema = objectType({
|
|
64114
64149
|
issuedCardID: stringType(),
|
|
64115
64150
|
brand: CardBrand$outboundSchema,
|
|
64116
64151
|
lastFourCardNumber: stringType(),
|
|
64117
64152
|
expiration: CardExpiration$outboundSchema,
|
|
64118
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
64119
|
-
memo: stringType().optional(),
|
|
64120
64153
|
fundingWalletID: stringType(),
|
|
64154
|
+
authorizedUserAccountID: stringType().optional(),
|
|
64155
|
+
nickname: stringType().optional(),
|
|
64156
|
+
metadata: recordType(stringType()).optional(),
|
|
64157
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
64121
64158
|
state: IssuedCardState$outboundSchema,
|
|
64122
64159
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
64123
64160
|
controls: IssuingControls$outboundSchema.optional(),
|
|
64124
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
64161
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
64162
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
64125
64163
|
});
|
|
64126
64164
|
});
|
|
64127
64165
|
|
|
@@ -66180,23 +66218,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
66180
66218
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
66181
66219
|
var init_requestcard = __esm(() => {
|
|
66182
66220
|
init_esm();
|
|
66221
|
+
init_address();
|
|
66183
66222
|
init_cardexpiration();
|
|
66184
|
-
init_createauthorizeduser();
|
|
66185
|
-
init_issuedcardformfactor();
|
|
66186
66223
|
init_issuingcontrols();
|
|
66187
66224
|
RequestCard$inboundSchema = objectType({
|
|
66188
|
-
|
|
66189
|
-
|
|
66190
|
-
|
|
66191
|
-
|
|
66225
|
+
authorizedUserAccountID: stringType().optional(),
|
|
66226
|
+
nickname: stringType().optional(),
|
|
66227
|
+
metadata: recordType(stringType()).optional(),
|
|
66228
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
66192
66229
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
66193
66230
|
controls: IssuingControls$inboundSchema.optional()
|
|
66194
66231
|
});
|
|
66195
66232
|
RequestCard$outboundSchema = objectType({
|
|
66196
|
-
|
|
66197
|
-
|
|
66198
|
-
|
|
66199
|
-
|
|
66233
|
+
authorizedUserAccountID: stringType().optional(),
|
|
66234
|
+
nickname: stringType().optional(),
|
|
66235
|
+
metadata: recordType(stringType()).optional(),
|
|
66236
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
66200
66237
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
66201
66238
|
controls: IssuingControls$outboundSchema.optional()
|
|
66202
66239
|
});
|
|
@@ -67322,20 +67359,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
67322
67359
|
});
|
|
67323
67360
|
|
|
67324
67361
|
// src/models/components/updateissuedcard.ts
|
|
67325
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
67362
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
67326
67363
|
var init_updateissuedcard = __esm(() => {
|
|
67327
67364
|
init_esm();
|
|
67328
|
-
init_createauthorizeduserupdate();
|
|
67329
67365
|
init_updateissuedcardstate();
|
|
67366
|
+
BillingAddress$inboundSchema = objectType({
|
|
67367
|
+
addressLine1: stringType().optional(),
|
|
67368
|
+
addressLine2: stringType().optional(),
|
|
67369
|
+
city: stringType().optional(),
|
|
67370
|
+
stateOrProvince: stringType().optional(),
|
|
67371
|
+
postalCode: stringType().optional(),
|
|
67372
|
+
country: stringType().optional()
|
|
67373
|
+
});
|
|
67374
|
+
BillingAddress$outboundSchema = objectType({
|
|
67375
|
+
addressLine1: stringType().optional(),
|
|
67376
|
+
addressLine2: stringType().optional(),
|
|
67377
|
+
city: stringType().optional(),
|
|
67378
|
+
stateOrProvince: stringType().optional(),
|
|
67379
|
+
postalCode: stringType().optional(),
|
|
67380
|
+
country: stringType().optional()
|
|
67381
|
+
});
|
|
67330
67382
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
67331
67383
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
67332
|
-
|
|
67333
|
-
|
|
67384
|
+
nickname: nullableType(stringType()).optional(),
|
|
67385
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
67386
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
67334
67387
|
});
|
|
67335
67388
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
67336
67389
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
67337
|
-
|
|
67338
|
-
|
|
67390
|
+
nickname: nullableType(stringType()).optional(),
|
|
67391
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
67392
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
67339
67393
|
});
|
|
67340
67394
|
});
|
|
67341
67395
|
|
|
@@ -67807,6 +67861,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
67807
67861
|
});
|
|
67808
67862
|
});
|
|
67809
67863
|
|
|
67864
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
67865
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
67866
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
67867
|
+
init_esm();
|
|
67868
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
67869
|
+
merchantAccountID: stringType(),
|
|
67870
|
+
partnerAccountID: stringType(),
|
|
67871
|
+
authorizationID: stringType(),
|
|
67872
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
67873
|
+
});
|
|
67874
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
67875
|
+
merchantAccountID: stringType(),
|
|
67876
|
+
partnerAccountID: stringType(),
|
|
67877
|
+
authorizationID: stringType(),
|
|
67878
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
67879
|
+
});
|
|
67880
|
+
});
|
|
67881
|
+
|
|
67810
67882
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
67811
67883
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
67812
67884
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -68181,10 +68253,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
68181
68253
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
68182
68254
|
init_esm();
|
|
68183
68255
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
68256
|
+
accountID: stringType(),
|
|
68184
68257
|
walletID: stringType(),
|
|
68185
68258
|
sweepID: stringType()
|
|
68186
68259
|
});
|
|
68187
68260
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
68261
|
+
accountID: stringType(),
|
|
68188
68262
|
walletID: stringType(),
|
|
68189
68263
|
sweepID: stringType()
|
|
68190
68264
|
});
|
|
@@ -68196,12 +68270,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
68196
68270
|
init_esm();
|
|
68197
68271
|
init_sweepstatus();
|
|
68198
68272
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
68273
|
+
accountID: stringType(),
|
|
68199
68274
|
walletID: stringType(),
|
|
68200
68275
|
sweepID: stringType(),
|
|
68201
68276
|
transferID: stringType().optional(),
|
|
68202
68277
|
status: SweepStatus$inboundSchema
|
|
68203
68278
|
});
|
|
68204
68279
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
68280
|
+
accountID: stringType(),
|
|
68205
68281
|
walletID: stringType(),
|
|
68206
68282
|
sweepID: stringType(),
|
|
68207
68283
|
transferID: stringType().optional(),
|
|
@@ -68442,6 +68518,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68442
68518
|
init_webhookdataaccountcreated();
|
|
68443
68519
|
init_webhookdataaccountdisconnected();
|
|
68444
68520
|
init_webhookdataaccountupdated();
|
|
68521
|
+
init_webhookdataauthorizationexpiring();
|
|
68445
68522
|
init_webhookdatabalanceupdated();
|
|
68446
68523
|
init_webhookdatabankaccountcreated();
|
|
68447
68524
|
init_webhookdatabankaccountdeleted();
|
|
@@ -68481,7 +68558,9 @@ var init_webhookdata = __esm(() => {
|
|
|
68481
68558
|
WebhookDataTransferUpdated$inboundSchema,
|
|
68482
68559
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
68483
68560
|
WebhookDataRefundUpdated$inboundSchema,
|
|
68561
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
68484
68562
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
68563
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
68485
68564
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
68486
68565
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
68487
68566
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -68492,7 +68571,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68492
68571
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
68493
68572
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
68494
68573
|
WebhookDataRefundCreated$inboundSchema,
|
|
68495
|
-
|
|
68574
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
68496
68575
|
WebhookDataTicketUpdated$inboundSchema,
|
|
68497
68576
|
WebhookDataTransferCreated$inboundSchema,
|
|
68498
68577
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -68502,7 +68581,6 @@ var init_webhookdata = __esm(() => {
|
|
|
68502
68581
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
68503
68582
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
68504
68583
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
68505
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
68506
68584
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
68507
68585
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
68508
68586
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -68520,7 +68598,9 @@ var init_webhookdata = __esm(() => {
|
|
|
68520
68598
|
WebhookDataTransferUpdated$outboundSchema,
|
|
68521
68599
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
68522
68600
|
WebhookDataRefundUpdated$outboundSchema,
|
|
68601
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
68523
68602
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
68603
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
68524
68604
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
68525
68605
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
68526
68606
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -68531,7 +68611,7 @@ var init_webhookdata = __esm(() => {
|
|
|
68531
68611
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
68532
68612
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
68533
68613
|
WebhookDataRefundCreated$outboundSchema,
|
|
68534
|
-
|
|
68614
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
68535
68615
|
WebhookDataTicketUpdated$outboundSchema,
|
|
68536
68616
|
WebhookDataTransferCreated$outboundSchema,
|
|
68537
68617
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -68541,7 +68621,6 @@ var init_webhookdata = __esm(() => {
|
|
|
68541
68621
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
68542
68622
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
68543
68623
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
68544
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
68545
68624
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
68546
68625
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
68547
68626
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -68638,7 +68717,6 @@ var init_components = __esm(() => {
|
|
|
68638
68717
|
init_assignproductimagevalidationerror();
|
|
68639
68718
|
init_asynccreatedrefund();
|
|
68640
68719
|
init_asynctransfer();
|
|
68641
|
-
init_authorizeduser();
|
|
68642
68720
|
init_authtoken();
|
|
68643
68721
|
init_authtokenrequest();
|
|
68644
68722
|
init_bankaccount();
|
|
@@ -68726,9 +68804,6 @@ var init_components = __esm(() => {
|
|
|
68726
68804
|
init_createaccountsettings();
|
|
68727
68805
|
init_createaccounttype();
|
|
68728
68806
|
init_createapplepaysession();
|
|
68729
|
-
init_createauthorizeduser();
|
|
68730
|
-
init_createauthorizedusererror();
|
|
68731
|
-
init_createauthorizeduserupdate();
|
|
68732
68807
|
init_createbusinesserror();
|
|
68733
68808
|
init_createbusinessprofile();
|
|
68734
68809
|
init_createdtransfer();
|
|
@@ -69106,6 +69181,7 @@ var init_components = __esm(() => {
|
|
|
69106
69181
|
init_webhookdataaccountcreated();
|
|
69107
69182
|
init_webhookdataaccountdisconnected();
|
|
69108
69183
|
init_webhookdataaccountupdated();
|
|
69184
|
+
init_webhookdataauthorizationexpiring();
|
|
69109
69185
|
init_webhookdatabalanceupdated();
|
|
69110
69186
|
init_webhookdatabankaccountcreated();
|
|
69111
69187
|
init_webhookdatabankaccountdeleted();
|
|
@@ -70741,10 +70817,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70741
70817
|
init_components();
|
|
70742
70818
|
init_mooverror();
|
|
70743
70819
|
RequestCardError = class RequestCardError extends MoovError {
|
|
70744
|
-
|
|
70745
|
-
|
|
70746
|
-
|
|
70747
|
-
|
|
70820
|
+
authorizedUserAccountID;
|
|
70821
|
+
nickname;
|
|
70822
|
+
metadata;
|
|
70823
|
+
billingAddress;
|
|
70748
70824
|
expiration;
|
|
70749
70825
|
controls;
|
|
70750
70826
|
data$;
|
|
@@ -70752,14 +70828,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
70752
70828
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
70753
70829
|
super(message, httpMeta);
|
|
70754
70830
|
this.data$ = err;
|
|
70755
|
-
if (err.
|
|
70756
|
-
this.
|
|
70757
|
-
|
|
70758
|
-
|
|
70759
|
-
|
|
70760
|
-
|
|
70761
|
-
|
|
70762
|
-
|
|
70831
|
+
if (err.authorizedUserAccountID != null) {
|
|
70832
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
70833
|
+
}
|
|
70834
|
+
if (err.nickname != null)
|
|
70835
|
+
this.nickname = err.nickname;
|
|
70836
|
+
if (err.metadata != null)
|
|
70837
|
+
this.metadata = err.metadata;
|
|
70838
|
+
if (err.billingAddress != null)
|
|
70839
|
+
this.billingAddress = err.billingAddress;
|
|
70763
70840
|
if (err.expiration != null)
|
|
70764
70841
|
this.expiration = err.expiration;
|
|
70765
70842
|
if (err.controls != null)
|
|
@@ -70768,10 +70845,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70768
70845
|
}
|
|
70769
70846
|
};
|
|
70770
70847
|
RequestCardError$inboundSchema = objectType({
|
|
70771
|
-
|
|
70772
|
-
|
|
70773
|
-
|
|
70774
|
-
|
|
70848
|
+
authorizedUserAccountID: stringType().optional(),
|
|
70849
|
+
nickname: stringType().optional(),
|
|
70850
|
+
metadata: stringType().optional(),
|
|
70851
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70775
70852
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
70776
70853
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
70777
70854
|
request$: instanceOfType(Request),
|
|
@@ -70785,10 +70862,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
70785
70862
|
});
|
|
70786
70863
|
});
|
|
70787
70864
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70788
|
-
|
|
70789
|
-
|
|
70790
|
-
|
|
70791
|
-
|
|
70865
|
+
authorizedUserAccountID: stringType().optional(),
|
|
70866
|
+
nickname: stringType().optional(),
|
|
70867
|
+
metadata: stringType().optional(),
|
|
70868
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
70792
70869
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
70793
70870
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
70794
70871
|
}));
|
|
@@ -71359,8 +71436,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71359
71436
|
init_mooverror();
|
|
71360
71437
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
71361
71438
|
state;
|
|
71362
|
-
|
|
71363
|
-
|
|
71439
|
+
nickname;
|
|
71440
|
+
metadata;
|
|
71441
|
+
billingAddress;
|
|
71364
71442
|
data$;
|
|
71365
71443
|
constructor(err, httpMeta) {
|
|
71366
71444
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -71368,17 +71446,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71368
71446
|
this.data$ = err;
|
|
71369
71447
|
if (err.state != null)
|
|
71370
71448
|
this.state = err.state;
|
|
71371
|
-
if (err.
|
|
71372
|
-
this.
|
|
71373
|
-
if (err.
|
|
71374
|
-
this.
|
|
71449
|
+
if (err.nickname != null)
|
|
71450
|
+
this.nickname = err.nickname;
|
|
71451
|
+
if (err.metadata != null)
|
|
71452
|
+
this.metadata = err.metadata;
|
|
71453
|
+
if (err.billingAddress != null)
|
|
71454
|
+
this.billingAddress = err.billingAddress;
|
|
71375
71455
|
this.name = "UpdateIssuedCardError";
|
|
71376
71456
|
}
|
|
71377
71457
|
};
|
|
71378
71458
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
71379
71459
|
state: stringType().optional(),
|
|
71380
|
-
|
|
71381
|
-
|
|
71460
|
+
nickname: stringType().optional(),
|
|
71461
|
+
metadata: stringType().optional(),
|
|
71462
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
71382
71463
|
request$: instanceOfType(Request),
|
|
71383
71464
|
response$: instanceOfType(Response),
|
|
71384
71465
|
body$: stringType()
|
|
@@ -71391,8 +71472,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
71391
71472
|
});
|
|
71392
71473
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
71393
71474
|
state: stringType().optional(),
|
|
71394
|
-
|
|
71395
|
-
|
|
71475
|
+
nickname: stringType().optional(),
|
|
71476
|
+
metadata: stringType().optional(),
|
|
71477
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
71396
71478
|
}));
|
|
71397
71479
|
});
|
|
71398
71480
|
|
|
@@ -75361,6 +75443,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
75361
75443
|
});
|
|
75362
75444
|
});
|
|
75363
75445
|
|
|
75446
|
+
// src/models/operations/listcancellations.ts
|
|
75447
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
75448
|
+
var init_listcancellations = __esm(() => {
|
|
75449
|
+
init_esm();
|
|
75450
|
+
init_primitives();
|
|
75451
|
+
init_components();
|
|
75452
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
75453
|
+
accountID: stringType(),
|
|
75454
|
+
transferID: stringType()
|
|
75455
|
+
});
|
|
75456
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
75457
|
+
accountID: stringType(),
|
|
75458
|
+
transferID: stringType()
|
|
75459
|
+
});
|
|
75460
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
75461
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
75462
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
75463
|
+
}).transform((v2) => {
|
|
75464
|
+
return remap(v2, {
|
|
75465
|
+
Headers: "headers",
|
|
75466
|
+
Result: "result"
|
|
75467
|
+
});
|
|
75468
|
+
});
|
|
75469
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
75470
|
+
headers: recordType(arrayType(stringType())),
|
|
75471
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
75472
|
+
}).transform((v2) => {
|
|
75473
|
+
return remap(v2, {
|
|
75474
|
+
headers: "Headers",
|
|
75475
|
+
result: "Result"
|
|
75476
|
+
});
|
|
75477
|
+
});
|
|
75478
|
+
});
|
|
75479
|
+
|
|
75364
75480
|
// src/models/operations/listcapabilities.ts
|
|
75365
75481
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
75366
75482
|
var init_listcapabilities = __esm(() => {
|
|
@@ -78309,6 +78425,7 @@ var init_operations = __esm(() => {
|
|
|
78309
78425
|
init_listaccountterminalapplications();
|
|
78310
78426
|
init_listadjustments();
|
|
78311
78427
|
init_listbankaccounts();
|
|
78428
|
+
init_listcancellations();
|
|
78312
78429
|
init_listcapabilities();
|
|
78313
78430
|
init_listcards();
|
|
78314
78431
|
init_listconnectedaccountsforaccount();
|
|
@@ -78393,16 +78510,19 @@ var init_async = __esm(() => {
|
|
|
78393
78510
|
[Symbol.toStringTag] = "APIPromise";
|
|
78394
78511
|
constructor(p) {
|
|
78395
78512
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
78396
|
-
this.#unwrapped = p instanceof Promise ?
|
|
78513
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
78514
|
+
}
|
|
78515
|
+
#getUnwrapped() {
|
|
78516
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
78397
78517
|
}
|
|
78398
78518
|
then(onfulfilled, onrejected) {
|
|
78399
78519
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
78400
78520
|
}
|
|
78401
78521
|
catch(onrejected) {
|
|
78402
|
-
return this.#
|
|
78522
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
78403
78523
|
}
|
|
78404
78524
|
finally(onfinally) {
|
|
78405
|
-
return this.#
|
|
78525
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
78406
78526
|
}
|
|
78407
78527
|
$inspect() {
|
|
78408
78528
|
return this.#promise;
|
|
@@ -78725,21 +78845,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
78725
78845
|
};
|
|
78726
78846
|
tool$accountsCreate = {
|
|
78727
78847
|
name: "accounts-create",
|
|
78728
|
-
description: `You can create
|
|
78729
|
-
|
|
78848
|
+
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/).
|
|
78849
|
+
|
|
78850
|
+
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:
|
|
78851
|
+
+ 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.
|
|
78852
|
+
+ 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.
|
|
78730
78853
|
|
|
78731
|
-
If you're
|
|
78732
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
78733
|
-
This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the \`termsOfService\` field.
|
|
78734
|
-
If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
|
|
78854
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
78735
78855
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
78736
78856
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
78737
78857
|
|
|
78738
|
-
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/).
|
|
78739
|
-
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.
|
|
78858
|
+
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.
|
|
78740
78859
|
|
|
78741
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78742
|
-
to specify the \`/accounts.write\` scope.`,
|
|
78860
|
+
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.`,
|
|
78743
78861
|
args: args3,
|
|
78744
78862
|
tool: async (client, args4, ctx) => {
|
|
78745
78863
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -82778,7 +82896,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
82778
82896
|
};
|
|
82779
82897
|
tool$capabilitiesDisable = {
|
|
82780
82898
|
name: "capabilities-disable",
|
|
82781
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
82899
|
+
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.
|
|
82782
82900
|
|
|
82783
82901
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
82784
82902
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -82892,7 +83010,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
82892
83010
|
};
|
|
82893
83011
|
tool$capabilitiesGet = {
|
|
82894
83012
|
name: "capabilities-get",
|
|
82895
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
83013
|
+
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.
|
|
82896
83014
|
|
|
82897
83015
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
82898
83016
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -83005,7 +83123,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
83005
83123
|
name: "capabilities-list",
|
|
83006
83124
|
description: `Retrieve all the capabilities an account has requested.
|
|
83007
83125
|
|
|
83008
|
-
Read our [capabilities
|
|
83126
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
83009
83127
|
|
|
83010
83128
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
83011
83129
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -83118,7 +83236,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
83118
83236
|
};
|
|
83119
83237
|
tool$capabilitiesRequest = {
|
|
83120
83238
|
name: "capabilities-request",
|
|
83121
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
83239
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
83122
83240
|
|
|
83123
83241
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
83124
83242
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -83158,7 +83276,7 @@ async function $do42(client, request, options) {
|
|
|
83158
83276
|
charEncoding: "percent"
|
|
83159
83277
|
})
|
|
83160
83278
|
};
|
|
83161
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83279
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
83162
83280
|
const headers = new Headers(compactMap({
|
|
83163
83281
|
Accept: "application/json"
|
|
83164
83282
|
}));
|
|
@@ -83273,7 +83391,7 @@ async function $do43(client, request, options) {
|
|
|
83273
83391
|
charEncoding: "percent"
|
|
83274
83392
|
})
|
|
83275
83393
|
};
|
|
83276
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83394
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
83277
83395
|
const headers = new Headers(compactMap({
|
|
83278
83396
|
Accept: "application/json"
|
|
83279
83397
|
}));
|
|
@@ -83386,7 +83504,7 @@ async function $do44(client, request, options) {
|
|
|
83386
83504
|
charEncoding: "percent"
|
|
83387
83505
|
})
|
|
83388
83506
|
};
|
|
83389
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83507
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
83390
83508
|
const query = encodeFormQuery({
|
|
83391
83509
|
count: payload.count,
|
|
83392
83510
|
skip: payload.skip,
|
|
@@ -83503,7 +83621,7 @@ async function $do45(client, request, options) {
|
|
|
83503
83621
|
charEncoding: "percent"
|
|
83504
83622
|
})
|
|
83505
83623
|
};
|
|
83506
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83624
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
83507
83625
|
const headers = new Headers(compactMap({
|
|
83508
83626
|
"Content-Type": "application/json",
|
|
83509
83627
|
Accept: "application/json"
|
|
@@ -83620,7 +83738,7 @@ async function $do46(client, request, options) {
|
|
|
83620
83738
|
charEncoding: "percent"
|
|
83621
83739
|
})
|
|
83622
83740
|
};
|
|
83623
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
83741
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
83624
83742
|
const headers = new Headers(compactMap({
|
|
83625
83743
|
"Content-Type": "application/json",
|
|
83626
83744
|
Accept: "application/json"
|
|
@@ -96237,11 +96355,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
96237
96355
|
};
|
|
96238
96356
|
});
|
|
96239
96357
|
|
|
96240
|
-
// src/funcs/
|
|
96241
|
-
function
|
|
96358
|
+
// src/funcs/transfersListCancellations.ts
|
|
96359
|
+
function transfersListCancellations(client, request, options) {
|
|
96242
96360
|
return new APIPromise($do154(client, request, options));
|
|
96243
96361
|
}
|
|
96244
96362
|
async function $do154(client, request, options) {
|
|
96363
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96364
|
+
if (!parsed.ok) {
|
|
96365
|
+
return [parsed, { status: "invalid" }];
|
|
96366
|
+
}
|
|
96367
|
+
const payload = parsed.value;
|
|
96368
|
+
const body = null;
|
|
96369
|
+
const pathParams = {
|
|
96370
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
96371
|
+
explode: false,
|
|
96372
|
+
charEncoding: "percent"
|
|
96373
|
+
}),
|
|
96374
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
96375
|
+
explode: false,
|
|
96376
|
+
charEncoding: "percent"
|
|
96377
|
+
})
|
|
96378
|
+
};
|
|
96379
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
96380
|
+
const headers = new Headers(compactMap({
|
|
96381
|
+
Accept: "application/json"
|
|
96382
|
+
}));
|
|
96383
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
96384
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
96385
|
+
const context = {
|
|
96386
|
+
options: client._options,
|
|
96387
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
96388
|
+
operationID: "listCancellations",
|
|
96389
|
+
oAuth2Scopes: null,
|
|
96390
|
+
resolvedSecurity: requestSecurity,
|
|
96391
|
+
securitySource: client._options.security,
|
|
96392
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
96393
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
96394
|
+
};
|
|
96395
|
+
const requestRes = client._createRequest(context, {
|
|
96396
|
+
security: requestSecurity,
|
|
96397
|
+
method: "GET",
|
|
96398
|
+
baseURL: options?.serverURL,
|
|
96399
|
+
path,
|
|
96400
|
+
headers,
|
|
96401
|
+
body,
|
|
96402
|
+
userAgent: client._options.userAgent,
|
|
96403
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
96404
|
+
}, options);
|
|
96405
|
+
if (!requestRes.ok) {
|
|
96406
|
+
return [requestRes, { status: "invalid" }];
|
|
96407
|
+
}
|
|
96408
|
+
const req = requestRes.value;
|
|
96409
|
+
const doResult = await client._do(req, {
|
|
96410
|
+
context,
|
|
96411
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
96412
|
+
retryConfig: context.retryConfig,
|
|
96413
|
+
retryCodes: context.retryCodes
|
|
96414
|
+
});
|
|
96415
|
+
if (!doResult.ok) {
|
|
96416
|
+
return [doResult, { status: "request-error", request: req }];
|
|
96417
|
+
}
|
|
96418
|
+
const response = doResult.value;
|
|
96419
|
+
const responseFields = {
|
|
96420
|
+
HttpMeta: { Response: response, Request: req }
|
|
96421
|
+
};
|
|
96422
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
96423
|
+
hdrs: true,
|
|
96424
|
+
key: "Result"
|
|
96425
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
96426
|
+
if (!result.ok) {
|
|
96427
|
+
return [result, { status: "complete", request: req, response }];
|
|
96428
|
+
}
|
|
96429
|
+
return [result, { status: "complete", request: req, response }];
|
|
96430
|
+
}
|
|
96431
|
+
var init_transfersListCancellations = __esm(() => {
|
|
96432
|
+
init_encodings();
|
|
96433
|
+
init_http();
|
|
96434
|
+
init_matchers();
|
|
96435
|
+
init_primitives();
|
|
96436
|
+
init_schemas4();
|
|
96437
|
+
init_security();
|
|
96438
|
+
init_url();
|
|
96439
|
+
init_operations();
|
|
96440
|
+
init_async();
|
|
96441
|
+
});
|
|
96442
|
+
|
|
96443
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
96444
|
+
var args149, tool$transfersListCancellations;
|
|
96445
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
96446
|
+
init_transfersListCancellations();
|
|
96447
|
+
init_operations();
|
|
96448
|
+
init_tools();
|
|
96449
|
+
args149 = {
|
|
96450
|
+
request: ListCancellationsRequest$inboundSchema
|
|
96451
|
+
};
|
|
96452
|
+
tool$transfersListCancellations = {
|
|
96453
|
+
name: "transfers-list-cancellations",
|
|
96454
|
+
description: ` Get a list of cancellations for a transfer.
|
|
96455
|
+
|
|
96456
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
96457
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
96458
|
+
args: args149,
|
|
96459
|
+
tool: async (client, args150, ctx) => {
|
|
96460
|
+
const [result, apiCall] = await transfersListCancellations(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96461
|
+
if (!result.ok) {
|
|
96462
|
+
return {
|
|
96463
|
+
content: [{ type: "text", text: result.error.message }],
|
|
96464
|
+
isError: true
|
|
96465
|
+
};
|
|
96466
|
+
}
|
|
96467
|
+
const value = result.value.result;
|
|
96468
|
+
return formatResult(value, apiCall);
|
|
96469
|
+
}
|
|
96470
|
+
};
|
|
96471
|
+
});
|
|
96472
|
+
|
|
96473
|
+
// src/funcs/transfersListRefunds.ts
|
|
96474
|
+
function transfersListRefunds(client, request, options) {
|
|
96475
|
+
return new APIPromise($do155(client, request, options));
|
|
96476
|
+
}
|
|
96477
|
+
async function $do155(client, request, options) {
|
|
96245
96478
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96246
96479
|
if (!parsed.ok) {
|
|
96247
96480
|
return [parsed, { status: "invalid" }];
|
|
@@ -96323,12 +96556,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
96323
96556
|
});
|
|
96324
96557
|
|
|
96325
96558
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
96326
|
-
var
|
|
96559
|
+
var args150, tool$transfersListRefunds;
|
|
96327
96560
|
var init_transfersListRefunds2 = __esm(() => {
|
|
96328
96561
|
init_transfersListRefunds();
|
|
96329
96562
|
init_operations();
|
|
96330
96563
|
init_tools();
|
|
96331
|
-
|
|
96564
|
+
args150 = {
|
|
96332
96565
|
request: ListRefundsRequest$inboundSchema
|
|
96333
96566
|
};
|
|
96334
96567
|
tool$transfersListRefunds = {
|
|
@@ -96337,9 +96570,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
96337
96570
|
|
|
96338
96571
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96339
96572
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
96340
|
-
args:
|
|
96341
|
-
tool: async (client,
|
|
96342
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
96573
|
+
args: args150,
|
|
96574
|
+
tool: async (client, args151, ctx) => {
|
|
96575
|
+
const [result, apiCall] = await transfersListRefunds(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96343
96576
|
if (!result.ok) {
|
|
96344
96577
|
return {
|
|
96345
96578
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96354,9 +96587,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
96354
96587
|
|
|
96355
96588
|
// src/funcs/transfersUpdate.ts
|
|
96356
96589
|
function transfersUpdate(client, request, options) {
|
|
96357
|
-
return new APIPromise($
|
|
96590
|
+
return new APIPromise($do156(client, request, options));
|
|
96358
96591
|
}
|
|
96359
|
-
async function $
|
|
96592
|
+
async function $do156(client, request, options) {
|
|
96360
96593
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96361
96594
|
if (!parsed.ok) {
|
|
96362
96595
|
return [parsed, { status: "invalid" }];
|
|
@@ -96442,12 +96675,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
96442
96675
|
});
|
|
96443
96676
|
|
|
96444
96677
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
96445
|
-
var
|
|
96678
|
+
var args151, tool$transfersUpdate;
|
|
96446
96679
|
var init_transfersUpdate2 = __esm(() => {
|
|
96447
96680
|
init_transfersUpdate();
|
|
96448
96681
|
init_operations();
|
|
96449
96682
|
init_tools();
|
|
96450
|
-
|
|
96683
|
+
args151 = {
|
|
96451
96684
|
request: UpdateTransferRequest$inboundSchema
|
|
96452
96685
|
};
|
|
96453
96686
|
tool$transfersUpdate = {
|
|
@@ -96458,9 +96691,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
96458
96691
|
|
|
96459
96692
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96460
96693
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
96461
|
-
args:
|
|
96462
|
-
tool: async (client,
|
|
96463
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
96694
|
+
args: args151,
|
|
96695
|
+
tool: async (client, args152, ctx) => {
|
|
96696
|
+
const [result, apiCall] = await transfersUpdate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96464
96697
|
if (!result.ok) {
|
|
96465
96698
|
return {
|
|
96466
96699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96475,9 +96708,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
96475
96708
|
|
|
96476
96709
|
// src/funcs/underwritingGet.ts
|
|
96477
96710
|
function underwritingGet(client, request, options) {
|
|
96478
|
-
return new APIPromise($
|
|
96711
|
+
return new APIPromise($do157(client, request, options));
|
|
96479
96712
|
}
|
|
96480
|
-
async function $
|
|
96713
|
+
async function $do157(client, request, options) {
|
|
96481
96714
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96482
96715
|
if (!parsed.ok) {
|
|
96483
96716
|
return [parsed, { status: "invalid" }];
|
|
@@ -96555,12 +96788,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
96555
96788
|
});
|
|
96556
96789
|
|
|
96557
96790
|
// src/mcp-server/tools/underwritingGet.ts
|
|
96558
|
-
var
|
|
96791
|
+
var args152, tool$underwritingGet;
|
|
96559
96792
|
var init_underwritingGet2 = __esm(() => {
|
|
96560
96793
|
init_underwritingGet();
|
|
96561
96794
|
init_operations();
|
|
96562
96795
|
init_tools();
|
|
96563
|
-
|
|
96796
|
+
args152 = {
|
|
96564
96797
|
request: GetUnderwritingRequest$inboundSchema
|
|
96565
96798
|
};
|
|
96566
96799
|
tool$underwritingGet = {
|
|
@@ -96571,9 +96804,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96571
96804
|
|
|
96572
96805
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96573
96806
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
96574
|
-
args:
|
|
96575
|
-
tool: async (client,
|
|
96576
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
96807
|
+
args: args152,
|
|
96808
|
+
tool: async (client, args153, ctx) => {
|
|
96809
|
+
const [result, apiCall] = await underwritingGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96577
96810
|
if (!result.ok) {
|
|
96578
96811
|
return {
|
|
96579
96812
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96588,9 +96821,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
96588
96821
|
|
|
96589
96822
|
// src/funcs/underwritingSave.ts
|
|
96590
96823
|
function underwritingSave(client, request, options) {
|
|
96591
|
-
return new APIPromise($
|
|
96824
|
+
return new APIPromise($do158(client, request, options));
|
|
96592
96825
|
}
|
|
96593
|
-
async function $
|
|
96826
|
+
async function $do158(client, request, options) {
|
|
96594
96827
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96595
96828
|
if (!parsed.ok) {
|
|
96596
96829
|
return [parsed, { status: "invalid" }];
|
|
@@ -96674,12 +96907,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
96674
96907
|
});
|
|
96675
96908
|
|
|
96676
96909
|
// src/mcp-server/tools/underwritingSave.ts
|
|
96677
|
-
var
|
|
96910
|
+
var args153, tool$underwritingSave;
|
|
96678
96911
|
var init_underwritingSave2 = __esm(() => {
|
|
96679
96912
|
init_underwritingSave();
|
|
96680
96913
|
init_operations();
|
|
96681
96914
|
init_tools();
|
|
96682
|
-
|
|
96915
|
+
args153 = {
|
|
96683
96916
|
request: SaveUnderwritingRequest$inboundSchema
|
|
96684
96917
|
};
|
|
96685
96918
|
tool$underwritingSave = {
|
|
@@ -96690,9 +96923,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96690
96923
|
|
|
96691
96924
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96692
96925
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
96693
|
-
args:
|
|
96694
|
-
tool: async (client,
|
|
96695
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
96926
|
+
args: args153,
|
|
96927
|
+
tool: async (client, args154, ctx) => {
|
|
96928
|
+
const [result, apiCall] = await underwritingSave(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96696
96929
|
if (!result.ok) {
|
|
96697
96930
|
return {
|
|
96698
96931
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96707,9 +96940,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
96707
96940
|
|
|
96708
96941
|
// src/funcs/underwritingUpsert.ts
|
|
96709
96942
|
function underwritingUpsert(client, request, options) {
|
|
96710
|
-
return new APIPromise($
|
|
96943
|
+
return new APIPromise($do159(client, request, options));
|
|
96711
96944
|
}
|
|
96712
|
-
async function $
|
|
96945
|
+
async function $do159(client, request, options) {
|
|
96713
96946
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96714
96947
|
if (!parsed.ok) {
|
|
96715
96948
|
return [parsed, { status: "invalid" }];
|
|
@@ -96793,12 +97026,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
96793
97026
|
});
|
|
96794
97027
|
|
|
96795
97028
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
96796
|
-
var
|
|
97029
|
+
var args154, tool$underwritingUpsert;
|
|
96797
97030
|
var init_underwritingUpsert2 = __esm(() => {
|
|
96798
97031
|
init_underwritingUpsert();
|
|
96799
97032
|
init_operations();
|
|
96800
97033
|
init_tools();
|
|
96801
|
-
|
|
97034
|
+
args154 = {
|
|
96802
97035
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
96803
97036
|
};
|
|
96804
97037
|
tool$underwritingUpsert = {
|
|
@@ -96809,9 +97042,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
96809
97042
|
|
|
96810
97043
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96811
97044
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
96812
|
-
args:
|
|
96813
|
-
tool: async (client,
|
|
96814
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
97045
|
+
args: args154,
|
|
97046
|
+
tool: async (client, args155, ctx) => {
|
|
97047
|
+
const [result, apiCall] = await underwritingUpsert(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96815
97048
|
if (!result.ok) {
|
|
96816
97049
|
return {
|
|
96817
97050
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96826,9 +97059,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
96826
97059
|
|
|
96827
97060
|
// src/funcs/walletsCreate.ts
|
|
96828
97061
|
function walletsCreate(client, request, options) {
|
|
96829
|
-
return new APIPromise($
|
|
97062
|
+
return new APIPromise($do160(client, request, options));
|
|
96830
97063
|
}
|
|
96831
|
-
async function $
|
|
97064
|
+
async function $do160(client, request, options) {
|
|
96832
97065
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96833
97066
|
if (!parsed.ok) {
|
|
96834
97067
|
return [parsed, { status: "invalid" }];
|
|
@@ -96910,12 +97143,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
96910
97143
|
});
|
|
96911
97144
|
|
|
96912
97145
|
// src/mcp-server/tools/walletsCreate.ts
|
|
96913
|
-
var
|
|
97146
|
+
var args155, tool$walletsCreate;
|
|
96914
97147
|
var init_walletsCreate2 = __esm(() => {
|
|
96915
97148
|
init_walletsCreate();
|
|
96916
97149
|
init_operations();
|
|
96917
97150
|
init_tools();
|
|
96918
|
-
|
|
97151
|
+
args155 = {
|
|
96919
97152
|
request: CreateWalletRequest$inboundSchema
|
|
96920
97153
|
};
|
|
96921
97154
|
tool$walletsCreate = {
|
|
@@ -96926,9 +97159,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
96926
97159
|
|
|
96927
97160
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
96928
97161
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
96929
|
-
args:
|
|
96930
|
-
tool: async (client,
|
|
96931
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
97162
|
+
args: args155,
|
|
97163
|
+
tool: async (client, args156, ctx) => {
|
|
97164
|
+
const [result, apiCall] = await walletsCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96932
97165
|
if (!result.ok) {
|
|
96933
97166
|
return {
|
|
96934
97167
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96943,9 +97176,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
96943
97176
|
|
|
96944
97177
|
// src/funcs/walletsGet.ts
|
|
96945
97178
|
function walletsGet(client, request, options) {
|
|
96946
|
-
return new APIPromise($
|
|
97179
|
+
return new APIPromise($do161(client, request, options));
|
|
96947
97180
|
}
|
|
96948
|
-
async function $
|
|
97181
|
+
async function $do161(client, request, options) {
|
|
96949
97182
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96950
97183
|
if (!parsed.ok) {
|
|
96951
97184
|
return [parsed, { status: "invalid" }];
|
|
@@ -97027,12 +97260,12 @@ var init_walletsGet = __esm(() => {
|
|
|
97027
97260
|
});
|
|
97028
97261
|
|
|
97029
97262
|
// src/mcp-server/tools/walletsGet.ts
|
|
97030
|
-
var
|
|
97263
|
+
var args156, tool$walletsGet;
|
|
97031
97264
|
var init_walletsGet2 = __esm(() => {
|
|
97032
97265
|
init_walletsGet();
|
|
97033
97266
|
init_operations();
|
|
97034
97267
|
init_tools();
|
|
97035
|
-
|
|
97268
|
+
args156 = {
|
|
97036
97269
|
request: GetWalletRequest$inboundSchema
|
|
97037
97270
|
};
|
|
97038
97271
|
tool$walletsGet = {
|
|
@@ -97043,9 +97276,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
97043
97276
|
|
|
97044
97277
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97045
97278
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97046
|
-
args:
|
|
97047
|
-
tool: async (client,
|
|
97048
|
-
const [result, apiCall] = await walletsGet(client,
|
|
97279
|
+
args: args156,
|
|
97280
|
+
tool: async (client, args157, ctx) => {
|
|
97281
|
+
const [result, apiCall] = await walletsGet(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97049
97282
|
if (!result.ok) {
|
|
97050
97283
|
return {
|
|
97051
97284
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97060,9 +97293,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97060
97293
|
|
|
97061
97294
|
// src/funcs/walletsList.ts
|
|
97062
97295
|
function walletsList(client, request, options) {
|
|
97063
|
-
return new APIPromise($
|
|
97296
|
+
return new APIPromise($do162(client, request, options));
|
|
97064
97297
|
}
|
|
97065
|
-
async function $
|
|
97298
|
+
async function $do162(client, request, options) {
|
|
97066
97299
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97067
97300
|
if (!parsed.ok) {
|
|
97068
97301
|
return [parsed, { status: "invalid" }];
|
|
@@ -97150,12 +97383,12 @@ var init_walletsList = __esm(() => {
|
|
|
97150
97383
|
});
|
|
97151
97384
|
|
|
97152
97385
|
// src/mcp-server/tools/walletsList.ts
|
|
97153
|
-
var
|
|
97386
|
+
var args157, tool$walletsList;
|
|
97154
97387
|
var init_walletsList2 = __esm(() => {
|
|
97155
97388
|
init_walletsList();
|
|
97156
97389
|
init_operations();
|
|
97157
97390
|
init_tools();
|
|
97158
|
-
|
|
97391
|
+
args157 = {
|
|
97159
97392
|
request: ListWalletsRequest$inboundSchema
|
|
97160
97393
|
};
|
|
97161
97394
|
tool$walletsList = {
|
|
@@ -97166,9 +97399,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
97166
97399
|
|
|
97167
97400
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97168
97401
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97169
|
-
args:
|
|
97170
|
-
tool: async (client,
|
|
97171
|
-
const [result, apiCall] = await walletsList(client,
|
|
97402
|
+
args: args157,
|
|
97403
|
+
tool: async (client, args158, ctx) => {
|
|
97404
|
+
const [result, apiCall] = await walletsList(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97172
97405
|
if (!result.ok) {
|
|
97173
97406
|
return {
|
|
97174
97407
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97183,9 +97416,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97183
97416
|
|
|
97184
97417
|
// src/funcs/walletsUpdate.ts
|
|
97185
97418
|
function walletsUpdate(client, request, options) {
|
|
97186
|
-
return new APIPromise($
|
|
97419
|
+
return new APIPromise($do163(client, request, options));
|
|
97187
97420
|
}
|
|
97188
|
-
async function $
|
|
97421
|
+
async function $do163(client, request, options) {
|
|
97189
97422
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97190
97423
|
if (!parsed.ok) {
|
|
97191
97424
|
return [parsed, { status: "invalid" }];
|
|
@@ -97271,12 +97504,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
97271
97504
|
});
|
|
97272
97505
|
|
|
97273
97506
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
97274
|
-
var
|
|
97507
|
+
var args158, tool$walletsUpdate;
|
|
97275
97508
|
var init_walletsUpdate2 = __esm(() => {
|
|
97276
97509
|
init_walletsUpdate();
|
|
97277
97510
|
init_operations();
|
|
97278
97511
|
init_tools();
|
|
97279
|
-
|
|
97512
|
+
args158 = {
|
|
97280
97513
|
request: UpdateWalletRequest$inboundSchema
|
|
97281
97514
|
};
|
|
97282
97515
|
tool$walletsUpdate = {
|
|
@@ -97287,9 +97520,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
97287
97520
|
|
|
97288
97521
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97289
97522
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
97290
|
-
args:
|
|
97291
|
-
tool: async (client,
|
|
97292
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
97523
|
+
args: args158,
|
|
97524
|
+
tool: async (client, args159, ctx) => {
|
|
97525
|
+
const [result, apiCall] = await walletsUpdate(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97293
97526
|
if (!result.ok) {
|
|
97294
97527
|
return {
|
|
97295
97528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97304,9 +97537,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
97304
97537
|
|
|
97305
97538
|
// src/funcs/walletTransactionsGet.ts
|
|
97306
97539
|
function walletTransactionsGet(client, request, options) {
|
|
97307
|
-
return new APIPromise($
|
|
97540
|
+
return new APIPromise($do164(client, request, options));
|
|
97308
97541
|
}
|
|
97309
|
-
async function $
|
|
97542
|
+
async function $do164(client, request, options) {
|
|
97310
97543
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97311
97544
|
if (!parsed.ok) {
|
|
97312
97545
|
return [parsed, { status: "invalid" }];
|
|
@@ -97392,12 +97625,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
97392
97625
|
});
|
|
97393
97626
|
|
|
97394
97627
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
97395
|
-
var
|
|
97628
|
+
var args159, tool$walletTransactionsGet;
|
|
97396
97629
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
97397
97630
|
init_walletTransactionsGet();
|
|
97398
97631
|
init_operations();
|
|
97399
97632
|
init_tools();
|
|
97400
|
-
|
|
97633
|
+
args159 = {
|
|
97401
97634
|
request: GetWalletTransactionRequest$inboundSchema
|
|
97402
97635
|
};
|
|
97403
97636
|
tool$walletTransactionsGet = {
|
|
@@ -97408,9 +97641,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
97408
97641
|
|
|
97409
97642
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97410
97643
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97411
|
-
args:
|
|
97412
|
-
tool: async (client,
|
|
97413
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
97644
|
+
args: args159,
|
|
97645
|
+
tool: async (client, args160, ctx) => {
|
|
97646
|
+
const [result, apiCall] = await walletTransactionsGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97414
97647
|
if (!result.ok) {
|
|
97415
97648
|
return {
|
|
97416
97649
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97425,9 +97658,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97425
97658
|
|
|
97426
97659
|
// src/funcs/walletTransactionsList.ts
|
|
97427
97660
|
function walletTransactionsList(client, request, options) {
|
|
97428
|
-
return new APIPromise($
|
|
97661
|
+
return new APIPromise($do165(client, request, options));
|
|
97429
97662
|
}
|
|
97430
|
-
async function $
|
|
97663
|
+
async function $do165(client, request, options) {
|
|
97431
97664
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97432
97665
|
if (!parsed.ok) {
|
|
97433
97666
|
return [parsed, { status: "invalid" }];
|
|
@@ -97527,12 +97760,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
97527
97760
|
});
|
|
97528
97761
|
|
|
97529
97762
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
97530
|
-
var
|
|
97763
|
+
var args160, tool$walletTransactionsList;
|
|
97531
97764
|
var init_walletTransactionsList2 = __esm(() => {
|
|
97532
97765
|
init_walletTransactionsList();
|
|
97533
97766
|
init_operations();
|
|
97534
97767
|
init_tools();
|
|
97535
|
-
|
|
97768
|
+
args160 = {
|
|
97536
97769
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
97537
97770
|
};
|
|
97538
97771
|
tool$walletTransactionsList = {
|
|
@@ -97543,9 +97776,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
97543
97776
|
|
|
97544
97777
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97545
97778
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
97546
|
-
args:
|
|
97547
|
-
tool: async (client,
|
|
97548
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
97779
|
+
args: args160,
|
|
97780
|
+
tool: async (client, args161, ctx) => {
|
|
97781
|
+
const [result, apiCall] = await walletTransactionsList(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97549
97782
|
if (!result.ok) {
|
|
97550
97783
|
return {
|
|
97551
97784
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97560,9 +97793,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
97560
97793
|
|
|
97561
97794
|
// src/funcs/webhooksCreate.ts
|
|
97562
97795
|
function webhooksCreate(client, request, options) {
|
|
97563
|
-
return new APIPromise($
|
|
97796
|
+
return new APIPromise($do166(client, request, options));
|
|
97564
97797
|
}
|
|
97565
|
-
async function $
|
|
97798
|
+
async function $do166(client, request, options) {
|
|
97566
97799
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
97567
97800
|
if (!parsed.ok) {
|
|
97568
97801
|
return [parsed, { status: "invalid" }];
|
|
@@ -97639,20 +97872,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
97639
97872
|
});
|
|
97640
97873
|
|
|
97641
97874
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
97642
|
-
var
|
|
97875
|
+
var args161, tool$webhooksCreate;
|
|
97643
97876
|
var init_webhooksCreate2 = __esm(() => {
|
|
97644
97877
|
init_webhooksCreate();
|
|
97645
97878
|
init_components();
|
|
97646
97879
|
init_tools();
|
|
97647
|
-
|
|
97880
|
+
args161 = {
|
|
97648
97881
|
request: CreateWebhook$inboundSchema
|
|
97649
97882
|
};
|
|
97650
97883
|
tool$webhooksCreate = {
|
|
97651
97884
|
name: "webhooks-create",
|
|
97652
97885
|
description: `Create a new webhook for the account.`,
|
|
97653
|
-
args:
|
|
97654
|
-
tool: async (client,
|
|
97655
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
97886
|
+
args: args161,
|
|
97887
|
+
tool: async (client, args162, ctx) => {
|
|
97888
|
+
const [result, apiCall] = await webhooksCreate(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97656
97889
|
if (!result.ok) {
|
|
97657
97890
|
return {
|
|
97658
97891
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97667,9 +97900,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
97667
97900
|
|
|
97668
97901
|
// src/funcs/webhooksDisable.ts
|
|
97669
97902
|
function webhooksDisable(client, request, options) {
|
|
97670
|
-
return new APIPromise($
|
|
97903
|
+
return new APIPromise($do167(client, request, options));
|
|
97671
97904
|
}
|
|
97672
|
-
async function $
|
|
97905
|
+
async function $do167(client, request, options) {
|
|
97673
97906
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97674
97907
|
if (!parsed.ok) {
|
|
97675
97908
|
return [parsed, { status: "invalid" }];
|
|
@@ -97747,20 +97980,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
97747
97980
|
});
|
|
97748
97981
|
|
|
97749
97982
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
97750
|
-
var
|
|
97983
|
+
var args162, tool$webhooksDisable;
|
|
97751
97984
|
var init_webhooksDisable2 = __esm(() => {
|
|
97752
97985
|
init_webhooksDisable();
|
|
97753
97986
|
init_operations();
|
|
97754
97987
|
init_tools();
|
|
97755
|
-
|
|
97988
|
+
args162 = {
|
|
97756
97989
|
request: DisableWebhookRequest$inboundSchema
|
|
97757
97990
|
};
|
|
97758
97991
|
tool$webhooksDisable = {
|
|
97759
97992
|
name: "webhooks-disable",
|
|
97760
97993
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
97761
|
-
args:
|
|
97762
|
-
tool: async (client,
|
|
97763
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
97994
|
+
args: args162,
|
|
97995
|
+
tool: async (client, args163, ctx) => {
|
|
97996
|
+
const [result, apiCall] = await webhooksDisable(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97764
97997
|
if (!result.ok) {
|
|
97765
97998
|
return {
|
|
97766
97999
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97774,9 +98007,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
97774
98007
|
|
|
97775
98008
|
// src/funcs/webhooksGet.ts
|
|
97776
98009
|
function webhooksGet(client, request, options) {
|
|
97777
|
-
return new APIPromise($
|
|
98010
|
+
return new APIPromise($do168(client, request, options));
|
|
97778
98011
|
}
|
|
97779
|
-
async function $
|
|
98012
|
+
async function $do168(client, request, options) {
|
|
97780
98013
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97781
98014
|
if (!parsed.ok) {
|
|
97782
98015
|
return [parsed, { status: "invalid" }];
|
|
@@ -97854,20 +98087,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
97854
98087
|
});
|
|
97855
98088
|
|
|
97856
98089
|
// src/mcp-server/tools/webhooksGet.ts
|
|
97857
|
-
var
|
|
98090
|
+
var args163, tool$webhooksGet;
|
|
97858
98091
|
var init_webhooksGet2 = __esm(() => {
|
|
97859
98092
|
init_webhooksGet();
|
|
97860
98093
|
init_operations();
|
|
97861
98094
|
init_tools();
|
|
97862
|
-
|
|
98095
|
+
args163 = {
|
|
97863
98096
|
request: GetWebhookRequest$inboundSchema
|
|
97864
98097
|
};
|
|
97865
98098
|
tool$webhooksGet = {
|
|
97866
98099
|
name: "webhooks-get",
|
|
97867
98100
|
description: `Get details of a specific webhook.`,
|
|
97868
|
-
args:
|
|
97869
|
-
tool: async (client,
|
|
97870
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
98101
|
+
args: args163,
|
|
98102
|
+
tool: async (client, args164, ctx) => {
|
|
98103
|
+
const [result, apiCall] = await webhooksGet(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97871
98104
|
if (!result.ok) {
|
|
97872
98105
|
return {
|
|
97873
98106
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97882,9 +98115,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
97882
98115
|
|
|
97883
98116
|
// src/funcs/webhooksGetSecret.ts
|
|
97884
98117
|
function webhooksGetSecret(client, request, options) {
|
|
97885
|
-
return new APIPromise($
|
|
98118
|
+
return new APIPromise($do169(client, request, options));
|
|
97886
98119
|
}
|
|
97887
|
-
async function $
|
|
98120
|
+
async function $do169(client, request, options) {
|
|
97888
98121
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97889
98122
|
if (!parsed.ok) {
|
|
97890
98123
|
return [parsed, { status: "invalid" }];
|
|
@@ -97962,20 +98195,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
97962
98195
|
});
|
|
97963
98196
|
|
|
97964
98197
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
97965
|
-
var
|
|
98198
|
+
var args164, tool$webhooksGetSecret;
|
|
97966
98199
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
97967
98200
|
init_webhooksGetSecret();
|
|
97968
98201
|
init_operations();
|
|
97969
98202
|
init_tools();
|
|
97970
|
-
|
|
98203
|
+
args164 = {
|
|
97971
98204
|
request: GetWebhookSecretRequest$inboundSchema
|
|
97972
98205
|
};
|
|
97973
98206
|
tool$webhooksGetSecret = {
|
|
97974
98207
|
name: "webhooks-get-secret",
|
|
97975
98208
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
97976
|
-
args:
|
|
97977
|
-
tool: async (client,
|
|
97978
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
98209
|
+
args: args164,
|
|
98210
|
+
tool: async (client, args165, ctx) => {
|
|
98211
|
+
const [result, apiCall] = await webhooksGetSecret(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97979
98212
|
if (!result.ok) {
|
|
97980
98213
|
return {
|
|
97981
98214
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97990,9 +98223,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
97990
98223
|
|
|
97991
98224
|
// src/funcs/webhooksList.ts
|
|
97992
98225
|
function webhooksList(client, options) {
|
|
97993
|
-
return new APIPromise($
|
|
98226
|
+
return new APIPromise($do170(client, options));
|
|
97994
98227
|
}
|
|
97995
|
-
async function $
|
|
98228
|
+
async function $do170(client, options) {
|
|
97996
98229
|
const path = pathToFunc("/webhooks")();
|
|
97997
98230
|
const headers = new Headers(compactMap({
|
|
97998
98231
|
Accept: "application/json"
|
|
@@ -98078,9 +98311,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
98078
98311
|
|
|
98079
98312
|
// src/funcs/webhooksListEventTypes.ts
|
|
98080
98313
|
function webhooksListEventTypes(client, options) {
|
|
98081
|
-
return new APIPromise($
|
|
98314
|
+
return new APIPromise($do171(client, options));
|
|
98082
98315
|
}
|
|
98083
|
-
async function $
|
|
98316
|
+
async function $do171(client, options) {
|
|
98084
98317
|
const path = pathToFunc("/event-types")();
|
|
98085
98318
|
const headers = new Headers(compactMap({
|
|
98086
98319
|
Accept: "application/json"
|
|
@@ -98166,9 +98399,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
98166
98399
|
|
|
98167
98400
|
// src/funcs/webhooksPing.ts
|
|
98168
98401
|
function webhooksPing(client, request, options) {
|
|
98169
|
-
return new APIPromise($
|
|
98402
|
+
return new APIPromise($do172(client, request, options));
|
|
98170
98403
|
}
|
|
98171
|
-
async function $
|
|
98404
|
+
async function $do172(client, request, options) {
|
|
98172
98405
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98173
98406
|
if (!parsed.ok) {
|
|
98174
98407
|
return [parsed, { status: "invalid" }];
|
|
@@ -98246,20 +98479,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
98246
98479
|
});
|
|
98247
98480
|
|
|
98248
98481
|
// src/mcp-server/tools/webhooksPing.ts
|
|
98249
|
-
var
|
|
98482
|
+
var args165, tool$webhooksPing;
|
|
98250
98483
|
var init_webhooksPing2 = __esm(() => {
|
|
98251
98484
|
init_webhooksPing();
|
|
98252
98485
|
init_operations();
|
|
98253
98486
|
init_tools();
|
|
98254
|
-
|
|
98487
|
+
args165 = {
|
|
98255
98488
|
request: PingWebhookRequest$inboundSchema
|
|
98256
98489
|
};
|
|
98257
98490
|
tool$webhooksPing = {
|
|
98258
98491
|
name: "webhooks-ping",
|
|
98259
98492
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
98260
|
-
args:
|
|
98261
|
-
tool: async (client,
|
|
98262
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
98493
|
+
args: args165,
|
|
98494
|
+
tool: async (client, args166, ctx) => {
|
|
98495
|
+
const [result, apiCall] = await webhooksPing(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98263
98496
|
if (!result.ok) {
|
|
98264
98497
|
return {
|
|
98265
98498
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98274,9 +98507,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
98274
98507
|
|
|
98275
98508
|
// src/funcs/webhooksUpdate.ts
|
|
98276
98509
|
function webhooksUpdate(client, request, options) {
|
|
98277
|
-
return new APIPromise($
|
|
98510
|
+
return new APIPromise($do173(client, request, options));
|
|
98278
98511
|
}
|
|
98279
|
-
async function $
|
|
98512
|
+
async function $do173(client, request, options) {
|
|
98280
98513
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98281
98514
|
if (!parsed.ok) {
|
|
98282
98515
|
return [parsed, { status: "invalid" }];
|
|
@@ -98358,20 +98591,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
98358
98591
|
});
|
|
98359
98592
|
|
|
98360
98593
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
98361
|
-
var
|
|
98594
|
+
var args166, tool$webhooksUpdate;
|
|
98362
98595
|
var init_webhooksUpdate2 = __esm(() => {
|
|
98363
98596
|
init_webhooksUpdate();
|
|
98364
98597
|
init_operations();
|
|
98365
98598
|
init_tools();
|
|
98366
|
-
|
|
98599
|
+
args166 = {
|
|
98367
98600
|
request: UpdateWebhookRequest$inboundSchema
|
|
98368
98601
|
};
|
|
98369
98602
|
tool$webhooksUpdate = {
|
|
98370
98603
|
name: "webhooks-update",
|
|
98371
98604
|
description: `Update an existing webhook.`,
|
|
98372
|
-
args:
|
|
98373
|
-
tool: async (client,
|
|
98374
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
98605
|
+
args: args166,
|
|
98606
|
+
tool: async (client, args167, ctx) => {
|
|
98607
|
+
const [result, apiCall] = await webhooksUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98375
98608
|
if (!result.ok) {
|
|
98376
98609
|
return {
|
|
98377
98610
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98388,7 +98621,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
98388
98621
|
function createMCPServer(deps) {
|
|
98389
98622
|
const server = new McpServer({
|
|
98390
98623
|
name: "Moov",
|
|
98391
|
-
version: "26.3.
|
|
98624
|
+
version: "26.3.1"
|
|
98392
98625
|
});
|
|
98393
98626
|
const client = new MoovCore({
|
|
98394
98627
|
security: deps.security,
|
|
@@ -98521,6 +98754,7 @@ function createMCPServer(deps) {
|
|
|
98521
98754
|
tool(tool$transfersGet);
|
|
98522
98755
|
tool(tool$transfersUpdate);
|
|
98523
98756
|
tool(tool$transfersCreateCancellation);
|
|
98757
|
+
tool(tool$transfersListCancellations);
|
|
98524
98758
|
tool(tool$transfersGetCancellation);
|
|
98525
98759
|
tool(tool$transfersInitiateRefund);
|
|
98526
98760
|
tool(tool$transfersListRefunds);
|
|
@@ -98735,6 +98969,7 @@ var init_server2 = __esm(() => {
|
|
|
98735
98969
|
init_transfersGetRefund2();
|
|
98736
98970
|
init_transfersInitiateRefund2();
|
|
98737
98971
|
init_transfersList2();
|
|
98972
|
+
init_transfersListCancellations2();
|
|
98738
98973
|
init_transfersListRefunds2();
|
|
98739
98974
|
init_transfersUpdate2();
|
|
98740
98975
|
init_underwritingGet2();
|
|
@@ -99956,7 +100191,7 @@ var routes = rn({
|
|
|
99956
100191
|
var app = Ve(routes, {
|
|
99957
100192
|
name: "mcp",
|
|
99958
100193
|
versionInfo: {
|
|
99959
|
-
currentVersion: "26.3.
|
|
100194
|
+
currentVersion: "26.3.1"
|
|
99960
100195
|
}
|
|
99961
100196
|
});
|
|
99962
100197
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -99964,5 +100199,5 @@ export {
|
|
|
99964
100199
|
app
|
|
99965
100200
|
};
|
|
99966
100201
|
|
|
99967
|
-
//# debugId=
|
|
100202
|
+
//# debugId=ED5EC5D39C97A85864756E2164756E21
|
|
99968
100203
|
//# sourceMappingURL=mcp-server.js.map
|