@moovio/sdk 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -8
- package/bin/mcp-server.js +471 -104
- package/bin/mcp-server.js.map +15 -9
- package/docs/sdks/transfers/README.md +185 -0
- package/funcs/transfersCreateCancellation.d.ts +17 -0
- package/funcs/transfersCreateCancellation.d.ts.map +1 -0
- package/funcs/transfersCreateCancellation.js +128 -0
- package/funcs/transfersCreateCancellation.js.map +1 -0
- package/funcs/transfersGetCancellation.d.ts +16 -0
- package/funcs/transfersGetCancellation.d.ts.map +1 -0
- package/funcs/transfersGetCancellation.js +131 -0
- package/funcs/transfersGetCancellation.js.map +1 -0
- 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 +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersCreateCancellation.d.ts +8 -0
- package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -0
- package/mcp-server/tools/transfersCreateCancellation.js +65 -0
- package/mcp-server/tools/transfersCreateCancellation.js.map +1 -0
- package/mcp-server/tools/transfersGetCancellation.d.ts +8 -0
- package/mcp-server/tools/transfersGetCancellation.d.ts.map +1 -0
- package/mcp-server/tools/transfersGetCancellation.js +65 -0
- package/mcp-server/tools/transfersGetCancellation.js.map +1 -0
- package/models/components/transfer.d.ts +3 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/createcancellation.d.ts +107 -0
- package/models/operations/createcancellation.d.ts.map +1 -0
- package/models/operations/createcancellation.js +147 -0
- package/models/operations/createcancellation.js.map +1 -0
- package/models/operations/getcancellation.d.ts +112 -0
- package/models/operations/getcancellation.d.ts.map +1 -0
- package/models/operations/getcancellation.js +149 -0
- package/models/operations/getcancellation.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +14 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +20 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/transfersCreateCancellation.ts +184 -0
- package/src/funcs/transfersGetCancellation.ts +183 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/transfersCreateCancellation.ts +38 -0
- package/src/mcp-server/tools/transfersGetCancellation.ts +38 -0
- package/src/models/components/transfer.ts +10 -0
- package/src/models/errors/transfer.ts +6 -0
- package/src/models/operations/createcancellation.ts +229 -0
- package/src/models/operations/getcancellation.ts +236 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/transfers.ts +36 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34213,9 +34213,9 @@ var init_config = __esm(() => {
|
|
|
34213
34213
|
SDK_METADATA = {
|
|
34214
34214
|
language: "typescript",
|
|
34215
34215
|
openapiDocVersion: "latest",
|
|
34216
|
-
sdkVersion: "0.6.
|
|
34217
|
-
genVersion: "2.539.
|
|
34218
|
-
userAgent: "speakeasy-sdk/typescript 0.6.
|
|
34216
|
+
sdkVersion: "0.6.1",
|
|
34217
|
+
genVersion: "2.539.1",
|
|
34218
|
+
userAgent: "speakeasy-sdk/typescript 0.6.1 2.539.1 latest @moovio/sdk"
|
|
34219
34219
|
};
|
|
34220
34220
|
});
|
|
34221
34221
|
|
|
@@ -43482,6 +43482,7 @@ var Transfer$inboundSchema, Transfer$outboundSchema, Transfer$;
|
|
|
43482
43482
|
var init_transfer = __esm(() => {
|
|
43483
43483
|
init_lib();
|
|
43484
43484
|
init_amount();
|
|
43485
|
+
init_cancellation();
|
|
43485
43486
|
init_cardacquiringdispute();
|
|
43486
43487
|
init_cardacquiringrefund();
|
|
43487
43488
|
init_facilitatorfee();
|
|
@@ -43506,6 +43507,7 @@ var init_transfer = __esm(() => {
|
|
|
43506
43507
|
moovFeeDecimal: stringType().optional(),
|
|
43507
43508
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
43508
43509
|
groupID: stringType().optional(),
|
|
43510
|
+
cancellations: arrayType(Cancellation$inboundSchema).optional(),
|
|
43509
43511
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
43510
43512
|
refunds: arrayType(CardAcquiringRefund$inboundSchema).optional(),
|
|
43511
43513
|
disputedAmount: Amount$inboundSchema.optional(),
|
|
@@ -43530,6 +43532,7 @@ var init_transfer = __esm(() => {
|
|
|
43530
43532
|
moovFeeDecimal: stringType().optional(),
|
|
43531
43533
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
43532
43534
|
groupID: stringType().optional(),
|
|
43535
|
+
cancellations: arrayType(Cancellation$outboundSchema).optional(),
|
|
43533
43536
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
43534
43537
|
refunds: arrayType(CardAcquiringRefund$outboundSchema).optional(),
|
|
43535
43538
|
disputedAmount: Amount$outboundSchema.optional(),
|
|
@@ -45739,6 +45742,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45739
45742
|
moovFeeDecimal;
|
|
45740
45743
|
moovFeeDetails;
|
|
45741
45744
|
groupID;
|
|
45745
|
+
cancellations;
|
|
45742
45746
|
refundedAmount;
|
|
45743
45747
|
refunds;
|
|
45744
45748
|
disputedAmount;
|
|
@@ -45775,6 +45779,8 @@ var init_transfer2 = __esm(() => {
|
|
|
45775
45779
|
this.moovFeeDetails = err.moovFeeDetails;
|
|
45776
45780
|
if (err.groupID != null)
|
|
45777
45781
|
this.groupID = err.groupID;
|
|
45782
|
+
if (err.cancellations != null)
|
|
45783
|
+
this.cancellations = err.cancellations;
|
|
45778
45784
|
if (err.refundedAmount != null)
|
|
45779
45785
|
this.refundedAmount = err.refundedAmount;
|
|
45780
45786
|
if (err.refunds != null)
|
|
@@ -45808,6 +45814,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45808
45814
|
moovFeeDecimal: stringType().optional(),
|
|
45809
45815
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
45810
45816
|
groupID: stringType().optional(),
|
|
45817
|
+
cancellations: arrayType(Cancellation$inboundSchema).optional(),
|
|
45811
45818
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
45812
45819
|
refunds: arrayType(CardAcquiringRefund$inboundSchema).optional(),
|
|
45813
45820
|
disputedAmount: Amount$inboundSchema.optional(),
|
|
@@ -45834,6 +45841,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45834
45841
|
moovFeeDecimal: stringType().optional(),
|
|
45835
45842
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
45836
45843
|
groupID: stringType().optional(),
|
|
45844
|
+
cancellations: arrayType(Cancellation$outboundSchema).optional(),
|
|
45837
45845
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
45838
45846
|
refunds: arrayType(CardAcquiringRefund$outboundSchema).optional(),
|
|
45839
45847
|
disputedAmount: Amount$outboundSchema.optional(),
|
|
@@ -46813,6 +46821,66 @@ var init_createbrand = __esm(() => {
|
|
|
46813
46821
|
})(CreateBrandResponse$ ||= {});
|
|
46814
46822
|
});
|
|
46815
46823
|
|
|
46824
|
+
// src/models/operations/createcancellation.ts
|
|
46825
|
+
var CreateCancellationGlobals$inboundSchema, CreateCancellationGlobals$outboundSchema, CreateCancellationGlobals$, CreateCancellationRequest$inboundSchema, CreateCancellationRequest$outboundSchema, CreateCancellationRequest$, CreateCancellationResponse$inboundSchema, CreateCancellationResponse$outboundSchema, CreateCancellationResponse$;
|
|
46826
|
+
var init_createcancellation = __esm(() => {
|
|
46827
|
+
init_lib();
|
|
46828
|
+
init_primitives();
|
|
46829
|
+
init_components();
|
|
46830
|
+
CreateCancellationGlobals$inboundSchema = objectType({
|
|
46831
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
46832
|
+
}).transform((v2) => {
|
|
46833
|
+
return remap(v2, {
|
|
46834
|
+
"x-moov-version": "xMoovVersion"
|
|
46835
|
+
});
|
|
46836
|
+
});
|
|
46837
|
+
CreateCancellationGlobals$outboundSchema = objectType({
|
|
46838
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
46839
|
+
}).transform((v2) => {
|
|
46840
|
+
return remap(v2, {
|
|
46841
|
+
xMoovVersion: "x-moov-version"
|
|
46842
|
+
});
|
|
46843
|
+
});
|
|
46844
|
+
((CreateCancellationGlobals$) => {
|
|
46845
|
+
CreateCancellationGlobals$.inboundSchema = CreateCancellationGlobals$inboundSchema;
|
|
46846
|
+
CreateCancellationGlobals$.outboundSchema = CreateCancellationGlobals$outboundSchema;
|
|
46847
|
+
})(CreateCancellationGlobals$ ||= {});
|
|
46848
|
+
CreateCancellationRequest$inboundSchema = objectType({
|
|
46849
|
+
accountID: stringType(),
|
|
46850
|
+
transferID: stringType()
|
|
46851
|
+
});
|
|
46852
|
+
CreateCancellationRequest$outboundSchema = objectType({
|
|
46853
|
+
accountID: stringType(),
|
|
46854
|
+
transferID: stringType()
|
|
46855
|
+
});
|
|
46856
|
+
((CreateCancellationRequest$) => {
|
|
46857
|
+
CreateCancellationRequest$.inboundSchema = CreateCancellationRequest$inboundSchema;
|
|
46858
|
+
CreateCancellationRequest$.outboundSchema = CreateCancellationRequest$outboundSchema;
|
|
46859
|
+
})(CreateCancellationRequest$ ||= {});
|
|
46860
|
+
CreateCancellationResponse$inboundSchema = objectType({
|
|
46861
|
+
Headers: recordType(arrayType(stringType())),
|
|
46862
|
+
Result: Cancellation$inboundSchema
|
|
46863
|
+
}).transform((v2) => {
|
|
46864
|
+
return remap(v2, {
|
|
46865
|
+
Headers: "headers",
|
|
46866
|
+
Result: "result"
|
|
46867
|
+
});
|
|
46868
|
+
});
|
|
46869
|
+
CreateCancellationResponse$outboundSchema = objectType({
|
|
46870
|
+
headers: recordType(arrayType(stringType())),
|
|
46871
|
+
result: Cancellation$outboundSchema
|
|
46872
|
+
}).transform((v2) => {
|
|
46873
|
+
return remap(v2, {
|
|
46874
|
+
headers: "Headers",
|
|
46875
|
+
result: "Result"
|
|
46876
|
+
});
|
|
46877
|
+
});
|
|
46878
|
+
((CreateCancellationResponse$) => {
|
|
46879
|
+
CreateCancellationResponse$.inboundSchema = CreateCancellationResponse$inboundSchema;
|
|
46880
|
+
CreateCancellationResponse$.outboundSchema = CreateCancellationResponse$outboundSchema;
|
|
46881
|
+
})(CreateCancellationResponse$ ||= {});
|
|
46882
|
+
});
|
|
46883
|
+
|
|
46816
46884
|
// src/models/operations/createfeeplanagreements.ts
|
|
46817
46885
|
var CreateFeePlanAgreementsGlobals$inboundSchema, CreateFeePlanAgreementsGlobals$outboundSchema, CreateFeePlanAgreementsGlobals$, CreateFeePlanAgreementsRequest$inboundSchema, CreateFeePlanAgreementsRequest$outboundSchema, CreateFeePlanAgreementsRequest$, CreateFeePlanAgreementsResponse$inboundSchema, CreateFeePlanAgreementsResponse$outboundSchema, CreateFeePlanAgreementsResponse$;
|
|
46818
46886
|
var init_createfeeplanagreements = __esm(() => {
|
|
@@ -48431,6 +48499,68 @@ var init_getbrand = __esm(() => {
|
|
|
48431
48499
|
})(GetBrandResponse$ ||= {});
|
|
48432
48500
|
});
|
|
48433
48501
|
|
|
48502
|
+
// src/models/operations/getcancellation.ts
|
|
48503
|
+
var GetCancellationGlobals$inboundSchema, GetCancellationGlobals$outboundSchema, GetCancellationGlobals$, GetCancellationRequest$inboundSchema, GetCancellationRequest$outboundSchema, GetCancellationRequest$, GetCancellationResponse$inboundSchema, GetCancellationResponse$outboundSchema, GetCancellationResponse$;
|
|
48504
|
+
var init_getcancellation = __esm(() => {
|
|
48505
|
+
init_lib();
|
|
48506
|
+
init_primitives();
|
|
48507
|
+
init_components();
|
|
48508
|
+
GetCancellationGlobals$inboundSchema = objectType({
|
|
48509
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
48510
|
+
}).transform((v2) => {
|
|
48511
|
+
return remap(v2, {
|
|
48512
|
+
"x-moov-version": "xMoovVersion"
|
|
48513
|
+
});
|
|
48514
|
+
});
|
|
48515
|
+
GetCancellationGlobals$outboundSchema = objectType({
|
|
48516
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
48517
|
+
}).transform((v2) => {
|
|
48518
|
+
return remap(v2, {
|
|
48519
|
+
xMoovVersion: "x-moov-version"
|
|
48520
|
+
});
|
|
48521
|
+
});
|
|
48522
|
+
((GetCancellationGlobals$) => {
|
|
48523
|
+
GetCancellationGlobals$.inboundSchema = GetCancellationGlobals$inboundSchema;
|
|
48524
|
+
GetCancellationGlobals$.outboundSchema = GetCancellationGlobals$outboundSchema;
|
|
48525
|
+
})(GetCancellationGlobals$ ||= {});
|
|
48526
|
+
GetCancellationRequest$inboundSchema = objectType({
|
|
48527
|
+
accountID: stringType(),
|
|
48528
|
+
transferID: stringType(),
|
|
48529
|
+
cancellationID: stringType()
|
|
48530
|
+
});
|
|
48531
|
+
GetCancellationRequest$outboundSchema = objectType({
|
|
48532
|
+
accountID: stringType(),
|
|
48533
|
+
transferID: stringType(),
|
|
48534
|
+
cancellationID: stringType()
|
|
48535
|
+
});
|
|
48536
|
+
((GetCancellationRequest$) => {
|
|
48537
|
+
GetCancellationRequest$.inboundSchema = GetCancellationRequest$inboundSchema;
|
|
48538
|
+
GetCancellationRequest$.outboundSchema = GetCancellationRequest$outboundSchema;
|
|
48539
|
+
})(GetCancellationRequest$ ||= {});
|
|
48540
|
+
GetCancellationResponse$inboundSchema = objectType({
|
|
48541
|
+
Headers: recordType(arrayType(stringType())),
|
|
48542
|
+
Result: Cancellation$inboundSchema
|
|
48543
|
+
}).transform((v2) => {
|
|
48544
|
+
return remap(v2, {
|
|
48545
|
+
Headers: "headers",
|
|
48546
|
+
Result: "result"
|
|
48547
|
+
});
|
|
48548
|
+
});
|
|
48549
|
+
GetCancellationResponse$outboundSchema = objectType({
|
|
48550
|
+
headers: recordType(arrayType(stringType())),
|
|
48551
|
+
result: Cancellation$outboundSchema
|
|
48552
|
+
}).transform((v2) => {
|
|
48553
|
+
return remap(v2, {
|
|
48554
|
+
headers: "Headers",
|
|
48555
|
+
result: "Result"
|
|
48556
|
+
});
|
|
48557
|
+
});
|
|
48558
|
+
((GetCancellationResponse$) => {
|
|
48559
|
+
GetCancellationResponse$.inboundSchema = GetCancellationResponse$inboundSchema;
|
|
48560
|
+
GetCancellationResponse$.outboundSchema = GetCancellationResponse$outboundSchema;
|
|
48561
|
+
})(GetCancellationResponse$ ||= {});
|
|
48562
|
+
});
|
|
48563
|
+
|
|
48434
48564
|
// src/models/operations/getcapability.ts
|
|
48435
48565
|
var GetCapabilityGlobals$inboundSchema, GetCapabilityGlobals$outboundSchema, GetCapabilityGlobals$, GetCapabilityRequest$inboundSchema, GetCapabilityRequest$outboundSchema, GetCapabilityRequest$, GetCapabilityResponse$inboundSchema, GetCapabilityResponse$outboundSchema, GetCapabilityResponse$;
|
|
48436
48566
|
var init_getcapability = __esm(() => {
|
|
@@ -54265,6 +54395,7 @@ var init_operations = __esm(() => {
|
|
|
54265
54395
|
init_createaccount3();
|
|
54266
54396
|
init_createapplepaysession2();
|
|
54267
54397
|
init_createbrand();
|
|
54398
|
+
init_createcancellation();
|
|
54268
54399
|
init_createfeeplanagreements();
|
|
54269
54400
|
init_createonboardinginvite();
|
|
54270
54401
|
init_createpaymentlink2();
|
|
@@ -54292,6 +54423,7 @@ var init_operations = __esm(() => {
|
|
|
54292
54423
|
init_getbankaccount();
|
|
54293
54424
|
init_getbankaccountverification();
|
|
54294
54425
|
init_getbrand();
|
|
54426
|
+
init_getcancellation();
|
|
54295
54427
|
init_getcapability();
|
|
54296
54428
|
init_getcard();
|
|
54297
54429
|
init_getdispute();
|
|
@@ -67770,11 +67902,125 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
67770
67902
|
};
|
|
67771
67903
|
});
|
|
67772
67904
|
|
|
67773
|
-
// src/funcs/
|
|
67774
|
-
function
|
|
67905
|
+
// src/funcs/transfersCreateCancellation.ts
|
|
67906
|
+
function transfersCreateCancellation(client, request, options) {
|
|
67775
67907
|
return new APIPromise($do114(client, request, options));
|
|
67776
67908
|
}
|
|
67777
67909
|
async function $do114(client, request, options) {
|
|
67910
|
+
const parsed = safeParse(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67911
|
+
if (!parsed.ok) {
|
|
67912
|
+
return [parsed, { status: "invalid" }];
|
|
67913
|
+
}
|
|
67914
|
+
const payload = parsed.value;
|
|
67915
|
+
const body = null;
|
|
67916
|
+
const pathParams = {
|
|
67917
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
67918
|
+
explode: false,
|
|
67919
|
+
charEncoding: "percent"
|
|
67920
|
+
}),
|
|
67921
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
67922
|
+
explode: false,
|
|
67923
|
+
charEncoding: "percent"
|
|
67924
|
+
})
|
|
67925
|
+
};
|
|
67926
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
67927
|
+
const headers = new Headers(compactMap({
|
|
67928
|
+
Accept: "application/json",
|
|
67929
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
67930
|
+
}));
|
|
67931
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
67932
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
67933
|
+
const context = {
|
|
67934
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
67935
|
+
operationID: "createCancellation",
|
|
67936
|
+
oAuth2Scopes: [],
|
|
67937
|
+
resolvedSecurity: requestSecurity,
|
|
67938
|
+
securitySource: client._options.security,
|
|
67939
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
67940
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
67941
|
+
};
|
|
67942
|
+
const requestRes = client._createRequest(context, {
|
|
67943
|
+
security: requestSecurity,
|
|
67944
|
+
method: "POST",
|
|
67945
|
+
baseURL: options?.serverURL,
|
|
67946
|
+
path,
|
|
67947
|
+
headers,
|
|
67948
|
+
body,
|
|
67949
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
67950
|
+
}, options);
|
|
67951
|
+
if (!requestRes.ok) {
|
|
67952
|
+
return [requestRes, { status: "invalid" }];
|
|
67953
|
+
}
|
|
67954
|
+
const req = requestRes.value;
|
|
67955
|
+
const doResult = await client._do(req, {
|
|
67956
|
+
context,
|
|
67957
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
67958
|
+
retryConfig: context.retryConfig,
|
|
67959
|
+
retryCodes: context.retryCodes
|
|
67960
|
+
});
|
|
67961
|
+
if (!doResult.ok) {
|
|
67962
|
+
return [doResult, { status: "request-error", request: req }];
|
|
67963
|
+
}
|
|
67964
|
+
const response = doResult.value;
|
|
67965
|
+
const responseFields = {
|
|
67966
|
+
HttpMeta: { Response: response, Request: req }
|
|
67967
|
+
};
|
|
67968
|
+
const [result] = await match(json([200, 202], CreateCancellationResponse$inboundSchema, {
|
|
67969
|
+
hdrs: true,
|
|
67970
|
+
key: "Result"
|
|
67971
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
67972
|
+
if (!result.ok) {
|
|
67973
|
+
return [result, { status: "complete", request: req, response }];
|
|
67974
|
+
}
|
|
67975
|
+
return [result, { status: "complete", request: req, response }];
|
|
67976
|
+
}
|
|
67977
|
+
var init_transfersCreateCancellation = __esm(() => {
|
|
67978
|
+
init_encodings();
|
|
67979
|
+
init_matchers();
|
|
67980
|
+
init_primitives();
|
|
67981
|
+
init_schemas();
|
|
67982
|
+
init_security();
|
|
67983
|
+
init_url();
|
|
67984
|
+
init_errors();
|
|
67985
|
+
init_operations();
|
|
67986
|
+
init_async();
|
|
67987
|
+
});
|
|
67988
|
+
|
|
67989
|
+
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
67990
|
+
var args114, tool$transfersCreateCancellation;
|
|
67991
|
+
var init_transfersCreateCancellation2 = __esm(() => {
|
|
67992
|
+
init_transfersCreateCancellation();
|
|
67993
|
+
init_operations();
|
|
67994
|
+
init_tools();
|
|
67995
|
+
args114 = {
|
|
67996
|
+
request: CreateCancellationRequest$inboundSchema
|
|
67997
|
+
};
|
|
67998
|
+
tool$transfersCreateCancellation = {
|
|
67999
|
+
name: "transfers_create-cancellation",
|
|
68000
|
+
description: ` Initiate a cancellation for a card, ACH, or queued transfer.
|
|
68001
|
+
|
|
68002
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
68003
|
+
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68004
|
+
args: args114,
|
|
68005
|
+
tool: async (client, args115, ctx) => {
|
|
68006
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68007
|
+
if (!result.ok) {
|
|
68008
|
+
return {
|
|
68009
|
+
content: [{ type: "text", text: result.error.message }],
|
|
68010
|
+
isError: true
|
|
68011
|
+
};
|
|
68012
|
+
}
|
|
68013
|
+
const value = result.value.result;
|
|
68014
|
+
return formatResult(value, apiCall);
|
|
68015
|
+
}
|
|
68016
|
+
};
|
|
68017
|
+
});
|
|
68018
|
+
|
|
68019
|
+
// src/funcs/transfersCreateReversal.ts
|
|
68020
|
+
function transfersCreateReversal(client, request, options) {
|
|
68021
|
+
return new APIPromise($do115(client, request, options));
|
|
68022
|
+
}
|
|
68023
|
+
async function $do115(client, request, options) {
|
|
67778
68024
|
const parsed = safeParse(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67779
68025
|
if (!parsed.ok) {
|
|
67780
68026
|
return [parsed, { status: "invalid" }];
|
|
@@ -67871,12 +68117,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
67871
68117
|
});
|
|
67872
68118
|
|
|
67873
68119
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
67874
|
-
var
|
|
68120
|
+
var args115, tool$transfersCreateReversal;
|
|
67875
68121
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
67876
68122
|
init_transfersCreateReversal();
|
|
67877
68123
|
init_operations();
|
|
67878
68124
|
init_tools();
|
|
67879
|
-
|
|
68125
|
+
args115 = {
|
|
67880
68126
|
request: CreateReversalRequest$inboundSchema
|
|
67881
68127
|
};
|
|
67882
68128
|
tool$transfersCreateReversal = {
|
|
@@ -67887,9 +68133,9 @@ to learn more.
|
|
|
67887
68133
|
|
|
67888
68134
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
67889
68135
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
67890
|
-
args:
|
|
67891
|
-
tool: async (client,
|
|
67892
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
68136
|
+
args: args115,
|
|
68137
|
+
tool: async (client, args116, ctx) => {
|
|
68138
|
+
const [result, apiCall] = await transfersCreateReversal(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67893
68139
|
if (!result.ok) {
|
|
67894
68140
|
return {
|
|
67895
68141
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67904,9 +68150,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
67904
68150
|
|
|
67905
68151
|
// src/funcs/transfersGenerateOptions.ts
|
|
67906
68152
|
function transfersGenerateOptions(client, request, options) {
|
|
67907
|
-
return new APIPromise($
|
|
68153
|
+
return new APIPromise($do116(client, request, options));
|
|
67908
68154
|
}
|
|
67909
|
-
async function $
|
|
68155
|
+
async function $do116(client, request, options) {
|
|
67910
68156
|
const parsed = safeParse(request, (value) => CreateTransferOptions$outboundSchema.parse(value), "Input validation failed");
|
|
67911
68157
|
if (!parsed.ok) {
|
|
67912
68158
|
return [parsed, { status: "invalid" }];
|
|
@@ -67981,12 +68227,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
67981
68227
|
});
|
|
67982
68228
|
|
|
67983
68229
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
67984
|
-
var
|
|
68230
|
+
var args116, tool$transfersGenerateOptions;
|
|
67985
68231
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
67986
68232
|
init_transfersGenerateOptions();
|
|
67987
68233
|
init_components();
|
|
67988
68234
|
init_tools();
|
|
67989
|
-
|
|
68235
|
+
args116 = {
|
|
67990
68236
|
request: CreateTransferOptions$inboundSchema
|
|
67991
68237
|
};
|
|
67992
68238
|
tool$transfersGenerateOptions = {
|
|
@@ -67998,9 +68244,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
67998
68244
|
|
|
67999
68245
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68000
68246
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68001
|
-
args:
|
|
68002
|
-
tool: async (client,
|
|
68003
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
68247
|
+
args: args116,
|
|
68248
|
+
tool: async (client, args117, ctx) => {
|
|
68249
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68004
68250
|
if (!result.ok) {
|
|
68005
68251
|
return {
|
|
68006
68252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68015,9 +68261,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68015
68261
|
|
|
68016
68262
|
// src/funcs/transfersGet.ts
|
|
68017
68263
|
function transfersGet(client, request, options) {
|
|
68018
|
-
return new APIPromise($
|
|
68264
|
+
return new APIPromise($do117(client, request, options));
|
|
68019
68265
|
}
|
|
68020
|
-
async function $
|
|
68266
|
+
async function $do117(client, request, options) {
|
|
68021
68267
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68022
68268
|
if (!parsed.ok) {
|
|
68023
68269
|
return [parsed, { status: "invalid" }];
|
|
@@ -68097,12 +68343,12 @@ var init_transfersGet = __esm(() => {
|
|
|
68097
68343
|
});
|
|
68098
68344
|
|
|
68099
68345
|
// src/mcp-server/tools/transfersGet.ts
|
|
68100
|
-
var
|
|
68346
|
+
var args117, tool$transfersGet;
|
|
68101
68347
|
var init_transfersGet2 = __esm(() => {
|
|
68102
68348
|
init_transfersGet();
|
|
68103
68349
|
init_operations();
|
|
68104
68350
|
init_tools();
|
|
68105
|
-
|
|
68351
|
+
args117 = {
|
|
68106
68352
|
request: GetTransferRequest$inboundSchema
|
|
68107
68353
|
};
|
|
68108
68354
|
tool$transfersGet = {
|
|
@@ -68114,9 +68360,126 @@ to learn more.
|
|
|
68114
68360
|
|
|
68115
68361
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68116
68362
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68117
|
-
args:
|
|
68118
|
-
tool: async (client,
|
|
68119
|
-
const [result, apiCall] = await transfersGet(client,
|
|
68363
|
+
args: args117,
|
|
68364
|
+
tool: async (client, args118, ctx) => {
|
|
68365
|
+
const [result, apiCall] = await transfersGet(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68366
|
+
if (!result.ok) {
|
|
68367
|
+
return {
|
|
68368
|
+
content: [{ type: "text", text: result.error.message }],
|
|
68369
|
+
isError: true
|
|
68370
|
+
};
|
|
68371
|
+
}
|
|
68372
|
+
const value = result.value.result;
|
|
68373
|
+
return formatResult(value, apiCall);
|
|
68374
|
+
}
|
|
68375
|
+
};
|
|
68376
|
+
});
|
|
68377
|
+
|
|
68378
|
+
// src/funcs/transfersGetCancellation.ts
|
|
68379
|
+
function transfersGetCancellation(client, request, options) {
|
|
68380
|
+
return new APIPromise($do118(client, request, options));
|
|
68381
|
+
}
|
|
68382
|
+
async function $do118(client, request, options) {
|
|
68383
|
+
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68384
|
+
if (!parsed.ok) {
|
|
68385
|
+
return [parsed, { status: "invalid" }];
|
|
68386
|
+
}
|
|
68387
|
+
const payload = parsed.value;
|
|
68388
|
+
const body = null;
|
|
68389
|
+
const pathParams = {
|
|
68390
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
68391
|
+
explode: false,
|
|
68392
|
+
charEncoding: "percent"
|
|
68393
|
+
}),
|
|
68394
|
+
cancellationID: encodeSimple("cancellationID", payload.cancellationID, {
|
|
68395
|
+
explode: false,
|
|
68396
|
+
charEncoding: "percent"
|
|
68397
|
+
}),
|
|
68398
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
68399
|
+
explode: false,
|
|
68400
|
+
charEncoding: "percent"
|
|
68401
|
+
})
|
|
68402
|
+
};
|
|
68403
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations/{cancellationID}")(pathParams);
|
|
68404
|
+
const headers = new Headers(compactMap({
|
|
68405
|
+
Accept: "application/json",
|
|
68406
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
68407
|
+
}));
|
|
68408
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
68409
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
68410
|
+
const context = {
|
|
68411
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
68412
|
+
operationID: "getCancellation",
|
|
68413
|
+
oAuth2Scopes: [],
|
|
68414
|
+
resolvedSecurity: requestSecurity,
|
|
68415
|
+
securitySource: client._options.security,
|
|
68416
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
68417
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
68418
|
+
};
|
|
68419
|
+
const requestRes = client._createRequest(context, {
|
|
68420
|
+
security: requestSecurity,
|
|
68421
|
+
method: "GET",
|
|
68422
|
+
baseURL: options?.serverURL,
|
|
68423
|
+
path,
|
|
68424
|
+
headers,
|
|
68425
|
+
body,
|
|
68426
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
68427
|
+
}, options);
|
|
68428
|
+
if (!requestRes.ok) {
|
|
68429
|
+
return [requestRes, { status: "invalid" }];
|
|
68430
|
+
}
|
|
68431
|
+
const req = requestRes.value;
|
|
68432
|
+
const doResult = await client._do(req, {
|
|
68433
|
+
context,
|
|
68434
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
68435
|
+
retryConfig: context.retryConfig,
|
|
68436
|
+
retryCodes: context.retryCodes
|
|
68437
|
+
});
|
|
68438
|
+
if (!doResult.ok) {
|
|
68439
|
+
return [doResult, { status: "request-error", request: req }];
|
|
68440
|
+
}
|
|
68441
|
+
const response = doResult.value;
|
|
68442
|
+
const responseFields = {
|
|
68443
|
+
HttpMeta: { Response: response, Request: req }
|
|
68444
|
+
};
|
|
68445
|
+
const [result] = await match(json(200, GetCancellationResponse$inboundSchema, {
|
|
68446
|
+
hdrs: true,
|
|
68447
|
+
key: "Result"
|
|
68448
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
68449
|
+
if (!result.ok) {
|
|
68450
|
+
return [result, { status: "complete", request: req, response }];
|
|
68451
|
+
}
|
|
68452
|
+
return [result, { status: "complete", request: req, response }];
|
|
68453
|
+
}
|
|
68454
|
+
var init_transfersGetCancellation = __esm(() => {
|
|
68455
|
+
init_encodings();
|
|
68456
|
+
init_matchers();
|
|
68457
|
+
init_primitives();
|
|
68458
|
+
init_schemas();
|
|
68459
|
+
init_security();
|
|
68460
|
+
init_url();
|
|
68461
|
+
init_operations();
|
|
68462
|
+
init_async();
|
|
68463
|
+
});
|
|
68464
|
+
|
|
68465
|
+
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
68466
|
+
var args118, tool$transfersGetCancellation;
|
|
68467
|
+
var init_transfersGetCancellation2 = __esm(() => {
|
|
68468
|
+
init_transfersGetCancellation();
|
|
68469
|
+
init_operations();
|
|
68470
|
+
init_tools();
|
|
68471
|
+
args118 = {
|
|
68472
|
+
request: GetCancellationRequest$inboundSchema
|
|
68473
|
+
};
|
|
68474
|
+
tool$transfersGetCancellation = {
|
|
68475
|
+
name: "transfers_get-cancellation",
|
|
68476
|
+
description: ` Get details of a cancellation for a transfer.
|
|
68477
|
+
|
|
68478
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
68479
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68480
|
+
args: args118,
|
|
68481
|
+
tool: async (client, args119, ctx) => {
|
|
68482
|
+
const [result, apiCall] = await transfersGetCancellation(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68120
68483
|
if (!result.ok) {
|
|
68121
68484
|
return {
|
|
68122
68485
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68131,9 +68494,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68131
68494
|
|
|
68132
68495
|
// src/funcs/transfersGetRefund.ts
|
|
68133
68496
|
function transfersGetRefund(client, request, options) {
|
|
68134
|
-
return new APIPromise($
|
|
68497
|
+
return new APIPromise($do119(client, request, options));
|
|
68135
68498
|
}
|
|
68136
|
-
async function $
|
|
68499
|
+
async function $do119(client, request, options) {
|
|
68137
68500
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68138
68501
|
if (!parsed.ok) {
|
|
68139
68502
|
return [parsed, { status: "invalid" }];
|
|
@@ -68217,12 +68580,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
68217
68580
|
});
|
|
68218
68581
|
|
|
68219
68582
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
68220
|
-
var
|
|
68583
|
+
var args119, tool$transfersGetRefund;
|
|
68221
68584
|
var init_transfersGetRefund2 = __esm(() => {
|
|
68222
68585
|
init_transfersGetRefund();
|
|
68223
68586
|
init_operations();
|
|
68224
68587
|
init_tools();
|
|
68225
|
-
|
|
68588
|
+
args119 = {
|
|
68226
68589
|
request: GetRefundRequest$inboundSchema
|
|
68227
68590
|
};
|
|
68228
68591
|
tool$transfersGetRefund = {
|
|
@@ -68231,9 +68594,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
68231
68594
|
|
|
68232
68595
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68233
68596
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68234
|
-
args:
|
|
68235
|
-
tool: async (client,
|
|
68236
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
68597
|
+
args: args119,
|
|
68598
|
+
tool: async (client, args120, ctx) => {
|
|
68599
|
+
const [result, apiCall] = await transfersGetRefund(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68237
68600
|
if (!result.ok) {
|
|
68238
68601
|
return {
|
|
68239
68602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68248,9 +68611,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68248
68611
|
|
|
68249
68612
|
// src/funcs/transfersInitiateRefund.ts
|
|
68250
68613
|
function transfersInitiateRefund(client, request, options) {
|
|
68251
|
-
return new APIPromise($
|
|
68614
|
+
return new APIPromise($do120(client, request, options));
|
|
68252
68615
|
}
|
|
68253
|
-
async function $
|
|
68616
|
+
async function $do120(client, request, options) {
|
|
68254
68617
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68255
68618
|
if (!parsed.ok) {
|
|
68256
68619
|
return [parsed, { status: "invalid" }];
|
|
@@ -68340,12 +68703,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
68340
68703
|
});
|
|
68341
68704
|
|
|
68342
68705
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
68343
|
-
var
|
|
68706
|
+
var args120, tool$transfersInitiateRefund;
|
|
68344
68707
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
68345
68708
|
init_transfersInitiateRefund();
|
|
68346
68709
|
init_operations();
|
|
68347
68710
|
init_tools();
|
|
68348
|
-
|
|
68711
|
+
args120 = {
|
|
68349
68712
|
request: InitiateRefundRequest$inboundSchema
|
|
68350
68713
|
};
|
|
68351
68714
|
tool$transfersInitiateRefund = {
|
|
@@ -68357,9 +68720,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
68357
68720
|
|
|
68358
68721
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68359
68722
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68360
|
-
args:
|
|
68361
|
-
tool: async (client,
|
|
68362
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
68723
|
+
args: args120,
|
|
68724
|
+
tool: async (client, args121, ctx) => {
|
|
68725
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68363
68726
|
if (!result.ok) {
|
|
68364
68727
|
return {
|
|
68365
68728
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68374,9 +68737,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
68374
68737
|
|
|
68375
68738
|
// src/funcs/transfersList.ts
|
|
68376
68739
|
function transfersList(client, request, options) {
|
|
68377
|
-
return new APIPromise($
|
|
68740
|
+
return new APIPromise($do121(client, request, options));
|
|
68378
68741
|
}
|
|
68379
|
-
async function $
|
|
68742
|
+
async function $do121(client, request, options) {
|
|
68380
68743
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68381
68744
|
if (!parsed.ok) {
|
|
68382
68745
|
return [parsed, { status: "invalid" }];
|
|
@@ -68464,12 +68827,12 @@ var init_transfersList = __esm(() => {
|
|
|
68464
68827
|
});
|
|
68465
68828
|
|
|
68466
68829
|
// src/mcp-server/tools/transfersList.ts
|
|
68467
|
-
var
|
|
68830
|
+
var args121, tool$transfersList;
|
|
68468
68831
|
var init_transfersList2 = __esm(() => {
|
|
68469
68832
|
init_transfersList();
|
|
68470
68833
|
init_operations();
|
|
68471
68834
|
init_tools();
|
|
68472
|
-
|
|
68835
|
+
args121 = {
|
|
68473
68836
|
request: ListTransfersRequest$inboundSchema
|
|
68474
68837
|
};
|
|
68475
68838
|
tool$transfersList = {
|
|
@@ -68485,9 +68848,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
68485
68848
|
|
|
68486
68849
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68487
68850
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68488
|
-
args:
|
|
68489
|
-
tool: async (client,
|
|
68490
|
-
const [result, apiCall] = await transfersList(client,
|
|
68851
|
+
args: args121,
|
|
68852
|
+
tool: async (client, args122, ctx) => {
|
|
68853
|
+
const [result, apiCall] = await transfersList(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68491
68854
|
if (!result.ok) {
|
|
68492
68855
|
return {
|
|
68493
68856
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68502,9 +68865,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68502
68865
|
|
|
68503
68866
|
// src/funcs/transfersListRefunds.ts
|
|
68504
68867
|
function transfersListRefunds(client, request, options) {
|
|
68505
|
-
return new APIPromise($
|
|
68868
|
+
return new APIPromise($do122(client, request, options));
|
|
68506
68869
|
}
|
|
68507
|
-
async function $
|
|
68870
|
+
async function $do122(client, request, options) {
|
|
68508
68871
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68509
68872
|
if (!parsed.ok) {
|
|
68510
68873
|
return [parsed, { status: "invalid" }];
|
|
@@ -68584,12 +68947,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
68584
68947
|
});
|
|
68585
68948
|
|
|
68586
68949
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
68587
|
-
var
|
|
68950
|
+
var args122, tool$transfersListRefunds;
|
|
68588
68951
|
var init_transfersListRefunds2 = __esm(() => {
|
|
68589
68952
|
init_transfersListRefunds();
|
|
68590
68953
|
init_operations();
|
|
68591
68954
|
init_tools();
|
|
68592
|
-
|
|
68955
|
+
args122 = {
|
|
68593
68956
|
request: ListRefundsRequest$inboundSchema
|
|
68594
68957
|
};
|
|
68595
68958
|
tool$transfersListRefunds = {
|
|
@@ -68598,9 +68961,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
68598
68961
|
|
|
68599
68962
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68600
68963
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68601
|
-
args:
|
|
68602
|
-
tool: async (client,
|
|
68603
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
68964
|
+
args: args122,
|
|
68965
|
+
tool: async (client, args123, ctx) => {
|
|
68966
|
+
const [result, apiCall] = await transfersListRefunds(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68604
68967
|
if (!result.ok) {
|
|
68605
68968
|
return {
|
|
68606
68969
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68615,9 +68978,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68615
68978
|
|
|
68616
68979
|
// src/funcs/transfersUpdate.ts
|
|
68617
68980
|
function transfersUpdate(client, request, options) {
|
|
68618
|
-
return new APIPromise($
|
|
68981
|
+
return new APIPromise($do123(client, request, options));
|
|
68619
68982
|
}
|
|
68620
|
-
async function $
|
|
68983
|
+
async function $do123(client, request, options) {
|
|
68621
68984
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68622
68985
|
if (!parsed.ok) {
|
|
68623
68986
|
return [parsed, { status: "invalid" }];
|
|
@@ -68698,12 +69061,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
68698
69061
|
});
|
|
68699
69062
|
|
|
68700
69063
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
68701
|
-
var
|
|
69064
|
+
var args123, tool$transfersUpdate;
|
|
68702
69065
|
var init_transfersUpdate2 = __esm(() => {
|
|
68703
69066
|
init_transfersUpdate();
|
|
68704
69067
|
init_operations();
|
|
68705
69068
|
init_tools();
|
|
68706
|
-
|
|
69069
|
+
args123 = {
|
|
68707
69070
|
request: UpdateTransferRequest$inboundSchema
|
|
68708
69071
|
};
|
|
68709
69072
|
tool$transfersUpdate = {
|
|
@@ -68714,9 +69077,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
68714
69077
|
|
|
68715
69078
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68716
69079
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68717
|
-
args:
|
|
68718
|
-
tool: async (client,
|
|
68719
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
69080
|
+
args: args123,
|
|
69081
|
+
tool: async (client, args124, ctx) => {
|
|
69082
|
+
const [result, apiCall] = await transfersUpdate(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68720
69083
|
if (!result.ok) {
|
|
68721
69084
|
return {
|
|
68722
69085
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68731,9 +69094,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
68731
69094
|
|
|
68732
69095
|
// src/funcs/underwritingGet.ts
|
|
68733
69096
|
function underwritingGet(client, request, options) {
|
|
68734
|
-
return new APIPromise($
|
|
69097
|
+
return new APIPromise($do124(client, request, options));
|
|
68735
69098
|
}
|
|
68736
|
-
async function $
|
|
69099
|
+
async function $do124(client, request, options) {
|
|
68737
69100
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68738
69101
|
if (!parsed.ok) {
|
|
68739
69102
|
return [parsed, { status: "invalid" }];
|
|
@@ -68809,12 +69172,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
68809
69172
|
});
|
|
68810
69173
|
|
|
68811
69174
|
// src/mcp-server/tools/underwritingGet.ts
|
|
68812
|
-
var
|
|
69175
|
+
var args124, tool$underwritingGet;
|
|
68813
69176
|
var init_underwritingGet2 = __esm(() => {
|
|
68814
69177
|
init_underwritingGet();
|
|
68815
69178
|
init_operations();
|
|
68816
69179
|
init_tools();
|
|
68817
|
-
|
|
69180
|
+
args124 = {
|
|
68818
69181
|
request: GetUnderwritingRequest$inboundSchema
|
|
68819
69182
|
};
|
|
68820
69183
|
tool$underwritingGet = {
|
|
@@ -68825,9 +69188,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
68825
69188
|
|
|
68826
69189
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68827
69190
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
68828
|
-
args:
|
|
68829
|
-
tool: async (client,
|
|
68830
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
69191
|
+
args: args124,
|
|
69192
|
+
tool: async (client, args125, ctx) => {
|
|
69193
|
+
const [result, apiCall] = await underwritingGet(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68831
69194
|
if (!result.ok) {
|
|
68832
69195
|
return {
|
|
68833
69196
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68842,9 +69205,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
68842
69205
|
|
|
68843
69206
|
// src/funcs/underwritingUpsert.ts
|
|
68844
69207
|
function underwritingUpsert(client, request, options) {
|
|
68845
|
-
return new APIPromise($
|
|
69208
|
+
return new APIPromise($do125(client, request, options));
|
|
68846
69209
|
}
|
|
68847
|
-
async function $
|
|
69210
|
+
async function $do125(client, request, options) {
|
|
68848
69211
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68849
69212
|
if (!parsed.ok) {
|
|
68850
69213
|
return [parsed, { status: "invalid" }];
|
|
@@ -68938,12 +69301,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
68938
69301
|
});
|
|
68939
69302
|
|
|
68940
69303
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
68941
|
-
var
|
|
69304
|
+
var args125, tool$underwritingUpsert;
|
|
68942
69305
|
var init_underwritingUpsert2 = __esm(() => {
|
|
68943
69306
|
init_underwritingUpsert();
|
|
68944
69307
|
init_operations();
|
|
68945
69308
|
init_tools();
|
|
68946
|
-
|
|
69309
|
+
args125 = {
|
|
68947
69310
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
68948
69311
|
};
|
|
68949
69312
|
tool$underwritingUpsert = {
|
|
@@ -68954,9 +69317,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
68954
69317
|
|
|
68955
69318
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68956
69319
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
68957
|
-
args:
|
|
68958
|
-
tool: async (client,
|
|
68959
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
69320
|
+
args: args125,
|
|
69321
|
+
tool: async (client, args126, ctx) => {
|
|
69322
|
+
const [result, apiCall] = await underwritingUpsert(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68960
69323
|
if (!result.ok) {
|
|
68961
69324
|
return {
|
|
68962
69325
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68971,9 +69334,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
68971
69334
|
|
|
68972
69335
|
// src/funcs/walletsGet.ts
|
|
68973
69336
|
function walletsGet(client, request, options) {
|
|
68974
|
-
return new APIPromise($
|
|
69337
|
+
return new APIPromise($do126(client, request, options));
|
|
68975
69338
|
}
|
|
68976
|
-
async function $
|
|
69339
|
+
async function $do126(client, request, options) {
|
|
68977
69340
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68978
69341
|
if (!parsed.ok) {
|
|
68979
69342
|
return [parsed, { status: "invalid" }];
|
|
@@ -69053,12 +69416,12 @@ var init_walletsGet = __esm(() => {
|
|
|
69053
69416
|
});
|
|
69054
69417
|
|
|
69055
69418
|
// src/mcp-server/tools/walletsGet.ts
|
|
69056
|
-
var
|
|
69419
|
+
var args126, tool$walletsGet;
|
|
69057
69420
|
var init_walletsGet2 = __esm(() => {
|
|
69058
69421
|
init_walletsGet();
|
|
69059
69422
|
init_operations();
|
|
69060
69423
|
init_tools();
|
|
69061
|
-
|
|
69424
|
+
args126 = {
|
|
69062
69425
|
request: GetWalletRequest$inboundSchema
|
|
69063
69426
|
};
|
|
69064
69427
|
tool$walletsGet = {
|
|
@@ -69069,9 +69432,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
69069
69432
|
|
|
69070
69433
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69071
69434
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69072
|
-
args:
|
|
69073
|
-
tool: async (client,
|
|
69074
|
-
const [result, apiCall] = await walletsGet(client,
|
|
69435
|
+
args: args126,
|
|
69436
|
+
tool: async (client, args127, ctx) => {
|
|
69437
|
+
const [result, apiCall] = await walletsGet(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69075
69438
|
if (!result.ok) {
|
|
69076
69439
|
return {
|
|
69077
69440
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69086,9 +69449,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69086
69449
|
|
|
69087
69450
|
// src/funcs/walletsList.ts
|
|
69088
69451
|
function walletsList(client, request, options) {
|
|
69089
|
-
return new APIPromise($
|
|
69452
|
+
return new APIPromise($do127(client, request, options));
|
|
69090
69453
|
}
|
|
69091
|
-
async function $
|
|
69454
|
+
async function $do127(client, request, options) {
|
|
69092
69455
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69093
69456
|
if (!parsed.ok) {
|
|
69094
69457
|
return [parsed, { status: "invalid" }];
|
|
@@ -69164,12 +69527,12 @@ var init_walletsList = __esm(() => {
|
|
|
69164
69527
|
});
|
|
69165
69528
|
|
|
69166
69529
|
// src/mcp-server/tools/walletsList.ts
|
|
69167
|
-
var
|
|
69530
|
+
var args127, tool$walletsList;
|
|
69168
69531
|
var init_walletsList2 = __esm(() => {
|
|
69169
69532
|
init_walletsList();
|
|
69170
69533
|
init_operations();
|
|
69171
69534
|
init_tools();
|
|
69172
|
-
|
|
69535
|
+
args127 = {
|
|
69173
69536
|
request: ListWalletsRequest$inboundSchema
|
|
69174
69537
|
};
|
|
69175
69538
|
tool$walletsList = {
|
|
@@ -69180,9 +69543,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
69180
69543
|
|
|
69181
69544
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69182
69545
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69183
|
-
args:
|
|
69184
|
-
tool: async (client,
|
|
69185
|
-
const [result, apiCall] = await walletsList(client,
|
|
69546
|
+
args: args127,
|
|
69547
|
+
tool: async (client, args128, ctx) => {
|
|
69548
|
+
const [result, apiCall] = await walletsList(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69186
69549
|
if (!result.ok) {
|
|
69187
69550
|
return {
|
|
69188
69551
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69197,9 +69560,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69197
69560
|
|
|
69198
69561
|
// src/funcs/walletTransactionsGet.ts
|
|
69199
69562
|
function walletTransactionsGet(client, request, options) {
|
|
69200
|
-
return new APIPromise($
|
|
69563
|
+
return new APIPromise($do128(client, request, options));
|
|
69201
69564
|
}
|
|
69202
|
-
async function $
|
|
69565
|
+
async function $do128(client, request, options) {
|
|
69203
69566
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69204
69567
|
if (!parsed.ok) {
|
|
69205
69568
|
return [parsed, { status: "invalid" }];
|
|
@@ -69283,12 +69646,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
69283
69646
|
});
|
|
69284
69647
|
|
|
69285
69648
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
69286
|
-
var
|
|
69649
|
+
var args128, tool$walletTransactionsGet;
|
|
69287
69650
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
69288
69651
|
init_walletTransactionsGet();
|
|
69289
69652
|
init_operations();
|
|
69290
69653
|
init_tools();
|
|
69291
|
-
|
|
69654
|
+
args128 = {
|
|
69292
69655
|
request: GetWalletTransactionRequest$inboundSchema
|
|
69293
69656
|
};
|
|
69294
69657
|
tool$walletTransactionsGet = {
|
|
@@ -69299,9 +69662,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
69299
69662
|
|
|
69300
69663
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69301
69664
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69302
|
-
args:
|
|
69303
|
-
tool: async (client,
|
|
69304
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
69665
|
+
args: args128,
|
|
69666
|
+
tool: async (client, args129, ctx) => {
|
|
69667
|
+
const [result, apiCall] = await walletTransactionsGet(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69305
69668
|
if (!result.ok) {
|
|
69306
69669
|
return {
|
|
69307
69670
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69316,9 +69679,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69316
69679
|
|
|
69317
69680
|
// src/funcs/walletTransactionsList.ts
|
|
69318
69681
|
function walletTransactionsList(client, request, options) {
|
|
69319
|
-
return new APIPromise($
|
|
69682
|
+
return new APIPromise($do129(client, request, options));
|
|
69320
69683
|
}
|
|
69321
|
-
async function $
|
|
69684
|
+
async function $do129(client, request, options) {
|
|
69322
69685
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69323
69686
|
if (!parsed.ok) {
|
|
69324
69687
|
return [parsed, { status: "invalid" }];
|
|
@@ -69413,12 +69776,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
69413
69776
|
});
|
|
69414
69777
|
|
|
69415
69778
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
69416
|
-
var
|
|
69779
|
+
var args129, tool$walletTransactionsList;
|
|
69417
69780
|
var init_walletTransactionsList2 = __esm(() => {
|
|
69418
69781
|
init_walletTransactionsList();
|
|
69419
69782
|
init_operations();
|
|
69420
69783
|
init_tools();
|
|
69421
|
-
|
|
69784
|
+
args129 = {
|
|
69422
69785
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
69423
69786
|
};
|
|
69424
69787
|
tool$walletTransactionsList = {
|
|
@@ -69429,9 +69792,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
69429
69792
|
|
|
69430
69793
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69431
69794
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69432
|
-
args:
|
|
69433
|
-
tool: async (client,
|
|
69434
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
69795
|
+
args: args129,
|
|
69796
|
+
tool: async (client, args130, ctx) => {
|
|
69797
|
+
const [result, apiCall] = await walletTransactionsList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69435
69798
|
if (!result.ok) {
|
|
69436
69799
|
return {
|
|
69437
69800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69448,7 +69811,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69448
69811
|
function createMCPServer(deps) {
|
|
69449
69812
|
const server = new McpServer({
|
|
69450
69813
|
name: "Moov",
|
|
69451
|
-
version: "0.6.
|
|
69814
|
+
version: "0.6.1"
|
|
69452
69815
|
});
|
|
69453
69816
|
const client = new MoovCore({
|
|
69454
69817
|
security: deps.security,
|
|
@@ -69547,6 +69910,8 @@ function createMCPServer(deps) {
|
|
|
69547
69910
|
tool(tool$transfersList);
|
|
69548
69911
|
tool(tool$transfersGet);
|
|
69549
69912
|
tool(tool$transfersUpdate);
|
|
69913
|
+
tool(tool$transfersCreateCancellation);
|
|
69914
|
+
tool(tool$transfersGetCancellation);
|
|
69550
69915
|
tool(tool$transfersInitiateRefund);
|
|
69551
69916
|
tool(tool$transfersListRefunds);
|
|
69552
69917
|
tool(tool$transfersGetRefund);
|
|
@@ -69706,9 +70071,11 @@ var init_server2 = __esm(() => {
|
|
|
69706
70071
|
init_terminalApplicationsGet2();
|
|
69707
70072
|
init_terminalApplicationsList2();
|
|
69708
70073
|
init_transfersCreate2();
|
|
70074
|
+
init_transfersCreateCancellation2();
|
|
69709
70075
|
init_transfersCreateReversal2();
|
|
69710
70076
|
init_transfersGenerateOptions2();
|
|
69711
70077
|
init_transfersGet2();
|
|
70078
|
+
init_transfersGetCancellation2();
|
|
69712
70079
|
init_transfersGetRefund2();
|
|
69713
70080
|
init_transfersInitiateRefund2();
|
|
69714
70081
|
init_transfersList2();
|
|
@@ -70934,7 +71301,7 @@ var routes = rn({
|
|
|
70934
71301
|
var app = Ve(routes, {
|
|
70935
71302
|
name: "mcp",
|
|
70936
71303
|
versionInfo: {
|
|
70937
|
-
currentVersion: "0.6.
|
|
71304
|
+
currentVersion: "0.6.1"
|
|
70938
71305
|
}
|
|
70939
71306
|
});
|
|
70940
71307
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -70942,5 +71309,5 @@ export {
|
|
|
70942
71309
|
app
|
|
70943
71310
|
};
|
|
70944
71311
|
|
|
70945
|
-
//# debugId=
|
|
71312
|
+
//# debugId=A177DDA8F2BF43C064756E2164756E21
|
|
70946
71313
|
//# sourceMappingURL=mcp-server.js.map
|