@moovio/sdk 0.12.4 → 0.12.6

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.
Files changed (99) hide show
  1. package/README.md +54 -36
  2. package/bin/mcp-server.js +403 -163
  3. package/bin/mcp-server.js.map +26 -23
  4. package/docs/sdks/transfers/README.md +117 -2
  5. package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
  6. package/funcs/disputesUploadEvidenceFile.js +5 -3
  7. package/funcs/disputesUploadEvidenceFile.js.map +1 -1
  8. package/funcs/filesUpload.d.ts.map +1 -1
  9. package/funcs/filesUpload.js +5 -3
  10. package/funcs/filesUpload.js.map +1 -1
  11. package/funcs/transfersGenerateOptions.d.ts +1 -1
  12. package/funcs/transfersGenerateOptions.js +1 -1
  13. package/funcs/transfersGenerateOptionsForAccount.d.ts +23 -0
  14. package/funcs/transfersGenerateOptionsForAccount.d.ts.map +1 -0
  15. package/funcs/transfersGenerateOptionsForAccount.js +133 -0
  16. package/funcs/transfersGenerateOptionsForAccount.js.map +1 -0
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/lib/files.d.ts +5 -0
  21. package/lib/files.d.ts.map +1 -1
  22. package/lib/files.js +41 -0
  23. package/lib/files.js.map +1 -1
  24. package/lib/security.d.ts +2 -2
  25. package/lib/security.d.ts.map +1 -1
  26. package/mcp-server/mcp-server.js +1 -1
  27. package/mcp-server/server.d.ts.map +1 -1
  28. package/mcp-server/server.js +3 -1
  29. package/mcp-server/server.js.map +1 -1
  30. package/mcp-server/tools/transfersGenerateOptions.js +1 -1
  31. package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
  32. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +8 -0
  33. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +1 -0
  34. package/mcp-server/tools/transfersGenerateOptionsForAccount.js +70 -0
  35. package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +1 -0
  36. package/models/components/capability.d.ts +1 -1
  37. package/models/components/capabilityid.d.ts +32 -2
  38. package/models/components/capabilityid.d.ts.map +1 -1
  39. package/models/components/capabilityid.js +11 -1
  40. package/models/components/capabilityid.js.map +1 -1
  41. package/models/components/createaccount.d.ts +4 -4
  42. package/models/components/createaccount.d.ts.map +1 -1
  43. package/models/components/createaccount.js +4 -4
  44. package/models/components/createaccount.js.map +1 -1
  45. package/models/components/createrefundresponse.d.ts +2 -2
  46. package/models/components/createrefundresponse.d.ts.map +1 -1
  47. package/models/components/createrefundresponse.js +2 -2
  48. package/models/components/createrefundresponse.js.map +1 -1
  49. package/models/components/webhookdata.d.ts +2 -2
  50. package/models/components/webhookdata.d.ts.map +1 -1
  51. package/models/components/webhookdata.js +38 -38
  52. package/models/components/webhookdata.js.map +1 -1
  53. package/models/components/webhookdatacapabilityrequested.d.ts +1 -1
  54. package/models/components/webhookdatacapabilityupdated.d.ts +1 -1
  55. package/models/operations/createtransfer.d.ts +4 -4
  56. package/models/operations/createtransfer.d.ts.map +1 -1
  57. package/models/operations/createtransfer.js +8 -8
  58. package/models/operations/createtransfer.js.map +1 -1
  59. package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
  60. package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
  61. package/models/operations/createtransferoptionsforaccount.js +155 -0
  62. package/models/operations/createtransferoptionsforaccount.js.map +1 -0
  63. package/models/operations/disablecapability.d.ts +1 -1
  64. package/models/operations/getcapability.d.ts +1 -1
  65. package/models/operations/index.d.ts +1 -0
  66. package/models/operations/index.d.ts.map +1 -1
  67. package/models/operations/index.js +1 -0
  68. package/models/operations/index.js.map +1 -1
  69. package/package.json +1 -1
  70. package/sdk/transfers.d.ts +13 -1
  71. package/sdk/transfers.d.ts.map +1 -1
  72. package/sdk/transfers.js +16 -1
  73. package/sdk/transfers.js.map +1 -1
  74. package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
  75. package/src/funcs/filesUpload.ts +20 -4
  76. package/src/funcs/transfersGenerateOptions.ts +1 -1
  77. package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
  78. package/src/lib/config.ts +3 -3
  79. package/src/lib/files.ts +42 -0
  80. package/src/lib/security.ts +2 -2
  81. package/src/mcp-server/mcp-server.ts +1 -1
  82. package/src/mcp-server/server.ts +3 -1
  83. package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
  84. package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
  85. package/src/models/components/capability.ts +1 -1
  86. package/src/models/components/capabilityid.ts +12 -2
  87. package/src/models/components/createaccount.ts +10 -10
  88. package/src/models/components/createrefundresponse.ts +5 -5
  89. package/src/models/components/webhookdata.ts +76 -76
  90. package/src/models/components/webhookdatacapabilityrequested.ts +1 -1
  91. package/src/models/components/webhookdatacapabilityupdated.ts +1 -1
  92. package/src/models/operations/createtransfer.ts +16 -16
  93. package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
  94. package/src/models/operations/disablecapability.ts +1 -1
  95. package/src/models/operations/getcapability.ts +1 -1
  96. package/src/models/operations/index.ts +1 -0
  97. package/src/sdk/transfers.ts +24 -1
  98. package/src/types/constdatetime.ts +1 -1
  99. package/types/constdatetime.js +1 -1
package/bin/mcp-server.js CHANGED
@@ -34246,9 +34246,9 @@ var init_config = __esm(() => {
34246
34246
  SDK_METADATA = {
34247
34247
  language: "typescript",
34248
34248
  openapiDocVersion: "latest",
34249
- sdkVersion: "0.12.4",
34250
- genVersion: "2.624.0",
34251
- userAgent: "speakeasy-sdk/typescript 0.12.4 2.624.0 latest @moovio/sdk"
34249
+ sdkVersion: "0.12.6",
34250
+ genVersion: "2.638.0",
34251
+ userAgent: "speakeasy-sdk/typescript 0.12.6 2.638.0 latest @moovio/sdk"
34252
34252
  };
34253
34253
  });
34254
34254
 
@@ -36925,10 +36925,20 @@ var init_capabilityid = __esm(() => {
36925
36925
  CapabilityID = {
36926
36926
  Transfers: "transfers",
36927
36927
  SendFunds: "send-funds",
36928
+ SendFundsPushToCard: "send-funds.push-to-card",
36929
+ MoneyTransferPushToCard: "money-transfer.push-to-card",
36930
+ SendFundsAch: "send-funds.ach",
36931
+ SendFundsRtp: "send-funds.rtp",
36928
36932
  CollectFunds: "collect-funds",
36933
+ CollectFundsCardPayments: "collect-funds.card-payments",
36934
+ MoneyTransferPullFromCard: "money-transfer.pull-from-card",
36935
+ CollectFundsAch: "collect-funds.ach",
36929
36936
  Wallet: "wallet",
36937
+ WalletBalance: "wallet.balance",
36930
36938
  CardIssuing: "card-issuing",
36931
- ProductionApp: "production-app"
36939
+ ProductionApp: "production-app",
36940
+ PlatformProductionApp: "platform.production-app",
36941
+ PlatformWalletTransfers: "platform.wallet-transfers"
36932
36942
  };
36933
36943
  CapabilityID$inboundSchema = nativeEnumType(CapabilityID);
36934
36944
  CapabilityID$outboundSchema = CapabilityID$inboundSchema;
@@ -39400,12 +39410,12 @@ var init_createaccount = __esm(() => {
39400
39410
  init_settings();
39401
39411
  init_termsofservicetoken();
39402
39412
  CreateAccountTermsOfService$inboundSchema = unionType([
39403
- TermsOfServiceToken$inboundSchema,
39404
- ManualTermsOfService$inboundSchema
39413
+ ManualTermsOfService$inboundSchema,
39414
+ TermsOfServiceToken$inboundSchema
39405
39415
  ]);
39406
39416
  CreateAccountTermsOfService$outboundSchema = unionType([
39407
- TermsOfServiceToken$outboundSchema,
39408
- ManualTermsOfService$outboundSchema
39417
+ ManualTermsOfService$outboundSchema,
39418
+ TermsOfServiceToken$outboundSchema
39409
39419
  ]);
39410
39420
  ((CreateAccountTermsOfService$) => {
39411
39421
  CreateAccountTermsOfService$.inboundSchema = CreateAccountTermsOfService$inboundSchema;
@@ -39416,8 +39426,8 @@ var init_createaccount = __esm(() => {
39416
39426
  profile: CreateProfile$inboundSchema,
39417
39427
  metadata: recordType(stringType()).optional(),
39418
39428
  termsOfService: unionType([
39419
- TermsOfServiceToken$inboundSchema,
39420
- ManualTermsOfService$inboundSchema
39429
+ ManualTermsOfService$inboundSchema,
39430
+ TermsOfServiceToken$inboundSchema
39421
39431
  ]).optional(),
39422
39432
  foreignID: stringType().optional(),
39423
39433
  customerSupport: CustomerSupport$inboundSchema.optional(),
@@ -39430,8 +39440,8 @@ var init_createaccount = __esm(() => {
39430
39440
  profile: CreateProfile$outboundSchema,
39431
39441
  metadata: recordType(stringType()).optional(),
39432
39442
  termsOfService: unionType([
39433
- TermsOfServiceToken$outboundSchema,
39434
- ManualTermsOfService$outboundSchema
39443
+ ManualTermsOfService$outboundSchema,
39444
+ TermsOfServiceToken$outboundSchema
39435
39445
  ]).optional(),
39436
39446
  foreignID: stringType().optional(),
39437
39447
  customerSupport: CustomerSupport$outboundSchema.optional(),
@@ -40511,12 +40521,12 @@ var init_createrefundresponse = __esm(() => {
40511
40521
  init_asynccreatedrefund();
40512
40522
  init_cardacquiringrefund();
40513
40523
  CreateRefundResponse$inboundSchema = unionType([
40514
- AsyncCreatedRefund$inboundSchema,
40515
- CardAcquiringRefund$inboundSchema
40524
+ CardAcquiringRefund$inboundSchema,
40525
+ AsyncCreatedRefund$inboundSchema
40516
40526
  ]);
40517
40527
  CreateRefundResponse$outboundSchema = unionType([
40518
- AsyncCreatedRefund$outboundSchema,
40519
- CardAcquiringRefund$outboundSchema
40528
+ CardAcquiringRefund$outboundSchema,
40529
+ AsyncCreatedRefund$outboundSchema
40520
40530
  ]);
40521
40531
  ((CreateRefundResponse$) => {
40522
40532
  CreateRefundResponse$.inboundSchema = CreateRefundResponse$inboundSchema;
@@ -45871,65 +45881,65 @@ var init_webhookdata = __esm(() => {
45871
45881
  init_webhookdatatransferupdated();
45872
45882
  init_webhookdatawallettransactionupdated();
45873
45883
  WebhookData$inboundSchema = unionType([
45874
- WebhookDataAccountCreated$inboundSchema,
45875
- WebhookDataAccountUpdated$inboundSchema,
45876
- WebhookDataAccountDeleted$inboundSchema,
45884
+ WebhookDataDisputeCreated$inboundSchema,
45885
+ WebhookDataDisputeUpdated$inboundSchema,
45886
+ WebhookDataTransferUpdated$inboundSchema,
45887
+ WebhookDataBankAccountUpdated$inboundSchema,
45888
+ WebhookDataRefundUpdated$inboundSchema,
45889
+ WebhookDataWalletTransactionUpdated$inboundSchema,
45890
+ WebhookDataCancellationCreated$inboundSchema,
45891
+ WebhookDataCancellationUpdated$inboundSchema,
45892
+ WebhookDataCardAutoUpdated$inboundSchema,
45893
+ WebhookDataCapabilityUpdated$inboundSchema,
45894
+ WebhookDataPaymentMethodEnabled$inboundSchema,
45895
+ WebhookDataPaymentMethodDisabled$inboundSchema,
45896
+ WebhookDataRefundCreated$inboundSchema,
45897
+ WebhookDataSweepUpdated$inboundSchema,
45898
+ WebhookDataTransferCreated$inboundSchema,
45877
45899
  WebhookDataBalanceUpdated$inboundSchema,
45878
45900
  WebhookDataBankAccountCreated$inboundSchema,
45879
45901
  WebhookDataBankAccountDeleted$inboundSchema,
45902
+ WebhookDataCapabilityRequested$inboundSchema,
45880
45903
  WebhookDataRepresentativeCreated$inboundSchema,
45881
45904
  WebhookDataRepresentativeUpdated$inboundSchema,
45882
45905
  WebhookDataRepresentativeDisabled$inboundSchema,
45883
45906
  WebhookDataSweepCreated$inboundSchema,
45884
45907
  WebhookDataTerminalApplicationCreated$inboundSchema,
45885
45908
  WebhookDataTerminalApplicationUpdated$inboundSchema,
45886
- WebhookDataCancellationCreated$inboundSchema,
45887
- WebhookDataCancellationUpdated$inboundSchema,
45888
- WebhookDataCardAutoUpdated$inboundSchema,
45889
- WebhookDataCapabilityRequested$inboundSchema,
45890
- WebhookDataPaymentMethodEnabled$inboundSchema,
45891
- WebhookDataPaymentMethodDisabled$inboundSchema,
45892
- WebhookDataRefundCreated$inboundSchema,
45893
- WebhookDataTransferCreated$inboundSchema,
45894
- WebhookDataCapabilityUpdated$inboundSchema,
45895
- WebhookDataRefundUpdated$inboundSchema,
45896
- WebhookDataSweepUpdated$inboundSchema,
45897
- WebhookDataBankAccountUpdated$inboundSchema,
45898
- WebhookDataTransferUpdated$inboundSchema,
45899
- WebhookDataWalletTransactionUpdated$inboundSchema,
45900
- WebhookDataDisputeCreated$inboundSchema,
45901
- WebhookDataDisputeUpdated$inboundSchema,
45909
+ WebhookDataAccountCreated$inboundSchema,
45910
+ WebhookDataAccountUpdated$inboundSchema,
45911
+ WebhookDataAccountDeleted$inboundSchema,
45902
45912
  WebhookDataNetworkIDUpdated$inboundSchema
45903
45913
  ]);
45904
45914
  WebhookData$outboundSchema = unionType([
45905
- WebhookDataAccountCreated$outboundSchema,
45906
- WebhookDataAccountUpdated$outboundSchema,
45907
- WebhookDataAccountDeleted$outboundSchema,
45915
+ WebhookDataDisputeCreated$outboundSchema,
45916
+ WebhookDataDisputeUpdated$outboundSchema,
45917
+ WebhookDataTransferUpdated$outboundSchema,
45918
+ WebhookDataBankAccountUpdated$outboundSchema,
45919
+ WebhookDataRefundUpdated$outboundSchema,
45920
+ WebhookDataWalletTransactionUpdated$outboundSchema,
45921
+ WebhookDataCancellationCreated$outboundSchema,
45922
+ WebhookDataCancellationUpdated$outboundSchema,
45923
+ WebhookDataCardAutoUpdated$outboundSchema,
45924
+ WebhookDataCapabilityUpdated$outboundSchema,
45925
+ WebhookDataPaymentMethodEnabled$outboundSchema,
45926
+ WebhookDataPaymentMethodDisabled$outboundSchema,
45927
+ WebhookDataRefundCreated$outboundSchema,
45928
+ WebhookDataSweepUpdated$outboundSchema,
45929
+ WebhookDataTransferCreated$outboundSchema,
45908
45930
  WebhookDataBalanceUpdated$outboundSchema,
45909
45931
  WebhookDataBankAccountCreated$outboundSchema,
45910
45932
  WebhookDataBankAccountDeleted$outboundSchema,
45933
+ WebhookDataCapabilityRequested$outboundSchema,
45911
45934
  WebhookDataRepresentativeCreated$outboundSchema,
45912
45935
  WebhookDataRepresentativeUpdated$outboundSchema,
45913
45936
  WebhookDataRepresentativeDisabled$outboundSchema,
45914
45937
  WebhookDataSweepCreated$outboundSchema,
45915
45938
  WebhookDataTerminalApplicationCreated$outboundSchema,
45916
45939
  WebhookDataTerminalApplicationUpdated$outboundSchema,
45917
- WebhookDataCancellationCreated$outboundSchema,
45918
- WebhookDataCancellationUpdated$outboundSchema,
45919
- WebhookDataCardAutoUpdated$outboundSchema,
45920
- WebhookDataCapabilityRequested$outboundSchema,
45921
- WebhookDataPaymentMethodEnabled$outboundSchema,
45922
- WebhookDataPaymentMethodDisabled$outboundSchema,
45923
- WebhookDataRefundCreated$outboundSchema,
45924
- WebhookDataTransferCreated$outboundSchema,
45925
- WebhookDataCapabilityUpdated$outboundSchema,
45926
- WebhookDataRefundUpdated$outboundSchema,
45927
- WebhookDataSweepUpdated$outboundSchema,
45928
- WebhookDataBankAccountUpdated$outboundSchema,
45929
- WebhookDataTransferUpdated$outboundSchema,
45930
- WebhookDataWalletTransactionUpdated$outboundSchema,
45931
- WebhookDataDisputeCreated$outboundSchema,
45932
- WebhookDataDisputeUpdated$outboundSchema,
45940
+ WebhookDataAccountCreated$outboundSchema,
45941
+ WebhookDataAccountUpdated$outboundSchema,
45942
+ WebhookDataAccountDeleted$outboundSchema,
45933
45943
  WebhookDataNetworkIDUpdated$outboundSchema
45934
45944
  ]);
45935
45945
  ((WebhookData$) => {
@@ -49574,14 +49584,14 @@ var init_createtransfer2 = __esm(() => {
49574
49584
  CreateTransferRequest$.outboundSchema = CreateTransferRequest$outboundSchema;
49575
49585
  })(CreateTransferRequest$ ||= {});
49576
49586
  CreateTransferResponseResult$inboundSchema = unionType([
49577
- AsyncTransfer$inboundSchema,
49587
+ Transfer$inboundSchema,
49578
49588
  CreatedTransfer$inboundSchema,
49579
- Transfer$inboundSchema
49589
+ AsyncTransfer$inboundSchema
49580
49590
  ]);
49581
49591
  CreateTransferResponseResult$outboundSchema = unionType([
49582
- AsyncTransfer$outboundSchema,
49592
+ Transfer$outboundSchema,
49583
49593
  CreatedTransfer$outboundSchema,
49584
- Transfer$outboundSchema
49594
+ AsyncTransfer$outboundSchema
49585
49595
  ]);
49586
49596
  ((CreateTransferResponseResult$) => {
49587
49597
  CreateTransferResponseResult$.inboundSchema = CreateTransferResponseResult$inboundSchema;
@@ -49590,9 +49600,9 @@ var init_createtransfer2 = __esm(() => {
49590
49600
  CreateTransferResponse$inboundSchema = objectType({
49591
49601
  Headers: recordType(arrayType(stringType())),
49592
49602
  Result: unionType([
49593
- AsyncTransfer$inboundSchema,
49603
+ Transfer$inboundSchema,
49594
49604
  CreatedTransfer$inboundSchema,
49595
- Transfer$inboundSchema
49605
+ AsyncTransfer$inboundSchema
49596
49606
  ])
49597
49607
  }).transform((v2) => {
49598
49608
  return remap(v2, {
@@ -49603,9 +49613,9 @@ var init_createtransfer2 = __esm(() => {
49603
49613
  CreateTransferResponse$outboundSchema = objectType({
49604
49614
  headers: recordType(arrayType(stringType())),
49605
49615
  result: unionType([
49606
- AsyncTransfer$outboundSchema,
49616
+ Transfer$outboundSchema,
49607
49617
  CreatedTransfer$outboundSchema,
49608
- Transfer$outboundSchema
49618
+ AsyncTransfer$outboundSchema
49609
49619
  ])
49610
49620
  }).transform((v2) => {
49611
49621
  return remap(v2, {
@@ -49667,6 +49677,74 @@ var init_createtransferoptions2 = __esm(() => {
49667
49677
  })(CreateTransferOptionsResponse$ ||= {});
49668
49678
  });
49669
49679
 
49680
+ // src/models/operations/createtransferoptionsforaccount.ts
49681
+ var CreateTransferOptionsForAccountGlobals$inboundSchema, CreateTransferOptionsForAccountGlobals$outboundSchema, CreateTransferOptionsForAccountGlobals$, CreateTransferOptionsForAccountRequest$inboundSchema, CreateTransferOptionsForAccountRequest$outboundSchema, CreateTransferOptionsForAccountRequest$, CreateTransferOptionsForAccountResponse$inboundSchema, CreateTransferOptionsForAccountResponse$outboundSchema, CreateTransferOptionsForAccountResponse$;
49682
+ var init_createtransferoptionsforaccount = __esm(() => {
49683
+ init_esm();
49684
+ init_primitives();
49685
+ init_components();
49686
+ CreateTransferOptionsForAccountGlobals$inboundSchema = objectType({
49687
+ "x-moov-version": stringType().default("v2024.01.00")
49688
+ }).transform((v2) => {
49689
+ return remap(v2, {
49690
+ "x-moov-version": "xMoovVersion"
49691
+ });
49692
+ });
49693
+ CreateTransferOptionsForAccountGlobals$outboundSchema = objectType({
49694
+ xMoovVersion: stringType().default("v2024.01.00")
49695
+ }).transform((v2) => {
49696
+ return remap(v2, {
49697
+ xMoovVersion: "x-moov-version"
49698
+ });
49699
+ });
49700
+ ((CreateTransferOptionsForAccountGlobals$) => {
49701
+ CreateTransferOptionsForAccountGlobals$.inboundSchema = CreateTransferOptionsForAccountGlobals$inboundSchema;
49702
+ CreateTransferOptionsForAccountGlobals$.outboundSchema = CreateTransferOptionsForAccountGlobals$outboundSchema;
49703
+ })(CreateTransferOptionsForAccountGlobals$ ||= {});
49704
+ CreateTransferOptionsForAccountRequest$inboundSchema = objectType({
49705
+ accountID: stringType(),
49706
+ CreateTransferOptions: CreateTransferOptions$inboundSchema
49707
+ }).transform((v2) => {
49708
+ return remap(v2, {
49709
+ CreateTransferOptions: "createTransferOptions"
49710
+ });
49711
+ });
49712
+ CreateTransferOptionsForAccountRequest$outboundSchema = objectType({
49713
+ accountID: stringType(),
49714
+ createTransferOptions: CreateTransferOptions$outboundSchema
49715
+ }).transform((v2) => {
49716
+ return remap(v2, {
49717
+ createTransferOptions: "CreateTransferOptions"
49718
+ });
49719
+ });
49720
+ ((CreateTransferOptionsForAccountRequest$) => {
49721
+ CreateTransferOptionsForAccountRequest$.inboundSchema = CreateTransferOptionsForAccountRequest$inboundSchema;
49722
+ CreateTransferOptionsForAccountRequest$.outboundSchema = CreateTransferOptionsForAccountRequest$outboundSchema;
49723
+ })(CreateTransferOptionsForAccountRequest$ ||= {});
49724
+ CreateTransferOptionsForAccountResponse$inboundSchema = objectType({
49725
+ Headers: recordType(arrayType(stringType())),
49726
+ Result: TransferOptions$inboundSchema
49727
+ }).transform((v2) => {
49728
+ return remap(v2, {
49729
+ Headers: "headers",
49730
+ Result: "result"
49731
+ });
49732
+ });
49733
+ CreateTransferOptionsForAccountResponse$outboundSchema = objectType({
49734
+ headers: recordType(arrayType(stringType())),
49735
+ result: TransferOptions$outboundSchema
49736
+ }).transform((v2) => {
49737
+ return remap(v2, {
49738
+ headers: "Headers",
49739
+ result: "Result"
49740
+ });
49741
+ });
49742
+ ((CreateTransferOptionsForAccountResponse$) => {
49743
+ CreateTransferOptionsForAccountResponse$.inboundSchema = CreateTransferOptionsForAccountResponse$inboundSchema;
49744
+ CreateTransferOptionsForAccountResponse$.outboundSchema = CreateTransferOptionsForAccountResponse$outboundSchema;
49745
+ })(CreateTransferOptionsForAccountResponse$ ||= {});
49746
+ });
49747
+
49670
49748
  // src/models/operations/deletedisputeevidencefile.ts
49671
49749
  var DeleteDisputeEvidenceFileGlobals$inboundSchema, DeleteDisputeEvidenceFileGlobals$outboundSchema, DeleteDisputeEvidenceFileGlobals$, DeleteDisputeEvidenceFileRequest$inboundSchema, DeleteDisputeEvidenceFileRequest$outboundSchema, DeleteDisputeEvidenceFileRequest$, DeleteDisputeEvidenceFileResponse$inboundSchema, DeleteDisputeEvidenceFileResponse$outboundSchema, DeleteDisputeEvidenceFileResponse$;
49672
49750
  var init_deletedisputeevidencefile = __esm(() => {
@@ -56920,6 +56998,7 @@ var init_operations = __esm(() => {
56920
56998
  init_createterminalapplication2();
56921
56999
  init_createtransfer2();
56922
57000
  init_createtransferoptions2();
57001
+ init_createtransferoptionsforaccount();
56923
57002
  init_deletedisputeevidencefile();
56924
57003
  init_deleterepresentative();
56925
57004
  init_deleteterminalapplication();
@@ -64282,6 +64361,42 @@ async function readableStreamToArrayBuffer(readable) {
64282
64361
  }
64283
64362
  return concatenatedChunks.buffer;
64284
64363
  }
64364
+ function getContentTypeFromFileName(fileName) {
64365
+ if (!fileName)
64366
+ return null;
64367
+ const ext = fileName.toLowerCase().split(".").pop();
64368
+ if (!ext)
64369
+ return null;
64370
+ const mimeTypes = {
64371
+ json: "application/json",
64372
+ xml: "application/xml",
64373
+ html: "text/html",
64374
+ htm: "text/html",
64375
+ txt: "text/plain",
64376
+ csv: "text/csv",
64377
+ pdf: "application/pdf",
64378
+ png: "image/png",
64379
+ jpg: "image/jpeg",
64380
+ jpeg: "image/jpeg",
64381
+ gif: "image/gif",
64382
+ svg: "image/svg+xml",
64383
+ js: "application/javascript",
64384
+ css: "text/css",
64385
+ zip: "application/zip",
64386
+ tar: "application/x-tar",
64387
+ gz: "application/gzip",
64388
+ mp4: "video/mp4",
64389
+ mp3: "audio/mpeg",
64390
+ wav: "audio/wav",
64391
+ webp: "image/webp",
64392
+ ico: "image/x-icon",
64393
+ woff: "font/woff",
64394
+ woff2: "font/woff2",
64395
+ ttf: "font/ttf",
64396
+ otf: "font/otf"
64397
+ };
64398
+ return mimeTypes[ext] || null;
64399
+ }
64285
64400
 
64286
64401
  // src/types/streams.ts
64287
64402
  function isReadableStream(val) {
@@ -64308,11 +64423,13 @@ async function $do60(client, request, options) {
64308
64423
  appendForm(body, "file", payload.CreateEvidenceFileMultiPart.file);
64309
64424
  } else if (isReadableStream(payload.CreateEvidenceFileMultiPart.file.content)) {
64310
64425
  const buffer = await readableStreamToArrayBuffer(payload.CreateEvidenceFileMultiPart.file.content);
64311
- const blob = new Blob([buffer], { type: "application/octet-stream" });
64312
- appendForm(body, "file", blob);
64426
+ const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
64427
+ const blob = new Blob([buffer], { type: contentType2 });
64428
+ appendForm(body, "file", blob, payload.CreateEvidenceFileMultiPart.file.fileName);
64313
64429
  } else {
64430
+ const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
64314
64431
  appendForm(body, "file", new Blob([payload.CreateEvidenceFileMultiPart.file.content], {
64315
- type: "application/octet-stream"
64432
+ type: contentType2
64316
64433
  }), payload.CreateEvidenceFileMultiPart.file.fileName);
64317
64434
  }
64318
64435
  const pathParams = {
@@ -66068,11 +66185,13 @@ async function $do75(client, request, options) {
66068
66185
  appendForm(body, "file", payload.FileUploadRequestMultiPart.file);
66069
66186
  } else if (isReadableStream(payload.FileUploadRequestMultiPart.file.content)) {
66070
66187
  const buffer = await readableStreamToArrayBuffer(payload.FileUploadRequestMultiPart.file.content);
66071
- const blob = new Blob([buffer], { type: "application/octet-stream" });
66072
- appendForm(body, "file", blob);
66188
+ const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
66189
+ const blob = new Blob([buffer], { type: contentType2 });
66190
+ appendForm(body, "file", blob, payload.FileUploadRequestMultiPart.file.fileName);
66073
66191
  } else {
66192
+ const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
66074
66193
  appendForm(body, "file", new Blob([payload.FileUploadRequestMultiPart.file.content], {
66075
- type: "application/octet-stream"
66194
+ type: contentType2
66076
66195
  }), payload.FileUploadRequestMultiPart.file.fileName);
66077
66196
  }
66078
66197
  appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
@@ -71798,7 +71917,7 @@ supply in the request.
71798
71917
  Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
71799
71918
 
71800
71919
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71801
- you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71920
+ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
71802
71921
  args: args123,
71803
71922
  tool: async (client, args124, ctx) => {
71804
71923
  const [result, apiCall] = await transfersGenerateOptions(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -71814,11 +71933,130 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71814
71933
  };
71815
71934
  });
71816
71935
 
71817
- // src/funcs/transfersGet.ts
71818
- function transfersGet(client, request, options) {
71936
+ // src/funcs/transfersGenerateOptionsForAccount.ts
71937
+ function transfersGenerateOptionsForAccount(client, request, options) {
71819
71938
  return new APIPromise($do124(client, request, options));
71820
71939
  }
71821
71940
  async function $do124(client, request, options) {
71941
+ const parsed = safeParse(request, (value) => CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
71942
+ if (!parsed.ok) {
71943
+ return [parsed, { status: "invalid" }];
71944
+ }
71945
+ const payload = parsed.value;
71946
+ const body = encodeJSON("body", payload.CreateTransferOptions, {
71947
+ explode: true
71948
+ });
71949
+ const pathParams = {
71950
+ accountID: encodeSimple("accountID", payload.accountID, {
71951
+ explode: false,
71952
+ charEncoding: "percent"
71953
+ })
71954
+ };
71955
+ const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
71956
+ const headers = new Headers(compactMap({
71957
+ "Content-Type": "application/json",
71958
+ Accept: "application/json",
71959
+ "x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
71960
+ }));
71961
+ const securityInput = await extractSecurity(client._options.security);
71962
+ const requestSecurity = resolveGlobalSecurity(securityInput);
71963
+ const context = {
71964
+ options: client._options,
71965
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
71966
+ operationID: "createTransferOptionsForAccount",
71967
+ oAuth2Scopes: [],
71968
+ resolvedSecurity: requestSecurity,
71969
+ securitySource: client._options.security,
71970
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
71971
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
71972
+ };
71973
+ const requestRes = client._createRequest(context, {
71974
+ security: requestSecurity,
71975
+ method: "POST",
71976
+ baseURL: options?.serverURL,
71977
+ path,
71978
+ headers,
71979
+ body,
71980
+ userAgent: client._options.userAgent,
71981
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71982
+ }, options);
71983
+ if (!requestRes.ok) {
71984
+ return [requestRes, { status: "invalid" }];
71985
+ }
71986
+ const req = requestRes.value;
71987
+ const doResult = await client._do(req, {
71988
+ context,
71989
+ errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
71990
+ retryConfig: context.retryConfig,
71991
+ retryCodes: context.retryCodes
71992
+ });
71993
+ if (!doResult.ok) {
71994
+ return [doResult, { status: "request-error", request: req }];
71995
+ }
71996
+ const response = doResult.value;
71997
+ const responseFields = {
71998
+ HttpMeta: { Response: response, Request: req }
71999
+ };
72000
+ const [result] = await match(json(200, CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
72001
+ hdrs: true
72002
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
72003
+ if (!result.ok) {
72004
+ return [result, { status: "complete", request: req, response }];
72005
+ }
72006
+ return [result, { status: "complete", request: req, response }];
72007
+ }
72008
+ var init_transfersGenerateOptionsForAccount = __esm(() => {
72009
+ init_encodings();
72010
+ init_matchers();
72011
+ init_primitives();
72012
+ init_schemas();
72013
+ init_security();
72014
+ init_url();
72015
+ init_errors2();
72016
+ init_operations();
72017
+ init_async();
72018
+ });
72019
+
72020
+ // src/mcp-server/tools/transfersGenerateOptionsForAccount.ts
72021
+ var args124, tool$transfersGenerateOptionsForAccount;
72022
+ var init_transfersGenerateOptionsForAccount2 = __esm(() => {
72023
+ init_transfersGenerateOptionsForAccount();
72024
+ init_operations();
72025
+ init_tools();
72026
+ args124 = {
72027
+ request: CreateTransferOptionsForAccountRequest$inboundSchema
72028
+ };
72029
+ tool$transfersGenerateOptionsForAccount = {
72030
+ name: "transfers-generate-options-for-account",
72031
+ description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
72032
+ supply in the request body.
72033
+
72034
+ The accountID in the route should the partner's accountID.
72035
+
72036
+ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
72037
+
72038
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72039
+ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72040
+ args: args124,
72041
+ tool: async (client, args125, ctx) => {
72042
+ const [result, apiCall] = await transfersGenerateOptionsForAccount(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72043
+ if (!result.ok) {
72044
+ return {
72045
+ content: [{ type: "text", text: result.error.message }],
72046
+ isError: true
72047
+ };
72048
+ }
72049
+ const value = result.value.result;
72050
+ return formatResult(value, apiCall);
72051
+ }
72052
+ };
72053
+ });
72054
+
72055
+ // src/funcs/transfersGet.ts
72056
+ function transfersGet(client, request, options) {
72057
+ return new APIPromise($do125(client, request, options));
72058
+ }
72059
+ async function $do125(client, request, options) {
71822
72060
  const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
71823
72061
  if (!parsed.ok) {
71824
72062
  return [parsed, { status: "invalid" }];
@@ -71900,12 +72138,12 @@ var init_transfersGet = __esm(() => {
71900
72138
  });
71901
72139
 
71902
72140
  // src/mcp-server/tools/transfersGet.ts
71903
- var args124, tool$transfersGet;
72141
+ var args125, tool$transfersGet;
71904
72142
  var init_transfersGet2 = __esm(() => {
71905
72143
  init_transfersGet();
71906
72144
  init_operations();
71907
72145
  init_tools();
71908
- args124 = {
72146
+ args125 = {
71909
72147
  request: GetTransferRequest$inboundSchema
71910
72148
  };
71911
72149
  tool$transfersGet = {
@@ -71917,9 +72155,9 @@ to learn more.
71917
72155
 
71918
72156
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71919
72157
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71920
- args: args124,
71921
- tool: async (client, args125, ctx) => {
71922
- const [result, apiCall] = await transfersGet(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72158
+ args: args125,
72159
+ tool: async (client, args126, ctx) => {
72160
+ const [result, apiCall] = await transfersGet(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
71923
72161
  if (!result.ok) {
71924
72162
  return {
71925
72163
  content: [{ type: "text", text: result.error.message }],
@@ -71934,9 +72172,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71934
72172
 
71935
72173
  // src/funcs/transfersGetCancellation.ts
71936
72174
  function transfersGetCancellation(client, request, options) {
71937
- return new APIPromise($do125(client, request, options));
72175
+ return new APIPromise($do126(client, request, options));
71938
72176
  }
71939
- async function $do125(client, request, options) {
72177
+ async function $do126(client, request, options) {
71940
72178
  const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
71941
72179
  if (!parsed.ok) {
71942
72180
  return [parsed, { status: "invalid" }];
@@ -72022,12 +72260,12 @@ var init_transfersGetCancellation = __esm(() => {
72022
72260
  });
72023
72261
 
72024
72262
  // src/mcp-server/tools/transfersGetCancellation.ts
72025
- var args125, tool$transfersGetCancellation;
72263
+ var args126, tool$transfersGetCancellation;
72026
72264
  var init_transfersGetCancellation2 = __esm(() => {
72027
72265
  init_transfersGetCancellation();
72028
72266
  init_operations();
72029
72267
  init_tools();
72030
- args125 = {
72268
+ args126 = {
72031
72269
  request: GetCancellationRequest$inboundSchema
72032
72270
  };
72033
72271
  tool$transfersGetCancellation = {
@@ -72036,9 +72274,9 @@ var init_transfersGetCancellation2 = __esm(() => {
72036
72274
 
72037
72275
  To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
72038
72276
  to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72039
- args: args125,
72040
- tool: async (client, args126, ctx) => {
72041
- const [result, apiCall] = await transfersGetCancellation(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72277
+ args: args126,
72278
+ tool: async (client, args127, ctx) => {
72279
+ const [result, apiCall] = await transfersGetCancellation(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72042
72280
  if (!result.ok) {
72043
72281
  return {
72044
72282
  content: [{ type: "text", text: result.error.message }],
@@ -72053,9 +72291,9 @@ var init_transfersGetCancellation2 = __esm(() => {
72053
72291
 
72054
72292
  // src/funcs/transfersGetRefund.ts
72055
72293
  function transfersGetRefund(client, request, options) {
72056
- return new APIPromise($do126(client, request, options));
72294
+ return new APIPromise($do127(client, request, options));
72057
72295
  }
72058
- async function $do126(client, request, options) {
72296
+ async function $do127(client, request, options) {
72059
72297
  const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
72060
72298
  if (!parsed.ok) {
72061
72299
  return [parsed, { status: "invalid" }];
@@ -72141,12 +72379,12 @@ var init_transfersGetRefund = __esm(() => {
72141
72379
  });
72142
72380
 
72143
72381
  // src/mcp-server/tools/transfersGetRefund.ts
72144
- var args126, tool$transfersGetRefund;
72382
+ var args127, tool$transfersGetRefund;
72145
72383
  var init_transfersGetRefund2 = __esm(() => {
72146
72384
  init_transfersGetRefund();
72147
72385
  init_operations();
72148
72386
  init_tools();
72149
- args126 = {
72387
+ args127 = {
72150
72388
  request: GetRefundRequest$inboundSchema
72151
72389
  };
72152
72390
  tool$transfersGetRefund = {
@@ -72155,9 +72393,9 @@ var init_transfersGetRefund2 = __esm(() => {
72155
72393
 
72156
72394
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72157
72395
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72158
- args: args126,
72159
- tool: async (client, args127, ctx) => {
72160
- const [result, apiCall] = await transfersGetRefund(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72396
+ args: args127,
72397
+ tool: async (client, args128, ctx) => {
72398
+ const [result, apiCall] = await transfersGetRefund(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72161
72399
  if (!result.ok) {
72162
72400
  return {
72163
72401
  content: [{ type: "text", text: result.error.message }],
@@ -72172,9 +72410,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72172
72410
 
72173
72411
  // src/funcs/transfersInitiateRefund.ts
72174
72412
  function transfersInitiateRefund(client, request, options) {
72175
- return new APIPromise($do127(client, request, options));
72413
+ return new APIPromise($do128(client, request, options));
72176
72414
  }
72177
- async function $do127(client, request, options) {
72415
+ async function $do128(client, request, options) {
72178
72416
  const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
72179
72417
  if (!parsed.ok) {
72180
72418
  return [parsed, { status: "invalid" }];
@@ -72266,12 +72504,12 @@ var init_transfersInitiateRefund = __esm(() => {
72266
72504
  });
72267
72505
 
72268
72506
  // src/mcp-server/tools/transfersInitiateRefund.ts
72269
- var args127, tool$transfersInitiateRefund;
72507
+ var args128, tool$transfersInitiateRefund;
72270
72508
  var init_transfersInitiateRefund2 = __esm(() => {
72271
72509
  init_transfersInitiateRefund();
72272
72510
  init_operations();
72273
72511
  init_tools();
72274
- args127 = {
72512
+ args128 = {
72275
72513
  request: InitiateRefundRequest$inboundSchema
72276
72514
  };
72277
72515
  tool$transfersInitiateRefund = {
@@ -72283,9 +72521,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
72283
72521
 
72284
72522
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72285
72523
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72286
- args: args127,
72287
- tool: async (client, args128, ctx) => {
72288
- const [result, apiCall] = await transfersInitiateRefund(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72524
+ args: args128,
72525
+ tool: async (client, args129, ctx) => {
72526
+ const [result, apiCall] = await transfersInitiateRefund(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72289
72527
  if (!result.ok) {
72290
72528
  return {
72291
72529
  content: [{ type: "text", text: result.error.message }],
@@ -72300,9 +72538,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72300
72538
 
72301
72539
  // src/funcs/transfersList.ts
72302
72540
  function transfersList(client, request, options) {
72303
- return new APIPromise($do128(client, request, options));
72541
+ return new APIPromise($do129(client, request, options));
72304
72542
  }
72305
- async function $do128(client, request, options) {
72543
+ async function $do129(client, request, options) {
72306
72544
  const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
72307
72545
  if (!parsed.ok) {
72308
72546
  return [parsed, { status: "invalid" }];
@@ -72394,12 +72632,12 @@ var init_transfersList = __esm(() => {
72394
72632
  });
72395
72633
 
72396
72634
  // src/mcp-server/tools/transfersList.ts
72397
- var args128, tool$transfersList;
72635
+ var args129, tool$transfersList;
72398
72636
  var init_transfersList2 = __esm(() => {
72399
72637
  init_transfersList();
72400
72638
  init_operations();
72401
72639
  init_tools();
72402
- args128 = {
72640
+ args129 = {
72403
72641
  request: ListTransfersRequest$inboundSchema
72404
72642
  };
72405
72643
  tool$transfersList = {
@@ -72415,9 +72653,9 @@ period of time. You can run multiple requests in smaller time window increments
72415
72653
 
72416
72654
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72417
72655
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72418
- args: args128,
72419
- tool: async (client, args129, ctx) => {
72420
- const [result, apiCall] = await transfersList(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72656
+ args: args129,
72657
+ tool: async (client, args130, ctx) => {
72658
+ const [result, apiCall] = await transfersList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72421
72659
  if (!result.ok) {
72422
72660
  return {
72423
72661
  content: [{ type: "text", text: result.error.message }],
@@ -72432,9 +72670,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72432
72670
 
72433
72671
  // src/funcs/transfersListRefunds.ts
72434
72672
  function transfersListRefunds(client, request, options) {
72435
- return new APIPromise($do129(client, request, options));
72673
+ return new APIPromise($do130(client, request, options));
72436
72674
  }
72437
- async function $do129(client, request, options) {
72675
+ async function $do130(client, request, options) {
72438
72676
  const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
72439
72677
  if (!parsed.ok) {
72440
72678
  return [parsed, { status: "invalid" }];
@@ -72516,12 +72754,12 @@ var init_transfersListRefunds = __esm(() => {
72516
72754
  });
72517
72755
 
72518
72756
  // src/mcp-server/tools/transfersListRefunds.ts
72519
- var args129, tool$transfersListRefunds;
72757
+ var args130, tool$transfersListRefunds;
72520
72758
  var init_transfersListRefunds2 = __esm(() => {
72521
72759
  init_transfersListRefunds();
72522
72760
  init_operations();
72523
72761
  init_tools();
72524
- args129 = {
72762
+ args130 = {
72525
72763
  request: ListRefundsRequest$inboundSchema
72526
72764
  };
72527
72765
  tool$transfersListRefunds = {
@@ -72530,9 +72768,9 @@ var init_transfersListRefunds2 = __esm(() => {
72530
72768
 
72531
72769
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72532
72770
  you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72533
- args: args129,
72534
- tool: async (client, args130, ctx) => {
72535
- const [result, apiCall] = await transfersListRefunds(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72771
+ args: args130,
72772
+ tool: async (client, args131, ctx) => {
72773
+ const [result, apiCall] = await transfersListRefunds(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72536
72774
  if (!result.ok) {
72537
72775
  return {
72538
72776
  content: [{ type: "text", text: result.error.message }],
@@ -72547,9 +72785,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72547
72785
 
72548
72786
  // src/funcs/transfersUpdate.ts
72549
72787
  function transfersUpdate(client, request, options) {
72550
- return new APIPromise($do130(client, request, options));
72788
+ return new APIPromise($do131(client, request, options));
72551
72789
  }
72552
- async function $do130(client, request, options) {
72790
+ async function $do131(client, request, options) {
72553
72791
  const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
72554
72792
  if (!parsed.ok) {
72555
72793
  return [parsed, { status: "invalid" }];
@@ -72632,12 +72870,12 @@ var init_transfersUpdate = __esm(() => {
72632
72870
  });
72633
72871
 
72634
72872
  // src/mcp-server/tools/transfersUpdate.ts
72635
- var args130, tool$transfersUpdate;
72873
+ var args131, tool$transfersUpdate;
72636
72874
  var init_transfersUpdate2 = __esm(() => {
72637
72875
  init_transfersUpdate();
72638
72876
  init_operations();
72639
72877
  init_tools();
72640
- args130 = {
72878
+ args131 = {
72641
72879
  request: UpdateTransferRequest$inboundSchema
72642
72880
  };
72643
72881
  tool$transfersUpdate = {
@@ -72648,9 +72886,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
72648
72886
 
72649
72887
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72650
72888
  you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72651
- args: args130,
72652
- tool: async (client, args131, ctx) => {
72653
- const [result, apiCall] = await transfersUpdate(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72889
+ args: args131,
72890
+ tool: async (client, args132, ctx) => {
72891
+ const [result, apiCall] = await transfersUpdate(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72654
72892
  if (!result.ok) {
72655
72893
  return {
72656
72894
  content: [{ type: "text", text: result.error.message }],
@@ -72665,9 +72903,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72665
72903
 
72666
72904
  // src/funcs/underwritingGet.ts
72667
72905
  function underwritingGet(client, request, options) {
72668
- return new APIPromise($do131(client, request, options));
72906
+ return new APIPromise($do132(client, request, options));
72669
72907
  }
72670
- async function $do131(client, request, options) {
72908
+ async function $do132(client, request, options) {
72671
72909
  const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
72672
72910
  if (!parsed.ok) {
72673
72911
  return [parsed, { status: "invalid" }];
@@ -72745,12 +72983,12 @@ var init_underwritingGet = __esm(() => {
72745
72983
  });
72746
72984
 
72747
72985
  // src/mcp-server/tools/underwritingGet.ts
72748
- var args131, tool$underwritingGet;
72986
+ var args132, tool$underwritingGet;
72749
72987
  var init_underwritingGet2 = __esm(() => {
72750
72988
  init_underwritingGet();
72751
72989
  init_operations();
72752
72990
  init_tools();
72753
- args131 = {
72991
+ args132 = {
72754
72992
  request: GetUnderwritingRequest$inboundSchema
72755
72993
  };
72756
72994
  tool$underwritingGet = {
@@ -72761,9 +72999,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
72761
72999
 
72762
73000
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72763
73001
  you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
72764
- args: args131,
72765
- tool: async (client, args132, ctx) => {
72766
- const [result, apiCall] = await underwritingGet(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73002
+ args: args132,
73003
+ tool: async (client, args133, ctx) => {
73004
+ const [result, apiCall] = await underwritingGet(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72767
73005
  if (!result.ok) {
72768
73006
  return {
72769
73007
  content: [{ type: "text", text: result.error.message }],
@@ -72778,9 +73016,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
72778
73016
 
72779
73017
  // src/funcs/underwritingUpsert.ts
72780
73018
  function underwritingUpsert(client, request, options) {
72781
- return new APIPromise($do132(client, request, options));
73019
+ return new APIPromise($do133(client, request, options));
72782
73020
  }
72783
- async function $do132(client, request, options) {
73021
+ async function $do133(client, request, options) {
72784
73022
  const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
72785
73023
  if (!parsed.ok) {
72786
73024
  return [parsed, { status: "invalid" }];
@@ -72876,12 +73114,12 @@ var init_underwritingUpsert = __esm(() => {
72876
73114
  });
72877
73115
 
72878
73116
  // src/mcp-server/tools/underwritingUpsert.ts
72879
- var args132, tool$underwritingUpsert;
73117
+ var args133, tool$underwritingUpsert;
72880
73118
  var init_underwritingUpsert2 = __esm(() => {
72881
73119
  init_underwritingUpsert();
72882
73120
  init_operations();
72883
73121
  init_tools();
72884
- args132 = {
73122
+ args133 = {
72885
73123
  request: UpsertUnderwritingRequest$inboundSchema
72886
73124
  };
72887
73125
  tool$underwritingUpsert = {
@@ -72892,9 +73130,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
72892
73130
 
72893
73131
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72894
73132
  you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
72895
- args: args132,
72896
- tool: async (client, args133, ctx) => {
72897
- const [result, apiCall] = await underwritingUpsert(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73133
+ args: args133,
73134
+ tool: async (client, args134, ctx) => {
73135
+ const [result, apiCall] = await underwritingUpsert(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72898
73136
  if (!result.ok) {
72899
73137
  return {
72900
73138
  content: [{ type: "text", text: result.error.message }],
@@ -72909,9 +73147,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
72909
73147
 
72910
73148
  // src/funcs/walletsGet.ts
72911
73149
  function walletsGet(client, request, options) {
72912
- return new APIPromise($do133(client, request, options));
73150
+ return new APIPromise($do134(client, request, options));
72913
73151
  }
72914
- async function $do133(client, request, options) {
73152
+ async function $do134(client, request, options) {
72915
73153
  const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
72916
73154
  if (!parsed.ok) {
72917
73155
  return [parsed, { status: "invalid" }];
@@ -72993,12 +73231,12 @@ var init_walletsGet = __esm(() => {
72993
73231
  });
72994
73232
 
72995
73233
  // src/mcp-server/tools/walletsGet.ts
72996
- var args133, tool$walletsGet;
73234
+ var args134, tool$walletsGet;
72997
73235
  var init_walletsGet2 = __esm(() => {
72998
73236
  init_walletsGet();
72999
73237
  init_operations();
73000
73238
  init_tools();
73001
- args133 = {
73239
+ args134 = {
73002
73240
  request: GetWalletRequest$inboundSchema
73003
73241
  };
73004
73242
  tool$walletsGet = {
@@ -73009,9 +73247,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
73009
73247
 
73010
73248
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73011
73249
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73012
- args: args133,
73013
- tool: async (client, args134, ctx) => {
73014
- const [result, apiCall] = await walletsGet(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73250
+ args: args134,
73251
+ tool: async (client, args135, ctx) => {
73252
+ const [result, apiCall] = await walletsGet(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73015
73253
  if (!result.ok) {
73016
73254
  return {
73017
73255
  content: [{ type: "text", text: result.error.message }],
@@ -73026,9 +73264,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73026
73264
 
73027
73265
  // src/funcs/walletsList.ts
73028
73266
  function walletsList(client, request, options) {
73029
- return new APIPromise($do134(client, request, options));
73267
+ return new APIPromise($do135(client, request, options));
73030
73268
  }
73031
- async function $do134(client, request, options) {
73269
+ async function $do135(client, request, options) {
73032
73270
  const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
73033
73271
  if (!parsed.ok) {
73034
73272
  return [parsed, { status: "invalid" }];
@@ -73106,12 +73344,12 @@ var init_walletsList = __esm(() => {
73106
73344
  });
73107
73345
 
73108
73346
  // src/mcp-server/tools/walletsList.ts
73109
- var args134, tool$walletsList;
73347
+ var args135, tool$walletsList;
73110
73348
  var init_walletsList2 = __esm(() => {
73111
73349
  init_walletsList();
73112
73350
  init_operations();
73113
73351
  init_tools();
73114
- args134 = {
73352
+ args135 = {
73115
73353
  request: ListWalletsRequest$inboundSchema
73116
73354
  };
73117
73355
  tool$walletsList = {
@@ -73122,9 +73360,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
73122
73360
 
73123
73361
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73124
73362
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73125
- args: args134,
73126
- tool: async (client, args135, ctx) => {
73127
- const [result, apiCall] = await walletsList(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73363
+ args: args135,
73364
+ tool: async (client, args136, ctx) => {
73365
+ const [result, apiCall] = await walletsList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73128
73366
  if (!result.ok) {
73129
73367
  return {
73130
73368
  content: [{ type: "text", text: result.error.message }],
@@ -73139,9 +73377,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73139
73377
 
73140
73378
  // src/funcs/walletTransactionsGet.ts
73141
73379
  function walletTransactionsGet(client, request, options) {
73142
- return new APIPromise($do135(client, request, options));
73380
+ return new APIPromise($do136(client, request, options));
73143
73381
  }
73144
- async function $do135(client, request, options) {
73382
+ async function $do136(client, request, options) {
73145
73383
  const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
73146
73384
  if (!parsed.ok) {
73147
73385
  return [parsed, { status: "invalid" }];
@@ -73227,12 +73465,12 @@ var init_walletTransactionsGet = __esm(() => {
73227
73465
  });
73228
73466
 
73229
73467
  // src/mcp-server/tools/walletTransactionsGet.ts
73230
- var args135, tool$walletTransactionsGet;
73468
+ var args136, tool$walletTransactionsGet;
73231
73469
  var init_walletTransactionsGet2 = __esm(() => {
73232
73470
  init_walletTransactionsGet();
73233
73471
  init_operations();
73234
73472
  init_tools();
73235
- args135 = {
73473
+ args136 = {
73236
73474
  request: GetWalletTransactionRequest$inboundSchema
73237
73475
  };
73238
73476
  tool$walletTransactionsGet = {
@@ -73243,9 +73481,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
73243
73481
 
73244
73482
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73245
73483
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73246
- args: args135,
73247
- tool: async (client, args136, ctx) => {
73248
- const [result, apiCall] = await walletTransactionsGet(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73484
+ args: args136,
73485
+ tool: async (client, args137, ctx) => {
73486
+ const [result, apiCall] = await walletTransactionsGet(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73249
73487
  if (!result.ok) {
73250
73488
  return {
73251
73489
  content: [{ type: "text", text: result.error.message }],
@@ -73260,9 +73498,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73260
73498
 
73261
73499
  // src/funcs/walletTransactionsList.ts
73262
73500
  function walletTransactionsList(client, request, options) {
73263
- return new APIPromise($do136(client, request, options));
73501
+ return new APIPromise($do137(client, request, options));
73264
73502
  }
73265
- async function $do136(client, request, options) {
73503
+ async function $do137(client, request, options) {
73266
73504
  const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
73267
73505
  if (!parsed.ok) {
73268
73506
  return [parsed, { status: "invalid" }];
@@ -73359,12 +73597,12 @@ var init_walletTransactionsList = __esm(() => {
73359
73597
  });
73360
73598
 
73361
73599
  // src/mcp-server/tools/walletTransactionsList.ts
73362
- var args136, tool$walletTransactionsList;
73600
+ var args137, tool$walletTransactionsList;
73363
73601
  var init_walletTransactionsList2 = __esm(() => {
73364
73602
  init_walletTransactionsList();
73365
73603
  init_operations();
73366
73604
  init_tools();
73367
- args136 = {
73605
+ args137 = {
73368
73606
  request: ListWalletTransactionsRequest$inboundSchema
73369
73607
  };
73370
73608
  tool$walletTransactionsList = {
@@ -73375,9 +73613,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
73375
73613
 
73376
73614
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73377
73615
  you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73378
- args: args136,
73379
- tool: async (client, args137, ctx) => {
73380
- const [result, apiCall] = await walletTransactionsList(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73616
+ args: args137,
73617
+ tool: async (client, args138, ctx) => {
73618
+ const [result, apiCall] = await walletTransactionsList(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73381
73619
  if (!result.ok) {
73382
73620
  return {
73383
73621
  content: [{ type: "text", text: result.error.message }],
@@ -73394,7 +73632,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73394
73632
  function createMCPServer(deps) {
73395
73633
  const server = new McpServer({
73396
73634
  name: "Moov",
73397
- version: "0.12.4"
73635
+ version: "0.12.6"
73398
73636
  });
73399
73637
  const client = new MoovCore({
73400
73638
  security: deps.security,
@@ -73497,6 +73735,7 @@ function createMCPServer(deps) {
73497
73735
  tool(tool$accountTerminalApplicationsList);
73498
73736
  tool(tool$accountTerminalApplicationsGet);
73499
73737
  tool(tool$accountTerminalApplicationsGetConfiguration);
73738
+ tool(tool$transfersGenerateOptionsForAccount);
73500
73739
  tool(tool$transfersCreate);
73501
73740
  tool(tool$transfersList);
73502
73741
  tool(tool$transfersGet);
@@ -73675,6 +73914,7 @@ var init_server2 = __esm(() => {
73675
73914
  init_transfersCreateCancellation2();
73676
73915
  init_transfersCreateReversal2();
73677
73916
  init_transfersGenerateOptions2();
73917
+ init_transfersGenerateOptionsForAccount2();
73678
73918
  init_transfersGet2();
73679
73919
  init_transfersGetCancellation2();
73680
73920
  init_transfersGetRefund2();
@@ -74906,7 +75146,7 @@ var routes = rn({
74906
75146
  var app = Ve(routes, {
74907
75147
  name: "mcp",
74908
75148
  versionInfo: {
74909
- currentVersion: "0.12.4"
75149
+ currentVersion: "0.12.6"
74910
75150
  }
74911
75151
  });
74912
75152
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -74914,5 +75154,5 @@ export {
74914
75154
  app
74915
75155
  };
74916
75156
 
74917
- //# debugId=D9232652FAAB478264756E2164756E21
75157
+ //# debugId=31239349CD60AAEC64756E2164756E21
74918
75158
  //# sourceMappingURL=mcp-server.js.map