@moovio/sdk 0.14.4 → 0.14.5
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 +38 -52
- package/bin/mcp-server.js +140 -297
- package/bin/mcp-server.js.map +11 -14
- package/docs/sdks/transfers/README.md +11 -116
- package/examples/package-lock.json +1 -1
- package/funcs/transfersGenerateOptions.d.ts +4 -3
- package/funcs/transfersGenerateOptions.d.ts.map +1 -1
- package/funcs/transfersGenerateOptions.js +14 -5
- package/funcs/transfersGenerateOptions.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.d.ts +2 -2
- package/mcp-server/tools/transfersGenerateOptions.d.ts.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +5 -3
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/models/components/terminalcard.d.ts +10 -0
- package/models/components/terminalcard.d.ts.map +1 -1
- package/models/components/terminalcard.js +4 -0
- package/models/components/terminalcard.js.map +1 -1
- package/models/operations/createtransferoptions.d.ts +30 -0
- package/models/operations/createtransferoptions.d.ts.map +1 -1
- package/models/operations/createtransferoptions.js +38 -1
- package/models/operations/createtransferoptions.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +1 -12
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +2 -15
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/transfersGenerateOptions.ts +18 -7
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -4
- package/src/mcp-server/tools/transfersGenerateOptions.ts +5 -3
- package/src/models/components/terminalcard.ts +14 -0
- package/src/models/operations/createtransferoptions.ts +75 -0
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/transfers.ts +4 -26
- package/funcs/transfersGenerateOptionsForAccount.d.ts +0 -23
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/funcs/transfersGenerateOptionsForAccount.js +0 -133
- package/funcs/transfersGenerateOptionsForAccount.js.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +0 -8
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +0 -70
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +0 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +0 -104
- package/models/operations/createtransferoptionsforaccount.d.ts.map +0 -1
- package/models/operations/createtransferoptionsforaccount.js +0 -155
- package/models/operations/createtransferoptionsforaccount.js.map +0 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +0 -202
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +0 -46
- package/src/models/operations/createtransferoptionsforaccount.ts +0 -257
package/bin/mcp-server.js
CHANGED
|
@@ -34175,9 +34175,9 @@ var init_config = __esm(() => {
|
|
|
34175
34175
|
SDK_METADATA = {
|
|
34176
34176
|
language: "typescript",
|
|
34177
34177
|
openapiDocVersion: "latest",
|
|
34178
|
-
sdkVersion: "0.14.
|
|
34179
|
-
genVersion: "2.656.
|
|
34180
|
-
userAgent: "speakeasy-sdk/typescript 0.14.
|
|
34178
|
+
sdkVersion: "0.14.5",
|
|
34179
|
+
genVersion: "2.656.5",
|
|
34180
|
+
userAgent: "speakeasy-sdk/typescript 0.14.5 2.656.5 latest @moovio/sdk"
|
|
34181
34181
|
};
|
|
34182
34182
|
});
|
|
34183
34183
|
|
|
@@ -38888,7 +38888,9 @@ var init_terminalcard = __esm(() => {
|
|
|
38888
38888
|
holderName: stringType().optional(),
|
|
38889
38889
|
issuer: stringType().optional(),
|
|
38890
38890
|
issuerCountry: stringType().optional(),
|
|
38891
|
-
lastFourCardNumber: stringType().optional()
|
|
38891
|
+
lastFourCardNumber: stringType().optional(),
|
|
38892
|
+
applicationID: stringType().optional(),
|
|
38893
|
+
applicationName: stringType().optional()
|
|
38892
38894
|
});
|
|
38893
38895
|
TerminalCard$outboundSchema = objectType({
|
|
38894
38896
|
entryMode: EntryMode$outboundSchema.optional(),
|
|
@@ -38900,7 +38902,9 @@ var init_terminalcard = __esm(() => {
|
|
|
38900
38902
|
holderName: stringType().optional(),
|
|
38901
38903
|
issuer: stringType().optional(),
|
|
38902
38904
|
issuerCountry: stringType().optional(),
|
|
38903
|
-
lastFourCardNumber: stringType().optional()
|
|
38905
|
+
lastFourCardNumber: stringType().optional(),
|
|
38906
|
+
applicationID: stringType().optional(),
|
|
38907
|
+
applicationName: stringType().optional()
|
|
38904
38908
|
});
|
|
38905
38909
|
((TerminalCard$) => {
|
|
38906
38910
|
TerminalCard$.inboundSchema = TerminalCard$inboundSchema;
|
|
@@ -50799,7 +50803,7 @@ var init_createtransfer2 = __esm(() => {
|
|
|
50799
50803
|
});
|
|
50800
50804
|
|
|
50801
50805
|
// src/models/operations/createtransferoptions.ts
|
|
50802
|
-
var CreateTransferOptionsGlobals$inboundSchema, CreateTransferOptionsGlobals$outboundSchema, CreateTransferOptionsGlobals$, CreateTransferOptionsResponse$inboundSchema, CreateTransferOptionsResponse$outboundSchema, CreateTransferOptionsResponse$;
|
|
50806
|
+
var CreateTransferOptionsGlobals$inboundSchema, CreateTransferOptionsGlobals$outboundSchema, CreateTransferOptionsGlobals$, CreateTransferOptionsRequest$inboundSchema, CreateTransferOptionsRequest$outboundSchema, CreateTransferOptionsRequest$, CreateTransferOptionsResponse$inboundSchema, CreateTransferOptionsResponse$outboundSchema, CreateTransferOptionsResponse$;
|
|
50803
50807
|
var init_createtransferoptions2 = __esm(() => {
|
|
50804
50808
|
init_esm();
|
|
50805
50809
|
init_primitives();
|
|
@@ -50822,55 +50826,7 @@ var init_createtransferoptions2 = __esm(() => {
|
|
|
50822
50826
|
CreateTransferOptionsGlobals$.inboundSchema = CreateTransferOptionsGlobals$inboundSchema;
|
|
50823
50827
|
CreateTransferOptionsGlobals$.outboundSchema = CreateTransferOptionsGlobals$outboundSchema;
|
|
50824
50828
|
})(CreateTransferOptionsGlobals$ ||= {});
|
|
50825
|
-
|
|
50826
|
-
Headers: recordType(arrayType(stringType())),
|
|
50827
|
-
Result: TransferOptions$inboundSchema
|
|
50828
|
-
}).transform((v2) => {
|
|
50829
|
-
return remap(v2, {
|
|
50830
|
-
Headers: "headers",
|
|
50831
|
-
Result: "result"
|
|
50832
|
-
});
|
|
50833
|
-
});
|
|
50834
|
-
CreateTransferOptionsResponse$outboundSchema = objectType({
|
|
50835
|
-
headers: recordType(arrayType(stringType())),
|
|
50836
|
-
result: TransferOptions$outboundSchema
|
|
50837
|
-
}).transform((v2) => {
|
|
50838
|
-
return remap(v2, {
|
|
50839
|
-
headers: "Headers",
|
|
50840
|
-
result: "Result"
|
|
50841
|
-
});
|
|
50842
|
-
});
|
|
50843
|
-
((CreateTransferOptionsResponse$) => {
|
|
50844
|
-
CreateTransferOptionsResponse$.inboundSchema = CreateTransferOptionsResponse$inboundSchema;
|
|
50845
|
-
CreateTransferOptionsResponse$.outboundSchema = CreateTransferOptionsResponse$outboundSchema;
|
|
50846
|
-
})(CreateTransferOptionsResponse$ ||= {});
|
|
50847
|
-
});
|
|
50848
|
-
|
|
50849
|
-
// src/models/operations/createtransferoptionsforaccount.ts
|
|
50850
|
-
var CreateTransferOptionsForAccountGlobals$inboundSchema, CreateTransferOptionsForAccountGlobals$outboundSchema, CreateTransferOptionsForAccountGlobals$, CreateTransferOptionsForAccountRequest$inboundSchema, CreateTransferOptionsForAccountRequest$outboundSchema, CreateTransferOptionsForAccountRequest$, CreateTransferOptionsForAccountResponse$inboundSchema, CreateTransferOptionsForAccountResponse$outboundSchema, CreateTransferOptionsForAccountResponse$;
|
|
50851
|
-
var init_createtransferoptionsforaccount = __esm(() => {
|
|
50852
|
-
init_esm();
|
|
50853
|
-
init_primitives();
|
|
50854
|
-
init_components();
|
|
50855
|
-
CreateTransferOptionsForAccountGlobals$inboundSchema = objectType({
|
|
50856
|
-
"x-moov-version": stringType().default("v2024.01.00")
|
|
50857
|
-
}).transform((v2) => {
|
|
50858
|
-
return remap(v2, {
|
|
50859
|
-
"x-moov-version": "xMoovVersion"
|
|
50860
|
-
});
|
|
50861
|
-
});
|
|
50862
|
-
CreateTransferOptionsForAccountGlobals$outboundSchema = objectType({
|
|
50863
|
-
xMoovVersion: stringType().default("v2024.01.00")
|
|
50864
|
-
}).transform((v2) => {
|
|
50865
|
-
return remap(v2, {
|
|
50866
|
-
xMoovVersion: "x-moov-version"
|
|
50867
|
-
});
|
|
50868
|
-
});
|
|
50869
|
-
((CreateTransferOptionsForAccountGlobals$) => {
|
|
50870
|
-
CreateTransferOptionsForAccountGlobals$.inboundSchema = CreateTransferOptionsForAccountGlobals$inboundSchema;
|
|
50871
|
-
CreateTransferOptionsForAccountGlobals$.outboundSchema = CreateTransferOptionsForAccountGlobals$outboundSchema;
|
|
50872
|
-
})(CreateTransferOptionsForAccountGlobals$ ||= {});
|
|
50873
|
-
CreateTransferOptionsForAccountRequest$inboundSchema = objectType({
|
|
50829
|
+
CreateTransferOptionsRequest$inboundSchema = objectType({
|
|
50874
50830
|
accountID: stringType(),
|
|
50875
50831
|
CreateTransferOptions: CreateTransferOptions$inboundSchema
|
|
50876
50832
|
}).transform((v2) => {
|
|
@@ -50878,7 +50834,7 @@ var init_createtransferoptionsforaccount = __esm(() => {
|
|
|
50878
50834
|
CreateTransferOptions: "createTransferOptions"
|
|
50879
50835
|
});
|
|
50880
50836
|
});
|
|
50881
|
-
|
|
50837
|
+
CreateTransferOptionsRequest$outboundSchema = objectType({
|
|
50882
50838
|
accountID: stringType(),
|
|
50883
50839
|
createTransferOptions: CreateTransferOptions$outboundSchema
|
|
50884
50840
|
}).transform((v2) => {
|
|
@@ -50886,11 +50842,11 @@ var init_createtransferoptionsforaccount = __esm(() => {
|
|
|
50886
50842
|
createTransferOptions: "CreateTransferOptions"
|
|
50887
50843
|
});
|
|
50888
50844
|
});
|
|
50889
|
-
((
|
|
50890
|
-
|
|
50891
|
-
|
|
50892
|
-
})(
|
|
50893
|
-
|
|
50845
|
+
((CreateTransferOptionsRequest$) => {
|
|
50846
|
+
CreateTransferOptionsRequest$.inboundSchema = CreateTransferOptionsRequest$inboundSchema;
|
|
50847
|
+
CreateTransferOptionsRequest$.outboundSchema = CreateTransferOptionsRequest$outboundSchema;
|
|
50848
|
+
})(CreateTransferOptionsRequest$ ||= {});
|
|
50849
|
+
CreateTransferOptionsResponse$inboundSchema = objectType({
|
|
50894
50850
|
Headers: recordType(arrayType(stringType())),
|
|
50895
50851
|
Result: TransferOptions$inboundSchema
|
|
50896
50852
|
}).transform((v2) => {
|
|
@@ -50899,7 +50855,7 @@ var init_createtransferoptionsforaccount = __esm(() => {
|
|
|
50899
50855
|
Result: "result"
|
|
50900
50856
|
});
|
|
50901
50857
|
});
|
|
50902
|
-
|
|
50858
|
+
CreateTransferOptionsResponse$outboundSchema = objectType({
|
|
50903
50859
|
headers: recordType(arrayType(stringType())),
|
|
50904
50860
|
result: TransferOptions$outboundSchema
|
|
50905
50861
|
}).transform((v2) => {
|
|
@@ -50908,10 +50864,10 @@ var init_createtransferoptionsforaccount = __esm(() => {
|
|
|
50908
50864
|
result: "Result"
|
|
50909
50865
|
});
|
|
50910
50866
|
});
|
|
50911
|
-
((
|
|
50912
|
-
|
|
50913
|
-
|
|
50914
|
-
})(
|
|
50867
|
+
((CreateTransferOptionsResponse$) => {
|
|
50868
|
+
CreateTransferOptionsResponse$.inboundSchema = CreateTransferOptionsResponse$inboundSchema;
|
|
50869
|
+
CreateTransferOptionsResponse$.outboundSchema = CreateTransferOptionsResponse$outboundSchema;
|
|
50870
|
+
})(CreateTransferOptionsResponse$ ||= {});
|
|
50915
50871
|
});
|
|
50916
50872
|
|
|
50917
50873
|
// src/models/operations/deletedisputeevidencefile.ts
|
|
@@ -58490,7 +58446,6 @@ var init_operations = __esm(() => {
|
|
|
58490
58446
|
init_createticket2();
|
|
58491
58447
|
init_createtransfer2();
|
|
58492
58448
|
init_createtransferoptions2();
|
|
58493
|
-
init_createtransferoptionsforaccount();
|
|
58494
58449
|
init_deletedisputeevidencefile();
|
|
58495
58450
|
init_deleterepresentative();
|
|
58496
58451
|
init_deleteterminalapplication();
|
|
@@ -73922,13 +73877,21 @@ function transfersGenerateOptions(client, request, options) {
|
|
|
73922
73877
|
return new APIPromise($do128(client, request, options));
|
|
73923
73878
|
}
|
|
73924
73879
|
async function $do128(client, request, options) {
|
|
73925
|
-
const parsed = safeParse(request, (value) =>
|
|
73880
|
+
const parsed = safeParse(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73926
73881
|
if (!parsed.ok) {
|
|
73927
73882
|
return [parsed, { status: "invalid" }];
|
|
73928
73883
|
}
|
|
73929
73884
|
const payload = parsed.value;
|
|
73930
|
-
const body = encodeJSON("body", payload, {
|
|
73931
|
-
|
|
73885
|
+
const body = encodeJSON("body", payload.CreateTransferOptions, {
|
|
73886
|
+
explode: true
|
|
73887
|
+
});
|
|
73888
|
+
const pathParams = {
|
|
73889
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
73890
|
+
explode: false,
|
|
73891
|
+
charEncoding: "percent"
|
|
73892
|
+
})
|
|
73893
|
+
};
|
|
73894
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
|
|
73932
73895
|
const headers = new Headers(compactMap({
|
|
73933
73896
|
"Content-Type": "application/json",
|
|
73934
73897
|
Accept: "application/json",
|
|
@@ -73991,7 +73954,6 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
73991
73954
|
init_schemas();
|
|
73992
73955
|
init_security();
|
|
73993
73956
|
init_url();
|
|
73994
|
-
init_components();
|
|
73995
73957
|
init_errors2();
|
|
73996
73958
|
init_operations();
|
|
73997
73959
|
init_async();
|
|
@@ -74001,131 +73963,14 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
74001
73963
|
var args128, tool$transfersGenerateOptions;
|
|
74002
73964
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
74003
73965
|
init_transfersGenerateOptions();
|
|
74004
|
-
|
|
73966
|
+
init_operations();
|
|
74005
73967
|
init_tools();
|
|
74006
73968
|
args128 = {
|
|
74007
|
-
request:
|
|
73969
|
+
request: CreateTransferOptionsRequest$inboundSchema
|
|
74008
73970
|
};
|
|
74009
73971
|
tool$transfersGenerateOptions = {
|
|
74010
73972
|
name: "transfers-generate-options",
|
|
74011
73973
|
description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
74012
|
-
supply in the request.
|
|
74013
|
-
|
|
74014
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
74015
|
-
|
|
74016
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74017
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74018
|
-
args: args128,
|
|
74019
|
-
tool: async (client, args129, ctx) => {
|
|
74020
|
-
const [result, apiCall] = await transfersGenerateOptions(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74021
|
-
if (!result.ok) {
|
|
74022
|
-
return {
|
|
74023
|
-
content: [{ type: "text", text: result.error.message }],
|
|
74024
|
-
isError: true
|
|
74025
|
-
};
|
|
74026
|
-
}
|
|
74027
|
-
const value = result.value.result;
|
|
74028
|
-
return formatResult(value, apiCall);
|
|
74029
|
-
}
|
|
74030
|
-
};
|
|
74031
|
-
});
|
|
74032
|
-
|
|
74033
|
-
// src/funcs/transfersGenerateOptionsForAccount.ts
|
|
74034
|
-
function transfersGenerateOptionsForAccount(client, request, options) {
|
|
74035
|
-
return new APIPromise($do129(client, request, options));
|
|
74036
|
-
}
|
|
74037
|
-
async function $do129(client, request, options) {
|
|
74038
|
-
const parsed = safeParse(request, (value) => CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74039
|
-
if (!parsed.ok) {
|
|
74040
|
-
return [parsed, { status: "invalid" }];
|
|
74041
|
-
}
|
|
74042
|
-
const payload = parsed.value;
|
|
74043
|
-
const body = encodeJSON("body", payload.CreateTransferOptions, {
|
|
74044
|
-
explode: true
|
|
74045
|
-
});
|
|
74046
|
-
const pathParams = {
|
|
74047
|
-
accountID: encodeSimple("accountID", payload.accountID, {
|
|
74048
|
-
explode: false,
|
|
74049
|
-
charEncoding: "percent"
|
|
74050
|
-
})
|
|
74051
|
-
};
|
|
74052
|
-
const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
|
|
74053
|
-
const headers = new Headers(compactMap({
|
|
74054
|
-
"Content-Type": "application/json",
|
|
74055
|
-
Accept: "application/json",
|
|
74056
|
-
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
74057
|
-
}));
|
|
74058
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
74059
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74060
|
-
const context = {
|
|
74061
|
-
options: client._options,
|
|
74062
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
74063
|
-
operationID: "createTransferOptionsForAccount",
|
|
74064
|
-
oAuth2Scopes: [],
|
|
74065
|
-
resolvedSecurity: requestSecurity,
|
|
74066
|
-
securitySource: client._options.security,
|
|
74067
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
74068
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
74069
|
-
};
|
|
74070
|
-
const requestRes = client._createRequest(context, {
|
|
74071
|
-
security: requestSecurity,
|
|
74072
|
-
method: "POST",
|
|
74073
|
-
baseURL: options?.serverURL,
|
|
74074
|
-
path,
|
|
74075
|
-
headers,
|
|
74076
|
-
body,
|
|
74077
|
-
userAgent: client._options.userAgent,
|
|
74078
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
74079
|
-
}, options);
|
|
74080
|
-
if (!requestRes.ok) {
|
|
74081
|
-
return [requestRes, { status: "invalid" }];
|
|
74082
|
-
}
|
|
74083
|
-
const req = requestRes.value;
|
|
74084
|
-
const doResult = await client._do(req, {
|
|
74085
|
-
context,
|
|
74086
|
-
errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
74087
|
-
retryConfig: context.retryConfig,
|
|
74088
|
-
retryCodes: context.retryCodes
|
|
74089
|
-
});
|
|
74090
|
-
if (!doResult.ok) {
|
|
74091
|
-
return [doResult, { status: "request-error", request: req }];
|
|
74092
|
-
}
|
|
74093
|
-
const response = doResult.value;
|
|
74094
|
-
const responseFields = {
|
|
74095
|
-
HttpMeta: { Response: response, Request: req }
|
|
74096
|
-
};
|
|
74097
|
-
const [result] = await match(json(200, CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
|
|
74098
|
-
hdrs: true
|
|
74099
|
-
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
74100
|
-
if (!result.ok) {
|
|
74101
|
-
return [result, { status: "complete", request: req, response }];
|
|
74102
|
-
}
|
|
74103
|
-
return [result, { status: "complete", request: req, response }];
|
|
74104
|
-
}
|
|
74105
|
-
var init_transfersGenerateOptionsForAccount = __esm(() => {
|
|
74106
|
-
init_encodings();
|
|
74107
|
-
init_matchers();
|
|
74108
|
-
init_primitives();
|
|
74109
|
-
init_schemas();
|
|
74110
|
-
init_security();
|
|
74111
|
-
init_url();
|
|
74112
|
-
init_errors2();
|
|
74113
|
-
init_operations();
|
|
74114
|
-
init_async();
|
|
74115
|
-
});
|
|
74116
|
-
|
|
74117
|
-
// src/mcp-server/tools/transfersGenerateOptionsForAccount.ts
|
|
74118
|
-
var args129, tool$transfersGenerateOptionsForAccount;
|
|
74119
|
-
var init_transfersGenerateOptionsForAccount2 = __esm(() => {
|
|
74120
|
-
init_transfersGenerateOptionsForAccount();
|
|
74121
|
-
init_operations();
|
|
74122
|
-
init_tools();
|
|
74123
|
-
args129 = {
|
|
74124
|
-
request: CreateTransferOptionsForAccountRequest$inboundSchema
|
|
74125
|
-
};
|
|
74126
|
-
tool$transfersGenerateOptionsForAccount = {
|
|
74127
|
-
name: "transfers-generate-options-for-account",
|
|
74128
|
-
description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
74129
73974
|
supply in the request body.
|
|
74130
73975
|
|
|
74131
73976
|
The accountID in the route should the partner's accountID.
|
|
@@ -74134,9 +73979,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
74134
73979
|
|
|
74135
73980
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74136
73981
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74137
|
-
args:
|
|
74138
|
-
tool: async (client,
|
|
74139
|
-
const [result, apiCall] = await
|
|
73982
|
+
args: args128,
|
|
73983
|
+
tool: async (client, args129, ctx) => {
|
|
73984
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74140
73985
|
if (!result.ok) {
|
|
74141
73986
|
return {
|
|
74142
73987
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74151,9 +73996,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
74151
73996
|
|
|
74152
73997
|
// src/funcs/transfersGet.ts
|
|
74153
73998
|
function transfersGet(client, request, options) {
|
|
74154
|
-
return new APIPromise($
|
|
73999
|
+
return new APIPromise($do129(client, request, options));
|
|
74155
74000
|
}
|
|
74156
|
-
async function $
|
|
74001
|
+
async function $do129(client, request, options) {
|
|
74157
74002
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74158
74003
|
if (!parsed.ok) {
|
|
74159
74004
|
return [parsed, { status: "invalid" }];
|
|
@@ -74235,12 +74080,12 @@ var init_transfersGet = __esm(() => {
|
|
|
74235
74080
|
});
|
|
74236
74081
|
|
|
74237
74082
|
// src/mcp-server/tools/transfersGet.ts
|
|
74238
|
-
var
|
|
74083
|
+
var args129, tool$transfersGet;
|
|
74239
74084
|
var init_transfersGet2 = __esm(() => {
|
|
74240
74085
|
init_transfersGet();
|
|
74241
74086
|
init_operations();
|
|
74242
74087
|
init_tools();
|
|
74243
|
-
|
|
74088
|
+
args129 = {
|
|
74244
74089
|
request: GetTransferRequest$inboundSchema
|
|
74245
74090
|
};
|
|
74246
74091
|
tool$transfersGet = {
|
|
@@ -74252,9 +74097,9 @@ to learn more.
|
|
|
74252
74097
|
|
|
74253
74098
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74254
74099
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74255
|
-
args:
|
|
74256
|
-
tool: async (client,
|
|
74257
|
-
const [result, apiCall] = await transfersGet(client,
|
|
74100
|
+
args: args129,
|
|
74101
|
+
tool: async (client, args130, ctx) => {
|
|
74102
|
+
const [result, apiCall] = await transfersGet(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74258
74103
|
if (!result.ok) {
|
|
74259
74104
|
return {
|
|
74260
74105
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74269,9 +74114,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74269
74114
|
|
|
74270
74115
|
// src/funcs/transfersGetCancellation.ts
|
|
74271
74116
|
function transfersGetCancellation(client, request, options) {
|
|
74272
|
-
return new APIPromise($
|
|
74117
|
+
return new APIPromise($do130(client, request, options));
|
|
74273
74118
|
}
|
|
74274
|
-
async function $
|
|
74119
|
+
async function $do130(client, request, options) {
|
|
74275
74120
|
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74276
74121
|
if (!parsed.ok) {
|
|
74277
74122
|
return [parsed, { status: "invalid" }];
|
|
@@ -74357,12 +74202,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
74357
74202
|
});
|
|
74358
74203
|
|
|
74359
74204
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
74360
|
-
var
|
|
74205
|
+
var args130, tool$transfersGetCancellation;
|
|
74361
74206
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
74362
74207
|
init_transfersGetCancellation();
|
|
74363
74208
|
init_operations();
|
|
74364
74209
|
init_tools();
|
|
74365
|
-
|
|
74210
|
+
args130 = {
|
|
74366
74211
|
request: GetCancellationRequest$inboundSchema
|
|
74367
74212
|
};
|
|
74368
74213
|
tool$transfersGetCancellation = {
|
|
@@ -74371,9 +74216,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
74371
74216
|
|
|
74372
74217
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
74373
74218
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74374
|
-
args:
|
|
74375
|
-
tool: async (client,
|
|
74376
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
74219
|
+
args: args130,
|
|
74220
|
+
tool: async (client, args131, ctx) => {
|
|
74221
|
+
const [result, apiCall] = await transfersGetCancellation(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74377
74222
|
if (!result.ok) {
|
|
74378
74223
|
return {
|
|
74379
74224
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74388,9 +74233,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
74388
74233
|
|
|
74389
74234
|
// src/funcs/transfersGetRefund.ts
|
|
74390
74235
|
function transfersGetRefund(client, request, options) {
|
|
74391
|
-
return new APIPromise($
|
|
74236
|
+
return new APIPromise($do131(client, request, options));
|
|
74392
74237
|
}
|
|
74393
|
-
async function $
|
|
74238
|
+
async function $do131(client, request, options) {
|
|
74394
74239
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74395
74240
|
if (!parsed.ok) {
|
|
74396
74241
|
return [parsed, { status: "invalid" }];
|
|
@@ -74476,12 +74321,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
74476
74321
|
});
|
|
74477
74322
|
|
|
74478
74323
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
74479
|
-
var
|
|
74324
|
+
var args131, tool$transfersGetRefund;
|
|
74480
74325
|
var init_transfersGetRefund2 = __esm(() => {
|
|
74481
74326
|
init_transfersGetRefund();
|
|
74482
74327
|
init_operations();
|
|
74483
74328
|
init_tools();
|
|
74484
|
-
|
|
74329
|
+
args131 = {
|
|
74485
74330
|
request: GetRefundRequest$inboundSchema
|
|
74486
74331
|
};
|
|
74487
74332
|
tool$transfersGetRefund = {
|
|
@@ -74490,9 +74335,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
74490
74335
|
|
|
74491
74336
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74492
74337
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74493
|
-
args:
|
|
74494
|
-
tool: async (client,
|
|
74495
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
74338
|
+
args: args131,
|
|
74339
|
+
tool: async (client, args132, ctx) => {
|
|
74340
|
+
const [result, apiCall] = await transfersGetRefund(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74496
74341
|
if (!result.ok) {
|
|
74497
74342
|
return {
|
|
74498
74343
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74507,9 +74352,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74507
74352
|
|
|
74508
74353
|
// src/funcs/transfersInitiateRefund.ts
|
|
74509
74354
|
function transfersInitiateRefund(client, request, options) {
|
|
74510
|
-
return new APIPromise($
|
|
74355
|
+
return new APIPromise($do132(client, request, options));
|
|
74511
74356
|
}
|
|
74512
|
-
async function $
|
|
74357
|
+
async function $do132(client, request, options) {
|
|
74513
74358
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74514
74359
|
if (!parsed.ok) {
|
|
74515
74360
|
return [parsed, { status: "invalid" }];
|
|
@@ -74601,12 +74446,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
74601
74446
|
});
|
|
74602
74447
|
|
|
74603
74448
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
74604
|
-
var
|
|
74449
|
+
var args132, tool$transfersInitiateRefund;
|
|
74605
74450
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
74606
74451
|
init_transfersInitiateRefund();
|
|
74607
74452
|
init_operations();
|
|
74608
74453
|
init_tools();
|
|
74609
|
-
|
|
74454
|
+
args132 = {
|
|
74610
74455
|
request: InitiateRefundRequest$inboundSchema
|
|
74611
74456
|
};
|
|
74612
74457
|
tool$transfersInitiateRefund = {
|
|
@@ -74618,9 +74463,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
74618
74463
|
|
|
74619
74464
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74620
74465
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74621
|
-
args:
|
|
74622
|
-
tool: async (client,
|
|
74623
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
74466
|
+
args: args132,
|
|
74467
|
+
tool: async (client, args133, ctx) => {
|
|
74468
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74624
74469
|
if (!result.ok) {
|
|
74625
74470
|
return {
|
|
74626
74471
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74635,9 +74480,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
74635
74480
|
|
|
74636
74481
|
// src/funcs/transfersList.ts
|
|
74637
74482
|
function transfersList(client, request, options) {
|
|
74638
|
-
return new APIPromise($
|
|
74483
|
+
return new APIPromise($do133(client, request, options));
|
|
74639
74484
|
}
|
|
74640
|
-
async function $
|
|
74485
|
+
async function $do133(client, request, options) {
|
|
74641
74486
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74642
74487
|
if (!parsed.ok) {
|
|
74643
74488
|
return [parsed, { status: "invalid" }];
|
|
@@ -74730,12 +74575,12 @@ var init_transfersList = __esm(() => {
|
|
|
74730
74575
|
});
|
|
74731
74576
|
|
|
74732
74577
|
// src/mcp-server/tools/transfersList.ts
|
|
74733
|
-
var
|
|
74578
|
+
var args133, tool$transfersList;
|
|
74734
74579
|
var init_transfersList2 = __esm(() => {
|
|
74735
74580
|
init_transfersList();
|
|
74736
74581
|
init_operations();
|
|
74737
74582
|
init_tools();
|
|
74738
|
-
|
|
74583
|
+
args133 = {
|
|
74739
74584
|
request: ListTransfersRequest$inboundSchema
|
|
74740
74585
|
};
|
|
74741
74586
|
tool$transfersList = {
|
|
@@ -74751,9 +74596,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
74751
74596
|
|
|
74752
74597
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74753
74598
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74754
|
-
args:
|
|
74755
|
-
tool: async (client,
|
|
74756
|
-
const [result, apiCall] = await transfersList(client,
|
|
74599
|
+
args: args133,
|
|
74600
|
+
tool: async (client, args134, ctx) => {
|
|
74601
|
+
const [result, apiCall] = await transfersList(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74757
74602
|
if (!result.ok) {
|
|
74758
74603
|
return {
|
|
74759
74604
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74768,9 +74613,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74768
74613
|
|
|
74769
74614
|
// src/funcs/transfersListRefunds.ts
|
|
74770
74615
|
function transfersListRefunds(client, request, options) {
|
|
74771
|
-
return new APIPromise($
|
|
74616
|
+
return new APIPromise($do134(client, request, options));
|
|
74772
74617
|
}
|
|
74773
|
-
async function $
|
|
74618
|
+
async function $do134(client, request, options) {
|
|
74774
74619
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74775
74620
|
if (!parsed.ok) {
|
|
74776
74621
|
return [parsed, { status: "invalid" }];
|
|
@@ -74852,12 +74697,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
74852
74697
|
});
|
|
74853
74698
|
|
|
74854
74699
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
74855
|
-
var
|
|
74700
|
+
var args134, tool$transfersListRefunds;
|
|
74856
74701
|
var init_transfersListRefunds2 = __esm(() => {
|
|
74857
74702
|
init_transfersListRefunds();
|
|
74858
74703
|
init_operations();
|
|
74859
74704
|
init_tools();
|
|
74860
|
-
|
|
74705
|
+
args134 = {
|
|
74861
74706
|
request: ListRefundsRequest$inboundSchema
|
|
74862
74707
|
};
|
|
74863
74708
|
tool$transfersListRefunds = {
|
|
@@ -74866,9 +74711,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
74866
74711
|
|
|
74867
74712
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74868
74713
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74869
|
-
args:
|
|
74870
|
-
tool: async (client,
|
|
74871
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
74714
|
+
args: args134,
|
|
74715
|
+
tool: async (client, args135, ctx) => {
|
|
74716
|
+
const [result, apiCall] = await transfersListRefunds(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74872
74717
|
if (!result.ok) {
|
|
74873
74718
|
return {
|
|
74874
74719
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74883,9 +74728,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74883
74728
|
|
|
74884
74729
|
// src/funcs/transfersUpdate.ts
|
|
74885
74730
|
function transfersUpdate(client, request, options) {
|
|
74886
|
-
return new APIPromise($
|
|
74731
|
+
return new APIPromise($do135(client, request, options));
|
|
74887
74732
|
}
|
|
74888
|
-
async function $
|
|
74733
|
+
async function $do135(client, request, options) {
|
|
74889
74734
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74890
74735
|
if (!parsed.ok) {
|
|
74891
74736
|
return [parsed, { status: "invalid" }];
|
|
@@ -74968,12 +74813,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
74968
74813
|
});
|
|
74969
74814
|
|
|
74970
74815
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
74971
|
-
var
|
|
74816
|
+
var args135, tool$transfersUpdate;
|
|
74972
74817
|
var init_transfersUpdate2 = __esm(() => {
|
|
74973
74818
|
init_transfersUpdate();
|
|
74974
74819
|
init_operations();
|
|
74975
74820
|
init_tools();
|
|
74976
|
-
|
|
74821
|
+
args135 = {
|
|
74977
74822
|
request: UpdateTransferRequest$inboundSchema
|
|
74978
74823
|
};
|
|
74979
74824
|
tool$transfersUpdate = {
|
|
@@ -74984,9 +74829,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
74984
74829
|
|
|
74985
74830
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74986
74831
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74987
|
-
args:
|
|
74988
|
-
tool: async (client,
|
|
74989
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
74832
|
+
args: args135,
|
|
74833
|
+
tool: async (client, args136, ctx) => {
|
|
74834
|
+
const [result, apiCall] = await transfersUpdate(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74990
74835
|
if (!result.ok) {
|
|
74991
74836
|
return {
|
|
74992
74837
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75001,9 +74846,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75001
74846
|
|
|
75002
74847
|
// src/funcs/underwritingGet.ts
|
|
75003
74848
|
function underwritingGet(client, request, options) {
|
|
75004
|
-
return new APIPromise($
|
|
74849
|
+
return new APIPromise($do136(client, request, options));
|
|
75005
74850
|
}
|
|
75006
|
-
async function $
|
|
74851
|
+
async function $do136(client, request, options) {
|
|
75007
74852
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75008
74853
|
if (!parsed.ok) {
|
|
75009
74854
|
return [parsed, { status: "invalid" }];
|
|
@@ -75081,12 +74926,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
75081
74926
|
});
|
|
75082
74927
|
|
|
75083
74928
|
// src/mcp-server/tools/underwritingGet.ts
|
|
75084
|
-
var
|
|
74929
|
+
var args136, tool$underwritingGet;
|
|
75085
74930
|
var init_underwritingGet2 = __esm(() => {
|
|
75086
74931
|
init_underwritingGet();
|
|
75087
74932
|
init_operations();
|
|
75088
74933
|
init_tools();
|
|
75089
|
-
|
|
74934
|
+
args136 = {
|
|
75090
74935
|
request: GetUnderwritingRequest$inboundSchema
|
|
75091
74936
|
};
|
|
75092
74937
|
tool$underwritingGet = {
|
|
@@ -75097,9 +74942,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
75097
74942
|
|
|
75098
74943
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75099
74944
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
75100
|
-
args:
|
|
75101
|
-
tool: async (client,
|
|
75102
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
74945
|
+
args: args136,
|
|
74946
|
+
tool: async (client, args137, ctx) => {
|
|
74947
|
+
const [result, apiCall] = await underwritingGet(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75103
74948
|
if (!result.ok) {
|
|
75104
74949
|
return {
|
|
75105
74950
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75114,9 +74959,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
75114
74959
|
|
|
75115
74960
|
// src/funcs/underwritingSave.ts
|
|
75116
74961
|
function underwritingSave(client, request, options) {
|
|
75117
|
-
return new APIPromise($
|
|
74962
|
+
return new APIPromise($do137(client, request, options));
|
|
75118
74963
|
}
|
|
75119
|
-
async function $
|
|
74964
|
+
async function $do137(client, request, options) {
|
|
75120
74965
|
const parsed = safeParse(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75121
74966
|
if (!parsed.ok) {
|
|
75122
74967
|
return [parsed, { status: "invalid" }];
|
|
@@ -75212,12 +75057,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
75212
75057
|
});
|
|
75213
75058
|
|
|
75214
75059
|
// src/mcp-server/tools/underwritingSave.ts
|
|
75215
|
-
var
|
|
75060
|
+
var args137, tool$underwritingSave;
|
|
75216
75061
|
var init_underwritingSave2 = __esm(() => {
|
|
75217
75062
|
init_underwritingSave();
|
|
75218
75063
|
init_operations();
|
|
75219
75064
|
init_tools();
|
|
75220
|
-
|
|
75065
|
+
args137 = {
|
|
75221
75066
|
request: SaveUnderwritingRequest$inboundSchema
|
|
75222
75067
|
};
|
|
75223
75068
|
tool$underwritingSave = {
|
|
@@ -75228,9 +75073,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
75228
75073
|
|
|
75229
75074
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75230
75075
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
75231
|
-
args:
|
|
75232
|
-
tool: async (client,
|
|
75233
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
75076
|
+
args: args137,
|
|
75077
|
+
tool: async (client, args138, ctx) => {
|
|
75078
|
+
const [result, apiCall] = await underwritingSave(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75234
75079
|
if (!result.ok) {
|
|
75235
75080
|
return {
|
|
75236
75081
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75245,9 +75090,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
75245
75090
|
|
|
75246
75091
|
// src/funcs/underwritingUpsert.ts
|
|
75247
75092
|
function underwritingUpsert(client, request, options) {
|
|
75248
|
-
return new APIPromise($
|
|
75093
|
+
return new APIPromise($do138(client, request, options));
|
|
75249
75094
|
}
|
|
75250
|
-
async function $
|
|
75095
|
+
async function $do138(client, request, options) {
|
|
75251
75096
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75252
75097
|
if (!parsed.ok) {
|
|
75253
75098
|
return [parsed, { status: "invalid" }];
|
|
@@ -75343,12 +75188,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
75343
75188
|
});
|
|
75344
75189
|
|
|
75345
75190
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
75346
|
-
var
|
|
75191
|
+
var args138, tool$underwritingUpsert;
|
|
75347
75192
|
var init_underwritingUpsert2 = __esm(() => {
|
|
75348
75193
|
init_underwritingUpsert();
|
|
75349
75194
|
init_operations();
|
|
75350
75195
|
init_tools();
|
|
75351
|
-
|
|
75196
|
+
args138 = {
|
|
75352
75197
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
75353
75198
|
};
|
|
75354
75199
|
tool$underwritingUpsert = {
|
|
@@ -75359,9 +75204,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
75359
75204
|
|
|
75360
75205
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75361
75206
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
75362
|
-
args:
|
|
75363
|
-
tool: async (client,
|
|
75364
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
75207
|
+
args: args138,
|
|
75208
|
+
tool: async (client, args139, ctx) => {
|
|
75209
|
+
const [result, apiCall] = await underwritingUpsert(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75365
75210
|
if (!result.ok) {
|
|
75366
75211
|
return {
|
|
75367
75212
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75376,9 +75221,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
75376
75221
|
|
|
75377
75222
|
// src/funcs/walletsGet.ts
|
|
75378
75223
|
function walletsGet(client, request, options) {
|
|
75379
|
-
return new APIPromise($
|
|
75224
|
+
return new APIPromise($do139(client, request, options));
|
|
75380
75225
|
}
|
|
75381
|
-
async function $
|
|
75226
|
+
async function $do139(client, request, options) {
|
|
75382
75227
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75383
75228
|
if (!parsed.ok) {
|
|
75384
75229
|
return [parsed, { status: "invalid" }];
|
|
@@ -75460,12 +75305,12 @@ var init_walletsGet = __esm(() => {
|
|
|
75460
75305
|
});
|
|
75461
75306
|
|
|
75462
75307
|
// src/mcp-server/tools/walletsGet.ts
|
|
75463
|
-
var
|
|
75308
|
+
var args139, tool$walletsGet;
|
|
75464
75309
|
var init_walletsGet2 = __esm(() => {
|
|
75465
75310
|
init_walletsGet();
|
|
75466
75311
|
init_operations();
|
|
75467
75312
|
init_tools();
|
|
75468
|
-
|
|
75313
|
+
args139 = {
|
|
75469
75314
|
request: GetWalletRequest$inboundSchema
|
|
75470
75315
|
};
|
|
75471
75316
|
tool$walletsGet = {
|
|
@@ -75476,9 +75321,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
75476
75321
|
|
|
75477
75322
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75478
75323
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
75479
|
-
args:
|
|
75480
|
-
tool: async (client,
|
|
75481
|
-
const [result, apiCall] = await walletsGet(client,
|
|
75324
|
+
args: args139,
|
|
75325
|
+
tool: async (client, args140, ctx) => {
|
|
75326
|
+
const [result, apiCall] = await walletsGet(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75482
75327
|
if (!result.ok) {
|
|
75483
75328
|
return {
|
|
75484
75329
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75493,9 +75338,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
75493
75338
|
|
|
75494
75339
|
// src/funcs/walletsList.ts
|
|
75495
75340
|
function walletsList(client, request, options) {
|
|
75496
|
-
return new APIPromise($
|
|
75341
|
+
return new APIPromise($do140(client, request, options));
|
|
75497
75342
|
}
|
|
75498
|
-
async function $
|
|
75343
|
+
async function $do140(client, request, options) {
|
|
75499
75344
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75500
75345
|
if (!parsed.ok) {
|
|
75501
75346
|
return [parsed, { status: "invalid" }];
|
|
@@ -75573,12 +75418,12 @@ var init_walletsList = __esm(() => {
|
|
|
75573
75418
|
});
|
|
75574
75419
|
|
|
75575
75420
|
// src/mcp-server/tools/walletsList.ts
|
|
75576
|
-
var
|
|
75421
|
+
var args140, tool$walletsList;
|
|
75577
75422
|
var init_walletsList2 = __esm(() => {
|
|
75578
75423
|
init_walletsList();
|
|
75579
75424
|
init_operations();
|
|
75580
75425
|
init_tools();
|
|
75581
|
-
|
|
75426
|
+
args140 = {
|
|
75582
75427
|
request: ListWalletsRequest$inboundSchema
|
|
75583
75428
|
};
|
|
75584
75429
|
tool$walletsList = {
|
|
@@ -75589,9 +75434,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
75589
75434
|
|
|
75590
75435
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75591
75436
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
75592
|
-
args:
|
|
75593
|
-
tool: async (client,
|
|
75594
|
-
const [result, apiCall] = await walletsList(client,
|
|
75437
|
+
args: args140,
|
|
75438
|
+
tool: async (client, args141, ctx) => {
|
|
75439
|
+
const [result, apiCall] = await walletsList(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75595
75440
|
if (!result.ok) {
|
|
75596
75441
|
return {
|
|
75597
75442
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75606,9 +75451,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
75606
75451
|
|
|
75607
75452
|
// src/funcs/walletTransactionsGet.ts
|
|
75608
75453
|
function walletTransactionsGet(client, request, options) {
|
|
75609
|
-
return new APIPromise($
|
|
75454
|
+
return new APIPromise($do141(client, request, options));
|
|
75610
75455
|
}
|
|
75611
|
-
async function $
|
|
75456
|
+
async function $do141(client, request, options) {
|
|
75612
75457
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75613
75458
|
if (!parsed.ok) {
|
|
75614
75459
|
return [parsed, { status: "invalid" }];
|
|
@@ -75694,12 +75539,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
75694
75539
|
});
|
|
75695
75540
|
|
|
75696
75541
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
75697
|
-
var
|
|
75542
|
+
var args141, tool$walletTransactionsGet;
|
|
75698
75543
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
75699
75544
|
init_walletTransactionsGet();
|
|
75700
75545
|
init_operations();
|
|
75701
75546
|
init_tools();
|
|
75702
|
-
|
|
75547
|
+
args141 = {
|
|
75703
75548
|
request: GetWalletTransactionRequest$inboundSchema
|
|
75704
75549
|
};
|
|
75705
75550
|
tool$walletTransactionsGet = {
|
|
@@ -75710,9 +75555,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
75710
75555
|
|
|
75711
75556
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75712
75557
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
75713
|
-
args:
|
|
75714
|
-
tool: async (client,
|
|
75715
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
75558
|
+
args: args141,
|
|
75559
|
+
tool: async (client, args142, ctx) => {
|
|
75560
|
+
const [result, apiCall] = await walletTransactionsGet(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75716
75561
|
if (!result.ok) {
|
|
75717
75562
|
return {
|
|
75718
75563
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75727,9 +75572,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
75727
75572
|
|
|
75728
75573
|
// src/funcs/walletTransactionsList.ts
|
|
75729
75574
|
function walletTransactionsList(client, request, options) {
|
|
75730
|
-
return new APIPromise($
|
|
75575
|
+
return new APIPromise($do142(client, request, options));
|
|
75731
75576
|
}
|
|
75732
|
-
async function $
|
|
75577
|
+
async function $do142(client, request, options) {
|
|
75733
75578
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75734
75579
|
if (!parsed.ok) {
|
|
75735
75580
|
return [parsed, { status: "invalid" }];
|
|
@@ -75826,12 +75671,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
75826
75671
|
});
|
|
75827
75672
|
|
|
75828
75673
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
75829
|
-
var
|
|
75674
|
+
var args142, tool$walletTransactionsList;
|
|
75830
75675
|
var init_walletTransactionsList2 = __esm(() => {
|
|
75831
75676
|
init_walletTransactionsList();
|
|
75832
75677
|
init_operations();
|
|
75833
75678
|
init_tools();
|
|
75834
|
-
|
|
75679
|
+
args142 = {
|
|
75835
75680
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
75836
75681
|
};
|
|
75837
75682
|
tool$walletTransactionsList = {
|
|
@@ -75842,9 +75687,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
75842
75687
|
|
|
75843
75688
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75844
75689
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
75845
|
-
args:
|
|
75846
|
-
tool: async (client,
|
|
75847
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
75690
|
+
args: args142,
|
|
75691
|
+
tool: async (client, args143, ctx) => {
|
|
75692
|
+
const [result, apiCall] = await walletTransactionsList(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75848
75693
|
if (!result.ok) {
|
|
75849
75694
|
return {
|
|
75850
75695
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75861,7 +75706,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
75861
75706
|
function createMCPServer(deps) {
|
|
75862
75707
|
const server = new McpServer({
|
|
75863
75708
|
name: "Moov",
|
|
75864
|
-
version: "0.14.
|
|
75709
|
+
version: "0.14.5"
|
|
75865
75710
|
});
|
|
75866
75711
|
const client = new MoovCore({
|
|
75867
75712
|
security: deps.security,
|
|
@@ -75969,7 +75814,7 @@ function createMCPServer(deps) {
|
|
|
75969
75814
|
tool(tool$supportGetTicket);
|
|
75970
75815
|
tool(tool$supportUpdateTicket);
|
|
75971
75816
|
tool(tool$supportListTicketMessages);
|
|
75972
|
-
tool(tool$
|
|
75817
|
+
tool(tool$transfersGenerateOptions);
|
|
75973
75818
|
tool(tool$transfersCreate);
|
|
75974
75819
|
tool(tool$transfersList);
|
|
75975
75820
|
tool(tool$transfersGet);
|
|
@@ -75980,7 +75825,6 @@ function createMCPServer(deps) {
|
|
|
75980
75825
|
tool(tool$transfersListRefunds);
|
|
75981
75826
|
tool(tool$transfersGetRefund);
|
|
75982
75827
|
tool(tool$transfersCreateReversal);
|
|
75983
|
-
tool(tool$transfersGenerateOptions);
|
|
75984
75828
|
tool(tool$underwritingGet);
|
|
75985
75829
|
tool(tool$underwritingSave);
|
|
75986
75830
|
tool(tool$underwritingUpsert);
|
|
@@ -76154,7 +75998,6 @@ var init_server2 = __esm(() => {
|
|
|
76154
75998
|
init_transfersCreateCancellation2();
|
|
76155
75999
|
init_transfersCreateReversal2();
|
|
76156
76000
|
init_transfersGenerateOptions2();
|
|
76157
|
-
init_transfersGenerateOptionsForAccount2();
|
|
76158
76001
|
init_transfersGet2();
|
|
76159
76002
|
init_transfersGetCancellation2();
|
|
76160
76003
|
init_transfersGetRefund2();
|
|
@@ -77371,7 +77214,7 @@ var routes = rn({
|
|
|
77371
77214
|
var app = Ve(routes, {
|
|
77372
77215
|
name: "mcp",
|
|
77373
77216
|
versionInfo: {
|
|
77374
|
-
currentVersion: "0.14.
|
|
77217
|
+
currentVersion: "0.14.5"
|
|
77375
77218
|
}
|
|
77376
77219
|
});
|
|
77377
77220
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -77379,5 +77222,5 @@ export {
|
|
|
77379
77222
|
app
|
|
77380
77223
|
};
|
|
77381
77224
|
|
|
77382
|
-
//# debugId=
|
|
77225
|
+
//# debugId=F29B9B8515FCFECA64756E2164756E21
|
|
77383
77226
|
//# sourceMappingURL=mcp-server.js.map
|