@moovio/sdk 26.4.0 → 26.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -59
- package/bin/mcp-server.js +1320 -514
- package/bin/mcp-server.js.map +50 -27
- package/funcs/googlePayLinkToken.d.ts +3 -1
- package/funcs/googlePayLinkToken.d.ts.map +1 -1
- package/funcs/googlePayLinkToken.js +3 -1
- package/funcs/googlePayLinkToken.js.map +1 -1
- package/funcs/transferConfigCreate.d.ts +15 -0
- package/funcs/transferConfigCreate.d.ts.map +1 -0
- package/funcs/transferConfigCreate.js +128 -0
- package/funcs/transferConfigCreate.js.map +1 -0
- package/funcs/transferConfigGet.d.ts +14 -0
- package/funcs/transferConfigGet.d.ts.map +1 -0
- package/funcs/transferConfigGet.js +122 -0
- package/funcs/transferConfigGet.js.map +1 -0
- package/funcs/transferConfigUpdate.d.ts +15 -0
- package/funcs/transferConfigUpdate.d.ts.map +1 -0
- package/funcs/transferConfigUpdate.js +126 -0
- package/funcs/transferConfigUpdate.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 +7 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/googlePayLinkToken.d.ts.map +1 -1
- package/mcp-server/tools/googlePayLinkToken.js +3 -1
- package/mcp-server/tools/googlePayLinkToken.js.map +1 -1
- package/mcp-server/tools/transferConfigCreate.d.ts +8 -0
- package/mcp-server/tools/transferConfigCreate.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigCreate.js +62 -0
- package/mcp-server/tools/transferConfigCreate.js.map +1 -0
- package/mcp-server/tools/transferConfigGet.d.ts +8 -0
- package/mcp-server/tools/transferConfigGet.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigGet.js +62 -0
- package/mcp-server/tools/transferConfigGet.js.map +1 -0
- package/mcp-server/tools/transferConfigUpdate.d.ts +8 -0
- package/mcp-server/tools/transferConfigUpdate.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigUpdate.js +62 -0
- package/mcp-server/tools/transferConfigUpdate.js.map +1 -0
- package/models/components/createdtransfer.d.ts +4 -1
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +3 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +13 -0
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createtippresets.d.ts +36 -0
- package/models/components/createtippresets.d.ts.map +1 -0
- package/models/components/createtippresets.js +64 -0
- package/models/components/createtippresets.js.map +1 -0
- package/models/components/createtransfer.d.ts +3 -3
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/createtransferamountdetails.d.ts +21 -0
- package/models/components/createtransferamountdetails.d.ts.map +1 -0
- package/models/components/createtransferamountdetails.js +59 -0
- package/models/components/createtransferamountdetails.js.map +1 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/createtransferamountdetailsvalidationerror.js +58 -0
- package/models/components/createtransferamountdetailsvalidationerror.js.map +1 -0
- package/models/components/createtransferconfig.d.ts +18 -0
- package/models/components/createtransferconfig.d.ts.map +1 -0
- package/models/components/{googlepayintermediatesigningkey.js → createtransferconfig.js} +13 -14
- package/models/components/createtransferconfig.js.map +1 -0
- package/models/components/googlepayassurancedetails.d.ts +28 -0
- package/models/components/googlepayassurancedetails.d.ts.map +1 -0
- package/models/components/googlepayassurancedetails.js +60 -0
- package/models/components/googlepayassurancedetails.js.map +1 -0
- package/models/components/googlepaybillingaddress.d.ts +73 -0
- package/models/components/googlepaybillingaddress.d.ts.map +1 -0
- package/models/components/googlepaybillingaddress.js +76 -0
- package/models/components/googlepaybillingaddress.js.map +1 -0
- package/models/components/googlepaycardinfo.d.ts +91 -0
- package/models/components/googlepaycardinfo.d.ts.map +1 -0
- package/models/components/googlepaycardinfo.js +98 -0
- package/models/components/googlepaycardinfo.js.map +1 -0
- package/models/components/googlepaypaymentmethoddata.d.ts +65 -0
- package/models/components/googlepaypaymentmethoddata.d.ts.map +1 -0
- package/models/components/googlepaypaymentmethoddata.js +76 -0
- package/models/components/googlepaypaymentmethoddata.js.map +1 -0
- package/models/components/googlepaytokenizationdata.d.ts +47 -0
- package/models/components/googlepaytokenizationdata.d.ts.map +1 -0
- package/models/components/googlepaytokenizationdata.js +70 -0
- package/models/components/googlepaytokenizationdata.js.map +1 -0
- package/models/components/index.d.ts +15 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +15 -2
- package/models/components/index.js.map +1 -1
- package/models/components/linkedgooglepaypaymentmethod.d.ts +5 -10
- package/models/components/linkedgooglepaypaymentmethod.d.ts.map +1 -1
- package/models/components/linkedgooglepaypaymentmethod.js +4 -11
- package/models/components/linkedgooglepaypaymentmethod.js.map +1 -1
- package/models/components/linkgooglepay.d.ts +17 -9
- package/models/components/linkgooglepay.d.ts.map +1 -1
- package/models/components/linkgooglepay.js +5 -3
- package/models/components/linkgooglepay.js.map +1 -1
- package/models/components/paymentlink.d.ts +10 -0
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomeroptions.d.ts +5 -0
- package/models/components/paymentlinkcustomeroptions.d.ts.map +1 -1
- package/models/components/paymentlinkcustomeroptions.js +2 -0
- package/models/components/paymentlinkcustomeroptions.js.map +1 -1
- package/models/components/puttippresets.d.ts +36 -0
- package/models/components/puttippresets.d.ts.map +1 -0
- package/models/components/puttippresets.js +64 -0
- package/models/components/puttippresets.js.map +1 -0
- package/models/components/puttransferconfig.d.ts +18 -0
- package/models/components/puttransferconfig.d.ts.map +1 -0
- package/models/components/puttransferconfig.js +59 -0
- package/models/components/puttransferconfig.js.map +1 -0
- package/models/components/tipcalculationbasis.d.ts +26 -0
- package/models/components/tipcalculationbasis.d.ts.map +1 -0
- package/models/components/tipcalculationbasis.js +56 -0
- package/models/components/tipcalculationbasis.js.map +1 -0
- package/models/components/tippresets.d.ts +39 -0
- package/models/components/tippresets.d.ts.map +1 -0
- package/models/components/tippresets.js +64 -0
- package/models/components/tippresets.js.map +1 -0
- package/models/components/transfer.d.ts +3 -3
- 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/components/transferamountdetails.d.ts +21 -0
- package/models/components/transferamountdetails.d.ts.map +1 -0
- package/models/components/transferamountdetails.js +59 -0
- package/models/components/transferamountdetails.js.map +1 -0
- package/models/components/transferconfig.d.ts +24 -0
- package/models/components/transferconfig.d.ts.map +1 -0
- package/models/components/{googlepaytoken.js → transferconfig.js} +13 -19
- package/models/components/transferconfig.js.map +1 -0
- package/models/components/transferdestination.d.ts +6 -0
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +3 -0
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/transfersource.d.ts +6 -0
- package/models/components/transfersource.d.ts.map +1 -1
- package/models/components/transfersource.js +3 -0
- package/models/components/transfersource.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/linkgooglepayerror.d.ts +14 -5
- package/models/errors/linkgooglepayerror.d.ts.map +1 -1
- package/models/errors/linkgooglepayerror.js +10 -4
- package/models/errors/linkgooglepayerror.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -6
- 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/errors/transferconfigvalidationerror.d.ts +43 -0
- package/models/errors/transferconfigvalidationerror.d.ts.map +1 -0
- package/models/errors/transferconfigvalidationerror.js +99 -0
- package/models/errors/transferconfigvalidationerror.js.map +1 -0
- package/models/errors/transfervalidationerror.d.ts +3 -0
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +6 -0
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/models/operations/createtransferconfig.d.ts +42 -0
- package/models/operations/createtransferconfig.d.ts.map +1 -0
- package/models/operations/createtransferconfig.js +98 -0
- package/models/operations/createtransferconfig.js.map +1 -0
- package/models/operations/gettransferconfig.d.ts +37 -0
- package/models/operations/gettransferconfig.d.ts.map +1 -0
- package/models/operations/gettransferconfig.js +88 -0
- package/models/operations/gettransferconfig.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updatetransferconfig.d.ts +39 -0
- package/models/operations/updatetransferconfig.d.ts.map +1 -0
- package/models/operations/updatetransferconfig.js +98 -0
- package/models/operations/updatetransferconfig.js.map +1 -0
- package/package.json +1 -1
- package/sdk/googlepay.d.ts +3 -1
- package/sdk/googlepay.d.ts.map +1 -1
- package/sdk/googlepay.js +3 -1
- package/sdk/googlepay.js.map +1 -1
- 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/transferconfig.d.ts +17 -0
- package/sdk/transferconfig.d.ts.map +1 -0
- package/sdk/transferconfig.js +33 -0
- package/sdk/transferconfig.js.map +1 -0
- package/src/funcs/googlePayLinkToken.ts +3 -1
- package/src/funcs/transferConfigCreate.ts +187 -0
- package/src/funcs/transferConfigGet.ts +172 -0
- package/src/funcs/transferConfigUpdate.ts +185 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/googlePayLinkToken.ts +3 -1
- package/src/mcp-server/tools/transferConfigCreate.ts +35 -0
- package/src/mcp-server/tools/transferConfigGet.ts +35 -0
- package/src/mcp-server/tools/transferConfigUpdate.ts +35 -0
- package/src/models/components/createdtransfer.ts +11 -1
- package/src/models/components/createpaymentlink.ts +13 -0
- package/src/models/components/createtippresets.ts +83 -0
- package/src/models/components/createtransfer.ts +10 -3
- package/src/models/components/createtransferamountdetails.ts +62 -0
- package/src/models/components/createtransferamountdetailsvalidationerror.ts +59 -0
- package/src/models/components/createtransferconfig.ts +57 -0
- package/src/models/components/googlepayassurancedetails.ts +64 -0
- package/src/models/components/googlepaybillingaddress.ts +125 -0
- package/src/models/components/googlepaycardinfo.ts +153 -0
- package/src/models/components/googlepaypaymentmethoddata.ts +120 -0
- package/src/models/components/googlepaytokenizationdata.ts +91 -0
- package/src/models/components/index.ts +15 -2
- package/src/models/components/linkedgooglepaypaymentmethod.ts +11 -22
- package/src/models/components/linkgooglepay.ts +25 -15
- package/src/models/components/paymentlink.ts +10 -0
- package/src/models/components/paymentlinkcustomeroptions.ts +7 -0
- package/src/models/components/puttippresets.ts +79 -0
- package/src/models/components/puttransferconfig.ts +57 -0
- package/src/models/components/tipcalculationbasis.ts +35 -0
- package/src/models/components/tippresets.ts +82 -0
- package/src/models/components/transfer.ts +10 -3
- package/src/models/components/transferamountdetails.ts +60 -0
- package/src/models/components/transferconfig.ts +59 -0
- package/src/models/components/transferdestination.ts +13 -0
- package/src/models/components/transfersource.ts +13 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/linkgooglepayerror.ts +24 -8
- package/src/models/errors/transfer.ts +6 -6
- package/src/models/errors/transferconfigvalidationerror.ts +110 -0
- package/src/models/errors/transfervalidationerror.ts +14 -0
- package/src/models/operations/createtransferconfig.ts +129 -0
- package/src/models/operations/gettransferconfig.ts +110 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updatetransferconfig.ts +126 -0
- package/src/sdk/googlepay.ts +3 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transferconfig.ts +54 -0
- package/models/components/googlepayintermediatesigningkey.d.ts +0 -28
- package/models/components/googlepayintermediatesigningkey.d.ts.map +0 -1
- package/models/components/googlepayintermediatesigningkey.js.map +0 -1
- package/models/components/googlepaytoken.d.ts +0 -44
- package/models/components/googlepaytoken.d.ts.map +0 -1
- package/models/components/googlepaytoken.js.map +0 -1
- package/src/models/components/googlepayintermediatesigningkey.ts +0 -66
- package/src/models/components/googlepaytoken.ts +0 -85
package/bin/mcp-server.js
CHANGED
|
@@ -52879,9 +52879,9 @@ var init_config = __esm(() => {
|
|
|
52879
52879
|
SDK_METADATA = {
|
|
52880
52880
|
language: "typescript",
|
|
52881
52881
|
openapiDocVersion: "v2026.04.00",
|
|
52882
|
-
sdkVersion: "26.4.
|
|
52883
|
-
genVersion: "2.881.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 26.4.
|
|
52882
|
+
sdkVersion: "26.4.1",
|
|
52883
|
+
genVersion: "2.881.4",
|
|
52884
|
+
userAgent: "speakeasy-sdk/typescript 26.4.1 2.881.4 v2026.04.00 @moovio/sdk"
|
|
52885
52885
|
};
|
|
52886
52886
|
});
|
|
52887
52887
|
|
|
@@ -61281,6 +61281,41 @@ var init_moovfeedetails = __esm(() => {
|
|
|
61281
61281
|
});
|
|
61282
61282
|
});
|
|
61283
61283
|
|
|
61284
|
+
// src/models/components/transferamountdetails.ts
|
|
61285
|
+
var TransferAmountDetails$inboundSchema, TransferAmountDetails$outboundSchema;
|
|
61286
|
+
var init_transferamountdetails = __esm(() => {
|
|
61287
|
+
init_esm();
|
|
61288
|
+
init_amountdecimal();
|
|
61289
|
+
TransferAmountDetails$inboundSchema = objectType({
|
|
61290
|
+
tip: AmountDecimal$inboundSchema.optional()
|
|
61291
|
+
});
|
|
61292
|
+
TransferAmountDetails$outboundSchema = objectType({
|
|
61293
|
+
tip: AmountDecimal$outboundSchema.optional()
|
|
61294
|
+
});
|
|
61295
|
+
});
|
|
61296
|
+
|
|
61297
|
+
// src/models/components/googlepayresponse.ts
|
|
61298
|
+
var GooglePayResponse$inboundSchema, GooglePayResponse$outboundSchema;
|
|
61299
|
+
var init_googlepayresponse = __esm(() => {
|
|
61300
|
+
init_esm();
|
|
61301
|
+
init_cardbrand();
|
|
61302
|
+
init_cardexpiration();
|
|
61303
|
+
GooglePayResponse$inboundSchema = objectType({
|
|
61304
|
+
brand: CardBrand$inboundSchema,
|
|
61305
|
+
cardDetails: stringType(),
|
|
61306
|
+
fingerprint: stringType(),
|
|
61307
|
+
expiration: CardExpiration$inboundSchema,
|
|
61308
|
+
issuerCountry: stringType().optional()
|
|
61309
|
+
});
|
|
61310
|
+
GooglePayResponse$outboundSchema = objectType({
|
|
61311
|
+
brand: CardBrand$outboundSchema,
|
|
61312
|
+
cardDetails: stringType(),
|
|
61313
|
+
fingerprint: stringType(),
|
|
61314
|
+
expiration: CardExpiration$outboundSchema,
|
|
61315
|
+
issuerCountry: stringType().optional()
|
|
61316
|
+
});
|
|
61317
|
+
});
|
|
61318
|
+
|
|
61284
61319
|
// src/models/components/instantbankfailurecode.ts
|
|
61285
61320
|
var InstantBankFailureCode, InstantBankFailureCode$inboundSchema, InstantBankFailureCode$outboundSchema;
|
|
61286
61321
|
var init_instantbankfailurecode = __esm(() => {
|
|
@@ -61472,6 +61507,7 @@ var init_transferdestination = __esm(() => {
|
|
|
61472
61507
|
init_achtransactiondetails();
|
|
61473
61508
|
init_applepayresponse();
|
|
61474
61509
|
init_cardtransactiondetails();
|
|
61510
|
+
init_googlepayresponse();
|
|
61475
61511
|
init_instantbanktransactiondetails();
|
|
61476
61512
|
init_rtpfailurecode();
|
|
61477
61513
|
init_rtptransactionstatus();
|
|
@@ -61507,6 +61543,7 @@ var init_transferdestination = __esm(() => {
|
|
|
61507
61543
|
card: TransferPaymentMethodsCard$inboundSchema.optional(),
|
|
61508
61544
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
61509
61545
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
61546
|
+
googlePay: GooglePayResponse$inboundSchema.optional(),
|
|
61510
61547
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
61511
61548
|
rtpDetails: lazyType(() => RtpDetails$inboundSchema).optional(),
|
|
61512
61549
|
instantBankDetails: InstantBankTransactionDetails$inboundSchema.optional()
|
|
@@ -61520,6 +61557,7 @@ var init_transferdestination = __esm(() => {
|
|
|
61520
61557
|
card: TransferPaymentMethodsCard$outboundSchema.optional(),
|
|
61521
61558
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
61522
61559
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
61560
|
+
googlePay: GooglePayResponse$outboundSchema.optional(),
|
|
61523
61561
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
61524
61562
|
rtpDetails: lazyType(() => RtpDetails$outboundSchema).optional(),
|
|
61525
61563
|
instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional()
|
|
@@ -61626,6 +61664,7 @@ var init_transfersource = __esm(() => {
|
|
|
61626
61664
|
init_achtransactiondetails();
|
|
61627
61665
|
init_applepayresponse();
|
|
61628
61666
|
init_cardtransactiondetails();
|
|
61667
|
+
init_googlepayresponse();
|
|
61629
61668
|
init_transferaccount();
|
|
61630
61669
|
init_transferpaymentmethodsbankaccount();
|
|
61631
61670
|
init_transferpaymentmethodscard();
|
|
@@ -61641,6 +61680,7 @@ var init_transfersource = __esm(() => {
|
|
|
61641
61680
|
wallet: TransferPaymentMethodsWallet$inboundSchema.optional(),
|
|
61642
61681
|
card: TransferPaymentMethodsCard$inboundSchema.optional(),
|
|
61643
61682
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
61683
|
+
googlePay: GooglePayResponse$inboundSchema.optional(),
|
|
61644
61684
|
terminalCard: TransferTerminalCard$inboundSchema.optional(),
|
|
61645
61685
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
61646
61686
|
achDetails: ACHTransactionDetails$inboundSchema.optional()
|
|
@@ -61654,6 +61694,7 @@ var init_transfersource = __esm(() => {
|
|
|
61654
61694
|
wallet: TransferPaymentMethodsWallet$outboundSchema.optional(),
|
|
61655
61695
|
card: TransferPaymentMethodsCard$outboundSchema.optional(),
|
|
61656
61696
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
61697
|
+
googlePay: GooglePayResponse$outboundSchema.optional(),
|
|
61657
61698
|
terminalCard: TransferTerminalCard$outboundSchema.optional(),
|
|
61658
61699
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
61659
61700
|
achDetails: ACHTransactionDetails$outboundSchema.optional()
|
|
@@ -61687,6 +61728,7 @@ var init_createdtransfer = __esm(() => {
|
|
|
61687
61728
|
init_cardacquiringrefund();
|
|
61688
61729
|
init_facilitatorfee();
|
|
61689
61730
|
init_moovfeedetails();
|
|
61731
|
+
init_transferamountdetails();
|
|
61690
61732
|
init_transferdestination();
|
|
61691
61733
|
init_transferfailurereason();
|
|
61692
61734
|
init_transferlineitems();
|
|
@@ -61719,7 +61761,8 @@ var init_createdtransfer = __esm(() => {
|
|
|
61719
61761
|
paymentLinkCode: stringType().optional(),
|
|
61720
61762
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
61721
61763
|
foreignID: stringType().optional(),
|
|
61722
|
-
lineItems: TransferLineItems$inboundSchema.optional()
|
|
61764
|
+
lineItems: TransferLineItems$inboundSchema.optional(),
|
|
61765
|
+
amountDetails: TransferAmountDetails$inboundSchema.optional()
|
|
61723
61766
|
});
|
|
61724
61767
|
CreatedTransfer$outboundSchema = objectType({
|
|
61725
61768
|
transferID: stringType(),
|
|
@@ -61748,7 +61791,8 @@ var init_createdtransfer = __esm(() => {
|
|
|
61748
61791
|
paymentLinkCode: stringType().optional(),
|
|
61749
61792
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
61750
61793
|
foreignID: stringType().optional(),
|
|
61751
|
-
lineItems: TransferLineItems$outboundSchema.optional()
|
|
61794
|
+
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
61795
|
+
amountDetails: TransferAmountDetails$outboundSchema.optional()
|
|
61752
61796
|
});
|
|
61753
61797
|
});
|
|
61754
61798
|
|
|
@@ -62154,11 +62198,13 @@ var init_paymentlinkcustomeroptions = __esm(() => {
|
|
|
62154
62198
|
PaymentLinkCustomerOptions$inboundSchema = objectType({
|
|
62155
62199
|
requireAddress: booleanType().optional(),
|
|
62156
62200
|
requirePhone: booleanType().optional(),
|
|
62201
|
+
tippingEnabled: booleanType().optional(),
|
|
62157
62202
|
metadata: recordType(stringType()).optional()
|
|
62158
62203
|
});
|
|
62159
62204
|
PaymentLinkCustomerOptions$outboundSchema = objectType({
|
|
62160
62205
|
requireAddress: booleanType().optional(),
|
|
62161
62206
|
requirePhone: booleanType().optional(),
|
|
62207
|
+
tippingEnabled: booleanType().optional(),
|
|
62162
62208
|
metadata: recordType(stringType()).optional()
|
|
62163
62209
|
});
|
|
62164
62210
|
});
|
|
@@ -62743,6 +62789,49 @@ var init_createticketcontacterror = __esm(() => {
|
|
|
62743
62789
|
});
|
|
62744
62790
|
});
|
|
62745
62791
|
|
|
62792
|
+
// src/models/components/tipcalculationbasis.ts
|
|
62793
|
+
var TipCalculationBasis, TipCalculationBasis$inboundSchema, TipCalculationBasis$outboundSchema;
|
|
62794
|
+
var init_tipcalculationbasis = __esm(() => {
|
|
62795
|
+
init_esm();
|
|
62796
|
+
TipCalculationBasis = {
|
|
62797
|
+
PreTax: "pre-tax",
|
|
62798
|
+
PostTax: "post-tax"
|
|
62799
|
+
};
|
|
62800
|
+
TipCalculationBasis$inboundSchema = nativeEnumType(TipCalculationBasis);
|
|
62801
|
+
TipCalculationBasis$outboundSchema = TipCalculationBasis$inboundSchema;
|
|
62802
|
+
});
|
|
62803
|
+
|
|
62804
|
+
// src/models/components/createtippresets.ts
|
|
62805
|
+
var CreateTipPresets$inboundSchema, CreateTipPresets$outboundSchema;
|
|
62806
|
+
var init_createtippresets = __esm(() => {
|
|
62807
|
+
init_esm();
|
|
62808
|
+
init_amountdecimal();
|
|
62809
|
+
init_tipcalculationbasis();
|
|
62810
|
+
CreateTipPresets$inboundSchema = objectType({
|
|
62811
|
+
calculationBasis: TipCalculationBasis$inboundSchema.optional(),
|
|
62812
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
62813
|
+
fixedAmountOptions: arrayType(AmountDecimal$inboundSchema).optional()
|
|
62814
|
+
});
|
|
62815
|
+
CreateTipPresets$outboundSchema = objectType({
|
|
62816
|
+
calculationBasis: TipCalculationBasis$outboundSchema.optional(),
|
|
62817
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
62818
|
+
fixedAmountOptions: arrayType(AmountDecimal$outboundSchema).optional()
|
|
62819
|
+
});
|
|
62820
|
+
});
|
|
62821
|
+
|
|
62822
|
+
// src/models/components/createtransferamountdetails.ts
|
|
62823
|
+
var CreateTransferAmountDetails$inboundSchema, CreateTransferAmountDetails$outboundSchema;
|
|
62824
|
+
var init_createtransferamountdetails = __esm(() => {
|
|
62825
|
+
init_esm();
|
|
62826
|
+
init_amountdecimal();
|
|
62827
|
+
CreateTransferAmountDetails$inboundSchema = objectType({
|
|
62828
|
+
tip: AmountDecimal$inboundSchema.optional()
|
|
62829
|
+
});
|
|
62830
|
+
CreateTransferAmountDetails$outboundSchema = objectType({
|
|
62831
|
+
tip: AmountDecimal$outboundSchema.optional()
|
|
62832
|
+
});
|
|
62833
|
+
});
|
|
62834
|
+
|
|
62746
62835
|
// src/models/components/createtransferachaddendarecord.ts
|
|
62747
62836
|
var CreateTransferACHAddendaRecord$inboundSchema, CreateTransferACHAddendaRecord$outboundSchema;
|
|
62748
62837
|
var init_createtransferachaddendarecord = __esm(() => {
|
|
@@ -62928,6 +63017,7 @@ var CreateTransfer$inboundSchema, CreateTransfer$outboundSchema;
|
|
|
62928
63017
|
var init_createtransfer = __esm(() => {
|
|
62929
63018
|
init_esm();
|
|
62930
63019
|
init_amount();
|
|
63020
|
+
init_createtransferamountdetails();
|
|
62931
63021
|
init_createtransferdestination();
|
|
62932
63022
|
init_createtransferlineitems();
|
|
62933
63023
|
init_createtransfersource();
|
|
@@ -62941,7 +63031,8 @@ var init_createtransfer = __esm(() => {
|
|
|
62941
63031
|
metadata: recordType(stringType()).optional(),
|
|
62942
63032
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
62943
63033
|
foreignID: stringType().optional(),
|
|
62944
|
-
lineItems: CreateTransferLineItems$inboundSchema.optional()
|
|
63034
|
+
lineItems: CreateTransferLineItems$inboundSchema.optional(),
|
|
63035
|
+
amountDetails: CreateTransferAmountDetails$inboundSchema.optional()
|
|
62945
63036
|
});
|
|
62946
63037
|
CreateTransfer$outboundSchema = objectType({
|
|
62947
63038
|
source: CreateTransferSource$outboundSchema,
|
|
@@ -62952,7 +63043,33 @@ var init_createtransfer = __esm(() => {
|
|
|
62952
63043
|
metadata: recordType(stringType()).optional(),
|
|
62953
63044
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
62954
63045
|
foreignID: stringType().optional(),
|
|
62955
|
-
lineItems: CreateTransferLineItems$outboundSchema.optional()
|
|
63046
|
+
lineItems: CreateTransferLineItems$outboundSchema.optional(),
|
|
63047
|
+
amountDetails: CreateTransferAmountDetails$outboundSchema.optional()
|
|
63048
|
+
});
|
|
63049
|
+
});
|
|
63050
|
+
|
|
63051
|
+
// src/models/components/createtransferamountdetailsvalidationerror.ts
|
|
63052
|
+
var CreateTransferAmountDetailsValidationError$inboundSchema, CreateTransferAmountDetailsValidationError$outboundSchema;
|
|
63053
|
+
var init_createtransferamountdetailsvalidationerror = __esm(() => {
|
|
63054
|
+
init_esm();
|
|
63055
|
+
CreateTransferAmountDetailsValidationError$inboundSchema = objectType({
|
|
63056
|
+
tip: stringType().optional()
|
|
63057
|
+
});
|
|
63058
|
+
CreateTransferAmountDetailsValidationError$outboundSchema = objectType({
|
|
63059
|
+
tip: stringType().optional()
|
|
63060
|
+
});
|
|
63061
|
+
});
|
|
63062
|
+
|
|
63063
|
+
// src/models/components/createtransferconfig.ts
|
|
63064
|
+
var CreateTransferConfig$inboundSchema, CreateTransferConfig$outboundSchema;
|
|
63065
|
+
var init_createtransferconfig = __esm(() => {
|
|
63066
|
+
init_esm();
|
|
63067
|
+
init_createtippresets();
|
|
63068
|
+
CreateTransferConfig$inboundSchema = objectType({
|
|
63069
|
+
tipPresets: CreateTipPresets$inboundSchema.optional()
|
|
63070
|
+
});
|
|
63071
|
+
CreateTransferConfig$outboundSchema = objectType({
|
|
63072
|
+
tipPresets: CreateTipPresets$outboundSchema.optional()
|
|
62956
63073
|
});
|
|
62957
63074
|
});
|
|
62958
63075
|
|
|
@@ -63925,39 +64042,88 @@ var init_geographicreach = __esm(() => {
|
|
|
63925
64042
|
GeographicReach$outboundSchema = GeographicReach$inboundSchema;
|
|
63926
64043
|
});
|
|
63927
64044
|
|
|
63928
|
-
// src/models/components/
|
|
63929
|
-
var
|
|
63930
|
-
var
|
|
64045
|
+
// src/models/components/googlepayassurancedetails.ts
|
|
64046
|
+
var GooglePayAssuranceDetails$inboundSchema, GooglePayAssuranceDetails$outboundSchema;
|
|
64047
|
+
var init_googlepayassurancedetails = __esm(() => {
|
|
63931
64048
|
init_esm();
|
|
63932
|
-
|
|
63933
|
-
|
|
63934
|
-
|
|
64049
|
+
GooglePayAssuranceDetails$inboundSchema = objectType({
|
|
64050
|
+
cardHolderAuthenticated: booleanType().optional(),
|
|
64051
|
+
accountVerified: booleanType().optional()
|
|
63935
64052
|
});
|
|
63936
|
-
|
|
63937
|
-
|
|
63938
|
-
|
|
64053
|
+
GooglePayAssuranceDetails$outboundSchema = objectType({
|
|
64054
|
+
cardHolderAuthenticated: booleanType().optional(),
|
|
64055
|
+
accountVerified: booleanType().optional()
|
|
63939
64056
|
});
|
|
63940
64057
|
});
|
|
63941
64058
|
|
|
63942
|
-
// src/models/components/
|
|
63943
|
-
var
|
|
63944
|
-
var
|
|
64059
|
+
// src/models/components/googlepaybillingaddress.ts
|
|
64060
|
+
var GooglePayBillingAddress$inboundSchema, GooglePayBillingAddress$outboundSchema;
|
|
64061
|
+
var init_googlepaybillingaddress = __esm(() => {
|
|
63945
64062
|
init_esm();
|
|
63946
|
-
|
|
63947
|
-
|
|
63948
|
-
|
|
63949
|
-
|
|
64063
|
+
GooglePayBillingAddress$inboundSchema = objectType({
|
|
64064
|
+
address1: stringType().optional(),
|
|
64065
|
+
address2: stringType().optional(),
|
|
64066
|
+
address3: stringType().optional(),
|
|
64067
|
+
locality: stringType().optional(),
|
|
64068
|
+
administrativeArea: stringType().optional(),
|
|
64069
|
+
postalCode: stringType().optional(),
|
|
64070
|
+
countryCode: stringType().optional(),
|
|
64071
|
+
name: stringType().optional(),
|
|
64072
|
+
phoneNumber: stringType().optional(),
|
|
64073
|
+
sortingCode: stringType().optional()
|
|
64074
|
+
});
|
|
64075
|
+
GooglePayBillingAddress$outboundSchema = objectType({
|
|
64076
|
+
address1: stringType().optional(),
|
|
64077
|
+
address2: stringType().optional(),
|
|
64078
|
+
address3: stringType().optional(),
|
|
64079
|
+
locality: stringType().optional(),
|
|
64080
|
+
administrativeArea: stringType().optional(),
|
|
64081
|
+
postalCode: stringType().optional(),
|
|
64082
|
+
countryCode: stringType().optional(),
|
|
64083
|
+
name: stringType().optional(),
|
|
64084
|
+
phoneNumber: stringType().optional(),
|
|
64085
|
+
sortingCode: stringType().optional()
|
|
64086
|
+
});
|
|
64087
|
+
});
|
|
64088
|
+
|
|
64089
|
+
// src/models/components/googlepaycardinfo.ts
|
|
64090
|
+
var CardNetwork, CardFundingSource, CardNetwork$inboundSchema, CardNetwork$outboundSchema, CardFundingSource$inboundSchema, CardFundingSource$outboundSchema, GooglePayCardInfo$inboundSchema, GooglePayCardInfo$outboundSchema;
|
|
64091
|
+
var init_googlepaycardinfo = __esm(() => {
|
|
64092
|
+
init_esm();
|
|
64093
|
+
init_googlepayassurancedetails();
|
|
64094
|
+
init_googlepaybillingaddress();
|
|
64095
|
+
CardNetwork = {
|
|
64096
|
+
Amex: "AMEX",
|
|
64097
|
+
Discover: "DISCOVER",
|
|
64098
|
+
Interac: "INTERAC",
|
|
64099
|
+
Jcb: "JCB",
|
|
64100
|
+
Mastercard: "MASTERCARD",
|
|
64101
|
+
Visa: "VISA",
|
|
64102
|
+
Other: "OTHER"
|
|
64103
|
+
};
|
|
64104
|
+
CardFundingSource = {
|
|
64105
|
+
Credit: "CREDIT",
|
|
64106
|
+
Debit: "DEBIT",
|
|
64107
|
+
Prepaid: "PREPAID",
|
|
64108
|
+
Unknown: "UNKNOWN"
|
|
64109
|
+
};
|
|
64110
|
+
CardNetwork$inboundSchema = nativeEnumType(CardNetwork);
|
|
64111
|
+
CardNetwork$outboundSchema = CardNetwork$inboundSchema;
|
|
64112
|
+
CardFundingSource$inboundSchema = nativeEnumType(CardFundingSource);
|
|
64113
|
+
CardFundingSource$outboundSchema = CardFundingSource$inboundSchema;
|
|
64114
|
+
GooglePayCardInfo$inboundSchema = objectType({
|
|
64115
|
+
cardNetwork: CardNetwork$inboundSchema,
|
|
63950
64116
|
cardDetails: stringType(),
|
|
63951
|
-
|
|
63952
|
-
|
|
63953
|
-
|
|
64117
|
+
cardFundingSource: CardFundingSource$inboundSchema.optional(),
|
|
64118
|
+
billingAddress: GooglePayBillingAddress$inboundSchema.optional(),
|
|
64119
|
+
assuranceDetails: GooglePayAssuranceDetails$inboundSchema.optional()
|
|
63954
64120
|
});
|
|
63955
|
-
|
|
63956
|
-
|
|
64121
|
+
GooglePayCardInfo$outboundSchema = objectType({
|
|
64122
|
+
cardNetwork: CardNetwork$outboundSchema,
|
|
63957
64123
|
cardDetails: stringType(),
|
|
63958
|
-
|
|
63959
|
-
|
|
63960
|
-
|
|
64124
|
+
cardFundingSource: CardFundingSource$outboundSchema.optional(),
|
|
64125
|
+
billingAddress: GooglePayBillingAddress$outboundSchema.optional(),
|
|
64126
|
+
assuranceDetails: GooglePayAssuranceDetails$outboundSchema.optional()
|
|
63961
64127
|
});
|
|
63962
64128
|
});
|
|
63963
64129
|
|
|
@@ -63978,22 +64144,47 @@ var init_googlepaypaymentmethod = __esm(() => {
|
|
|
63978
64144
|
});
|
|
63979
64145
|
});
|
|
63980
64146
|
|
|
63981
|
-
// src/models/components/
|
|
63982
|
-
var
|
|
63983
|
-
var
|
|
64147
|
+
// src/models/components/googlepaytokenizationdata.ts
|
|
64148
|
+
var GooglePayTokenizationDataType, GooglePayTokenizationDataType$inboundSchema, GooglePayTokenizationDataType$outboundSchema, GooglePayTokenizationData$inboundSchema, GooglePayTokenizationData$outboundSchema;
|
|
64149
|
+
var init_googlepaytokenizationdata = __esm(() => {
|
|
63984
64150
|
init_esm();
|
|
63985
|
-
|
|
63986
|
-
|
|
63987
|
-
|
|
63988
|
-
|
|
63989
|
-
|
|
63990
|
-
|
|
64151
|
+
GooglePayTokenizationDataType = {
|
|
64152
|
+
PaymentGateway: "PAYMENT_GATEWAY"
|
|
64153
|
+
};
|
|
64154
|
+
GooglePayTokenizationDataType$inboundSchema = nativeEnumType(GooglePayTokenizationDataType);
|
|
64155
|
+
GooglePayTokenizationDataType$outboundSchema = GooglePayTokenizationDataType$inboundSchema;
|
|
64156
|
+
GooglePayTokenizationData$inboundSchema = objectType({
|
|
64157
|
+
type: GooglePayTokenizationDataType$inboundSchema,
|
|
64158
|
+
token: stringType()
|
|
63991
64159
|
});
|
|
63992
|
-
|
|
63993
|
-
|
|
63994
|
-
|
|
63995
|
-
|
|
63996
|
-
|
|
64160
|
+
GooglePayTokenizationData$outboundSchema = objectType({
|
|
64161
|
+
type: GooglePayTokenizationDataType$outboundSchema,
|
|
64162
|
+
token: stringType()
|
|
64163
|
+
});
|
|
64164
|
+
});
|
|
64165
|
+
|
|
64166
|
+
// src/models/components/googlepaypaymentmethoddata.ts
|
|
64167
|
+
var Type, Type$inboundSchema, Type$outboundSchema, GooglePayPaymentMethodData$inboundSchema, GooglePayPaymentMethodData$outboundSchema;
|
|
64168
|
+
var init_googlepaypaymentmethoddata = __esm(() => {
|
|
64169
|
+
init_esm();
|
|
64170
|
+
init_googlepaycardinfo();
|
|
64171
|
+
init_googlepaytokenizationdata();
|
|
64172
|
+
Type = {
|
|
64173
|
+
Card: "CARD"
|
|
64174
|
+
};
|
|
64175
|
+
Type$inboundSchema = nativeEnumType(Type);
|
|
64176
|
+
Type$outboundSchema = Type$inboundSchema;
|
|
64177
|
+
GooglePayPaymentMethodData$inboundSchema = objectType({
|
|
64178
|
+
type: Type$inboundSchema.optional(),
|
|
64179
|
+
description: stringType().optional(),
|
|
64180
|
+
info: GooglePayCardInfo$inboundSchema,
|
|
64181
|
+
tokenizationData: GooglePayTokenizationData$inboundSchema
|
|
64182
|
+
});
|
|
64183
|
+
GooglePayPaymentMethodData$outboundSchema = objectType({
|
|
64184
|
+
type: Type$outboundSchema.optional(),
|
|
64185
|
+
description: stringType().optional(),
|
|
64186
|
+
info: GooglePayCardInfo$outboundSchema,
|
|
64187
|
+
tokenizationData: GooglePayTokenizationData$outboundSchema
|
|
63997
64188
|
});
|
|
63998
64189
|
});
|
|
63999
64190
|
|
|
@@ -65111,23 +65302,19 @@ var init_linkedapplepaypaymentmethod = __esm(() => {
|
|
|
65111
65302
|
});
|
|
65112
65303
|
|
|
65113
65304
|
// src/models/components/linkedgooglepaypaymentmethod.ts
|
|
65114
|
-
var
|
|
65305
|
+
var LinkedGooglePayPaymentMethod$inboundSchema, LinkedGooglePayPaymentMethod$outboundSchema;
|
|
65115
65306
|
var init_linkedgooglepaypaymentmethod = __esm(() => {
|
|
65116
65307
|
init_esm();
|
|
65117
65308
|
init_googlepayresponse();
|
|
65118
|
-
|
|
65119
|
-
GooglePay: "google-pay"
|
|
65120
|
-
};
|
|
65121
|
-
LinkedGooglePayPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(LinkedGooglePayPaymentMethodPaymentMethodType);
|
|
65122
|
-
LinkedGooglePayPaymentMethodPaymentMethodType$outboundSchema = LinkedGooglePayPaymentMethodPaymentMethodType$inboundSchema;
|
|
65309
|
+
init_paymentmethodtype();
|
|
65123
65310
|
LinkedGooglePayPaymentMethod$inboundSchema = objectType({
|
|
65124
65311
|
paymentMethodID: stringType(),
|
|
65125
|
-
paymentMethodType:
|
|
65312
|
+
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
65126
65313
|
googlePay: GooglePayResponse$inboundSchema
|
|
65127
65314
|
});
|
|
65128
65315
|
LinkedGooglePayPaymentMethod$outboundSchema = objectType({
|
|
65129
65316
|
paymentMethodID: stringType(),
|
|
65130
|
-
paymentMethodType:
|
|
65317
|
+
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
65131
65318
|
googlePay: GooglePayResponse$outboundSchema
|
|
65132
65319
|
});
|
|
65133
65320
|
});
|
|
@@ -65136,12 +65323,14 @@ var init_linkedgooglepaypaymentmethod = __esm(() => {
|
|
|
65136
65323
|
var LinkGooglePay$inboundSchema, LinkGooglePay$outboundSchema;
|
|
65137
65324
|
var init_linkgooglepay = __esm(() => {
|
|
65138
65325
|
init_esm();
|
|
65139
|
-
|
|
65326
|
+
init_googlepaypaymentmethoddata();
|
|
65140
65327
|
LinkGooglePay$inboundSchema = objectType({
|
|
65141
|
-
|
|
65328
|
+
merchantAccountID: stringType(),
|
|
65329
|
+
paymentMethodData: GooglePayPaymentMethodData$inboundSchema
|
|
65142
65330
|
});
|
|
65143
65331
|
LinkGooglePay$outboundSchema = objectType({
|
|
65144
|
-
|
|
65332
|
+
merchantAccountID: stringType(),
|
|
65333
|
+
paymentMethodData: GooglePayPaymentMethodData$outboundSchema
|
|
65145
65334
|
});
|
|
65146
65335
|
});
|
|
65147
65336
|
|
|
@@ -66709,6 +66898,37 @@ var init_pushtogooglepaytransferpaymentmethod = __esm(() => {
|
|
|
66709
66898
|
});
|
|
66710
66899
|
});
|
|
66711
66900
|
|
|
66901
|
+
// src/models/components/puttippresets.ts
|
|
66902
|
+
var PutTipPresets$inboundSchema, PutTipPresets$outboundSchema;
|
|
66903
|
+
var init_puttippresets = __esm(() => {
|
|
66904
|
+
init_esm();
|
|
66905
|
+
init_amountdecimal();
|
|
66906
|
+
init_tipcalculationbasis();
|
|
66907
|
+
PutTipPresets$inboundSchema = objectType({
|
|
66908
|
+
calculationBasis: TipCalculationBasis$inboundSchema.optional(),
|
|
66909
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
66910
|
+
fixedAmountOptions: arrayType(AmountDecimal$inboundSchema).optional()
|
|
66911
|
+
});
|
|
66912
|
+
PutTipPresets$outboundSchema = objectType({
|
|
66913
|
+
calculationBasis: TipCalculationBasis$outboundSchema.optional(),
|
|
66914
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
66915
|
+
fixedAmountOptions: arrayType(AmountDecimal$outboundSchema).optional()
|
|
66916
|
+
});
|
|
66917
|
+
});
|
|
66918
|
+
|
|
66919
|
+
// src/models/components/puttransferconfig.ts
|
|
66920
|
+
var PutTransferConfig$inboundSchema, PutTransferConfig$outboundSchema;
|
|
66921
|
+
var init_puttransferconfig = __esm(() => {
|
|
66922
|
+
init_esm();
|
|
66923
|
+
init_puttippresets();
|
|
66924
|
+
PutTransferConfig$inboundSchema = objectType({
|
|
66925
|
+
tipPresets: PutTipPresets$inboundSchema
|
|
66926
|
+
});
|
|
66927
|
+
PutTransferConfig$outboundSchema = objectType({
|
|
66928
|
+
tipPresets: PutTipPresets$outboundSchema
|
|
66929
|
+
});
|
|
66930
|
+
});
|
|
66931
|
+
|
|
66712
66932
|
// src/models/components/qrcode.ts
|
|
66713
66933
|
var QRCode$inboundSchema, QRCode$outboundSchema;
|
|
66714
66934
|
var init_qrcode = __esm(() => {
|
|
@@ -67720,6 +67940,24 @@ var init_ticketmessage = __esm(() => {
|
|
|
67720
67940
|
});
|
|
67721
67941
|
});
|
|
67722
67942
|
|
|
67943
|
+
// src/models/components/tippresets.ts
|
|
67944
|
+
var TipPresets$inboundSchema, TipPresets$outboundSchema;
|
|
67945
|
+
var init_tippresets = __esm(() => {
|
|
67946
|
+
init_esm();
|
|
67947
|
+
init_amountdecimal();
|
|
67948
|
+
init_tipcalculationbasis();
|
|
67949
|
+
TipPresets$inboundSchema = objectType({
|
|
67950
|
+
calculationBasis: TipCalculationBasis$inboundSchema.optional(),
|
|
67951
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
67952
|
+
fixedAmountOptions: arrayType(AmountDecimal$inboundSchema).optional()
|
|
67953
|
+
});
|
|
67954
|
+
TipPresets$outboundSchema = objectType({
|
|
67955
|
+
calculationBasis: TipCalculationBasis$outboundSchema.optional(),
|
|
67956
|
+
percentageOptions: arrayType(numberType().int()).optional(),
|
|
67957
|
+
fixedAmountOptions: arrayType(AmountDecimal$outboundSchema).optional()
|
|
67958
|
+
});
|
|
67959
|
+
});
|
|
67960
|
+
|
|
67723
67961
|
// src/models/components/transfer.ts
|
|
67724
67962
|
var Transfer$inboundSchema, Transfer$outboundSchema;
|
|
67725
67963
|
var init_transfer = __esm(() => {
|
|
@@ -67731,6 +67969,7 @@ var init_transfer = __esm(() => {
|
|
|
67731
67969
|
init_facilitatorfee();
|
|
67732
67970
|
init_moovfee();
|
|
67733
67971
|
init_moovfeedetails();
|
|
67972
|
+
init_transferamountdetails();
|
|
67734
67973
|
init_transferdestination();
|
|
67735
67974
|
init_transferfailurereason();
|
|
67736
67975
|
init_transferlineitems();
|
|
@@ -67765,7 +68004,8 @@ var init_transfer = __esm(() => {
|
|
|
67765
68004
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
67766
68005
|
foreignID: stringType().optional(),
|
|
67767
68006
|
lineItems: TransferLineItems$inboundSchema.optional(),
|
|
67768
|
-
invoiceID: stringType().optional()
|
|
68007
|
+
invoiceID: stringType().optional(),
|
|
68008
|
+
amountDetails: TransferAmountDetails$inboundSchema.optional()
|
|
67769
68009
|
});
|
|
67770
68010
|
Transfer$outboundSchema = objectType({
|
|
67771
68011
|
transferID: stringType(),
|
|
@@ -67796,7 +68036,21 @@ var init_transfer = __esm(() => {
|
|
|
67796
68036
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
67797
68037
|
foreignID: stringType().optional(),
|
|
67798
68038
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
67799
|
-
invoiceID: stringType().optional()
|
|
68039
|
+
invoiceID: stringType().optional(),
|
|
68040
|
+
amountDetails: TransferAmountDetails$outboundSchema.optional()
|
|
68041
|
+
});
|
|
68042
|
+
});
|
|
68043
|
+
|
|
68044
|
+
// src/models/components/transferconfig.ts
|
|
68045
|
+
var TransferConfig$inboundSchema, TransferConfig$outboundSchema;
|
|
68046
|
+
var init_transferconfig = __esm(() => {
|
|
68047
|
+
init_esm();
|
|
68048
|
+
init_tippresets();
|
|
68049
|
+
TransferConfig$inboundSchema = objectType({
|
|
68050
|
+
tipPresets: TipPresets$inboundSchema.optional()
|
|
68051
|
+
});
|
|
68052
|
+
TransferConfig$outboundSchema = objectType({
|
|
68053
|
+
tipPresets: TipPresets$outboundSchema.optional()
|
|
67800
68054
|
});
|
|
67801
68055
|
});
|
|
67802
68056
|
|
|
@@ -69557,8 +69811,12 @@ var init_components = __esm(() => {
|
|
|
69557
69811
|
init_createterminalapplication();
|
|
69558
69812
|
init_createticket();
|
|
69559
69813
|
init_createticketcontacterror();
|
|
69814
|
+
init_createtippresets();
|
|
69560
69815
|
init_createtransfer();
|
|
69561
69816
|
init_createtransferachaddendarecord();
|
|
69817
|
+
init_createtransferamountdetails();
|
|
69818
|
+
init_createtransferamountdetailsvalidationerror();
|
|
69819
|
+
init_createtransferconfig();
|
|
69562
69820
|
init_createtransferdestination();
|
|
69563
69821
|
init_createtransferdestinationach();
|
|
69564
69822
|
init_createtransferdestinationcard();
|
|
@@ -69626,10 +69884,13 @@ var init_components = __esm(() => {
|
|
|
69626
69884
|
init_fullissuedcard();
|
|
69627
69885
|
init_generatedby();
|
|
69628
69886
|
init_geographicreach();
|
|
69629
|
-
|
|
69887
|
+
init_googlepayassurancedetails();
|
|
69888
|
+
init_googlepaybillingaddress();
|
|
69889
|
+
init_googlepaycardinfo();
|
|
69630
69890
|
init_googlepaypaymentmethod();
|
|
69891
|
+
init_googlepaypaymentmethoddata();
|
|
69631
69892
|
init_googlepayresponse();
|
|
69632
|
-
|
|
69893
|
+
init_googlepaytokenizationdata();
|
|
69633
69894
|
init_googlepaytransferpaymentmethod();
|
|
69634
69895
|
init_governmentid();
|
|
69635
69896
|
init_governmentiderror();
|
|
@@ -69785,6 +70046,8 @@ var init_components = __esm(() => {
|
|
|
69785
70046
|
init_pushtocardtransferpaymentmethod();
|
|
69786
70047
|
init_pushtogooglepaypaymentmethod();
|
|
69787
70048
|
init_pushtogooglepaytransferpaymentmethod();
|
|
70049
|
+
init_puttippresets();
|
|
70050
|
+
init_puttransferconfig();
|
|
69788
70051
|
init_qrcode();
|
|
69789
70052
|
init_receiptkind();
|
|
69790
70053
|
init_receiptrequest();
|
|
@@ -69868,11 +70131,15 @@ var init_components = __esm(() => {
|
|
|
69868
70131
|
init_ticketcontact();
|
|
69869
70132
|
init_ticketmessage();
|
|
69870
70133
|
init_ticketstatus();
|
|
70134
|
+
init_tipcalculationbasis();
|
|
70135
|
+
init_tippresets();
|
|
69871
70136
|
init_tokentype();
|
|
69872
70137
|
init_transactionsource();
|
|
69873
70138
|
init_transfer();
|
|
69874
70139
|
init_transferaccount();
|
|
69875
70140
|
init_transferachaddendarecord();
|
|
70141
|
+
init_transferamountdetails();
|
|
70142
|
+
init_transferconfig();
|
|
69876
70143
|
init_transferdestination();
|
|
69877
70144
|
init_transferentrymode();
|
|
69878
70145
|
init_transferfailurereason();
|
|
@@ -71036,7 +71303,8 @@ var init_linkgooglepayerror = __esm(() => {
|
|
|
71036
71303
|
init_mooverror();
|
|
71037
71304
|
LinkGooglePayError = class LinkGooglePayError extends MoovError {
|
|
71038
71305
|
error;
|
|
71039
|
-
|
|
71306
|
+
merchantAccountID;
|
|
71307
|
+
paymentMethodData;
|
|
71040
71308
|
data$;
|
|
71041
71309
|
constructor(err, httpMeta) {
|
|
71042
71310
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -71044,14 +71312,19 @@ var init_linkgooglepayerror = __esm(() => {
|
|
|
71044
71312
|
this.data$ = err;
|
|
71045
71313
|
if (err.error != null)
|
|
71046
71314
|
this.error = err.error;
|
|
71047
|
-
if (err.
|
|
71048
|
-
this.
|
|
71315
|
+
if (err.merchantAccountID != null) {
|
|
71316
|
+
this.merchantAccountID = err.merchantAccountID;
|
|
71317
|
+
}
|
|
71318
|
+
if (err.paymentMethodData != null) {
|
|
71319
|
+
this.paymentMethodData = err.paymentMethodData;
|
|
71320
|
+
}
|
|
71049
71321
|
this.name = "LinkGooglePayError";
|
|
71050
71322
|
}
|
|
71051
71323
|
};
|
|
71052
71324
|
LinkGooglePayError$inboundSchema = objectType({
|
|
71053
71325
|
error: stringType().optional(),
|
|
71054
|
-
|
|
71326
|
+
merchantAccountID: stringType().optional(),
|
|
71327
|
+
paymentMethodData: stringType().optional(),
|
|
71055
71328
|
request$: instanceOfType(Request),
|
|
71056
71329
|
response$: instanceOfType(Response),
|
|
71057
71330
|
body$: stringType()
|
|
@@ -71064,7 +71337,8 @@ var init_linkgooglepayerror = __esm(() => {
|
|
|
71064
71337
|
});
|
|
71065
71338
|
LinkGooglePayError$outboundSchema = instanceOfType(LinkGooglePayError).transform((v2) => v2.data$).pipe(objectType({
|
|
71066
71339
|
error: stringType().optional(),
|
|
71067
|
-
|
|
71340
|
+
merchantAccountID: stringType().optional(),
|
|
71341
|
+
paymentMethodData: stringType().optional()
|
|
71068
71342
|
}));
|
|
71069
71343
|
});
|
|
71070
71344
|
|
|
@@ -72096,6 +72370,7 @@ var init_transfer2 = __esm(() => {
|
|
|
72096
72370
|
foreignID;
|
|
72097
72371
|
lineItems;
|
|
72098
72372
|
invoiceID;
|
|
72373
|
+
amountDetails;
|
|
72099
72374
|
data$;
|
|
72100
72375
|
constructor(err, httpMeta) {
|
|
72101
72376
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -72153,6 +72428,8 @@ var init_transfer2 = __esm(() => {
|
|
|
72153
72428
|
this.lineItems = err.lineItems;
|
|
72154
72429
|
if (err.invoiceID != null)
|
|
72155
72430
|
this.invoiceID = err.invoiceID;
|
|
72431
|
+
if (err.amountDetails != null)
|
|
72432
|
+
this.amountDetails = err.amountDetails;
|
|
72156
72433
|
this.name = "Transfer";
|
|
72157
72434
|
}
|
|
72158
72435
|
};
|
|
@@ -72186,6 +72463,7 @@ var init_transfer2 = __esm(() => {
|
|
|
72186
72463
|
foreignID: stringType().optional(),
|
|
72187
72464
|
lineItems: TransferLineItems$inboundSchema.optional(),
|
|
72188
72465
|
invoiceID: stringType().optional(),
|
|
72466
|
+
amountDetails: TransferAmountDetails$inboundSchema.optional(),
|
|
72189
72467
|
request$: instanceOfType(Request),
|
|
72190
72468
|
response$: instanceOfType(Response),
|
|
72191
72469
|
body$: stringType()
|
|
@@ -72225,7 +72503,68 @@ var init_transfer2 = __esm(() => {
|
|
|
72225
72503
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
72226
72504
|
foreignID: stringType().optional(),
|
|
72227
72505
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
72228
|
-
invoiceID: stringType().optional()
|
|
72506
|
+
invoiceID: stringType().optional(),
|
|
72507
|
+
amountDetails: TransferAmountDetails$outboundSchema.optional()
|
|
72508
|
+
}));
|
|
72509
|
+
});
|
|
72510
|
+
|
|
72511
|
+
// src/models/errors/transferconfigvalidationerror.ts
|
|
72512
|
+
var TransferConfigValidationError, TransferConfigValidationError$inboundSchema, TransferConfigValidationError$outboundSchema;
|
|
72513
|
+
var init_transferconfigvalidationerror = __esm(() => {
|
|
72514
|
+
init_esm();
|
|
72515
|
+
init_primitives();
|
|
72516
|
+
init_components();
|
|
72517
|
+
init_mooverror();
|
|
72518
|
+
TransferConfigValidationError = class TransferConfigValidationError extends MoovError {
|
|
72519
|
+
tipPresetsCalculationBasis;
|
|
72520
|
+
tipPresetsPercentageOptions;
|
|
72521
|
+
tipPresetsFixedAmountOptions;
|
|
72522
|
+
data$;
|
|
72523
|
+
constructor(err, httpMeta) {
|
|
72524
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
72525
|
+
super(message, httpMeta);
|
|
72526
|
+
this.data$ = err;
|
|
72527
|
+
if (err.tipPresetsCalculationBasis != null) {
|
|
72528
|
+
this.tipPresetsCalculationBasis = err.tipPresetsCalculationBasis;
|
|
72529
|
+
}
|
|
72530
|
+
if (err.tipPresetsPercentageOptions != null) {
|
|
72531
|
+
this.tipPresetsPercentageOptions = err.tipPresetsPercentageOptions;
|
|
72532
|
+
}
|
|
72533
|
+
if (err.tipPresetsFixedAmountOptions != null) {
|
|
72534
|
+
this.tipPresetsFixedAmountOptions = err.tipPresetsFixedAmountOptions;
|
|
72535
|
+
}
|
|
72536
|
+
this.name = "TransferConfigValidationError";
|
|
72537
|
+
}
|
|
72538
|
+
};
|
|
72539
|
+
TransferConfigValidationError$inboundSchema = objectType({
|
|
72540
|
+
"TipPresets.CalculationBasis": stringType().optional(),
|
|
72541
|
+
"TipPresets.PercentageOptions": recordType(stringType()).optional(),
|
|
72542
|
+
"TipPresets.FixedAmountOptions": recordType(AmountDecimalValidationError$inboundSchema).optional(),
|
|
72543
|
+
request$: instanceOfType(Request),
|
|
72544
|
+
response$: instanceOfType(Response),
|
|
72545
|
+
body$: stringType()
|
|
72546
|
+
}).transform((v2) => {
|
|
72547
|
+
const remapped = remap(v2, {
|
|
72548
|
+
"TipPresets.CalculationBasis": "tipPresetsCalculationBasis",
|
|
72549
|
+
"TipPresets.PercentageOptions": "tipPresetsPercentageOptions",
|
|
72550
|
+
"TipPresets.FixedAmountOptions": "tipPresetsFixedAmountOptions"
|
|
72551
|
+
});
|
|
72552
|
+
return new TransferConfigValidationError(remapped, {
|
|
72553
|
+
request: v2.request$,
|
|
72554
|
+
response: v2.response$,
|
|
72555
|
+
body: v2.body$
|
|
72556
|
+
});
|
|
72557
|
+
});
|
|
72558
|
+
TransferConfigValidationError$outboundSchema = instanceOfType(TransferConfigValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
72559
|
+
tipPresetsCalculationBasis: stringType().optional(),
|
|
72560
|
+
tipPresetsPercentageOptions: recordType(stringType()).optional(),
|
|
72561
|
+
tipPresetsFixedAmountOptions: recordType(AmountDecimalValidationError$outboundSchema).optional()
|
|
72562
|
+
}).transform((v2) => {
|
|
72563
|
+
return remap(v2, {
|
|
72564
|
+
tipPresetsCalculationBasis: "TipPresets.CalculationBasis",
|
|
72565
|
+
tipPresetsPercentageOptions: "TipPresets.PercentageOptions",
|
|
72566
|
+
tipPresetsFixedAmountOptions: "TipPresets.FixedAmountOptions"
|
|
72567
|
+
});
|
|
72229
72568
|
}));
|
|
72230
72569
|
});
|
|
72231
72570
|
|
|
@@ -72292,6 +72631,7 @@ var init_transfervalidationerror = __esm(() => {
|
|
|
72292
72631
|
salesTaxAmount;
|
|
72293
72632
|
foreignID;
|
|
72294
72633
|
lineItems;
|
|
72634
|
+
amountDetails;
|
|
72295
72635
|
data$;
|
|
72296
72636
|
constructor(err, httpMeta) {
|
|
72297
72637
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
@@ -72323,6 +72663,8 @@ var init_transfervalidationerror = __esm(() => {
|
|
|
72323
72663
|
this.foreignID = err.foreignID;
|
|
72324
72664
|
if (err.lineItems != null)
|
|
72325
72665
|
this.lineItems = err.lineItems;
|
|
72666
|
+
if (err.amountDetails != null)
|
|
72667
|
+
this.amountDetails = err.amountDetails;
|
|
72326
72668
|
this.name = "TransferValidationError";
|
|
72327
72669
|
}
|
|
72328
72670
|
};
|
|
@@ -72338,6 +72680,7 @@ var init_transfervalidationerror = __esm(() => {
|
|
|
72338
72680
|
salesTaxAmount: stringType().optional(),
|
|
72339
72681
|
foreignID: stringType().optional(),
|
|
72340
72682
|
lineItems: CreateTransferLineItemsValidationError$inboundSchema.optional(),
|
|
72683
|
+
amountDetails: CreateTransferAmountDetailsValidationError$inboundSchema.optional(),
|
|
72341
72684
|
request$: instanceOfType(Request),
|
|
72342
72685
|
response$: instanceOfType(Response),
|
|
72343
72686
|
body$: stringType()
|
|
@@ -72363,7 +72706,8 @@ var init_transfervalidationerror = __esm(() => {
|
|
|
72363
72706
|
metadata: stringType().optional(),
|
|
72364
72707
|
salesTaxAmount: stringType().optional(),
|
|
72365
72708
|
foreignID: stringType().optional(),
|
|
72366
|
-
lineItems: CreateTransferLineItemsValidationError$outboundSchema.optional()
|
|
72709
|
+
lineItems: CreateTransferLineItemsValidationError$outboundSchema.optional(),
|
|
72710
|
+
amountDetails: CreateTransferAmountDetailsValidationError$outboundSchema.optional()
|
|
72367
72711
|
}).transform((v2) => {
|
|
72368
72712
|
return remap(v2, {
|
|
72369
72713
|
facilitatorFeeTotalDecimal: "FacilitatorFee.TotalDecimal",
|
|
@@ -72907,6 +73251,7 @@ var init_errors4 = __esm(() => {
|
|
|
72907
73251
|
init_sdkvalidationerror();
|
|
72908
73252
|
init_terminalapplicationerror();
|
|
72909
73253
|
init_transfer2();
|
|
73254
|
+
init_transferconfigvalidationerror();
|
|
72910
73255
|
init_transferoptionsvalidationerror();
|
|
72911
73256
|
init_transfervalidationerror();
|
|
72912
73257
|
init_updatecarderror();
|
|
@@ -74020,6 +74365,48 @@ var init_createtransfer2 = __esm(() => {
|
|
|
74020
74365
|
});
|
|
74021
74366
|
});
|
|
74022
74367
|
|
|
74368
|
+
// src/models/operations/createtransferconfig.ts
|
|
74369
|
+
var CreateTransferConfigRequest$inboundSchema, CreateTransferConfigRequest$outboundSchema, CreateTransferConfigResponse$inboundSchema, CreateTransferConfigResponse$outboundSchema;
|
|
74370
|
+
var init_createtransferconfig2 = __esm(() => {
|
|
74371
|
+
init_esm();
|
|
74372
|
+
init_primitives();
|
|
74373
|
+
init_components();
|
|
74374
|
+
CreateTransferConfigRequest$inboundSchema = objectType({
|
|
74375
|
+
accountID: stringType(),
|
|
74376
|
+
CreateTransferConfig: CreateTransferConfig$inboundSchema
|
|
74377
|
+
}).transform((v2) => {
|
|
74378
|
+
return remap(v2, {
|
|
74379
|
+
CreateTransferConfig: "createTransferConfig"
|
|
74380
|
+
});
|
|
74381
|
+
});
|
|
74382
|
+
CreateTransferConfigRequest$outboundSchema = objectType({
|
|
74383
|
+
accountID: stringType(),
|
|
74384
|
+
createTransferConfig: CreateTransferConfig$outboundSchema
|
|
74385
|
+
}).transform((v2) => {
|
|
74386
|
+
return remap(v2, {
|
|
74387
|
+
createTransferConfig: "CreateTransferConfig"
|
|
74388
|
+
});
|
|
74389
|
+
});
|
|
74390
|
+
CreateTransferConfigResponse$inboundSchema = objectType({
|
|
74391
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
74392
|
+
Result: TransferConfig$inboundSchema
|
|
74393
|
+
}).transform((v2) => {
|
|
74394
|
+
return remap(v2, {
|
|
74395
|
+
Headers: "headers",
|
|
74396
|
+
Result: "result"
|
|
74397
|
+
});
|
|
74398
|
+
});
|
|
74399
|
+
CreateTransferConfigResponse$outboundSchema = objectType({
|
|
74400
|
+
headers: recordType(arrayType(stringType())),
|
|
74401
|
+
result: TransferConfig$outboundSchema
|
|
74402
|
+
}).transform((v2) => {
|
|
74403
|
+
return remap(v2, {
|
|
74404
|
+
headers: "Headers",
|
|
74405
|
+
result: "Result"
|
|
74406
|
+
});
|
|
74407
|
+
});
|
|
74408
|
+
});
|
|
74409
|
+
|
|
74023
74410
|
// src/models/operations/createtransferoptions.ts
|
|
74024
74411
|
var CreateTransferOptionsRequest$inboundSchema, CreateTransferOptionsRequest$outboundSchema, CreateTransferOptionsResponse$inboundSchema, CreateTransferOptionsResponse$outboundSchema;
|
|
74025
74412
|
var init_createtransferoptions2 = __esm(() => {
|
|
@@ -76146,6 +76533,38 @@ var init_gettransfer = __esm(() => {
|
|
|
76146
76533
|
});
|
|
76147
76534
|
});
|
|
76148
76535
|
|
|
76536
|
+
// src/models/operations/gettransferconfig.ts
|
|
76537
|
+
var GetTransferConfigRequest$inboundSchema, GetTransferConfigRequest$outboundSchema, GetTransferConfigResponse$inboundSchema, GetTransferConfigResponse$outboundSchema;
|
|
76538
|
+
var init_gettransferconfig = __esm(() => {
|
|
76539
|
+
init_esm();
|
|
76540
|
+
init_primitives();
|
|
76541
|
+
init_components();
|
|
76542
|
+
GetTransferConfigRequest$inboundSchema = objectType({
|
|
76543
|
+
accountID: stringType()
|
|
76544
|
+
});
|
|
76545
|
+
GetTransferConfigRequest$outboundSchema = objectType({
|
|
76546
|
+
accountID: stringType()
|
|
76547
|
+
});
|
|
76548
|
+
GetTransferConfigResponse$inboundSchema = objectType({
|
|
76549
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
76550
|
+
Result: TransferConfig$inboundSchema
|
|
76551
|
+
}).transform((v2) => {
|
|
76552
|
+
return remap(v2, {
|
|
76553
|
+
Headers: "headers",
|
|
76554
|
+
Result: "result"
|
|
76555
|
+
});
|
|
76556
|
+
});
|
|
76557
|
+
GetTransferConfigResponse$outboundSchema = objectType({
|
|
76558
|
+
headers: recordType(arrayType(stringType())),
|
|
76559
|
+
result: TransferConfig$outboundSchema
|
|
76560
|
+
}).transform((v2) => {
|
|
76561
|
+
return remap(v2, {
|
|
76562
|
+
headers: "Headers",
|
|
76563
|
+
result: "Result"
|
|
76564
|
+
});
|
|
76565
|
+
});
|
|
76566
|
+
});
|
|
76567
|
+
|
|
76149
76568
|
// src/models/operations/getunderwriting.ts
|
|
76150
76569
|
var GetUnderwritingRequest$inboundSchema, GetUnderwritingRequest$outboundSchema, GetUnderwritingResponse$inboundSchema, GetUnderwritingResponse$outboundSchema;
|
|
76151
76570
|
var init_getunderwriting = __esm(() => {
|
|
@@ -79478,6 +79897,48 @@ var init_updatetransfer = __esm(() => {
|
|
|
79478
79897
|
});
|
|
79479
79898
|
});
|
|
79480
79899
|
|
|
79900
|
+
// src/models/operations/updatetransferconfig.ts
|
|
79901
|
+
var UpdateTransferConfigRequest$inboundSchema, UpdateTransferConfigRequest$outboundSchema, UpdateTransferConfigResponse$inboundSchema, UpdateTransferConfigResponse$outboundSchema;
|
|
79902
|
+
var init_updatetransferconfig = __esm(() => {
|
|
79903
|
+
init_esm();
|
|
79904
|
+
init_primitives();
|
|
79905
|
+
init_components();
|
|
79906
|
+
UpdateTransferConfigRequest$inboundSchema = objectType({
|
|
79907
|
+
accountID: stringType(),
|
|
79908
|
+
PutTransferConfig: PutTransferConfig$inboundSchema
|
|
79909
|
+
}).transform((v2) => {
|
|
79910
|
+
return remap(v2, {
|
|
79911
|
+
PutTransferConfig: "putTransferConfig"
|
|
79912
|
+
});
|
|
79913
|
+
});
|
|
79914
|
+
UpdateTransferConfigRequest$outboundSchema = objectType({
|
|
79915
|
+
accountID: stringType(),
|
|
79916
|
+
putTransferConfig: PutTransferConfig$outboundSchema
|
|
79917
|
+
}).transform((v2) => {
|
|
79918
|
+
return remap(v2, {
|
|
79919
|
+
putTransferConfig: "PutTransferConfig"
|
|
79920
|
+
});
|
|
79921
|
+
});
|
|
79922
|
+
UpdateTransferConfigResponse$inboundSchema = objectType({
|
|
79923
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
79924
|
+
Result: TransferConfig$inboundSchema
|
|
79925
|
+
}).transform((v2) => {
|
|
79926
|
+
return remap(v2, {
|
|
79927
|
+
Headers: "headers",
|
|
79928
|
+
Result: "result"
|
|
79929
|
+
});
|
|
79930
|
+
});
|
|
79931
|
+
UpdateTransferConfigResponse$outboundSchema = objectType({
|
|
79932
|
+
headers: recordType(arrayType(stringType())),
|
|
79933
|
+
result: TransferConfig$outboundSchema
|
|
79934
|
+
}).transform((v2) => {
|
|
79935
|
+
return remap(v2, {
|
|
79936
|
+
headers: "Headers",
|
|
79937
|
+
result: "Result"
|
|
79938
|
+
});
|
|
79939
|
+
});
|
|
79940
|
+
});
|
|
79941
|
+
|
|
79481
79942
|
// src/models/operations/updatewallet.ts
|
|
79482
79943
|
var UpdateWalletRequest$inboundSchema, UpdateWalletRequest$outboundSchema, UpdateWalletResponse$inboundSchema, UpdateWalletResponse$outboundSchema;
|
|
79483
79944
|
var init_updatewallet = __esm(() => {
|
|
@@ -79850,6 +80311,7 @@ var init_operations = __esm(() => {
|
|
|
79850
80311
|
init_createterminalapplicationversion();
|
|
79851
80312
|
init_createticket2();
|
|
79852
80313
|
init_createtransfer2();
|
|
80314
|
+
init_createtransferconfig2();
|
|
79853
80315
|
init_createtransferoptions2();
|
|
79854
80316
|
init_createwallet2();
|
|
79855
80317
|
init_createwebhook2();
|
|
@@ -79912,6 +80374,7 @@ var init_operations = __esm(() => {
|
|
|
79912
80374
|
init_gettermsofservicetoken();
|
|
79913
80375
|
init_getticket();
|
|
79914
80376
|
init_gettransfer();
|
|
80377
|
+
init_gettransferconfig();
|
|
79915
80378
|
init_getunderwriting();
|
|
79916
80379
|
init_getwallet();
|
|
79917
80380
|
init_getwallettransaction();
|
|
@@ -79998,6 +80461,7 @@ var init_operations = __esm(() => {
|
|
|
79998
80461
|
init_updatesweepconfig();
|
|
79999
80462
|
init_updateticket2();
|
|
80000
80463
|
init_updatetransfer();
|
|
80464
|
+
init_updatetransferconfig();
|
|
80001
80465
|
init_updatewallet();
|
|
80002
80466
|
init_updatewebhook2();
|
|
80003
80467
|
init_uploaddisputeevidencefile();
|
|
@@ -89423,7 +89887,9 @@ var init_googlePayLinkToken2 = __esm(() => {
|
|
|
89423
89887
|
name: "google-pay-link-token",
|
|
89424
89888
|
description: `Connect a Google Pay token to the specified account.
|
|
89425
89889
|
|
|
89426
|
-
The \`
|
|
89890
|
+
The \`paymentMethodData\` field should contain the \`paymentMethodData\` property from Google Pay's
|
|
89891
|
+
[PaymentData](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) response,
|
|
89892
|
+
passed through unmodified.
|
|
89427
89893
|
|
|
89428
89894
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
89429
89895
|
you'll need to specify the \`/accounts/{accountID}/cards.write\` scope.`,
|
|
@@ -98026,17 +98492,17 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
98026
98492
|
};
|
|
98027
98493
|
});
|
|
98028
98494
|
|
|
98029
|
-
// src/funcs/
|
|
98030
|
-
function
|
|
98495
|
+
// src/funcs/transferConfigCreate.ts
|
|
98496
|
+
function transferConfigCreate(client, request, options) {
|
|
98031
98497
|
return new APIPromise($do156(client, request, options));
|
|
98032
98498
|
}
|
|
98033
98499
|
async function $do156(client, request, options) {
|
|
98034
|
-
const parsed = safeParse4(request, (value) =>
|
|
98500
|
+
const parsed = safeParse4(request, (value) => CreateTransferConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98035
98501
|
if (!parsed.ok) {
|
|
98036
98502
|
return [parsed, { status: "invalid" }];
|
|
98037
98503
|
}
|
|
98038
98504
|
const payload = parsed.value;
|
|
98039
|
-
const body = encodeJSON("body", payload.
|
|
98505
|
+
const body = encodeJSON("body", payload.CreateTransferConfig, {
|
|
98040
98506
|
explode: true
|
|
98041
98507
|
});
|
|
98042
98508
|
const pathParams = {
|
|
@@ -98045,7 +98511,7 @@ async function $do156(client, request, options) {
|
|
|
98045
98511
|
charEncoding: "percent"
|
|
98046
98512
|
})
|
|
98047
98513
|
};
|
|
98048
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
98514
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-config")(pathParams);
|
|
98049
98515
|
const headers = new Headers(compactMap({
|
|
98050
98516
|
"Content-Type": "application/json",
|
|
98051
98517
|
Accept: "application/json"
|
|
@@ -98055,7 +98521,7 @@ async function $do156(client, request, options) {
|
|
|
98055
98521
|
const context = {
|
|
98056
98522
|
options: client._options,
|
|
98057
98523
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98058
|
-
operationID: "
|
|
98524
|
+
operationID: "createTransferConfig",
|
|
98059
98525
|
oAuth2Scopes: null,
|
|
98060
98526
|
resolvedSecurity: requestSecurity,
|
|
98061
98527
|
securitySource: client._options.security,
|
|
@@ -98089,16 +98555,18 @@ async function $do156(client, request, options) {
|
|
|
98089
98555
|
const responseFields = {
|
|
98090
98556
|
HttpMeta: { Response: response, Request: req }
|
|
98091
98557
|
};
|
|
98092
|
-
const [result] = await match(json(
|
|
98558
|
+
const [result] = await match(json(201, CreateTransferConfigResponse$inboundSchema, {
|
|
98093
98559
|
hdrs: true,
|
|
98094
98560
|
key: "Result"
|
|
98095
|
-
}),
|
|
98561
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferConfigValidationError$inboundSchema, {
|
|
98562
|
+
hdrs: true
|
|
98563
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98096
98564
|
if (!result.ok) {
|
|
98097
98565
|
return [result, { status: "complete", request: req, response }];
|
|
98098
98566
|
}
|
|
98099
98567
|
return [result, { status: "complete", request: req, response }];
|
|
98100
98568
|
}
|
|
98101
|
-
var
|
|
98569
|
+
var init_transferConfigCreate = __esm(() => {
|
|
98102
98570
|
init_encodings();
|
|
98103
98571
|
init_http();
|
|
98104
98572
|
init_matchers();
|
|
@@ -98106,32 +98574,26 @@ var init_transfersBatchGetTransfers = __esm(() => {
|
|
|
98106
98574
|
init_schemas4();
|
|
98107
98575
|
init_security();
|
|
98108
98576
|
init_url();
|
|
98577
|
+
init_errors4();
|
|
98109
98578
|
init_operations();
|
|
98110
98579
|
init_async();
|
|
98111
98580
|
});
|
|
98112
98581
|
|
|
98113
|
-
// src/mcp-server/tools/
|
|
98114
|
-
var args151, tool$
|
|
98115
|
-
var
|
|
98116
|
-
|
|
98582
|
+
// src/mcp-server/tools/transferConfigCreate.ts
|
|
98583
|
+
var args151, tool$transferConfigCreate;
|
|
98584
|
+
var init_transferConfigCreate2 = __esm(() => {
|
|
98585
|
+
init_transferConfigCreate();
|
|
98117
98586
|
init_operations();
|
|
98118
98587
|
init_tools();
|
|
98119
98588
|
args151 = {
|
|
98120
|
-
request:
|
|
98589
|
+
request: CreateTransferConfigRequest$inboundSchema
|
|
98121
98590
|
};
|
|
98122
|
-
tool$
|
|
98123
|
-
name: "
|
|
98124
|
-
description: `
|
|
98125
|
-
requested transfer ID to its full transfer details when available; IDs that are not found or not
|
|
98126
|
-
accessible under this account are omitted from the map.
|
|
98127
|
-
|
|
98128
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
98129
|
-
|
|
98130
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98131
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
98591
|
+
tool$transferConfigCreate = {
|
|
98592
|
+
name: "transfer-config-create",
|
|
98593
|
+
description: `Create a transfer config for an account.`,
|
|
98132
98594
|
args: args151,
|
|
98133
98595
|
tool: async (client, args152, ctx) => {
|
|
98134
|
-
const [result, apiCall] = await
|
|
98596
|
+
const [result, apiCall] = await transferConfigCreate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98135
98597
|
if (!result.ok) {
|
|
98136
98598
|
return {
|
|
98137
98599
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98144,39 +98606,33 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
98144
98606
|
};
|
|
98145
98607
|
});
|
|
98146
98608
|
|
|
98147
|
-
// src/funcs/
|
|
98148
|
-
function
|
|
98609
|
+
// src/funcs/transferConfigGet.ts
|
|
98610
|
+
function transferConfigGet(client, request, options) {
|
|
98149
98611
|
return new APIPromise($do157(client, request, options));
|
|
98150
98612
|
}
|
|
98151
98613
|
async function $do157(client, request, options) {
|
|
98152
|
-
const parsed = safeParse4(request, (value) =>
|
|
98614
|
+
const parsed = safeParse4(request, (value) => GetTransferConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98153
98615
|
if (!parsed.ok) {
|
|
98154
98616
|
return [parsed, { status: "invalid" }];
|
|
98155
98617
|
}
|
|
98156
98618
|
const payload = parsed.value;
|
|
98157
|
-
const body =
|
|
98619
|
+
const body = null;
|
|
98158
98620
|
const pathParams = {
|
|
98159
98621
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98160
98622
|
explode: false,
|
|
98161
98623
|
charEncoding: "percent"
|
|
98162
98624
|
})
|
|
98163
98625
|
};
|
|
98164
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
98626
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-config")(pathParams);
|
|
98165
98627
|
const headers = new Headers(compactMap({
|
|
98166
|
-
|
|
98167
|
-
Accept: "application/json",
|
|
98168
|
-
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
98169
|
-
"x-wait-for": encodeSimple("x-wait-for", payload["x-wait-for"], {
|
|
98170
|
-
explode: false,
|
|
98171
|
-
charEncoding: "none"
|
|
98172
|
-
})
|
|
98628
|
+
Accept: "application/json"
|
|
98173
98629
|
}));
|
|
98174
98630
|
const securityInput = await extractSecurity(client._options.security);
|
|
98175
98631
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98176
98632
|
const context = {
|
|
98177
98633
|
options: client._options,
|
|
98178
98634
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98179
|
-
operationID: "
|
|
98635
|
+
operationID: "getTransferConfig",
|
|
98180
98636
|
oAuth2Scopes: null,
|
|
98181
98637
|
resolvedSecurity: requestSecurity,
|
|
98182
98638
|
securitySource: client._options.security,
|
|
@@ -98185,7 +98641,7 @@ async function $do157(client, request, options) {
|
|
|
98185
98641
|
};
|
|
98186
98642
|
const requestRes = client._createRequest(context, {
|
|
98187
98643
|
security: requestSecurity,
|
|
98188
|
-
method: "
|
|
98644
|
+
method: "GET",
|
|
98189
98645
|
baseURL: options?.serverURL,
|
|
98190
98646
|
path,
|
|
98191
98647
|
headers,
|
|
@@ -98210,24 +98666,16 @@ async function $do157(client, request, options) {
|
|
|
98210
98666
|
const responseFields = {
|
|
98211
98667
|
HttpMeta: { Response: response, Request: req }
|
|
98212
98668
|
};
|
|
98213
|
-
const [result] = await match(json(200,
|
|
98669
|
+
const [result] = await match(json(200, GetTransferConfigResponse$inboundSchema, {
|
|
98214
98670
|
hdrs: true,
|
|
98215
98671
|
key: "Result"
|
|
98216
|
-
}),
|
|
98217
|
-
hdrs: true,
|
|
98218
|
-
key: "Result"
|
|
98219
|
-
}), json(202, CreateTransferResponse$inboundSchema, {
|
|
98220
|
-
hdrs: true,
|
|
98221
|
-
key: "Result"
|
|
98222
|
-
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(409, Transfer$inboundSchema2, { hdrs: true }), jsonErr(422, TransferValidationError$inboundSchema, {
|
|
98223
|
-
hdrs: true
|
|
98224
|
-
}), fail([404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98672
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98225
98673
|
if (!result.ok) {
|
|
98226
98674
|
return [result, { status: "complete", request: req, response }];
|
|
98227
98675
|
}
|
|
98228
98676
|
return [result, { status: "complete", request: req, response }];
|
|
98229
98677
|
}
|
|
98230
|
-
var
|
|
98678
|
+
var init_transferConfigGet = __esm(() => {
|
|
98231
98679
|
init_encodings();
|
|
98232
98680
|
init_http();
|
|
98233
98681
|
init_matchers();
|
|
@@ -98235,31 +98683,25 @@ var init_transfersCreate = __esm(() => {
|
|
|
98235
98683
|
init_schemas4();
|
|
98236
98684
|
init_security();
|
|
98237
98685
|
init_url();
|
|
98238
|
-
init_errors4();
|
|
98239
98686
|
init_operations();
|
|
98240
98687
|
init_async();
|
|
98241
98688
|
});
|
|
98242
98689
|
|
|
98243
|
-
// src/mcp-server/tools/
|
|
98244
|
-
var args152, tool$
|
|
98245
|
-
var
|
|
98246
|
-
|
|
98690
|
+
// src/mcp-server/tools/transferConfigGet.ts
|
|
98691
|
+
var args152, tool$transferConfigGet;
|
|
98692
|
+
var init_transferConfigGet2 = __esm(() => {
|
|
98693
|
+
init_transferConfigGet();
|
|
98247
98694
|
init_operations();
|
|
98248
98695
|
init_tools();
|
|
98249
98696
|
args152 = {
|
|
98250
|
-
request:
|
|
98697
|
+
request: GetTransferConfigRequest$inboundSchema
|
|
98251
98698
|
};
|
|
98252
|
-
tool$
|
|
98253
|
-
name: "
|
|
98254
|
-
description: `
|
|
98255
|
-
|
|
98256
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
98257
|
-
|
|
98258
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98259
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98699
|
+
tool$transferConfigGet = {
|
|
98700
|
+
name: "transfer-config-get",
|
|
98701
|
+
description: `Get the transfer config for an account.`,
|
|
98260
98702
|
args: args152,
|
|
98261
98703
|
tool: async (client, args153, ctx) => {
|
|
98262
|
-
const [result, apiCall] = await
|
|
98704
|
+
const [result, apiCall] = await transferConfigGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98263
98705
|
if (!result.ok) {
|
|
98264
98706
|
return {
|
|
98265
98707
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98272,29 +98714,26 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
98272
98714
|
};
|
|
98273
98715
|
});
|
|
98274
98716
|
|
|
98275
|
-
// src/funcs/
|
|
98276
|
-
function
|
|
98717
|
+
// src/funcs/transferConfigUpdate.ts
|
|
98718
|
+
function transferConfigUpdate(client, request, options) {
|
|
98277
98719
|
return new APIPromise($do158(client, request, options));
|
|
98278
98720
|
}
|
|
98279
98721
|
async function $do158(client, request, options) {
|
|
98280
|
-
const parsed = safeParse4(request, (value) =>
|
|
98722
|
+
const parsed = safeParse4(request, (value) => UpdateTransferConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98281
98723
|
if (!parsed.ok) {
|
|
98282
98724
|
return [parsed, { status: "invalid" }];
|
|
98283
98725
|
}
|
|
98284
98726
|
const payload = parsed.value;
|
|
98285
|
-
const body =
|
|
98727
|
+
const body = encodeJSON("body", payload.PutTransferConfig, { explode: true });
|
|
98286
98728
|
const pathParams = {
|
|
98287
98729
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98288
98730
|
explode: false,
|
|
98289
98731
|
charEncoding: "percent"
|
|
98290
|
-
}),
|
|
98291
|
-
transferID: encodeSimple("transferID", payload.transferID, {
|
|
98292
|
-
explode: false,
|
|
98293
|
-
charEncoding: "percent"
|
|
98294
98732
|
})
|
|
98295
98733
|
};
|
|
98296
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
98734
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-config")(pathParams);
|
|
98297
98735
|
const headers = new Headers(compactMap({
|
|
98736
|
+
"Content-Type": "application/json",
|
|
98298
98737
|
Accept: "application/json"
|
|
98299
98738
|
}));
|
|
98300
98739
|
const securityInput = await extractSecurity(client._options.security);
|
|
@@ -98302,7 +98741,7 @@ async function $do158(client, request, options) {
|
|
|
98302
98741
|
const context = {
|
|
98303
98742
|
options: client._options,
|
|
98304
98743
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98305
|
-
operationID: "
|
|
98744
|
+
operationID: "updateTransferConfig",
|
|
98306
98745
|
oAuth2Scopes: null,
|
|
98307
98746
|
resolvedSecurity: requestSecurity,
|
|
98308
98747
|
securitySource: client._options.security,
|
|
@@ -98311,7 +98750,7 @@ async function $do158(client, request, options) {
|
|
|
98311
98750
|
};
|
|
98312
98751
|
const requestRes = client._createRequest(context, {
|
|
98313
98752
|
security: requestSecurity,
|
|
98314
|
-
method: "
|
|
98753
|
+
method: "PUT",
|
|
98315
98754
|
baseURL: options?.serverURL,
|
|
98316
98755
|
path,
|
|
98317
98756
|
headers,
|
|
@@ -98336,16 +98775,18 @@ async function $do158(client, request, options) {
|
|
|
98336
98775
|
const responseFields = {
|
|
98337
98776
|
HttpMeta: { Response: response, Request: req }
|
|
98338
98777
|
};
|
|
98339
|
-
const [result] = await match(json(
|
|
98778
|
+
const [result] = await match(json(200, UpdateTransferConfigResponse$inboundSchema, {
|
|
98340
98779
|
hdrs: true,
|
|
98341
98780
|
key: "Result"
|
|
98342
|
-
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }),
|
|
98781
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferConfigValidationError$inboundSchema, {
|
|
98782
|
+
hdrs: true
|
|
98783
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98343
98784
|
if (!result.ok) {
|
|
98344
98785
|
return [result, { status: "complete", request: req, response }];
|
|
98345
98786
|
}
|
|
98346
98787
|
return [result, { status: "complete", request: req, response }];
|
|
98347
98788
|
}
|
|
98348
|
-
var
|
|
98789
|
+
var init_transferConfigUpdate = __esm(() => {
|
|
98349
98790
|
init_encodings();
|
|
98350
98791
|
init_http();
|
|
98351
98792
|
init_matchers();
|
|
@@ -98358,24 +98799,21 @@ var init_transfersCreateCancellation = __esm(() => {
|
|
|
98358
98799
|
init_async();
|
|
98359
98800
|
});
|
|
98360
98801
|
|
|
98361
|
-
// src/mcp-server/tools/
|
|
98362
|
-
var args153, tool$
|
|
98363
|
-
var
|
|
98364
|
-
|
|
98802
|
+
// src/mcp-server/tools/transferConfigUpdate.ts
|
|
98803
|
+
var args153, tool$transferConfigUpdate;
|
|
98804
|
+
var init_transferConfigUpdate2 = __esm(() => {
|
|
98805
|
+
init_transferConfigUpdate();
|
|
98365
98806
|
init_operations();
|
|
98366
98807
|
init_tools();
|
|
98367
98808
|
args153 = {
|
|
98368
|
-
request:
|
|
98809
|
+
request: UpdateTransferConfigRequest$inboundSchema
|
|
98369
98810
|
};
|
|
98370
|
-
tool$
|
|
98371
|
-
name: "
|
|
98372
|
-
description: `
|
|
98373
|
-
|
|
98374
|
-
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
98375
|
-
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98811
|
+
tool$transferConfigUpdate = {
|
|
98812
|
+
name: "transfer-config-update",
|
|
98813
|
+
description: `Update the transfer config for an account.`,
|
|
98376
98814
|
args: args153,
|
|
98377
98815
|
tool: async (client, args154, ctx) => {
|
|
98378
|
-
const [result, apiCall] = await
|
|
98816
|
+
const [result, apiCall] = await transferConfigUpdate(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98379
98817
|
if (!result.ok) {
|
|
98380
98818
|
return {
|
|
98381
98819
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98388,39 +98826,36 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
98388
98826
|
};
|
|
98389
98827
|
});
|
|
98390
98828
|
|
|
98391
|
-
// src/funcs/
|
|
98392
|
-
function
|
|
98829
|
+
// src/funcs/transfersBatchGetTransfers.ts
|
|
98830
|
+
function transfersBatchGetTransfers(client, request, options) {
|
|
98393
98831
|
return new APIPromise($do159(client, request, options));
|
|
98394
98832
|
}
|
|
98395
98833
|
async function $do159(client, request, options) {
|
|
98396
|
-
const parsed = safeParse4(request, (value) =>
|
|
98834
|
+
const parsed = safeParse4(request, (value) => BatchGetTransfersRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
98397
98835
|
if (!parsed.ok) {
|
|
98398
98836
|
return [parsed, { status: "invalid" }];
|
|
98399
98837
|
}
|
|
98400
98838
|
const payload = parsed.value;
|
|
98401
|
-
const body = encodeJSON("body", payload.
|
|
98839
|
+
const body = encodeJSON("body", payload.BatchGetTransfersRequest, {
|
|
98840
|
+
explode: true
|
|
98841
|
+
});
|
|
98402
98842
|
const pathParams = {
|
|
98403
98843
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98404
98844
|
explode: false,
|
|
98405
98845
|
charEncoding: "percent"
|
|
98406
|
-
}),
|
|
98407
|
-
transferID: encodeSimple("transferID", payload.transferID, {
|
|
98408
|
-
explode: false,
|
|
98409
|
-
charEncoding: "percent"
|
|
98410
98846
|
})
|
|
98411
98847
|
};
|
|
98412
|
-
const path = pathToFunc("/accounts/{accountID}/transfers
|
|
98848
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/.fetch")(pathParams);
|
|
98413
98849
|
const headers = new Headers(compactMap({
|
|
98414
98850
|
"Content-Type": "application/json",
|
|
98415
|
-
Accept: "application/json"
|
|
98416
|
-
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" })
|
|
98851
|
+
Accept: "application/json"
|
|
98417
98852
|
}));
|
|
98418
98853
|
const securityInput = await extractSecurity(client._options.security);
|
|
98419
98854
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98420
98855
|
const context = {
|
|
98421
98856
|
options: client._options,
|
|
98422
98857
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98423
|
-
operationID: "
|
|
98858
|
+
operationID: "batchGetTransfers",
|
|
98424
98859
|
oAuth2Scopes: null,
|
|
98425
98860
|
resolvedSecurity: requestSecurity,
|
|
98426
98861
|
securitySource: client._options.security,
|
|
@@ -98454,18 +98889,16 @@ async function $do159(client, request, options) {
|
|
|
98454
98889
|
const responseFields = {
|
|
98455
98890
|
HttpMeta: { Response: response, Request: req }
|
|
98456
98891
|
};
|
|
98457
|
-
const [result] = await match(json(
|
|
98892
|
+
const [result] = await match(json(200, BatchGetTransfersResponse$inboundSchema, {
|
|
98458
98893
|
hdrs: true,
|
|
98459
98894
|
key: "Result"
|
|
98460
|
-
}),
|
|
98461
|
-
hdrs: true
|
|
98462
|
-
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98895
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98463
98896
|
if (!result.ok) {
|
|
98464
98897
|
return [result, { status: "complete", request: req, response }];
|
|
98465
98898
|
}
|
|
98466
98899
|
return [result, { status: "complete", request: req, response }];
|
|
98467
98900
|
}
|
|
98468
|
-
var
|
|
98901
|
+
var init_transfersBatchGetTransfers = __esm(() => {
|
|
98469
98902
|
init_encodings();
|
|
98470
98903
|
init_http();
|
|
98471
98904
|
init_matchers();
|
|
@@ -98473,31 +98906,32 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
98473
98906
|
init_schemas4();
|
|
98474
98907
|
init_security();
|
|
98475
98908
|
init_url();
|
|
98476
|
-
init_errors4();
|
|
98477
98909
|
init_operations();
|
|
98478
98910
|
init_async();
|
|
98479
98911
|
});
|
|
98480
98912
|
|
|
98481
|
-
// src/mcp-server/tools/
|
|
98482
|
-
var args154, tool$
|
|
98483
|
-
var
|
|
98484
|
-
|
|
98913
|
+
// src/mcp-server/tools/transfersBatchGetTransfers.ts
|
|
98914
|
+
var args154, tool$transfersBatchGetTransfers;
|
|
98915
|
+
var init_transfersBatchGetTransfers2 = __esm(() => {
|
|
98916
|
+
init_transfersBatchGetTransfers();
|
|
98485
98917
|
init_operations();
|
|
98486
98918
|
init_tools();
|
|
98487
98919
|
args154 = {
|
|
98488
|
-
request:
|
|
98920
|
+
request: BatchGetTransfersRequest$inboundSchema2
|
|
98489
98921
|
};
|
|
98490
|
-
tool$
|
|
98491
|
-
name: "transfers-
|
|
98492
|
-
description: `
|
|
98493
|
-
|
|
98494
|
-
|
|
98922
|
+
tool$transfersBatchGetTransfers = {
|
|
98923
|
+
name: "transfers-batch-get-transfers",
|
|
98924
|
+
description: `Retrieve transfer details for multiple transfers in one request. The response is a map from each
|
|
98925
|
+
requested transfer ID to its full transfer details when available; IDs that are not found or not
|
|
98926
|
+
accessible under this account are omitted from the map.
|
|
98495
98927
|
|
|
98496
|
-
|
|
98497
|
-
|
|
98928
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
98929
|
+
|
|
98930
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98931
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
98498
98932
|
args: args154,
|
|
98499
98933
|
tool: async (client, args155, ctx) => {
|
|
98500
|
-
const [result, apiCall] = await
|
|
98934
|
+
const [result, apiCall] = await transfersBatchGetTransfers(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98501
98935
|
if (!result.ok) {
|
|
98502
98936
|
return {
|
|
98503
98937
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98510,36 +98944,39 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
98510
98944
|
};
|
|
98511
98945
|
});
|
|
98512
98946
|
|
|
98513
|
-
// src/funcs/
|
|
98514
|
-
function
|
|
98947
|
+
// src/funcs/transfersCreate.ts
|
|
98948
|
+
function transfersCreate(client, request, options) {
|
|
98515
98949
|
return new APIPromise($do160(client, request, options));
|
|
98516
98950
|
}
|
|
98517
98951
|
async function $do160(client, request, options) {
|
|
98518
|
-
const parsed = safeParse4(request, (value) =>
|
|
98952
|
+
const parsed = safeParse4(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98519
98953
|
if (!parsed.ok) {
|
|
98520
98954
|
return [parsed, { status: "invalid" }];
|
|
98521
98955
|
}
|
|
98522
98956
|
const payload = parsed.value;
|
|
98523
|
-
const body = encodeJSON("body", payload.
|
|
98524
|
-
explode: true
|
|
98525
|
-
});
|
|
98957
|
+
const body = encodeJSON("body", payload.CreateTransfer, { explode: true });
|
|
98526
98958
|
const pathParams = {
|
|
98527
98959
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98528
98960
|
explode: false,
|
|
98529
98961
|
charEncoding: "percent"
|
|
98530
98962
|
})
|
|
98531
98963
|
};
|
|
98532
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
98964
|
+
const path = pathToFunc("/accounts/{accountID}/transfers")(pathParams);
|
|
98533
98965
|
const headers = new Headers(compactMap({
|
|
98534
98966
|
"Content-Type": "application/json",
|
|
98535
|
-
Accept: "application/json"
|
|
98967
|
+
Accept: "application/json",
|
|
98968
|
+
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
98969
|
+
"x-wait-for": encodeSimple("x-wait-for", payload["x-wait-for"], {
|
|
98970
|
+
explode: false,
|
|
98971
|
+
charEncoding: "none"
|
|
98972
|
+
})
|
|
98536
98973
|
}));
|
|
98537
98974
|
const securityInput = await extractSecurity(client._options.security);
|
|
98538
98975
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98539
98976
|
const context = {
|
|
98540
98977
|
options: client._options,
|
|
98541
98978
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98542
|
-
operationID: "
|
|
98979
|
+
operationID: "createTransfer",
|
|
98543
98980
|
oAuth2Scopes: null,
|
|
98544
98981
|
resolvedSecurity: requestSecurity,
|
|
98545
98982
|
securitySource: client._options.security,
|
|
@@ -98573,18 +99010,24 @@ async function $do160(client, request, options) {
|
|
|
98573
99010
|
const responseFields = {
|
|
98574
99011
|
HttpMeta: { Response: response, Request: req }
|
|
98575
99012
|
};
|
|
98576
|
-
const [result] = await match(json(200,
|
|
99013
|
+
const [result] = await match(json(200, CreateTransferResponse$inboundSchema, {
|
|
98577
99014
|
hdrs: true,
|
|
98578
99015
|
key: "Result"
|
|
98579
|
-
}),
|
|
99016
|
+
}), json(201, CreateTransferResponse$inboundSchema, {
|
|
99017
|
+
hdrs: true,
|
|
99018
|
+
key: "Result"
|
|
99019
|
+
}), json(202, CreateTransferResponse$inboundSchema, {
|
|
99020
|
+
hdrs: true,
|
|
99021
|
+
key: "Result"
|
|
99022
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(409, Transfer$inboundSchema2, { hdrs: true }), jsonErr(422, TransferValidationError$inboundSchema, {
|
|
98580
99023
|
hdrs: true
|
|
98581
|
-
}), fail([
|
|
99024
|
+
}), fail([404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98582
99025
|
if (!result.ok) {
|
|
98583
99026
|
return [result, { status: "complete", request: req, response }];
|
|
98584
99027
|
}
|
|
98585
99028
|
return [result, { status: "complete", request: req, response }];
|
|
98586
99029
|
}
|
|
98587
|
-
var
|
|
99030
|
+
var init_transfersCreate = __esm(() => {
|
|
98588
99031
|
init_encodings();
|
|
98589
99032
|
init_http();
|
|
98590
99033
|
init_matchers();
|
|
@@ -98597,29 +99040,26 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
98597
99040
|
init_async();
|
|
98598
99041
|
});
|
|
98599
99042
|
|
|
98600
|
-
// src/mcp-server/tools/
|
|
98601
|
-
var args155, tool$
|
|
98602
|
-
var
|
|
98603
|
-
|
|
99043
|
+
// src/mcp-server/tools/transfersCreate.ts
|
|
99044
|
+
var args155, tool$transfersCreate;
|
|
99045
|
+
var init_transfersCreate2 = __esm(() => {
|
|
99046
|
+
init_transfersCreate();
|
|
98604
99047
|
init_operations();
|
|
98605
99048
|
init_tools();
|
|
98606
99049
|
args155 = {
|
|
98607
|
-
request:
|
|
99050
|
+
request: CreateTransferRequest$inboundSchema
|
|
98608
99051
|
};
|
|
98609
|
-
tool$
|
|
98610
|
-
name: "transfers-
|
|
98611
|
-
description: `
|
|
98612
|
-
supply in the request body.
|
|
98613
|
-
|
|
98614
|
-
The accountID in the route should the partner's accountID.
|
|
99052
|
+
tool$transfersCreate = {
|
|
99053
|
+
name: "transfers-create",
|
|
99054
|
+
description: `Move money by providing the source, destination, and amount in the request body.
|
|
98615
99055
|
|
|
98616
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
99056
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
98617
99057
|
|
|
98618
99058
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98619
99059
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98620
99060
|
args: args155,
|
|
98621
99061
|
tool: async (client, args156, ctx) => {
|
|
98622
|
-
const [result, apiCall] = await
|
|
99062
|
+
const [result, apiCall] = await transfersCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98623
99063
|
if (!result.ok) {
|
|
98624
99064
|
return {
|
|
98625
99065
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98632,12 +99072,12 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
98632
99072
|
};
|
|
98633
99073
|
});
|
|
98634
99074
|
|
|
98635
|
-
// src/funcs/
|
|
98636
|
-
function
|
|
99075
|
+
// src/funcs/transfersCreateCancellation.ts
|
|
99076
|
+
function transfersCreateCancellation(client, request, options) {
|
|
98637
99077
|
return new APIPromise($do161(client, request, options));
|
|
98638
99078
|
}
|
|
98639
99079
|
async function $do161(client, request, options) {
|
|
98640
|
-
const parsed = safeParse4(request, (value) =>
|
|
99080
|
+
const parsed = safeParse4(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98641
99081
|
if (!parsed.ok) {
|
|
98642
99082
|
return [parsed, { status: "invalid" }];
|
|
98643
99083
|
}
|
|
@@ -98653,7 +99093,7 @@ async function $do161(client, request, options) {
|
|
|
98653
99093
|
charEncoding: "percent"
|
|
98654
99094
|
})
|
|
98655
99095
|
};
|
|
98656
|
-
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}")(pathParams);
|
|
99096
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations")(pathParams);
|
|
98657
99097
|
const headers = new Headers(compactMap({
|
|
98658
99098
|
Accept: "application/json"
|
|
98659
99099
|
}));
|
|
@@ -98662,7 +99102,7 @@ async function $do161(client, request, options) {
|
|
|
98662
99102
|
const context = {
|
|
98663
99103
|
options: client._options,
|
|
98664
99104
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98665
|
-
operationID: "
|
|
99105
|
+
operationID: "createCancellation",
|
|
98666
99106
|
oAuth2Scopes: null,
|
|
98667
99107
|
resolvedSecurity: requestSecurity,
|
|
98668
99108
|
securitySource: client._options.security,
|
|
@@ -98671,7 +99111,7 @@ async function $do161(client, request, options) {
|
|
|
98671
99111
|
};
|
|
98672
99112
|
const requestRes = client._createRequest(context, {
|
|
98673
99113
|
security: requestSecurity,
|
|
98674
|
-
method: "
|
|
99114
|
+
method: "POST",
|
|
98675
99115
|
baseURL: options?.serverURL,
|
|
98676
99116
|
path,
|
|
98677
99117
|
headers,
|
|
@@ -98696,16 +99136,16 @@ async function $do161(client, request, options) {
|
|
|
98696
99136
|
const responseFields = {
|
|
98697
99137
|
HttpMeta: { Response: response, Request: req }
|
|
98698
99138
|
};
|
|
98699
|
-
const [result] = await match(json(200,
|
|
99139
|
+
const [result] = await match(json([200, 202], CreateCancellationResponse$inboundSchema, {
|
|
98700
99140
|
hdrs: true,
|
|
98701
99141
|
key: "Result"
|
|
98702
|
-
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99142
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98703
99143
|
if (!result.ok) {
|
|
98704
99144
|
return [result, { status: "complete", request: req, response }];
|
|
98705
99145
|
}
|
|
98706
99146
|
return [result, { status: "complete", request: req, response }];
|
|
98707
99147
|
}
|
|
98708
|
-
var
|
|
99148
|
+
var init_transfersCreateCancellation = __esm(() => {
|
|
98709
99149
|
init_encodings();
|
|
98710
99150
|
init_http();
|
|
98711
99151
|
init_matchers();
|
|
@@ -98713,31 +99153,29 @@ var init_transfersGet = __esm(() => {
|
|
|
98713
99153
|
init_schemas4();
|
|
98714
99154
|
init_security();
|
|
98715
99155
|
init_url();
|
|
99156
|
+
init_errors4();
|
|
98716
99157
|
init_operations();
|
|
98717
99158
|
init_async();
|
|
98718
99159
|
});
|
|
98719
99160
|
|
|
98720
|
-
// src/mcp-server/tools/
|
|
98721
|
-
var args156, tool$
|
|
98722
|
-
var
|
|
98723
|
-
|
|
99161
|
+
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
99162
|
+
var args156, tool$transfersCreateCancellation;
|
|
99163
|
+
var init_transfersCreateCancellation2 = __esm(() => {
|
|
99164
|
+
init_transfersCreateCancellation();
|
|
98724
99165
|
init_operations();
|
|
98725
99166
|
init_tools();
|
|
98726
99167
|
args156 = {
|
|
98727
|
-
request:
|
|
99168
|
+
request: CreateCancellationRequest$inboundSchema
|
|
98728
99169
|
};
|
|
98729
|
-
tool$
|
|
98730
|
-
name: "transfers-
|
|
98731
|
-
description: `
|
|
98732
|
-
|
|
98733
|
-
|
|
98734
|
-
to
|
|
98735
|
-
|
|
98736
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98737
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
99170
|
+
tool$transfersCreateCancellation = {
|
|
99171
|
+
name: "transfers-create-cancellation",
|
|
99172
|
+
description: ` Initiate a cancellation for a card, ACH, or queued transfer.
|
|
99173
|
+
|
|
99174
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
99175
|
+
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98738
99176
|
args: args156,
|
|
98739
99177
|
tool: async (client, args157, ctx) => {
|
|
98740
|
-
const [result, apiCall] = await
|
|
99178
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98741
99179
|
if (!result.ok) {
|
|
98742
99180
|
return {
|
|
98743
99181
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98750,41 +99188,39 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
98750
99188
|
};
|
|
98751
99189
|
});
|
|
98752
99190
|
|
|
98753
|
-
// src/funcs/
|
|
98754
|
-
function
|
|
99191
|
+
// src/funcs/transfersCreateReversal.ts
|
|
99192
|
+
function transfersCreateReversal(client, request, options) {
|
|
98755
99193
|
return new APIPromise($do162(client, request, options));
|
|
98756
99194
|
}
|
|
98757
99195
|
async function $do162(client, request, options) {
|
|
98758
|
-
const parsed = safeParse4(request, (value) =>
|
|
99196
|
+
const parsed = safeParse4(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98759
99197
|
if (!parsed.ok) {
|
|
98760
99198
|
return [parsed, { status: "invalid" }];
|
|
98761
99199
|
}
|
|
98762
99200
|
const payload = parsed.value;
|
|
98763
|
-
const body =
|
|
99201
|
+
const body = encodeJSON("body", payload.CreateReversal, { explode: true });
|
|
98764
99202
|
const pathParams = {
|
|
98765
99203
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98766
99204
|
explode: false,
|
|
98767
99205
|
charEncoding: "percent"
|
|
98768
99206
|
}),
|
|
98769
|
-
cancellationID: encodeSimple("cancellationID", payload.cancellationID, {
|
|
98770
|
-
explode: false,
|
|
98771
|
-
charEncoding: "percent"
|
|
98772
|
-
}),
|
|
98773
99207
|
transferID: encodeSimple("transferID", payload.transferID, {
|
|
98774
99208
|
explode: false,
|
|
98775
99209
|
charEncoding: "percent"
|
|
98776
99210
|
})
|
|
98777
99211
|
};
|
|
98778
|
-
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/
|
|
99212
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/reversals")(pathParams);
|
|
98779
99213
|
const headers = new Headers(compactMap({
|
|
98780
|
-
|
|
99214
|
+
"Content-Type": "application/json",
|
|
99215
|
+
Accept: "application/json",
|
|
99216
|
+
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" })
|
|
98781
99217
|
}));
|
|
98782
99218
|
const securityInput = await extractSecurity(client._options.security);
|
|
98783
99219
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98784
99220
|
const context = {
|
|
98785
99221
|
options: client._options,
|
|
98786
99222
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98787
|
-
operationID: "
|
|
99223
|
+
operationID: "createReversal",
|
|
98788
99224
|
oAuth2Scopes: null,
|
|
98789
99225
|
resolvedSecurity: requestSecurity,
|
|
98790
99226
|
securitySource: client._options.security,
|
|
@@ -98793,7 +99229,7 @@ async function $do162(client, request, options) {
|
|
|
98793
99229
|
};
|
|
98794
99230
|
const requestRes = client._createRequest(context, {
|
|
98795
99231
|
security: requestSecurity,
|
|
98796
|
-
method: "
|
|
99232
|
+
method: "POST",
|
|
98797
99233
|
baseURL: options?.serverURL,
|
|
98798
99234
|
path,
|
|
98799
99235
|
headers,
|
|
@@ -98818,16 +99254,18 @@ async function $do162(client, request, options) {
|
|
|
98818
99254
|
const responseFields = {
|
|
98819
99255
|
HttpMeta: { Response: response, Request: req }
|
|
98820
99256
|
};
|
|
98821
|
-
const [result] = await match(json(200,
|
|
99257
|
+
const [result] = await match(json([200, 202], CreateReversalResponse$inboundSchema, {
|
|
98822
99258
|
hdrs: true,
|
|
98823
99259
|
key: "Result"
|
|
99260
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ReversalValidationError$inboundSchema, {
|
|
99261
|
+
hdrs: true
|
|
98824
99262
|
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98825
99263
|
if (!result.ok) {
|
|
98826
99264
|
return [result, { status: "complete", request: req, response }];
|
|
98827
99265
|
}
|
|
98828
99266
|
return [result, { status: "complete", request: req, response }];
|
|
98829
99267
|
}
|
|
98830
|
-
var
|
|
99268
|
+
var init_transfersCreateReversal = __esm(() => {
|
|
98831
99269
|
init_encodings();
|
|
98832
99270
|
init_http();
|
|
98833
99271
|
init_matchers();
|
|
@@ -98835,28 +99273,31 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
98835
99273
|
init_schemas4();
|
|
98836
99274
|
init_security();
|
|
98837
99275
|
init_url();
|
|
99276
|
+
init_errors4();
|
|
98838
99277
|
init_operations();
|
|
98839
99278
|
init_async();
|
|
98840
99279
|
});
|
|
98841
99280
|
|
|
98842
|
-
// src/mcp-server/tools/
|
|
98843
|
-
var args157, tool$
|
|
98844
|
-
var
|
|
98845
|
-
|
|
99281
|
+
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
99282
|
+
var args157, tool$transfersCreateReversal;
|
|
99283
|
+
var init_transfersCreateReversal2 = __esm(() => {
|
|
99284
|
+
init_transfersCreateReversal();
|
|
98846
99285
|
init_operations();
|
|
98847
99286
|
init_tools();
|
|
98848
99287
|
args157 = {
|
|
98849
|
-
request:
|
|
99288
|
+
request: CreateReversalRequest$inboundSchema
|
|
98850
99289
|
};
|
|
98851
|
-
tool$
|
|
98852
|
-
name: "transfers-
|
|
98853
|
-
description: `
|
|
98854
|
-
|
|
98855
|
-
|
|
98856
|
-
|
|
99290
|
+
tool$transfersCreateReversal = {
|
|
99291
|
+
name: "transfers-create-reversal",
|
|
99292
|
+
description: `Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
|
|
99293
|
+
Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
|
|
99294
|
+
to learn more.
|
|
99295
|
+
|
|
99296
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
99297
|
+
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98857
99298
|
args: args157,
|
|
98858
99299
|
tool: async (client, args158, ctx) => {
|
|
98859
|
-
const [result, apiCall] = await
|
|
99300
|
+
const [result, apiCall] = await transfersCreateReversal(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98860
99301
|
if (!result.ok) {
|
|
98861
99302
|
return {
|
|
98862
99303
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98869,33 +99310,28 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
98869
99310
|
};
|
|
98870
99311
|
});
|
|
98871
99312
|
|
|
98872
|
-
// src/funcs/
|
|
98873
|
-
function
|
|
99313
|
+
// src/funcs/transfersGenerateOptions.ts
|
|
99314
|
+
function transfersGenerateOptions(client, request, options) {
|
|
98874
99315
|
return new APIPromise($do163(client, request, options));
|
|
98875
99316
|
}
|
|
98876
99317
|
async function $do163(client, request, options) {
|
|
98877
|
-
const parsed = safeParse4(request, (value) =>
|
|
99318
|
+
const parsed = safeParse4(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98878
99319
|
if (!parsed.ok) {
|
|
98879
99320
|
return [parsed, { status: "invalid" }];
|
|
98880
99321
|
}
|
|
98881
99322
|
const payload = parsed.value;
|
|
98882
|
-
const body =
|
|
99323
|
+
const body = encodeJSON("body", payload.CreateTransferOptions, {
|
|
99324
|
+
explode: true
|
|
99325
|
+
});
|
|
98883
99326
|
const pathParams = {
|
|
98884
99327
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98885
99328
|
explode: false,
|
|
98886
99329
|
charEncoding: "percent"
|
|
98887
|
-
}),
|
|
98888
|
-
refundID: encodeSimple("refundID", payload.refundID, {
|
|
98889
|
-
explode: false,
|
|
98890
|
-
charEncoding: "percent"
|
|
98891
|
-
}),
|
|
98892
|
-
transferID: encodeSimple("transferID", payload.transferID, {
|
|
98893
|
-
explode: false,
|
|
98894
|
-
charEncoding: "percent"
|
|
98895
99330
|
})
|
|
98896
99331
|
};
|
|
98897
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
99332
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
|
|
98898
99333
|
const headers = new Headers(compactMap({
|
|
99334
|
+
"Content-Type": "application/json",
|
|
98899
99335
|
Accept: "application/json"
|
|
98900
99336
|
}));
|
|
98901
99337
|
const securityInput = await extractSecurity(client._options.security);
|
|
@@ -98903,7 +99339,7 @@ async function $do163(client, request, options) {
|
|
|
98903
99339
|
const context = {
|
|
98904
99340
|
options: client._options,
|
|
98905
99341
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98906
|
-
operationID: "
|
|
99342
|
+
operationID: "createTransferOptions",
|
|
98907
99343
|
oAuth2Scopes: null,
|
|
98908
99344
|
resolvedSecurity: requestSecurity,
|
|
98909
99345
|
securitySource: client._options.security,
|
|
@@ -98912,7 +99348,7 @@ async function $do163(client, request, options) {
|
|
|
98912
99348
|
};
|
|
98913
99349
|
const requestRes = client._createRequest(context, {
|
|
98914
99350
|
security: requestSecurity,
|
|
98915
|
-
method: "
|
|
99351
|
+
method: "POST",
|
|
98916
99352
|
baseURL: options?.serverURL,
|
|
98917
99353
|
path,
|
|
98918
99354
|
headers,
|
|
@@ -98937,16 +99373,18 @@ async function $do163(client, request, options) {
|
|
|
98937
99373
|
const responseFields = {
|
|
98938
99374
|
HttpMeta: { Response: response, Request: req }
|
|
98939
99375
|
};
|
|
98940
|
-
const [result] = await match(json(200,
|
|
99376
|
+
const [result] = await match(json(200, CreateTransferOptionsResponse$inboundSchema, {
|
|
98941
99377
|
hdrs: true,
|
|
98942
99378
|
key: "Result"
|
|
98943
|
-
}),
|
|
99379
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
|
|
99380
|
+
hdrs: true
|
|
99381
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98944
99382
|
if (!result.ok) {
|
|
98945
99383
|
return [result, { status: "complete", request: req, response }];
|
|
98946
99384
|
}
|
|
98947
99385
|
return [result, { status: "complete", request: req, response }];
|
|
98948
99386
|
}
|
|
98949
|
-
var
|
|
99387
|
+
var init_transfersGenerateOptions = __esm(() => {
|
|
98950
99388
|
init_encodings();
|
|
98951
99389
|
init_http();
|
|
98952
99390
|
init_matchers();
|
|
@@ -98954,28 +99392,34 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
98954
99392
|
init_schemas4();
|
|
98955
99393
|
init_security();
|
|
98956
99394
|
init_url();
|
|
99395
|
+
init_errors4();
|
|
98957
99396
|
init_operations();
|
|
98958
99397
|
init_async();
|
|
98959
99398
|
});
|
|
98960
99399
|
|
|
98961
|
-
// src/mcp-server/tools/
|
|
98962
|
-
var args158, tool$
|
|
98963
|
-
var
|
|
98964
|
-
|
|
99400
|
+
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
99401
|
+
var args158, tool$transfersGenerateOptions;
|
|
99402
|
+
var init_transfersGenerateOptions2 = __esm(() => {
|
|
99403
|
+
init_transfersGenerateOptions();
|
|
98965
99404
|
init_operations();
|
|
98966
99405
|
init_tools();
|
|
98967
99406
|
args158 = {
|
|
98968
|
-
request:
|
|
99407
|
+
request: CreateTransferOptionsRequest$inboundSchema
|
|
98969
99408
|
};
|
|
98970
|
-
tool$
|
|
98971
|
-
name: "transfers-
|
|
98972
|
-
description: `
|
|
99409
|
+
tool$transfersGenerateOptions = {
|
|
99410
|
+
name: "transfers-generate-options",
|
|
99411
|
+
description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
99412
|
+
supply in the request body.
|
|
99413
|
+
|
|
99414
|
+
The accountID in the route should the partner's accountID.
|
|
99415
|
+
|
|
99416
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
98973
99417
|
|
|
98974
99418
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98975
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.
|
|
99419
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
98976
99420
|
args: args158,
|
|
98977
99421
|
tool: async (client, args159, ctx) => {
|
|
98978
|
-
const [result, apiCall] = await
|
|
99422
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98979
99423
|
if (!result.ok) {
|
|
98980
99424
|
return {
|
|
98981
99425
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98988,17 +99432,17 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
98988
99432
|
};
|
|
98989
99433
|
});
|
|
98990
99434
|
|
|
98991
|
-
// src/funcs/
|
|
98992
|
-
function
|
|
99435
|
+
// src/funcs/transfersGet.ts
|
|
99436
|
+
function transfersGet(client, request, options) {
|
|
98993
99437
|
return new APIPromise($do164(client, request, options));
|
|
98994
99438
|
}
|
|
98995
99439
|
async function $do164(client, request, options) {
|
|
98996
|
-
const parsed = safeParse4(request, (value) =>
|
|
99440
|
+
const parsed = safeParse4(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98997
99441
|
if (!parsed.ok) {
|
|
98998
99442
|
return [parsed, { status: "invalid" }];
|
|
98999
99443
|
}
|
|
99000
99444
|
const payload = parsed.value;
|
|
99001
|
-
const body =
|
|
99445
|
+
const body = null;
|
|
99002
99446
|
const pathParams = {
|
|
99003
99447
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
99004
99448
|
explode: false,
|
|
@@ -99009,22 +99453,16 @@ async function $do164(client, request, options) {
|
|
|
99009
99453
|
charEncoding: "percent"
|
|
99010
99454
|
})
|
|
99011
99455
|
};
|
|
99012
|
-
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}
|
|
99456
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}")(pathParams);
|
|
99013
99457
|
const headers = new Headers(compactMap({
|
|
99014
|
-
|
|
99015
|
-
Accept: "application/json",
|
|
99016
|
-
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
99017
|
-
"x-wait-for": encodeSimple("x-wait-for", payload["x-wait-for"], {
|
|
99018
|
-
explode: false,
|
|
99019
|
-
charEncoding: "none"
|
|
99020
|
-
})
|
|
99458
|
+
Accept: "application/json"
|
|
99021
99459
|
}));
|
|
99022
99460
|
const securityInput = await extractSecurity(client._options.security);
|
|
99023
99461
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99024
99462
|
const context = {
|
|
99025
99463
|
options: client._options,
|
|
99026
99464
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
99027
|
-
operationID: "
|
|
99465
|
+
operationID: "getTransfer",
|
|
99028
99466
|
oAuth2Scopes: null,
|
|
99029
99467
|
resolvedSecurity: requestSecurity,
|
|
99030
99468
|
securitySource: client._options.security,
|
|
@@ -99033,7 +99471,7 @@ async function $do164(client, request, options) {
|
|
|
99033
99471
|
};
|
|
99034
99472
|
const requestRes = client._createRequest(context, {
|
|
99035
99473
|
security: requestSecurity,
|
|
99036
|
-
method: "
|
|
99474
|
+
method: "GET",
|
|
99037
99475
|
baseURL: options?.serverURL,
|
|
99038
99476
|
path,
|
|
99039
99477
|
headers,
|
|
@@ -99058,19 +99496,16 @@ async function $do164(client, request, options) {
|
|
|
99058
99496
|
const responseFields = {
|
|
99059
99497
|
HttpMeta: { Response: response, Request: req }
|
|
99060
99498
|
};
|
|
99061
|
-
const [result] = await match(json(200,
|
|
99062
|
-
hdrs: true,
|
|
99063
|
-
key: "Result"
|
|
99064
|
-
}), json(202, InitiateRefundResponse$inboundSchema, {
|
|
99499
|
+
const [result] = await match(json(200, GetTransferResponse$inboundSchema, {
|
|
99065
99500
|
hdrs: true,
|
|
99066
99501
|
key: "Result"
|
|
99067
|
-
}),
|
|
99502
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99068
99503
|
if (!result.ok) {
|
|
99069
99504
|
return [result, { status: "complete", request: req, response }];
|
|
99070
99505
|
}
|
|
99071
99506
|
return [result, { status: "complete", request: req, response }];
|
|
99072
99507
|
}
|
|
99073
|
-
var
|
|
99508
|
+
var init_transfersGet = __esm(() => {
|
|
99074
99509
|
init_encodings();
|
|
99075
99510
|
init_http();
|
|
99076
99511
|
init_matchers();
|
|
@@ -99078,32 +99513,31 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
99078
99513
|
init_schemas4();
|
|
99079
99514
|
init_security();
|
|
99080
99515
|
init_url();
|
|
99081
|
-
init_errors4();
|
|
99082
99516
|
init_operations();
|
|
99083
99517
|
init_async();
|
|
99084
99518
|
});
|
|
99085
99519
|
|
|
99086
|
-
// src/mcp-server/tools/
|
|
99087
|
-
var args159, tool$
|
|
99088
|
-
var
|
|
99089
|
-
|
|
99520
|
+
// src/mcp-server/tools/transfersGet.ts
|
|
99521
|
+
var args159, tool$transfersGet;
|
|
99522
|
+
var init_transfersGet2 = __esm(() => {
|
|
99523
|
+
init_transfersGet();
|
|
99090
99524
|
init_operations();
|
|
99091
99525
|
init_tools();
|
|
99092
99526
|
args159 = {
|
|
99093
|
-
request:
|
|
99527
|
+
request: GetTransferRequest$inboundSchema
|
|
99094
99528
|
};
|
|
99095
|
-
tool$
|
|
99096
|
-
name: "transfers-
|
|
99097
|
-
description: `
|
|
99529
|
+
tool$transfersGet = {
|
|
99530
|
+
name: "transfers-get",
|
|
99531
|
+
description: `Retrieve full transfer details for an individual transfer of a particular Moov account.
|
|
99098
99532
|
|
|
99099
|
-
|
|
99100
|
-
|
|
99533
|
+
Payment rail-specific details are included in the source and destination. Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/)
|
|
99534
|
+
to learn more.
|
|
99101
99535
|
|
|
99102
99536
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99103
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.
|
|
99537
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
99104
99538
|
args: args159,
|
|
99105
99539
|
tool: async (client, args160, ctx) => {
|
|
99106
|
-
const [result, apiCall] = await
|
|
99540
|
+
const [result, apiCall] = await transfersGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99107
99541
|
if (!result.ok) {
|
|
99108
99542
|
return {
|
|
99109
99543
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99116,12 +99550,12 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
99116
99550
|
};
|
|
99117
99551
|
});
|
|
99118
99552
|
|
|
99119
|
-
// src/funcs/
|
|
99120
|
-
function
|
|
99553
|
+
// src/funcs/transfersGetCancellation.ts
|
|
99554
|
+
function transfersGetCancellation(client, request, options) {
|
|
99121
99555
|
return new APIPromise($do165(client, request, options));
|
|
99122
99556
|
}
|
|
99123
99557
|
async function $do165(client, request, options) {
|
|
99124
|
-
const parsed = safeParse4(request, (value) =>
|
|
99558
|
+
const parsed = safeParse4(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99125
99559
|
if (!parsed.ok) {
|
|
99126
99560
|
return [parsed, { status: "invalid" }];
|
|
99127
99561
|
}
|
|
@@ -99131,23 +99565,17 @@ async function $do165(client, request, options) {
|
|
|
99131
99565
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
99132
99566
|
explode: false,
|
|
99133
99567
|
charEncoding: "percent"
|
|
99568
|
+
}),
|
|
99569
|
+
cancellationID: encodeSimple("cancellationID", payload.cancellationID, {
|
|
99570
|
+
explode: false,
|
|
99571
|
+
charEncoding: "percent"
|
|
99572
|
+
}),
|
|
99573
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
99574
|
+
explode: false,
|
|
99575
|
+
charEncoding: "percent"
|
|
99134
99576
|
})
|
|
99135
99577
|
};
|
|
99136
|
-
const path = pathToFunc("/accounts/{accountID}/transfers")(pathParams);
|
|
99137
|
-
const query = encodeFormQuery({
|
|
99138
|
-
accountIDs: payload.accountIDs,
|
|
99139
|
-
count: payload.count,
|
|
99140
|
-
disputed: payload.disputed,
|
|
99141
|
-
endDateTime: payload.endDateTime,
|
|
99142
|
-
foreignID: payload.foreignID,
|
|
99143
|
-
groupID: payload.groupID,
|
|
99144
|
-
paymentLinkCode: payload.paymentLinkCode,
|
|
99145
|
-
refunded: payload.refunded,
|
|
99146
|
-
scheduleID: payload.scheduleID,
|
|
99147
|
-
skip: payload.skip,
|
|
99148
|
-
startDateTime: payload.startDateTime,
|
|
99149
|
-
status: payload.status
|
|
99150
|
-
}, { explode: false });
|
|
99578
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/cancellations/{cancellationID}")(pathParams);
|
|
99151
99579
|
const headers = new Headers(compactMap({
|
|
99152
99580
|
Accept: "application/json"
|
|
99153
99581
|
}));
|
|
@@ -99156,7 +99584,7 @@ async function $do165(client, request, options) {
|
|
|
99156
99584
|
const context = {
|
|
99157
99585
|
options: client._options,
|
|
99158
99586
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
99159
|
-
operationID: "
|
|
99587
|
+
operationID: "getCancellation",
|
|
99160
99588
|
oAuth2Scopes: null,
|
|
99161
99589
|
resolvedSecurity: requestSecurity,
|
|
99162
99590
|
securitySource: client._options.security,
|
|
@@ -99169,7 +99597,6 @@ async function $do165(client, request, options) {
|
|
|
99169
99597
|
baseURL: options?.serverURL,
|
|
99170
99598
|
path,
|
|
99171
99599
|
headers,
|
|
99172
|
-
query,
|
|
99173
99600
|
body,
|
|
99174
99601
|
userAgent: client._options.userAgent,
|
|
99175
99602
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -99191,18 +99618,16 @@ async function $do165(client, request, options) {
|
|
|
99191
99618
|
const responseFields = {
|
|
99192
99619
|
HttpMeta: { Response: response, Request: req }
|
|
99193
99620
|
};
|
|
99194
|
-
const [result] = await match(json(200,
|
|
99621
|
+
const [result] = await match(json(200, GetCancellationResponse$inboundSchema, {
|
|
99195
99622
|
hdrs: true,
|
|
99196
99623
|
key: "Result"
|
|
99197
|
-
}),
|
|
99198
|
-
hdrs: true
|
|
99199
|
-
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99624
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99200
99625
|
if (!result.ok) {
|
|
99201
99626
|
return [result, { status: "complete", request: req, response }];
|
|
99202
99627
|
}
|
|
99203
99628
|
return [result, { status: "complete", request: req, response }];
|
|
99204
99629
|
}
|
|
99205
|
-
var
|
|
99630
|
+
var init_transfersGetCancellation = __esm(() => {
|
|
99206
99631
|
init_encodings();
|
|
99207
99632
|
init_http();
|
|
99208
99633
|
init_matchers();
|
|
@@ -99210,36 +99635,28 @@ var init_transfersList = __esm(() => {
|
|
|
99210
99635
|
init_schemas4();
|
|
99211
99636
|
init_security();
|
|
99212
99637
|
init_url();
|
|
99213
|
-
init_errors4();
|
|
99214
99638
|
init_operations();
|
|
99215
99639
|
init_async();
|
|
99216
99640
|
});
|
|
99217
99641
|
|
|
99218
|
-
// src/mcp-server/tools/
|
|
99219
|
-
var args160, tool$
|
|
99220
|
-
var
|
|
99221
|
-
|
|
99642
|
+
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
99643
|
+
var args160, tool$transfersGetCancellation;
|
|
99644
|
+
var init_transfersGetCancellation2 = __esm(() => {
|
|
99645
|
+
init_transfersGetCancellation();
|
|
99222
99646
|
init_operations();
|
|
99223
99647
|
init_tools();
|
|
99224
99648
|
args160 = {
|
|
99225
|
-
request:
|
|
99649
|
+
request: GetCancellationRequest$inboundSchema
|
|
99226
99650
|
};
|
|
99227
|
-
tool$
|
|
99228
|
-
name: "transfers-
|
|
99229
|
-
description: `
|
|
99230
|
-
|
|
99231
|
-
|
|
99232
|
-
|
|
99233
|
-
When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the \`skip\` parameter (for example,
|
|
99234
|
-
if you set \`skip\`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely
|
|
99235
|
-
process very slowly. To achieve faster performance, restrict the data as much as you can by using the \`StartDateTime\` and \`EndDateTime\` parameters for a limited
|
|
99236
|
-
period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
|
|
99237
|
-
|
|
99238
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99239
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
99651
|
+
tool$transfersGetCancellation = {
|
|
99652
|
+
name: "transfers-get-cancellation",
|
|
99653
|
+
description: ` Get details of a cancellation for a transfer.
|
|
99654
|
+
|
|
99655
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
99656
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
99240
99657
|
args: args160,
|
|
99241
99658
|
tool: async (client, args161, ctx) => {
|
|
99242
|
-
const [result, apiCall] = await
|
|
99659
|
+
const [result, apiCall] = await transfersGetCancellation(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99243
99660
|
if (!result.ok) {
|
|
99244
99661
|
return {
|
|
99245
99662
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99252,12 +99669,12 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
99252
99669
|
};
|
|
99253
99670
|
});
|
|
99254
99671
|
|
|
99255
|
-
// src/funcs/
|
|
99256
|
-
function
|
|
99672
|
+
// src/funcs/transfersGetRefund.ts
|
|
99673
|
+
function transfersGetRefund(client, request, options) {
|
|
99257
99674
|
return new APIPromise($do166(client, request, options));
|
|
99258
99675
|
}
|
|
99259
99676
|
async function $do166(client, request, options) {
|
|
99260
|
-
const parsed = safeParse4(request, (value) =>
|
|
99677
|
+
const parsed = safeParse4(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99261
99678
|
if (!parsed.ok) {
|
|
99262
99679
|
return [parsed, { status: "invalid" }];
|
|
99263
99680
|
}
|
|
@@ -99268,12 +99685,16 @@ async function $do166(client, request, options) {
|
|
|
99268
99685
|
explode: false,
|
|
99269
99686
|
charEncoding: "percent"
|
|
99270
99687
|
}),
|
|
99688
|
+
refundID: encodeSimple("refundID", payload.refundID, {
|
|
99689
|
+
explode: false,
|
|
99690
|
+
charEncoding: "percent"
|
|
99691
|
+
}),
|
|
99271
99692
|
transferID: encodeSimple("transferID", payload.transferID, {
|
|
99272
99693
|
explode: false,
|
|
99273
99694
|
charEncoding: "percent"
|
|
99274
99695
|
})
|
|
99275
99696
|
};
|
|
99276
|
-
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/refunds")(pathParams);
|
|
99697
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/refunds/{refundID}")(pathParams);
|
|
99277
99698
|
const headers = new Headers(compactMap({
|
|
99278
99699
|
Accept: "application/json"
|
|
99279
99700
|
}));
|
|
@@ -99282,7 +99703,7 @@ async function $do166(client, request, options) {
|
|
|
99282
99703
|
const context = {
|
|
99283
99704
|
options: client._options,
|
|
99284
99705
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
99285
|
-
operationID: "
|
|
99706
|
+
operationID: "getRefund",
|
|
99286
99707
|
oAuth2Scopes: null,
|
|
99287
99708
|
resolvedSecurity: requestSecurity,
|
|
99288
99709
|
securitySource: client._options.security,
|
|
@@ -99316,16 +99737,16 @@ async function $do166(client, request, options) {
|
|
|
99316
99737
|
const responseFields = {
|
|
99317
99738
|
HttpMeta: { Response: response, Request: req }
|
|
99318
99739
|
};
|
|
99319
|
-
const [result] = await match(json(200,
|
|
99740
|
+
const [result] = await match(json(200, GetRefundResponse$inboundSchema, {
|
|
99320
99741
|
hdrs: true,
|
|
99321
99742
|
key: "Result"
|
|
99322
|
-
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99743
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99323
99744
|
if (!result.ok) {
|
|
99324
99745
|
return [result, { status: "complete", request: req, response }];
|
|
99325
99746
|
}
|
|
99326
99747
|
return [result, { status: "complete", request: req, response }];
|
|
99327
99748
|
}
|
|
99328
|
-
var
|
|
99749
|
+
var init_transfersGetRefund = __esm(() => {
|
|
99329
99750
|
init_encodings();
|
|
99330
99751
|
init_http();
|
|
99331
99752
|
init_matchers();
|
|
@@ -99337,24 +99758,24 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
99337
99758
|
init_async();
|
|
99338
99759
|
});
|
|
99339
99760
|
|
|
99340
|
-
// src/mcp-server/tools/
|
|
99341
|
-
var args161, tool$
|
|
99342
|
-
var
|
|
99343
|
-
|
|
99761
|
+
// src/mcp-server/tools/transfersGetRefund.ts
|
|
99762
|
+
var args161, tool$transfersGetRefund;
|
|
99763
|
+
var init_transfersGetRefund2 = __esm(() => {
|
|
99764
|
+
init_transfersGetRefund();
|
|
99344
99765
|
init_operations();
|
|
99345
99766
|
init_tools();
|
|
99346
99767
|
args161 = {
|
|
99347
|
-
request:
|
|
99768
|
+
request: GetRefundRequest$inboundSchema
|
|
99348
99769
|
};
|
|
99349
|
-
tool$
|
|
99350
|
-
name: "transfers-
|
|
99351
|
-
description: `Get
|
|
99770
|
+
tool$transfersGetRefund = {
|
|
99771
|
+
name: "transfers-get-refund",
|
|
99772
|
+
description: `Get details of a refund for a card transfer.
|
|
99352
99773
|
|
|
99353
99774
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99354
99775
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
99355
99776
|
args: args161,
|
|
99356
99777
|
tool: async (client, args162, ctx) => {
|
|
99357
|
-
const [result, apiCall] = await
|
|
99778
|
+
const [result, apiCall] = await transfersGetRefund(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99358
99779
|
if (!result.ok) {
|
|
99359
99780
|
return {
|
|
99360
99781
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99367,17 +99788,17 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
99367
99788
|
};
|
|
99368
99789
|
});
|
|
99369
99790
|
|
|
99370
|
-
// src/funcs/
|
|
99371
|
-
function
|
|
99791
|
+
// src/funcs/transfersInitiateRefund.ts
|
|
99792
|
+
function transfersInitiateRefund(client, request, options) {
|
|
99372
99793
|
return new APIPromise($do167(client, request, options));
|
|
99373
99794
|
}
|
|
99374
99795
|
async function $do167(client, request, options) {
|
|
99375
|
-
const parsed = safeParse4(request, (value) =>
|
|
99796
|
+
const parsed = safeParse4(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99376
99797
|
if (!parsed.ok) {
|
|
99377
99798
|
return [parsed, { status: "invalid" }];
|
|
99378
99799
|
}
|
|
99379
99800
|
const payload = parsed.value;
|
|
99380
|
-
const body = encodeJSON("body", payload.
|
|
99801
|
+
const body = encodeJSON("body", payload.CreateRefund, { explode: true });
|
|
99381
99802
|
const pathParams = {
|
|
99382
99803
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
99383
99804
|
explode: false,
|
|
@@ -99388,17 +99809,22 @@ async function $do167(client, request, options) {
|
|
|
99388
99809
|
charEncoding: "percent"
|
|
99389
99810
|
})
|
|
99390
99811
|
};
|
|
99391
|
-
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}")(pathParams);
|
|
99812
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/refunds")(pathParams);
|
|
99392
99813
|
const headers = new Headers(compactMap({
|
|
99393
99814
|
"Content-Type": "application/json",
|
|
99394
|
-
Accept: "application/json"
|
|
99815
|
+
Accept: "application/json",
|
|
99816
|
+
"x-idempotency-key": encodeSimple("x-idempotency-key", payload["x-idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
99817
|
+
"x-wait-for": encodeSimple("x-wait-for", payload["x-wait-for"], {
|
|
99818
|
+
explode: false,
|
|
99819
|
+
charEncoding: "none"
|
|
99820
|
+
})
|
|
99395
99821
|
}));
|
|
99396
99822
|
const securityInput = await extractSecurity(client._options.security);
|
|
99397
99823
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99398
99824
|
const context = {
|
|
99399
99825
|
options: client._options,
|
|
99400
99826
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
99401
|
-
operationID: "
|
|
99827
|
+
operationID: "initiateRefund",
|
|
99402
99828
|
oAuth2Scopes: null,
|
|
99403
99829
|
resolvedSecurity: requestSecurity,
|
|
99404
99830
|
securitySource: client._options.security,
|
|
@@ -99407,7 +99833,381 @@ async function $do167(client, request, options) {
|
|
|
99407
99833
|
};
|
|
99408
99834
|
const requestRes = client._createRequest(context, {
|
|
99409
99835
|
security: requestSecurity,
|
|
99410
|
-
method: "
|
|
99836
|
+
method: "POST",
|
|
99837
|
+
baseURL: options?.serverURL,
|
|
99838
|
+
path,
|
|
99839
|
+
headers,
|
|
99840
|
+
body,
|
|
99841
|
+
userAgent: client._options.userAgent,
|
|
99842
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
99843
|
+
}, options);
|
|
99844
|
+
if (!requestRes.ok) {
|
|
99845
|
+
return [requestRes, { status: "invalid" }];
|
|
99846
|
+
}
|
|
99847
|
+
const req = requestRes.value;
|
|
99848
|
+
const doResult = await client._do(req, {
|
|
99849
|
+
context,
|
|
99850
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
99851
|
+
retryConfig: context.retryConfig,
|
|
99852
|
+
retryCodes: context.retryCodes
|
|
99853
|
+
});
|
|
99854
|
+
if (!doResult.ok) {
|
|
99855
|
+
return [doResult, { status: "request-error", request: req }];
|
|
99856
|
+
}
|
|
99857
|
+
const response = doResult.value;
|
|
99858
|
+
const responseFields = {
|
|
99859
|
+
HttpMeta: { Response: response, Request: req }
|
|
99860
|
+
};
|
|
99861
|
+
const [result] = await match(json(200, InitiateRefundResponse$inboundSchema, {
|
|
99862
|
+
hdrs: true,
|
|
99863
|
+
key: "Result"
|
|
99864
|
+
}), json(202, InitiateRefundResponse$inboundSchema, {
|
|
99865
|
+
hdrs: true,
|
|
99866
|
+
key: "Result"
|
|
99867
|
+
}), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(409, CardAcquiringRefund$inboundSchema2, { hdrs: true }), jsonErr(422, RefundValidationError$inboundSchema, { hdrs: true }), fail([404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99868
|
+
if (!result.ok) {
|
|
99869
|
+
return [result, { status: "complete", request: req, response }];
|
|
99870
|
+
}
|
|
99871
|
+
return [result, { status: "complete", request: req, response }];
|
|
99872
|
+
}
|
|
99873
|
+
var init_transfersInitiateRefund = __esm(() => {
|
|
99874
|
+
init_encodings();
|
|
99875
|
+
init_http();
|
|
99876
|
+
init_matchers();
|
|
99877
|
+
init_primitives();
|
|
99878
|
+
init_schemas4();
|
|
99879
|
+
init_security();
|
|
99880
|
+
init_url();
|
|
99881
|
+
init_errors4();
|
|
99882
|
+
init_operations();
|
|
99883
|
+
init_async();
|
|
99884
|
+
});
|
|
99885
|
+
|
|
99886
|
+
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
99887
|
+
var args162, tool$transfersInitiateRefund;
|
|
99888
|
+
var init_transfersInitiateRefund2 = __esm(() => {
|
|
99889
|
+
init_transfersInitiateRefund();
|
|
99890
|
+
init_operations();
|
|
99891
|
+
init_tools();
|
|
99892
|
+
args162 = {
|
|
99893
|
+
request: InitiateRefundRequest$inboundSchema
|
|
99894
|
+
};
|
|
99895
|
+
tool$transfersInitiateRefund = {
|
|
99896
|
+
name: "transfers-initiate-refund",
|
|
99897
|
+
description: `Initiate a refund for a card transfer.
|
|
99898
|
+
|
|
99899
|
+
**Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
|
|
99900
|
+
See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
|
|
99901
|
+
|
|
99902
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99903
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
99904
|
+
args: args162,
|
|
99905
|
+
tool: async (client, args163, ctx) => {
|
|
99906
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99907
|
+
if (!result.ok) {
|
|
99908
|
+
return {
|
|
99909
|
+
content: [{ type: "text", text: result.error.message }],
|
|
99910
|
+
isError: true
|
|
99911
|
+
};
|
|
99912
|
+
}
|
|
99913
|
+
const value = result.value.result;
|
|
99914
|
+
return formatResult(value, apiCall);
|
|
99915
|
+
}
|
|
99916
|
+
};
|
|
99917
|
+
});
|
|
99918
|
+
|
|
99919
|
+
// src/funcs/transfersList.ts
|
|
99920
|
+
function transfersList(client, request, options) {
|
|
99921
|
+
return new APIPromise($do168(client, request, options));
|
|
99922
|
+
}
|
|
99923
|
+
async function $do168(client, request, options) {
|
|
99924
|
+
const parsed = safeParse4(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99925
|
+
if (!parsed.ok) {
|
|
99926
|
+
return [parsed, { status: "invalid" }];
|
|
99927
|
+
}
|
|
99928
|
+
const payload = parsed.value;
|
|
99929
|
+
const body = null;
|
|
99930
|
+
const pathParams = {
|
|
99931
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
99932
|
+
explode: false,
|
|
99933
|
+
charEncoding: "percent"
|
|
99934
|
+
})
|
|
99935
|
+
};
|
|
99936
|
+
const path = pathToFunc("/accounts/{accountID}/transfers")(pathParams);
|
|
99937
|
+
const query = encodeFormQuery({
|
|
99938
|
+
accountIDs: payload.accountIDs,
|
|
99939
|
+
count: payload.count,
|
|
99940
|
+
disputed: payload.disputed,
|
|
99941
|
+
endDateTime: payload.endDateTime,
|
|
99942
|
+
foreignID: payload.foreignID,
|
|
99943
|
+
groupID: payload.groupID,
|
|
99944
|
+
paymentLinkCode: payload.paymentLinkCode,
|
|
99945
|
+
refunded: payload.refunded,
|
|
99946
|
+
scheduleID: payload.scheduleID,
|
|
99947
|
+
skip: payload.skip,
|
|
99948
|
+
startDateTime: payload.startDateTime,
|
|
99949
|
+
status: payload.status
|
|
99950
|
+
}, { explode: false });
|
|
99951
|
+
const headers = new Headers(compactMap({
|
|
99952
|
+
Accept: "application/json"
|
|
99953
|
+
}));
|
|
99954
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
99955
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99956
|
+
const context = {
|
|
99957
|
+
options: client._options,
|
|
99958
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
99959
|
+
operationID: "listTransfers",
|
|
99960
|
+
oAuth2Scopes: null,
|
|
99961
|
+
resolvedSecurity: requestSecurity,
|
|
99962
|
+
securitySource: client._options.security,
|
|
99963
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
99964
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
99965
|
+
};
|
|
99966
|
+
const requestRes = client._createRequest(context, {
|
|
99967
|
+
security: requestSecurity,
|
|
99968
|
+
method: "GET",
|
|
99969
|
+
baseURL: options?.serverURL,
|
|
99970
|
+
path,
|
|
99971
|
+
headers,
|
|
99972
|
+
query,
|
|
99973
|
+
body,
|
|
99974
|
+
userAgent: client._options.userAgent,
|
|
99975
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
99976
|
+
}, options);
|
|
99977
|
+
if (!requestRes.ok) {
|
|
99978
|
+
return [requestRes, { status: "invalid" }];
|
|
99979
|
+
}
|
|
99980
|
+
const req = requestRes.value;
|
|
99981
|
+
const doResult = await client._do(req, {
|
|
99982
|
+
context,
|
|
99983
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
99984
|
+
retryConfig: context.retryConfig,
|
|
99985
|
+
retryCodes: context.retryCodes
|
|
99986
|
+
});
|
|
99987
|
+
if (!doResult.ok) {
|
|
99988
|
+
return [doResult, { status: "request-error", request: req }];
|
|
99989
|
+
}
|
|
99990
|
+
const response = doResult.value;
|
|
99991
|
+
const responseFields = {
|
|
99992
|
+
HttpMeta: { Response: response, Request: req }
|
|
99993
|
+
};
|
|
99994
|
+
const [result] = await match(json(200, ListTransfersResponse$inboundSchema, {
|
|
99995
|
+
hdrs: true,
|
|
99996
|
+
key: "Result"
|
|
99997
|
+
}), jsonErr(422, ListTransfersValidationError$inboundSchema, {
|
|
99998
|
+
hdrs: true
|
|
99999
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
100000
|
+
if (!result.ok) {
|
|
100001
|
+
return [result, { status: "complete", request: req, response }];
|
|
100002
|
+
}
|
|
100003
|
+
return [result, { status: "complete", request: req, response }];
|
|
100004
|
+
}
|
|
100005
|
+
var init_transfersList = __esm(() => {
|
|
100006
|
+
init_encodings();
|
|
100007
|
+
init_http();
|
|
100008
|
+
init_matchers();
|
|
100009
|
+
init_primitives();
|
|
100010
|
+
init_schemas4();
|
|
100011
|
+
init_security();
|
|
100012
|
+
init_url();
|
|
100013
|
+
init_errors4();
|
|
100014
|
+
init_operations();
|
|
100015
|
+
init_async();
|
|
100016
|
+
});
|
|
100017
|
+
|
|
100018
|
+
// src/mcp-server/tools/transfersList.ts
|
|
100019
|
+
var args163, tool$transfersList;
|
|
100020
|
+
var init_transfersList2 = __esm(() => {
|
|
100021
|
+
init_transfersList();
|
|
100022
|
+
init_operations();
|
|
100023
|
+
init_tools();
|
|
100024
|
+
args163 = {
|
|
100025
|
+
request: ListTransfersRequest$inboundSchema
|
|
100026
|
+
};
|
|
100027
|
+
tool$transfersList = {
|
|
100028
|
+
name: "transfers-list",
|
|
100029
|
+
description: `List all the transfers associated with a particular Moov account.
|
|
100030
|
+
|
|
100031
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
100032
|
+
|
|
100033
|
+
When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the \`skip\` parameter (for example,
|
|
100034
|
+
if you set \`skip\`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely
|
|
100035
|
+
process very slowly. To achieve faster performance, restrict the data as much as you can by using the \`StartDateTime\` and \`EndDateTime\` parameters for a limited
|
|
100036
|
+
period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
|
|
100037
|
+
|
|
100038
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100039
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100040
|
+
args: args163,
|
|
100041
|
+
tool: async (client, args164, ctx) => {
|
|
100042
|
+
const [result, apiCall] = await transfersList(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100043
|
+
if (!result.ok) {
|
|
100044
|
+
return {
|
|
100045
|
+
content: [{ type: "text", text: result.error.message }],
|
|
100046
|
+
isError: true
|
|
100047
|
+
};
|
|
100048
|
+
}
|
|
100049
|
+
const value = result.value.result;
|
|
100050
|
+
return formatResult(value, apiCall);
|
|
100051
|
+
}
|
|
100052
|
+
};
|
|
100053
|
+
});
|
|
100054
|
+
|
|
100055
|
+
// src/funcs/transfersListRefunds.ts
|
|
100056
|
+
function transfersListRefunds(client, request, options) {
|
|
100057
|
+
return new APIPromise($do169(client, request, options));
|
|
100058
|
+
}
|
|
100059
|
+
async function $do169(client, request, options) {
|
|
100060
|
+
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100061
|
+
if (!parsed.ok) {
|
|
100062
|
+
return [parsed, { status: "invalid" }];
|
|
100063
|
+
}
|
|
100064
|
+
const payload = parsed.value;
|
|
100065
|
+
const body = null;
|
|
100066
|
+
const pathParams = {
|
|
100067
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
100068
|
+
explode: false,
|
|
100069
|
+
charEncoding: "percent"
|
|
100070
|
+
}),
|
|
100071
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
100072
|
+
explode: false,
|
|
100073
|
+
charEncoding: "percent"
|
|
100074
|
+
})
|
|
100075
|
+
};
|
|
100076
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}/refunds")(pathParams);
|
|
100077
|
+
const headers = new Headers(compactMap({
|
|
100078
|
+
Accept: "application/json"
|
|
100079
|
+
}));
|
|
100080
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
100081
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100082
|
+
const context = {
|
|
100083
|
+
options: client._options,
|
|
100084
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
100085
|
+
operationID: "listRefunds",
|
|
100086
|
+
oAuth2Scopes: null,
|
|
100087
|
+
resolvedSecurity: requestSecurity,
|
|
100088
|
+
securitySource: client._options.security,
|
|
100089
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
100090
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
100091
|
+
};
|
|
100092
|
+
const requestRes = client._createRequest(context, {
|
|
100093
|
+
security: requestSecurity,
|
|
100094
|
+
method: "GET",
|
|
100095
|
+
baseURL: options?.serverURL,
|
|
100096
|
+
path,
|
|
100097
|
+
headers,
|
|
100098
|
+
body,
|
|
100099
|
+
userAgent: client._options.userAgent,
|
|
100100
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
100101
|
+
}, options);
|
|
100102
|
+
if (!requestRes.ok) {
|
|
100103
|
+
return [requestRes, { status: "invalid" }];
|
|
100104
|
+
}
|
|
100105
|
+
const req = requestRes.value;
|
|
100106
|
+
const doResult = await client._do(req, {
|
|
100107
|
+
context,
|
|
100108
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
100109
|
+
retryConfig: context.retryConfig,
|
|
100110
|
+
retryCodes: context.retryCodes
|
|
100111
|
+
});
|
|
100112
|
+
if (!doResult.ok) {
|
|
100113
|
+
return [doResult, { status: "request-error", request: req }];
|
|
100114
|
+
}
|
|
100115
|
+
const response = doResult.value;
|
|
100116
|
+
const responseFields = {
|
|
100117
|
+
HttpMeta: { Response: response, Request: req }
|
|
100118
|
+
};
|
|
100119
|
+
const [result] = await match(json(200, ListRefundsResponse$inboundSchema, {
|
|
100120
|
+
hdrs: true,
|
|
100121
|
+
key: "Result"
|
|
100122
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
100123
|
+
if (!result.ok) {
|
|
100124
|
+
return [result, { status: "complete", request: req, response }];
|
|
100125
|
+
}
|
|
100126
|
+
return [result, { status: "complete", request: req, response }];
|
|
100127
|
+
}
|
|
100128
|
+
var init_transfersListRefunds = __esm(() => {
|
|
100129
|
+
init_encodings();
|
|
100130
|
+
init_http();
|
|
100131
|
+
init_matchers();
|
|
100132
|
+
init_primitives();
|
|
100133
|
+
init_schemas4();
|
|
100134
|
+
init_security();
|
|
100135
|
+
init_url();
|
|
100136
|
+
init_operations();
|
|
100137
|
+
init_async();
|
|
100138
|
+
});
|
|
100139
|
+
|
|
100140
|
+
// src/mcp-server/tools/transfersListRefunds.ts
|
|
100141
|
+
var args164, tool$transfersListRefunds;
|
|
100142
|
+
var init_transfersListRefunds2 = __esm(() => {
|
|
100143
|
+
init_transfersListRefunds();
|
|
100144
|
+
init_operations();
|
|
100145
|
+
init_tools();
|
|
100146
|
+
args164 = {
|
|
100147
|
+
request: ListRefundsRequest$inboundSchema
|
|
100148
|
+
};
|
|
100149
|
+
tool$transfersListRefunds = {
|
|
100150
|
+
name: "transfers-list-refunds",
|
|
100151
|
+
description: `Get a list of refunds for a card transfer.
|
|
100152
|
+
|
|
100153
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100154
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100155
|
+
args: args164,
|
|
100156
|
+
tool: async (client, args165, ctx) => {
|
|
100157
|
+
const [result, apiCall] = await transfersListRefunds(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100158
|
+
if (!result.ok) {
|
|
100159
|
+
return {
|
|
100160
|
+
content: [{ type: "text", text: result.error.message }],
|
|
100161
|
+
isError: true
|
|
100162
|
+
};
|
|
100163
|
+
}
|
|
100164
|
+
const value = result.value.result;
|
|
100165
|
+
return formatResult(value, apiCall);
|
|
100166
|
+
}
|
|
100167
|
+
};
|
|
100168
|
+
});
|
|
100169
|
+
|
|
100170
|
+
// src/funcs/transfersUpdate.ts
|
|
100171
|
+
function transfersUpdate(client, request, options) {
|
|
100172
|
+
return new APIPromise($do170(client, request, options));
|
|
100173
|
+
}
|
|
100174
|
+
async function $do170(client, request, options) {
|
|
100175
|
+
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100176
|
+
if (!parsed.ok) {
|
|
100177
|
+
return [parsed, { status: "invalid" }];
|
|
100178
|
+
}
|
|
100179
|
+
const payload = parsed.value;
|
|
100180
|
+
const body = encodeJSON("body", payload.PatchTransfer, { explode: true });
|
|
100181
|
+
const pathParams = {
|
|
100182
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
100183
|
+
explode: false,
|
|
100184
|
+
charEncoding: "percent"
|
|
100185
|
+
}),
|
|
100186
|
+
transferID: encodeSimple("transferID", payload.transferID, {
|
|
100187
|
+
explode: false,
|
|
100188
|
+
charEncoding: "percent"
|
|
100189
|
+
})
|
|
100190
|
+
};
|
|
100191
|
+
const path = pathToFunc("/accounts/{accountID}/transfers/{transferID}")(pathParams);
|
|
100192
|
+
const headers = new Headers(compactMap({
|
|
100193
|
+
"Content-Type": "application/json",
|
|
100194
|
+
Accept: "application/json"
|
|
100195
|
+
}));
|
|
100196
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
100197
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100198
|
+
const context = {
|
|
100199
|
+
options: client._options,
|
|
100200
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
100201
|
+
operationID: "updateTransfer",
|
|
100202
|
+
oAuth2Scopes: null,
|
|
100203
|
+
resolvedSecurity: requestSecurity,
|
|
100204
|
+
securitySource: client._options.security,
|
|
100205
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
100206
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
100207
|
+
};
|
|
100208
|
+
const requestRes = client._createRequest(context, {
|
|
100209
|
+
security: requestSecurity,
|
|
100210
|
+
method: "PATCH",
|
|
99411
100211
|
baseURL: options?.serverURL,
|
|
99412
100212
|
path,
|
|
99413
100213
|
headers,
|
|
@@ -99457,12 +100257,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
99457
100257
|
});
|
|
99458
100258
|
|
|
99459
100259
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
99460
|
-
var
|
|
100260
|
+
var args165, tool$transfersUpdate;
|
|
99461
100261
|
var init_transfersUpdate2 = __esm(() => {
|
|
99462
100262
|
init_transfersUpdate();
|
|
99463
100263
|
init_operations();
|
|
99464
100264
|
init_tools();
|
|
99465
|
-
|
|
100265
|
+
args165 = {
|
|
99466
100266
|
request: UpdateTransferRequest$inboundSchema
|
|
99467
100267
|
};
|
|
99468
100268
|
tool$transfersUpdate = {
|
|
@@ -99473,9 +100273,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
99473
100273
|
|
|
99474
100274
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99475
100275
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
99476
|
-
args:
|
|
99477
|
-
tool: async (client,
|
|
99478
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
100276
|
+
args: args165,
|
|
100277
|
+
tool: async (client, args166, ctx) => {
|
|
100278
|
+
const [result, apiCall] = await transfersUpdate(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99479
100279
|
if (!result.ok) {
|
|
99480
100280
|
return {
|
|
99481
100281
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99490,9 +100290,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
99490
100290
|
|
|
99491
100291
|
// src/funcs/underwritingGet.ts
|
|
99492
100292
|
function underwritingGet(client, request, options) {
|
|
99493
|
-
return new APIPromise($
|
|
100293
|
+
return new APIPromise($do171(client, request, options));
|
|
99494
100294
|
}
|
|
99495
|
-
async function $
|
|
100295
|
+
async function $do171(client, request, options) {
|
|
99496
100296
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99497
100297
|
if (!parsed.ok) {
|
|
99498
100298
|
return [parsed, { status: "invalid" }];
|
|
@@ -99570,12 +100370,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
99570
100370
|
});
|
|
99571
100371
|
|
|
99572
100372
|
// src/mcp-server/tools/underwritingGet.ts
|
|
99573
|
-
var
|
|
100373
|
+
var args166, tool$underwritingGet;
|
|
99574
100374
|
var init_underwritingGet2 = __esm(() => {
|
|
99575
100375
|
init_underwritingGet();
|
|
99576
100376
|
init_operations();
|
|
99577
100377
|
init_tools();
|
|
99578
|
-
|
|
100378
|
+
args166 = {
|
|
99579
100379
|
request: GetUnderwritingRequest$inboundSchema
|
|
99580
100380
|
};
|
|
99581
100381
|
tool$underwritingGet = {
|
|
@@ -99586,9 +100386,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
99586
100386
|
|
|
99587
100387
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99588
100388
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
99589
|
-
args:
|
|
99590
|
-
tool: async (client,
|
|
99591
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
100389
|
+
args: args166,
|
|
100390
|
+
tool: async (client, args167, ctx) => {
|
|
100391
|
+
const [result, apiCall] = await underwritingGet(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99592
100392
|
if (!result.ok) {
|
|
99593
100393
|
return {
|
|
99594
100394
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99603,9 +100403,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
99603
100403
|
|
|
99604
100404
|
// src/funcs/underwritingSave.ts
|
|
99605
100405
|
function underwritingSave(client, request, options) {
|
|
99606
|
-
return new APIPromise($
|
|
100406
|
+
return new APIPromise($do172(client, request, options));
|
|
99607
100407
|
}
|
|
99608
|
-
async function $
|
|
100408
|
+
async function $do172(client, request, options) {
|
|
99609
100409
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99610
100410
|
if (!parsed.ok) {
|
|
99611
100411
|
return [parsed, { status: "invalid" }];
|
|
@@ -99689,12 +100489,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
99689
100489
|
});
|
|
99690
100490
|
|
|
99691
100491
|
// src/mcp-server/tools/underwritingSave.ts
|
|
99692
|
-
var
|
|
100492
|
+
var args167, tool$underwritingSave;
|
|
99693
100493
|
var init_underwritingSave2 = __esm(() => {
|
|
99694
100494
|
init_underwritingSave();
|
|
99695
100495
|
init_operations();
|
|
99696
100496
|
init_tools();
|
|
99697
|
-
|
|
100497
|
+
args167 = {
|
|
99698
100498
|
request: SaveUnderwritingRequest$inboundSchema
|
|
99699
100499
|
};
|
|
99700
100500
|
tool$underwritingSave = {
|
|
@@ -99705,9 +100505,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
99705
100505
|
|
|
99706
100506
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99707
100507
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
99708
|
-
args:
|
|
99709
|
-
tool: async (client,
|
|
99710
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
100508
|
+
args: args167,
|
|
100509
|
+
tool: async (client, args168, ctx) => {
|
|
100510
|
+
const [result, apiCall] = await underwritingSave(client, args168.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99711
100511
|
if (!result.ok) {
|
|
99712
100512
|
return {
|
|
99713
100513
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99722,9 +100522,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
99722
100522
|
|
|
99723
100523
|
// src/funcs/underwritingUpsert.ts
|
|
99724
100524
|
function underwritingUpsert(client, request, options) {
|
|
99725
|
-
return new APIPromise($
|
|
100525
|
+
return new APIPromise($do173(client, request, options));
|
|
99726
100526
|
}
|
|
99727
|
-
async function $
|
|
100527
|
+
async function $do173(client, request, options) {
|
|
99728
100528
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99729
100529
|
if (!parsed.ok) {
|
|
99730
100530
|
return [parsed, { status: "invalid" }];
|
|
@@ -99808,12 +100608,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
99808
100608
|
});
|
|
99809
100609
|
|
|
99810
100610
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
99811
|
-
var
|
|
100611
|
+
var args168, tool$underwritingUpsert;
|
|
99812
100612
|
var init_underwritingUpsert2 = __esm(() => {
|
|
99813
100613
|
init_underwritingUpsert();
|
|
99814
100614
|
init_operations();
|
|
99815
100615
|
init_tools();
|
|
99816
|
-
|
|
100616
|
+
args168 = {
|
|
99817
100617
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
99818
100618
|
};
|
|
99819
100619
|
tool$underwritingUpsert = {
|
|
@@ -99824,9 +100624,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
99824
100624
|
|
|
99825
100625
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99826
100626
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
99827
|
-
args:
|
|
99828
|
-
tool: async (client,
|
|
99829
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
100627
|
+
args: args168,
|
|
100628
|
+
tool: async (client, args169, ctx) => {
|
|
100629
|
+
const [result, apiCall] = await underwritingUpsert(client, args169.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99830
100630
|
if (!result.ok) {
|
|
99831
100631
|
return {
|
|
99832
100632
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99841,9 +100641,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
99841
100641
|
|
|
99842
100642
|
// src/funcs/walletsCreate.ts
|
|
99843
100643
|
function walletsCreate(client, request, options) {
|
|
99844
|
-
return new APIPromise($
|
|
100644
|
+
return new APIPromise($do174(client, request, options));
|
|
99845
100645
|
}
|
|
99846
|
-
async function $
|
|
100646
|
+
async function $do174(client, request, options) {
|
|
99847
100647
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99848
100648
|
if (!parsed.ok) {
|
|
99849
100649
|
return [parsed, { status: "invalid" }];
|
|
@@ -99925,12 +100725,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
99925
100725
|
});
|
|
99926
100726
|
|
|
99927
100727
|
// src/mcp-server/tools/walletsCreate.ts
|
|
99928
|
-
var
|
|
100728
|
+
var args169, tool$walletsCreate;
|
|
99929
100729
|
var init_walletsCreate2 = __esm(() => {
|
|
99930
100730
|
init_walletsCreate();
|
|
99931
100731
|
init_operations();
|
|
99932
100732
|
init_tools();
|
|
99933
|
-
|
|
100733
|
+
args169 = {
|
|
99934
100734
|
request: CreateWalletRequest$inboundSchema
|
|
99935
100735
|
};
|
|
99936
100736
|
tool$walletsCreate = {
|
|
@@ -99941,9 +100741,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
99941
100741
|
|
|
99942
100742
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99943
100743
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
99944
|
-
args:
|
|
99945
|
-
tool: async (client,
|
|
99946
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
100744
|
+
args: args169,
|
|
100745
|
+
tool: async (client, args170, ctx) => {
|
|
100746
|
+
const [result, apiCall] = await walletsCreate(client, args170.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99947
100747
|
if (!result.ok) {
|
|
99948
100748
|
return {
|
|
99949
100749
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99958,9 +100758,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
99958
100758
|
|
|
99959
100759
|
// src/funcs/walletsGet.ts
|
|
99960
100760
|
function walletsGet(client, request, options) {
|
|
99961
|
-
return new APIPromise($
|
|
100761
|
+
return new APIPromise($do175(client, request, options));
|
|
99962
100762
|
}
|
|
99963
|
-
async function $
|
|
100763
|
+
async function $do175(client, request, options) {
|
|
99964
100764
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99965
100765
|
if (!parsed.ok) {
|
|
99966
100766
|
return [parsed, { status: "invalid" }];
|
|
@@ -100042,12 +100842,12 @@ var init_walletsGet = __esm(() => {
|
|
|
100042
100842
|
});
|
|
100043
100843
|
|
|
100044
100844
|
// src/mcp-server/tools/walletsGet.ts
|
|
100045
|
-
var
|
|
100845
|
+
var args170, tool$walletsGet;
|
|
100046
100846
|
var init_walletsGet2 = __esm(() => {
|
|
100047
100847
|
init_walletsGet();
|
|
100048
100848
|
init_operations();
|
|
100049
100849
|
init_tools();
|
|
100050
|
-
|
|
100850
|
+
args170 = {
|
|
100051
100851
|
request: GetWalletRequest$inboundSchema
|
|
100052
100852
|
};
|
|
100053
100853
|
tool$walletsGet = {
|
|
@@ -100058,9 +100858,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
100058
100858
|
|
|
100059
100859
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100060
100860
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
100061
|
-
args:
|
|
100062
|
-
tool: async (client,
|
|
100063
|
-
const [result, apiCall] = await walletsGet(client,
|
|
100861
|
+
args: args170,
|
|
100862
|
+
tool: async (client, args171, ctx) => {
|
|
100863
|
+
const [result, apiCall] = await walletsGet(client, args171.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100064
100864
|
if (!result.ok) {
|
|
100065
100865
|
return {
|
|
100066
100866
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100075,9 +100875,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
100075
100875
|
|
|
100076
100876
|
// src/funcs/walletsList.ts
|
|
100077
100877
|
function walletsList(client, request, options) {
|
|
100078
|
-
return new APIPromise($
|
|
100878
|
+
return new APIPromise($do176(client, request, options));
|
|
100079
100879
|
}
|
|
100080
|
-
async function $
|
|
100880
|
+
async function $do176(client, request, options) {
|
|
100081
100881
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100082
100882
|
if (!parsed.ok) {
|
|
100083
100883
|
return [parsed, { status: "invalid" }];
|
|
@@ -100165,12 +100965,12 @@ var init_walletsList = __esm(() => {
|
|
|
100165
100965
|
});
|
|
100166
100966
|
|
|
100167
100967
|
// src/mcp-server/tools/walletsList.ts
|
|
100168
|
-
var
|
|
100968
|
+
var args171, tool$walletsList;
|
|
100169
100969
|
var init_walletsList2 = __esm(() => {
|
|
100170
100970
|
init_walletsList();
|
|
100171
100971
|
init_operations();
|
|
100172
100972
|
init_tools();
|
|
100173
|
-
|
|
100973
|
+
args171 = {
|
|
100174
100974
|
request: ListWalletsRequest$inboundSchema
|
|
100175
100975
|
};
|
|
100176
100976
|
tool$walletsList = {
|
|
@@ -100181,9 +100981,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
100181
100981
|
|
|
100182
100982
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100183
100983
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
100184
|
-
args:
|
|
100185
|
-
tool: async (client,
|
|
100186
|
-
const [result, apiCall] = await walletsList(client,
|
|
100984
|
+
args: args171,
|
|
100985
|
+
tool: async (client, args172, ctx) => {
|
|
100986
|
+
const [result, apiCall] = await walletsList(client, args172.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100187
100987
|
if (!result.ok) {
|
|
100188
100988
|
return {
|
|
100189
100989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100198,9 +100998,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
100198
100998
|
|
|
100199
100999
|
// src/funcs/walletsUpdate.ts
|
|
100200
101000
|
function walletsUpdate(client, request, options) {
|
|
100201
|
-
return new APIPromise($
|
|
101001
|
+
return new APIPromise($do177(client, request, options));
|
|
100202
101002
|
}
|
|
100203
|
-
async function $
|
|
101003
|
+
async function $do177(client, request, options) {
|
|
100204
101004
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100205
101005
|
if (!parsed.ok) {
|
|
100206
101006
|
return [parsed, { status: "invalid" }];
|
|
@@ -100286,12 +101086,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
100286
101086
|
});
|
|
100287
101087
|
|
|
100288
101088
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
100289
|
-
var
|
|
101089
|
+
var args172, tool$walletsUpdate;
|
|
100290
101090
|
var init_walletsUpdate2 = __esm(() => {
|
|
100291
101091
|
init_walletsUpdate();
|
|
100292
101092
|
init_operations();
|
|
100293
101093
|
init_tools();
|
|
100294
|
-
|
|
101094
|
+
args172 = {
|
|
100295
101095
|
request: UpdateWalletRequest$inboundSchema
|
|
100296
101096
|
};
|
|
100297
101097
|
tool$walletsUpdate = {
|
|
@@ -100302,9 +101102,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
100302
101102
|
|
|
100303
101103
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100304
101104
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
100305
|
-
args:
|
|
100306
|
-
tool: async (client,
|
|
100307
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
101105
|
+
args: args172,
|
|
101106
|
+
tool: async (client, args173, ctx) => {
|
|
101107
|
+
const [result, apiCall] = await walletsUpdate(client, args173.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100308
101108
|
if (!result.ok) {
|
|
100309
101109
|
return {
|
|
100310
101110
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100319,9 +101119,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
100319
101119
|
|
|
100320
101120
|
// src/funcs/walletTransactionsGet.ts
|
|
100321
101121
|
function walletTransactionsGet(client, request, options) {
|
|
100322
|
-
return new APIPromise($
|
|
101122
|
+
return new APIPromise($do178(client, request, options));
|
|
100323
101123
|
}
|
|
100324
|
-
async function $
|
|
101124
|
+
async function $do178(client, request, options) {
|
|
100325
101125
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100326
101126
|
if (!parsed.ok) {
|
|
100327
101127
|
return [parsed, { status: "invalid" }];
|
|
@@ -100407,12 +101207,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
100407
101207
|
});
|
|
100408
101208
|
|
|
100409
101209
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
100410
|
-
var
|
|
101210
|
+
var args173, tool$walletTransactionsGet;
|
|
100411
101211
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
100412
101212
|
init_walletTransactionsGet();
|
|
100413
101213
|
init_operations();
|
|
100414
101214
|
init_tools();
|
|
100415
|
-
|
|
101215
|
+
args173 = {
|
|
100416
101216
|
request: GetWalletTransactionRequest$inboundSchema
|
|
100417
101217
|
};
|
|
100418
101218
|
tool$walletTransactionsGet = {
|
|
@@ -100423,9 +101223,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
100423
101223
|
|
|
100424
101224
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100425
101225
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
100426
|
-
args:
|
|
100427
|
-
tool: async (client,
|
|
100428
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
101226
|
+
args: args173,
|
|
101227
|
+
tool: async (client, args174, ctx) => {
|
|
101228
|
+
const [result, apiCall] = await walletTransactionsGet(client, args174.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100429
101229
|
if (!result.ok) {
|
|
100430
101230
|
return {
|
|
100431
101231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100440,9 +101240,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
100440
101240
|
|
|
100441
101241
|
// src/funcs/walletTransactionsList.ts
|
|
100442
101242
|
function walletTransactionsList(client, request, options) {
|
|
100443
|
-
return new APIPromise($
|
|
101243
|
+
return new APIPromise($do179(client, request, options));
|
|
100444
101244
|
}
|
|
100445
|
-
async function $
|
|
101245
|
+
async function $do179(client, request, options) {
|
|
100446
101246
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100447
101247
|
if (!parsed.ok) {
|
|
100448
101248
|
return [parsed, { status: "invalid" }];
|
|
@@ -100542,12 +101342,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
100542
101342
|
});
|
|
100543
101343
|
|
|
100544
101344
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
100545
|
-
var
|
|
101345
|
+
var args174, tool$walletTransactionsList;
|
|
100546
101346
|
var init_walletTransactionsList2 = __esm(() => {
|
|
100547
101347
|
init_walletTransactionsList();
|
|
100548
101348
|
init_operations();
|
|
100549
101349
|
init_tools();
|
|
100550
|
-
|
|
101350
|
+
args174 = {
|
|
100551
101351
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
100552
101352
|
};
|
|
100553
101353
|
tool$walletTransactionsList = {
|
|
@@ -100558,9 +101358,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
100558
101358
|
|
|
100559
101359
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100560
101360
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
100561
|
-
args:
|
|
100562
|
-
tool: async (client,
|
|
100563
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
101361
|
+
args: args174,
|
|
101362
|
+
tool: async (client, args175, ctx) => {
|
|
101363
|
+
const [result, apiCall] = await walletTransactionsList(client, args175.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100564
101364
|
if (!result.ok) {
|
|
100565
101365
|
return {
|
|
100566
101366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100575,9 +101375,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
100575
101375
|
|
|
100576
101376
|
// src/funcs/webhooksCreate.ts
|
|
100577
101377
|
function webhooksCreate(client, request, options) {
|
|
100578
|
-
return new APIPromise($
|
|
101378
|
+
return new APIPromise($do180(client, request, options));
|
|
100579
101379
|
}
|
|
100580
|
-
async function $
|
|
101380
|
+
async function $do180(client, request, options) {
|
|
100581
101381
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
100582
101382
|
if (!parsed.ok) {
|
|
100583
101383
|
return [parsed, { status: "invalid" }];
|
|
@@ -100654,20 +101454,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
100654
101454
|
});
|
|
100655
101455
|
|
|
100656
101456
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
100657
|
-
var
|
|
101457
|
+
var args175, tool$webhooksCreate;
|
|
100658
101458
|
var init_webhooksCreate2 = __esm(() => {
|
|
100659
101459
|
init_webhooksCreate();
|
|
100660
101460
|
init_components();
|
|
100661
101461
|
init_tools();
|
|
100662
|
-
|
|
101462
|
+
args175 = {
|
|
100663
101463
|
request: CreateWebhook$inboundSchema
|
|
100664
101464
|
};
|
|
100665
101465
|
tool$webhooksCreate = {
|
|
100666
101466
|
name: "webhooks-create",
|
|
100667
101467
|
description: `Create a new webhook for the account.`,
|
|
100668
|
-
args:
|
|
100669
|
-
tool: async (client,
|
|
100670
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
101468
|
+
args: args175,
|
|
101469
|
+
tool: async (client, args176, ctx) => {
|
|
101470
|
+
const [result, apiCall] = await webhooksCreate(client, args176.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100671
101471
|
if (!result.ok) {
|
|
100672
101472
|
return {
|
|
100673
101473
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100682,9 +101482,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
100682
101482
|
|
|
100683
101483
|
// src/funcs/webhooksDisable.ts
|
|
100684
101484
|
function webhooksDisable(client, request, options) {
|
|
100685
|
-
return new APIPromise($
|
|
101485
|
+
return new APIPromise($do181(client, request, options));
|
|
100686
101486
|
}
|
|
100687
|
-
async function $
|
|
101487
|
+
async function $do181(client, request, options) {
|
|
100688
101488
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100689
101489
|
if (!parsed.ok) {
|
|
100690
101490
|
return [parsed, { status: "invalid" }];
|
|
@@ -100762,20 +101562,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
100762
101562
|
});
|
|
100763
101563
|
|
|
100764
101564
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
100765
|
-
var
|
|
101565
|
+
var args176, tool$webhooksDisable;
|
|
100766
101566
|
var init_webhooksDisable2 = __esm(() => {
|
|
100767
101567
|
init_webhooksDisable();
|
|
100768
101568
|
init_operations();
|
|
100769
101569
|
init_tools();
|
|
100770
|
-
|
|
101570
|
+
args176 = {
|
|
100771
101571
|
request: DisableWebhookRequest$inboundSchema
|
|
100772
101572
|
};
|
|
100773
101573
|
tool$webhooksDisable = {
|
|
100774
101574
|
name: "webhooks-disable",
|
|
100775
101575
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
100776
|
-
args:
|
|
100777
|
-
tool: async (client,
|
|
100778
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
101576
|
+
args: args176,
|
|
101577
|
+
tool: async (client, args177, ctx) => {
|
|
101578
|
+
const [result, apiCall] = await webhooksDisable(client, args177.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100779
101579
|
if (!result.ok) {
|
|
100780
101580
|
return {
|
|
100781
101581
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100789,9 +101589,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
100789
101589
|
|
|
100790
101590
|
// src/funcs/webhooksGet.ts
|
|
100791
101591
|
function webhooksGet(client, request, options) {
|
|
100792
|
-
return new APIPromise($
|
|
101592
|
+
return new APIPromise($do182(client, request, options));
|
|
100793
101593
|
}
|
|
100794
|
-
async function $
|
|
101594
|
+
async function $do182(client, request, options) {
|
|
100795
101595
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100796
101596
|
if (!parsed.ok) {
|
|
100797
101597
|
return [parsed, { status: "invalid" }];
|
|
@@ -100869,20 +101669,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
100869
101669
|
});
|
|
100870
101670
|
|
|
100871
101671
|
// src/mcp-server/tools/webhooksGet.ts
|
|
100872
|
-
var
|
|
101672
|
+
var args177, tool$webhooksGet;
|
|
100873
101673
|
var init_webhooksGet2 = __esm(() => {
|
|
100874
101674
|
init_webhooksGet();
|
|
100875
101675
|
init_operations();
|
|
100876
101676
|
init_tools();
|
|
100877
|
-
|
|
101677
|
+
args177 = {
|
|
100878
101678
|
request: GetWebhookRequest$inboundSchema
|
|
100879
101679
|
};
|
|
100880
101680
|
tool$webhooksGet = {
|
|
100881
101681
|
name: "webhooks-get",
|
|
100882
101682
|
description: `Get details of a specific webhook.`,
|
|
100883
|
-
args:
|
|
100884
|
-
tool: async (client,
|
|
100885
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
101683
|
+
args: args177,
|
|
101684
|
+
tool: async (client, args178, ctx) => {
|
|
101685
|
+
const [result, apiCall] = await webhooksGet(client, args178.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100886
101686
|
if (!result.ok) {
|
|
100887
101687
|
return {
|
|
100888
101688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100897,9 +101697,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
100897
101697
|
|
|
100898
101698
|
// src/funcs/webhooksGetSecret.ts
|
|
100899
101699
|
function webhooksGetSecret(client, request, options) {
|
|
100900
|
-
return new APIPromise($
|
|
101700
|
+
return new APIPromise($do183(client, request, options));
|
|
100901
101701
|
}
|
|
100902
|
-
async function $
|
|
101702
|
+
async function $do183(client, request, options) {
|
|
100903
101703
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100904
101704
|
if (!parsed.ok) {
|
|
100905
101705
|
return [parsed, { status: "invalid" }];
|
|
@@ -100977,20 +101777,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
100977
101777
|
});
|
|
100978
101778
|
|
|
100979
101779
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
100980
|
-
var
|
|
101780
|
+
var args178, tool$webhooksGetSecret;
|
|
100981
101781
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
100982
101782
|
init_webhooksGetSecret();
|
|
100983
101783
|
init_operations();
|
|
100984
101784
|
init_tools();
|
|
100985
|
-
|
|
101785
|
+
args178 = {
|
|
100986
101786
|
request: GetWebhookSecretRequest$inboundSchema
|
|
100987
101787
|
};
|
|
100988
101788
|
tool$webhooksGetSecret = {
|
|
100989
101789
|
name: "webhooks-get-secret",
|
|
100990
101790
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
100991
|
-
args:
|
|
100992
|
-
tool: async (client,
|
|
100993
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
101791
|
+
args: args178,
|
|
101792
|
+
tool: async (client, args179, ctx) => {
|
|
101793
|
+
const [result, apiCall] = await webhooksGetSecret(client, args179.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100994
101794
|
if (!result.ok) {
|
|
100995
101795
|
return {
|
|
100996
101796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101005,9 +101805,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
101005
101805
|
|
|
101006
101806
|
// src/funcs/webhooksList.ts
|
|
101007
101807
|
function webhooksList(client, options) {
|
|
101008
|
-
return new APIPromise($
|
|
101808
|
+
return new APIPromise($do184(client, options));
|
|
101009
101809
|
}
|
|
101010
|
-
async function $
|
|
101810
|
+
async function $do184(client, options) {
|
|
101011
101811
|
const path = pathToFunc("/webhooks")();
|
|
101012
101812
|
const headers = new Headers(compactMap({
|
|
101013
101813
|
Accept: "application/json"
|
|
@@ -101093,9 +101893,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
101093
101893
|
|
|
101094
101894
|
// src/funcs/webhooksListEventTypes.ts
|
|
101095
101895
|
function webhooksListEventTypes(client, options) {
|
|
101096
|
-
return new APIPromise($
|
|
101896
|
+
return new APIPromise($do185(client, options));
|
|
101097
101897
|
}
|
|
101098
|
-
async function $
|
|
101898
|
+
async function $do185(client, options) {
|
|
101099
101899
|
const path = pathToFunc("/event-types")();
|
|
101100
101900
|
const headers = new Headers(compactMap({
|
|
101101
101901
|
Accept: "application/json"
|
|
@@ -101181,9 +101981,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
101181
101981
|
|
|
101182
101982
|
// src/funcs/webhooksPing.ts
|
|
101183
101983
|
function webhooksPing(client, request, options) {
|
|
101184
|
-
return new APIPromise($
|
|
101984
|
+
return new APIPromise($do186(client, request, options));
|
|
101185
101985
|
}
|
|
101186
|
-
async function $
|
|
101986
|
+
async function $do186(client, request, options) {
|
|
101187
101987
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101188
101988
|
if (!parsed.ok) {
|
|
101189
101989
|
return [parsed, { status: "invalid" }];
|
|
@@ -101261,20 +102061,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
101261
102061
|
});
|
|
101262
102062
|
|
|
101263
102063
|
// src/mcp-server/tools/webhooksPing.ts
|
|
101264
|
-
var
|
|
102064
|
+
var args179, tool$webhooksPing;
|
|
101265
102065
|
var init_webhooksPing2 = __esm(() => {
|
|
101266
102066
|
init_webhooksPing();
|
|
101267
102067
|
init_operations();
|
|
101268
102068
|
init_tools();
|
|
101269
|
-
|
|
102069
|
+
args179 = {
|
|
101270
102070
|
request: PingWebhookRequest$inboundSchema
|
|
101271
102071
|
};
|
|
101272
102072
|
tool$webhooksPing = {
|
|
101273
102073
|
name: "webhooks-ping",
|
|
101274
102074
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
101275
|
-
args:
|
|
101276
|
-
tool: async (client,
|
|
101277
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
102075
|
+
args: args179,
|
|
102076
|
+
tool: async (client, args180, ctx) => {
|
|
102077
|
+
const [result, apiCall] = await webhooksPing(client, args180.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101278
102078
|
if (!result.ok) {
|
|
101279
102079
|
return {
|
|
101280
102080
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101289,9 +102089,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
101289
102089
|
|
|
101290
102090
|
// src/funcs/webhooksUpdate.ts
|
|
101291
102091
|
function webhooksUpdate(client, request, options) {
|
|
101292
|
-
return new APIPromise($
|
|
102092
|
+
return new APIPromise($do187(client, request, options));
|
|
101293
102093
|
}
|
|
101294
|
-
async function $
|
|
102094
|
+
async function $do187(client, request, options) {
|
|
101295
102095
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101296
102096
|
if (!parsed.ok) {
|
|
101297
102097
|
return [parsed, { status: "invalid" }];
|
|
@@ -101373,20 +102173,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
101373
102173
|
});
|
|
101374
102174
|
|
|
101375
102175
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
101376
|
-
var
|
|
102176
|
+
var args180, tool$webhooksUpdate;
|
|
101377
102177
|
var init_webhooksUpdate2 = __esm(() => {
|
|
101378
102178
|
init_webhooksUpdate();
|
|
101379
102179
|
init_operations();
|
|
101380
102180
|
init_tools();
|
|
101381
|
-
|
|
102181
|
+
args180 = {
|
|
101382
102182
|
request: UpdateWebhookRequest$inboundSchema
|
|
101383
102183
|
};
|
|
101384
102184
|
tool$webhooksUpdate = {
|
|
101385
102185
|
name: "webhooks-update",
|
|
101386
102186
|
description: `Update an existing webhook.`,
|
|
101387
|
-
args:
|
|
101388
|
-
tool: async (client,
|
|
101389
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
102187
|
+
args: args180,
|
|
102188
|
+
tool: async (client, args181, ctx) => {
|
|
102189
|
+
const [result, apiCall] = await webhooksUpdate(client, args181.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101390
102190
|
if (!result.ok) {
|
|
101391
102191
|
return {
|
|
101392
102192
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101403,7 +102203,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
101403
102203
|
function createMCPServer(deps) {
|
|
101404
102204
|
const server = new McpServer({
|
|
101405
102205
|
name: "Moov",
|
|
101406
|
-
version: "26.4.
|
|
102206
|
+
version: "26.4.1"
|
|
101407
102207
|
});
|
|
101408
102208
|
const client = new MoovCore({
|
|
101409
102209
|
security: deps.security,
|
|
@@ -101540,6 +102340,9 @@ function createMCPServer(deps) {
|
|
|
101540
102340
|
tool(tool$supportGetTicket);
|
|
101541
102341
|
tool(tool$supportUpdateTicket);
|
|
101542
102342
|
tool(tool$supportListTicketMessages);
|
|
102343
|
+
tool(tool$transferConfigCreate);
|
|
102344
|
+
tool(tool$transferConfigGet);
|
|
102345
|
+
tool(tool$transferConfigUpdate);
|
|
101543
102346
|
tool(tool$transfersGenerateOptions);
|
|
101544
102347
|
tool(tool$transfersCreate);
|
|
101545
102348
|
tool(tool$transfersList);
|
|
@@ -101763,6 +102566,9 @@ var init_server2 = __esm(() => {
|
|
|
101763
102566
|
init_terminalApplicationsDelete2();
|
|
101764
102567
|
init_terminalApplicationsGet2();
|
|
101765
102568
|
init_terminalApplicationsList2();
|
|
102569
|
+
init_transferConfigCreate2();
|
|
102570
|
+
init_transferConfigGet2();
|
|
102571
|
+
init_transferConfigUpdate2();
|
|
101766
102572
|
init_transfersBatchGetTransfers2();
|
|
101767
102573
|
init_transfersCreate2();
|
|
101768
102574
|
init_transfersCreateCancellation2();
|
|
@@ -102984,7 +103790,7 @@ var routes = rn({
|
|
|
102984
103790
|
var app = Ve(routes, {
|
|
102985
103791
|
name: "mcp",
|
|
102986
103792
|
versionInfo: {
|
|
102987
|
-
currentVersion: "26.4.
|
|
103793
|
+
currentVersion: "26.4.1"
|
|
102988
103794
|
}
|
|
102989
103795
|
});
|
|
102990
103796
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -102992,5 +103798,5 @@ export {
|
|
|
102992
103798
|
app
|
|
102993
103799
|
};
|
|
102994
103800
|
|
|
102995
|
-
//# debugId=
|
|
103801
|
+
//# debugId=2D62690EDE6E593064756E2164756E21
|
|
102996
103802
|
//# sourceMappingURL=mcp-server.js.map
|