@moovio/sdk 0.12.3 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -36
- package/bin/mcp-server.js +453 -202
- package/bin/mcp-server.js.map +31 -28
- package/docs/sdks/transfers/README.md +117 -2
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +5 -3
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +5 -3
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/transfersGenerateOptions.d.ts +1 -1
- package/funcs/transfersGenerateOptions.js +1 -1
- package/funcs/transfersGenerateOptionsForAccount.d.ts +23 -0
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/funcs/transfersGenerateOptionsForAccount.js +133 -0
- package/funcs/transfersGenerateOptionsForAccount.js.map +1 -0
- package/funcs/transfersList.js +1 -1
- package/funcs/transfersList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +8 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +70 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +1 -0
- package/models/components/createaccount.d.ts +4 -4
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js +4 -4
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createdtransfer.d.ts +2 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +2 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createrefundresponse.d.ts +2 -2
- package/models/components/createrefundresponse.d.ts.map +1 -1
- package/models/components/createrefundresponse.js +2 -2
- package/models/components/createrefundresponse.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/transfer.d.ts +2 -2
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -2
- package/models/components/transfer.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +38 -38
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatatransfercreated.d.ts +2 -5
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
- package/models/components/webhookdatatransfercreated.js +3 -3
- package/models/components/webhookdatatransfercreated.js.map +1 -1
- package/models/components/webhookdatatransferstatus.d.ts +94 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -0
- package/models/components/webhookdatatransferstatus.js +82 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -0
- package/models/components/webhookdatatransferupdated.d.ts +2 -5
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
- package/models/components/webhookdatatransferupdated.js +3 -3
- package/models/components/webhookdatatransferupdated.js.map +1 -1
- package/models/components/webhookdatawallettransactionupdated.d.ts +3 -6
- package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -1
- package/models/components/webhookdatawallettransactionupdated.js +3 -3
- package/models/components/webhookdatawallettransactionupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +3 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -3
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -4
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/createtransfer.d.ts +4 -4
- package/models/operations/createtransfer.d.ts.map +1 -1
- package/models/operations/createtransfer.js +8 -8
- package/models/operations/createtransfer.js.map +1 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
- package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
- package/models/operations/createtransferoptionsforaccount.js +155 -0
- package/models/operations/createtransferoptionsforaccount.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listtransfers.d.ts +3 -3
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +2 -2
- package/models/operations/listtransfers.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +13 -1
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +16 -1
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
- package/src/funcs/filesUpload.ts +20 -4
- package/src/funcs/transfersGenerateOptions.ts +1 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
- package/src/funcs/transfersList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
- package/src/models/components/createaccount.ts +10 -10
- package/src/models/components/createdtransfer.ts +4 -0
- package/src/models/components/createrefundresponse.ts +5 -5
- package/src/models/components/index.ts +1 -1
- package/src/models/components/transfer.ts +4 -4
- package/src/models/components/webhookdata.ts +76 -76
- package/src/models/components/webhookdatatransfercreated.ts +7 -10
- package/src/models/components/webhookdatatransferstatus.ts +57 -0
- package/src/models/components/webhookdatatransferupdated.ts +7 -10
- package/src/models/components/webhookdatawallettransactionupdated.ts +10 -13
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/transfer.ts +6 -6
- package/src/models/operations/createtransfer.ts +16 -16
- package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listtransfers.ts +5 -5
- package/src/sdk/transfers.ts +24 -1
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/components/webhookwalletavailablebalance.d.ts +0 -36
- package/models/components/webhookwalletavailablebalance.d.ts.map +0 -1
- package/models/components/webhookwalletavailablebalance.js +0 -73
- package/models/components/webhookwalletavailablebalance.js.map +0 -1
- package/src/models/components/webhookwalletavailablebalance.ts +0 -79
package/bin/mcp-server.js
CHANGED
|
@@ -34246,9 +34246,9 @@ var init_config = __esm(() => {
|
|
|
34246
34246
|
SDK_METADATA = {
|
|
34247
34247
|
language: "typescript",
|
|
34248
34248
|
openapiDocVersion: "latest",
|
|
34249
|
-
sdkVersion: "0.12.
|
|
34250
|
-
genVersion: "2.
|
|
34251
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
34249
|
+
sdkVersion: "0.12.5",
|
|
34250
|
+
genVersion: "2.632.1",
|
|
34251
|
+
userAgent: "speakeasy-sdk/typescript 0.12.5 2.632.1 latest @moovio/sdk"
|
|
34252
34252
|
};
|
|
34253
34253
|
});
|
|
34254
34254
|
|
|
@@ -39400,12 +39400,12 @@ var init_createaccount = __esm(() => {
|
|
|
39400
39400
|
init_settings();
|
|
39401
39401
|
init_termsofservicetoken();
|
|
39402
39402
|
CreateAccountTermsOfService$inboundSchema = unionType([
|
|
39403
|
-
|
|
39404
|
-
|
|
39403
|
+
ManualTermsOfService$inboundSchema,
|
|
39404
|
+
TermsOfServiceToken$inboundSchema
|
|
39405
39405
|
]);
|
|
39406
39406
|
CreateAccountTermsOfService$outboundSchema = unionType([
|
|
39407
|
-
|
|
39408
|
-
|
|
39407
|
+
ManualTermsOfService$outboundSchema,
|
|
39408
|
+
TermsOfServiceToken$outboundSchema
|
|
39409
39409
|
]);
|
|
39410
39410
|
((CreateAccountTermsOfService$) => {
|
|
39411
39411
|
CreateAccountTermsOfService$.inboundSchema = CreateAccountTermsOfService$inboundSchema;
|
|
@@ -39416,8 +39416,8 @@ var init_createaccount = __esm(() => {
|
|
|
39416
39416
|
profile: CreateProfile$inboundSchema,
|
|
39417
39417
|
metadata: recordType(stringType()).optional(),
|
|
39418
39418
|
termsOfService: unionType([
|
|
39419
|
-
|
|
39420
|
-
|
|
39419
|
+
ManualTermsOfService$inboundSchema,
|
|
39420
|
+
TermsOfServiceToken$inboundSchema
|
|
39421
39421
|
]).optional(),
|
|
39422
39422
|
foreignID: stringType().optional(),
|
|
39423
39423
|
customerSupport: CustomerSupport$inboundSchema.optional(),
|
|
@@ -39430,8 +39430,8 @@ var init_createaccount = __esm(() => {
|
|
|
39430
39430
|
profile: CreateProfile$outboundSchema,
|
|
39431
39431
|
metadata: recordType(stringType()).optional(),
|
|
39432
39432
|
termsOfService: unionType([
|
|
39433
|
-
|
|
39434
|
-
|
|
39433
|
+
ManualTermsOfService$outboundSchema,
|
|
39434
|
+
TermsOfServiceToken$outboundSchema
|
|
39435
39435
|
]).optional(),
|
|
39436
39436
|
foreignID: stringType().optional(),
|
|
39437
39437
|
customerSupport: CustomerSupport$outboundSchema.optional(),
|
|
@@ -40172,6 +40172,7 @@ var init_createdtransfer = __esm(() => {
|
|
|
40172
40172
|
sweepID: stringType().optional(),
|
|
40173
40173
|
scheduleID: stringType().optional(),
|
|
40174
40174
|
occurrenceID: stringType().optional(),
|
|
40175
|
+
paymentLinkCode: stringType().optional(),
|
|
40175
40176
|
salesTaxAmount: Amount$inboundSchema.optional()
|
|
40176
40177
|
});
|
|
40177
40178
|
CreatedTransfer$outboundSchema = objectType({
|
|
@@ -40198,6 +40199,7 @@ var init_createdtransfer = __esm(() => {
|
|
|
40198
40199
|
sweepID: stringType().optional(),
|
|
40199
40200
|
scheduleID: stringType().optional(),
|
|
40200
40201
|
occurrenceID: stringType().optional(),
|
|
40202
|
+
paymentLinkCode: stringType().optional(),
|
|
40201
40203
|
salesTaxAmount: Amount$outboundSchema.optional()
|
|
40202
40204
|
});
|
|
40203
40205
|
((CreatedTransfer$) => {
|
|
@@ -40509,12 +40511,12 @@ var init_createrefundresponse = __esm(() => {
|
|
|
40509
40511
|
init_asynccreatedrefund();
|
|
40510
40512
|
init_cardacquiringrefund();
|
|
40511
40513
|
CreateRefundResponse$inboundSchema = unionType([
|
|
40512
|
-
|
|
40513
|
-
|
|
40514
|
+
CardAcquiringRefund$inboundSchema,
|
|
40515
|
+
AsyncCreatedRefund$inboundSchema
|
|
40514
40516
|
]);
|
|
40515
40517
|
CreateRefundResponse$outboundSchema = unionType([
|
|
40516
|
-
|
|
40517
|
-
|
|
40518
|
+
CardAcquiringRefund$outboundSchema,
|
|
40519
|
+
AsyncCreatedRefund$outboundSchema
|
|
40518
40520
|
]);
|
|
40519
40521
|
((CreateRefundResponse$) => {
|
|
40520
40522
|
CreateRefundResponse$.inboundSchema = CreateRefundResponse$inboundSchema;
|
|
@@ -44463,7 +44465,7 @@ var init_transfer = __esm(() => {
|
|
|
44463
44465
|
sweepID: stringType().optional(),
|
|
44464
44466
|
scheduleID: stringType().optional(),
|
|
44465
44467
|
occurrenceID: stringType().optional(),
|
|
44466
|
-
|
|
44468
|
+
paymentLinkCode: stringType().optional(),
|
|
44467
44469
|
salesTaxAmount: Amount$inboundSchema.optional()
|
|
44468
44470
|
});
|
|
44469
44471
|
Transfer$outboundSchema = objectType({
|
|
@@ -44491,7 +44493,7 @@ var init_transfer = __esm(() => {
|
|
|
44491
44493
|
sweepID: stringType().optional(),
|
|
44492
44494
|
scheduleID: stringType().optional(),
|
|
44493
44495
|
occurrenceID: stringType().optional(),
|
|
44494
|
-
|
|
44496
|
+
paymentLinkCode: stringType().optional(),
|
|
44495
44497
|
salesTaxAmount: Amount$outboundSchema.optional()
|
|
44496
44498
|
});
|
|
44497
44499
|
((Transfer$) => {
|
|
@@ -45706,20 +45708,58 @@ var init_webhookdataterminalapplicationupdated = __esm(() => {
|
|
|
45706
45708
|
})(WebhookDataTerminalApplicationUpdated$ ||= {});
|
|
45707
45709
|
});
|
|
45708
45710
|
|
|
45711
|
+
// src/models/components/webhookdatatransferstatus.ts
|
|
45712
|
+
var WebhookDataTransferStatus, WebhookDataTransferStatus$inboundSchema, WebhookDataTransferStatus$outboundSchema, WebhookDataTransferStatus$;
|
|
45713
|
+
var init_webhookdatatransferstatus = __esm(() => {
|
|
45714
|
+
init_esm();
|
|
45715
|
+
WebhookDataTransferStatus = {
|
|
45716
|
+
Created: "created",
|
|
45717
|
+
Pending: "pending",
|
|
45718
|
+
Completed: "completed",
|
|
45719
|
+
Failed: "failed",
|
|
45720
|
+
Reversed: "reversed",
|
|
45721
|
+
Queued: "queued",
|
|
45722
|
+
Canceled: "canceled",
|
|
45723
|
+
SourceCompleted: "source.completed",
|
|
45724
|
+
SourceCorrected: "source.corrected",
|
|
45725
|
+
SourceInitiated: "source.initiated",
|
|
45726
|
+
SourceReturned: "source.returned",
|
|
45727
|
+
SourceOriginated: "source.originated",
|
|
45728
|
+
SourceConfirmed: "source.confirmed",
|
|
45729
|
+
SourceSettled: "source.settled",
|
|
45730
|
+
SourceFailed: "source.failed",
|
|
45731
|
+
SourceCanceled: "source.canceled",
|
|
45732
|
+
DestinationCompleted: "destination.completed",
|
|
45733
|
+
DestinationCorrected: "destination.corrected",
|
|
45734
|
+
DestinationInitiated: "destination.initiated",
|
|
45735
|
+
DestinationReturned: "destination.returned",
|
|
45736
|
+
DestinationOriginated: "destination.originated",
|
|
45737
|
+
DestinationConfirmed: "destination.confirmed",
|
|
45738
|
+
DestinationFailed: "destination.failed",
|
|
45739
|
+
DestinationAcceptedWithoutPosting: "destination.accepted-without-posting"
|
|
45740
|
+
};
|
|
45741
|
+
WebhookDataTransferStatus$inboundSchema = nativeEnumType(WebhookDataTransferStatus);
|
|
45742
|
+
WebhookDataTransferStatus$outboundSchema = WebhookDataTransferStatus$inboundSchema;
|
|
45743
|
+
((WebhookDataTransferStatus$) => {
|
|
45744
|
+
WebhookDataTransferStatus$.inboundSchema = WebhookDataTransferStatus$inboundSchema;
|
|
45745
|
+
WebhookDataTransferStatus$.outboundSchema = WebhookDataTransferStatus$outboundSchema;
|
|
45746
|
+
})(WebhookDataTransferStatus$ ||= {});
|
|
45747
|
+
});
|
|
45748
|
+
|
|
45709
45749
|
// src/models/components/webhookdatatransfercreated.ts
|
|
45710
45750
|
var WebhookDataTransferCreated$inboundSchema, WebhookDataTransferCreated$outboundSchema, WebhookDataTransferCreated$;
|
|
45711
45751
|
var init_webhookdatatransfercreated = __esm(() => {
|
|
45712
45752
|
init_esm();
|
|
45713
|
-
|
|
45753
|
+
init_webhookdatatransferstatus();
|
|
45714
45754
|
WebhookDataTransferCreated$inboundSchema = objectType({
|
|
45715
45755
|
accountID: stringType(),
|
|
45716
45756
|
transferID: stringType(),
|
|
45717
|
-
status:
|
|
45757
|
+
status: WebhookDataTransferStatus$inboundSchema
|
|
45718
45758
|
});
|
|
45719
45759
|
WebhookDataTransferCreated$outboundSchema = objectType({
|
|
45720
45760
|
accountID: stringType(),
|
|
45721
45761
|
transferID: stringType(),
|
|
45722
|
-
status:
|
|
45762
|
+
status: WebhookDataTransferStatus$outboundSchema
|
|
45723
45763
|
});
|
|
45724
45764
|
((WebhookDataTransferCreated$) => {
|
|
45725
45765
|
WebhookDataTransferCreated$.inboundSchema = WebhookDataTransferCreated$inboundSchema;
|
|
@@ -45749,19 +45789,19 @@ var init_webhooktransferpaymentmethoddetails = __esm(() => {
|
|
|
45749
45789
|
var WebhookDataTransferUpdated$inboundSchema, WebhookDataTransferUpdated$outboundSchema, WebhookDataTransferUpdated$;
|
|
45750
45790
|
var init_webhookdatatransferupdated = __esm(() => {
|
|
45751
45791
|
init_esm();
|
|
45752
|
-
|
|
45792
|
+
init_webhookdatatransferstatus();
|
|
45753
45793
|
init_webhooktransferpaymentmethoddetails();
|
|
45754
45794
|
WebhookDataTransferUpdated$inboundSchema = objectType({
|
|
45755
45795
|
accountID: stringType(),
|
|
45756
45796
|
transferID: stringType(),
|
|
45757
|
-
status:
|
|
45797
|
+
status: WebhookDataTransferStatus$inboundSchema,
|
|
45758
45798
|
source: WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
45759
45799
|
destination: WebhookTransferPaymentMethodDetails$inboundSchema
|
|
45760
45800
|
});
|
|
45761
45801
|
WebhookDataTransferUpdated$outboundSchema = objectType({
|
|
45762
45802
|
accountID: stringType(),
|
|
45763
45803
|
transferID: stringType(),
|
|
45764
|
-
status:
|
|
45804
|
+
status: WebhookDataTransferStatus$outboundSchema,
|
|
45765
45805
|
source: WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
45766
45806
|
destination: WebhookTransferPaymentMethodDetails$outboundSchema
|
|
45767
45807
|
});
|
|
@@ -45771,45 +45811,25 @@ var init_webhookdatatransferupdated = __esm(() => {
|
|
|
45771
45811
|
})(WebhookDataTransferUpdated$ ||= {});
|
|
45772
45812
|
});
|
|
45773
45813
|
|
|
45774
|
-
// src/models/components/webhookwalletavailablebalance.ts
|
|
45775
|
-
var WebhookWalletAvailableBalance$inboundSchema, WebhookWalletAvailableBalance$outboundSchema, WebhookWalletAvailableBalance$;
|
|
45776
|
-
var init_webhookwalletavailablebalance = __esm(() => {
|
|
45777
|
-
init_esm();
|
|
45778
|
-
WebhookWalletAvailableBalance$inboundSchema = objectType({
|
|
45779
|
-
currency: stringType(),
|
|
45780
|
-
value: numberType().int(),
|
|
45781
|
-
valueDecimal: stringType()
|
|
45782
|
-
});
|
|
45783
|
-
WebhookWalletAvailableBalance$outboundSchema = objectType({
|
|
45784
|
-
currency: stringType(),
|
|
45785
|
-
value: numberType().int(),
|
|
45786
|
-
valueDecimal: stringType()
|
|
45787
|
-
});
|
|
45788
|
-
((WebhookWalletAvailableBalance$) => {
|
|
45789
|
-
WebhookWalletAvailableBalance$.inboundSchema = WebhookWalletAvailableBalance$inboundSchema;
|
|
45790
|
-
WebhookWalletAvailableBalance$.outboundSchema = WebhookWalletAvailableBalance$outboundSchema;
|
|
45791
|
-
})(WebhookWalletAvailableBalance$ ||= {});
|
|
45792
|
-
});
|
|
45793
|
-
|
|
45794
45814
|
// src/models/components/webhookdatawallettransactionupdated.ts
|
|
45795
45815
|
var WebhookDataWalletTransactionUpdated$inboundSchema, WebhookDataWalletTransactionUpdated$outboundSchema, WebhookDataWalletTransactionUpdated$;
|
|
45796
45816
|
var init_webhookdatawallettransactionupdated = __esm(() => {
|
|
45797
45817
|
init_esm();
|
|
45818
|
+
init_walletavailablebalance();
|
|
45798
45819
|
init_wallettransactionstatus();
|
|
45799
|
-
init_webhookwalletavailablebalance();
|
|
45800
45820
|
WebhookDataWalletTransactionUpdated$inboundSchema = objectType({
|
|
45801
45821
|
accountID: stringType(),
|
|
45802
45822
|
walletID: stringType(),
|
|
45803
45823
|
transactionID: stringType(),
|
|
45804
45824
|
status: WalletTransactionStatus$inboundSchema,
|
|
45805
|
-
availableBalance:
|
|
45825
|
+
availableBalance: WalletAvailableBalance$inboundSchema.optional()
|
|
45806
45826
|
});
|
|
45807
45827
|
WebhookDataWalletTransactionUpdated$outboundSchema = objectType({
|
|
45808
45828
|
accountID: stringType(),
|
|
45809
45829
|
walletID: stringType(),
|
|
45810
45830
|
transactionID: stringType(),
|
|
45811
45831
|
status: WalletTransactionStatus$outboundSchema,
|
|
45812
|
-
availableBalance:
|
|
45832
|
+
availableBalance: WalletAvailableBalance$outboundSchema.optional()
|
|
45813
45833
|
});
|
|
45814
45834
|
((WebhookDataWalletTransactionUpdated$) => {
|
|
45815
45835
|
WebhookDataWalletTransactionUpdated$.inboundSchema = WebhookDataWalletTransactionUpdated$inboundSchema;
|
|
@@ -45851,65 +45871,65 @@ var init_webhookdata = __esm(() => {
|
|
|
45851
45871
|
init_webhookdatatransferupdated();
|
|
45852
45872
|
init_webhookdatawallettransactionupdated();
|
|
45853
45873
|
WebhookData$inboundSchema = unionType([
|
|
45854
|
-
|
|
45855
|
-
|
|
45856
|
-
|
|
45874
|
+
WebhookDataDisputeCreated$inboundSchema,
|
|
45875
|
+
WebhookDataDisputeUpdated$inboundSchema,
|
|
45876
|
+
WebhookDataTransferUpdated$inboundSchema,
|
|
45877
|
+
WebhookDataBankAccountUpdated$inboundSchema,
|
|
45878
|
+
WebhookDataRefundUpdated$inboundSchema,
|
|
45879
|
+
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
45880
|
+
WebhookDataCancellationCreated$inboundSchema,
|
|
45881
|
+
WebhookDataCancellationUpdated$inboundSchema,
|
|
45882
|
+
WebhookDataCardAutoUpdated$inboundSchema,
|
|
45883
|
+
WebhookDataCapabilityUpdated$inboundSchema,
|
|
45884
|
+
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
45885
|
+
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
45886
|
+
WebhookDataRefundCreated$inboundSchema,
|
|
45887
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
45888
|
+
WebhookDataTransferCreated$inboundSchema,
|
|
45857
45889
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
45858
45890
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
45859
45891
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
45892
|
+
WebhookDataCapabilityRequested$inboundSchema,
|
|
45860
45893
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
45861
45894
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
45862
45895
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
45863
45896
|
WebhookDataSweepCreated$inboundSchema,
|
|
45864
45897
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
45865
45898
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
45866
|
-
|
|
45867
|
-
|
|
45868
|
-
|
|
45869
|
-
WebhookDataCapabilityRequested$inboundSchema,
|
|
45870
|
-
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
45871
|
-
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
45872
|
-
WebhookDataRefundCreated$inboundSchema,
|
|
45873
|
-
WebhookDataTransferCreated$inboundSchema,
|
|
45874
|
-
WebhookDataCapabilityUpdated$inboundSchema,
|
|
45875
|
-
WebhookDataRefundUpdated$inboundSchema,
|
|
45876
|
-
WebhookDataSweepUpdated$inboundSchema,
|
|
45877
|
-
WebhookDataBankAccountUpdated$inboundSchema,
|
|
45878
|
-
WebhookDataTransferUpdated$inboundSchema,
|
|
45879
|
-
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
45880
|
-
WebhookDataDisputeCreated$inboundSchema,
|
|
45881
|
-
WebhookDataDisputeUpdated$inboundSchema,
|
|
45899
|
+
WebhookDataAccountCreated$inboundSchema,
|
|
45900
|
+
WebhookDataAccountUpdated$inboundSchema,
|
|
45901
|
+
WebhookDataAccountDeleted$inboundSchema,
|
|
45882
45902
|
WebhookDataNetworkIDUpdated$inboundSchema
|
|
45883
45903
|
]);
|
|
45884
45904
|
WebhookData$outboundSchema = unionType([
|
|
45885
|
-
|
|
45886
|
-
|
|
45887
|
-
|
|
45905
|
+
WebhookDataDisputeCreated$outboundSchema,
|
|
45906
|
+
WebhookDataDisputeUpdated$outboundSchema,
|
|
45907
|
+
WebhookDataTransferUpdated$outboundSchema,
|
|
45908
|
+
WebhookDataBankAccountUpdated$outboundSchema,
|
|
45909
|
+
WebhookDataRefundUpdated$outboundSchema,
|
|
45910
|
+
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
45911
|
+
WebhookDataCancellationCreated$outboundSchema,
|
|
45912
|
+
WebhookDataCancellationUpdated$outboundSchema,
|
|
45913
|
+
WebhookDataCardAutoUpdated$outboundSchema,
|
|
45914
|
+
WebhookDataCapabilityUpdated$outboundSchema,
|
|
45915
|
+
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
45916
|
+
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
45917
|
+
WebhookDataRefundCreated$outboundSchema,
|
|
45918
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
45919
|
+
WebhookDataTransferCreated$outboundSchema,
|
|
45888
45920
|
WebhookDataBalanceUpdated$outboundSchema,
|
|
45889
45921
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
45890
45922
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
45923
|
+
WebhookDataCapabilityRequested$outboundSchema,
|
|
45891
45924
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
45892
45925
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
45893
45926
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
45894
45927
|
WebhookDataSweepCreated$outboundSchema,
|
|
45895
45928
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
45896
45929
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
45897
|
-
|
|
45898
|
-
|
|
45899
|
-
|
|
45900
|
-
WebhookDataCapabilityRequested$outboundSchema,
|
|
45901
|
-
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
45902
|
-
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
45903
|
-
WebhookDataRefundCreated$outboundSchema,
|
|
45904
|
-
WebhookDataTransferCreated$outboundSchema,
|
|
45905
|
-
WebhookDataCapabilityUpdated$outboundSchema,
|
|
45906
|
-
WebhookDataRefundUpdated$outboundSchema,
|
|
45907
|
-
WebhookDataSweepUpdated$outboundSchema,
|
|
45908
|
-
WebhookDataBankAccountUpdated$outboundSchema,
|
|
45909
|
-
WebhookDataTransferUpdated$outboundSchema,
|
|
45910
|
-
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
45911
|
-
WebhookDataDisputeCreated$outboundSchema,
|
|
45912
|
-
WebhookDataDisputeUpdated$outboundSchema,
|
|
45930
|
+
WebhookDataAccountCreated$outboundSchema,
|
|
45931
|
+
WebhookDataAccountUpdated$outboundSchema,
|
|
45932
|
+
WebhookDataAccountDeleted$outboundSchema,
|
|
45913
45933
|
WebhookDataNetworkIDUpdated$outboundSchema
|
|
45914
45934
|
]);
|
|
45915
45935
|
((WebhookData$) => {
|
|
@@ -45923,6 +45943,7 @@ var WebhookEventType, WebhookEventType$inboundSchema, WebhookEventType$outboundS
|
|
|
45923
45943
|
var init_webhookeventtype = __esm(() => {
|
|
45924
45944
|
init_esm();
|
|
45925
45945
|
WebhookEventType = {
|
|
45946
|
+
Wildcard: "*",
|
|
45926
45947
|
AccountCreated: "account.created",
|
|
45927
45948
|
AccountUpdated: "account.updated",
|
|
45928
45949
|
AccountDeleted: "account.deleted",
|
|
@@ -46385,12 +46406,12 @@ var init_components = __esm(() => {
|
|
|
46385
46406
|
init_webhookdataterminalapplicationcreated();
|
|
46386
46407
|
init_webhookdataterminalapplicationupdated();
|
|
46387
46408
|
init_webhookdatatransfercreated();
|
|
46409
|
+
init_webhookdatatransferstatus();
|
|
46388
46410
|
init_webhookdatatransferupdated();
|
|
46389
46411
|
init_webhookdatawallettransactionupdated();
|
|
46390
46412
|
init_webhookevent();
|
|
46391
46413
|
init_webhookeventtype();
|
|
46392
46414
|
init_webhooktransferpaymentmethoddetails();
|
|
46393
|
-
init_webhookwalletavailablebalance();
|
|
46394
46415
|
init_wireinstitution();
|
|
46395
46416
|
init_wireservices();
|
|
46396
46417
|
});
|
|
@@ -47732,7 +47753,7 @@ var init_transfer2 = __esm(() => {
|
|
|
47732
47753
|
sweepID;
|
|
47733
47754
|
scheduleID;
|
|
47734
47755
|
occurrenceID;
|
|
47735
|
-
|
|
47756
|
+
paymentLinkCode;
|
|
47736
47757
|
salesTaxAmount;
|
|
47737
47758
|
data$;
|
|
47738
47759
|
constructor(err, httpMeta) {
|
|
@@ -47781,8 +47802,8 @@ var init_transfer2 = __esm(() => {
|
|
|
47781
47802
|
this.scheduleID = err.scheduleID;
|
|
47782
47803
|
if (err.occurrenceID != null)
|
|
47783
47804
|
this.occurrenceID = err.occurrenceID;
|
|
47784
|
-
if (err.
|
|
47785
|
-
this.
|
|
47805
|
+
if (err.paymentLinkCode != null)
|
|
47806
|
+
this.paymentLinkCode = err.paymentLinkCode;
|
|
47786
47807
|
if (err.salesTaxAmount != null)
|
|
47787
47808
|
this.salesTaxAmount = err.salesTaxAmount;
|
|
47788
47809
|
this.name = "Transfer";
|
|
@@ -47813,7 +47834,7 @@ var init_transfer2 = __esm(() => {
|
|
|
47813
47834
|
sweepID: stringType().optional(),
|
|
47814
47835
|
scheduleID: stringType().optional(),
|
|
47815
47836
|
occurrenceID: stringType().optional(),
|
|
47816
|
-
|
|
47837
|
+
paymentLinkCode: stringType().optional(),
|
|
47817
47838
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
47818
47839
|
request$: instanceOfType(Request),
|
|
47819
47840
|
response$: instanceOfType(Response),
|
|
@@ -47850,7 +47871,7 @@ var init_transfer2 = __esm(() => {
|
|
|
47850
47871
|
sweepID: stringType().optional(),
|
|
47851
47872
|
scheduleID: stringType().optional(),
|
|
47852
47873
|
occurrenceID: stringType().optional(),
|
|
47853
|
-
|
|
47874
|
+
paymentLinkCode: stringType().optional(),
|
|
47854
47875
|
salesTaxAmount: Amount$outboundSchema.optional()
|
|
47855
47876
|
}));
|
|
47856
47877
|
((Transfer$) => {
|
|
@@ -49553,14 +49574,14 @@ var init_createtransfer2 = __esm(() => {
|
|
|
49553
49574
|
CreateTransferRequest$.outboundSchema = CreateTransferRequest$outboundSchema;
|
|
49554
49575
|
})(CreateTransferRequest$ ||= {});
|
|
49555
49576
|
CreateTransferResponseResult$inboundSchema = unionType([
|
|
49556
|
-
|
|
49577
|
+
Transfer$inboundSchema,
|
|
49557
49578
|
CreatedTransfer$inboundSchema,
|
|
49558
|
-
|
|
49579
|
+
AsyncTransfer$inboundSchema
|
|
49559
49580
|
]);
|
|
49560
49581
|
CreateTransferResponseResult$outboundSchema = unionType([
|
|
49561
|
-
|
|
49582
|
+
Transfer$outboundSchema,
|
|
49562
49583
|
CreatedTransfer$outboundSchema,
|
|
49563
|
-
|
|
49584
|
+
AsyncTransfer$outboundSchema
|
|
49564
49585
|
]);
|
|
49565
49586
|
((CreateTransferResponseResult$) => {
|
|
49566
49587
|
CreateTransferResponseResult$.inboundSchema = CreateTransferResponseResult$inboundSchema;
|
|
@@ -49569,9 +49590,9 @@ var init_createtransfer2 = __esm(() => {
|
|
|
49569
49590
|
CreateTransferResponse$inboundSchema = objectType({
|
|
49570
49591
|
Headers: recordType(arrayType(stringType())),
|
|
49571
49592
|
Result: unionType([
|
|
49572
|
-
|
|
49593
|
+
Transfer$inboundSchema,
|
|
49573
49594
|
CreatedTransfer$inboundSchema,
|
|
49574
|
-
|
|
49595
|
+
AsyncTransfer$inboundSchema
|
|
49575
49596
|
])
|
|
49576
49597
|
}).transform((v2) => {
|
|
49577
49598
|
return remap(v2, {
|
|
@@ -49582,9 +49603,9 @@ var init_createtransfer2 = __esm(() => {
|
|
|
49582
49603
|
CreateTransferResponse$outboundSchema = objectType({
|
|
49583
49604
|
headers: recordType(arrayType(stringType())),
|
|
49584
49605
|
result: unionType([
|
|
49585
|
-
|
|
49606
|
+
Transfer$outboundSchema,
|
|
49586
49607
|
CreatedTransfer$outboundSchema,
|
|
49587
|
-
|
|
49608
|
+
AsyncTransfer$outboundSchema
|
|
49588
49609
|
])
|
|
49589
49610
|
}).transform((v2) => {
|
|
49590
49611
|
return remap(v2, {
|
|
@@ -49646,6 +49667,74 @@ var init_createtransferoptions2 = __esm(() => {
|
|
|
49646
49667
|
})(CreateTransferOptionsResponse$ ||= {});
|
|
49647
49668
|
});
|
|
49648
49669
|
|
|
49670
|
+
// src/models/operations/createtransferoptionsforaccount.ts
|
|
49671
|
+
var CreateTransferOptionsForAccountGlobals$inboundSchema, CreateTransferOptionsForAccountGlobals$outboundSchema, CreateTransferOptionsForAccountGlobals$, CreateTransferOptionsForAccountRequest$inboundSchema, CreateTransferOptionsForAccountRequest$outboundSchema, CreateTransferOptionsForAccountRequest$, CreateTransferOptionsForAccountResponse$inboundSchema, CreateTransferOptionsForAccountResponse$outboundSchema, CreateTransferOptionsForAccountResponse$;
|
|
49672
|
+
var init_createtransferoptionsforaccount = __esm(() => {
|
|
49673
|
+
init_esm();
|
|
49674
|
+
init_primitives();
|
|
49675
|
+
init_components();
|
|
49676
|
+
CreateTransferOptionsForAccountGlobals$inboundSchema = objectType({
|
|
49677
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
49678
|
+
}).transform((v2) => {
|
|
49679
|
+
return remap(v2, {
|
|
49680
|
+
"x-moov-version": "xMoovVersion"
|
|
49681
|
+
});
|
|
49682
|
+
});
|
|
49683
|
+
CreateTransferOptionsForAccountGlobals$outboundSchema = objectType({
|
|
49684
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
49685
|
+
}).transform((v2) => {
|
|
49686
|
+
return remap(v2, {
|
|
49687
|
+
xMoovVersion: "x-moov-version"
|
|
49688
|
+
});
|
|
49689
|
+
});
|
|
49690
|
+
((CreateTransferOptionsForAccountGlobals$) => {
|
|
49691
|
+
CreateTransferOptionsForAccountGlobals$.inboundSchema = CreateTransferOptionsForAccountGlobals$inboundSchema;
|
|
49692
|
+
CreateTransferOptionsForAccountGlobals$.outboundSchema = CreateTransferOptionsForAccountGlobals$outboundSchema;
|
|
49693
|
+
})(CreateTransferOptionsForAccountGlobals$ ||= {});
|
|
49694
|
+
CreateTransferOptionsForAccountRequest$inboundSchema = objectType({
|
|
49695
|
+
accountID: stringType(),
|
|
49696
|
+
CreateTransferOptions: CreateTransferOptions$inboundSchema
|
|
49697
|
+
}).transform((v2) => {
|
|
49698
|
+
return remap(v2, {
|
|
49699
|
+
CreateTransferOptions: "createTransferOptions"
|
|
49700
|
+
});
|
|
49701
|
+
});
|
|
49702
|
+
CreateTransferOptionsForAccountRequest$outboundSchema = objectType({
|
|
49703
|
+
accountID: stringType(),
|
|
49704
|
+
createTransferOptions: CreateTransferOptions$outboundSchema
|
|
49705
|
+
}).transform((v2) => {
|
|
49706
|
+
return remap(v2, {
|
|
49707
|
+
createTransferOptions: "CreateTransferOptions"
|
|
49708
|
+
});
|
|
49709
|
+
});
|
|
49710
|
+
((CreateTransferOptionsForAccountRequest$) => {
|
|
49711
|
+
CreateTransferOptionsForAccountRequest$.inboundSchema = CreateTransferOptionsForAccountRequest$inboundSchema;
|
|
49712
|
+
CreateTransferOptionsForAccountRequest$.outboundSchema = CreateTransferOptionsForAccountRequest$outboundSchema;
|
|
49713
|
+
})(CreateTransferOptionsForAccountRequest$ ||= {});
|
|
49714
|
+
CreateTransferOptionsForAccountResponse$inboundSchema = objectType({
|
|
49715
|
+
Headers: recordType(arrayType(stringType())),
|
|
49716
|
+
Result: TransferOptions$inboundSchema
|
|
49717
|
+
}).transform((v2) => {
|
|
49718
|
+
return remap(v2, {
|
|
49719
|
+
Headers: "headers",
|
|
49720
|
+
Result: "result"
|
|
49721
|
+
});
|
|
49722
|
+
});
|
|
49723
|
+
CreateTransferOptionsForAccountResponse$outboundSchema = objectType({
|
|
49724
|
+
headers: recordType(arrayType(stringType())),
|
|
49725
|
+
result: TransferOptions$outboundSchema
|
|
49726
|
+
}).transform((v2) => {
|
|
49727
|
+
return remap(v2, {
|
|
49728
|
+
headers: "Headers",
|
|
49729
|
+
result: "Result"
|
|
49730
|
+
});
|
|
49731
|
+
});
|
|
49732
|
+
((CreateTransferOptionsForAccountResponse$) => {
|
|
49733
|
+
CreateTransferOptionsForAccountResponse$.inboundSchema = CreateTransferOptionsForAccountResponse$inboundSchema;
|
|
49734
|
+
CreateTransferOptionsForAccountResponse$.outboundSchema = CreateTransferOptionsForAccountResponse$outboundSchema;
|
|
49735
|
+
})(CreateTransferOptionsForAccountResponse$ ||= {});
|
|
49736
|
+
});
|
|
49737
|
+
|
|
49649
49738
|
// src/models/operations/deletedisputeevidencefile.ts
|
|
49650
49739
|
var DeleteDisputeEvidenceFileGlobals$inboundSchema, DeleteDisputeEvidenceFileGlobals$outboundSchema, DeleteDisputeEvidenceFileGlobals$, DeleteDisputeEvidenceFileRequest$inboundSchema, DeleteDisputeEvidenceFileRequest$outboundSchema, DeleteDisputeEvidenceFileRequest$, DeleteDisputeEvidenceFileResponse$inboundSchema, DeleteDisputeEvidenceFileResponse$outboundSchema, DeleteDisputeEvidenceFileResponse$;
|
|
49651
49740
|
var init_deletedisputeevidencefile = __esm(() => {
|
|
@@ -54999,7 +55088,7 @@ var init_listtransfers = __esm(() => {
|
|
|
54999
55088
|
endDateTime: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55000
55089
|
groupID: stringType().optional(),
|
|
55001
55090
|
scheduleID: stringType().optional(),
|
|
55002
|
-
|
|
55091
|
+
paymentLinkCode: stringType().optional(),
|
|
55003
55092
|
refunded: booleanType().optional(),
|
|
55004
55093
|
disputed: booleanType().optional(),
|
|
55005
55094
|
skip: numberType().int().optional(),
|
|
@@ -55013,7 +55102,7 @@ var init_listtransfers = __esm(() => {
|
|
|
55013
55102
|
endDateTime: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55014
55103
|
groupID: stringType().optional(),
|
|
55015
55104
|
scheduleID: stringType().optional(),
|
|
55016
|
-
|
|
55105
|
+
paymentLinkCode: stringType().optional(),
|
|
55017
55106
|
refunded: booleanType().optional(),
|
|
55018
55107
|
disputed: booleanType().optional(),
|
|
55019
55108
|
skip: numberType().int().optional(),
|
|
@@ -56899,6 +56988,7 @@ var init_operations = __esm(() => {
|
|
|
56899
56988
|
init_createterminalapplication2();
|
|
56900
56989
|
init_createtransfer2();
|
|
56901
56990
|
init_createtransferoptions2();
|
|
56991
|
+
init_createtransferoptionsforaccount();
|
|
56902
56992
|
init_deletedisputeevidencefile();
|
|
56903
56993
|
init_deleterepresentative();
|
|
56904
56994
|
init_deleteterminalapplication();
|
|
@@ -64261,6 +64351,42 @@ async function readableStreamToArrayBuffer(readable) {
|
|
|
64261
64351
|
}
|
|
64262
64352
|
return concatenatedChunks.buffer;
|
|
64263
64353
|
}
|
|
64354
|
+
function getContentTypeFromFileName(fileName) {
|
|
64355
|
+
if (!fileName)
|
|
64356
|
+
return null;
|
|
64357
|
+
const ext = fileName.toLowerCase().split(".").pop();
|
|
64358
|
+
if (!ext)
|
|
64359
|
+
return null;
|
|
64360
|
+
const mimeTypes = {
|
|
64361
|
+
json: "application/json",
|
|
64362
|
+
xml: "application/xml",
|
|
64363
|
+
html: "text/html",
|
|
64364
|
+
htm: "text/html",
|
|
64365
|
+
txt: "text/plain",
|
|
64366
|
+
csv: "text/csv",
|
|
64367
|
+
pdf: "application/pdf",
|
|
64368
|
+
png: "image/png",
|
|
64369
|
+
jpg: "image/jpeg",
|
|
64370
|
+
jpeg: "image/jpeg",
|
|
64371
|
+
gif: "image/gif",
|
|
64372
|
+
svg: "image/svg+xml",
|
|
64373
|
+
js: "application/javascript",
|
|
64374
|
+
css: "text/css",
|
|
64375
|
+
zip: "application/zip",
|
|
64376
|
+
tar: "application/x-tar",
|
|
64377
|
+
gz: "application/gzip",
|
|
64378
|
+
mp4: "video/mp4",
|
|
64379
|
+
mp3: "audio/mpeg",
|
|
64380
|
+
wav: "audio/wav",
|
|
64381
|
+
webp: "image/webp",
|
|
64382
|
+
ico: "image/x-icon",
|
|
64383
|
+
woff: "font/woff",
|
|
64384
|
+
woff2: "font/woff2",
|
|
64385
|
+
ttf: "font/ttf",
|
|
64386
|
+
otf: "font/otf"
|
|
64387
|
+
};
|
|
64388
|
+
return mimeTypes[ext] || null;
|
|
64389
|
+
}
|
|
64264
64390
|
|
|
64265
64391
|
// src/types/streams.ts
|
|
64266
64392
|
function isReadableStream(val) {
|
|
@@ -64287,11 +64413,13 @@ async function $do60(client, request, options) {
|
|
|
64287
64413
|
appendForm(body, "file", payload.CreateEvidenceFileMultiPart.file);
|
|
64288
64414
|
} else if (isReadableStream(payload.CreateEvidenceFileMultiPart.file.content)) {
|
|
64289
64415
|
const buffer = await readableStreamToArrayBuffer(payload.CreateEvidenceFileMultiPart.file.content);
|
|
64290
|
-
const
|
|
64291
|
-
|
|
64416
|
+
const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
|
|
64417
|
+
const blob = new Blob([buffer], { type: contentType2 });
|
|
64418
|
+
appendForm(body, "file", blob, payload.CreateEvidenceFileMultiPart.file.fileName);
|
|
64292
64419
|
} else {
|
|
64420
|
+
const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
|
|
64293
64421
|
appendForm(body, "file", new Blob([payload.CreateEvidenceFileMultiPart.file.content], {
|
|
64294
|
-
type:
|
|
64422
|
+
type: contentType2
|
|
64295
64423
|
}), payload.CreateEvidenceFileMultiPart.file.fileName);
|
|
64296
64424
|
}
|
|
64297
64425
|
const pathParams = {
|
|
@@ -66047,11 +66175,13 @@ async function $do75(client, request, options) {
|
|
|
66047
66175
|
appendForm(body, "file", payload.FileUploadRequestMultiPart.file);
|
|
66048
66176
|
} else if (isReadableStream(payload.FileUploadRequestMultiPart.file.content)) {
|
|
66049
66177
|
const buffer = await readableStreamToArrayBuffer(payload.FileUploadRequestMultiPart.file.content);
|
|
66050
|
-
const
|
|
66051
|
-
|
|
66178
|
+
const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
|
|
66179
|
+
const blob = new Blob([buffer], { type: contentType2 });
|
|
66180
|
+
appendForm(body, "file", blob, payload.FileUploadRequestMultiPart.file.fileName);
|
|
66052
66181
|
} else {
|
|
66182
|
+
const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
|
|
66053
66183
|
appendForm(body, "file", new Blob([payload.FileUploadRequestMultiPart.file.content], {
|
|
66054
|
-
type:
|
|
66184
|
+
type: contentType2
|
|
66055
66185
|
}), payload.FileUploadRequestMultiPart.file.fileName);
|
|
66056
66186
|
}
|
|
66057
66187
|
appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
|
|
@@ -71777,7 +71907,7 @@ supply in the request.
|
|
|
71777
71907
|
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
71778
71908
|
|
|
71779
71909
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71780
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.
|
|
71910
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
71781
71911
|
args: args123,
|
|
71782
71912
|
tool: async (client, args124, ctx) => {
|
|
71783
71913
|
const [result, apiCall] = await transfersGenerateOptions(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -71793,11 +71923,130 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
71793
71923
|
};
|
|
71794
71924
|
});
|
|
71795
71925
|
|
|
71796
|
-
// src/funcs/
|
|
71797
|
-
function
|
|
71926
|
+
// src/funcs/transfersGenerateOptionsForAccount.ts
|
|
71927
|
+
function transfersGenerateOptionsForAccount(client, request, options) {
|
|
71798
71928
|
return new APIPromise($do124(client, request, options));
|
|
71799
71929
|
}
|
|
71800
71930
|
async function $do124(client, request, options) {
|
|
71931
|
+
const parsed = safeParse(request, (value) => CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71932
|
+
if (!parsed.ok) {
|
|
71933
|
+
return [parsed, { status: "invalid" }];
|
|
71934
|
+
}
|
|
71935
|
+
const payload = parsed.value;
|
|
71936
|
+
const body = encodeJSON("body", payload.CreateTransferOptions, {
|
|
71937
|
+
explode: true
|
|
71938
|
+
});
|
|
71939
|
+
const pathParams = {
|
|
71940
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
71941
|
+
explode: false,
|
|
71942
|
+
charEncoding: "percent"
|
|
71943
|
+
})
|
|
71944
|
+
};
|
|
71945
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
|
|
71946
|
+
const headers = new Headers(compactMap({
|
|
71947
|
+
"Content-Type": "application/json",
|
|
71948
|
+
Accept: "application/json",
|
|
71949
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
71950
|
+
}));
|
|
71951
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
71952
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71953
|
+
const context = {
|
|
71954
|
+
options: client._options,
|
|
71955
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71956
|
+
operationID: "createTransferOptionsForAccount",
|
|
71957
|
+
oAuth2Scopes: [],
|
|
71958
|
+
resolvedSecurity: requestSecurity,
|
|
71959
|
+
securitySource: client._options.security,
|
|
71960
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
71961
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
71962
|
+
};
|
|
71963
|
+
const requestRes = client._createRequest(context, {
|
|
71964
|
+
security: requestSecurity,
|
|
71965
|
+
method: "POST",
|
|
71966
|
+
baseURL: options?.serverURL,
|
|
71967
|
+
path,
|
|
71968
|
+
headers,
|
|
71969
|
+
body,
|
|
71970
|
+
userAgent: client._options.userAgent,
|
|
71971
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
71972
|
+
}, options);
|
|
71973
|
+
if (!requestRes.ok) {
|
|
71974
|
+
return [requestRes, { status: "invalid" }];
|
|
71975
|
+
}
|
|
71976
|
+
const req = requestRes.value;
|
|
71977
|
+
const doResult = await client._do(req, {
|
|
71978
|
+
context,
|
|
71979
|
+
errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
71980
|
+
retryConfig: context.retryConfig,
|
|
71981
|
+
retryCodes: context.retryCodes
|
|
71982
|
+
});
|
|
71983
|
+
if (!doResult.ok) {
|
|
71984
|
+
return [doResult, { status: "request-error", request: req }];
|
|
71985
|
+
}
|
|
71986
|
+
const response = doResult.value;
|
|
71987
|
+
const responseFields = {
|
|
71988
|
+
HttpMeta: { Response: response, Request: req }
|
|
71989
|
+
};
|
|
71990
|
+
const [result] = await match(json(200, CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
|
|
71991
|
+
hdrs: true
|
|
71992
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
71993
|
+
if (!result.ok) {
|
|
71994
|
+
return [result, { status: "complete", request: req, response }];
|
|
71995
|
+
}
|
|
71996
|
+
return [result, { status: "complete", request: req, response }];
|
|
71997
|
+
}
|
|
71998
|
+
var init_transfersGenerateOptionsForAccount = __esm(() => {
|
|
71999
|
+
init_encodings();
|
|
72000
|
+
init_matchers();
|
|
72001
|
+
init_primitives();
|
|
72002
|
+
init_schemas();
|
|
72003
|
+
init_security();
|
|
72004
|
+
init_url();
|
|
72005
|
+
init_errors2();
|
|
72006
|
+
init_operations();
|
|
72007
|
+
init_async();
|
|
72008
|
+
});
|
|
72009
|
+
|
|
72010
|
+
// src/mcp-server/tools/transfersGenerateOptionsForAccount.ts
|
|
72011
|
+
var args124, tool$transfersGenerateOptionsForAccount;
|
|
72012
|
+
var init_transfersGenerateOptionsForAccount2 = __esm(() => {
|
|
72013
|
+
init_transfersGenerateOptionsForAccount();
|
|
72014
|
+
init_operations();
|
|
72015
|
+
init_tools();
|
|
72016
|
+
args124 = {
|
|
72017
|
+
request: CreateTransferOptionsForAccountRequest$inboundSchema
|
|
72018
|
+
};
|
|
72019
|
+
tool$transfersGenerateOptionsForAccount = {
|
|
72020
|
+
name: "transfers-generate-options-for-account",
|
|
72021
|
+
description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
72022
|
+
supply in the request body.
|
|
72023
|
+
|
|
72024
|
+
The accountID in the route should the partner's accountID.
|
|
72025
|
+
|
|
72026
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
72027
|
+
|
|
72028
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72029
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72030
|
+
args: args124,
|
|
72031
|
+
tool: async (client, args125, ctx) => {
|
|
72032
|
+
const [result, apiCall] = await transfersGenerateOptionsForAccount(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72033
|
+
if (!result.ok) {
|
|
72034
|
+
return {
|
|
72035
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72036
|
+
isError: true
|
|
72037
|
+
};
|
|
72038
|
+
}
|
|
72039
|
+
const value = result.value.result;
|
|
72040
|
+
return formatResult(value, apiCall);
|
|
72041
|
+
}
|
|
72042
|
+
};
|
|
72043
|
+
});
|
|
72044
|
+
|
|
72045
|
+
// src/funcs/transfersGet.ts
|
|
72046
|
+
function transfersGet(client, request, options) {
|
|
72047
|
+
return new APIPromise($do125(client, request, options));
|
|
72048
|
+
}
|
|
72049
|
+
async function $do125(client, request, options) {
|
|
71801
72050
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71802
72051
|
if (!parsed.ok) {
|
|
71803
72052
|
return [parsed, { status: "invalid" }];
|
|
@@ -71879,12 +72128,12 @@ var init_transfersGet = __esm(() => {
|
|
|
71879
72128
|
});
|
|
71880
72129
|
|
|
71881
72130
|
// src/mcp-server/tools/transfersGet.ts
|
|
71882
|
-
var
|
|
72131
|
+
var args125, tool$transfersGet;
|
|
71883
72132
|
var init_transfersGet2 = __esm(() => {
|
|
71884
72133
|
init_transfersGet();
|
|
71885
72134
|
init_operations();
|
|
71886
72135
|
init_tools();
|
|
71887
|
-
|
|
72136
|
+
args125 = {
|
|
71888
72137
|
request: GetTransferRequest$inboundSchema
|
|
71889
72138
|
};
|
|
71890
72139
|
tool$transfersGet = {
|
|
@@ -71896,9 +72145,9 @@ to learn more.
|
|
|
71896
72145
|
|
|
71897
72146
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71898
72147
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
71899
|
-
args:
|
|
71900
|
-
tool: async (client,
|
|
71901
|
-
const [result, apiCall] = await transfersGet(client,
|
|
72148
|
+
args: args125,
|
|
72149
|
+
tool: async (client, args126, ctx) => {
|
|
72150
|
+
const [result, apiCall] = await transfersGet(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71902
72151
|
if (!result.ok) {
|
|
71903
72152
|
return {
|
|
71904
72153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71913,9 +72162,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
71913
72162
|
|
|
71914
72163
|
// src/funcs/transfersGetCancellation.ts
|
|
71915
72164
|
function transfersGetCancellation(client, request, options) {
|
|
71916
|
-
return new APIPromise($
|
|
72165
|
+
return new APIPromise($do126(client, request, options));
|
|
71917
72166
|
}
|
|
71918
|
-
async function $
|
|
72167
|
+
async function $do126(client, request, options) {
|
|
71919
72168
|
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71920
72169
|
if (!parsed.ok) {
|
|
71921
72170
|
return [parsed, { status: "invalid" }];
|
|
@@ -72001,12 +72250,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
72001
72250
|
});
|
|
72002
72251
|
|
|
72003
72252
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
72004
|
-
var
|
|
72253
|
+
var args126, tool$transfersGetCancellation;
|
|
72005
72254
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
72006
72255
|
init_transfersGetCancellation();
|
|
72007
72256
|
init_operations();
|
|
72008
72257
|
init_tools();
|
|
72009
|
-
|
|
72258
|
+
args126 = {
|
|
72010
72259
|
request: GetCancellationRequest$inboundSchema
|
|
72011
72260
|
};
|
|
72012
72261
|
tool$transfersGetCancellation = {
|
|
@@ -72015,9 +72264,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
72015
72264
|
|
|
72016
72265
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
72017
72266
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72018
|
-
args:
|
|
72019
|
-
tool: async (client,
|
|
72020
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
72267
|
+
args: args126,
|
|
72268
|
+
tool: async (client, args127, ctx) => {
|
|
72269
|
+
const [result, apiCall] = await transfersGetCancellation(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72021
72270
|
if (!result.ok) {
|
|
72022
72271
|
return {
|
|
72023
72272
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72032,9 +72281,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
72032
72281
|
|
|
72033
72282
|
// src/funcs/transfersGetRefund.ts
|
|
72034
72283
|
function transfersGetRefund(client, request, options) {
|
|
72035
|
-
return new APIPromise($
|
|
72284
|
+
return new APIPromise($do127(client, request, options));
|
|
72036
72285
|
}
|
|
72037
|
-
async function $
|
|
72286
|
+
async function $do127(client, request, options) {
|
|
72038
72287
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72039
72288
|
if (!parsed.ok) {
|
|
72040
72289
|
return [parsed, { status: "invalid" }];
|
|
@@ -72120,12 +72369,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
72120
72369
|
});
|
|
72121
72370
|
|
|
72122
72371
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
72123
|
-
var
|
|
72372
|
+
var args127, tool$transfersGetRefund;
|
|
72124
72373
|
var init_transfersGetRefund2 = __esm(() => {
|
|
72125
72374
|
init_transfersGetRefund();
|
|
72126
72375
|
init_operations();
|
|
72127
72376
|
init_tools();
|
|
72128
|
-
|
|
72377
|
+
args127 = {
|
|
72129
72378
|
request: GetRefundRequest$inboundSchema
|
|
72130
72379
|
};
|
|
72131
72380
|
tool$transfersGetRefund = {
|
|
@@ -72134,9 +72383,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
72134
72383
|
|
|
72135
72384
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72136
72385
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72137
|
-
args:
|
|
72138
|
-
tool: async (client,
|
|
72139
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
72386
|
+
args: args127,
|
|
72387
|
+
tool: async (client, args128, ctx) => {
|
|
72388
|
+
const [result, apiCall] = await transfersGetRefund(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72140
72389
|
if (!result.ok) {
|
|
72141
72390
|
return {
|
|
72142
72391
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72151,9 +72400,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
72151
72400
|
|
|
72152
72401
|
// src/funcs/transfersInitiateRefund.ts
|
|
72153
72402
|
function transfersInitiateRefund(client, request, options) {
|
|
72154
|
-
return new APIPromise($
|
|
72403
|
+
return new APIPromise($do128(client, request, options));
|
|
72155
72404
|
}
|
|
72156
|
-
async function $
|
|
72405
|
+
async function $do128(client, request, options) {
|
|
72157
72406
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72158
72407
|
if (!parsed.ok) {
|
|
72159
72408
|
return [parsed, { status: "invalid" }];
|
|
@@ -72245,12 +72494,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
72245
72494
|
});
|
|
72246
72495
|
|
|
72247
72496
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
72248
|
-
var
|
|
72497
|
+
var args128, tool$transfersInitiateRefund;
|
|
72249
72498
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
72250
72499
|
init_transfersInitiateRefund();
|
|
72251
72500
|
init_operations();
|
|
72252
72501
|
init_tools();
|
|
72253
|
-
|
|
72502
|
+
args128 = {
|
|
72254
72503
|
request: InitiateRefundRequest$inboundSchema
|
|
72255
72504
|
};
|
|
72256
72505
|
tool$transfersInitiateRefund = {
|
|
@@ -72262,9 +72511,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
72262
72511
|
|
|
72263
72512
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72264
72513
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72265
|
-
args:
|
|
72266
|
-
tool: async (client,
|
|
72267
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
72514
|
+
args: args128,
|
|
72515
|
+
tool: async (client, args129, ctx) => {
|
|
72516
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72268
72517
|
if (!result.ok) {
|
|
72269
72518
|
return {
|
|
72270
72519
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72279,9 +72528,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72279
72528
|
|
|
72280
72529
|
// src/funcs/transfersList.ts
|
|
72281
72530
|
function transfersList(client, request, options) {
|
|
72282
|
-
return new APIPromise($
|
|
72531
|
+
return new APIPromise($do129(client, request, options));
|
|
72283
72532
|
}
|
|
72284
|
-
async function $
|
|
72533
|
+
async function $do129(client, request, options) {
|
|
72285
72534
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72286
72535
|
if (!parsed.ok) {
|
|
72287
72536
|
return [parsed, { status: "invalid" }];
|
|
@@ -72301,7 +72550,7 @@ async function $do128(client, request, options) {
|
|
|
72301
72550
|
disputed: payload.disputed,
|
|
72302
72551
|
endDateTime: payload.endDateTime,
|
|
72303
72552
|
groupID: payload.groupID,
|
|
72304
|
-
|
|
72553
|
+
paymentLinkCode: payload.paymentLinkCode,
|
|
72305
72554
|
refunded: payload.refunded,
|
|
72306
72555
|
scheduleID: payload.scheduleID,
|
|
72307
72556
|
skip: payload.skip,
|
|
@@ -72373,12 +72622,12 @@ var init_transfersList = __esm(() => {
|
|
|
72373
72622
|
});
|
|
72374
72623
|
|
|
72375
72624
|
// src/mcp-server/tools/transfersList.ts
|
|
72376
|
-
var
|
|
72625
|
+
var args129, tool$transfersList;
|
|
72377
72626
|
var init_transfersList2 = __esm(() => {
|
|
72378
72627
|
init_transfersList();
|
|
72379
72628
|
init_operations();
|
|
72380
72629
|
init_tools();
|
|
72381
|
-
|
|
72630
|
+
args129 = {
|
|
72382
72631
|
request: ListTransfersRequest$inboundSchema
|
|
72383
72632
|
};
|
|
72384
72633
|
tool$transfersList = {
|
|
@@ -72394,9 +72643,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
72394
72643
|
|
|
72395
72644
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72396
72645
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72397
|
-
args:
|
|
72398
|
-
tool: async (client,
|
|
72399
|
-
const [result, apiCall] = await transfersList(client,
|
|
72646
|
+
args: args129,
|
|
72647
|
+
tool: async (client, args130, ctx) => {
|
|
72648
|
+
const [result, apiCall] = await transfersList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72400
72649
|
if (!result.ok) {
|
|
72401
72650
|
return {
|
|
72402
72651
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72411,9 +72660,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
72411
72660
|
|
|
72412
72661
|
// src/funcs/transfersListRefunds.ts
|
|
72413
72662
|
function transfersListRefunds(client, request, options) {
|
|
72414
|
-
return new APIPromise($
|
|
72663
|
+
return new APIPromise($do130(client, request, options));
|
|
72415
72664
|
}
|
|
72416
|
-
async function $
|
|
72665
|
+
async function $do130(client, request, options) {
|
|
72417
72666
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72418
72667
|
if (!parsed.ok) {
|
|
72419
72668
|
return [parsed, { status: "invalid" }];
|
|
@@ -72495,12 +72744,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
72495
72744
|
});
|
|
72496
72745
|
|
|
72497
72746
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
72498
|
-
var
|
|
72747
|
+
var args130, tool$transfersListRefunds;
|
|
72499
72748
|
var init_transfersListRefunds2 = __esm(() => {
|
|
72500
72749
|
init_transfersListRefunds();
|
|
72501
72750
|
init_operations();
|
|
72502
72751
|
init_tools();
|
|
72503
|
-
|
|
72752
|
+
args130 = {
|
|
72504
72753
|
request: ListRefundsRequest$inboundSchema
|
|
72505
72754
|
};
|
|
72506
72755
|
tool$transfersListRefunds = {
|
|
@@ -72509,9 +72758,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
72509
72758
|
|
|
72510
72759
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72511
72760
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72512
|
-
args:
|
|
72513
|
-
tool: async (client,
|
|
72514
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
72761
|
+
args: args130,
|
|
72762
|
+
tool: async (client, args131, ctx) => {
|
|
72763
|
+
const [result, apiCall] = await transfersListRefunds(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72515
72764
|
if (!result.ok) {
|
|
72516
72765
|
return {
|
|
72517
72766
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72526,9 +72775,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
72526
72775
|
|
|
72527
72776
|
// src/funcs/transfersUpdate.ts
|
|
72528
72777
|
function transfersUpdate(client, request, options) {
|
|
72529
|
-
return new APIPromise($
|
|
72778
|
+
return new APIPromise($do131(client, request, options));
|
|
72530
72779
|
}
|
|
72531
|
-
async function $
|
|
72780
|
+
async function $do131(client, request, options) {
|
|
72532
72781
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72533
72782
|
if (!parsed.ok) {
|
|
72534
72783
|
return [parsed, { status: "invalid" }];
|
|
@@ -72611,12 +72860,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
72611
72860
|
});
|
|
72612
72861
|
|
|
72613
72862
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
72614
|
-
var
|
|
72863
|
+
var args131, tool$transfersUpdate;
|
|
72615
72864
|
var init_transfersUpdate2 = __esm(() => {
|
|
72616
72865
|
init_transfersUpdate();
|
|
72617
72866
|
init_operations();
|
|
72618
72867
|
init_tools();
|
|
72619
|
-
|
|
72868
|
+
args131 = {
|
|
72620
72869
|
request: UpdateTransferRequest$inboundSchema
|
|
72621
72870
|
};
|
|
72622
72871
|
tool$transfersUpdate = {
|
|
@@ -72627,9 +72876,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
72627
72876
|
|
|
72628
72877
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72629
72878
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72630
|
-
args:
|
|
72631
|
-
tool: async (client,
|
|
72632
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
72879
|
+
args: args131,
|
|
72880
|
+
tool: async (client, args132, ctx) => {
|
|
72881
|
+
const [result, apiCall] = await transfersUpdate(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72633
72882
|
if (!result.ok) {
|
|
72634
72883
|
return {
|
|
72635
72884
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72644,9 +72893,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72644
72893
|
|
|
72645
72894
|
// src/funcs/underwritingGet.ts
|
|
72646
72895
|
function underwritingGet(client, request, options) {
|
|
72647
|
-
return new APIPromise($
|
|
72896
|
+
return new APIPromise($do132(client, request, options));
|
|
72648
72897
|
}
|
|
72649
|
-
async function $
|
|
72898
|
+
async function $do132(client, request, options) {
|
|
72650
72899
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72651
72900
|
if (!parsed.ok) {
|
|
72652
72901
|
return [parsed, { status: "invalid" }];
|
|
@@ -72724,12 +72973,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
72724
72973
|
});
|
|
72725
72974
|
|
|
72726
72975
|
// src/mcp-server/tools/underwritingGet.ts
|
|
72727
|
-
var
|
|
72976
|
+
var args132, tool$underwritingGet;
|
|
72728
72977
|
var init_underwritingGet2 = __esm(() => {
|
|
72729
72978
|
init_underwritingGet();
|
|
72730
72979
|
init_operations();
|
|
72731
72980
|
init_tools();
|
|
72732
|
-
|
|
72981
|
+
args132 = {
|
|
72733
72982
|
request: GetUnderwritingRequest$inboundSchema
|
|
72734
72983
|
};
|
|
72735
72984
|
tool$underwritingGet = {
|
|
@@ -72740,9 +72989,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
72740
72989
|
|
|
72741
72990
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72742
72991
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
72743
|
-
args:
|
|
72744
|
-
tool: async (client,
|
|
72745
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
72992
|
+
args: args132,
|
|
72993
|
+
tool: async (client, args133, ctx) => {
|
|
72994
|
+
const [result, apiCall] = await underwritingGet(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72746
72995
|
if (!result.ok) {
|
|
72747
72996
|
return {
|
|
72748
72997
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72757,9 +73006,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
72757
73006
|
|
|
72758
73007
|
// src/funcs/underwritingUpsert.ts
|
|
72759
73008
|
function underwritingUpsert(client, request, options) {
|
|
72760
|
-
return new APIPromise($
|
|
73009
|
+
return new APIPromise($do133(client, request, options));
|
|
72761
73010
|
}
|
|
72762
|
-
async function $
|
|
73011
|
+
async function $do133(client, request, options) {
|
|
72763
73012
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72764
73013
|
if (!parsed.ok) {
|
|
72765
73014
|
return [parsed, { status: "invalid" }];
|
|
@@ -72855,12 +73104,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
72855
73104
|
});
|
|
72856
73105
|
|
|
72857
73106
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
72858
|
-
var
|
|
73107
|
+
var args133, tool$underwritingUpsert;
|
|
72859
73108
|
var init_underwritingUpsert2 = __esm(() => {
|
|
72860
73109
|
init_underwritingUpsert();
|
|
72861
73110
|
init_operations();
|
|
72862
73111
|
init_tools();
|
|
72863
|
-
|
|
73112
|
+
args133 = {
|
|
72864
73113
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
72865
73114
|
};
|
|
72866
73115
|
tool$underwritingUpsert = {
|
|
@@ -72871,9 +73120,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
72871
73120
|
|
|
72872
73121
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72873
73122
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
72874
|
-
args:
|
|
72875
|
-
tool: async (client,
|
|
72876
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
73123
|
+
args: args133,
|
|
73124
|
+
tool: async (client, args134, ctx) => {
|
|
73125
|
+
const [result, apiCall] = await underwritingUpsert(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72877
73126
|
if (!result.ok) {
|
|
72878
73127
|
return {
|
|
72879
73128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72888,9 +73137,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
72888
73137
|
|
|
72889
73138
|
// src/funcs/walletsGet.ts
|
|
72890
73139
|
function walletsGet(client, request, options) {
|
|
72891
|
-
return new APIPromise($
|
|
73140
|
+
return new APIPromise($do134(client, request, options));
|
|
72892
73141
|
}
|
|
72893
|
-
async function $
|
|
73142
|
+
async function $do134(client, request, options) {
|
|
72894
73143
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72895
73144
|
if (!parsed.ok) {
|
|
72896
73145
|
return [parsed, { status: "invalid" }];
|
|
@@ -72972,12 +73221,12 @@ var init_walletsGet = __esm(() => {
|
|
|
72972
73221
|
});
|
|
72973
73222
|
|
|
72974
73223
|
// src/mcp-server/tools/walletsGet.ts
|
|
72975
|
-
var
|
|
73224
|
+
var args134, tool$walletsGet;
|
|
72976
73225
|
var init_walletsGet2 = __esm(() => {
|
|
72977
73226
|
init_walletsGet();
|
|
72978
73227
|
init_operations();
|
|
72979
73228
|
init_tools();
|
|
72980
|
-
|
|
73229
|
+
args134 = {
|
|
72981
73230
|
request: GetWalletRequest$inboundSchema
|
|
72982
73231
|
};
|
|
72983
73232
|
tool$walletsGet = {
|
|
@@ -72988,9 +73237,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
72988
73237
|
|
|
72989
73238
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72990
73239
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
72991
|
-
args:
|
|
72992
|
-
tool: async (client,
|
|
72993
|
-
const [result, apiCall] = await walletsGet(client,
|
|
73240
|
+
args: args134,
|
|
73241
|
+
tool: async (client, args135, ctx) => {
|
|
73242
|
+
const [result, apiCall] = await walletsGet(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72994
73243
|
if (!result.ok) {
|
|
72995
73244
|
return {
|
|
72996
73245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73005,9 +73254,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
73005
73254
|
|
|
73006
73255
|
// src/funcs/walletsList.ts
|
|
73007
73256
|
function walletsList(client, request, options) {
|
|
73008
|
-
return new APIPromise($
|
|
73257
|
+
return new APIPromise($do135(client, request, options));
|
|
73009
73258
|
}
|
|
73010
|
-
async function $
|
|
73259
|
+
async function $do135(client, request, options) {
|
|
73011
73260
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73012
73261
|
if (!parsed.ok) {
|
|
73013
73262
|
return [parsed, { status: "invalid" }];
|
|
@@ -73085,12 +73334,12 @@ var init_walletsList = __esm(() => {
|
|
|
73085
73334
|
});
|
|
73086
73335
|
|
|
73087
73336
|
// src/mcp-server/tools/walletsList.ts
|
|
73088
|
-
var
|
|
73337
|
+
var args135, tool$walletsList;
|
|
73089
73338
|
var init_walletsList2 = __esm(() => {
|
|
73090
73339
|
init_walletsList();
|
|
73091
73340
|
init_operations();
|
|
73092
73341
|
init_tools();
|
|
73093
|
-
|
|
73342
|
+
args135 = {
|
|
73094
73343
|
request: ListWalletsRequest$inboundSchema
|
|
73095
73344
|
};
|
|
73096
73345
|
tool$walletsList = {
|
|
@@ -73101,9 +73350,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
73101
73350
|
|
|
73102
73351
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73103
73352
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
73104
|
-
args:
|
|
73105
|
-
tool: async (client,
|
|
73106
|
-
const [result, apiCall] = await walletsList(client,
|
|
73353
|
+
args: args135,
|
|
73354
|
+
tool: async (client, args136, ctx) => {
|
|
73355
|
+
const [result, apiCall] = await walletsList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73107
73356
|
if (!result.ok) {
|
|
73108
73357
|
return {
|
|
73109
73358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73118,9 +73367,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
73118
73367
|
|
|
73119
73368
|
// src/funcs/walletTransactionsGet.ts
|
|
73120
73369
|
function walletTransactionsGet(client, request, options) {
|
|
73121
|
-
return new APIPromise($
|
|
73370
|
+
return new APIPromise($do136(client, request, options));
|
|
73122
73371
|
}
|
|
73123
|
-
async function $
|
|
73372
|
+
async function $do136(client, request, options) {
|
|
73124
73373
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73125
73374
|
if (!parsed.ok) {
|
|
73126
73375
|
return [parsed, { status: "invalid" }];
|
|
@@ -73206,12 +73455,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
73206
73455
|
});
|
|
73207
73456
|
|
|
73208
73457
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
73209
|
-
var
|
|
73458
|
+
var args136, tool$walletTransactionsGet;
|
|
73210
73459
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
73211
73460
|
init_walletTransactionsGet();
|
|
73212
73461
|
init_operations();
|
|
73213
73462
|
init_tools();
|
|
73214
|
-
|
|
73463
|
+
args136 = {
|
|
73215
73464
|
request: GetWalletTransactionRequest$inboundSchema
|
|
73216
73465
|
};
|
|
73217
73466
|
tool$walletTransactionsGet = {
|
|
@@ -73222,9 +73471,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
73222
73471
|
|
|
73223
73472
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73224
73473
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
73225
|
-
args:
|
|
73226
|
-
tool: async (client,
|
|
73227
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
73474
|
+
args: args136,
|
|
73475
|
+
tool: async (client, args137, ctx) => {
|
|
73476
|
+
const [result, apiCall] = await walletTransactionsGet(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73228
73477
|
if (!result.ok) {
|
|
73229
73478
|
return {
|
|
73230
73479
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73239,9 +73488,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
73239
73488
|
|
|
73240
73489
|
// src/funcs/walletTransactionsList.ts
|
|
73241
73490
|
function walletTransactionsList(client, request, options) {
|
|
73242
|
-
return new APIPromise($
|
|
73491
|
+
return new APIPromise($do137(client, request, options));
|
|
73243
73492
|
}
|
|
73244
|
-
async function $
|
|
73493
|
+
async function $do137(client, request, options) {
|
|
73245
73494
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73246
73495
|
if (!parsed.ok) {
|
|
73247
73496
|
return [parsed, { status: "invalid" }];
|
|
@@ -73338,12 +73587,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
73338
73587
|
});
|
|
73339
73588
|
|
|
73340
73589
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
73341
|
-
var
|
|
73590
|
+
var args137, tool$walletTransactionsList;
|
|
73342
73591
|
var init_walletTransactionsList2 = __esm(() => {
|
|
73343
73592
|
init_walletTransactionsList();
|
|
73344
73593
|
init_operations();
|
|
73345
73594
|
init_tools();
|
|
73346
|
-
|
|
73595
|
+
args137 = {
|
|
73347
73596
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
73348
73597
|
};
|
|
73349
73598
|
tool$walletTransactionsList = {
|
|
@@ -73354,9 +73603,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
73354
73603
|
|
|
73355
73604
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73356
73605
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
73357
|
-
args:
|
|
73358
|
-
tool: async (client,
|
|
73359
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
73606
|
+
args: args137,
|
|
73607
|
+
tool: async (client, args138, ctx) => {
|
|
73608
|
+
const [result, apiCall] = await walletTransactionsList(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73360
73609
|
if (!result.ok) {
|
|
73361
73610
|
return {
|
|
73362
73611
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73373,7 +73622,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
73373
73622
|
function createMCPServer(deps) {
|
|
73374
73623
|
const server = new McpServer({
|
|
73375
73624
|
name: "Moov",
|
|
73376
|
-
version: "0.12.
|
|
73625
|
+
version: "0.12.5"
|
|
73377
73626
|
});
|
|
73378
73627
|
const client = new MoovCore({
|
|
73379
73628
|
security: deps.security,
|
|
@@ -73476,6 +73725,7 @@ function createMCPServer(deps) {
|
|
|
73476
73725
|
tool(tool$accountTerminalApplicationsList);
|
|
73477
73726
|
tool(tool$accountTerminalApplicationsGet);
|
|
73478
73727
|
tool(tool$accountTerminalApplicationsGetConfiguration);
|
|
73728
|
+
tool(tool$transfersGenerateOptionsForAccount);
|
|
73479
73729
|
tool(tool$transfersCreate);
|
|
73480
73730
|
tool(tool$transfersList);
|
|
73481
73731
|
tool(tool$transfersGet);
|
|
@@ -73654,6 +73904,7 @@ var init_server2 = __esm(() => {
|
|
|
73654
73904
|
init_transfersCreateCancellation2();
|
|
73655
73905
|
init_transfersCreateReversal2();
|
|
73656
73906
|
init_transfersGenerateOptions2();
|
|
73907
|
+
init_transfersGenerateOptionsForAccount2();
|
|
73657
73908
|
init_transfersGet2();
|
|
73658
73909
|
init_transfersGetCancellation2();
|
|
73659
73910
|
init_transfersGetRefund2();
|
|
@@ -74885,7 +75136,7 @@ var routes = rn({
|
|
|
74885
75136
|
var app = Ve(routes, {
|
|
74886
75137
|
name: "mcp",
|
|
74887
75138
|
versionInfo: {
|
|
74888
|
-
currentVersion: "0.12.
|
|
75139
|
+
currentVersion: "0.12.5"
|
|
74889
75140
|
}
|
|
74890
75141
|
});
|
|
74891
75142
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -74893,5 +75144,5 @@ export {
|
|
|
74893
75144
|
app
|
|
74894
75145
|
};
|
|
74895
75146
|
|
|
74896
|
-
//# debugId=
|
|
75147
|
+
//# debugId=8F52E6348C6AAF2E64756E2164756E21
|
|
74897
75148
|
//# sourceMappingURL=mcp-server.js.map
|