@moovio/sdk 0.12.4 → 0.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +54 -36
  2. package/bin/mcp-server.js +392 -162
  3. package/bin/mcp-server.js.map +20 -17
  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/createaccount.d.ts +4 -4
  37. package/models/components/createaccount.d.ts.map +1 -1
  38. package/models/components/createaccount.js +4 -4
  39. package/models/components/createaccount.js.map +1 -1
  40. package/models/components/createrefundresponse.d.ts +2 -2
  41. package/models/components/createrefundresponse.d.ts.map +1 -1
  42. package/models/components/createrefundresponse.js +2 -2
  43. package/models/components/createrefundresponse.js.map +1 -1
  44. package/models/components/webhookdata.d.ts +2 -2
  45. package/models/components/webhookdata.d.ts.map +1 -1
  46. package/models/components/webhookdata.js +38 -38
  47. package/models/components/webhookdata.js.map +1 -1
  48. package/models/operations/createtransfer.d.ts +4 -4
  49. package/models/operations/createtransfer.d.ts.map +1 -1
  50. package/models/operations/createtransfer.js +8 -8
  51. package/models/operations/createtransfer.js.map +1 -1
  52. package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
  53. package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
  54. package/models/operations/createtransferoptionsforaccount.js +155 -0
  55. package/models/operations/createtransferoptionsforaccount.js.map +1 -0
  56. package/models/operations/index.d.ts +1 -0
  57. package/models/operations/index.d.ts.map +1 -1
  58. package/models/operations/index.js +1 -0
  59. package/models/operations/index.js.map +1 -1
  60. package/package.json +1 -1
  61. package/sdk/transfers.d.ts +13 -1
  62. package/sdk/transfers.d.ts.map +1 -1
  63. package/sdk/transfers.js +16 -1
  64. package/sdk/transfers.js.map +1 -1
  65. package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
  66. package/src/funcs/filesUpload.ts +20 -4
  67. package/src/funcs/transfersGenerateOptions.ts +1 -1
  68. package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
  69. package/src/lib/config.ts +3 -3
  70. package/src/lib/files.ts +42 -0
  71. package/src/lib/security.ts +2 -2
  72. package/src/mcp-server/mcp-server.ts +1 -1
  73. package/src/mcp-server/server.ts +3 -1
  74. package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
  75. package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
  76. package/src/models/components/createaccount.ts +10 -10
  77. package/src/models/components/createrefundresponse.ts +5 -5
  78. package/src/models/components/webhookdata.ts +76 -76
  79. package/src/models/operations/createtransfer.ts +16 -16
  80. package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
  81. package/src/models/operations/index.ts +1 -0
  82. package/src/sdk/transfers.ts +24 -1
  83. package/src/types/constdatetime.ts +1 -1
  84. 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.5",
34250
+ genVersion: "2.632.1",
34251
+ userAgent: "speakeasy-sdk/typescript 0.12.5 2.632.1 latest @moovio/sdk"
34252
34252
  };
34253
34253
  });
34254
34254
 
@@ -39400,12 +39400,12 @@ var init_createaccount = __esm(() => {
39400
39400
  init_settings();
39401
39401
  init_termsofservicetoken();
39402
39402
  CreateAccountTermsOfService$inboundSchema = unionType([
39403
- TermsOfServiceToken$inboundSchema,
39404
- ManualTermsOfService$inboundSchema
39403
+ ManualTermsOfService$inboundSchema,
39404
+ TermsOfServiceToken$inboundSchema
39405
39405
  ]);
39406
39406
  CreateAccountTermsOfService$outboundSchema = unionType([
39407
- TermsOfServiceToken$outboundSchema,
39408
- ManualTermsOfService$outboundSchema
39407
+ ManualTermsOfService$outboundSchema,
39408
+ TermsOfServiceToken$outboundSchema
39409
39409
  ]);
39410
39410
  ((CreateAccountTermsOfService$) => {
39411
39411
  CreateAccountTermsOfService$.inboundSchema = CreateAccountTermsOfService$inboundSchema;
@@ -39416,8 +39416,8 @@ var init_createaccount = __esm(() => {
39416
39416
  profile: CreateProfile$inboundSchema,
39417
39417
  metadata: recordType(stringType()).optional(),
39418
39418
  termsOfService: unionType([
39419
- TermsOfServiceToken$inboundSchema,
39420
- ManualTermsOfService$inboundSchema
39419
+ ManualTermsOfService$inboundSchema,
39420
+ TermsOfServiceToken$inboundSchema
39421
39421
  ]).optional(),
39422
39422
  foreignID: stringType().optional(),
39423
39423
  customerSupport: CustomerSupport$inboundSchema.optional(),
@@ -39430,8 +39430,8 @@ var init_createaccount = __esm(() => {
39430
39430
  profile: CreateProfile$outboundSchema,
39431
39431
  metadata: recordType(stringType()).optional(),
39432
39432
  termsOfService: unionType([
39433
- TermsOfServiceToken$outboundSchema,
39434
- ManualTermsOfService$outboundSchema
39433
+ ManualTermsOfService$outboundSchema,
39434
+ TermsOfServiceToken$outboundSchema
39435
39435
  ]).optional(),
39436
39436
  foreignID: stringType().optional(),
39437
39437
  customerSupport: CustomerSupport$outboundSchema.optional(),
@@ -40511,12 +40511,12 @@ var init_createrefundresponse = __esm(() => {
40511
40511
  init_asynccreatedrefund();
40512
40512
  init_cardacquiringrefund();
40513
40513
  CreateRefundResponse$inboundSchema = unionType([
40514
- AsyncCreatedRefund$inboundSchema,
40515
- CardAcquiringRefund$inboundSchema
40514
+ CardAcquiringRefund$inboundSchema,
40515
+ AsyncCreatedRefund$inboundSchema
40516
40516
  ]);
40517
40517
  CreateRefundResponse$outboundSchema = unionType([
40518
- AsyncCreatedRefund$outboundSchema,
40519
- CardAcquiringRefund$outboundSchema
40518
+ CardAcquiringRefund$outboundSchema,
40519
+ AsyncCreatedRefund$outboundSchema
40520
40520
  ]);
40521
40521
  ((CreateRefundResponse$) => {
40522
40522
  CreateRefundResponse$.inboundSchema = CreateRefundResponse$inboundSchema;
@@ -45871,65 +45871,65 @@ var init_webhookdata = __esm(() => {
45871
45871
  init_webhookdatatransferupdated();
45872
45872
  init_webhookdatawallettransactionupdated();
45873
45873
  WebhookData$inboundSchema = unionType([
45874
- WebhookDataAccountCreated$inboundSchema,
45875
- WebhookDataAccountUpdated$inboundSchema,
45876
- WebhookDataAccountDeleted$inboundSchema,
45874
+ WebhookDataDisputeCreated$inboundSchema,
45875
+ WebhookDataDisputeUpdated$inboundSchema,
45876
+ WebhookDataTransferUpdated$inboundSchema,
45877
+ WebhookDataBankAccountUpdated$inboundSchema,
45878
+ WebhookDataRefundUpdated$inboundSchema,
45879
+ WebhookDataWalletTransactionUpdated$inboundSchema,
45880
+ WebhookDataCancellationCreated$inboundSchema,
45881
+ WebhookDataCancellationUpdated$inboundSchema,
45882
+ WebhookDataCardAutoUpdated$inboundSchema,
45883
+ WebhookDataCapabilityUpdated$inboundSchema,
45884
+ WebhookDataPaymentMethodEnabled$inboundSchema,
45885
+ WebhookDataPaymentMethodDisabled$inboundSchema,
45886
+ WebhookDataRefundCreated$inboundSchema,
45887
+ WebhookDataSweepUpdated$inboundSchema,
45888
+ WebhookDataTransferCreated$inboundSchema,
45877
45889
  WebhookDataBalanceUpdated$inboundSchema,
45878
45890
  WebhookDataBankAccountCreated$inboundSchema,
45879
45891
  WebhookDataBankAccountDeleted$inboundSchema,
45892
+ WebhookDataCapabilityRequested$inboundSchema,
45880
45893
  WebhookDataRepresentativeCreated$inboundSchema,
45881
45894
  WebhookDataRepresentativeUpdated$inboundSchema,
45882
45895
  WebhookDataRepresentativeDisabled$inboundSchema,
45883
45896
  WebhookDataSweepCreated$inboundSchema,
45884
45897
  WebhookDataTerminalApplicationCreated$inboundSchema,
45885
45898
  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,
45899
+ WebhookDataAccountCreated$inboundSchema,
45900
+ WebhookDataAccountUpdated$inboundSchema,
45901
+ WebhookDataAccountDeleted$inboundSchema,
45902
45902
  WebhookDataNetworkIDUpdated$inboundSchema
45903
45903
  ]);
45904
45904
  WebhookData$outboundSchema = unionType([
45905
- WebhookDataAccountCreated$outboundSchema,
45906
- WebhookDataAccountUpdated$outboundSchema,
45907
- WebhookDataAccountDeleted$outboundSchema,
45905
+ WebhookDataDisputeCreated$outboundSchema,
45906
+ WebhookDataDisputeUpdated$outboundSchema,
45907
+ WebhookDataTransferUpdated$outboundSchema,
45908
+ WebhookDataBankAccountUpdated$outboundSchema,
45909
+ WebhookDataRefundUpdated$outboundSchema,
45910
+ WebhookDataWalletTransactionUpdated$outboundSchema,
45911
+ WebhookDataCancellationCreated$outboundSchema,
45912
+ WebhookDataCancellationUpdated$outboundSchema,
45913
+ WebhookDataCardAutoUpdated$outboundSchema,
45914
+ WebhookDataCapabilityUpdated$outboundSchema,
45915
+ WebhookDataPaymentMethodEnabled$outboundSchema,
45916
+ WebhookDataPaymentMethodDisabled$outboundSchema,
45917
+ WebhookDataRefundCreated$outboundSchema,
45918
+ WebhookDataSweepUpdated$outboundSchema,
45919
+ WebhookDataTransferCreated$outboundSchema,
45908
45920
  WebhookDataBalanceUpdated$outboundSchema,
45909
45921
  WebhookDataBankAccountCreated$outboundSchema,
45910
45922
  WebhookDataBankAccountDeleted$outboundSchema,
45923
+ WebhookDataCapabilityRequested$outboundSchema,
45911
45924
  WebhookDataRepresentativeCreated$outboundSchema,
45912
45925
  WebhookDataRepresentativeUpdated$outboundSchema,
45913
45926
  WebhookDataRepresentativeDisabled$outboundSchema,
45914
45927
  WebhookDataSweepCreated$outboundSchema,
45915
45928
  WebhookDataTerminalApplicationCreated$outboundSchema,
45916
45929
  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,
45930
+ WebhookDataAccountCreated$outboundSchema,
45931
+ WebhookDataAccountUpdated$outboundSchema,
45932
+ WebhookDataAccountDeleted$outboundSchema,
45933
45933
  WebhookDataNetworkIDUpdated$outboundSchema
45934
45934
  ]);
45935
45935
  ((WebhookData$) => {
@@ -49574,14 +49574,14 @@ var init_createtransfer2 = __esm(() => {
49574
49574
  CreateTransferRequest$.outboundSchema = CreateTransferRequest$outboundSchema;
49575
49575
  })(CreateTransferRequest$ ||= {});
49576
49576
  CreateTransferResponseResult$inboundSchema = unionType([
49577
- AsyncTransfer$inboundSchema,
49577
+ Transfer$inboundSchema,
49578
49578
  CreatedTransfer$inboundSchema,
49579
- Transfer$inboundSchema
49579
+ AsyncTransfer$inboundSchema
49580
49580
  ]);
49581
49581
  CreateTransferResponseResult$outboundSchema = unionType([
49582
- AsyncTransfer$outboundSchema,
49582
+ Transfer$outboundSchema,
49583
49583
  CreatedTransfer$outboundSchema,
49584
- Transfer$outboundSchema
49584
+ AsyncTransfer$outboundSchema
49585
49585
  ]);
49586
49586
  ((CreateTransferResponseResult$) => {
49587
49587
  CreateTransferResponseResult$.inboundSchema = CreateTransferResponseResult$inboundSchema;
@@ -49590,9 +49590,9 @@ var init_createtransfer2 = __esm(() => {
49590
49590
  CreateTransferResponse$inboundSchema = objectType({
49591
49591
  Headers: recordType(arrayType(stringType())),
49592
49592
  Result: unionType([
49593
- AsyncTransfer$inboundSchema,
49593
+ Transfer$inboundSchema,
49594
49594
  CreatedTransfer$inboundSchema,
49595
- Transfer$inboundSchema
49595
+ AsyncTransfer$inboundSchema
49596
49596
  ])
49597
49597
  }).transform((v2) => {
49598
49598
  return remap(v2, {
@@ -49603,9 +49603,9 @@ var init_createtransfer2 = __esm(() => {
49603
49603
  CreateTransferResponse$outboundSchema = objectType({
49604
49604
  headers: recordType(arrayType(stringType())),
49605
49605
  result: unionType([
49606
- AsyncTransfer$outboundSchema,
49606
+ Transfer$outboundSchema,
49607
49607
  CreatedTransfer$outboundSchema,
49608
- Transfer$outboundSchema
49608
+ AsyncTransfer$outboundSchema
49609
49609
  ])
49610
49610
  }).transform((v2) => {
49611
49611
  return remap(v2, {
@@ -49667,6 +49667,74 @@ var init_createtransferoptions2 = __esm(() => {
49667
49667
  })(CreateTransferOptionsResponse$ ||= {});
49668
49668
  });
49669
49669
 
49670
+ // src/models/operations/createtransferoptionsforaccount.ts
49671
+ var CreateTransferOptionsForAccountGlobals$inboundSchema, CreateTransferOptionsForAccountGlobals$outboundSchema, CreateTransferOptionsForAccountGlobals$, CreateTransferOptionsForAccountRequest$inboundSchema, CreateTransferOptionsForAccountRequest$outboundSchema, CreateTransferOptionsForAccountRequest$, CreateTransferOptionsForAccountResponse$inboundSchema, CreateTransferOptionsForAccountResponse$outboundSchema, CreateTransferOptionsForAccountResponse$;
49672
+ var init_createtransferoptionsforaccount = __esm(() => {
49673
+ init_esm();
49674
+ init_primitives();
49675
+ init_components();
49676
+ CreateTransferOptionsForAccountGlobals$inboundSchema = objectType({
49677
+ "x-moov-version": stringType().default("v2024.01.00")
49678
+ }).transform((v2) => {
49679
+ return remap(v2, {
49680
+ "x-moov-version": "xMoovVersion"
49681
+ });
49682
+ });
49683
+ CreateTransferOptionsForAccountGlobals$outboundSchema = objectType({
49684
+ xMoovVersion: stringType().default("v2024.01.00")
49685
+ }).transform((v2) => {
49686
+ return remap(v2, {
49687
+ xMoovVersion: "x-moov-version"
49688
+ });
49689
+ });
49690
+ ((CreateTransferOptionsForAccountGlobals$) => {
49691
+ CreateTransferOptionsForAccountGlobals$.inboundSchema = CreateTransferOptionsForAccountGlobals$inboundSchema;
49692
+ CreateTransferOptionsForAccountGlobals$.outboundSchema = CreateTransferOptionsForAccountGlobals$outboundSchema;
49693
+ })(CreateTransferOptionsForAccountGlobals$ ||= {});
49694
+ CreateTransferOptionsForAccountRequest$inboundSchema = objectType({
49695
+ accountID: stringType(),
49696
+ CreateTransferOptions: CreateTransferOptions$inboundSchema
49697
+ }).transform((v2) => {
49698
+ return remap(v2, {
49699
+ CreateTransferOptions: "createTransferOptions"
49700
+ });
49701
+ });
49702
+ CreateTransferOptionsForAccountRequest$outboundSchema = objectType({
49703
+ accountID: stringType(),
49704
+ createTransferOptions: CreateTransferOptions$outboundSchema
49705
+ }).transform((v2) => {
49706
+ return remap(v2, {
49707
+ createTransferOptions: "CreateTransferOptions"
49708
+ });
49709
+ });
49710
+ ((CreateTransferOptionsForAccountRequest$) => {
49711
+ CreateTransferOptionsForAccountRequest$.inboundSchema = CreateTransferOptionsForAccountRequest$inboundSchema;
49712
+ CreateTransferOptionsForAccountRequest$.outboundSchema = CreateTransferOptionsForAccountRequest$outboundSchema;
49713
+ })(CreateTransferOptionsForAccountRequest$ ||= {});
49714
+ CreateTransferOptionsForAccountResponse$inboundSchema = objectType({
49715
+ Headers: recordType(arrayType(stringType())),
49716
+ Result: TransferOptions$inboundSchema
49717
+ }).transform((v2) => {
49718
+ return remap(v2, {
49719
+ Headers: "headers",
49720
+ Result: "result"
49721
+ });
49722
+ });
49723
+ CreateTransferOptionsForAccountResponse$outboundSchema = objectType({
49724
+ headers: recordType(arrayType(stringType())),
49725
+ result: TransferOptions$outboundSchema
49726
+ }).transform((v2) => {
49727
+ return remap(v2, {
49728
+ headers: "Headers",
49729
+ result: "Result"
49730
+ });
49731
+ });
49732
+ ((CreateTransferOptionsForAccountResponse$) => {
49733
+ CreateTransferOptionsForAccountResponse$.inboundSchema = CreateTransferOptionsForAccountResponse$inboundSchema;
49734
+ CreateTransferOptionsForAccountResponse$.outboundSchema = CreateTransferOptionsForAccountResponse$outboundSchema;
49735
+ })(CreateTransferOptionsForAccountResponse$ ||= {});
49736
+ });
49737
+
49670
49738
  // src/models/operations/deletedisputeevidencefile.ts
49671
49739
  var DeleteDisputeEvidenceFileGlobals$inboundSchema, DeleteDisputeEvidenceFileGlobals$outboundSchema, DeleteDisputeEvidenceFileGlobals$, DeleteDisputeEvidenceFileRequest$inboundSchema, DeleteDisputeEvidenceFileRequest$outboundSchema, DeleteDisputeEvidenceFileRequest$, DeleteDisputeEvidenceFileResponse$inboundSchema, DeleteDisputeEvidenceFileResponse$outboundSchema, DeleteDisputeEvidenceFileResponse$;
49672
49740
  var init_deletedisputeevidencefile = __esm(() => {
@@ -56920,6 +56988,7 @@ var init_operations = __esm(() => {
56920
56988
  init_createterminalapplication2();
56921
56989
  init_createtransfer2();
56922
56990
  init_createtransferoptions2();
56991
+ init_createtransferoptionsforaccount();
56923
56992
  init_deletedisputeevidencefile();
56924
56993
  init_deleterepresentative();
56925
56994
  init_deleteterminalapplication();
@@ -64282,6 +64351,42 @@ async function readableStreamToArrayBuffer(readable) {
64282
64351
  }
64283
64352
  return concatenatedChunks.buffer;
64284
64353
  }
64354
+ function getContentTypeFromFileName(fileName) {
64355
+ if (!fileName)
64356
+ return null;
64357
+ const ext = fileName.toLowerCase().split(".").pop();
64358
+ if (!ext)
64359
+ return null;
64360
+ const mimeTypes = {
64361
+ json: "application/json",
64362
+ xml: "application/xml",
64363
+ html: "text/html",
64364
+ htm: "text/html",
64365
+ txt: "text/plain",
64366
+ csv: "text/csv",
64367
+ pdf: "application/pdf",
64368
+ png: "image/png",
64369
+ jpg: "image/jpeg",
64370
+ jpeg: "image/jpeg",
64371
+ gif: "image/gif",
64372
+ svg: "image/svg+xml",
64373
+ js: "application/javascript",
64374
+ css: "text/css",
64375
+ zip: "application/zip",
64376
+ tar: "application/x-tar",
64377
+ gz: "application/gzip",
64378
+ mp4: "video/mp4",
64379
+ mp3: "audio/mpeg",
64380
+ wav: "audio/wav",
64381
+ webp: "image/webp",
64382
+ ico: "image/x-icon",
64383
+ woff: "font/woff",
64384
+ woff2: "font/woff2",
64385
+ ttf: "font/ttf",
64386
+ otf: "font/otf"
64387
+ };
64388
+ return mimeTypes[ext] || null;
64389
+ }
64285
64390
 
64286
64391
  // src/types/streams.ts
64287
64392
  function isReadableStream(val) {
@@ -64308,11 +64413,13 @@ async function $do60(client, request, options) {
64308
64413
  appendForm(body, "file", payload.CreateEvidenceFileMultiPart.file);
64309
64414
  } else if (isReadableStream(payload.CreateEvidenceFileMultiPart.file.content)) {
64310
64415
  const buffer = await readableStreamToArrayBuffer(payload.CreateEvidenceFileMultiPart.file.content);
64311
- const blob = new Blob([buffer], { type: "application/octet-stream" });
64312
- appendForm(body, "file", blob);
64416
+ const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
64417
+ const blob = new Blob([buffer], { type: contentType2 });
64418
+ appendForm(body, "file", blob, payload.CreateEvidenceFileMultiPart.file.fileName);
64313
64419
  } else {
64420
+ const contentType2 = getContentTypeFromFileName(payload.CreateEvidenceFileMultiPart.file.fileName) || "application/octet-stream";
64314
64421
  appendForm(body, "file", new Blob([payload.CreateEvidenceFileMultiPart.file.content], {
64315
- type: "application/octet-stream"
64422
+ type: contentType2
64316
64423
  }), payload.CreateEvidenceFileMultiPart.file.fileName);
64317
64424
  }
64318
64425
  const pathParams = {
@@ -66068,11 +66175,13 @@ async function $do75(client, request, options) {
66068
66175
  appendForm(body, "file", payload.FileUploadRequestMultiPart.file);
66069
66176
  } else if (isReadableStream(payload.FileUploadRequestMultiPart.file.content)) {
66070
66177
  const buffer = await readableStreamToArrayBuffer(payload.FileUploadRequestMultiPart.file.content);
66071
- const blob = new Blob([buffer], { type: "application/octet-stream" });
66072
- appendForm(body, "file", blob);
66178
+ const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
66179
+ const blob = new Blob([buffer], { type: contentType2 });
66180
+ appendForm(body, "file", blob, payload.FileUploadRequestMultiPart.file.fileName);
66073
66181
  } else {
66182
+ const contentType2 = getContentTypeFromFileName(payload.FileUploadRequestMultiPart.file.fileName) || "application/octet-stream";
66074
66183
  appendForm(body, "file", new Blob([payload.FileUploadRequestMultiPart.file.content], {
66075
- type: "application/octet-stream"
66184
+ type: contentType2
66076
66185
  }), payload.FileUploadRequestMultiPart.file.fileName);
66077
66186
  }
66078
66187
  appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
@@ -71798,7 +71907,7 @@ supply in the request.
71798
71907
  Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
71799
71908
 
71800
71909
  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.`,
71910
+ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
71802
71911
  args: args123,
71803
71912
  tool: async (client, args124, ctx) => {
71804
71913
  const [result, apiCall] = await transfersGenerateOptions(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -71814,11 +71923,130 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71814
71923
  };
71815
71924
  });
71816
71925
 
71817
- // src/funcs/transfersGet.ts
71818
- function transfersGet(client, request, options) {
71926
+ // src/funcs/transfersGenerateOptionsForAccount.ts
71927
+ function transfersGenerateOptionsForAccount(client, request, options) {
71819
71928
  return new APIPromise($do124(client, request, options));
71820
71929
  }
71821
71930
  async function $do124(client, request, options) {
71931
+ const parsed = safeParse(request, (value) => CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
71932
+ if (!parsed.ok) {
71933
+ return [parsed, { status: "invalid" }];
71934
+ }
71935
+ const payload = parsed.value;
71936
+ const body = encodeJSON("body", payload.CreateTransferOptions, {
71937
+ explode: true
71938
+ });
71939
+ const pathParams = {
71940
+ accountID: encodeSimple("accountID", payload.accountID, {
71941
+ explode: false,
71942
+ charEncoding: "percent"
71943
+ })
71944
+ };
71945
+ const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
71946
+ const headers = new Headers(compactMap({
71947
+ "Content-Type": "application/json",
71948
+ Accept: "application/json",
71949
+ "x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
71950
+ }));
71951
+ const securityInput = await extractSecurity(client._options.security);
71952
+ const requestSecurity = resolveGlobalSecurity(securityInput);
71953
+ const context = {
71954
+ options: client._options,
71955
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
71956
+ operationID: "createTransferOptionsForAccount",
71957
+ oAuth2Scopes: [],
71958
+ resolvedSecurity: requestSecurity,
71959
+ securitySource: client._options.security,
71960
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
71961
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
71962
+ };
71963
+ const requestRes = client._createRequest(context, {
71964
+ security: requestSecurity,
71965
+ method: "POST",
71966
+ baseURL: options?.serverURL,
71967
+ path,
71968
+ headers,
71969
+ body,
71970
+ userAgent: client._options.userAgent,
71971
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71972
+ }, options);
71973
+ if (!requestRes.ok) {
71974
+ return [requestRes, { status: "invalid" }];
71975
+ }
71976
+ const req = requestRes.value;
71977
+ const doResult = await client._do(req, {
71978
+ context,
71979
+ errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
71980
+ retryConfig: context.retryConfig,
71981
+ retryCodes: context.retryCodes
71982
+ });
71983
+ if (!doResult.ok) {
71984
+ return [doResult, { status: "request-error", request: req }];
71985
+ }
71986
+ const response = doResult.value;
71987
+ const responseFields = {
71988
+ HttpMeta: { Response: response, Request: req }
71989
+ };
71990
+ const [result] = await match(json(200, CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, GenericError$inboundSchema, { hdrs: true }), jsonErr(422, TransferOptionsValidationError$inboundSchema, {
71991
+ hdrs: true
71992
+ }), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71993
+ if (!result.ok) {
71994
+ return [result, { status: "complete", request: req, response }];
71995
+ }
71996
+ return [result, { status: "complete", request: req, response }];
71997
+ }
71998
+ var init_transfersGenerateOptionsForAccount = __esm(() => {
71999
+ init_encodings();
72000
+ init_matchers();
72001
+ init_primitives();
72002
+ init_schemas();
72003
+ init_security();
72004
+ init_url();
72005
+ init_errors2();
72006
+ init_operations();
72007
+ init_async();
72008
+ });
72009
+
72010
+ // src/mcp-server/tools/transfersGenerateOptionsForAccount.ts
72011
+ var args124, tool$transfersGenerateOptionsForAccount;
72012
+ var init_transfersGenerateOptionsForAccount2 = __esm(() => {
72013
+ init_transfersGenerateOptionsForAccount();
72014
+ init_operations();
72015
+ init_tools();
72016
+ args124 = {
72017
+ request: CreateTransferOptionsForAccountRequest$inboundSchema
72018
+ };
72019
+ tool$transfersGenerateOptionsForAccount = {
72020
+ name: "transfers-generate-options-for-account",
72021
+ description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
72022
+ supply in the request body.
72023
+
72024
+ The accountID in the route should the partner's accountID.
72025
+
72026
+ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
72027
+
72028
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72029
+ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72030
+ args: args124,
72031
+ tool: async (client, args125, ctx) => {
72032
+ const [result, apiCall] = await transfersGenerateOptionsForAccount(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72033
+ if (!result.ok) {
72034
+ return {
72035
+ content: [{ type: "text", text: result.error.message }],
72036
+ isError: true
72037
+ };
72038
+ }
72039
+ const value = result.value.result;
72040
+ return formatResult(value, apiCall);
72041
+ }
72042
+ };
72043
+ });
72044
+
72045
+ // src/funcs/transfersGet.ts
72046
+ function transfersGet(client, request, options) {
72047
+ return new APIPromise($do125(client, request, options));
72048
+ }
72049
+ async function $do125(client, request, options) {
71822
72050
  const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
71823
72051
  if (!parsed.ok) {
71824
72052
  return [parsed, { status: "invalid" }];
@@ -71900,12 +72128,12 @@ var init_transfersGet = __esm(() => {
71900
72128
  });
71901
72129
 
71902
72130
  // src/mcp-server/tools/transfersGet.ts
71903
- var args124, tool$transfersGet;
72131
+ var args125, tool$transfersGet;
71904
72132
  var init_transfersGet2 = __esm(() => {
71905
72133
  init_transfersGet();
71906
72134
  init_operations();
71907
72135
  init_tools();
71908
- args124 = {
72136
+ args125 = {
71909
72137
  request: GetTransferRequest$inboundSchema
71910
72138
  };
71911
72139
  tool$transfersGet = {
@@ -71917,9 +72145,9 @@ to learn more.
71917
72145
 
71918
72146
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71919
72147
  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();
72148
+ args: args125,
72149
+ tool: async (client, args126, ctx) => {
72150
+ const [result, apiCall] = await transfersGet(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
71923
72151
  if (!result.ok) {
71924
72152
  return {
71925
72153
  content: [{ type: "text", text: result.error.message }],
@@ -71934,9 +72162,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
71934
72162
 
71935
72163
  // src/funcs/transfersGetCancellation.ts
71936
72164
  function transfersGetCancellation(client, request, options) {
71937
- return new APIPromise($do125(client, request, options));
72165
+ return new APIPromise($do126(client, request, options));
71938
72166
  }
71939
- async function $do125(client, request, options) {
72167
+ async function $do126(client, request, options) {
71940
72168
  const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
71941
72169
  if (!parsed.ok) {
71942
72170
  return [parsed, { status: "invalid" }];
@@ -72022,12 +72250,12 @@ var init_transfersGetCancellation = __esm(() => {
72022
72250
  });
72023
72251
 
72024
72252
  // src/mcp-server/tools/transfersGetCancellation.ts
72025
- var args125, tool$transfersGetCancellation;
72253
+ var args126, tool$transfersGetCancellation;
72026
72254
  var init_transfersGetCancellation2 = __esm(() => {
72027
72255
  init_transfersGetCancellation();
72028
72256
  init_operations();
72029
72257
  init_tools();
72030
- args125 = {
72258
+ args126 = {
72031
72259
  request: GetCancellationRequest$inboundSchema
72032
72260
  };
72033
72261
  tool$transfersGetCancellation = {
@@ -72036,9 +72264,9 @@ var init_transfersGetCancellation2 = __esm(() => {
72036
72264
 
72037
72265
  To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
72038
72266
  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();
72267
+ args: args126,
72268
+ tool: async (client, args127, ctx) => {
72269
+ const [result, apiCall] = await transfersGetCancellation(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72042
72270
  if (!result.ok) {
72043
72271
  return {
72044
72272
  content: [{ type: "text", text: result.error.message }],
@@ -72053,9 +72281,9 @@ var init_transfersGetCancellation2 = __esm(() => {
72053
72281
 
72054
72282
  // src/funcs/transfersGetRefund.ts
72055
72283
  function transfersGetRefund(client, request, options) {
72056
- return new APIPromise($do126(client, request, options));
72284
+ return new APIPromise($do127(client, request, options));
72057
72285
  }
72058
- async function $do126(client, request, options) {
72286
+ async function $do127(client, request, options) {
72059
72287
  const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
72060
72288
  if (!parsed.ok) {
72061
72289
  return [parsed, { status: "invalid" }];
@@ -72141,12 +72369,12 @@ var init_transfersGetRefund = __esm(() => {
72141
72369
  });
72142
72370
 
72143
72371
  // src/mcp-server/tools/transfersGetRefund.ts
72144
- var args126, tool$transfersGetRefund;
72372
+ var args127, tool$transfersGetRefund;
72145
72373
  var init_transfersGetRefund2 = __esm(() => {
72146
72374
  init_transfersGetRefund();
72147
72375
  init_operations();
72148
72376
  init_tools();
72149
- args126 = {
72377
+ args127 = {
72150
72378
  request: GetRefundRequest$inboundSchema
72151
72379
  };
72152
72380
  tool$transfersGetRefund = {
@@ -72155,9 +72383,9 @@ var init_transfersGetRefund2 = __esm(() => {
72155
72383
 
72156
72384
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72157
72385
  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();
72386
+ args: args127,
72387
+ tool: async (client, args128, ctx) => {
72388
+ const [result, apiCall] = await transfersGetRefund(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72161
72389
  if (!result.ok) {
72162
72390
  return {
72163
72391
  content: [{ type: "text", text: result.error.message }],
@@ -72172,9 +72400,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72172
72400
 
72173
72401
  // src/funcs/transfersInitiateRefund.ts
72174
72402
  function transfersInitiateRefund(client, request, options) {
72175
- return new APIPromise($do127(client, request, options));
72403
+ return new APIPromise($do128(client, request, options));
72176
72404
  }
72177
- async function $do127(client, request, options) {
72405
+ async function $do128(client, request, options) {
72178
72406
  const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
72179
72407
  if (!parsed.ok) {
72180
72408
  return [parsed, { status: "invalid" }];
@@ -72266,12 +72494,12 @@ var init_transfersInitiateRefund = __esm(() => {
72266
72494
  });
72267
72495
 
72268
72496
  // src/mcp-server/tools/transfersInitiateRefund.ts
72269
- var args127, tool$transfersInitiateRefund;
72497
+ var args128, tool$transfersInitiateRefund;
72270
72498
  var init_transfersInitiateRefund2 = __esm(() => {
72271
72499
  init_transfersInitiateRefund();
72272
72500
  init_operations();
72273
72501
  init_tools();
72274
- args127 = {
72502
+ args128 = {
72275
72503
  request: InitiateRefundRequest$inboundSchema
72276
72504
  };
72277
72505
  tool$transfersInitiateRefund = {
@@ -72283,9 +72511,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
72283
72511
 
72284
72512
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72285
72513
  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();
72514
+ args: args128,
72515
+ tool: async (client, args129, ctx) => {
72516
+ const [result, apiCall] = await transfersInitiateRefund(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72289
72517
  if (!result.ok) {
72290
72518
  return {
72291
72519
  content: [{ type: "text", text: result.error.message }],
@@ -72300,9 +72528,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72300
72528
 
72301
72529
  // src/funcs/transfersList.ts
72302
72530
  function transfersList(client, request, options) {
72303
- return new APIPromise($do128(client, request, options));
72531
+ return new APIPromise($do129(client, request, options));
72304
72532
  }
72305
- async function $do128(client, request, options) {
72533
+ async function $do129(client, request, options) {
72306
72534
  const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
72307
72535
  if (!parsed.ok) {
72308
72536
  return [parsed, { status: "invalid" }];
@@ -72394,12 +72622,12 @@ var init_transfersList = __esm(() => {
72394
72622
  });
72395
72623
 
72396
72624
  // src/mcp-server/tools/transfersList.ts
72397
- var args128, tool$transfersList;
72625
+ var args129, tool$transfersList;
72398
72626
  var init_transfersList2 = __esm(() => {
72399
72627
  init_transfersList();
72400
72628
  init_operations();
72401
72629
  init_tools();
72402
- args128 = {
72630
+ args129 = {
72403
72631
  request: ListTransfersRequest$inboundSchema
72404
72632
  };
72405
72633
  tool$transfersList = {
@@ -72415,9 +72643,9 @@ period of time. You can run multiple requests in smaller time window increments
72415
72643
 
72416
72644
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72417
72645
  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();
72646
+ args: args129,
72647
+ tool: async (client, args130, ctx) => {
72648
+ const [result, apiCall] = await transfersList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72421
72649
  if (!result.ok) {
72422
72650
  return {
72423
72651
  content: [{ type: "text", text: result.error.message }],
@@ -72432,9 +72660,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72432
72660
 
72433
72661
  // src/funcs/transfersListRefunds.ts
72434
72662
  function transfersListRefunds(client, request, options) {
72435
- return new APIPromise($do129(client, request, options));
72663
+ return new APIPromise($do130(client, request, options));
72436
72664
  }
72437
- async function $do129(client, request, options) {
72665
+ async function $do130(client, request, options) {
72438
72666
  const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
72439
72667
  if (!parsed.ok) {
72440
72668
  return [parsed, { status: "invalid" }];
@@ -72516,12 +72744,12 @@ var init_transfersListRefunds = __esm(() => {
72516
72744
  });
72517
72745
 
72518
72746
  // src/mcp-server/tools/transfersListRefunds.ts
72519
- var args129, tool$transfersListRefunds;
72747
+ var args130, tool$transfersListRefunds;
72520
72748
  var init_transfersListRefunds2 = __esm(() => {
72521
72749
  init_transfersListRefunds();
72522
72750
  init_operations();
72523
72751
  init_tools();
72524
- args129 = {
72752
+ args130 = {
72525
72753
  request: ListRefundsRequest$inboundSchema
72526
72754
  };
72527
72755
  tool$transfersListRefunds = {
@@ -72530,9 +72758,9 @@ var init_transfersListRefunds2 = __esm(() => {
72530
72758
 
72531
72759
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72532
72760
  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();
72761
+ args: args130,
72762
+ tool: async (client, args131, ctx) => {
72763
+ const [result, apiCall] = await transfersListRefunds(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72536
72764
  if (!result.ok) {
72537
72765
  return {
72538
72766
  content: [{ type: "text", text: result.error.message }],
@@ -72547,9 +72775,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
72547
72775
 
72548
72776
  // src/funcs/transfersUpdate.ts
72549
72777
  function transfersUpdate(client, request, options) {
72550
- return new APIPromise($do130(client, request, options));
72778
+ return new APIPromise($do131(client, request, options));
72551
72779
  }
72552
- async function $do130(client, request, options) {
72780
+ async function $do131(client, request, options) {
72553
72781
  const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
72554
72782
  if (!parsed.ok) {
72555
72783
  return [parsed, { status: "invalid" }];
@@ -72632,12 +72860,12 @@ var init_transfersUpdate = __esm(() => {
72632
72860
  });
72633
72861
 
72634
72862
  // src/mcp-server/tools/transfersUpdate.ts
72635
- var args130, tool$transfersUpdate;
72863
+ var args131, tool$transfersUpdate;
72636
72864
  var init_transfersUpdate2 = __esm(() => {
72637
72865
  init_transfersUpdate();
72638
72866
  init_operations();
72639
72867
  init_tools();
72640
- args130 = {
72868
+ args131 = {
72641
72869
  request: UpdateTransferRequest$inboundSchema
72642
72870
  };
72643
72871
  tool$transfersUpdate = {
@@ -72648,9 +72876,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
72648
72876
 
72649
72877
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72650
72878
  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();
72879
+ args: args131,
72880
+ tool: async (client, args132, ctx) => {
72881
+ const [result, apiCall] = await transfersUpdate(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72654
72882
  if (!result.ok) {
72655
72883
  return {
72656
72884
  content: [{ type: "text", text: result.error.message }],
@@ -72665,9 +72893,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
72665
72893
 
72666
72894
  // src/funcs/underwritingGet.ts
72667
72895
  function underwritingGet(client, request, options) {
72668
- return new APIPromise($do131(client, request, options));
72896
+ return new APIPromise($do132(client, request, options));
72669
72897
  }
72670
- async function $do131(client, request, options) {
72898
+ async function $do132(client, request, options) {
72671
72899
  const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
72672
72900
  if (!parsed.ok) {
72673
72901
  return [parsed, { status: "invalid" }];
@@ -72745,12 +72973,12 @@ var init_underwritingGet = __esm(() => {
72745
72973
  });
72746
72974
 
72747
72975
  // src/mcp-server/tools/underwritingGet.ts
72748
- var args131, tool$underwritingGet;
72976
+ var args132, tool$underwritingGet;
72749
72977
  var init_underwritingGet2 = __esm(() => {
72750
72978
  init_underwritingGet();
72751
72979
  init_operations();
72752
72980
  init_tools();
72753
- args131 = {
72981
+ args132 = {
72754
72982
  request: GetUnderwritingRequest$inboundSchema
72755
72983
  };
72756
72984
  tool$underwritingGet = {
@@ -72761,9 +72989,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
72761
72989
 
72762
72990
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72763
72991
  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();
72992
+ args: args132,
72993
+ tool: async (client, args133, ctx) => {
72994
+ const [result, apiCall] = await underwritingGet(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72767
72995
  if (!result.ok) {
72768
72996
  return {
72769
72997
  content: [{ type: "text", text: result.error.message }],
@@ -72778,9 +73006,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
72778
73006
 
72779
73007
  // src/funcs/underwritingUpsert.ts
72780
73008
  function underwritingUpsert(client, request, options) {
72781
- return new APIPromise($do132(client, request, options));
73009
+ return new APIPromise($do133(client, request, options));
72782
73010
  }
72783
- async function $do132(client, request, options) {
73011
+ async function $do133(client, request, options) {
72784
73012
  const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
72785
73013
  if (!parsed.ok) {
72786
73014
  return [parsed, { status: "invalid" }];
@@ -72876,12 +73104,12 @@ var init_underwritingUpsert = __esm(() => {
72876
73104
  });
72877
73105
 
72878
73106
  // src/mcp-server/tools/underwritingUpsert.ts
72879
- var args132, tool$underwritingUpsert;
73107
+ var args133, tool$underwritingUpsert;
72880
73108
  var init_underwritingUpsert2 = __esm(() => {
72881
73109
  init_underwritingUpsert();
72882
73110
  init_operations();
72883
73111
  init_tools();
72884
- args132 = {
73112
+ args133 = {
72885
73113
  request: UpsertUnderwritingRequest$inboundSchema
72886
73114
  };
72887
73115
  tool$underwritingUpsert = {
@@ -72892,9 +73120,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
72892
73120
 
72893
73121
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
72894
73122
  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();
73123
+ args: args133,
73124
+ tool: async (client, args134, ctx) => {
73125
+ const [result, apiCall] = await underwritingUpsert(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
72898
73126
  if (!result.ok) {
72899
73127
  return {
72900
73128
  content: [{ type: "text", text: result.error.message }],
@@ -72909,9 +73137,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
72909
73137
 
72910
73138
  // src/funcs/walletsGet.ts
72911
73139
  function walletsGet(client, request, options) {
72912
- return new APIPromise($do133(client, request, options));
73140
+ return new APIPromise($do134(client, request, options));
72913
73141
  }
72914
- async function $do133(client, request, options) {
73142
+ async function $do134(client, request, options) {
72915
73143
  const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
72916
73144
  if (!parsed.ok) {
72917
73145
  return [parsed, { status: "invalid" }];
@@ -72993,12 +73221,12 @@ var init_walletsGet = __esm(() => {
72993
73221
  });
72994
73222
 
72995
73223
  // src/mcp-server/tools/walletsGet.ts
72996
- var args133, tool$walletsGet;
73224
+ var args134, tool$walletsGet;
72997
73225
  var init_walletsGet2 = __esm(() => {
72998
73226
  init_walletsGet();
72999
73227
  init_operations();
73000
73228
  init_tools();
73001
- args133 = {
73229
+ args134 = {
73002
73230
  request: GetWalletRequest$inboundSchema
73003
73231
  };
73004
73232
  tool$walletsGet = {
@@ -73009,9 +73237,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
73009
73237
 
73010
73238
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73011
73239
  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();
73240
+ args: args134,
73241
+ tool: async (client, args135, ctx) => {
73242
+ const [result, apiCall] = await walletsGet(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73015
73243
  if (!result.ok) {
73016
73244
  return {
73017
73245
  content: [{ type: "text", text: result.error.message }],
@@ -73026,9 +73254,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73026
73254
 
73027
73255
  // src/funcs/walletsList.ts
73028
73256
  function walletsList(client, request, options) {
73029
- return new APIPromise($do134(client, request, options));
73257
+ return new APIPromise($do135(client, request, options));
73030
73258
  }
73031
- async function $do134(client, request, options) {
73259
+ async function $do135(client, request, options) {
73032
73260
  const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
73033
73261
  if (!parsed.ok) {
73034
73262
  return [parsed, { status: "invalid" }];
@@ -73106,12 +73334,12 @@ var init_walletsList = __esm(() => {
73106
73334
  });
73107
73335
 
73108
73336
  // src/mcp-server/tools/walletsList.ts
73109
- var args134, tool$walletsList;
73337
+ var args135, tool$walletsList;
73110
73338
  var init_walletsList2 = __esm(() => {
73111
73339
  init_walletsList();
73112
73340
  init_operations();
73113
73341
  init_tools();
73114
- args134 = {
73342
+ args135 = {
73115
73343
  request: ListWalletsRequest$inboundSchema
73116
73344
  };
73117
73345
  tool$walletsList = {
@@ -73122,9 +73350,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
73122
73350
 
73123
73351
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73124
73352
  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();
73353
+ args: args135,
73354
+ tool: async (client, args136, ctx) => {
73355
+ const [result, apiCall] = await walletsList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73128
73356
  if (!result.ok) {
73129
73357
  return {
73130
73358
  content: [{ type: "text", text: result.error.message }],
@@ -73139,9 +73367,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73139
73367
 
73140
73368
  // src/funcs/walletTransactionsGet.ts
73141
73369
  function walletTransactionsGet(client, request, options) {
73142
- return new APIPromise($do135(client, request, options));
73370
+ return new APIPromise($do136(client, request, options));
73143
73371
  }
73144
- async function $do135(client, request, options) {
73372
+ async function $do136(client, request, options) {
73145
73373
  const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
73146
73374
  if (!parsed.ok) {
73147
73375
  return [parsed, { status: "invalid" }];
@@ -73227,12 +73455,12 @@ var init_walletTransactionsGet = __esm(() => {
73227
73455
  });
73228
73456
 
73229
73457
  // src/mcp-server/tools/walletTransactionsGet.ts
73230
- var args135, tool$walletTransactionsGet;
73458
+ var args136, tool$walletTransactionsGet;
73231
73459
  var init_walletTransactionsGet2 = __esm(() => {
73232
73460
  init_walletTransactionsGet();
73233
73461
  init_operations();
73234
73462
  init_tools();
73235
- args135 = {
73463
+ args136 = {
73236
73464
  request: GetWalletTransactionRequest$inboundSchema
73237
73465
  };
73238
73466
  tool$walletTransactionsGet = {
@@ -73243,9 +73471,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
73243
73471
 
73244
73472
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73245
73473
  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();
73474
+ args: args136,
73475
+ tool: async (client, args137, ctx) => {
73476
+ const [result, apiCall] = await walletTransactionsGet(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73249
73477
  if (!result.ok) {
73250
73478
  return {
73251
73479
  content: [{ type: "text", text: result.error.message }],
@@ -73260,9 +73488,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73260
73488
 
73261
73489
  // src/funcs/walletTransactionsList.ts
73262
73490
  function walletTransactionsList(client, request, options) {
73263
- return new APIPromise($do136(client, request, options));
73491
+ return new APIPromise($do137(client, request, options));
73264
73492
  }
73265
- async function $do136(client, request, options) {
73493
+ async function $do137(client, request, options) {
73266
73494
  const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
73267
73495
  if (!parsed.ok) {
73268
73496
  return [parsed, { status: "invalid" }];
@@ -73359,12 +73587,12 @@ var init_walletTransactionsList = __esm(() => {
73359
73587
  });
73360
73588
 
73361
73589
  // src/mcp-server/tools/walletTransactionsList.ts
73362
- var args136, tool$walletTransactionsList;
73590
+ var args137, tool$walletTransactionsList;
73363
73591
  var init_walletTransactionsList2 = __esm(() => {
73364
73592
  init_walletTransactionsList();
73365
73593
  init_operations();
73366
73594
  init_tools();
73367
- args136 = {
73595
+ args137 = {
73368
73596
  request: ListWalletTransactionsRequest$inboundSchema
73369
73597
  };
73370
73598
  tool$walletTransactionsList = {
@@ -73375,9 +73603,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
73375
73603
 
73376
73604
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
73377
73605
  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();
73606
+ args: args137,
73607
+ tool: async (client, args138, ctx) => {
73608
+ const [result, apiCall] = await walletTransactionsList(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
73381
73609
  if (!result.ok) {
73382
73610
  return {
73383
73611
  content: [{ type: "text", text: result.error.message }],
@@ -73394,7 +73622,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
73394
73622
  function createMCPServer(deps) {
73395
73623
  const server = new McpServer({
73396
73624
  name: "Moov",
73397
- version: "0.12.4"
73625
+ version: "0.12.5"
73398
73626
  });
73399
73627
  const client = new MoovCore({
73400
73628
  security: deps.security,
@@ -73497,6 +73725,7 @@ function createMCPServer(deps) {
73497
73725
  tool(tool$accountTerminalApplicationsList);
73498
73726
  tool(tool$accountTerminalApplicationsGet);
73499
73727
  tool(tool$accountTerminalApplicationsGetConfiguration);
73728
+ tool(tool$transfersGenerateOptionsForAccount);
73500
73729
  tool(tool$transfersCreate);
73501
73730
  tool(tool$transfersList);
73502
73731
  tool(tool$transfersGet);
@@ -73675,6 +73904,7 @@ var init_server2 = __esm(() => {
73675
73904
  init_transfersCreateCancellation2();
73676
73905
  init_transfersCreateReversal2();
73677
73906
  init_transfersGenerateOptions2();
73907
+ init_transfersGenerateOptionsForAccount2();
73678
73908
  init_transfersGet2();
73679
73909
  init_transfersGetCancellation2();
73680
73910
  init_transfersGetRefund2();
@@ -74906,7 +75136,7 @@ var routes = rn({
74906
75136
  var app = Ve(routes, {
74907
75137
  name: "mcp",
74908
75138
  versionInfo: {
74909
- currentVersion: "0.12.4"
75139
+ currentVersion: "0.12.5"
74910
75140
  }
74911
75141
  });
74912
75142
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -74914,5 +75144,5 @@ export {
74914
75144
  app
74915
75145
  };
74916
75146
 
74917
- //# debugId=D9232652FAAB478264756E2164756E21
75147
+ //# debugId=8F52E6348C6AAF2E64756E2164756E21
74918
75148
  //# sourceMappingURL=mcp-server.js.map