@moovio/sdk 0.6.0 → 0.6.2
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 -8
- package/bin/mcp-server.js +1122 -258
- package/bin/mcp-server.js.map +28 -11
- package/docs/sdks/receipts/README.md +189 -0
- package/docs/sdks/transfers/README.md +185 -0
- package/funcs/receiptsCreate.d.ts +18 -0
- package/funcs/receiptsCreate.d.ts.map +1 -0
- package/funcs/receiptsCreate.js +133 -0
- package/funcs/receiptsCreate.js.map +1 -0
- package/funcs/receiptsList.d.ts +16 -0
- package/funcs/receiptsList.d.ts.map +1 -0
- package/funcs/receiptsList.js +121 -0
- package/funcs/receiptsList.js.map +1 -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 +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/receiptsCreate.d.ts +9 -0
- package/mcp-server/tools/receiptsCreate.d.ts.map +1 -0
- package/mcp-server/tools/receiptsCreate.js +66 -0
- package/mcp-server/tools/receiptsCreate.js.map +1 -0
- package/mcp-server/tools/receiptsList.d.ts +8 -0
- package/mcp-server/tools/receiptsList.d.ts.map +1 -0
- package/mcp-server/tools/receiptsList.js +65 -0
- package/mcp-server/tools/receiptsList.js.map +1 -0
- 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/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/receiptkind.d.ts +31 -0
- package/models/components/receiptkind.d.ts.map +1 -0
- package/models/components/receiptkind.js +63 -0
- package/models/components/receiptkind.js.map +1 -0
- package/models/components/receiptrequest.d.ts +76 -0
- package/models/components/receiptrequest.d.ts.map +1 -0
- package/models/components/receiptrequest.js +80 -0
- package/models/components/receiptrequest.js.map +1 -0
- package/models/components/receiptresponse.d.ts +94 -0
- package/models/components/receiptresponse.d.ts.map +1 -0
- package/models/components/receiptresponse.js +90 -0
- package/models/components/receiptresponse.js.map +1 -0
- package/models/components/sentreceipt.d.ts +42 -0
- package/models/components/sentreceipt.d.ts.map +1 -0
- package/models/components/sentreceipt.js +73 -0
- package/models/components/sentreceipt.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/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/receiptvalidationerror.d.ts +46 -0
- package/models/errors/receiptvalidationerror.d.ts.map +1 -0
- package/models/errors/receiptvalidationerror.js +98 -0
- package/models/errors/receiptvalidationerror.js.map +1 -0
- 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/createreceipts.d.ts +74 -0
- package/models/operations/createreceipts.d.ts.map +1 -0
- package/models/operations/createreceipts.js +118 -0
- package/models/operations/createreceipts.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 +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listreceipts.d.ts +102 -0
- package/models/operations/listreceipts.d.ts.map +1 -0
- package/models/operations/listreceipts.js +145 -0
- package/models/operations/listreceipts.js.map +1 -0
- package/package.json +1 -1
- package/sdk/receipts.d.ts +20 -0
- package/sdk/receipts.d.ts.map +1 -0
- package/sdk/receipts.js +32 -0
- package/sdk/receipts.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +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/receiptsCreate.ts +190 -0
- package/src/funcs/receiptsList.ts +171 -0
- 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 +9 -1
- package/src/mcp-server/tools/receiptsCreate.ts +39 -0
- package/src/mcp-server/tools/receiptsList.ts +38 -0
- package/src/mcp-server/tools/transfersCreateCancellation.ts +38 -0
- package/src/mcp-server/tools/transfersGetCancellation.ts +38 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/receiptkind.ts +36 -0
- package/src/models/components/receiptrequest.ts +123 -0
- package/src/models/components/receiptresponse.ts +157 -0
- package/src/models/components/sentreceipt.ts +79 -0
- package/src/models/components/transfer.ts +10 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/receiptvalidationerror.ts +99 -0
- package/src/models/errors/transfer.ts +6 -0
- package/src/models/operations/createcancellation.ts +229 -0
- package/src/models/operations/createreceipts.ts +161 -0
- package/src/models/operations/getcancellation.ts +236 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listreceipts.ts +222 -0
- package/src/sdk/receipts.ts +46 -0
- package/src/sdk/sdk.ts +6 -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.
|
|
34218
|
-
userAgent: "speakeasy-sdk/typescript 0.6.
|
|
34216
|
+
sdkVersion: "0.6.2",
|
|
34217
|
+
genVersion: "2.541.0",
|
|
34218
|
+
userAgent: "speakeasy-sdk/typescript 0.6.2 2.541.0 latest @moovio/sdk"
|
|
34219
34219
|
};
|
|
34220
34220
|
});
|
|
34221
34221
|
|
|
@@ -42846,6 +42846,104 @@ var init_qrcode = __esm(() => {
|
|
|
42846
42846
|
})(QRCode$ ||= {});
|
|
42847
42847
|
});
|
|
42848
42848
|
|
|
42849
|
+
// src/models/components/receiptkind.ts
|
|
42850
|
+
var ReceiptKind, ReceiptKind$inboundSchema, ReceiptKind$outboundSchema, ReceiptKind$;
|
|
42851
|
+
var init_receiptkind = __esm(() => {
|
|
42852
|
+
init_lib();
|
|
42853
|
+
ReceiptKind = {
|
|
42854
|
+
SaleCustomerV1: "sale.customer.v1"
|
|
42855
|
+
};
|
|
42856
|
+
ReceiptKind$inboundSchema = nativeEnumType(ReceiptKind);
|
|
42857
|
+
ReceiptKind$outboundSchema = ReceiptKind$inboundSchema;
|
|
42858
|
+
((ReceiptKind$) => {
|
|
42859
|
+
ReceiptKind$.inboundSchema = ReceiptKind$inboundSchema;
|
|
42860
|
+
ReceiptKind$.outboundSchema = ReceiptKind$outboundSchema;
|
|
42861
|
+
})(ReceiptKind$ ||= {});
|
|
42862
|
+
});
|
|
42863
|
+
|
|
42864
|
+
// src/models/components/receiptrequest.ts
|
|
42865
|
+
var ReceiptRequest$inboundSchema, ReceiptRequest$outboundSchema, ReceiptRequest$;
|
|
42866
|
+
var init_receiptrequest = __esm(() => {
|
|
42867
|
+
init_lib();
|
|
42868
|
+
init_receiptkind();
|
|
42869
|
+
ReceiptRequest$inboundSchema = objectType({
|
|
42870
|
+
kind: ReceiptKind$inboundSchema,
|
|
42871
|
+
email: stringType().optional(),
|
|
42872
|
+
emailAccountID: stringType().optional(),
|
|
42873
|
+
forTransferID: stringType().optional(),
|
|
42874
|
+
forScheduleID: stringType().optional(),
|
|
42875
|
+
forOccurrenceID: stringType().optional()
|
|
42876
|
+
});
|
|
42877
|
+
ReceiptRequest$outboundSchema = objectType({
|
|
42878
|
+
kind: ReceiptKind$outboundSchema,
|
|
42879
|
+
email: stringType().optional(),
|
|
42880
|
+
emailAccountID: stringType().optional(),
|
|
42881
|
+
forTransferID: stringType().optional(),
|
|
42882
|
+
forScheduleID: stringType().optional(),
|
|
42883
|
+
forOccurrenceID: stringType().optional()
|
|
42884
|
+
});
|
|
42885
|
+
((ReceiptRequest$) => {
|
|
42886
|
+
ReceiptRequest$.inboundSchema = ReceiptRequest$inboundSchema;
|
|
42887
|
+
ReceiptRequest$.outboundSchema = ReceiptRequest$outboundSchema;
|
|
42888
|
+
})(ReceiptRequest$ ||= {});
|
|
42889
|
+
});
|
|
42890
|
+
|
|
42891
|
+
// src/models/components/sentreceipt.ts
|
|
42892
|
+
var SentReceipt$inboundSchema, SentReceipt$outboundSchema, SentReceipt$;
|
|
42893
|
+
var init_sentreceipt = __esm(() => {
|
|
42894
|
+
init_lib();
|
|
42895
|
+
SentReceipt$inboundSchema = objectType({
|
|
42896
|
+
receiptID: stringType(),
|
|
42897
|
+
idempotencyKey: stringType(),
|
|
42898
|
+
sentOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
42899
|
+
});
|
|
42900
|
+
SentReceipt$outboundSchema = objectType({
|
|
42901
|
+
receiptID: stringType(),
|
|
42902
|
+
idempotencyKey: stringType(),
|
|
42903
|
+
sentOn: dateType().transform((v2) => v2.toISOString())
|
|
42904
|
+
});
|
|
42905
|
+
((SentReceipt$) => {
|
|
42906
|
+
SentReceipt$.inboundSchema = SentReceipt$inboundSchema;
|
|
42907
|
+
SentReceipt$.outboundSchema = SentReceipt$outboundSchema;
|
|
42908
|
+
})(SentReceipt$ ||= {});
|
|
42909
|
+
});
|
|
42910
|
+
|
|
42911
|
+
// src/models/components/receiptresponse.ts
|
|
42912
|
+
var ReceiptResponse$inboundSchema, ReceiptResponse$outboundSchema, ReceiptResponse$;
|
|
42913
|
+
var init_receiptresponse = __esm(() => {
|
|
42914
|
+
init_lib();
|
|
42915
|
+
init_receiptkind();
|
|
42916
|
+
init_sentreceipt();
|
|
42917
|
+
ReceiptResponse$inboundSchema = objectType({
|
|
42918
|
+
receiptID: stringType(),
|
|
42919
|
+
createdBy: stringType(),
|
|
42920
|
+
disabledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
42921
|
+
kind: ReceiptKind$inboundSchema,
|
|
42922
|
+
email: stringType().optional(),
|
|
42923
|
+
emailAccountID: stringType().optional(),
|
|
42924
|
+
forTransferID: stringType().optional(),
|
|
42925
|
+
forScheduleID: stringType().optional(),
|
|
42926
|
+
forOccurrenceID: stringType().optional(),
|
|
42927
|
+
sentFor: arrayType(SentReceipt$inboundSchema)
|
|
42928
|
+
});
|
|
42929
|
+
ReceiptResponse$outboundSchema = objectType({
|
|
42930
|
+
receiptID: stringType(),
|
|
42931
|
+
createdBy: stringType(),
|
|
42932
|
+
disabledOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
42933
|
+
kind: ReceiptKind$outboundSchema,
|
|
42934
|
+
email: stringType().optional(),
|
|
42935
|
+
emailAccountID: stringType().optional(),
|
|
42936
|
+
forTransferID: stringType().optional(),
|
|
42937
|
+
forScheduleID: stringType().optional(),
|
|
42938
|
+
forOccurrenceID: stringType().optional(),
|
|
42939
|
+
sentFor: arrayType(SentReceipt$outboundSchema)
|
|
42940
|
+
});
|
|
42941
|
+
((ReceiptResponse$) => {
|
|
42942
|
+
ReceiptResponse$.inboundSchema = ReceiptResponse$inboundSchema;
|
|
42943
|
+
ReceiptResponse$.outboundSchema = ReceiptResponse$outboundSchema;
|
|
42944
|
+
})(ReceiptResponse$ ||= {});
|
|
42945
|
+
});
|
|
42946
|
+
|
|
42849
42947
|
// src/models/components/recur.ts
|
|
42850
42948
|
var Recur$inboundSchema, Recur$outboundSchema, Recur$;
|
|
42851
42949
|
var init_recur = __esm(() => {
|
|
@@ -43482,6 +43580,7 @@ var Transfer$inboundSchema, Transfer$outboundSchema, Transfer$;
|
|
|
43482
43580
|
var init_transfer = __esm(() => {
|
|
43483
43581
|
init_lib();
|
|
43484
43582
|
init_amount();
|
|
43583
|
+
init_cancellation();
|
|
43485
43584
|
init_cardacquiringdispute();
|
|
43486
43585
|
init_cardacquiringrefund();
|
|
43487
43586
|
init_facilitatorfee();
|
|
@@ -43506,6 +43605,7 @@ var init_transfer = __esm(() => {
|
|
|
43506
43605
|
moovFeeDecimal: stringType().optional(),
|
|
43507
43606
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
43508
43607
|
groupID: stringType().optional(),
|
|
43608
|
+
cancellations: arrayType(Cancellation$inboundSchema).optional(),
|
|
43509
43609
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
43510
43610
|
refunds: arrayType(CardAcquiringRefund$inboundSchema).optional(),
|
|
43511
43611
|
disputedAmount: Amount$inboundSchema.optional(),
|
|
@@ -43530,6 +43630,7 @@ var init_transfer = __esm(() => {
|
|
|
43530
43630
|
moovFeeDecimal: stringType().optional(),
|
|
43531
43631
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
43532
43632
|
groupID: stringType().optional(),
|
|
43633
|
+
cancellations: arrayType(Cancellation$outboundSchema).optional(),
|
|
43533
43634
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
43534
43635
|
refunds: arrayType(CardAcquiringRefund$outboundSchema).optional(),
|
|
43535
43636
|
disputedAmount: Amount$outboundSchema.optional(),
|
|
@@ -44530,6 +44631,9 @@ var init_components = __esm(() => {
|
|
|
44530
44631
|
init_pullfromcardpaymentmethod();
|
|
44531
44632
|
init_pushtocardpaymentmethod();
|
|
44532
44633
|
init_qrcode();
|
|
44634
|
+
init_receiptkind();
|
|
44635
|
+
init_receiptrequest();
|
|
44636
|
+
init_receiptresponse();
|
|
44533
44637
|
init_recur();
|
|
44534
44638
|
init_refundcarddetails();
|
|
44535
44639
|
init_refundcardstatus();
|
|
@@ -44557,6 +44661,7 @@ var init_components = __esm(() => {
|
|
|
44557
44661
|
init_scheduleresponse();
|
|
44558
44662
|
init_seccode();
|
|
44559
44663
|
init_security2();
|
|
44664
|
+
init_sentreceipt();
|
|
44560
44665
|
init_settings();
|
|
44561
44666
|
init_sourcedestinationoptions();
|
|
44562
44667
|
init_sweep();
|
|
@@ -45412,6 +45517,61 @@ var init_patchsweepconfigerror = __esm(() => {
|
|
|
45412
45517
|
})(PatchSweepConfigError$ ||= {});
|
|
45413
45518
|
});
|
|
45414
45519
|
|
|
45520
|
+
// src/models/errors/receiptvalidationerror.ts
|
|
45521
|
+
var ReceiptValidationError, ReceiptValidationError$inboundSchema, ReceiptValidationError$outboundSchema, ReceiptValidationError$;
|
|
45522
|
+
var init_receiptvalidationerror = __esm(() => {
|
|
45523
|
+
init_lib();
|
|
45524
|
+
ReceiptValidationError = class ReceiptValidationError extends Error {
|
|
45525
|
+
kind;
|
|
45526
|
+
email;
|
|
45527
|
+
emailAccountID;
|
|
45528
|
+
forTransferID;
|
|
45529
|
+
forScheduleID;
|
|
45530
|
+
forOccurrenceID;
|
|
45531
|
+
data$;
|
|
45532
|
+
constructor(err) {
|
|
45533
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
45534
|
+
super(message);
|
|
45535
|
+
this.data$ = err;
|
|
45536
|
+
if (err.kind != null)
|
|
45537
|
+
this.kind = err.kind;
|
|
45538
|
+
if (err.email != null)
|
|
45539
|
+
this.email = err.email;
|
|
45540
|
+
if (err.emailAccountID != null)
|
|
45541
|
+
this.emailAccountID = err.emailAccountID;
|
|
45542
|
+
if (err.forTransferID != null)
|
|
45543
|
+
this.forTransferID = err.forTransferID;
|
|
45544
|
+
if (err.forScheduleID != null)
|
|
45545
|
+
this.forScheduleID = err.forScheduleID;
|
|
45546
|
+
if (err.forOccurrenceID != null)
|
|
45547
|
+
this.forOccurrenceID = err.forOccurrenceID;
|
|
45548
|
+
this.name = "ReceiptValidationError";
|
|
45549
|
+
}
|
|
45550
|
+
};
|
|
45551
|
+
ReceiptValidationError$inboundSchema = objectType({
|
|
45552
|
+
kind: stringType().optional(),
|
|
45553
|
+
email: stringType().optional(),
|
|
45554
|
+
emailAccountID: stringType().optional(),
|
|
45555
|
+
forTransferID: stringType().optional(),
|
|
45556
|
+
forScheduleID: stringType().optional(),
|
|
45557
|
+
forOccurrenceID: stringType().optional()
|
|
45558
|
+
}).transform((v2) => {
|
|
45559
|
+
return new ReceiptValidationError(v2);
|
|
45560
|
+
});
|
|
45561
|
+
ReceiptValidationError$outboundSchema = instanceOfType(ReceiptValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
45562
|
+
kind: stringType().optional(),
|
|
45563
|
+
email: stringType().optional(),
|
|
45564
|
+
emailAccountID: stringType().optional(),
|
|
45565
|
+
forTransferID: stringType().optional(),
|
|
45566
|
+
forScheduleID: stringType().optional(),
|
|
45567
|
+
forOccurrenceID: stringType().optional()
|
|
45568
|
+
}));
|
|
45569
|
+
((ReceiptValidationError$) => {
|
|
45570
|
+
ReceiptValidationError$.inboundSchema = ReceiptValidationError$inboundSchema;
|
|
45571
|
+
ReceiptValidationError$.outboundSchema = ReceiptValidationError$outboundSchema;
|
|
45572
|
+
})(ReceiptValidationError$ ||= {});
|
|
45573
|
+
});
|
|
45574
|
+
|
|
45415
45575
|
// src/models/errors/refundvalidationerror.ts
|
|
45416
45576
|
var RefundValidationError, RefundValidationError$inboundSchema, RefundValidationError$outboundSchema, RefundValidationError$;
|
|
45417
45577
|
var init_refundvalidationerror = __esm(() => {
|
|
@@ -45739,6 +45899,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45739
45899
|
moovFeeDecimal;
|
|
45740
45900
|
moovFeeDetails;
|
|
45741
45901
|
groupID;
|
|
45902
|
+
cancellations;
|
|
45742
45903
|
refundedAmount;
|
|
45743
45904
|
refunds;
|
|
45744
45905
|
disputedAmount;
|
|
@@ -45775,6 +45936,8 @@ var init_transfer2 = __esm(() => {
|
|
|
45775
45936
|
this.moovFeeDetails = err.moovFeeDetails;
|
|
45776
45937
|
if (err.groupID != null)
|
|
45777
45938
|
this.groupID = err.groupID;
|
|
45939
|
+
if (err.cancellations != null)
|
|
45940
|
+
this.cancellations = err.cancellations;
|
|
45778
45941
|
if (err.refundedAmount != null)
|
|
45779
45942
|
this.refundedAmount = err.refundedAmount;
|
|
45780
45943
|
if (err.refunds != null)
|
|
@@ -45808,6 +45971,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45808
45971
|
moovFeeDecimal: stringType().optional(),
|
|
45809
45972
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
45810
45973
|
groupID: stringType().optional(),
|
|
45974
|
+
cancellations: arrayType(Cancellation$inboundSchema).optional(),
|
|
45811
45975
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
45812
45976
|
refunds: arrayType(CardAcquiringRefund$inboundSchema).optional(),
|
|
45813
45977
|
disputedAmount: Amount$inboundSchema.optional(),
|
|
@@ -45834,6 +45998,7 @@ var init_transfer2 = __esm(() => {
|
|
|
45834
45998
|
moovFeeDecimal: stringType().optional(),
|
|
45835
45999
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
45836
46000
|
groupID: stringType().optional(),
|
|
46001
|
+
cancellations: arrayType(Cancellation$outboundSchema).optional(),
|
|
45837
46002
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
45838
46003
|
refunds: arrayType(CardAcquiringRefund$outboundSchema).optional(),
|
|
45839
46004
|
disputedAmount: Amount$outboundSchema.optional(),
|
|
@@ -46240,6 +46405,7 @@ var init_errors = __esm(() => {
|
|
|
46240
46405
|
init_microdepositvalidationerror();
|
|
46241
46406
|
init_onboardinginviteerror();
|
|
46242
46407
|
init_patchsweepconfigerror();
|
|
46408
|
+
init_receiptvalidationerror();
|
|
46243
46409
|
init_refundvalidationerror();
|
|
46244
46410
|
init_representativevalidationerror();
|
|
46245
46411
|
init_requestcarderror();
|
|
@@ -46813,6 +46979,66 @@ var init_createbrand = __esm(() => {
|
|
|
46813
46979
|
})(CreateBrandResponse$ ||= {});
|
|
46814
46980
|
});
|
|
46815
46981
|
|
|
46982
|
+
// src/models/operations/createcancellation.ts
|
|
46983
|
+
var CreateCancellationGlobals$inboundSchema, CreateCancellationGlobals$outboundSchema, CreateCancellationGlobals$, CreateCancellationRequest$inboundSchema, CreateCancellationRequest$outboundSchema, CreateCancellationRequest$, CreateCancellationResponse$inboundSchema, CreateCancellationResponse$outboundSchema, CreateCancellationResponse$;
|
|
46984
|
+
var init_createcancellation = __esm(() => {
|
|
46985
|
+
init_lib();
|
|
46986
|
+
init_primitives();
|
|
46987
|
+
init_components();
|
|
46988
|
+
CreateCancellationGlobals$inboundSchema = objectType({
|
|
46989
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
46990
|
+
}).transform((v2) => {
|
|
46991
|
+
return remap(v2, {
|
|
46992
|
+
"x-moov-version": "xMoovVersion"
|
|
46993
|
+
});
|
|
46994
|
+
});
|
|
46995
|
+
CreateCancellationGlobals$outboundSchema = objectType({
|
|
46996
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
46997
|
+
}).transform((v2) => {
|
|
46998
|
+
return remap(v2, {
|
|
46999
|
+
xMoovVersion: "x-moov-version"
|
|
47000
|
+
});
|
|
47001
|
+
});
|
|
47002
|
+
((CreateCancellationGlobals$) => {
|
|
47003
|
+
CreateCancellationGlobals$.inboundSchema = CreateCancellationGlobals$inboundSchema;
|
|
47004
|
+
CreateCancellationGlobals$.outboundSchema = CreateCancellationGlobals$outboundSchema;
|
|
47005
|
+
})(CreateCancellationGlobals$ ||= {});
|
|
47006
|
+
CreateCancellationRequest$inboundSchema = objectType({
|
|
47007
|
+
accountID: stringType(),
|
|
47008
|
+
transferID: stringType()
|
|
47009
|
+
});
|
|
47010
|
+
CreateCancellationRequest$outboundSchema = objectType({
|
|
47011
|
+
accountID: stringType(),
|
|
47012
|
+
transferID: stringType()
|
|
47013
|
+
});
|
|
47014
|
+
((CreateCancellationRequest$) => {
|
|
47015
|
+
CreateCancellationRequest$.inboundSchema = CreateCancellationRequest$inboundSchema;
|
|
47016
|
+
CreateCancellationRequest$.outboundSchema = CreateCancellationRequest$outboundSchema;
|
|
47017
|
+
})(CreateCancellationRequest$ ||= {});
|
|
47018
|
+
CreateCancellationResponse$inboundSchema = objectType({
|
|
47019
|
+
Headers: recordType(arrayType(stringType())),
|
|
47020
|
+
Result: Cancellation$inboundSchema
|
|
47021
|
+
}).transform((v2) => {
|
|
47022
|
+
return remap(v2, {
|
|
47023
|
+
Headers: "headers",
|
|
47024
|
+
Result: "result"
|
|
47025
|
+
});
|
|
47026
|
+
});
|
|
47027
|
+
CreateCancellationResponse$outboundSchema = objectType({
|
|
47028
|
+
headers: recordType(arrayType(stringType())),
|
|
47029
|
+
result: Cancellation$outboundSchema
|
|
47030
|
+
}).transform((v2) => {
|
|
47031
|
+
return remap(v2, {
|
|
47032
|
+
headers: "Headers",
|
|
47033
|
+
result: "Result"
|
|
47034
|
+
});
|
|
47035
|
+
});
|
|
47036
|
+
((CreateCancellationResponse$) => {
|
|
47037
|
+
CreateCancellationResponse$.inboundSchema = CreateCancellationResponse$inboundSchema;
|
|
47038
|
+
CreateCancellationResponse$.outboundSchema = CreateCancellationResponse$outboundSchema;
|
|
47039
|
+
})(CreateCancellationResponse$ ||= {});
|
|
47040
|
+
});
|
|
47041
|
+
|
|
46816
47042
|
// src/models/operations/createfeeplanagreements.ts
|
|
46817
47043
|
var CreateFeePlanAgreementsGlobals$inboundSchema, CreateFeePlanAgreementsGlobals$outboundSchema, CreateFeePlanAgreementsGlobals$, CreateFeePlanAgreementsRequest$inboundSchema, CreateFeePlanAgreementsRequest$outboundSchema, CreateFeePlanAgreementsRequest$, CreateFeePlanAgreementsResponse$inboundSchema, CreateFeePlanAgreementsResponse$outboundSchema, CreateFeePlanAgreementsResponse$;
|
|
46818
47044
|
var init_createfeeplanagreements = __esm(() => {
|
|
@@ -46997,6 +47223,54 @@ var init_createpaymentlink2 = __esm(() => {
|
|
|
46997
47223
|
})(CreatePaymentLinkResponse$ ||= {});
|
|
46998
47224
|
});
|
|
46999
47225
|
|
|
47226
|
+
// src/models/operations/createreceipts.ts
|
|
47227
|
+
var CreateReceiptsGlobals$inboundSchema, CreateReceiptsGlobals$outboundSchema, CreateReceiptsGlobals$, CreateReceiptsResponse$inboundSchema, CreateReceiptsResponse$outboundSchema, CreateReceiptsResponse$;
|
|
47228
|
+
var init_createreceipts = __esm(() => {
|
|
47229
|
+
init_lib();
|
|
47230
|
+
init_primitives();
|
|
47231
|
+
init_components();
|
|
47232
|
+
CreateReceiptsGlobals$inboundSchema = objectType({
|
|
47233
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
47234
|
+
}).transform((v2) => {
|
|
47235
|
+
return remap(v2, {
|
|
47236
|
+
"x-moov-version": "xMoovVersion"
|
|
47237
|
+
});
|
|
47238
|
+
});
|
|
47239
|
+
CreateReceiptsGlobals$outboundSchema = objectType({
|
|
47240
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
47241
|
+
}).transform((v2) => {
|
|
47242
|
+
return remap(v2, {
|
|
47243
|
+
xMoovVersion: "x-moov-version"
|
|
47244
|
+
});
|
|
47245
|
+
});
|
|
47246
|
+
((CreateReceiptsGlobals$) => {
|
|
47247
|
+
CreateReceiptsGlobals$.inboundSchema = CreateReceiptsGlobals$inboundSchema;
|
|
47248
|
+
CreateReceiptsGlobals$.outboundSchema = CreateReceiptsGlobals$outboundSchema;
|
|
47249
|
+
})(CreateReceiptsGlobals$ ||= {});
|
|
47250
|
+
CreateReceiptsResponse$inboundSchema = objectType({
|
|
47251
|
+
Headers: recordType(arrayType(stringType())),
|
|
47252
|
+
Result: ReceiptResponse$inboundSchema
|
|
47253
|
+
}).transform((v2) => {
|
|
47254
|
+
return remap(v2, {
|
|
47255
|
+
Headers: "headers",
|
|
47256
|
+
Result: "result"
|
|
47257
|
+
});
|
|
47258
|
+
});
|
|
47259
|
+
CreateReceiptsResponse$outboundSchema = objectType({
|
|
47260
|
+
headers: recordType(arrayType(stringType())),
|
|
47261
|
+
result: ReceiptResponse$outboundSchema
|
|
47262
|
+
}).transform((v2) => {
|
|
47263
|
+
return remap(v2, {
|
|
47264
|
+
headers: "Headers",
|
|
47265
|
+
result: "Result"
|
|
47266
|
+
});
|
|
47267
|
+
});
|
|
47268
|
+
((CreateReceiptsResponse$) => {
|
|
47269
|
+
CreateReceiptsResponse$.inboundSchema = CreateReceiptsResponse$inboundSchema;
|
|
47270
|
+
CreateReceiptsResponse$.outboundSchema = CreateReceiptsResponse$outboundSchema;
|
|
47271
|
+
})(CreateReceiptsResponse$ ||= {});
|
|
47272
|
+
});
|
|
47273
|
+
|
|
47000
47274
|
// src/models/operations/createrepresentative.ts
|
|
47001
47275
|
var CreateRepresentativeGlobals$inboundSchema, CreateRepresentativeGlobals$outboundSchema, CreateRepresentativeGlobals$, CreateRepresentativeRequest$inboundSchema, CreateRepresentativeRequest$outboundSchema, CreateRepresentativeRequest$, CreateRepresentativeResponse$inboundSchema, CreateRepresentativeResponse$outboundSchema, CreateRepresentativeResponse$;
|
|
47002
47276
|
var init_createrepresentative2 = __esm(() => {
|
|
@@ -48431,6 +48705,68 @@ var init_getbrand = __esm(() => {
|
|
|
48431
48705
|
})(GetBrandResponse$ ||= {});
|
|
48432
48706
|
});
|
|
48433
48707
|
|
|
48708
|
+
// src/models/operations/getcancellation.ts
|
|
48709
|
+
var GetCancellationGlobals$inboundSchema, GetCancellationGlobals$outboundSchema, GetCancellationGlobals$, GetCancellationRequest$inboundSchema, GetCancellationRequest$outboundSchema, GetCancellationRequest$, GetCancellationResponse$inboundSchema, GetCancellationResponse$outboundSchema, GetCancellationResponse$;
|
|
48710
|
+
var init_getcancellation = __esm(() => {
|
|
48711
|
+
init_lib();
|
|
48712
|
+
init_primitives();
|
|
48713
|
+
init_components();
|
|
48714
|
+
GetCancellationGlobals$inboundSchema = objectType({
|
|
48715
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
48716
|
+
}).transform((v2) => {
|
|
48717
|
+
return remap(v2, {
|
|
48718
|
+
"x-moov-version": "xMoovVersion"
|
|
48719
|
+
});
|
|
48720
|
+
});
|
|
48721
|
+
GetCancellationGlobals$outboundSchema = objectType({
|
|
48722
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
48723
|
+
}).transform((v2) => {
|
|
48724
|
+
return remap(v2, {
|
|
48725
|
+
xMoovVersion: "x-moov-version"
|
|
48726
|
+
});
|
|
48727
|
+
});
|
|
48728
|
+
((GetCancellationGlobals$) => {
|
|
48729
|
+
GetCancellationGlobals$.inboundSchema = GetCancellationGlobals$inboundSchema;
|
|
48730
|
+
GetCancellationGlobals$.outboundSchema = GetCancellationGlobals$outboundSchema;
|
|
48731
|
+
})(GetCancellationGlobals$ ||= {});
|
|
48732
|
+
GetCancellationRequest$inboundSchema = objectType({
|
|
48733
|
+
accountID: stringType(),
|
|
48734
|
+
transferID: stringType(),
|
|
48735
|
+
cancellationID: stringType()
|
|
48736
|
+
});
|
|
48737
|
+
GetCancellationRequest$outboundSchema = objectType({
|
|
48738
|
+
accountID: stringType(),
|
|
48739
|
+
transferID: stringType(),
|
|
48740
|
+
cancellationID: stringType()
|
|
48741
|
+
});
|
|
48742
|
+
((GetCancellationRequest$) => {
|
|
48743
|
+
GetCancellationRequest$.inboundSchema = GetCancellationRequest$inboundSchema;
|
|
48744
|
+
GetCancellationRequest$.outboundSchema = GetCancellationRequest$outboundSchema;
|
|
48745
|
+
})(GetCancellationRequest$ ||= {});
|
|
48746
|
+
GetCancellationResponse$inboundSchema = objectType({
|
|
48747
|
+
Headers: recordType(arrayType(stringType())),
|
|
48748
|
+
Result: Cancellation$inboundSchema
|
|
48749
|
+
}).transform((v2) => {
|
|
48750
|
+
return remap(v2, {
|
|
48751
|
+
Headers: "headers",
|
|
48752
|
+
Result: "result"
|
|
48753
|
+
});
|
|
48754
|
+
});
|
|
48755
|
+
GetCancellationResponse$outboundSchema = objectType({
|
|
48756
|
+
headers: recordType(arrayType(stringType())),
|
|
48757
|
+
result: Cancellation$outboundSchema
|
|
48758
|
+
}).transform((v2) => {
|
|
48759
|
+
return remap(v2, {
|
|
48760
|
+
headers: "Headers",
|
|
48761
|
+
result: "Result"
|
|
48762
|
+
});
|
|
48763
|
+
});
|
|
48764
|
+
((GetCancellationResponse$) => {
|
|
48765
|
+
GetCancellationResponse$.inboundSchema = GetCancellationResponse$inboundSchema;
|
|
48766
|
+
GetCancellationResponse$.outboundSchema = GetCancellationResponse$outboundSchema;
|
|
48767
|
+
})(GetCancellationResponse$ ||= {});
|
|
48768
|
+
});
|
|
48769
|
+
|
|
48434
48770
|
// src/models/operations/getcapability.ts
|
|
48435
48771
|
var GetCapabilityGlobals$inboundSchema, GetCapabilityGlobals$outboundSchema, GetCapabilityGlobals$, GetCapabilityRequest$inboundSchema, GetCapabilityRequest$outboundSchema, GetCapabilityRequest$, GetCapabilityResponse$inboundSchema, GetCapabilityResponse$outboundSchema, GetCapabilityResponse$;
|
|
48436
48772
|
var init_getcapability = __esm(() => {
|
|
@@ -52052,6 +52388,64 @@ var init_listpaymentmethods = __esm(() => {
|
|
|
52052
52388
|
})(ListPaymentMethodsResponse$ ||= {});
|
|
52053
52389
|
});
|
|
52054
52390
|
|
|
52391
|
+
// src/models/operations/listreceipts.ts
|
|
52392
|
+
var ListReceiptsGlobals$inboundSchema, ListReceiptsGlobals$outboundSchema, ListReceiptsGlobals$, ListReceiptsRequest$inboundSchema, ListReceiptsRequest$outboundSchema, ListReceiptsRequest$, ListReceiptsResponse$inboundSchema, ListReceiptsResponse$outboundSchema, ListReceiptsResponse$;
|
|
52393
|
+
var init_listreceipts = __esm(() => {
|
|
52394
|
+
init_lib();
|
|
52395
|
+
init_primitives();
|
|
52396
|
+
init_components();
|
|
52397
|
+
ListReceiptsGlobals$inboundSchema = objectType({
|
|
52398
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
52399
|
+
}).transform((v2) => {
|
|
52400
|
+
return remap(v2, {
|
|
52401
|
+
"x-moov-version": "xMoovVersion"
|
|
52402
|
+
});
|
|
52403
|
+
});
|
|
52404
|
+
ListReceiptsGlobals$outboundSchema = objectType({
|
|
52405
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
52406
|
+
}).transform((v2) => {
|
|
52407
|
+
return remap(v2, {
|
|
52408
|
+
xMoovVersion: "x-moov-version"
|
|
52409
|
+
});
|
|
52410
|
+
});
|
|
52411
|
+
((ListReceiptsGlobals$) => {
|
|
52412
|
+
ListReceiptsGlobals$.inboundSchema = ListReceiptsGlobals$inboundSchema;
|
|
52413
|
+
ListReceiptsGlobals$.outboundSchema = ListReceiptsGlobals$outboundSchema;
|
|
52414
|
+
})(ListReceiptsGlobals$ ||= {});
|
|
52415
|
+
ListReceiptsRequest$inboundSchema = objectType({
|
|
52416
|
+
id: stringType().optional()
|
|
52417
|
+
});
|
|
52418
|
+
ListReceiptsRequest$outboundSchema = objectType({
|
|
52419
|
+
id: stringType().optional()
|
|
52420
|
+
});
|
|
52421
|
+
((ListReceiptsRequest$) => {
|
|
52422
|
+
ListReceiptsRequest$.inboundSchema = ListReceiptsRequest$inboundSchema;
|
|
52423
|
+
ListReceiptsRequest$.outboundSchema = ListReceiptsRequest$outboundSchema;
|
|
52424
|
+
})(ListReceiptsRequest$ ||= {});
|
|
52425
|
+
ListReceiptsResponse$inboundSchema = objectType({
|
|
52426
|
+
Headers: recordType(arrayType(stringType())),
|
|
52427
|
+
Result: arrayType(ReceiptResponse$inboundSchema)
|
|
52428
|
+
}).transform((v2) => {
|
|
52429
|
+
return remap(v2, {
|
|
52430
|
+
Headers: "headers",
|
|
52431
|
+
Result: "result"
|
|
52432
|
+
});
|
|
52433
|
+
});
|
|
52434
|
+
ListReceiptsResponse$outboundSchema = objectType({
|
|
52435
|
+
headers: recordType(arrayType(stringType())),
|
|
52436
|
+
result: arrayType(ReceiptResponse$outboundSchema)
|
|
52437
|
+
}).transform((v2) => {
|
|
52438
|
+
return remap(v2, {
|
|
52439
|
+
headers: "Headers",
|
|
52440
|
+
result: "Result"
|
|
52441
|
+
});
|
|
52442
|
+
});
|
|
52443
|
+
((ListReceiptsResponse$) => {
|
|
52444
|
+
ListReceiptsResponse$.inboundSchema = ListReceiptsResponse$inboundSchema;
|
|
52445
|
+
ListReceiptsResponse$.outboundSchema = ListReceiptsResponse$outboundSchema;
|
|
52446
|
+
})(ListReceiptsResponse$ ||= {});
|
|
52447
|
+
});
|
|
52448
|
+
|
|
52055
52449
|
// src/models/operations/listrefunds.ts
|
|
52056
52450
|
var ListRefundsGlobals$inboundSchema, ListRefundsGlobals$outboundSchema, ListRefundsGlobals$, ListRefundsRequest$inboundSchema, ListRefundsRequest$outboundSchema, ListRefundsRequest$, ListRefundsResponse$inboundSchema, ListRefundsResponse$outboundSchema, ListRefundsResponse$;
|
|
52057
52451
|
var init_listrefunds = __esm(() => {
|
|
@@ -54265,9 +54659,11 @@ var init_operations = __esm(() => {
|
|
|
54265
54659
|
init_createaccount3();
|
|
54266
54660
|
init_createapplepaysession2();
|
|
54267
54661
|
init_createbrand();
|
|
54662
|
+
init_createcancellation();
|
|
54268
54663
|
init_createfeeplanagreements();
|
|
54269
54664
|
init_createonboardinginvite();
|
|
54270
54665
|
init_createpaymentlink2();
|
|
54666
|
+
init_createreceipts();
|
|
54271
54667
|
init_createrepresentative2();
|
|
54272
54668
|
init_createreversal2();
|
|
54273
54669
|
init_createschedule();
|
|
@@ -54292,6 +54688,7 @@ var init_operations = __esm(() => {
|
|
|
54292
54688
|
init_getbankaccount();
|
|
54293
54689
|
init_getbankaccountverification();
|
|
54294
54690
|
init_getbrand();
|
|
54691
|
+
init_getcancellation();
|
|
54295
54692
|
init_getcapability();
|
|
54296
54693
|
init_getcard();
|
|
54297
54694
|
init_getdispute();
|
|
@@ -54349,6 +54746,7 @@ var init_operations = __esm(() => {
|
|
|
54349
54746
|
init_listpartnerpricingagreements();
|
|
54350
54747
|
init_listpaymentlinks();
|
|
54351
54748
|
init_listpaymentmethods();
|
|
54749
|
+
init_listreceipts();
|
|
54352
54750
|
init_listrefunds();
|
|
54353
54751
|
init_listrepresentatives();
|
|
54354
54752
|
init_listschedules();
|
|
@@ -65175,11 +65573,238 @@ you'll need to specify the \`/ping.read\` scope.`,
|
|
|
65175
65573
|
};
|
|
65176
65574
|
});
|
|
65177
65575
|
|
|
65178
|
-
// src/funcs/
|
|
65179
|
-
function
|
|
65576
|
+
// src/funcs/receiptsCreate.ts
|
|
65577
|
+
function receiptsCreate(client, request, options) {
|
|
65180
65578
|
return new APIPromise($do92(client, request, options));
|
|
65181
65579
|
}
|
|
65182
65580
|
async function $do92(client, request, options) {
|
|
65581
|
+
const parsed = safeParse(request, (value) => arrayType(ReceiptRequest$outboundSchema).parse(value), "Input validation failed");
|
|
65582
|
+
if (!parsed.ok) {
|
|
65583
|
+
return [parsed, { status: "invalid" }];
|
|
65584
|
+
}
|
|
65585
|
+
const payload = parsed.value;
|
|
65586
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
65587
|
+
const path = pathToFunc("/receipts")();
|
|
65588
|
+
const headers = new Headers(compactMap({
|
|
65589
|
+
"Content-Type": "application/json",
|
|
65590
|
+
Accept: "application/json",
|
|
65591
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
65592
|
+
}));
|
|
65593
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65594
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65595
|
+
const context = {
|
|
65596
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65597
|
+
operationID: "createReceipts",
|
|
65598
|
+
oAuth2Scopes: [],
|
|
65599
|
+
resolvedSecurity: requestSecurity,
|
|
65600
|
+
securitySource: client._options.security,
|
|
65601
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
65602
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
65603
|
+
};
|
|
65604
|
+
const requestRes = client._createRequest(context, {
|
|
65605
|
+
security: requestSecurity,
|
|
65606
|
+
method: "POST",
|
|
65607
|
+
baseURL: options?.serverURL,
|
|
65608
|
+
path,
|
|
65609
|
+
headers,
|
|
65610
|
+
body,
|
|
65611
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65612
|
+
}, options);
|
|
65613
|
+
if (!requestRes.ok) {
|
|
65614
|
+
return [requestRes, { status: "invalid" }];
|
|
65615
|
+
}
|
|
65616
|
+
const req = requestRes.value;
|
|
65617
|
+
const doResult = await client._do(req, {
|
|
65618
|
+
context,
|
|
65619
|
+
errorCodes: [
|
|
65620
|
+
"400",
|
|
65621
|
+
"401",
|
|
65622
|
+
"403",
|
|
65623
|
+
"404",
|
|
65624
|
+
"409",
|
|
65625
|
+
"422",
|
|
65626
|
+
"429",
|
|
65627
|
+
"4XX",
|
|
65628
|
+
"500",
|
|
65629
|
+
"504",
|
|
65630
|
+
"5XX"
|
|
65631
|
+
],
|
|
65632
|
+
retryConfig: context.retryConfig,
|
|
65633
|
+
retryCodes: context.retryCodes
|
|
65634
|
+
});
|
|
65635
|
+
if (!doResult.ok) {
|
|
65636
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65637
|
+
}
|
|
65638
|
+
const response = doResult.value;
|
|
65639
|
+
const responseFields = {
|
|
65640
|
+
HttpMeta: { Response: response, Request: req }
|
|
65641
|
+
};
|
|
65642
|
+
const [result] = await match(json(200, CreateReceiptsResponse$inboundSchema, {
|
|
65643
|
+
hdrs: true,
|
|
65644
|
+
key: "Result"
|
|
65645
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ReceiptValidationError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
65646
|
+
if (!result.ok) {
|
|
65647
|
+
return [result, { status: "complete", request: req, response }];
|
|
65648
|
+
}
|
|
65649
|
+
return [result, { status: "complete", request: req, response }];
|
|
65650
|
+
}
|
|
65651
|
+
var init_receiptsCreate = __esm(() => {
|
|
65652
|
+
init_lib();
|
|
65653
|
+
init_encodings();
|
|
65654
|
+
init_matchers();
|
|
65655
|
+
init_primitives();
|
|
65656
|
+
init_schemas();
|
|
65657
|
+
init_security();
|
|
65658
|
+
init_url();
|
|
65659
|
+
init_components();
|
|
65660
|
+
init_errors();
|
|
65661
|
+
init_operations();
|
|
65662
|
+
init_async();
|
|
65663
|
+
});
|
|
65664
|
+
|
|
65665
|
+
// src/mcp-server/tools/receiptsCreate.ts
|
|
65666
|
+
var args92, tool$receiptsCreate;
|
|
65667
|
+
var init_receiptsCreate2 = __esm(() => {
|
|
65668
|
+
init_lib();
|
|
65669
|
+
init_receiptsCreate();
|
|
65670
|
+
init_components();
|
|
65671
|
+
init_tools();
|
|
65672
|
+
args92 = {
|
|
65673
|
+
request: arrayType(ReceiptRequest$inboundSchema)
|
|
65674
|
+
};
|
|
65675
|
+
tool$receiptsCreate = {
|
|
65676
|
+
name: "receipts_create",
|
|
65677
|
+
description: ` Create receipts for transfers and scheduled transfers.
|
|
65678
|
+
|
|
65679
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65680
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
65681
|
+
args: args92,
|
|
65682
|
+
tool: async (client, args93, ctx) => {
|
|
65683
|
+
const [result, apiCall] = await receiptsCreate(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65684
|
+
if (!result.ok) {
|
|
65685
|
+
return {
|
|
65686
|
+
content: [{ type: "text", text: result.error.message }],
|
|
65687
|
+
isError: true
|
|
65688
|
+
};
|
|
65689
|
+
}
|
|
65690
|
+
const value = result.value.result;
|
|
65691
|
+
return formatResult(value, apiCall);
|
|
65692
|
+
}
|
|
65693
|
+
};
|
|
65694
|
+
});
|
|
65695
|
+
|
|
65696
|
+
// src/funcs/receiptsList.ts
|
|
65697
|
+
function receiptsList(client, request, options) {
|
|
65698
|
+
return new APIPromise($do93(client, request, options));
|
|
65699
|
+
}
|
|
65700
|
+
async function $do93(client, request, options) {
|
|
65701
|
+
const parsed = safeParse(request, (value) => ListReceiptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65702
|
+
if (!parsed.ok) {
|
|
65703
|
+
return [parsed, { status: "invalid" }];
|
|
65704
|
+
}
|
|
65705
|
+
const payload = parsed.value;
|
|
65706
|
+
const body = null;
|
|
65707
|
+
const path = pathToFunc("/receipts")();
|
|
65708
|
+
const query = encodeFormQuery({
|
|
65709
|
+
id: payload.id
|
|
65710
|
+
}, { explode: false });
|
|
65711
|
+
const headers = new Headers(compactMap({
|
|
65712
|
+
Accept: "application/json",
|
|
65713
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
65714
|
+
}));
|
|
65715
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65716
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65717
|
+
const context = {
|
|
65718
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65719
|
+
operationID: "listReceipts",
|
|
65720
|
+
oAuth2Scopes: [],
|
|
65721
|
+
resolvedSecurity: requestSecurity,
|
|
65722
|
+
securitySource: client._options.security,
|
|
65723
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
65724
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
65725
|
+
};
|
|
65726
|
+
const requestRes = client._createRequest(context, {
|
|
65727
|
+
security: requestSecurity,
|
|
65728
|
+
method: "GET",
|
|
65729
|
+
baseURL: options?.serverURL,
|
|
65730
|
+
path,
|
|
65731
|
+
headers,
|
|
65732
|
+
query,
|
|
65733
|
+
body,
|
|
65734
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65735
|
+
}, options);
|
|
65736
|
+
if (!requestRes.ok) {
|
|
65737
|
+
return [requestRes, { status: "invalid" }];
|
|
65738
|
+
}
|
|
65739
|
+
const req = requestRes.value;
|
|
65740
|
+
const doResult = await client._do(req, {
|
|
65741
|
+
context,
|
|
65742
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
65743
|
+
retryConfig: context.retryConfig,
|
|
65744
|
+
retryCodes: context.retryCodes
|
|
65745
|
+
});
|
|
65746
|
+
if (!doResult.ok) {
|
|
65747
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65748
|
+
}
|
|
65749
|
+
const response = doResult.value;
|
|
65750
|
+
const responseFields = {
|
|
65751
|
+
HttpMeta: { Response: response, Request: req }
|
|
65752
|
+
};
|
|
65753
|
+
const [result] = await match(json(200, ListReceiptsResponse$inboundSchema, {
|
|
65754
|
+
hdrs: true,
|
|
65755
|
+
key: "Result"
|
|
65756
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
65757
|
+
if (!result.ok) {
|
|
65758
|
+
return [result, { status: "complete", request: req, response }];
|
|
65759
|
+
}
|
|
65760
|
+
return [result, { status: "complete", request: req, response }];
|
|
65761
|
+
}
|
|
65762
|
+
var init_receiptsList = __esm(() => {
|
|
65763
|
+
init_encodings();
|
|
65764
|
+
init_matchers();
|
|
65765
|
+
init_primitives();
|
|
65766
|
+
init_schemas();
|
|
65767
|
+
init_security();
|
|
65768
|
+
init_url();
|
|
65769
|
+
init_operations();
|
|
65770
|
+
init_async();
|
|
65771
|
+
});
|
|
65772
|
+
|
|
65773
|
+
// src/mcp-server/tools/receiptsList.ts
|
|
65774
|
+
var args93, tool$receiptsList;
|
|
65775
|
+
var init_receiptsList2 = __esm(() => {
|
|
65776
|
+
init_receiptsList();
|
|
65777
|
+
init_operations();
|
|
65778
|
+
init_tools();
|
|
65779
|
+
args93 = {
|
|
65780
|
+
request: ListReceiptsRequest$inboundSchema
|
|
65781
|
+
};
|
|
65782
|
+
tool$receiptsList = {
|
|
65783
|
+
name: "receipts_list",
|
|
65784
|
+
description: `List receipts by trasnferID, scheduleID, or occurrenceID.
|
|
65785
|
+
|
|
65786
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65787
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
65788
|
+
args: args93,
|
|
65789
|
+
tool: async (client, args94, ctx) => {
|
|
65790
|
+
const [result, apiCall] = await receiptsList(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65791
|
+
if (!result.ok) {
|
|
65792
|
+
return {
|
|
65793
|
+
content: [{ type: "text", text: result.error.message }],
|
|
65794
|
+
isError: true
|
|
65795
|
+
};
|
|
65796
|
+
}
|
|
65797
|
+
const value = result.value.result;
|
|
65798
|
+
return formatResult(value, apiCall);
|
|
65799
|
+
}
|
|
65800
|
+
};
|
|
65801
|
+
});
|
|
65802
|
+
|
|
65803
|
+
// src/funcs/representativesCreate.ts
|
|
65804
|
+
function representativesCreate(client, request, options) {
|
|
65805
|
+
return new APIPromise($do94(client, request, options));
|
|
65806
|
+
}
|
|
65807
|
+
async function $do94(client, request, options) {
|
|
65183
65808
|
const parsed = safeParse(request, (value) => CreateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65184
65809
|
if (!parsed.ok) {
|
|
65185
65810
|
return [parsed, { status: "invalid" }];
|
|
@@ -65273,12 +65898,12 @@ var init_representativesCreate = __esm(() => {
|
|
|
65273
65898
|
});
|
|
65274
65899
|
|
|
65275
65900
|
// src/mcp-server/tools/representativesCreate.ts
|
|
65276
|
-
var
|
|
65901
|
+
var args94, tool$representativesCreate;
|
|
65277
65902
|
var init_representativesCreate2 = __esm(() => {
|
|
65278
65903
|
init_representativesCreate();
|
|
65279
65904
|
init_operations();
|
|
65280
65905
|
init_tools();
|
|
65281
|
-
|
|
65906
|
+
args94 = {
|
|
65282
65907
|
request: CreateRepresentativeRequest$inboundSchema
|
|
65283
65908
|
};
|
|
65284
65909
|
tool$representativesCreate = {
|
|
@@ -65289,9 +65914,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
65289
65914
|
|
|
65290
65915
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65291
65916
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
65292
|
-
args:
|
|
65293
|
-
tool: async (client,
|
|
65294
|
-
const [result, apiCall] = await representativesCreate(client,
|
|
65917
|
+
args: args94,
|
|
65918
|
+
tool: async (client, args95, ctx) => {
|
|
65919
|
+
const [result, apiCall] = await representativesCreate(client, args95.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65295
65920
|
if (!result.ok) {
|
|
65296
65921
|
return {
|
|
65297
65922
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65306,9 +65931,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
65306
65931
|
|
|
65307
65932
|
// src/funcs/representativesDelete.ts
|
|
65308
65933
|
function representativesDelete(client, request, options) {
|
|
65309
|
-
return new APIPromise($
|
|
65934
|
+
return new APIPromise($do95(client, request, options));
|
|
65310
65935
|
}
|
|
65311
|
-
async function $
|
|
65936
|
+
async function $do95(client, request, options) {
|
|
65312
65937
|
const parsed = safeParse(request, (value) => DeleteRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65313
65938
|
if (!parsed.ok) {
|
|
65314
65939
|
return [parsed, { status: "invalid" }];
|
|
@@ -65394,12 +66019,12 @@ var init_representativesDelete = __esm(() => {
|
|
|
65394
66019
|
});
|
|
65395
66020
|
|
|
65396
66021
|
// src/mcp-server/tools/representativesDelete.ts
|
|
65397
|
-
var
|
|
66022
|
+
var args95, tool$representativesDelete;
|
|
65398
66023
|
var init_representativesDelete2 = __esm(() => {
|
|
65399
66024
|
init_representativesDelete();
|
|
65400
66025
|
init_operations();
|
|
65401
66026
|
init_tools();
|
|
65402
|
-
|
|
66027
|
+
args95 = {
|
|
65403
66028
|
request: DeleteRepresentativeRequest$inboundSchema
|
|
65404
66029
|
};
|
|
65405
66030
|
tool$representativesDelete = {
|
|
@@ -65408,9 +66033,9 @@ var init_representativesDelete2 = __esm(() => {
|
|
|
65408
66033
|
|
|
65409
66034
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65410
66035
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
65411
|
-
args:
|
|
65412
|
-
tool: async (client,
|
|
65413
|
-
const [result, apiCall] = await representativesDelete(client,
|
|
66036
|
+
args: args95,
|
|
66037
|
+
tool: async (client, args96, ctx) => {
|
|
66038
|
+
const [result, apiCall] = await representativesDelete(client, args96.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65414
66039
|
if (!result.ok) {
|
|
65415
66040
|
return {
|
|
65416
66041
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65424,9 +66049,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
65424
66049
|
|
|
65425
66050
|
// src/funcs/representativesGet.ts
|
|
65426
66051
|
function representativesGet(client, request, options) {
|
|
65427
|
-
return new APIPromise($
|
|
66052
|
+
return new APIPromise($do96(client, request, options));
|
|
65428
66053
|
}
|
|
65429
|
-
async function $
|
|
66054
|
+
async function $do96(client, request, options) {
|
|
65430
66055
|
const parsed = safeParse(request, (value) => GetRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65431
66056
|
if (!parsed.ok) {
|
|
65432
66057
|
return [parsed, { status: "invalid" }];
|
|
@@ -65503,12 +66128,12 @@ var init_representativesGet = __esm(() => {
|
|
|
65503
66128
|
});
|
|
65504
66129
|
|
|
65505
66130
|
// src/mcp-server/tools/representativesGet.ts
|
|
65506
|
-
var
|
|
66131
|
+
var args96, tool$representativesGet;
|
|
65507
66132
|
var init_representativesGet2 = __esm(() => {
|
|
65508
66133
|
init_representativesGet();
|
|
65509
66134
|
init_operations();
|
|
65510
66135
|
init_tools();
|
|
65511
|
-
|
|
66136
|
+
args96 = {
|
|
65512
66137
|
request: GetRepresentativeRequest$inboundSchema
|
|
65513
66138
|
};
|
|
65514
66139
|
tool$representativesGet = {
|
|
@@ -65517,9 +66142,9 @@ var init_representativesGet2 = __esm(() => {
|
|
|
65517
66142
|
|
|
65518
66143
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65519
66144
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
65520
|
-
args:
|
|
65521
|
-
tool: async (client,
|
|
65522
|
-
const [result, apiCall] = await representativesGet(client,
|
|
66145
|
+
args: args96,
|
|
66146
|
+
tool: async (client, args97, ctx) => {
|
|
66147
|
+
const [result, apiCall] = await representativesGet(client, args97.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65523
66148
|
if (!result.ok) {
|
|
65524
66149
|
return {
|
|
65525
66150
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65534,9 +66159,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
65534
66159
|
|
|
65535
66160
|
// src/funcs/representativesList.ts
|
|
65536
66161
|
function representativesList(client, request, options) {
|
|
65537
|
-
return new APIPromise($
|
|
66162
|
+
return new APIPromise($do97(client, request, options));
|
|
65538
66163
|
}
|
|
65539
|
-
async function $
|
|
66164
|
+
async function $do97(client, request, options) {
|
|
65540
66165
|
const parsed = safeParse(request, (value) => ListRepresentativesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65541
66166
|
if (!parsed.ok) {
|
|
65542
66167
|
return [parsed, { status: "invalid" }];
|
|
@@ -65612,12 +66237,12 @@ var init_representativesList = __esm(() => {
|
|
|
65612
66237
|
});
|
|
65613
66238
|
|
|
65614
66239
|
// src/mcp-server/tools/representativesList.ts
|
|
65615
|
-
var
|
|
66240
|
+
var args97, tool$representativesList;
|
|
65616
66241
|
var init_representativesList2 = __esm(() => {
|
|
65617
66242
|
init_representativesList();
|
|
65618
66243
|
init_operations();
|
|
65619
66244
|
init_tools();
|
|
65620
|
-
|
|
66245
|
+
args97 = {
|
|
65621
66246
|
request: ListRepresentativesRequest$inboundSchema
|
|
65622
66247
|
};
|
|
65623
66248
|
tool$representativesList = {
|
|
@@ -65629,9 +66254,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
65629
66254
|
|
|
65630
66255
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65631
66256
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
65632
|
-
args:
|
|
65633
|
-
tool: async (client,
|
|
65634
|
-
const [result, apiCall] = await representativesList(client,
|
|
66257
|
+
args: args97,
|
|
66258
|
+
tool: async (client, args98, ctx) => {
|
|
66259
|
+
const [result, apiCall] = await representativesList(client, args98.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65635
66260
|
if (!result.ok) {
|
|
65636
66261
|
return {
|
|
65637
66262
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65646,9 +66271,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
65646
66271
|
|
|
65647
66272
|
// src/funcs/representativesUpdate.ts
|
|
65648
66273
|
function representativesUpdate(client, request, options) {
|
|
65649
|
-
return new APIPromise($
|
|
66274
|
+
return new APIPromise($do98(client, request, options));
|
|
65650
66275
|
}
|
|
65651
|
-
async function $
|
|
66276
|
+
async function $do98(client, request, options) {
|
|
65652
66277
|
const parsed = safeParse(request, (value) => UpdateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65653
66278
|
if (!parsed.ok) {
|
|
65654
66279
|
return [parsed, { status: "invalid" }];
|
|
@@ -65740,12 +66365,12 @@ var init_representativesUpdate = __esm(() => {
|
|
|
65740
66365
|
});
|
|
65741
66366
|
|
|
65742
66367
|
// src/mcp-server/tools/representativesUpdate.ts
|
|
65743
|
-
var
|
|
66368
|
+
var args98, tool$representativesUpdate;
|
|
65744
66369
|
var init_representativesUpdate2 = __esm(() => {
|
|
65745
66370
|
init_representativesUpdate();
|
|
65746
66371
|
init_operations();
|
|
65747
66372
|
init_tools();
|
|
65748
|
-
|
|
66373
|
+
args98 = {
|
|
65749
66374
|
request: UpdateRepresentativeRequest$inboundSchema
|
|
65750
66375
|
};
|
|
65751
66376
|
tool$representativesUpdate = {
|
|
@@ -65767,9 +66392,9 @@ If you need to update information in a locked state, please contact Moov support
|
|
|
65767
66392
|
|
|
65768
66393
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65769
66394
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
65770
|
-
args:
|
|
65771
|
-
tool: async (client,
|
|
65772
|
-
const [result, apiCall] = await representativesUpdate(client,
|
|
66395
|
+
args: args98,
|
|
66396
|
+
tool: async (client, args99, ctx) => {
|
|
66397
|
+
const [result, apiCall] = await representativesUpdate(client, args99.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65773
66398
|
if (!result.ok) {
|
|
65774
66399
|
return {
|
|
65775
66400
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65784,9 +66409,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
65784
66409
|
|
|
65785
66410
|
// src/funcs/schedulingCancel.ts
|
|
65786
66411
|
function schedulingCancel(client, request, options) {
|
|
65787
|
-
return new APIPromise($
|
|
66412
|
+
return new APIPromise($do99(client, request, options));
|
|
65788
66413
|
}
|
|
65789
|
-
async function $
|
|
66414
|
+
async function $do99(client, request, options) {
|
|
65790
66415
|
const parsed = safeParse(request, (value) => CancelScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65791
66416
|
if (!parsed.ok) {
|
|
65792
66417
|
return [parsed, { status: "invalid" }];
|
|
@@ -65877,12 +66502,12 @@ var init_schedulingCancel = __esm(() => {
|
|
|
65877
66502
|
});
|
|
65878
66503
|
|
|
65879
66504
|
// src/mcp-server/tools/schedulingCancel.ts
|
|
65880
|
-
var
|
|
66505
|
+
var args99, tool$schedulingCancel;
|
|
65881
66506
|
var init_schedulingCancel2 = __esm(() => {
|
|
65882
66507
|
init_schedulingCancel();
|
|
65883
66508
|
init_operations();
|
|
65884
66509
|
init_tools();
|
|
65885
|
-
|
|
66510
|
+
args99 = {
|
|
65886
66511
|
request: CancelScheduleRequest$inboundSchema
|
|
65887
66512
|
};
|
|
65888
66513
|
tool$schedulingCancel = {
|
|
@@ -65891,9 +66516,9 @@ var init_schedulingCancel2 = __esm(() => {
|
|
|
65891
66516
|
|
|
65892
66517
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
65893
66518
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
65894
|
-
args:
|
|
65895
|
-
tool: async (client,
|
|
65896
|
-
const [result, apiCall] = await schedulingCancel(client,
|
|
66519
|
+
args: args99,
|
|
66520
|
+
tool: async (client, args100, ctx) => {
|
|
66521
|
+
const [result, apiCall] = await schedulingCancel(client, args100.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65897
66522
|
if (!result.ok) {
|
|
65898
66523
|
return {
|
|
65899
66524
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65907,9 +66532,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
65907
66532
|
|
|
65908
66533
|
// src/funcs/schedulingCreate.ts
|
|
65909
66534
|
function schedulingCreate(client, request, options) {
|
|
65910
|
-
return new APIPromise($
|
|
66535
|
+
return new APIPromise($do100(client, request, options));
|
|
65911
66536
|
}
|
|
65912
|
-
async function $
|
|
66537
|
+
async function $do100(client, request, options) {
|
|
65913
66538
|
const parsed = safeParse(request, (value) => CreateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65914
66539
|
if (!parsed.ok) {
|
|
65915
66540
|
return [parsed, { status: "invalid" }];
|
|
@@ -66001,12 +66626,12 @@ var init_schedulingCreate = __esm(() => {
|
|
|
66001
66626
|
});
|
|
66002
66627
|
|
|
66003
66628
|
// src/mcp-server/tools/schedulingCreate.ts
|
|
66004
|
-
var
|
|
66629
|
+
var args100, tool$schedulingCreate;
|
|
66005
66630
|
var init_schedulingCreate2 = __esm(() => {
|
|
66006
66631
|
init_schedulingCreate();
|
|
66007
66632
|
init_operations();
|
|
66008
66633
|
init_tools();
|
|
66009
|
-
|
|
66634
|
+
args100 = {
|
|
66010
66635
|
request: CreateScheduleRequest$inboundSchema
|
|
66011
66636
|
};
|
|
66012
66637
|
tool$schedulingCreate = {
|
|
@@ -66015,9 +66640,9 @@ var init_schedulingCreate2 = __esm(() => {
|
|
|
66015
66640
|
|
|
66016
66641
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66017
66642
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
66018
|
-
args:
|
|
66019
|
-
tool: async (client,
|
|
66020
|
-
const [result, apiCall] = await schedulingCreate(client,
|
|
66643
|
+
args: args100,
|
|
66644
|
+
tool: async (client, args101, ctx) => {
|
|
66645
|
+
const [result, apiCall] = await schedulingCreate(client, args101.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66021
66646
|
if (!result.ok) {
|
|
66022
66647
|
return {
|
|
66023
66648
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66032,9 +66657,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
66032
66657
|
|
|
66033
66658
|
// src/funcs/schedulingGet.ts
|
|
66034
66659
|
function schedulingGet(client, request, options) {
|
|
66035
|
-
return new APIPromise($
|
|
66660
|
+
return new APIPromise($do101(client, request, options));
|
|
66036
66661
|
}
|
|
66037
|
-
async function $
|
|
66662
|
+
async function $do101(client, request, options) {
|
|
66038
66663
|
const parsed = safeParse(request, (value) => GetSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66039
66664
|
if (!parsed.ok) {
|
|
66040
66665
|
return [parsed, { status: "invalid" }];
|
|
@@ -66114,12 +66739,12 @@ var init_schedulingGet = __esm(() => {
|
|
|
66114
66739
|
});
|
|
66115
66740
|
|
|
66116
66741
|
// src/mcp-server/tools/schedulingGet.ts
|
|
66117
|
-
var
|
|
66742
|
+
var args101, tool$schedulingGet;
|
|
66118
66743
|
var init_schedulingGet2 = __esm(() => {
|
|
66119
66744
|
init_schedulingGet();
|
|
66120
66745
|
init_operations();
|
|
66121
66746
|
init_tools();
|
|
66122
|
-
|
|
66747
|
+
args101 = {
|
|
66123
66748
|
request: GetSchedulesRequest$inboundSchema
|
|
66124
66749
|
};
|
|
66125
66750
|
tool$schedulingGet = {
|
|
@@ -66128,9 +66753,9 @@ var init_schedulingGet2 = __esm(() => {
|
|
|
66128
66753
|
|
|
66129
66754
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66130
66755
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
66131
|
-
args:
|
|
66132
|
-
tool: async (client,
|
|
66133
|
-
const [result, apiCall] = await schedulingGet(client,
|
|
66756
|
+
args: args101,
|
|
66757
|
+
tool: async (client, args102, ctx) => {
|
|
66758
|
+
const [result, apiCall] = await schedulingGet(client, args102.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66134
66759
|
if (!result.ok) {
|
|
66135
66760
|
return {
|
|
66136
66761
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66145,9 +66770,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
66145
66770
|
|
|
66146
66771
|
// src/funcs/schedulingGetOccurrance.ts
|
|
66147
66772
|
function schedulingGetOccurrance(client, request, options) {
|
|
66148
|
-
return new APIPromise($
|
|
66773
|
+
return new APIPromise($do102(client, request, options));
|
|
66149
66774
|
}
|
|
66150
|
-
async function $
|
|
66775
|
+
async function $do102(client, request, options) {
|
|
66151
66776
|
const parsed = safeParse(request, (value) => GetScheduledOccurrenceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66152
66777
|
if (!parsed.ok) {
|
|
66153
66778
|
return [parsed, { status: "invalid" }];
|
|
@@ -66228,12 +66853,12 @@ var init_schedulingGetOccurrance = __esm(() => {
|
|
|
66228
66853
|
});
|
|
66229
66854
|
|
|
66230
66855
|
// src/mcp-server/tools/schedulingGetOccurrance.ts
|
|
66231
|
-
var
|
|
66856
|
+
var args102, tool$schedulingGetOccurrance;
|
|
66232
66857
|
var init_schedulingGetOccurrance2 = __esm(() => {
|
|
66233
66858
|
init_schedulingGetOccurrance();
|
|
66234
66859
|
init_operations();
|
|
66235
66860
|
init_tools();
|
|
66236
|
-
|
|
66861
|
+
args102 = {
|
|
66237
66862
|
request: GetScheduledOccurrenceRequest$inboundSchema
|
|
66238
66863
|
};
|
|
66239
66864
|
tool$schedulingGetOccurrance = {
|
|
@@ -66242,9 +66867,9 @@ var init_schedulingGetOccurrance2 = __esm(() => {
|
|
|
66242
66867
|
|
|
66243
66868
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66244
66869
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
66245
|
-
args:
|
|
66246
|
-
tool: async (client,
|
|
66247
|
-
const [result, apiCall] = await schedulingGetOccurrance(client,
|
|
66870
|
+
args: args102,
|
|
66871
|
+
tool: async (client, args103, ctx) => {
|
|
66872
|
+
const [result, apiCall] = await schedulingGetOccurrance(client, args103.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66248
66873
|
if (!result.ok) {
|
|
66249
66874
|
return {
|
|
66250
66875
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66259,9 +66884,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
66259
66884
|
|
|
66260
66885
|
// src/funcs/schedulingList.ts
|
|
66261
66886
|
function schedulingList(client, request, options) {
|
|
66262
|
-
return new APIPromise($
|
|
66887
|
+
return new APIPromise($do103(client, request, options));
|
|
66263
66888
|
}
|
|
66264
|
-
async function $
|
|
66889
|
+
async function $do103(client, request, options) {
|
|
66265
66890
|
const parsed = safeParse(request, (value) => ListSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66266
66891
|
if (!parsed.ok) {
|
|
66267
66892
|
return [parsed, { status: "invalid" }];
|
|
@@ -66342,12 +66967,12 @@ var init_schedulingList = __esm(() => {
|
|
|
66342
66967
|
});
|
|
66343
66968
|
|
|
66344
66969
|
// src/mcp-server/tools/schedulingList.ts
|
|
66345
|
-
var
|
|
66970
|
+
var args103, tool$schedulingList;
|
|
66346
66971
|
var init_schedulingList2 = __esm(() => {
|
|
66347
66972
|
init_schedulingList();
|
|
66348
66973
|
init_operations();
|
|
66349
66974
|
init_tools();
|
|
66350
|
-
|
|
66975
|
+
args103 = {
|
|
66351
66976
|
request: ListSchedulesRequest$inboundSchema
|
|
66352
66977
|
};
|
|
66353
66978
|
tool$schedulingList = {
|
|
@@ -66356,9 +66981,9 @@ var init_schedulingList2 = __esm(() => {
|
|
|
66356
66981
|
|
|
66357
66982
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66358
66983
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
66359
|
-
args:
|
|
66360
|
-
tool: async (client,
|
|
66361
|
-
const [result, apiCall] = await schedulingList(client,
|
|
66984
|
+
args: args103,
|
|
66985
|
+
tool: async (client, args104, ctx) => {
|
|
66986
|
+
const [result, apiCall] = await schedulingList(client, args104.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66362
66987
|
if (!result.ok) {
|
|
66363
66988
|
return {
|
|
66364
66989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66373,9 +66998,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
66373
66998
|
|
|
66374
66999
|
// src/funcs/schedulingUpdate.ts
|
|
66375
67000
|
function schedulingUpdate(client, request, options) {
|
|
66376
|
-
return new APIPromise($
|
|
67001
|
+
return new APIPromise($do104(client, request, options));
|
|
66377
67002
|
}
|
|
66378
|
-
async function $
|
|
67003
|
+
async function $do104(client, request, options) {
|
|
66379
67004
|
const parsed = safeParse(request, (value) => UpdateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66380
67005
|
if (!parsed.ok) {
|
|
66381
67006
|
return [parsed, { status: "invalid" }];
|
|
@@ -66471,12 +67096,12 @@ var init_schedulingUpdate = __esm(() => {
|
|
|
66471
67096
|
});
|
|
66472
67097
|
|
|
66473
67098
|
// src/mcp-server/tools/schedulingUpdate.ts
|
|
66474
|
-
var
|
|
67099
|
+
var args104, tool$schedulingUpdate;
|
|
66475
67100
|
var init_schedulingUpdate2 = __esm(() => {
|
|
66476
67101
|
init_schedulingUpdate();
|
|
66477
67102
|
init_operations();
|
|
66478
67103
|
init_tools();
|
|
66479
|
-
|
|
67104
|
+
args104 = {
|
|
66480
67105
|
request: UpdateScheduleRequest$inboundSchema
|
|
66481
67106
|
};
|
|
66482
67107
|
tool$schedulingUpdate = {
|
|
@@ -66485,9 +67110,9 @@ var init_schedulingUpdate2 = __esm(() => {
|
|
|
66485
67110
|
|
|
66486
67111
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66487
67112
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
66488
|
-
args:
|
|
66489
|
-
tool: async (client,
|
|
66490
|
-
const [result, apiCall] = await schedulingUpdate(client,
|
|
67113
|
+
args: args104,
|
|
67114
|
+
tool: async (client, args105, ctx) => {
|
|
67115
|
+
const [result, apiCall] = await schedulingUpdate(client, args105.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66491
67116
|
if (!result.ok) {
|
|
66492
67117
|
return {
|
|
66493
67118
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66502,9 +67127,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
66502
67127
|
|
|
66503
67128
|
// src/funcs/sweepsCreateConfig.ts
|
|
66504
67129
|
function sweepsCreateConfig(client, request, options) {
|
|
66505
|
-
return new APIPromise($
|
|
67130
|
+
return new APIPromise($do105(client, request, options));
|
|
66506
67131
|
}
|
|
66507
|
-
async function $
|
|
67132
|
+
async function $do105(client, request, options) {
|
|
66508
67133
|
const parsed = safeParse(request, (value) => CreateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66509
67134
|
if (!parsed.ok) {
|
|
66510
67135
|
return [parsed, { status: "invalid" }];
|
|
@@ -66594,12 +67219,12 @@ var init_sweepsCreateConfig = __esm(() => {
|
|
|
66594
67219
|
});
|
|
66595
67220
|
|
|
66596
67221
|
// src/mcp-server/tools/sweepsCreateConfig.ts
|
|
66597
|
-
var
|
|
67222
|
+
var args105, tool$sweepsCreateConfig;
|
|
66598
67223
|
var init_sweepsCreateConfig2 = __esm(() => {
|
|
66599
67224
|
init_sweepsCreateConfig();
|
|
66600
67225
|
init_operations();
|
|
66601
67226
|
init_tools();
|
|
66602
|
-
|
|
67227
|
+
args105 = {
|
|
66603
67228
|
request: CreateSweepConfigRequest$inboundSchema
|
|
66604
67229
|
};
|
|
66605
67230
|
tool$sweepsCreateConfig = {
|
|
@@ -66608,9 +67233,9 @@ var init_sweepsCreateConfig2 = __esm(() => {
|
|
|
66608
67233
|
|
|
66609
67234
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66610
67235
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
66611
|
-
args:
|
|
66612
|
-
tool: async (client,
|
|
66613
|
-
const [result, apiCall] = await sweepsCreateConfig(client,
|
|
67236
|
+
args: args105,
|
|
67237
|
+
tool: async (client, args106, ctx) => {
|
|
67238
|
+
const [result, apiCall] = await sweepsCreateConfig(client, args106.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66614
67239
|
if (!result.ok) {
|
|
66615
67240
|
return {
|
|
66616
67241
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66625,9 +67250,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
66625
67250
|
|
|
66626
67251
|
// src/funcs/sweepsGet.ts
|
|
66627
67252
|
function sweepsGet(client, request, options) {
|
|
66628
|
-
return new APIPromise($
|
|
67253
|
+
return new APIPromise($do106(client, request, options));
|
|
66629
67254
|
}
|
|
66630
|
-
async function $
|
|
67255
|
+
async function $do106(client, request, options) {
|
|
66631
67256
|
const parsed = safeParse(request, (value) => GetSweepRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66632
67257
|
if (!parsed.ok) {
|
|
66633
67258
|
return [parsed, { status: "invalid" }];
|
|
@@ -66711,12 +67336,12 @@ var init_sweepsGet = __esm(() => {
|
|
|
66711
67336
|
});
|
|
66712
67337
|
|
|
66713
67338
|
// src/mcp-server/tools/sweepsGet.ts
|
|
66714
|
-
var
|
|
67339
|
+
var args106, tool$sweepsGet;
|
|
66715
67340
|
var init_sweepsGet2 = __esm(() => {
|
|
66716
67341
|
init_sweepsGet();
|
|
66717
67342
|
init_operations();
|
|
66718
67343
|
init_tools();
|
|
66719
|
-
|
|
67344
|
+
args106 = {
|
|
66720
67345
|
request: GetSweepRequest$inboundSchema
|
|
66721
67346
|
};
|
|
66722
67347
|
tool$sweepsGet = {
|
|
@@ -66725,9 +67350,9 @@ var init_sweepsGet2 = __esm(() => {
|
|
|
66725
67350
|
|
|
66726
67351
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66727
67352
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
66728
|
-
args:
|
|
66729
|
-
tool: async (client,
|
|
66730
|
-
const [result, apiCall] = await sweepsGet(client,
|
|
67353
|
+
args: args106,
|
|
67354
|
+
tool: async (client, args107, ctx) => {
|
|
67355
|
+
const [result, apiCall] = await sweepsGet(client, args107.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66731
67356
|
if (!result.ok) {
|
|
66732
67357
|
return {
|
|
66733
67358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66742,9 +67367,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
66742
67367
|
|
|
66743
67368
|
// src/funcs/sweepsGetConfig.ts
|
|
66744
67369
|
function sweepsGetConfig(client, request, options) {
|
|
66745
|
-
return new APIPromise($
|
|
67370
|
+
return new APIPromise($do107(client, request, options));
|
|
66746
67371
|
}
|
|
66747
|
-
async function $
|
|
67372
|
+
async function $do107(client, request, options) {
|
|
66748
67373
|
const parsed = safeParse(request, (value) => GetSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66749
67374
|
if (!parsed.ok) {
|
|
66750
67375
|
return [parsed, { status: "invalid" }];
|
|
@@ -66824,12 +67449,12 @@ var init_sweepsGetConfig = __esm(() => {
|
|
|
66824
67449
|
});
|
|
66825
67450
|
|
|
66826
67451
|
// src/mcp-server/tools/sweepsGetConfig.ts
|
|
66827
|
-
var
|
|
67452
|
+
var args107, tool$sweepsGetConfig;
|
|
66828
67453
|
var init_sweepsGetConfig2 = __esm(() => {
|
|
66829
67454
|
init_sweepsGetConfig();
|
|
66830
67455
|
init_operations();
|
|
66831
67456
|
init_tools();
|
|
66832
|
-
|
|
67457
|
+
args107 = {
|
|
66833
67458
|
request: GetSweepConfigRequest$inboundSchema
|
|
66834
67459
|
};
|
|
66835
67460
|
tool$sweepsGetConfig = {
|
|
@@ -66838,9 +67463,9 @@ var init_sweepsGetConfig2 = __esm(() => {
|
|
|
66838
67463
|
|
|
66839
67464
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66840
67465
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
66841
|
-
args:
|
|
66842
|
-
tool: async (client,
|
|
66843
|
-
const [result, apiCall] = await sweepsGetConfig(client,
|
|
67466
|
+
args: args107,
|
|
67467
|
+
tool: async (client, args108, ctx) => {
|
|
67468
|
+
const [result, apiCall] = await sweepsGetConfig(client, args108.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66844
67469
|
if (!result.ok) {
|
|
66845
67470
|
return {
|
|
66846
67471
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66855,9 +67480,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
66855
67480
|
|
|
66856
67481
|
// src/funcs/sweepsList.ts
|
|
66857
67482
|
function sweepsList(client, request, options) {
|
|
66858
|
-
return new APIPromise($
|
|
67483
|
+
return new APIPromise($do108(client, request, options));
|
|
66859
67484
|
}
|
|
66860
|
-
async function $
|
|
67485
|
+
async function $do108(client, request, options) {
|
|
66861
67486
|
const parsed = safeParse(request, (value) => ListSweepsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66862
67487
|
if (!parsed.ok) {
|
|
66863
67488
|
return [parsed, { status: "invalid" }];
|
|
@@ -66944,12 +67569,12 @@ var init_sweepsList = __esm(() => {
|
|
|
66944
67569
|
});
|
|
66945
67570
|
|
|
66946
67571
|
// src/mcp-server/tools/sweepsList.ts
|
|
66947
|
-
var
|
|
67572
|
+
var args108, tool$sweepsList;
|
|
66948
67573
|
var init_sweepsList2 = __esm(() => {
|
|
66949
67574
|
init_sweepsList();
|
|
66950
67575
|
init_operations();
|
|
66951
67576
|
init_tools();
|
|
66952
|
-
|
|
67577
|
+
args108 = {
|
|
66953
67578
|
request: ListSweepsRequest$inboundSchema
|
|
66954
67579
|
};
|
|
66955
67580
|
tool$sweepsList = {
|
|
@@ -66958,9 +67583,9 @@ var init_sweepsList2 = __esm(() => {
|
|
|
66958
67583
|
|
|
66959
67584
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66960
67585
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
66961
|
-
args:
|
|
66962
|
-
tool: async (client,
|
|
66963
|
-
const [result, apiCall] = await sweepsList(client,
|
|
67586
|
+
args: args108,
|
|
67587
|
+
tool: async (client, args109, ctx) => {
|
|
67588
|
+
const [result, apiCall] = await sweepsList(client, args109.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66964
67589
|
if (!result.ok) {
|
|
66965
67590
|
return {
|
|
66966
67591
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -66975,9 +67600,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
66975
67600
|
|
|
66976
67601
|
// src/funcs/sweepsListConfigs.ts
|
|
66977
67602
|
function sweepsListConfigs(client, request, options) {
|
|
66978
|
-
return new APIPromise($
|
|
67603
|
+
return new APIPromise($do109(client, request, options));
|
|
66979
67604
|
}
|
|
66980
|
-
async function $
|
|
67605
|
+
async function $do109(client, request, options) {
|
|
66981
67606
|
const parsed = safeParse(request, (value) => ListSweepConfigsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66982
67607
|
if (!parsed.ok) {
|
|
66983
67608
|
return [parsed, { status: "invalid" }];
|
|
@@ -67053,12 +67678,12 @@ var init_sweepsListConfigs = __esm(() => {
|
|
|
67053
67678
|
});
|
|
67054
67679
|
|
|
67055
67680
|
// src/mcp-server/tools/sweepsListConfigs.ts
|
|
67056
|
-
var
|
|
67681
|
+
var args109, tool$sweepsListConfigs;
|
|
67057
67682
|
var init_sweepsListConfigs2 = __esm(() => {
|
|
67058
67683
|
init_sweepsListConfigs();
|
|
67059
67684
|
init_operations();
|
|
67060
67685
|
init_tools();
|
|
67061
|
-
|
|
67686
|
+
args109 = {
|
|
67062
67687
|
request: ListSweepConfigsRequest$inboundSchema
|
|
67063
67688
|
};
|
|
67064
67689
|
tool$sweepsListConfigs = {
|
|
@@ -67067,9 +67692,9 @@ var init_sweepsListConfigs2 = __esm(() => {
|
|
|
67067
67692
|
|
|
67068
67693
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67069
67694
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
67070
|
-
args:
|
|
67071
|
-
tool: async (client,
|
|
67072
|
-
const [result, apiCall] = await sweepsListConfigs(client,
|
|
67695
|
+
args: args109,
|
|
67696
|
+
tool: async (client, args110, ctx) => {
|
|
67697
|
+
const [result, apiCall] = await sweepsListConfigs(client, args110.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67073
67698
|
if (!result.ok) {
|
|
67074
67699
|
return {
|
|
67075
67700
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67084,9 +67709,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
67084
67709
|
|
|
67085
67710
|
// src/funcs/sweepsUpdateConfig.ts
|
|
67086
67711
|
function sweepsUpdateConfig(client, request, options) {
|
|
67087
|
-
return new APIPromise($
|
|
67712
|
+
return new APIPromise($do110(client, request, options));
|
|
67088
67713
|
}
|
|
67089
|
-
async function $
|
|
67714
|
+
async function $do110(client, request, options) {
|
|
67090
67715
|
const parsed = safeParse(request, (value) => UpdateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67091
67716
|
if (!parsed.ok) {
|
|
67092
67717
|
return [parsed, { status: "invalid" }];
|
|
@@ -67180,12 +67805,12 @@ var init_sweepsUpdateConfig = __esm(() => {
|
|
|
67180
67805
|
});
|
|
67181
67806
|
|
|
67182
67807
|
// src/mcp-server/tools/sweepsUpdateConfig.ts
|
|
67183
|
-
var
|
|
67808
|
+
var args110, tool$sweepsUpdateConfig;
|
|
67184
67809
|
var init_sweepsUpdateConfig2 = __esm(() => {
|
|
67185
67810
|
init_sweepsUpdateConfig();
|
|
67186
67811
|
init_operations();
|
|
67187
67812
|
init_tools();
|
|
67188
|
-
|
|
67813
|
+
args110 = {
|
|
67189
67814
|
request: UpdateSweepConfigRequest$inboundSchema
|
|
67190
67815
|
};
|
|
67191
67816
|
tool$sweepsUpdateConfig = {
|
|
@@ -67194,9 +67819,9 @@ var init_sweepsUpdateConfig2 = __esm(() => {
|
|
|
67194
67819
|
|
|
67195
67820
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67196
67821
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
67197
|
-
args:
|
|
67198
|
-
tool: async (client,
|
|
67199
|
-
const [result, apiCall] = await sweepsUpdateConfig(client,
|
|
67822
|
+
args: args110,
|
|
67823
|
+
tool: async (client, args111, ctx) => {
|
|
67824
|
+
const [result, apiCall] = await sweepsUpdateConfig(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67200
67825
|
if (!result.ok) {
|
|
67201
67826
|
return {
|
|
67202
67827
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67211,9 +67836,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
67211
67836
|
|
|
67212
67837
|
// src/funcs/terminalApplicationsCreate.ts
|
|
67213
67838
|
function terminalApplicationsCreate(client, request, options) {
|
|
67214
|
-
return new APIPromise($
|
|
67839
|
+
return new APIPromise($do111(client, request, options));
|
|
67215
67840
|
}
|
|
67216
|
-
async function $
|
|
67841
|
+
async function $do111(client, request, options) {
|
|
67217
67842
|
const parsed = safeParse(request, (value) => CreateTerminalApplication$outboundSchema.parse(value), "Input validation failed");
|
|
67218
67843
|
if (!parsed.ok) {
|
|
67219
67844
|
return [parsed, { status: "invalid" }];
|
|
@@ -67300,12 +67925,12 @@ var init_terminalApplicationsCreate = __esm(() => {
|
|
|
67300
67925
|
});
|
|
67301
67926
|
|
|
67302
67927
|
// src/mcp-server/tools/terminalApplicationsCreate.ts
|
|
67303
|
-
var
|
|
67928
|
+
var args111, tool$terminalApplicationsCreate;
|
|
67304
67929
|
var init_terminalApplicationsCreate2 = __esm(() => {
|
|
67305
67930
|
init_terminalApplicationsCreate();
|
|
67306
67931
|
init_components();
|
|
67307
67932
|
init_tools();
|
|
67308
|
-
|
|
67933
|
+
args111 = {
|
|
67309
67934
|
request: CreateTerminalApplication$inboundSchema
|
|
67310
67935
|
};
|
|
67311
67936
|
tool$terminalApplicationsCreate = {
|
|
@@ -67314,9 +67939,9 @@ var init_terminalApplicationsCreate2 = __esm(() => {
|
|
|
67314
67939
|
|
|
67315
67940
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67316
67941
|
you'll need to specify the \`/terminalApplications.write\` scope.`,
|
|
67317
|
-
args:
|
|
67318
|
-
tool: async (client,
|
|
67319
|
-
const [result, apiCall] = await terminalApplicationsCreate(client,
|
|
67942
|
+
args: args111,
|
|
67943
|
+
tool: async (client, args112, ctx) => {
|
|
67944
|
+
const [result, apiCall] = await terminalApplicationsCreate(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67320
67945
|
if (!result.ok) {
|
|
67321
67946
|
return {
|
|
67322
67947
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67331,9 +67956,9 @@ you'll need to specify the \`/terminalApplications.write\` scope.`,
|
|
|
67331
67956
|
|
|
67332
67957
|
// src/funcs/terminalApplicationsDelete.ts
|
|
67333
67958
|
function terminalApplicationsDelete(client, request, options) {
|
|
67334
|
-
return new APIPromise($
|
|
67959
|
+
return new APIPromise($do112(client, request, options));
|
|
67335
67960
|
}
|
|
67336
|
-
async function $
|
|
67961
|
+
async function $do112(client, request, options) {
|
|
67337
67962
|
const parsed = safeParse(request, (value) => DeleteTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67338
67963
|
if (!parsed.ok) {
|
|
67339
67964
|
return [parsed, { status: "invalid" }];
|
|
@@ -67415,12 +68040,12 @@ var init_terminalApplicationsDelete = __esm(() => {
|
|
|
67415
68040
|
});
|
|
67416
68041
|
|
|
67417
68042
|
// src/mcp-server/tools/terminalApplicationsDelete.ts
|
|
67418
|
-
var
|
|
68043
|
+
var args112, tool$terminalApplicationsDelete;
|
|
67419
68044
|
var init_terminalApplicationsDelete2 = __esm(() => {
|
|
67420
68045
|
init_terminalApplicationsDelete();
|
|
67421
68046
|
init_operations();
|
|
67422
68047
|
init_tools();
|
|
67423
|
-
|
|
68048
|
+
args112 = {
|
|
67424
68049
|
request: DeleteTerminalApplicationRequest$inboundSchema
|
|
67425
68050
|
};
|
|
67426
68051
|
tool$terminalApplicationsDelete = {
|
|
@@ -67429,9 +68054,9 @@ var init_terminalApplicationsDelete2 = __esm(() => {
|
|
|
67429
68054
|
|
|
67430
68055
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67431
68056
|
you'll need to specify the \`/terminalApplications.write\` scope.`,
|
|
67432
|
-
args:
|
|
67433
|
-
tool: async (client,
|
|
67434
|
-
const [result, apiCall] = await terminalApplicationsDelete(client,
|
|
68057
|
+
args: args112,
|
|
68058
|
+
tool: async (client, args113, ctx) => {
|
|
68059
|
+
const [result, apiCall] = await terminalApplicationsDelete(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67435
68060
|
if (!result.ok) {
|
|
67436
68061
|
return {
|
|
67437
68062
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67445,9 +68070,9 @@ you'll need to specify the \`/terminalApplications.write\` scope.`,
|
|
|
67445
68070
|
|
|
67446
68071
|
// src/funcs/terminalApplicationsGet.ts
|
|
67447
68072
|
function terminalApplicationsGet(client, request, options) {
|
|
67448
|
-
return new APIPromise($
|
|
68073
|
+
return new APIPromise($do113(client, request, options));
|
|
67449
68074
|
}
|
|
67450
|
-
async function $
|
|
68075
|
+
async function $do113(client, request, options) {
|
|
67451
68076
|
const parsed = safeParse(request, (value) => GetTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67452
68077
|
if (!parsed.ok) {
|
|
67453
68078
|
return [parsed, { status: "invalid" }];
|
|
@@ -67520,12 +68145,12 @@ var init_terminalApplicationsGet = __esm(() => {
|
|
|
67520
68145
|
});
|
|
67521
68146
|
|
|
67522
68147
|
// src/mcp-server/tools/terminalApplicationsGet.ts
|
|
67523
|
-
var
|
|
68148
|
+
var args113, tool$terminalApplicationsGet;
|
|
67524
68149
|
var init_terminalApplicationsGet2 = __esm(() => {
|
|
67525
68150
|
init_terminalApplicationsGet();
|
|
67526
68151
|
init_operations();
|
|
67527
68152
|
init_tools();
|
|
67528
|
-
|
|
68153
|
+
args113 = {
|
|
67529
68154
|
request: GetTerminalApplicationRequest$inboundSchema
|
|
67530
68155
|
};
|
|
67531
68156
|
tool$terminalApplicationsGet = {
|
|
@@ -67534,9 +68159,9 @@ var init_terminalApplicationsGet2 = __esm(() => {
|
|
|
67534
68159
|
|
|
67535
68160
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67536
68161
|
you'll need to specify the \`/terminalApplications.read\` scope.`,
|
|
67537
|
-
args:
|
|
67538
|
-
tool: async (client,
|
|
67539
|
-
const [result, apiCall] = await terminalApplicationsGet(client,
|
|
68162
|
+
args: args113,
|
|
68163
|
+
tool: async (client, args114, ctx) => {
|
|
68164
|
+
const [result, apiCall] = await terminalApplicationsGet(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67540
68165
|
if (!result.ok) {
|
|
67541
68166
|
return {
|
|
67542
68167
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67551,9 +68176,9 @@ you'll need to specify the \`/terminalApplications.read\` scope.`,
|
|
|
67551
68176
|
|
|
67552
68177
|
// src/funcs/terminalApplicationsList.ts
|
|
67553
68178
|
function terminalApplicationsList(client, _request, options) {
|
|
67554
|
-
return new APIPromise($
|
|
68179
|
+
return new APIPromise($do114(client, _request, options));
|
|
67555
68180
|
}
|
|
67556
|
-
async function $
|
|
68181
|
+
async function $do114(client, _request, options) {
|
|
67557
68182
|
const path = pathToFunc("/terminal-applications")();
|
|
67558
68183
|
const headers = new Headers(compactMap({
|
|
67559
68184
|
Accept: "application/json",
|
|
@@ -67615,12 +68240,12 @@ var init_terminalApplicationsList = __esm(() => {
|
|
|
67615
68240
|
});
|
|
67616
68241
|
|
|
67617
68242
|
// src/mcp-server/tools/terminalApplicationsList.ts
|
|
67618
|
-
var
|
|
68243
|
+
var args114, tool$terminalApplicationsList;
|
|
67619
68244
|
var init_terminalApplicationsList2 = __esm(() => {
|
|
67620
68245
|
init_terminalApplicationsList();
|
|
67621
68246
|
init_operations();
|
|
67622
68247
|
init_tools();
|
|
67623
|
-
|
|
68248
|
+
args114 = {
|
|
67624
68249
|
request: ListTerminalApplicationsRequest$inboundSchema
|
|
67625
68250
|
};
|
|
67626
68251
|
tool$terminalApplicationsList = {
|
|
@@ -67629,9 +68254,9 @@ var init_terminalApplicationsList2 = __esm(() => {
|
|
|
67629
68254
|
|
|
67630
68255
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67631
68256
|
you'll need to specify the \`/terminalApplications.read\` scope.`,
|
|
67632
|
-
args:
|
|
67633
|
-
tool: async (client,
|
|
67634
|
-
const [result, apiCall] = await terminalApplicationsList(client,
|
|
68257
|
+
args: args114,
|
|
68258
|
+
tool: async (client, args115, ctx) => {
|
|
68259
|
+
const [result, apiCall] = await terminalApplicationsList(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67635
68260
|
if (!result.ok) {
|
|
67636
68261
|
return {
|
|
67637
68262
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67646,9 +68271,9 @@ you'll need to specify the \`/terminalApplications.read\` scope.`,
|
|
|
67646
68271
|
|
|
67647
68272
|
// src/funcs/transfersCreate.ts
|
|
67648
68273
|
function transfersCreate(client, request, options) {
|
|
67649
|
-
return new APIPromise($
|
|
68274
|
+
return new APIPromise($do115(client, request, options));
|
|
67650
68275
|
}
|
|
67651
|
-
async function $
|
|
68276
|
+
async function $do115(client, request, options) {
|
|
67652
68277
|
const parsed = safeParse(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67653
68278
|
if (!parsed.ok) {
|
|
67654
68279
|
return [parsed, { status: "invalid" }];
|
|
@@ -67739,12 +68364,12 @@ var init_transfersCreate = __esm(() => {
|
|
|
67739
68364
|
});
|
|
67740
68365
|
|
|
67741
68366
|
// src/mcp-server/tools/transfersCreate.ts
|
|
67742
|
-
var
|
|
68367
|
+
var args115, tool$transfersCreate;
|
|
67743
68368
|
var init_transfersCreate2 = __esm(() => {
|
|
67744
68369
|
init_transfersCreate();
|
|
67745
68370
|
init_operations();
|
|
67746
68371
|
init_tools();
|
|
67747
|
-
|
|
68372
|
+
args115 = {
|
|
67748
68373
|
request: CreateTransferRequest$inboundSchema
|
|
67749
68374
|
};
|
|
67750
68375
|
tool$transfersCreate = {
|
|
@@ -67755,9 +68380,123 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
67755
68380
|
|
|
67756
68381
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
67757
68382
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
67758
|
-
args:
|
|
67759
|
-
tool: async (client,
|
|
67760
|
-
const [result, apiCall] = await transfersCreate(client,
|
|
68383
|
+
args: args115,
|
|
68384
|
+
tool: async (client, args116, ctx) => {
|
|
68385
|
+
const [result, apiCall] = await transfersCreate(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68386
|
+
if (!result.ok) {
|
|
68387
|
+
return {
|
|
68388
|
+
content: [{ type: "text", text: result.error.message }],
|
|
68389
|
+
isError: true
|
|
68390
|
+
};
|
|
68391
|
+
}
|
|
68392
|
+
const value = result.value.result;
|
|
68393
|
+
return formatResult(value, apiCall);
|
|
68394
|
+
}
|
|
68395
|
+
};
|
|
68396
|
+
});
|
|
68397
|
+
|
|
68398
|
+
// src/funcs/transfersCreateCancellation.ts
|
|
68399
|
+
function transfersCreateCancellation(client, request, options) {
|
|
68400
|
+
return new APIPromise($do116(client, request, options));
|
|
68401
|
+
}
|
|
68402
|
+
async function $do116(client, request, options) {
|
|
68403
|
+
const parsed = safeParse(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68404
|
+
if (!parsed.ok) {
|
|
68405
|
+
return [parsed, { status: "invalid" }];
|
|
68406
|
+
}
|
|
68407
|
+
const payload = parsed.value;
|
|
68408
|
+
const body = null;
|
|
68409
|
+
const pathParams = {
|
|
68410
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
68411
|
+
explode: false,
|
|
68412
|
+
charEncoding: "percent"
|
|
68413
|
+
}),
|
|
68414
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
68415
|
+
explode: false,
|
|
68416
|
+
charEncoding: "percent"
|
|
68417
|
+
})
|
|
68418
|
+
};
|
|
68419
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
68420
|
+
const headers = new Headers(compactMap({
|
|
68421
|
+
Accept: "application/json",
|
|
68422
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
68423
|
+
}));
|
|
68424
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
68425
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
68426
|
+
const context = {
|
|
68427
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
68428
|
+
operationID: "createCancellation",
|
|
68429
|
+
oAuth2Scopes: [],
|
|
68430
|
+
resolvedSecurity: requestSecurity,
|
|
68431
|
+
securitySource: client._options.security,
|
|
68432
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
68433
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
68434
|
+
};
|
|
68435
|
+
const requestRes = client._createRequest(context, {
|
|
68436
|
+
security: requestSecurity,
|
|
68437
|
+
method: "POST",
|
|
68438
|
+
baseURL: options?.serverURL,
|
|
68439
|
+
path,
|
|
68440
|
+
headers,
|
|
68441
|
+
body,
|
|
68442
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
68443
|
+
}, options);
|
|
68444
|
+
if (!requestRes.ok) {
|
|
68445
|
+
return [requestRes, { status: "invalid" }];
|
|
68446
|
+
}
|
|
68447
|
+
const req = requestRes.value;
|
|
68448
|
+
const doResult = await client._do(req, {
|
|
68449
|
+
context,
|
|
68450
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
68451
|
+
retryConfig: context.retryConfig,
|
|
68452
|
+
retryCodes: context.retryCodes
|
|
68453
|
+
});
|
|
68454
|
+
if (!doResult.ok) {
|
|
68455
|
+
return [doResult, { status: "request-error", request: req }];
|
|
68456
|
+
}
|
|
68457
|
+
const response = doResult.value;
|
|
68458
|
+
const responseFields = {
|
|
68459
|
+
HttpMeta: { Response: response, Request: req }
|
|
68460
|
+
};
|
|
68461
|
+
const [result] = await match(json([200, 202], CreateCancellationResponse$inboundSchema, {
|
|
68462
|
+
hdrs: true,
|
|
68463
|
+
key: "Result"
|
|
68464
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
68465
|
+
if (!result.ok) {
|
|
68466
|
+
return [result, { status: "complete", request: req, response }];
|
|
68467
|
+
}
|
|
68468
|
+
return [result, { status: "complete", request: req, response }];
|
|
68469
|
+
}
|
|
68470
|
+
var init_transfersCreateCancellation = __esm(() => {
|
|
68471
|
+
init_encodings();
|
|
68472
|
+
init_matchers();
|
|
68473
|
+
init_primitives();
|
|
68474
|
+
init_schemas();
|
|
68475
|
+
init_security();
|
|
68476
|
+
init_url();
|
|
68477
|
+
init_errors();
|
|
68478
|
+
init_operations();
|
|
68479
|
+
init_async();
|
|
68480
|
+
});
|
|
68481
|
+
|
|
68482
|
+
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
68483
|
+
var args116, tool$transfersCreateCancellation;
|
|
68484
|
+
var init_transfersCreateCancellation2 = __esm(() => {
|
|
68485
|
+
init_transfersCreateCancellation();
|
|
68486
|
+
init_operations();
|
|
68487
|
+
init_tools();
|
|
68488
|
+
args116 = {
|
|
68489
|
+
request: CreateCancellationRequest$inboundSchema
|
|
68490
|
+
};
|
|
68491
|
+
tool$transfersCreateCancellation = {
|
|
68492
|
+
name: "transfers_create-cancellation",
|
|
68493
|
+
description: ` Initiate a cancellation for a card, ACH, or queued transfer.
|
|
68494
|
+
|
|
68495
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
68496
|
+
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68497
|
+
args: args116,
|
|
68498
|
+
tool: async (client, args117, ctx) => {
|
|
68499
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67761
68500
|
if (!result.ok) {
|
|
67762
68501
|
return {
|
|
67763
68502
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67772,9 +68511,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
67772
68511
|
|
|
67773
68512
|
// src/funcs/transfersCreateReversal.ts
|
|
67774
68513
|
function transfersCreateReversal(client, request, options) {
|
|
67775
|
-
return new APIPromise($
|
|
68514
|
+
return new APIPromise($do117(client, request, options));
|
|
67776
68515
|
}
|
|
67777
|
-
async function $
|
|
68516
|
+
async function $do117(client, request, options) {
|
|
67778
68517
|
const parsed = safeParse(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67779
68518
|
if (!parsed.ok) {
|
|
67780
68519
|
return [parsed, { status: "invalid" }];
|
|
@@ -67871,12 +68610,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
67871
68610
|
});
|
|
67872
68611
|
|
|
67873
68612
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
67874
|
-
var
|
|
68613
|
+
var args117, tool$transfersCreateReversal;
|
|
67875
68614
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
67876
68615
|
init_transfersCreateReversal();
|
|
67877
68616
|
init_operations();
|
|
67878
68617
|
init_tools();
|
|
67879
|
-
|
|
68618
|
+
args117 = {
|
|
67880
68619
|
request: CreateReversalRequest$inboundSchema
|
|
67881
68620
|
};
|
|
67882
68621
|
tool$transfersCreateReversal = {
|
|
@@ -67887,9 +68626,9 @@ to learn more.
|
|
|
67887
68626
|
|
|
67888
68627
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
67889
68628
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
67890
|
-
args:
|
|
67891
|
-
tool: async (client,
|
|
67892
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
68629
|
+
args: args117,
|
|
68630
|
+
tool: async (client, args118, ctx) => {
|
|
68631
|
+
const [result, apiCall] = await transfersCreateReversal(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67893
68632
|
if (!result.ok) {
|
|
67894
68633
|
return {
|
|
67895
68634
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67904,9 +68643,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
67904
68643
|
|
|
67905
68644
|
// src/funcs/transfersGenerateOptions.ts
|
|
67906
68645
|
function transfersGenerateOptions(client, request, options) {
|
|
67907
|
-
return new APIPromise($
|
|
68646
|
+
return new APIPromise($do118(client, request, options));
|
|
67908
68647
|
}
|
|
67909
|
-
async function $
|
|
68648
|
+
async function $do118(client, request, options) {
|
|
67910
68649
|
const parsed = safeParse(request, (value) => CreateTransferOptions$outboundSchema.parse(value), "Input validation failed");
|
|
67911
68650
|
if (!parsed.ok) {
|
|
67912
68651
|
return [parsed, { status: "invalid" }];
|
|
@@ -67981,12 +68720,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
67981
68720
|
});
|
|
67982
68721
|
|
|
67983
68722
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
67984
|
-
var
|
|
68723
|
+
var args118, tool$transfersGenerateOptions;
|
|
67985
68724
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
67986
68725
|
init_transfersGenerateOptions();
|
|
67987
68726
|
init_components();
|
|
67988
68727
|
init_tools();
|
|
67989
|
-
|
|
68728
|
+
args118 = {
|
|
67990
68729
|
request: CreateTransferOptions$inboundSchema
|
|
67991
68730
|
};
|
|
67992
68731
|
tool$transfersGenerateOptions = {
|
|
@@ -67998,9 +68737,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
67998
68737
|
|
|
67999
68738
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68000
68739
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68001
|
-
args:
|
|
68002
|
-
tool: async (client,
|
|
68003
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
68740
|
+
args: args118,
|
|
68741
|
+
tool: async (client, args119, ctx) => {
|
|
68742
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68004
68743
|
if (!result.ok) {
|
|
68005
68744
|
return {
|
|
68006
68745
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68015,9 +68754,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68015
68754
|
|
|
68016
68755
|
// src/funcs/transfersGet.ts
|
|
68017
68756
|
function transfersGet(client, request, options) {
|
|
68018
|
-
return new APIPromise($
|
|
68757
|
+
return new APIPromise($do119(client, request, options));
|
|
68019
68758
|
}
|
|
68020
|
-
async function $
|
|
68759
|
+
async function $do119(client, request, options) {
|
|
68021
68760
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68022
68761
|
if (!parsed.ok) {
|
|
68023
68762
|
return [parsed, { status: "invalid" }];
|
|
@@ -68097,12 +68836,12 @@ var init_transfersGet = __esm(() => {
|
|
|
68097
68836
|
});
|
|
68098
68837
|
|
|
68099
68838
|
// src/mcp-server/tools/transfersGet.ts
|
|
68100
|
-
var
|
|
68839
|
+
var args119, tool$transfersGet;
|
|
68101
68840
|
var init_transfersGet2 = __esm(() => {
|
|
68102
68841
|
init_transfersGet();
|
|
68103
68842
|
init_operations();
|
|
68104
68843
|
init_tools();
|
|
68105
|
-
|
|
68844
|
+
args119 = {
|
|
68106
68845
|
request: GetTransferRequest$inboundSchema
|
|
68107
68846
|
};
|
|
68108
68847
|
tool$transfersGet = {
|
|
@@ -68114,9 +68853,126 @@ to learn more.
|
|
|
68114
68853
|
|
|
68115
68854
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68116
68855
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68117
|
-
args:
|
|
68118
|
-
tool: async (client,
|
|
68119
|
-
const [result, apiCall] = await transfersGet(client,
|
|
68856
|
+
args: args119,
|
|
68857
|
+
tool: async (client, args120, ctx) => {
|
|
68858
|
+
const [result, apiCall] = await transfersGet(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68859
|
+
if (!result.ok) {
|
|
68860
|
+
return {
|
|
68861
|
+
content: [{ type: "text", text: result.error.message }],
|
|
68862
|
+
isError: true
|
|
68863
|
+
};
|
|
68864
|
+
}
|
|
68865
|
+
const value = result.value.result;
|
|
68866
|
+
return formatResult(value, apiCall);
|
|
68867
|
+
}
|
|
68868
|
+
};
|
|
68869
|
+
});
|
|
68870
|
+
|
|
68871
|
+
// src/funcs/transfersGetCancellation.ts
|
|
68872
|
+
function transfersGetCancellation(client, request, options) {
|
|
68873
|
+
return new APIPromise($do120(client, request, options));
|
|
68874
|
+
}
|
|
68875
|
+
async function $do120(client, request, options) {
|
|
68876
|
+
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68877
|
+
if (!parsed.ok) {
|
|
68878
|
+
return [parsed, { status: "invalid" }];
|
|
68879
|
+
}
|
|
68880
|
+
const payload = parsed.value;
|
|
68881
|
+
const body = null;
|
|
68882
|
+
const pathParams = {
|
|
68883
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
68884
|
+
explode: false,
|
|
68885
|
+
charEncoding: "percent"
|
|
68886
|
+
}),
|
|
68887
|
+
cancellationID: encodeSimple("cancellationID", payload.cancellationID, {
|
|
68888
|
+
explode: false,
|
|
68889
|
+
charEncoding: "percent"
|
|
68890
|
+
}),
|
|
68891
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
68892
|
+
explode: false,
|
|
68893
|
+
charEncoding: "percent"
|
|
68894
|
+
})
|
|
68895
|
+
};
|
|
68896
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations/{cancellationID}")(pathParams);
|
|
68897
|
+
const headers = new Headers(compactMap({
|
|
68898
|
+
Accept: "application/json",
|
|
68899
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
68900
|
+
}));
|
|
68901
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
68902
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
68903
|
+
const context = {
|
|
68904
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
68905
|
+
operationID: "getCancellation",
|
|
68906
|
+
oAuth2Scopes: [],
|
|
68907
|
+
resolvedSecurity: requestSecurity,
|
|
68908
|
+
securitySource: client._options.security,
|
|
68909
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
68910
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
68911
|
+
};
|
|
68912
|
+
const requestRes = client._createRequest(context, {
|
|
68913
|
+
security: requestSecurity,
|
|
68914
|
+
method: "GET",
|
|
68915
|
+
baseURL: options?.serverURL,
|
|
68916
|
+
path,
|
|
68917
|
+
headers,
|
|
68918
|
+
body,
|
|
68919
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
68920
|
+
}, options);
|
|
68921
|
+
if (!requestRes.ok) {
|
|
68922
|
+
return [requestRes, { status: "invalid" }];
|
|
68923
|
+
}
|
|
68924
|
+
const req = requestRes.value;
|
|
68925
|
+
const doResult = await client._do(req, {
|
|
68926
|
+
context,
|
|
68927
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
68928
|
+
retryConfig: context.retryConfig,
|
|
68929
|
+
retryCodes: context.retryCodes
|
|
68930
|
+
});
|
|
68931
|
+
if (!doResult.ok) {
|
|
68932
|
+
return [doResult, { status: "request-error", request: req }];
|
|
68933
|
+
}
|
|
68934
|
+
const response = doResult.value;
|
|
68935
|
+
const responseFields = {
|
|
68936
|
+
HttpMeta: { Response: response, Request: req }
|
|
68937
|
+
};
|
|
68938
|
+
const [result] = await match(json(200, GetCancellationResponse$inboundSchema, {
|
|
68939
|
+
hdrs: true,
|
|
68940
|
+
key: "Result"
|
|
68941
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
68942
|
+
if (!result.ok) {
|
|
68943
|
+
return [result, { status: "complete", request: req, response }];
|
|
68944
|
+
}
|
|
68945
|
+
return [result, { status: "complete", request: req, response }];
|
|
68946
|
+
}
|
|
68947
|
+
var init_transfersGetCancellation = __esm(() => {
|
|
68948
|
+
init_encodings();
|
|
68949
|
+
init_matchers();
|
|
68950
|
+
init_primitives();
|
|
68951
|
+
init_schemas();
|
|
68952
|
+
init_security();
|
|
68953
|
+
init_url();
|
|
68954
|
+
init_operations();
|
|
68955
|
+
init_async();
|
|
68956
|
+
});
|
|
68957
|
+
|
|
68958
|
+
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
68959
|
+
var args120, tool$transfersGetCancellation;
|
|
68960
|
+
var init_transfersGetCancellation2 = __esm(() => {
|
|
68961
|
+
init_transfersGetCancellation();
|
|
68962
|
+
init_operations();
|
|
68963
|
+
init_tools();
|
|
68964
|
+
args120 = {
|
|
68965
|
+
request: GetCancellationRequest$inboundSchema
|
|
68966
|
+
};
|
|
68967
|
+
tool$transfersGetCancellation = {
|
|
68968
|
+
name: "transfers_get-cancellation",
|
|
68969
|
+
description: ` Get details of a cancellation for a transfer.
|
|
68970
|
+
|
|
68971
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
68972
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68973
|
+
args: args120,
|
|
68974
|
+
tool: async (client, args121, ctx) => {
|
|
68975
|
+
const [result, apiCall] = await transfersGetCancellation(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68120
68976
|
if (!result.ok) {
|
|
68121
68977
|
return {
|
|
68122
68978
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68131,9 +68987,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68131
68987
|
|
|
68132
68988
|
// src/funcs/transfersGetRefund.ts
|
|
68133
68989
|
function transfersGetRefund(client, request, options) {
|
|
68134
|
-
return new APIPromise($
|
|
68990
|
+
return new APIPromise($do121(client, request, options));
|
|
68135
68991
|
}
|
|
68136
|
-
async function $
|
|
68992
|
+
async function $do121(client, request, options) {
|
|
68137
68993
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68138
68994
|
if (!parsed.ok) {
|
|
68139
68995
|
return [parsed, { status: "invalid" }];
|
|
@@ -68217,12 +69073,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
68217
69073
|
});
|
|
68218
69074
|
|
|
68219
69075
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
68220
|
-
var
|
|
69076
|
+
var args121, tool$transfersGetRefund;
|
|
68221
69077
|
var init_transfersGetRefund2 = __esm(() => {
|
|
68222
69078
|
init_transfersGetRefund();
|
|
68223
69079
|
init_operations();
|
|
68224
69080
|
init_tools();
|
|
68225
|
-
|
|
69081
|
+
args121 = {
|
|
68226
69082
|
request: GetRefundRequest$inboundSchema
|
|
68227
69083
|
};
|
|
68228
69084
|
tool$transfersGetRefund = {
|
|
@@ -68231,9 +69087,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
68231
69087
|
|
|
68232
69088
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68233
69089
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68234
|
-
args:
|
|
68235
|
-
tool: async (client,
|
|
68236
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
69090
|
+
args: args121,
|
|
69091
|
+
tool: async (client, args122, ctx) => {
|
|
69092
|
+
const [result, apiCall] = await transfersGetRefund(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68237
69093
|
if (!result.ok) {
|
|
68238
69094
|
return {
|
|
68239
69095
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68248,9 +69104,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68248
69104
|
|
|
68249
69105
|
// src/funcs/transfersInitiateRefund.ts
|
|
68250
69106
|
function transfersInitiateRefund(client, request, options) {
|
|
68251
|
-
return new APIPromise($
|
|
69107
|
+
return new APIPromise($do122(client, request, options));
|
|
68252
69108
|
}
|
|
68253
|
-
async function $
|
|
69109
|
+
async function $do122(client, request, options) {
|
|
68254
69110
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68255
69111
|
if (!parsed.ok) {
|
|
68256
69112
|
return [parsed, { status: "invalid" }];
|
|
@@ -68340,12 +69196,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
68340
69196
|
});
|
|
68341
69197
|
|
|
68342
69198
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
68343
|
-
var
|
|
69199
|
+
var args122, tool$transfersInitiateRefund;
|
|
68344
69200
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
68345
69201
|
init_transfersInitiateRefund();
|
|
68346
69202
|
init_operations();
|
|
68347
69203
|
init_tools();
|
|
68348
|
-
|
|
69204
|
+
args122 = {
|
|
68349
69205
|
request: InitiateRefundRequest$inboundSchema
|
|
68350
69206
|
};
|
|
68351
69207
|
tool$transfersInitiateRefund = {
|
|
@@ -68357,9 +69213,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
68357
69213
|
|
|
68358
69214
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68359
69215
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68360
|
-
args:
|
|
68361
|
-
tool: async (client,
|
|
68362
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
69216
|
+
args: args122,
|
|
69217
|
+
tool: async (client, args123, ctx) => {
|
|
69218
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68363
69219
|
if (!result.ok) {
|
|
68364
69220
|
return {
|
|
68365
69221
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68374,9 +69230,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
68374
69230
|
|
|
68375
69231
|
// src/funcs/transfersList.ts
|
|
68376
69232
|
function transfersList(client, request, options) {
|
|
68377
|
-
return new APIPromise($
|
|
69233
|
+
return new APIPromise($do123(client, request, options));
|
|
68378
69234
|
}
|
|
68379
|
-
async function $
|
|
69235
|
+
async function $do123(client, request, options) {
|
|
68380
69236
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68381
69237
|
if (!parsed.ok) {
|
|
68382
69238
|
return [parsed, { status: "invalid" }];
|
|
@@ -68464,12 +69320,12 @@ var init_transfersList = __esm(() => {
|
|
|
68464
69320
|
});
|
|
68465
69321
|
|
|
68466
69322
|
// src/mcp-server/tools/transfersList.ts
|
|
68467
|
-
var
|
|
69323
|
+
var args123, tool$transfersList;
|
|
68468
69324
|
var init_transfersList2 = __esm(() => {
|
|
68469
69325
|
init_transfersList();
|
|
68470
69326
|
init_operations();
|
|
68471
69327
|
init_tools();
|
|
68472
|
-
|
|
69328
|
+
args123 = {
|
|
68473
69329
|
request: ListTransfersRequest$inboundSchema
|
|
68474
69330
|
};
|
|
68475
69331
|
tool$transfersList = {
|
|
@@ -68485,9 +69341,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
68485
69341
|
|
|
68486
69342
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68487
69343
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68488
|
-
args:
|
|
68489
|
-
tool: async (client,
|
|
68490
|
-
const [result, apiCall] = await transfersList(client,
|
|
69344
|
+
args: args123,
|
|
69345
|
+
tool: async (client, args124, ctx) => {
|
|
69346
|
+
const [result, apiCall] = await transfersList(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68491
69347
|
if (!result.ok) {
|
|
68492
69348
|
return {
|
|
68493
69349
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68502,9 +69358,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68502
69358
|
|
|
68503
69359
|
// src/funcs/transfersListRefunds.ts
|
|
68504
69360
|
function transfersListRefunds(client, request, options) {
|
|
68505
|
-
return new APIPromise($
|
|
69361
|
+
return new APIPromise($do124(client, request, options));
|
|
68506
69362
|
}
|
|
68507
|
-
async function $
|
|
69363
|
+
async function $do124(client, request, options) {
|
|
68508
69364
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68509
69365
|
if (!parsed.ok) {
|
|
68510
69366
|
return [parsed, { status: "invalid" }];
|
|
@@ -68584,12 +69440,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
68584
69440
|
});
|
|
68585
69441
|
|
|
68586
69442
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
68587
|
-
var
|
|
69443
|
+
var args124, tool$transfersListRefunds;
|
|
68588
69444
|
var init_transfersListRefunds2 = __esm(() => {
|
|
68589
69445
|
init_transfersListRefunds();
|
|
68590
69446
|
init_operations();
|
|
68591
69447
|
init_tools();
|
|
68592
|
-
|
|
69448
|
+
args124 = {
|
|
68593
69449
|
request: ListRefundsRequest$inboundSchema
|
|
68594
69450
|
};
|
|
68595
69451
|
tool$transfersListRefunds = {
|
|
@@ -68598,9 +69454,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
68598
69454
|
|
|
68599
69455
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68600
69456
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
68601
|
-
args:
|
|
68602
|
-
tool: async (client,
|
|
68603
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
69457
|
+
args: args124,
|
|
69458
|
+
tool: async (client, args125, ctx) => {
|
|
69459
|
+
const [result, apiCall] = await transfersListRefunds(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68604
69460
|
if (!result.ok) {
|
|
68605
69461
|
return {
|
|
68606
69462
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68615,9 +69471,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
68615
69471
|
|
|
68616
69472
|
// src/funcs/transfersUpdate.ts
|
|
68617
69473
|
function transfersUpdate(client, request, options) {
|
|
68618
|
-
return new APIPromise($
|
|
69474
|
+
return new APIPromise($do125(client, request, options));
|
|
68619
69475
|
}
|
|
68620
|
-
async function $
|
|
69476
|
+
async function $do125(client, request, options) {
|
|
68621
69477
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68622
69478
|
if (!parsed.ok) {
|
|
68623
69479
|
return [parsed, { status: "invalid" }];
|
|
@@ -68698,12 +69554,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
68698
69554
|
});
|
|
68699
69555
|
|
|
68700
69556
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
68701
|
-
var
|
|
69557
|
+
var args125, tool$transfersUpdate;
|
|
68702
69558
|
var init_transfersUpdate2 = __esm(() => {
|
|
68703
69559
|
init_transfersUpdate();
|
|
68704
69560
|
init_operations();
|
|
68705
69561
|
init_tools();
|
|
68706
|
-
|
|
69562
|
+
args125 = {
|
|
68707
69563
|
request: UpdateTransferRequest$inboundSchema
|
|
68708
69564
|
};
|
|
68709
69565
|
tool$transfersUpdate = {
|
|
@@ -68714,9 +69570,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
68714
69570
|
|
|
68715
69571
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68716
69572
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
68717
|
-
args:
|
|
68718
|
-
tool: async (client,
|
|
68719
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
69573
|
+
args: args125,
|
|
69574
|
+
tool: async (client, args126, ctx) => {
|
|
69575
|
+
const [result, apiCall] = await transfersUpdate(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68720
69576
|
if (!result.ok) {
|
|
68721
69577
|
return {
|
|
68722
69578
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68731,9 +69587,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
68731
69587
|
|
|
68732
69588
|
// src/funcs/underwritingGet.ts
|
|
68733
69589
|
function underwritingGet(client, request, options) {
|
|
68734
|
-
return new APIPromise($
|
|
69590
|
+
return new APIPromise($do126(client, request, options));
|
|
68735
69591
|
}
|
|
68736
|
-
async function $
|
|
69592
|
+
async function $do126(client, request, options) {
|
|
68737
69593
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68738
69594
|
if (!parsed.ok) {
|
|
68739
69595
|
return [parsed, { status: "invalid" }];
|
|
@@ -68809,12 +69665,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
68809
69665
|
});
|
|
68810
69666
|
|
|
68811
69667
|
// src/mcp-server/tools/underwritingGet.ts
|
|
68812
|
-
var
|
|
69668
|
+
var args126, tool$underwritingGet;
|
|
68813
69669
|
var init_underwritingGet2 = __esm(() => {
|
|
68814
69670
|
init_underwritingGet();
|
|
68815
69671
|
init_operations();
|
|
68816
69672
|
init_tools();
|
|
68817
|
-
|
|
69673
|
+
args126 = {
|
|
68818
69674
|
request: GetUnderwritingRequest$inboundSchema
|
|
68819
69675
|
};
|
|
68820
69676
|
tool$underwritingGet = {
|
|
@@ -68825,9 +69681,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
68825
69681
|
|
|
68826
69682
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68827
69683
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
68828
|
-
args:
|
|
68829
|
-
tool: async (client,
|
|
68830
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
69684
|
+
args: args126,
|
|
69685
|
+
tool: async (client, args127, ctx) => {
|
|
69686
|
+
const [result, apiCall] = await underwritingGet(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68831
69687
|
if (!result.ok) {
|
|
68832
69688
|
return {
|
|
68833
69689
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68842,9 +69698,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
68842
69698
|
|
|
68843
69699
|
// src/funcs/underwritingUpsert.ts
|
|
68844
69700
|
function underwritingUpsert(client, request, options) {
|
|
68845
|
-
return new APIPromise($
|
|
69701
|
+
return new APIPromise($do127(client, request, options));
|
|
68846
69702
|
}
|
|
68847
|
-
async function $
|
|
69703
|
+
async function $do127(client, request, options) {
|
|
68848
69704
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68849
69705
|
if (!parsed.ok) {
|
|
68850
69706
|
return [parsed, { status: "invalid" }];
|
|
@@ -68938,12 +69794,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
68938
69794
|
});
|
|
68939
69795
|
|
|
68940
69796
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
68941
|
-
var
|
|
69797
|
+
var args127, tool$underwritingUpsert;
|
|
68942
69798
|
var init_underwritingUpsert2 = __esm(() => {
|
|
68943
69799
|
init_underwritingUpsert();
|
|
68944
69800
|
init_operations();
|
|
68945
69801
|
init_tools();
|
|
68946
|
-
|
|
69802
|
+
args127 = {
|
|
68947
69803
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
68948
69804
|
};
|
|
68949
69805
|
tool$underwritingUpsert = {
|
|
@@ -68954,9 +69810,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
68954
69810
|
|
|
68955
69811
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
68956
69812
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
68957
|
-
args:
|
|
68958
|
-
tool: async (client,
|
|
68959
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
69813
|
+
args: args127,
|
|
69814
|
+
tool: async (client, args128, ctx) => {
|
|
69815
|
+
const [result, apiCall] = await underwritingUpsert(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68960
69816
|
if (!result.ok) {
|
|
68961
69817
|
return {
|
|
68962
69818
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68971,9 +69827,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
68971
69827
|
|
|
68972
69828
|
// src/funcs/walletsGet.ts
|
|
68973
69829
|
function walletsGet(client, request, options) {
|
|
68974
|
-
return new APIPromise($
|
|
69830
|
+
return new APIPromise($do128(client, request, options));
|
|
68975
69831
|
}
|
|
68976
|
-
async function $
|
|
69832
|
+
async function $do128(client, request, options) {
|
|
68977
69833
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68978
69834
|
if (!parsed.ok) {
|
|
68979
69835
|
return [parsed, { status: "invalid" }];
|
|
@@ -69053,12 +69909,12 @@ var init_walletsGet = __esm(() => {
|
|
|
69053
69909
|
});
|
|
69054
69910
|
|
|
69055
69911
|
// src/mcp-server/tools/walletsGet.ts
|
|
69056
|
-
var
|
|
69912
|
+
var args128, tool$walletsGet;
|
|
69057
69913
|
var init_walletsGet2 = __esm(() => {
|
|
69058
69914
|
init_walletsGet();
|
|
69059
69915
|
init_operations();
|
|
69060
69916
|
init_tools();
|
|
69061
|
-
|
|
69917
|
+
args128 = {
|
|
69062
69918
|
request: GetWalletRequest$inboundSchema
|
|
69063
69919
|
};
|
|
69064
69920
|
tool$walletsGet = {
|
|
@@ -69069,9 +69925,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
69069
69925
|
|
|
69070
69926
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69071
69927
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69072
|
-
args:
|
|
69073
|
-
tool: async (client,
|
|
69074
|
-
const [result, apiCall] = await walletsGet(client,
|
|
69928
|
+
args: args128,
|
|
69929
|
+
tool: async (client, args129, ctx) => {
|
|
69930
|
+
const [result, apiCall] = await walletsGet(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69075
69931
|
if (!result.ok) {
|
|
69076
69932
|
return {
|
|
69077
69933
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69086,9 +69942,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69086
69942
|
|
|
69087
69943
|
// src/funcs/walletsList.ts
|
|
69088
69944
|
function walletsList(client, request, options) {
|
|
69089
|
-
return new APIPromise($
|
|
69945
|
+
return new APIPromise($do129(client, request, options));
|
|
69090
69946
|
}
|
|
69091
|
-
async function $
|
|
69947
|
+
async function $do129(client, request, options) {
|
|
69092
69948
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69093
69949
|
if (!parsed.ok) {
|
|
69094
69950
|
return [parsed, { status: "invalid" }];
|
|
@@ -69164,12 +70020,12 @@ var init_walletsList = __esm(() => {
|
|
|
69164
70020
|
});
|
|
69165
70021
|
|
|
69166
70022
|
// src/mcp-server/tools/walletsList.ts
|
|
69167
|
-
var
|
|
70023
|
+
var args129, tool$walletsList;
|
|
69168
70024
|
var init_walletsList2 = __esm(() => {
|
|
69169
70025
|
init_walletsList();
|
|
69170
70026
|
init_operations();
|
|
69171
70027
|
init_tools();
|
|
69172
|
-
|
|
70028
|
+
args129 = {
|
|
69173
70029
|
request: ListWalletsRequest$inboundSchema
|
|
69174
70030
|
};
|
|
69175
70031
|
tool$walletsList = {
|
|
@@ -69180,9 +70036,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
69180
70036
|
|
|
69181
70037
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69182
70038
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69183
|
-
args:
|
|
69184
|
-
tool: async (client,
|
|
69185
|
-
const [result, apiCall] = await walletsList(client,
|
|
70039
|
+
args: args129,
|
|
70040
|
+
tool: async (client, args130, ctx) => {
|
|
70041
|
+
const [result, apiCall] = await walletsList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69186
70042
|
if (!result.ok) {
|
|
69187
70043
|
return {
|
|
69188
70044
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69197,9 +70053,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69197
70053
|
|
|
69198
70054
|
// src/funcs/walletTransactionsGet.ts
|
|
69199
70055
|
function walletTransactionsGet(client, request, options) {
|
|
69200
|
-
return new APIPromise($
|
|
70056
|
+
return new APIPromise($do130(client, request, options));
|
|
69201
70057
|
}
|
|
69202
|
-
async function $
|
|
70058
|
+
async function $do130(client, request, options) {
|
|
69203
70059
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69204
70060
|
if (!parsed.ok) {
|
|
69205
70061
|
return [parsed, { status: "invalid" }];
|
|
@@ -69283,12 +70139,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
69283
70139
|
});
|
|
69284
70140
|
|
|
69285
70141
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
69286
|
-
var
|
|
70142
|
+
var args130, tool$walletTransactionsGet;
|
|
69287
70143
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
69288
70144
|
init_walletTransactionsGet();
|
|
69289
70145
|
init_operations();
|
|
69290
70146
|
init_tools();
|
|
69291
|
-
|
|
70147
|
+
args130 = {
|
|
69292
70148
|
request: GetWalletTransactionRequest$inboundSchema
|
|
69293
70149
|
};
|
|
69294
70150
|
tool$walletTransactionsGet = {
|
|
@@ -69299,9 +70155,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
69299
70155
|
|
|
69300
70156
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69301
70157
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69302
|
-
args:
|
|
69303
|
-
tool: async (client,
|
|
69304
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
70158
|
+
args: args130,
|
|
70159
|
+
tool: async (client, args131, ctx) => {
|
|
70160
|
+
const [result, apiCall] = await walletTransactionsGet(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69305
70161
|
if (!result.ok) {
|
|
69306
70162
|
return {
|
|
69307
70163
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69316,9 +70172,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69316
70172
|
|
|
69317
70173
|
// src/funcs/walletTransactionsList.ts
|
|
69318
70174
|
function walletTransactionsList(client, request, options) {
|
|
69319
|
-
return new APIPromise($
|
|
70175
|
+
return new APIPromise($do131(client, request, options));
|
|
69320
70176
|
}
|
|
69321
|
-
async function $
|
|
70177
|
+
async function $do131(client, request, options) {
|
|
69322
70178
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69323
70179
|
if (!parsed.ok) {
|
|
69324
70180
|
return [parsed, { status: "invalid" }];
|
|
@@ -69413,12 +70269,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
69413
70269
|
});
|
|
69414
70270
|
|
|
69415
70271
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
69416
|
-
var
|
|
70272
|
+
var args131, tool$walletTransactionsList;
|
|
69417
70273
|
var init_walletTransactionsList2 = __esm(() => {
|
|
69418
70274
|
init_walletTransactionsList();
|
|
69419
70275
|
init_operations();
|
|
69420
70276
|
init_tools();
|
|
69421
|
-
|
|
70277
|
+
args131 = {
|
|
69422
70278
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
69423
70279
|
};
|
|
69424
70280
|
tool$walletTransactionsList = {
|
|
@@ -69429,9 +70285,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
69429
70285
|
|
|
69430
70286
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69431
70287
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
69432
|
-
args:
|
|
69433
|
-
tool: async (client,
|
|
69434
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
70288
|
+
args: args131,
|
|
70289
|
+
tool: async (client, args132, ctx) => {
|
|
70290
|
+
const [result, apiCall] = await walletTransactionsList(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69435
70291
|
if (!result.ok) {
|
|
69436
70292
|
return {
|
|
69437
70293
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69448,7 +70304,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
69448
70304
|
function createMCPServer(deps) {
|
|
69449
70305
|
const server = new McpServer({
|
|
69450
70306
|
name: "Moov",
|
|
69451
|
-
version: "0.6.
|
|
70307
|
+
version: "0.6.2"
|
|
69452
70308
|
});
|
|
69453
70309
|
const client = new MoovCore({
|
|
69454
70310
|
security: deps.security,
|
|
@@ -69547,6 +70403,8 @@ function createMCPServer(deps) {
|
|
|
69547
70403
|
tool(tool$transfersList);
|
|
69548
70404
|
tool(tool$transfersGet);
|
|
69549
70405
|
tool(tool$transfersUpdate);
|
|
70406
|
+
tool(tool$transfersCreateCancellation);
|
|
70407
|
+
tool(tool$transfersGetCancellation);
|
|
69550
70408
|
tool(tool$transfersInitiateRefund);
|
|
69551
70409
|
tool(tool$transfersListRefunds);
|
|
69552
70410
|
tool(tool$transfersGetRefund);
|
|
@@ -69582,6 +70440,8 @@ function createMCPServer(deps) {
|
|
|
69582
70440
|
tool(tool$onboardingGetInvite);
|
|
69583
70441
|
tool(tool$onboardingRevokeInvite);
|
|
69584
70442
|
tool(tool$pingPing);
|
|
70443
|
+
tool(tool$receiptsCreate);
|
|
70444
|
+
tool(tool$receiptsList);
|
|
69585
70445
|
tool(tool$terminalApplicationsCreate);
|
|
69586
70446
|
tool(tool$terminalApplicationsList);
|
|
69587
70447
|
tool(tool$terminalApplicationsGet);
|
|
@@ -69684,6 +70544,8 @@ var init_server2 = __esm(() => {
|
|
|
69684
70544
|
init_paymentMethodsGet2();
|
|
69685
70545
|
init_paymentMethodsList2();
|
|
69686
70546
|
init_pingPing2();
|
|
70547
|
+
init_receiptsCreate2();
|
|
70548
|
+
init_receiptsList2();
|
|
69687
70549
|
init_representativesCreate2();
|
|
69688
70550
|
init_representativesDelete2();
|
|
69689
70551
|
init_representativesGet2();
|
|
@@ -69706,9 +70568,11 @@ var init_server2 = __esm(() => {
|
|
|
69706
70568
|
init_terminalApplicationsGet2();
|
|
69707
70569
|
init_terminalApplicationsList2();
|
|
69708
70570
|
init_transfersCreate2();
|
|
70571
|
+
init_transfersCreateCancellation2();
|
|
69709
70572
|
init_transfersCreateReversal2();
|
|
69710
70573
|
init_transfersGenerateOptions2();
|
|
69711
70574
|
init_transfersGet2();
|
|
70575
|
+
init_transfersGetCancellation2();
|
|
69712
70576
|
init_transfersGetRefund2();
|
|
69713
70577
|
init_transfersInitiateRefund2();
|
|
69714
70578
|
init_transfersList2();
|
|
@@ -70934,7 +71798,7 @@ var routes = rn({
|
|
|
70934
71798
|
var app = Ve(routes, {
|
|
70935
71799
|
name: "mcp",
|
|
70936
71800
|
versionInfo: {
|
|
70937
|
-
currentVersion: "0.6.
|
|
71801
|
+
currentVersion: "0.6.2"
|
|
70938
71802
|
}
|
|
70939
71803
|
});
|
|
70940
71804
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -70942,5 +71806,5 @@ export {
|
|
|
70942
71806
|
app
|
|
70943
71807
|
};
|
|
70944
71808
|
|
|
70945
|
-
//# debugId=
|
|
71809
|
+
//# debugId=31E0C8A0A67FDE4264756E2164756E21
|
|
70946
71810
|
//# sourceMappingURL=mcp-server.js.map
|