@moovio/sdk 24.3.0 → 24.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 +79 -75
- package/bin/mcp-server.js +547 -312
- package/bin/mcp-server.js.map +55 -56
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createaccount.d.ts +9 -0
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -3
- package/models/components/fullissuedcard.d.ts +25 -9
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +1 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -4
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +1 -4
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js +0 -63
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js +0 -63
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- package/src/models/components/createauthorizeduserupdate.ts +0 -68
package/bin/mcp-server.js
CHANGED
|
@@ -37121,6 +37121,57 @@ function remap(inp, mappings) {
|
|
|
37121
37121
|
}
|
|
37122
37122
|
return out;
|
|
37123
37123
|
}
|
|
37124
|
+
function combineSignals(...signals) {
|
|
37125
|
+
const filtered = [];
|
|
37126
|
+
for (const signal of signals) {
|
|
37127
|
+
if (signal) {
|
|
37128
|
+
filtered.push(signal);
|
|
37129
|
+
}
|
|
37130
|
+
}
|
|
37131
|
+
switch (filtered.length) {
|
|
37132
|
+
case 0:
|
|
37133
|
+
case 1:
|
|
37134
|
+
return filtered[0] || null;
|
|
37135
|
+
default:
|
|
37136
|
+
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
|
|
37137
|
+
return AbortSignal.any(filtered);
|
|
37138
|
+
}
|
|
37139
|
+
return abortSignalAny(filtered);
|
|
37140
|
+
}
|
|
37141
|
+
}
|
|
37142
|
+
function abortSignalAny(signals) {
|
|
37143
|
+
const controller = new AbortController;
|
|
37144
|
+
const result = controller.signal;
|
|
37145
|
+
if (!signals.length) {
|
|
37146
|
+
return controller.signal;
|
|
37147
|
+
}
|
|
37148
|
+
if (signals.length === 1) {
|
|
37149
|
+
return signals[0] || controller.signal;
|
|
37150
|
+
}
|
|
37151
|
+
for (const signal of signals) {
|
|
37152
|
+
if (signal.aborted) {
|
|
37153
|
+
return signal;
|
|
37154
|
+
}
|
|
37155
|
+
}
|
|
37156
|
+
function abort() {
|
|
37157
|
+
controller.abort(this.reason);
|
|
37158
|
+
clean();
|
|
37159
|
+
}
|
|
37160
|
+
const signalRefs = [];
|
|
37161
|
+
function clean() {
|
|
37162
|
+
for (const signalRef of signalRefs) {
|
|
37163
|
+
const signal = signalRef.deref();
|
|
37164
|
+
if (signal) {
|
|
37165
|
+
signal.removeEventListener("abort", abort);
|
|
37166
|
+
}
|
|
37167
|
+
}
|
|
37168
|
+
}
|
|
37169
|
+
for (const signal of signals) {
|
|
37170
|
+
signalRefs.push(new WeakRef(signal));
|
|
37171
|
+
signal.addEventListener("abort", abort);
|
|
37172
|
+
}
|
|
37173
|
+
return result;
|
|
37174
|
+
}
|
|
37124
37175
|
function compactMap(values) {
|
|
37125
37176
|
const out = {};
|
|
37126
37177
|
for (const [k2, v2] of Object.entries(values)) {
|
|
@@ -37136,6 +37187,20 @@ function allRequired(v2) {
|
|
|
37136
37187
|
}
|
|
37137
37188
|
return v2;
|
|
37138
37189
|
}
|
|
37190
|
+
function isPlainObject2(value) {
|
|
37191
|
+
if (value === null || typeof value !== "object")
|
|
37192
|
+
return false;
|
|
37193
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
37194
|
+
return false;
|
|
37195
|
+
const proto = Object.getPrototypeOf(value);
|
|
37196
|
+
if (proto === null || proto === Object.prototype)
|
|
37197
|
+
return true;
|
|
37198
|
+
try {
|
|
37199
|
+
return Object.getPrototypeOf(proto) === null;
|
|
37200
|
+
} catch {
|
|
37201
|
+
return false;
|
|
37202
|
+
}
|
|
37203
|
+
}
|
|
37139
37204
|
var init_primitives = () => {};
|
|
37140
37205
|
|
|
37141
37206
|
// node_modules/zod/dist/esm/v4/mini/parse.js
|
|
@@ -39629,7 +39694,7 @@ class Protocol {
|
|
|
39629
39694
|
};
|
|
39630
39695
|
}
|
|
39631
39696
|
}
|
|
39632
|
-
function
|
|
39697
|
+
function isPlainObject3(value) {
|
|
39633
39698
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
39634
39699
|
}
|
|
39635
39700
|
function mergeCapabilities(base, additional) {
|
|
@@ -39640,7 +39705,7 @@ function mergeCapabilities(base, additional) {
|
|
|
39640
39705
|
if (addValue === undefined)
|
|
39641
39706
|
continue;
|
|
39642
39707
|
const baseValue = result[k2];
|
|
39643
|
-
if (
|
|
39708
|
+
if (isPlainObject3(baseValue) && isPlainObject3(addValue)) {
|
|
39644
39709
|
result[k2] = { ...baseValue, ...addValue };
|
|
39645
39710
|
} else {
|
|
39646
39711
|
result[k2] = addValue;
|
|
@@ -52909,9 +52974,9 @@ var init_config = __esm(() => {
|
|
|
52909
52974
|
SDK_METADATA = {
|
|
52910
52975
|
language: "typescript",
|
|
52911
52976
|
openapiDocVersion: "v2024.01.00",
|
|
52912
|
-
sdkVersion: "24.3.
|
|
52913
|
-
genVersion: "2.
|
|
52914
|
-
userAgent: "speakeasy-sdk/typescript 24.3.
|
|
52977
|
+
sdkVersion: "24.3.1",
|
|
52978
|
+
genVersion: "2.910.1",
|
|
52979
|
+
userAgent: "speakeasy-sdk/typescript 24.3.1 2.910.1 v2024.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",
|
|
@@ -56343,20 +56433,6 @@ var init_asynctransfer = __esm(() => {
|
|
|
56343
56433
|
});
|
|
56344
56434
|
});
|
|
56345
56435
|
|
|
56346
|
-
// src/models/components/authorizeduser.ts
|
|
56347
|
-
var AuthorizedUser$inboundSchema, AuthorizedUser$outboundSchema;
|
|
56348
|
-
var init_authorizeduser = __esm(() => {
|
|
56349
|
-
init_esm();
|
|
56350
|
-
AuthorizedUser$inboundSchema = objectType({
|
|
56351
|
-
firstName: stringType(),
|
|
56352
|
-
lastName: stringType()
|
|
56353
|
-
});
|
|
56354
|
-
AuthorizedUser$outboundSchema = objectType({
|
|
56355
|
-
firstName: stringType(),
|
|
56356
|
-
lastName: stringType()
|
|
56357
|
-
});
|
|
56358
|
-
});
|
|
56359
|
-
|
|
56360
56436
|
// src/models/components/tokentype.ts
|
|
56361
56437
|
var TokenType, TokenType$inboundSchema, TokenType$outboundSchema;
|
|
56362
56438
|
var init_tokentype = __esm(() => {
|
|
@@ -60602,57 +60678,6 @@ var init_createapplepaysession = __esm(() => {
|
|
|
60602
60678
|
});
|
|
60603
60679
|
});
|
|
60604
60680
|
|
|
60605
|
-
// src/models/components/createauthorizeduser.ts
|
|
60606
|
-
var CreateAuthorizedUser$inboundSchema, CreateAuthorizedUser$outboundSchema;
|
|
60607
|
-
var init_createauthorizeduser = __esm(() => {
|
|
60608
|
-
init_esm();
|
|
60609
|
-
init_birthdate();
|
|
60610
|
-
CreateAuthorizedUser$inboundSchema = objectType({
|
|
60611
|
-
firstName: stringType(),
|
|
60612
|
-
lastName: stringType(),
|
|
60613
|
-
birthDate: BirthDate$inboundSchema.optional()
|
|
60614
|
-
});
|
|
60615
|
-
CreateAuthorizedUser$outboundSchema = objectType({
|
|
60616
|
-
firstName: stringType(),
|
|
60617
|
-
lastName: stringType(),
|
|
60618
|
-
birthDate: BirthDate$outboundSchema.optional()
|
|
60619
|
-
});
|
|
60620
|
-
});
|
|
60621
|
-
|
|
60622
|
-
// src/models/components/createauthorizedusererror.ts
|
|
60623
|
-
var CreateAuthorizedUserError$inboundSchema, CreateAuthorizedUserError$outboundSchema;
|
|
60624
|
-
var init_createauthorizedusererror = __esm(() => {
|
|
60625
|
-
init_esm();
|
|
60626
|
-
init_birthdateerror();
|
|
60627
|
-
CreateAuthorizedUserError$inboundSchema = objectType({
|
|
60628
|
-
firstName: stringType().optional(),
|
|
60629
|
-
lastName: stringType().optional(),
|
|
60630
|
-
birthDate: BirthDateError$inboundSchema.optional()
|
|
60631
|
-
});
|
|
60632
|
-
CreateAuthorizedUserError$outboundSchema = objectType({
|
|
60633
|
-
firstName: stringType().optional(),
|
|
60634
|
-
lastName: stringType().optional(),
|
|
60635
|
-
birthDate: BirthDateError$outboundSchema.optional()
|
|
60636
|
-
});
|
|
60637
|
-
});
|
|
60638
|
-
|
|
60639
|
-
// src/models/components/createauthorizeduserupdate.ts
|
|
60640
|
-
var CreateAuthorizedUserUpdate$inboundSchema, CreateAuthorizedUserUpdate$outboundSchema;
|
|
60641
|
-
var init_createauthorizeduserupdate = __esm(() => {
|
|
60642
|
-
init_esm();
|
|
60643
|
-
init_birthdateupdate();
|
|
60644
|
-
CreateAuthorizedUserUpdate$inboundSchema = objectType({
|
|
60645
|
-
firstName: stringType().optional(),
|
|
60646
|
-
lastName: stringType().optional(),
|
|
60647
|
-
birthDate: BirthDateUpdate$inboundSchema.optional()
|
|
60648
|
-
});
|
|
60649
|
-
CreateAuthorizedUserUpdate$outboundSchema = objectType({
|
|
60650
|
-
firstName: stringType().optional(),
|
|
60651
|
-
lastName: stringType().optional(),
|
|
60652
|
-
birthDate: BirthDateUpdate$outboundSchema.optional()
|
|
60653
|
-
});
|
|
60654
|
-
});
|
|
60655
|
-
|
|
60656
60681
|
// src/models/components/phonenumbererror.ts
|
|
60657
60682
|
var PhoneNumberError$inboundSchema, PhoneNumberError$outboundSchema;
|
|
60658
60683
|
var init_phonenumbererror = __esm(() => {
|
|
@@ -62337,7 +62362,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
62337
62362
|
WalletCreated: "wallet.created",
|
|
62338
62363
|
WalletUpdated: "wallet.updated",
|
|
62339
62364
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
62340
|
-
BillingStatementCreated: "billingStatement.created"
|
|
62365
|
+
BillingStatementCreated: "billingStatement.created",
|
|
62366
|
+
AuthorizationExpiring: "authorization.expiring"
|
|
62341
62367
|
};
|
|
62342
62368
|
WebhookEventType$inboundSchema = nativeEnumType(WebhookEventType);
|
|
62343
62369
|
WebhookEventType$outboundSchema = WebhookEventType$inboundSchema;
|
|
@@ -63107,7 +63133,7 @@ var init_issuingcontrols = __esm(() => {
|
|
|
63107
63133
|
var FullIssuedCard$inboundSchema, FullIssuedCard$outboundSchema;
|
|
63108
63134
|
var init_fullissuedcard = __esm(() => {
|
|
63109
63135
|
init_esm();
|
|
63110
|
-
|
|
63136
|
+
init_address();
|
|
63111
63137
|
init_cardbrand();
|
|
63112
63138
|
init_cardexpiration();
|
|
63113
63139
|
init_issuedcardformfactor();
|
|
@@ -63118,13 +63144,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63118
63144
|
brand: CardBrand$inboundSchema,
|
|
63119
63145
|
lastFourCardNumber: stringType(),
|
|
63120
63146
|
expiration: CardExpiration$inboundSchema,
|
|
63121
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63122
|
-
memo: stringType().optional(),
|
|
63123
63147
|
fundingWalletID: stringType(),
|
|
63148
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63149
|
+
nickname: stringType().optional(),
|
|
63150
|
+
metadata: recordType(stringType()).optional(),
|
|
63151
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63124
63152
|
state: IssuedCardState$inboundSchema,
|
|
63125
63153
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63126
63154
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63127
63155
|
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63156
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63128
63157
|
pan: stringType(),
|
|
63129
63158
|
cvv: stringType()
|
|
63130
63159
|
});
|
|
@@ -63133,13 +63162,16 @@ var init_fullissuedcard = __esm(() => {
|
|
|
63133
63162
|
brand: CardBrand$outboundSchema,
|
|
63134
63163
|
lastFourCardNumber: stringType(),
|
|
63135
63164
|
expiration: CardExpiration$outboundSchema,
|
|
63136
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63137
|
-
memo: stringType().optional(),
|
|
63138
63165
|
fundingWalletID: stringType(),
|
|
63166
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63167
|
+
nickname: stringType().optional(),
|
|
63168
|
+
metadata: recordType(stringType()).optional(),
|
|
63169
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63139
63170
|
state: IssuedCardState$outboundSchema,
|
|
63140
63171
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63141
63172
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63142
63173
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63174
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
63143
63175
|
pan: stringType(),
|
|
63144
63176
|
cvv: stringType()
|
|
63145
63177
|
});
|
|
@@ -63465,7 +63497,7 @@ var init_invoicestatus = __esm(() => {
|
|
|
63465
63497
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
63466
63498
|
var init_issuedcard = __esm(() => {
|
|
63467
63499
|
init_esm();
|
|
63468
|
-
|
|
63500
|
+
init_address();
|
|
63469
63501
|
init_cardbrand();
|
|
63470
63502
|
init_cardexpiration();
|
|
63471
63503
|
init_issuedcardformfactor();
|
|
@@ -63476,26 +63508,32 @@ var init_issuedcard = __esm(() => {
|
|
|
63476
63508
|
brand: CardBrand$inboundSchema,
|
|
63477
63509
|
lastFourCardNumber: stringType(),
|
|
63478
63510
|
expiration: CardExpiration$inboundSchema,
|
|
63479
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
63480
|
-
memo: stringType().optional(),
|
|
63481
63511
|
fundingWalletID: stringType(),
|
|
63512
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63513
|
+
nickname: stringType().optional(),
|
|
63514
|
+
metadata: recordType(stringType()).optional(),
|
|
63515
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
63482
63516
|
state: IssuedCardState$inboundSchema,
|
|
63483
63517
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
63484
63518
|
controls: IssuingControls$inboundSchema.optional(),
|
|
63485
|
-
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63519
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
63520
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
63486
63521
|
});
|
|
63487
63522
|
IssuedCard$outboundSchema = objectType({
|
|
63488
63523
|
issuedCardID: stringType(),
|
|
63489
63524
|
brand: CardBrand$outboundSchema,
|
|
63490
63525
|
lastFourCardNumber: stringType(),
|
|
63491
63526
|
expiration: CardExpiration$outboundSchema,
|
|
63492
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
63493
|
-
memo: stringType().optional(),
|
|
63494
63527
|
fundingWalletID: stringType(),
|
|
63528
|
+
authorizedUserAccountID: stringType().optional(),
|
|
63529
|
+
nickname: stringType().optional(),
|
|
63530
|
+
metadata: recordType(stringType()).optional(),
|
|
63531
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
63495
63532
|
state: IssuedCardState$outboundSchema,
|
|
63496
63533
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
63497
63534
|
controls: IssuingControls$outboundSchema.optional(),
|
|
63498
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
63535
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
63536
|
+
updatedOn: dateType().transform((v2) => v2.toISOString())
|
|
63499
63537
|
});
|
|
63500
63538
|
});
|
|
63501
63539
|
|
|
@@ -65432,23 +65470,22 @@ var init_representativeresponsibilitieserror = __esm(() => {
|
|
|
65432
65470
|
var RequestCard$inboundSchema, RequestCard$outboundSchema;
|
|
65433
65471
|
var init_requestcard = __esm(() => {
|
|
65434
65472
|
init_esm();
|
|
65473
|
+
init_address();
|
|
65435
65474
|
init_cardexpiration();
|
|
65436
|
-
init_createauthorizeduser();
|
|
65437
|
-
init_issuedcardformfactor();
|
|
65438
65475
|
init_issuingcontrols();
|
|
65439
65476
|
RequestCard$inboundSchema = objectType({
|
|
65440
|
-
|
|
65441
|
-
|
|
65442
|
-
|
|
65443
|
-
|
|
65477
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65478
|
+
nickname: stringType().optional(),
|
|
65479
|
+
metadata: recordType(stringType()).optional(),
|
|
65480
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
65444
65481
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
65445
65482
|
controls: IssuingControls$inboundSchema.optional()
|
|
65446
65483
|
});
|
|
65447
65484
|
RequestCard$outboundSchema = objectType({
|
|
65448
|
-
|
|
65449
|
-
|
|
65450
|
-
|
|
65451
|
-
|
|
65485
|
+
authorizedUserAccountID: stringType().optional(),
|
|
65486
|
+
nickname: stringType().optional(),
|
|
65487
|
+
metadata: recordType(stringType()).optional(),
|
|
65488
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
65452
65489
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
65453
65490
|
controls: IssuingControls$outboundSchema.optional()
|
|
65454
65491
|
});
|
|
@@ -66323,20 +66360,37 @@ var init_updateissuedcardstate = __esm(() => {
|
|
|
66323
66360
|
});
|
|
66324
66361
|
|
|
66325
66362
|
// src/models/components/updateissuedcard.ts
|
|
66326
|
-
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66363
|
+
var BillingAddress$inboundSchema, BillingAddress$outboundSchema, UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
66327
66364
|
var init_updateissuedcard = __esm(() => {
|
|
66328
66365
|
init_esm();
|
|
66329
|
-
init_createauthorizeduserupdate();
|
|
66330
66366
|
init_updateissuedcardstate();
|
|
66367
|
+
BillingAddress$inboundSchema = objectType({
|
|
66368
|
+
addressLine1: stringType().optional(),
|
|
66369
|
+
addressLine2: stringType().optional(),
|
|
66370
|
+
city: stringType().optional(),
|
|
66371
|
+
stateOrProvince: stringType().optional(),
|
|
66372
|
+
postalCode: stringType().optional(),
|
|
66373
|
+
country: stringType().optional()
|
|
66374
|
+
});
|
|
66375
|
+
BillingAddress$outboundSchema = objectType({
|
|
66376
|
+
addressLine1: stringType().optional(),
|
|
66377
|
+
addressLine2: stringType().optional(),
|
|
66378
|
+
city: stringType().optional(),
|
|
66379
|
+
stateOrProvince: stringType().optional(),
|
|
66380
|
+
postalCode: stringType().optional(),
|
|
66381
|
+
country: stringType().optional()
|
|
66382
|
+
});
|
|
66331
66383
|
UpdateIssuedCard$inboundSchema = objectType({
|
|
66332
66384
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
66333
|
-
|
|
66334
|
-
|
|
66385
|
+
nickname: nullableType(stringType()).optional(),
|
|
66386
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66387
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$inboundSchema)).optional()
|
|
66335
66388
|
});
|
|
66336
66389
|
UpdateIssuedCard$outboundSchema = objectType({
|
|
66337
66390
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
66338
|
-
|
|
66339
|
-
|
|
66391
|
+
nickname: nullableType(stringType()).optional(),
|
|
66392
|
+
metadata: nullableType(recordType(stringType())).optional(),
|
|
66393
|
+
billingAddress: nullableType(lazyType(() => BillingAddress$outboundSchema)).optional()
|
|
66340
66394
|
});
|
|
66341
66395
|
});
|
|
66342
66396
|
|
|
@@ -66734,6 +66788,24 @@ var init_webhookdataaccountupdated = __esm(() => {
|
|
|
66734
66788
|
});
|
|
66735
66789
|
});
|
|
66736
66790
|
|
|
66791
|
+
// src/models/components/webhookdataauthorizationexpiring.ts
|
|
66792
|
+
var WebhookDataAuthorizationExpiring$inboundSchema, WebhookDataAuthorizationExpiring$outboundSchema;
|
|
66793
|
+
var init_webhookdataauthorizationexpiring = __esm(() => {
|
|
66794
|
+
init_esm();
|
|
66795
|
+
WebhookDataAuthorizationExpiring$inboundSchema = objectType({
|
|
66796
|
+
merchantAccountID: stringType(),
|
|
66797
|
+
partnerAccountID: stringType(),
|
|
66798
|
+
authorizationID: stringType(),
|
|
66799
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
66800
|
+
});
|
|
66801
|
+
WebhookDataAuthorizationExpiring$outboundSchema = objectType({
|
|
66802
|
+
merchantAccountID: stringType(),
|
|
66803
|
+
partnerAccountID: stringType(),
|
|
66804
|
+
authorizationID: stringType(),
|
|
66805
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
66806
|
+
});
|
|
66807
|
+
});
|
|
66808
|
+
|
|
66737
66809
|
// src/models/components/webhookdatabalanceupdated.ts
|
|
66738
66810
|
var WebhookDataBalanceUpdated$inboundSchema, WebhookDataBalanceUpdated$outboundSchema;
|
|
66739
66811
|
var init_webhookdatabalanceupdated = __esm(() => {
|
|
@@ -67108,10 +67180,12 @@ var WebhookDataSweepCreated$inboundSchema, WebhookDataSweepCreated$outboundSchem
|
|
|
67108
67180
|
var init_webhookdatasweepcreated = __esm(() => {
|
|
67109
67181
|
init_esm();
|
|
67110
67182
|
WebhookDataSweepCreated$inboundSchema = objectType({
|
|
67183
|
+
accountID: stringType(),
|
|
67111
67184
|
walletID: stringType(),
|
|
67112
67185
|
sweepID: stringType()
|
|
67113
67186
|
});
|
|
67114
67187
|
WebhookDataSweepCreated$outboundSchema = objectType({
|
|
67188
|
+
accountID: stringType(),
|
|
67115
67189
|
walletID: stringType(),
|
|
67116
67190
|
sweepID: stringType()
|
|
67117
67191
|
});
|
|
@@ -67123,12 +67197,14 @@ var init_webhookdatasweepupdated = __esm(() => {
|
|
|
67123
67197
|
init_esm();
|
|
67124
67198
|
init_sweepstatus();
|
|
67125
67199
|
WebhookDataSweepUpdated$inboundSchema = objectType({
|
|
67200
|
+
accountID: stringType(),
|
|
67126
67201
|
walletID: stringType(),
|
|
67127
67202
|
sweepID: stringType(),
|
|
67128
67203
|
transferID: stringType().optional(),
|
|
67129
67204
|
status: SweepStatus$inboundSchema
|
|
67130
67205
|
});
|
|
67131
67206
|
WebhookDataSweepUpdated$outboundSchema = objectType({
|
|
67207
|
+
accountID: stringType(),
|
|
67132
67208
|
walletID: stringType(),
|
|
67133
67209
|
sweepID: stringType(),
|
|
67134
67210
|
transferID: stringType().optional(),
|
|
@@ -67369,6 +67445,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67369
67445
|
init_webhookdataaccountcreated();
|
|
67370
67446
|
init_webhookdataaccountdisconnected();
|
|
67371
67447
|
init_webhookdataaccountupdated();
|
|
67448
|
+
init_webhookdataauthorizationexpiring();
|
|
67372
67449
|
init_webhookdatabalanceupdated();
|
|
67373
67450
|
init_webhookdatabankaccountcreated();
|
|
67374
67451
|
init_webhookdatabankaccountdeleted();
|
|
@@ -67408,7 +67485,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67408
67485
|
WebhookDataTransferUpdated$inboundSchema,
|
|
67409
67486
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
67410
67487
|
WebhookDataRefundUpdated$inboundSchema,
|
|
67488
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
67411
67489
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
67490
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
67412
67491
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
67413
67492
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
67414
67493
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -67419,7 +67498,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67419
67498
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
67420
67499
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
67421
67500
|
WebhookDataRefundCreated$inboundSchema,
|
|
67422
|
-
|
|
67501
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
67423
67502
|
WebhookDataTicketUpdated$inboundSchema,
|
|
67424
67503
|
WebhookDataTransferCreated$inboundSchema,
|
|
67425
67504
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -67429,7 +67508,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67429
67508
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
67430
67509
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
67431
67510
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
67432
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
67433
67511
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
67434
67512
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
67435
67513
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -67447,7 +67525,9 @@ var init_webhookdata = __esm(() => {
|
|
|
67447
67525
|
WebhookDataTransferUpdated$outboundSchema,
|
|
67448
67526
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
67449
67527
|
WebhookDataRefundUpdated$outboundSchema,
|
|
67528
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
67450
67529
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
67530
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
67451
67531
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
67452
67532
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
67453
67533
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -67458,7 +67538,7 @@ var init_webhookdata = __esm(() => {
|
|
|
67458
67538
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
67459
67539
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
67460
67540
|
WebhookDataRefundCreated$outboundSchema,
|
|
67461
|
-
|
|
67541
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
67462
67542
|
WebhookDataTicketUpdated$outboundSchema,
|
|
67463
67543
|
WebhookDataTransferCreated$outboundSchema,
|
|
67464
67544
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -67468,7 +67548,6 @@ var init_webhookdata = __esm(() => {
|
|
|
67468
67548
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
67469
67549
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
67470
67550
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
67471
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
67472
67551
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
67473
67552
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
67474
67553
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -67565,7 +67644,6 @@ var init_components = __esm(() => {
|
|
|
67565
67644
|
init_assignproductimagevalidationerror();
|
|
67566
67645
|
init_asynccreatedrefund();
|
|
67567
67646
|
init_asynctransfer();
|
|
67568
|
-
init_authorizeduser();
|
|
67569
67647
|
init_authtoken();
|
|
67570
67648
|
init_authtokenrequest();
|
|
67571
67649
|
init_bankaccount();
|
|
@@ -67641,9 +67719,6 @@ var init_components = __esm(() => {
|
|
|
67641
67719
|
init_createaccount();
|
|
67642
67720
|
init_createaccountsettings();
|
|
67643
67721
|
init_createapplepaysession();
|
|
67644
|
-
init_createauthorizeduser();
|
|
67645
|
-
init_createauthorizedusererror();
|
|
67646
|
-
init_createauthorizeduserupdate();
|
|
67647
67722
|
init_createbusinesserror();
|
|
67648
67723
|
init_createbusinessprofile();
|
|
67649
67724
|
init_createdtransfer();
|
|
@@ -67976,6 +68051,7 @@ var init_components = __esm(() => {
|
|
|
67976
68051
|
init_webhookdataaccountcreated();
|
|
67977
68052
|
init_webhookdataaccountdisconnected();
|
|
67978
68053
|
init_webhookdataaccountupdated();
|
|
68054
|
+
init_webhookdataauthorizationexpiring();
|
|
67979
68055
|
init_webhookdatabalanceupdated();
|
|
67980
68056
|
init_webhookdatabankaccountcreated();
|
|
67981
68057
|
init_webhookdatabankaccountdeleted();
|
|
@@ -69559,10 +69635,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69559
69635
|
init_components();
|
|
69560
69636
|
init_mooverror();
|
|
69561
69637
|
RequestCardError = class RequestCardError extends MoovError {
|
|
69562
|
-
|
|
69563
|
-
|
|
69564
|
-
|
|
69565
|
-
|
|
69638
|
+
authorizedUserAccountID;
|
|
69639
|
+
nickname;
|
|
69640
|
+
metadata;
|
|
69641
|
+
billingAddress;
|
|
69566
69642
|
expiration;
|
|
69567
69643
|
controls;
|
|
69568
69644
|
data$;
|
|
@@ -69570,14 +69646,15 @@ var init_requestcarderror = __esm(() => {
|
|
|
69570
69646
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
69571
69647
|
super(message, httpMeta);
|
|
69572
69648
|
this.data$ = err;
|
|
69573
|
-
if (err.
|
|
69574
|
-
this.
|
|
69575
|
-
|
|
69576
|
-
|
|
69577
|
-
|
|
69578
|
-
|
|
69579
|
-
|
|
69580
|
-
|
|
69649
|
+
if (err.authorizedUserAccountID != null) {
|
|
69650
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
69651
|
+
}
|
|
69652
|
+
if (err.nickname != null)
|
|
69653
|
+
this.nickname = err.nickname;
|
|
69654
|
+
if (err.metadata != null)
|
|
69655
|
+
this.metadata = err.metadata;
|
|
69656
|
+
if (err.billingAddress != null)
|
|
69657
|
+
this.billingAddress = err.billingAddress;
|
|
69581
69658
|
if (err.expiration != null)
|
|
69582
69659
|
this.expiration = err.expiration;
|
|
69583
69660
|
if (err.controls != null)
|
|
@@ -69586,10 +69663,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69586
69663
|
}
|
|
69587
69664
|
};
|
|
69588
69665
|
RequestCardError$inboundSchema = objectType({
|
|
69589
|
-
|
|
69590
|
-
|
|
69591
|
-
|
|
69592
|
-
|
|
69666
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69667
|
+
nickname: stringType().optional(),
|
|
69668
|
+
metadata: stringType().optional(),
|
|
69669
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
69593
69670
|
expiration: CardExpirationError$inboundSchema.optional(),
|
|
69594
69671
|
controls: IssuingControlsError$inboundSchema.optional(),
|
|
69595
69672
|
request$: instanceOfType(Request),
|
|
@@ -69603,10 +69680,10 @@ var init_requestcarderror = __esm(() => {
|
|
|
69603
69680
|
});
|
|
69604
69681
|
});
|
|
69605
69682
|
RequestCardError$outboundSchema = instanceOfType(RequestCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
69606
|
-
|
|
69607
|
-
|
|
69608
|
-
|
|
69609
|
-
|
|
69683
|
+
authorizedUserAccountID: stringType().optional(),
|
|
69684
|
+
nickname: stringType().optional(),
|
|
69685
|
+
metadata: stringType().optional(),
|
|
69686
|
+
billingAddress: AddressError$outboundSchema.optional(),
|
|
69610
69687
|
expiration: CardExpirationError$outboundSchema.optional(),
|
|
69611
69688
|
controls: IssuingControlsError$outboundSchema.optional()
|
|
69612
69689
|
}));
|
|
@@ -70177,8 +70254,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70177
70254
|
init_mooverror();
|
|
70178
70255
|
UpdateIssuedCardError = class UpdateIssuedCardError extends MoovError {
|
|
70179
70256
|
state;
|
|
70180
|
-
|
|
70181
|
-
|
|
70257
|
+
nickname;
|
|
70258
|
+
metadata;
|
|
70259
|
+
billingAddress;
|
|
70182
70260
|
data$;
|
|
70183
70261
|
constructor(err, httpMeta) {
|
|
70184
70262
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -70186,17 +70264,20 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70186
70264
|
this.data$ = err;
|
|
70187
70265
|
if (err.state != null)
|
|
70188
70266
|
this.state = err.state;
|
|
70189
|
-
if (err.
|
|
70190
|
-
this.
|
|
70191
|
-
if (err.
|
|
70192
|
-
this.
|
|
70267
|
+
if (err.nickname != null)
|
|
70268
|
+
this.nickname = err.nickname;
|
|
70269
|
+
if (err.metadata != null)
|
|
70270
|
+
this.metadata = err.metadata;
|
|
70271
|
+
if (err.billingAddress != null)
|
|
70272
|
+
this.billingAddress = err.billingAddress;
|
|
70193
70273
|
this.name = "UpdateIssuedCardError";
|
|
70194
70274
|
}
|
|
70195
70275
|
};
|
|
70196
70276
|
UpdateIssuedCardError$inboundSchema = objectType({
|
|
70197
70277
|
state: stringType().optional(),
|
|
70198
|
-
|
|
70199
|
-
|
|
70278
|
+
nickname: stringType().optional(),
|
|
70279
|
+
metadata: stringType().optional(),
|
|
70280
|
+
billingAddress: AddressError$inboundSchema.optional(),
|
|
70200
70281
|
request$: instanceOfType(Request),
|
|
70201
70282
|
response$: instanceOfType(Response),
|
|
70202
70283
|
body$: stringType()
|
|
@@ -70209,8 +70290,9 @@ var init_updateissuedcarderror = __esm(() => {
|
|
|
70209
70290
|
});
|
|
70210
70291
|
UpdateIssuedCardError$outboundSchema = instanceOfType(UpdateIssuedCardError).transform((v2) => v2.data$).pipe(objectType({
|
|
70211
70292
|
state: stringType().optional(),
|
|
70212
|
-
|
|
70213
|
-
|
|
70293
|
+
nickname: stringType().optional(),
|
|
70294
|
+
metadata: stringType().optional(),
|
|
70295
|
+
billingAddress: AddressError$outboundSchema.optional()
|
|
70214
70296
|
}));
|
|
70215
70297
|
});
|
|
70216
70298
|
|
|
@@ -73958,6 +74040,40 @@ var init_listbankaccounts = __esm(() => {
|
|
|
73958
74040
|
});
|
|
73959
74041
|
});
|
|
73960
74042
|
|
|
74043
|
+
// src/models/operations/listcancellations.ts
|
|
74044
|
+
var ListCancellationsRequest$inboundSchema, ListCancellationsRequest$outboundSchema, ListCancellationsResponse$inboundSchema, ListCancellationsResponse$outboundSchema;
|
|
74045
|
+
var init_listcancellations = __esm(() => {
|
|
74046
|
+
init_esm();
|
|
74047
|
+
init_primitives();
|
|
74048
|
+
init_components();
|
|
74049
|
+
ListCancellationsRequest$inboundSchema = objectType({
|
|
74050
|
+
accountID: stringType(),
|
|
74051
|
+
transferID: stringType()
|
|
74052
|
+
});
|
|
74053
|
+
ListCancellationsRequest$outboundSchema = objectType({
|
|
74054
|
+
accountID: stringType(),
|
|
74055
|
+
transferID: stringType()
|
|
74056
|
+
});
|
|
74057
|
+
ListCancellationsResponse$inboundSchema = objectType({
|
|
74058
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
74059
|
+
Result: arrayType(Cancellation$inboundSchema)
|
|
74060
|
+
}).transform((v2) => {
|
|
74061
|
+
return remap(v2, {
|
|
74062
|
+
Headers: "headers",
|
|
74063
|
+
Result: "result"
|
|
74064
|
+
});
|
|
74065
|
+
});
|
|
74066
|
+
ListCancellationsResponse$outboundSchema = objectType({
|
|
74067
|
+
headers: recordType(arrayType(stringType())),
|
|
74068
|
+
result: arrayType(Cancellation$outboundSchema)
|
|
74069
|
+
}).transform((v2) => {
|
|
74070
|
+
return remap(v2, {
|
|
74071
|
+
headers: "Headers",
|
|
74072
|
+
result: "Result"
|
|
74073
|
+
});
|
|
74074
|
+
});
|
|
74075
|
+
});
|
|
74076
|
+
|
|
73961
74077
|
// src/models/operations/listcapabilities.ts
|
|
73962
74078
|
var ListCapabilitiesRequest$inboundSchema, ListCapabilitiesRequest$outboundSchema, ListCapabilitiesResponse$inboundSchema, ListCapabilitiesResponse$outboundSchema;
|
|
73963
74079
|
var init_listcapabilities = __esm(() => {
|
|
@@ -76736,6 +76852,7 @@ var init_operations = __esm(() => {
|
|
|
76736
76852
|
init_listaccountterminalapplications();
|
|
76737
76853
|
init_listadjustments();
|
|
76738
76854
|
init_listbankaccounts();
|
|
76855
|
+
init_listcancellations();
|
|
76739
76856
|
init_listcapabilities();
|
|
76740
76857
|
init_listcards();
|
|
76741
76858
|
init_listconnectedaccountsforaccount();
|
|
@@ -76816,16 +76933,19 @@ var init_async = __esm(() => {
|
|
|
76816
76933
|
[Symbol.toStringTag] = "APIPromise";
|
|
76817
76934
|
constructor(p) {
|
|
76818
76935
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
76819
|
-
this.#unwrapped = p instanceof Promise ?
|
|
76936
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
76937
|
+
}
|
|
76938
|
+
#getUnwrapped() {
|
|
76939
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
76820
76940
|
}
|
|
76821
76941
|
then(onfulfilled, onrejected) {
|
|
76822
76942
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
76823
76943
|
}
|
|
76824
76944
|
catch(onrejected) {
|
|
76825
|
-
return this.#
|
|
76945
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
76826
76946
|
}
|
|
76827
76947
|
finally(onfinally) {
|
|
76828
|
-
return this.#
|
|
76948
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
76829
76949
|
}
|
|
76830
76950
|
$inspect() {
|
|
76831
76951
|
return this.#promise;
|
|
@@ -77148,21 +77268,19 @@ var init_accountsCreate2 = __esm(() => {
|
|
|
77148
77268
|
};
|
|
77149
77269
|
tool$accountsCreate = {
|
|
77150
77270
|
name: "accounts-create",
|
|
77151
|
-
description: `You can create
|
|
77152
|
-
information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
77271
|
+
description: `You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
77153
77272
|
|
|
77154
|
-
If you
|
|
77155
|
-
+ Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
77156
|
-
|
|
77157
|
-
|
|
77273
|
+
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:
|
|
77274
|
+
+ 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.
|
|
77275
|
+
+ 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.
|
|
77276
|
+
|
|
77277
|
+
If you're creating a business account, depending on the business type, you'll also need to:
|
|
77158
77278
|
+ Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
77159
77279
|
+ [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
77160
77280
|
|
|
77161
|
-
Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
77162
|
-
Note that the \`mode\` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
77281
|
+
Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the \`mode\` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
77163
77282
|
|
|
77164
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77165
|
-
to specify the \`/accounts.write\` scope.`,
|
|
77283
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the \`/accounts.write\` scope.`,
|
|
77166
77284
|
args: args3,
|
|
77167
77285
|
tool: async (client, args4, ctx) => {
|
|
77168
77286
|
const [result, apiCall] = await accountsCreate(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -81201,7 +81319,7 @@ var init_capabilitiesDisable2 = __esm(() => {
|
|
|
81201
81319
|
};
|
|
81202
81320
|
tool$capabilitiesDisable = {
|
|
81203
81321
|
name: "capabilities-disable",
|
|
81204
|
-
description: `Disable a specific capability that an account has requested. Read our [capabilities
|
|
81322
|
+
description: `Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81205
81323
|
|
|
81206
81324
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81207
81325
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81315,7 +81433,7 @@ var init_capabilitiesGet2 = __esm(() => {
|
|
|
81315
81433
|
};
|
|
81316
81434
|
tool$capabilitiesGet = {
|
|
81317
81435
|
name: "capabilities-get",
|
|
81318
|
-
description: `Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
81436
|
+
description: `Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81319
81437
|
|
|
81320
81438
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81321
81439
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81428,7 +81546,7 @@ var init_capabilitiesList2 = __esm(() => {
|
|
|
81428
81546
|
name: "capabilities-list",
|
|
81429
81547
|
description: `Retrieve all the capabilities an account has requested.
|
|
81430
81548
|
|
|
81431
|
-
Read our [capabilities
|
|
81549
|
+
Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81432
81550
|
|
|
81433
81551
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81434
81552
|
you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
|
|
@@ -81541,7 +81659,7 @@ var init_capabilitiesRequest2 = __esm(() => {
|
|
|
81541
81659
|
};
|
|
81542
81660
|
tool$capabilitiesRequest = {
|
|
81543
81661
|
name: "capabilities-request",
|
|
81544
|
-
description: `Request capabilities for a specific account. Read our [capabilities
|
|
81662
|
+
description: `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
81545
81663
|
|
|
81546
81664
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81547
81665
|
you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
|
|
@@ -81581,7 +81699,7 @@ async function $do42(client, request, options) {
|
|
|
81581
81699
|
charEncoding: "percent"
|
|
81582
81700
|
})
|
|
81583
81701
|
};
|
|
81584
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81702
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
81585
81703
|
const headers = new Headers(compactMap({
|
|
81586
81704
|
Accept: "application/json"
|
|
81587
81705
|
}));
|
|
@@ -81696,7 +81814,7 @@ async function $do43(client, request, options) {
|
|
|
81696
81814
|
charEncoding: "percent"
|
|
81697
81815
|
})
|
|
81698
81816
|
};
|
|
81699
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81817
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(pathParams);
|
|
81700
81818
|
const headers = new Headers(compactMap({
|
|
81701
81819
|
Accept: "application/json"
|
|
81702
81820
|
}));
|
|
@@ -81809,7 +81927,7 @@ async function $do44(client, request, options) {
|
|
|
81809
81927
|
charEncoding: "percent"
|
|
81810
81928
|
})
|
|
81811
81929
|
};
|
|
81812
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
81930
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81813
81931
|
const query = encodeFormQuery({
|
|
81814
81932
|
count: payload.count,
|
|
81815
81933
|
skip: payload.skip,
|
|
@@ -81926,7 +82044,7 @@ async function $do45(client, request, options) {
|
|
|
81926
82044
|
charEncoding: "percent"
|
|
81927
82045
|
})
|
|
81928
82046
|
};
|
|
81929
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82047
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
81930
82048
|
const headers = new Headers(compactMap({
|
|
81931
82049
|
"Content-Type": "application/json",
|
|
81932
82050
|
Accept: "application/json"
|
|
@@ -82043,7 +82161,7 @@ async function $do46(client, request, options) {
|
|
|
82043
82161
|
charEncoding: "percent"
|
|
82044
82162
|
})
|
|
82045
82163
|
};
|
|
82046
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
82164
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}")(pathParams);
|
|
82047
82165
|
const headers = new Headers(compactMap({
|
|
82048
82166
|
"Content-Type": "application/json",
|
|
82049
82167
|
Accept: "application/json"
|
|
@@ -94067,11 +94185,126 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94067
94185
|
};
|
|
94068
94186
|
});
|
|
94069
94187
|
|
|
94070
|
-
// src/funcs/
|
|
94071
|
-
function
|
|
94188
|
+
// src/funcs/transfersListCancellations.ts
|
|
94189
|
+
function transfersListCancellations(client, request, options) {
|
|
94072
94190
|
return new APIPromise($do149(client, request, options));
|
|
94073
94191
|
}
|
|
94074
94192
|
async function $do149(client, request, options) {
|
|
94193
|
+
const parsed = safeParse4(request, (value) => ListCancellationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94194
|
+
if (!parsed.ok) {
|
|
94195
|
+
return [parsed, { status: "invalid" }];
|
|
94196
|
+
}
|
|
94197
|
+
const payload = parsed.value;
|
|
94198
|
+
const body = null;
|
|
94199
|
+
const pathParams = {
|
|
94200
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
94201
|
+
explode: false,
|
|
94202
|
+
charEncoding: "percent"
|
|
94203
|
+
}),
|
|
94204
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
94205
|
+
explode: false,
|
|
94206
|
+
charEncoding: "percent"
|
|
94207
|
+
})
|
|
94208
|
+
};
|
|
94209
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
94210
|
+
const headers = new Headers(compactMap({
|
|
94211
|
+
Accept: "application/json"
|
|
94212
|
+
}));
|
|
94213
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
94214
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
94215
|
+
const context = {
|
|
94216
|
+
options: client._options,
|
|
94217
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
94218
|
+
operationID: "listCancellations",
|
|
94219
|
+
oAuth2Scopes: null,
|
|
94220
|
+
resolvedSecurity: requestSecurity,
|
|
94221
|
+
securitySource: client._options.security,
|
|
94222
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
94223
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
94224
|
+
};
|
|
94225
|
+
const requestRes = client._createRequest(context, {
|
|
94226
|
+
security: requestSecurity,
|
|
94227
|
+
method: "GET",
|
|
94228
|
+
baseURL: options?.serverURL,
|
|
94229
|
+
path,
|
|
94230
|
+
headers,
|
|
94231
|
+
body,
|
|
94232
|
+
userAgent: client._options.userAgent,
|
|
94233
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
94234
|
+
}, options);
|
|
94235
|
+
if (!requestRes.ok) {
|
|
94236
|
+
return [requestRes, { status: "invalid" }];
|
|
94237
|
+
}
|
|
94238
|
+
const req = requestRes.value;
|
|
94239
|
+
const doResult = await client._do(req, {
|
|
94240
|
+
context,
|
|
94241
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
94242
|
+
retryConfig: context.retryConfig,
|
|
94243
|
+
retryCodes: context.retryCodes
|
|
94244
|
+
});
|
|
94245
|
+
if (!doResult.ok) {
|
|
94246
|
+
return [doResult, { status: "request-error", request: req }];
|
|
94247
|
+
}
|
|
94248
|
+
const response = doResult.value;
|
|
94249
|
+
const responseFields = {
|
|
94250
|
+
HttpMeta: { Response: response, Request: req }
|
|
94251
|
+
};
|
|
94252
|
+
const [result] = await match(json(200, ListCancellationsResponse$inboundSchema, {
|
|
94253
|
+
hdrs: true,
|
|
94254
|
+
key: "Result"
|
|
94255
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
94256
|
+
if (!result.ok) {
|
|
94257
|
+
return [result, { status: "complete", request: req, response }];
|
|
94258
|
+
}
|
|
94259
|
+
return [result, { status: "complete", request: req, response }];
|
|
94260
|
+
}
|
|
94261
|
+
var init_transfersListCancellations = __esm(() => {
|
|
94262
|
+
init_encodings();
|
|
94263
|
+
init_http();
|
|
94264
|
+
init_matchers();
|
|
94265
|
+
init_primitives();
|
|
94266
|
+
init_schemas4();
|
|
94267
|
+
init_security();
|
|
94268
|
+
init_url();
|
|
94269
|
+
init_operations();
|
|
94270
|
+
init_async();
|
|
94271
|
+
});
|
|
94272
|
+
|
|
94273
|
+
// src/mcp-server/tools/transfersListCancellations.ts
|
|
94274
|
+
var args144, tool$transfersListCancellations;
|
|
94275
|
+
var init_transfersListCancellations2 = __esm(() => {
|
|
94276
|
+
init_transfersListCancellations();
|
|
94277
|
+
init_operations();
|
|
94278
|
+
init_tools();
|
|
94279
|
+
args144 = {
|
|
94280
|
+
request: ListCancellationsRequest$inboundSchema
|
|
94281
|
+
};
|
|
94282
|
+
tool$transfersListCancellations = {
|
|
94283
|
+
name: "transfers-list-cancellations",
|
|
94284
|
+
description: ` Get a list of cancellations for a transfer.
|
|
94285
|
+
|
|
94286
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
94287
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94288
|
+
args: args144,
|
|
94289
|
+
tool: async (client, args145, ctx) => {
|
|
94290
|
+
const [result, apiCall] = await transfersListCancellations(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94291
|
+
if (!result.ok) {
|
|
94292
|
+
return {
|
|
94293
|
+
content: [{ type: "text", text: result.error.message }],
|
|
94294
|
+
isError: true
|
|
94295
|
+
};
|
|
94296
|
+
}
|
|
94297
|
+
const value = result.value.result;
|
|
94298
|
+
return formatResult(value, apiCall);
|
|
94299
|
+
}
|
|
94300
|
+
};
|
|
94301
|
+
});
|
|
94302
|
+
|
|
94303
|
+
// src/funcs/transfersListRefunds.ts
|
|
94304
|
+
function transfersListRefunds(client, request, options) {
|
|
94305
|
+
return new APIPromise($do150(client, request, options));
|
|
94306
|
+
}
|
|
94307
|
+
async function $do150(client, request, options) {
|
|
94075
94308
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94076
94309
|
if (!parsed.ok) {
|
|
94077
94310
|
return [parsed, { status: "invalid" }];
|
|
@@ -94153,12 +94386,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
94153
94386
|
});
|
|
94154
94387
|
|
|
94155
94388
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
94156
|
-
var
|
|
94389
|
+
var args145, tool$transfersListRefunds;
|
|
94157
94390
|
var init_transfersListRefunds2 = __esm(() => {
|
|
94158
94391
|
init_transfersListRefunds();
|
|
94159
94392
|
init_operations();
|
|
94160
94393
|
init_tools();
|
|
94161
|
-
|
|
94394
|
+
args145 = {
|
|
94162
94395
|
request: ListRefundsRequest$inboundSchema
|
|
94163
94396
|
};
|
|
94164
94397
|
tool$transfersListRefunds = {
|
|
@@ -94167,9 +94400,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
94167
94400
|
|
|
94168
94401
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94169
94402
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
94170
|
-
args:
|
|
94171
|
-
tool: async (client,
|
|
94172
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
94403
|
+
args: args145,
|
|
94404
|
+
tool: async (client, args146, ctx) => {
|
|
94405
|
+
const [result, apiCall] = await transfersListRefunds(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94173
94406
|
if (!result.ok) {
|
|
94174
94407
|
return {
|
|
94175
94408
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94184,9 +94417,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
94184
94417
|
|
|
94185
94418
|
// src/funcs/transfersUpdate.ts
|
|
94186
94419
|
function transfersUpdate(client, request, options) {
|
|
94187
|
-
return new APIPromise($
|
|
94420
|
+
return new APIPromise($do151(client, request, options));
|
|
94188
94421
|
}
|
|
94189
|
-
async function $
|
|
94422
|
+
async function $do151(client, request, options) {
|
|
94190
94423
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94191
94424
|
if (!parsed.ok) {
|
|
94192
94425
|
return [parsed, { status: "invalid" }];
|
|
@@ -94272,12 +94505,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
94272
94505
|
});
|
|
94273
94506
|
|
|
94274
94507
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
94275
|
-
var
|
|
94508
|
+
var args146, tool$transfersUpdate;
|
|
94276
94509
|
var init_transfersUpdate2 = __esm(() => {
|
|
94277
94510
|
init_transfersUpdate();
|
|
94278
94511
|
init_operations();
|
|
94279
94512
|
init_tools();
|
|
94280
|
-
|
|
94513
|
+
args146 = {
|
|
94281
94514
|
request: UpdateTransferRequest$inboundSchema
|
|
94282
94515
|
};
|
|
94283
94516
|
tool$transfersUpdate = {
|
|
@@ -94288,9 +94521,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
94288
94521
|
|
|
94289
94522
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94290
94523
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
94291
|
-
args:
|
|
94292
|
-
tool: async (client,
|
|
94293
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
94524
|
+
args: args146,
|
|
94525
|
+
tool: async (client, args147, ctx) => {
|
|
94526
|
+
const [result, apiCall] = await transfersUpdate(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94294
94527
|
if (!result.ok) {
|
|
94295
94528
|
return {
|
|
94296
94529
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94305,9 +94538,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
94305
94538
|
|
|
94306
94539
|
// src/funcs/underwritingGet.ts
|
|
94307
94540
|
function underwritingGet(client, request, options) {
|
|
94308
|
-
return new APIPromise($
|
|
94541
|
+
return new APIPromise($do152(client, request, options));
|
|
94309
94542
|
}
|
|
94310
|
-
async function $
|
|
94543
|
+
async function $do152(client, request, options) {
|
|
94311
94544
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94312
94545
|
if (!parsed.ok) {
|
|
94313
94546
|
return [parsed, { status: "invalid" }];
|
|
@@ -94385,12 +94618,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
94385
94618
|
});
|
|
94386
94619
|
|
|
94387
94620
|
// src/mcp-server/tools/underwritingGet.ts
|
|
94388
|
-
var
|
|
94621
|
+
var args147, tool$underwritingGet;
|
|
94389
94622
|
var init_underwritingGet2 = __esm(() => {
|
|
94390
94623
|
init_underwritingGet();
|
|
94391
94624
|
init_operations();
|
|
94392
94625
|
init_tools();
|
|
94393
|
-
|
|
94626
|
+
args147 = {
|
|
94394
94627
|
request: GetUnderwritingRequest$inboundSchema
|
|
94395
94628
|
};
|
|
94396
94629
|
tool$underwritingGet = {
|
|
@@ -94401,9 +94634,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94401
94634
|
|
|
94402
94635
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94403
94636
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
94404
|
-
args:
|
|
94405
|
-
tool: async (client,
|
|
94406
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
94637
|
+
args: args147,
|
|
94638
|
+
tool: async (client, args148, ctx) => {
|
|
94639
|
+
const [result, apiCall] = await underwritingGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94407
94640
|
if (!result.ok) {
|
|
94408
94641
|
return {
|
|
94409
94642
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94418,9 +94651,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
94418
94651
|
|
|
94419
94652
|
// src/funcs/underwritingUpsert.ts
|
|
94420
94653
|
function underwritingUpsert(client, request, options) {
|
|
94421
|
-
return new APIPromise($
|
|
94654
|
+
return new APIPromise($do153(client, request, options));
|
|
94422
94655
|
}
|
|
94423
|
-
async function $
|
|
94656
|
+
async function $do153(client, request, options) {
|
|
94424
94657
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94425
94658
|
if (!parsed.ok) {
|
|
94426
94659
|
return [parsed, { status: "invalid" }];
|
|
@@ -94504,12 +94737,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
94504
94737
|
});
|
|
94505
94738
|
|
|
94506
94739
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
94507
|
-
var
|
|
94740
|
+
var args148, tool$underwritingUpsert;
|
|
94508
94741
|
var init_underwritingUpsert2 = __esm(() => {
|
|
94509
94742
|
init_underwritingUpsert();
|
|
94510
94743
|
init_operations();
|
|
94511
94744
|
init_tools();
|
|
94512
|
-
|
|
94745
|
+
args148 = {
|
|
94513
94746
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
94514
94747
|
};
|
|
94515
94748
|
tool$underwritingUpsert = {
|
|
@@ -94520,9 +94753,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
94520
94753
|
|
|
94521
94754
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94522
94755
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
94523
|
-
args:
|
|
94524
|
-
tool: async (client,
|
|
94525
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
94756
|
+
args: args148,
|
|
94757
|
+
tool: async (client, args149, ctx) => {
|
|
94758
|
+
const [result, apiCall] = await underwritingUpsert(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94526
94759
|
if (!result.ok) {
|
|
94527
94760
|
return {
|
|
94528
94761
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94537,9 +94770,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
94537
94770
|
|
|
94538
94771
|
// src/funcs/walletsCreate.ts
|
|
94539
94772
|
function walletsCreate(client, request, options) {
|
|
94540
|
-
return new APIPromise($
|
|
94773
|
+
return new APIPromise($do154(client, request, options));
|
|
94541
94774
|
}
|
|
94542
|
-
async function $
|
|
94775
|
+
async function $do154(client, request, options) {
|
|
94543
94776
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94544
94777
|
if (!parsed.ok) {
|
|
94545
94778
|
return [parsed, { status: "invalid" }];
|
|
@@ -94621,12 +94854,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
94621
94854
|
});
|
|
94622
94855
|
|
|
94623
94856
|
// src/mcp-server/tools/walletsCreate.ts
|
|
94624
|
-
var
|
|
94857
|
+
var args149, tool$walletsCreate;
|
|
94625
94858
|
var init_walletsCreate2 = __esm(() => {
|
|
94626
94859
|
init_walletsCreate();
|
|
94627
94860
|
init_operations();
|
|
94628
94861
|
init_tools();
|
|
94629
|
-
|
|
94862
|
+
args149 = {
|
|
94630
94863
|
request: CreateWalletRequest$inboundSchema
|
|
94631
94864
|
};
|
|
94632
94865
|
tool$walletsCreate = {
|
|
@@ -94637,9 +94870,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94637
94870
|
|
|
94638
94871
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94639
94872
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
94640
|
-
args:
|
|
94641
|
-
tool: async (client,
|
|
94642
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
94873
|
+
args: args149,
|
|
94874
|
+
tool: async (client, args150, ctx) => {
|
|
94875
|
+
const [result, apiCall] = await walletsCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94643
94876
|
if (!result.ok) {
|
|
94644
94877
|
return {
|
|
94645
94878
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94654,9 +94887,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
94654
94887
|
|
|
94655
94888
|
// src/funcs/walletsGet.ts
|
|
94656
94889
|
function walletsGet(client, request, options) {
|
|
94657
|
-
return new APIPromise($
|
|
94890
|
+
return new APIPromise($do155(client, request, options));
|
|
94658
94891
|
}
|
|
94659
|
-
async function $
|
|
94892
|
+
async function $do155(client, request, options) {
|
|
94660
94893
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94661
94894
|
if (!parsed.ok) {
|
|
94662
94895
|
return [parsed, { status: "invalid" }];
|
|
@@ -94738,12 +94971,12 @@ var init_walletsGet = __esm(() => {
|
|
|
94738
94971
|
});
|
|
94739
94972
|
|
|
94740
94973
|
// src/mcp-server/tools/walletsGet.ts
|
|
94741
|
-
var
|
|
94974
|
+
var args150, tool$walletsGet;
|
|
94742
94975
|
var init_walletsGet2 = __esm(() => {
|
|
94743
94976
|
init_walletsGet();
|
|
94744
94977
|
init_operations();
|
|
94745
94978
|
init_tools();
|
|
94746
|
-
|
|
94979
|
+
args150 = {
|
|
94747
94980
|
request: GetWalletRequest$inboundSchema
|
|
94748
94981
|
};
|
|
94749
94982
|
tool$walletsGet = {
|
|
@@ -94754,9 +94987,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94754
94987
|
|
|
94755
94988
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94756
94989
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94757
|
-
args:
|
|
94758
|
-
tool: async (client,
|
|
94759
|
-
const [result, apiCall] = await walletsGet(client,
|
|
94990
|
+
args: args150,
|
|
94991
|
+
tool: async (client, args151, ctx) => {
|
|
94992
|
+
const [result, apiCall] = await walletsGet(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94760
94993
|
if (!result.ok) {
|
|
94761
94994
|
return {
|
|
94762
94995
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94771,9 +95004,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94771
95004
|
|
|
94772
95005
|
// src/funcs/walletsList.ts
|
|
94773
95006
|
function walletsList(client, request, options) {
|
|
94774
|
-
return new APIPromise($
|
|
95007
|
+
return new APIPromise($do156(client, request, options));
|
|
94775
95008
|
}
|
|
94776
|
-
async function $
|
|
95009
|
+
async function $do156(client, request, options) {
|
|
94777
95010
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94778
95011
|
if (!parsed.ok) {
|
|
94779
95012
|
return [parsed, { status: "invalid" }];
|
|
@@ -94861,12 +95094,12 @@ var init_walletsList = __esm(() => {
|
|
|
94861
95094
|
});
|
|
94862
95095
|
|
|
94863
95096
|
// src/mcp-server/tools/walletsList.ts
|
|
94864
|
-
var
|
|
95097
|
+
var args151, tool$walletsList;
|
|
94865
95098
|
var init_walletsList2 = __esm(() => {
|
|
94866
95099
|
init_walletsList();
|
|
94867
95100
|
init_operations();
|
|
94868
95101
|
init_tools();
|
|
94869
|
-
|
|
95102
|
+
args151 = {
|
|
94870
95103
|
request: ListWalletsRequest$inboundSchema
|
|
94871
95104
|
};
|
|
94872
95105
|
tool$walletsList = {
|
|
@@ -94877,9 +95110,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94877
95110
|
|
|
94878
95111
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
94879
95112
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
94880
|
-
args:
|
|
94881
|
-
tool: async (client,
|
|
94882
|
-
const [result, apiCall] = await walletsList(client,
|
|
95113
|
+
args: args151,
|
|
95114
|
+
tool: async (client, args152, ctx) => {
|
|
95115
|
+
const [result, apiCall] = await walletsList(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
94883
95116
|
if (!result.ok) {
|
|
94884
95117
|
return {
|
|
94885
95118
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -94894,9 +95127,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
94894
95127
|
|
|
94895
95128
|
// src/funcs/walletsUpdate.ts
|
|
94896
95129
|
function walletsUpdate(client, request, options) {
|
|
94897
|
-
return new APIPromise($
|
|
95130
|
+
return new APIPromise($do157(client, request, options));
|
|
94898
95131
|
}
|
|
94899
|
-
async function $
|
|
95132
|
+
async function $do157(client, request, options) {
|
|
94900
95133
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
94901
95134
|
if (!parsed.ok) {
|
|
94902
95135
|
return [parsed, { status: "invalid" }];
|
|
@@ -94982,12 +95215,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
94982
95215
|
});
|
|
94983
95216
|
|
|
94984
95217
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
94985
|
-
var
|
|
95218
|
+
var args152, tool$walletsUpdate;
|
|
94986
95219
|
var init_walletsUpdate2 = __esm(() => {
|
|
94987
95220
|
init_walletsUpdate();
|
|
94988
95221
|
init_operations();
|
|
94989
95222
|
init_tools();
|
|
94990
|
-
|
|
95223
|
+
args152 = {
|
|
94991
95224
|
request: UpdateWalletRequest$inboundSchema
|
|
94992
95225
|
};
|
|
94993
95226
|
tool$walletsUpdate = {
|
|
@@ -94998,9 +95231,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
94998
95231
|
|
|
94999
95232
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95000
95233
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
95001
|
-
args:
|
|
95002
|
-
tool: async (client,
|
|
95003
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
95234
|
+
args: args152,
|
|
95235
|
+
tool: async (client, args153, ctx) => {
|
|
95236
|
+
const [result, apiCall] = await walletsUpdate(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95004
95237
|
if (!result.ok) {
|
|
95005
95238
|
return {
|
|
95006
95239
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95015,9 +95248,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
95015
95248
|
|
|
95016
95249
|
// src/funcs/walletTransactionsGet.ts
|
|
95017
95250
|
function walletTransactionsGet(client, request, options) {
|
|
95018
|
-
return new APIPromise($
|
|
95251
|
+
return new APIPromise($do158(client, request, options));
|
|
95019
95252
|
}
|
|
95020
|
-
async function $
|
|
95253
|
+
async function $do158(client, request, options) {
|
|
95021
95254
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95022
95255
|
if (!parsed.ok) {
|
|
95023
95256
|
return [parsed, { status: "invalid" }];
|
|
@@ -95103,12 +95336,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
95103
95336
|
});
|
|
95104
95337
|
|
|
95105
95338
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
95106
|
-
var
|
|
95339
|
+
var args153, tool$walletTransactionsGet;
|
|
95107
95340
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
95108
95341
|
init_walletTransactionsGet();
|
|
95109
95342
|
init_operations();
|
|
95110
95343
|
init_tools();
|
|
95111
|
-
|
|
95344
|
+
args153 = {
|
|
95112
95345
|
request: GetWalletTransactionRequest$inboundSchema
|
|
95113
95346
|
};
|
|
95114
95347
|
tool$walletTransactionsGet = {
|
|
@@ -95119,9 +95352,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95119
95352
|
|
|
95120
95353
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95121
95354
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95122
|
-
args:
|
|
95123
|
-
tool: async (client,
|
|
95124
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
95355
|
+
args: args153,
|
|
95356
|
+
tool: async (client, args154, ctx) => {
|
|
95357
|
+
const [result, apiCall] = await walletTransactionsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95125
95358
|
if (!result.ok) {
|
|
95126
95359
|
return {
|
|
95127
95360
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95136,9 +95369,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95136
95369
|
|
|
95137
95370
|
// src/funcs/walletTransactionsList.ts
|
|
95138
95371
|
function walletTransactionsList(client, request, options) {
|
|
95139
|
-
return new APIPromise($
|
|
95372
|
+
return new APIPromise($do159(client, request, options));
|
|
95140
95373
|
}
|
|
95141
|
-
async function $
|
|
95374
|
+
async function $do159(client, request, options) {
|
|
95142
95375
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95143
95376
|
if (!parsed.ok) {
|
|
95144
95377
|
return [parsed, { status: "invalid" }];
|
|
@@ -95238,12 +95471,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
95238
95471
|
});
|
|
95239
95472
|
|
|
95240
95473
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
95241
|
-
var
|
|
95474
|
+
var args154, tool$walletTransactionsList;
|
|
95242
95475
|
var init_walletTransactionsList2 = __esm(() => {
|
|
95243
95476
|
init_walletTransactionsList();
|
|
95244
95477
|
init_operations();
|
|
95245
95478
|
init_tools();
|
|
95246
|
-
|
|
95479
|
+
args154 = {
|
|
95247
95480
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
95248
95481
|
};
|
|
95249
95482
|
tool$walletTransactionsList = {
|
|
@@ -95254,9 +95487,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
95254
95487
|
|
|
95255
95488
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
95256
95489
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
95257
|
-
args:
|
|
95258
|
-
tool: async (client,
|
|
95259
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
95490
|
+
args: args154,
|
|
95491
|
+
tool: async (client, args155, ctx) => {
|
|
95492
|
+
const [result, apiCall] = await walletTransactionsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95260
95493
|
if (!result.ok) {
|
|
95261
95494
|
return {
|
|
95262
95495
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95271,9 +95504,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
95271
95504
|
|
|
95272
95505
|
// src/funcs/webhooksCreate.ts
|
|
95273
95506
|
function webhooksCreate(client, request, options) {
|
|
95274
|
-
return new APIPromise($
|
|
95507
|
+
return new APIPromise($do160(client, request, options));
|
|
95275
95508
|
}
|
|
95276
|
-
async function $
|
|
95509
|
+
async function $do160(client, request, options) {
|
|
95277
95510
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
95278
95511
|
if (!parsed.ok) {
|
|
95279
95512
|
return [parsed, { status: "invalid" }];
|
|
@@ -95350,20 +95583,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
95350
95583
|
});
|
|
95351
95584
|
|
|
95352
95585
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
95353
|
-
var
|
|
95586
|
+
var args155, tool$webhooksCreate;
|
|
95354
95587
|
var init_webhooksCreate2 = __esm(() => {
|
|
95355
95588
|
init_webhooksCreate();
|
|
95356
95589
|
init_components();
|
|
95357
95590
|
init_tools();
|
|
95358
|
-
|
|
95591
|
+
args155 = {
|
|
95359
95592
|
request: CreateWebhook$inboundSchema
|
|
95360
95593
|
};
|
|
95361
95594
|
tool$webhooksCreate = {
|
|
95362
95595
|
name: "webhooks-create",
|
|
95363
95596
|
description: `Create a new webhook for the account.`,
|
|
95364
|
-
args:
|
|
95365
|
-
tool: async (client,
|
|
95366
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
95597
|
+
args: args155,
|
|
95598
|
+
tool: async (client, args156, ctx) => {
|
|
95599
|
+
const [result, apiCall] = await webhooksCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95367
95600
|
if (!result.ok) {
|
|
95368
95601
|
return {
|
|
95369
95602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95378,9 +95611,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
95378
95611
|
|
|
95379
95612
|
// src/funcs/webhooksDisable.ts
|
|
95380
95613
|
function webhooksDisable(client, request, options) {
|
|
95381
|
-
return new APIPromise($
|
|
95614
|
+
return new APIPromise($do161(client, request, options));
|
|
95382
95615
|
}
|
|
95383
|
-
async function $
|
|
95616
|
+
async function $do161(client, request, options) {
|
|
95384
95617
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95385
95618
|
if (!parsed.ok) {
|
|
95386
95619
|
return [parsed, { status: "invalid" }];
|
|
@@ -95458,20 +95691,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
95458
95691
|
});
|
|
95459
95692
|
|
|
95460
95693
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
95461
|
-
var
|
|
95694
|
+
var args156, tool$webhooksDisable;
|
|
95462
95695
|
var init_webhooksDisable2 = __esm(() => {
|
|
95463
95696
|
init_webhooksDisable();
|
|
95464
95697
|
init_operations();
|
|
95465
95698
|
init_tools();
|
|
95466
|
-
|
|
95699
|
+
args156 = {
|
|
95467
95700
|
request: DisableWebhookRequest$inboundSchema
|
|
95468
95701
|
};
|
|
95469
95702
|
tool$webhooksDisable = {
|
|
95470
95703
|
name: "webhooks-disable",
|
|
95471
95704
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
95472
|
-
args:
|
|
95473
|
-
tool: async (client,
|
|
95474
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
95705
|
+
args: args156,
|
|
95706
|
+
tool: async (client, args157, ctx) => {
|
|
95707
|
+
const [result, apiCall] = await webhooksDisable(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95475
95708
|
if (!result.ok) {
|
|
95476
95709
|
return {
|
|
95477
95710
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95485,9 +95718,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
95485
95718
|
|
|
95486
95719
|
// src/funcs/webhooksGet.ts
|
|
95487
95720
|
function webhooksGet(client, request, options) {
|
|
95488
|
-
return new APIPromise($
|
|
95721
|
+
return new APIPromise($do162(client, request, options));
|
|
95489
95722
|
}
|
|
95490
|
-
async function $
|
|
95723
|
+
async function $do162(client, request, options) {
|
|
95491
95724
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95492
95725
|
if (!parsed.ok) {
|
|
95493
95726
|
return [parsed, { status: "invalid" }];
|
|
@@ -95565,20 +95798,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
95565
95798
|
});
|
|
95566
95799
|
|
|
95567
95800
|
// src/mcp-server/tools/webhooksGet.ts
|
|
95568
|
-
var
|
|
95801
|
+
var args157, tool$webhooksGet;
|
|
95569
95802
|
var init_webhooksGet2 = __esm(() => {
|
|
95570
95803
|
init_webhooksGet();
|
|
95571
95804
|
init_operations();
|
|
95572
95805
|
init_tools();
|
|
95573
|
-
|
|
95806
|
+
args157 = {
|
|
95574
95807
|
request: GetWebhookRequest$inboundSchema
|
|
95575
95808
|
};
|
|
95576
95809
|
tool$webhooksGet = {
|
|
95577
95810
|
name: "webhooks-get",
|
|
95578
95811
|
description: `Get details of a specific webhook.`,
|
|
95579
|
-
args:
|
|
95580
|
-
tool: async (client,
|
|
95581
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
95812
|
+
args: args157,
|
|
95813
|
+
tool: async (client, args158, ctx) => {
|
|
95814
|
+
const [result, apiCall] = await webhooksGet(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95582
95815
|
if (!result.ok) {
|
|
95583
95816
|
return {
|
|
95584
95817
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95593,9 +95826,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
95593
95826
|
|
|
95594
95827
|
// src/funcs/webhooksGetSecret.ts
|
|
95595
95828
|
function webhooksGetSecret(client, request, options) {
|
|
95596
|
-
return new APIPromise($
|
|
95829
|
+
return new APIPromise($do163(client, request, options));
|
|
95597
95830
|
}
|
|
95598
|
-
async function $
|
|
95831
|
+
async function $do163(client, request, options) {
|
|
95599
95832
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95600
95833
|
if (!parsed.ok) {
|
|
95601
95834
|
return [parsed, { status: "invalid" }];
|
|
@@ -95673,20 +95906,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
95673
95906
|
});
|
|
95674
95907
|
|
|
95675
95908
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
95676
|
-
var
|
|
95909
|
+
var args158, tool$webhooksGetSecret;
|
|
95677
95910
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
95678
95911
|
init_webhooksGetSecret();
|
|
95679
95912
|
init_operations();
|
|
95680
95913
|
init_tools();
|
|
95681
|
-
|
|
95914
|
+
args158 = {
|
|
95682
95915
|
request: GetWebhookSecretRequest$inboundSchema
|
|
95683
95916
|
};
|
|
95684
95917
|
tool$webhooksGetSecret = {
|
|
95685
95918
|
name: "webhooks-get-secret",
|
|
95686
95919
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
95687
|
-
args:
|
|
95688
|
-
tool: async (client,
|
|
95689
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
95920
|
+
args: args158,
|
|
95921
|
+
tool: async (client, args159, ctx) => {
|
|
95922
|
+
const [result, apiCall] = await webhooksGetSecret(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95690
95923
|
if (!result.ok) {
|
|
95691
95924
|
return {
|
|
95692
95925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95701,9 +95934,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
95701
95934
|
|
|
95702
95935
|
// src/funcs/webhooksList.ts
|
|
95703
95936
|
function webhooksList(client, options) {
|
|
95704
|
-
return new APIPromise($
|
|
95937
|
+
return new APIPromise($do164(client, options));
|
|
95705
95938
|
}
|
|
95706
|
-
async function $
|
|
95939
|
+
async function $do164(client, options) {
|
|
95707
95940
|
const path = pathToFunc("/webhooks")();
|
|
95708
95941
|
const headers = new Headers(compactMap({
|
|
95709
95942
|
Accept: "application/json"
|
|
@@ -95789,9 +96022,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
95789
96022
|
|
|
95790
96023
|
// src/funcs/webhooksListEventTypes.ts
|
|
95791
96024
|
function webhooksListEventTypes(client, options) {
|
|
95792
|
-
return new APIPromise($
|
|
96025
|
+
return new APIPromise($do165(client, options));
|
|
95793
96026
|
}
|
|
95794
|
-
async function $
|
|
96027
|
+
async function $do165(client, options) {
|
|
95795
96028
|
const path = pathToFunc("/event-types")();
|
|
95796
96029
|
const headers = new Headers(compactMap({
|
|
95797
96030
|
Accept: "application/json"
|
|
@@ -95877,9 +96110,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
95877
96110
|
|
|
95878
96111
|
// src/funcs/webhooksPing.ts
|
|
95879
96112
|
function webhooksPing(client, request, options) {
|
|
95880
|
-
return new APIPromise($
|
|
96113
|
+
return new APIPromise($do166(client, request, options));
|
|
95881
96114
|
}
|
|
95882
|
-
async function $
|
|
96115
|
+
async function $do166(client, request, options) {
|
|
95883
96116
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95884
96117
|
if (!parsed.ok) {
|
|
95885
96118
|
return [parsed, { status: "invalid" }];
|
|
@@ -95957,20 +96190,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
95957
96190
|
});
|
|
95958
96191
|
|
|
95959
96192
|
// src/mcp-server/tools/webhooksPing.ts
|
|
95960
|
-
var
|
|
96193
|
+
var args159, tool$webhooksPing;
|
|
95961
96194
|
var init_webhooksPing2 = __esm(() => {
|
|
95962
96195
|
init_webhooksPing();
|
|
95963
96196
|
init_operations();
|
|
95964
96197
|
init_tools();
|
|
95965
|
-
|
|
96198
|
+
args159 = {
|
|
95966
96199
|
request: PingWebhookRequest$inboundSchema
|
|
95967
96200
|
};
|
|
95968
96201
|
tool$webhooksPing = {
|
|
95969
96202
|
name: "webhooks-ping",
|
|
95970
96203
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
95971
|
-
args:
|
|
95972
|
-
tool: async (client,
|
|
95973
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
96204
|
+
args: args159,
|
|
96205
|
+
tool: async (client, args160, ctx) => {
|
|
96206
|
+
const [result, apiCall] = await webhooksPing(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
95974
96207
|
if (!result.ok) {
|
|
95975
96208
|
return {
|
|
95976
96209
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -95985,9 +96218,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
95985
96218
|
|
|
95986
96219
|
// src/funcs/webhooksUpdate.ts
|
|
95987
96220
|
function webhooksUpdate(client, request, options) {
|
|
95988
|
-
return new APIPromise($
|
|
96221
|
+
return new APIPromise($do167(client, request, options));
|
|
95989
96222
|
}
|
|
95990
|
-
async function $
|
|
96223
|
+
async function $do167(client, request, options) {
|
|
95991
96224
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
95992
96225
|
if (!parsed.ok) {
|
|
95993
96226
|
return [parsed, { status: "invalid" }];
|
|
@@ -96069,20 +96302,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
96069
96302
|
});
|
|
96070
96303
|
|
|
96071
96304
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
96072
|
-
var
|
|
96305
|
+
var args160, tool$webhooksUpdate;
|
|
96073
96306
|
var init_webhooksUpdate2 = __esm(() => {
|
|
96074
96307
|
init_webhooksUpdate();
|
|
96075
96308
|
init_operations();
|
|
96076
96309
|
init_tools();
|
|
96077
|
-
|
|
96310
|
+
args160 = {
|
|
96078
96311
|
request: UpdateWebhookRequest$inboundSchema
|
|
96079
96312
|
};
|
|
96080
96313
|
tool$webhooksUpdate = {
|
|
96081
96314
|
name: "webhooks-update",
|
|
96082
96315
|
description: `Update an existing webhook.`,
|
|
96083
|
-
args:
|
|
96084
|
-
tool: async (client,
|
|
96085
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
96316
|
+
args: args160,
|
|
96317
|
+
tool: async (client, args161, ctx) => {
|
|
96318
|
+
const [result, apiCall] = await webhooksUpdate(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
96086
96319
|
if (!result.ok) {
|
|
96087
96320
|
return {
|
|
96088
96321
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -96099,7 +96332,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
96099
96332
|
function createMCPServer(deps) {
|
|
96100
96333
|
const server = new McpServer({
|
|
96101
96334
|
name: "Moov",
|
|
96102
|
-
version: "24.3.
|
|
96335
|
+
version: "24.3.1"
|
|
96103
96336
|
});
|
|
96104
96337
|
const client = new MoovCore({
|
|
96105
96338
|
security: deps.security,
|
|
@@ -96227,6 +96460,7 @@ function createMCPServer(deps) {
|
|
|
96227
96460
|
tool(tool$transfersGet);
|
|
96228
96461
|
tool(tool$transfersUpdate);
|
|
96229
96462
|
tool(tool$transfersCreateCancellation);
|
|
96463
|
+
tool(tool$transfersListCancellations);
|
|
96230
96464
|
tool(tool$transfersGetCancellation);
|
|
96231
96465
|
tool(tool$transfersInitiateRefund);
|
|
96232
96466
|
tool(tool$transfersListRefunds);
|
|
@@ -96435,6 +96669,7 @@ var init_server2 = __esm(() => {
|
|
|
96435
96669
|
init_transfersGetRefund2();
|
|
96436
96670
|
init_transfersInitiateRefund2();
|
|
96437
96671
|
init_transfersList2();
|
|
96672
|
+
init_transfersListCancellations2();
|
|
96438
96673
|
init_transfersListRefunds2();
|
|
96439
96674
|
init_transfersUpdate2();
|
|
96440
96675
|
init_underwritingGet2();
|
|
@@ -97655,7 +97890,7 @@ var routes = rn({
|
|
|
97655
97890
|
var app = Ve(routes, {
|
|
97656
97891
|
name: "mcp",
|
|
97657
97892
|
versionInfo: {
|
|
97658
|
-
currentVersion: "24.3.
|
|
97893
|
+
currentVersion: "24.3.1"
|
|
97659
97894
|
}
|
|
97660
97895
|
});
|
|
97661
97896
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -97663,5 +97898,5 @@ export {
|
|
|
97663
97898
|
app
|
|
97664
97899
|
};
|
|
97665
97900
|
|
|
97666
|
-
//# debugId=
|
|
97901
|
+
//# debugId=62D581613F0AF36864756E2164756E21
|
|
97667
97902
|
//# sourceMappingURL=mcp-server.js.map
|