@moovio/sdk 25.2.3 → 25.2.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 (51) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/bin/mcp-server.js +74 -36
  3. package/bin/mcp-server.js.map +14 -12
  4. package/funcs/filesUpload.d.ts.map +1 -1
  5. package/funcs/filesUpload.js +3 -1
  6. package/funcs/filesUpload.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/components/fileuploadmetadata.d.ts +28 -0
  13. package/models/components/fileuploadmetadata.d.ts.map +1 -0
  14. package/models/components/fileuploadmetadata.js +69 -0
  15. package/models/components/fileuploadmetadata.js.map +1 -0
  16. package/models/components/fileuploadrequestmultipart.d.ts +5 -8
  17. package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
  18. package/models/components/fileuploadrequestmultipart.js +3 -2
  19. package/models/components/fileuploadrequestmultipart.js.map +1 -1
  20. package/models/components/index.d.ts +2 -0
  21. package/models/components/index.d.ts.map +1 -1
  22. package/models/components/index.js +2 -0
  23. package/models/components/index.js.map +1 -1
  24. package/models/components/rtptransactiondetails.d.ts +45 -0
  25. package/models/components/rtptransactiondetails.d.ts.map +1 -0
  26. package/models/components/rtptransactiondetails.js +75 -0
  27. package/models/components/rtptransactiondetails.js.map +1 -0
  28. package/models/components/transferdestination.d.ts +5 -43
  29. package/models/components/transferdestination.d.ts.map +1 -1
  30. package/models/components/transferdestination.js +4 -36
  31. package/models/components/transferdestination.js.map +1 -1
  32. package/models/components/webhookdata.d.ts +2 -2
  33. package/models/components/webhookdata.d.ts.map +1 -1
  34. package/models/components/webhookdata.js +2 -2
  35. package/models/components/webhookdata.js.map +1 -1
  36. package/models/components/webhookdatabankaccountcreated.d.ts +3 -0
  37. package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -1
  38. package/models/components/webhookdatabankaccountcreated.js +3 -0
  39. package/models/components/webhookdatabankaccountcreated.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/funcs/filesUpload.ts +13 -2
  42. package/src/lib/config.ts +3 -3
  43. package/src/mcp-server/mcp-server.ts +1 -1
  44. package/src/mcp-server/server.ts +1 -1
  45. package/src/models/components/fileuploadmetadata.ts +73 -0
  46. package/src/models/components/fileuploadrequestmultipart.ts +12 -10
  47. package/src/models/components/index.ts +2 -0
  48. package/src/models/components/rtptransactiondetails.ts +104 -0
  49. package/src/models/components/transferdestination.ts +11 -95
  50. package/src/models/components/webhookdata.ts +4 -4
  51. package/src/models/components/webhookdatabankaccountcreated.ts +9 -0
package/FUNCTIONS.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Standalone Functions
2
2
 
3
3
  > [!NOTE]
4
- > This section is useful if you are using a bundler and targetting browsers and
4
+ > This section is useful if you are using a bundler and targeting browsers and
5
5
  > runtimes where the size of an application affects performance and load times.
6
6
 
7
7
  Every method in this SDK is also available as a standalone function. This
8
- alternative API is suitable when targetting the browser or serverless runtimes
8
+ alternative API is suitable when targeting the browser or serverless runtimes
9
9
  and using a bundler to build your application since all unused functionality
10
10
  will be tree-shaken away. This includes code for unused methods, Zod schemas,
11
11
  encoding helpers and response handlers. The result is dramatically smaller
package/bin/mcp-server.js CHANGED
@@ -52879,9 +52879,9 @@ var init_config = __esm(() => {
52879
52879
  SDK_METADATA = {
52880
52880
  language: "typescript",
52881
52881
  openapiDocVersion: "v2025.01.00",
52882
- sdkVersion: "25.2.3",
52883
- genVersion: "2.881.4",
52884
- userAgent: "speakeasy-sdk/typescript 25.2.3 2.881.4 v2025.01.00 @moovio/sdk"
52882
+ sdkVersion: "25.2.5",
52883
+ genVersion: "2.882.0",
52884
+ userAgent: "speakeasy-sdk/typescript 25.2.5 2.882.0 v2025.01.00 @moovio/sdk"
52885
52885
  };
52886
52886
  });
52887
52887
 
@@ -60839,6 +60839,32 @@ var init_rtptransactionstatus = __esm(() => {
60839
60839
  RTPTransactionStatus$outboundSchema = RTPTransactionStatus$inboundSchema;
60840
60840
  });
60841
60841
 
60842
+ // src/models/components/rtptransactiondetails.ts
60843
+ var RTPTransactionDetails$inboundSchema, RTPTransactionDetails$outboundSchema;
60844
+ var init_rtptransactiondetails = __esm(() => {
60845
+ init_esm();
60846
+ init_rtpfailurecode();
60847
+ init_rtptransactionstatus();
60848
+ RTPTransactionDetails$inboundSchema = objectType({
60849
+ status: RTPTransactionStatus$inboundSchema.optional(),
60850
+ networkResponseCode: stringType().optional(),
60851
+ failureCode: RTPFailureCode$inboundSchema.optional(),
60852
+ initiatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60853
+ completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60854
+ failedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60855
+ acceptedWithoutPostingOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
60856
+ });
60857
+ RTPTransactionDetails$outboundSchema = objectType({
60858
+ status: RTPTransactionStatus$outboundSchema.optional(),
60859
+ networkResponseCode: stringType().optional(),
60860
+ failureCode: RTPFailureCode$outboundSchema.optional(),
60861
+ initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60862
+ completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60863
+ failedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60864
+ acceptedWithoutPostingOn: dateType().transform((v2) => v2.toISOString()).optional()
60865
+ });
60866
+ });
60867
+
60842
60868
  // src/models/components/transferaccount.ts
60843
60869
  var TransferAccount$inboundSchema, TransferAccount$outboundSchema;
60844
60870
  var init_transferaccount = __esm(() => {
@@ -60905,38 +60931,19 @@ var init_transferpaymentmethodtype = __esm(() => {
60905
60931
  });
60906
60932
 
60907
60933
  // src/models/components/transferdestination.ts
60908
- var RtpDetails$inboundSchema, RtpDetails$outboundSchema, TransferDestination$inboundSchema, TransferDestination$outboundSchema;
60934
+ var TransferDestination$inboundSchema, TransferDestination$outboundSchema;
60909
60935
  var init_transferdestination = __esm(() => {
60910
60936
  init_esm();
60911
60937
  init_achtransactiondetails();
60912
60938
  init_applepayresponse();
60913
60939
  init_cardtransactiondetails();
60914
60940
  init_instantbanktransactiondetails();
60915
- init_rtpfailurecode();
60916
- init_rtptransactionstatus();
60941
+ init_rtptransactiondetails();
60917
60942
  init_transferaccount();
60918
60943
  init_transferpaymentmethodsbankaccount();
60919
60944
  init_transferpaymentmethodscard();
60920
60945
  init_transferpaymentmethodswallet();
60921
60946
  init_transferpaymentmethodtype();
60922
- RtpDetails$inboundSchema = objectType({
60923
- status: RTPTransactionStatus$inboundSchema.optional(),
60924
- networkResponseCode: stringType().optional(),
60925
- failureCode: RTPFailureCode$inboundSchema.optional(),
60926
- initiatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60927
- completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60928
- failedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
60929
- acceptedWithoutPostingOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
60930
- });
60931
- RtpDetails$outboundSchema = objectType({
60932
- status: RTPTransactionStatus$outboundSchema.optional(),
60933
- networkResponseCode: stringType().optional(),
60934
- failureCode: RTPFailureCode$outboundSchema.optional(),
60935
- initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60936
- completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60937
- failedOn: dateType().transform((v2) => v2.toISOString()).optional(),
60938
- acceptedWithoutPostingOn: dateType().transform((v2) => v2.toISOString()).optional()
60939
- });
60940
60947
  TransferDestination$inboundSchema = objectType({
60941
60948
  paymentMethodID: stringType(),
60942
60949
  paymentMethodType: TransferPaymentMethodType$inboundSchema,
@@ -60947,7 +60954,7 @@ var init_transferdestination = __esm(() => {
60947
60954
  achDetails: ACHTransactionDetails$inboundSchema.optional(),
60948
60955
  applePay: ApplePayResponse$inboundSchema.optional(),
60949
60956
  cardDetails: CardTransactionDetails$inboundSchema.optional(),
60950
- rtpDetails: lazyType(() => RtpDetails$inboundSchema).optional(),
60957
+ rtpDetails: RTPTransactionDetails$inboundSchema.optional(),
60951
60958
  instantBankDetails: InstantBankTransactionDetails$inboundSchema.optional()
60952
60959
  });
60953
60960
  TransferDestination$outboundSchema = objectType({
@@ -60960,7 +60967,7 @@ var init_transferdestination = __esm(() => {
60960
60967
  achDetails: ACHTransactionDetails$outboundSchema.optional(),
60961
60968
  applePay: ApplePayResponse$outboundSchema.optional(),
60962
60969
  cardDetails: CardTransactionDetails$outboundSchema.optional(),
60963
- rtpDetails: lazyType(() => RtpDetails$outboundSchema).optional(),
60970
+ rtpDetails: RTPTransactionDetails$outboundSchema.optional(),
60964
60971
  instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional()
60965
60972
  });
60966
60973
  });
@@ -62876,12 +62883,36 @@ var init_filedetails = __esm(() => {
62876
62883
  });
62877
62884
  });
62878
62885
 
62886
+ // src/models/components/fileuploadmetadata.ts
62887
+ var FileUploadMetadata$inboundSchema, FileUploadMetadata$outboundSchema;
62888
+ var init_fileuploadmetadata = __esm(() => {
62889
+ init_esm();
62890
+ init_primitives();
62891
+ FileUploadMetadata$inboundSchema = objectType({
62892
+ representative_id: stringType().optional(),
62893
+ comment: stringType().optional()
62894
+ }).transform((v2) => {
62895
+ return remap(v2, {
62896
+ representative_id: "representativeId"
62897
+ });
62898
+ });
62899
+ FileUploadMetadata$outboundSchema = objectType({
62900
+ representativeId: stringType().optional(),
62901
+ comment: stringType().optional()
62902
+ }).transform((v2) => {
62903
+ return remap(v2, {
62904
+ representativeId: "representative_id"
62905
+ });
62906
+ });
62907
+ });
62908
+
62879
62909
  // src/models/components/fileuploadrequestmultipart.ts
62880
62910
  var FileUploadRequestMultiPartFile$inboundSchema, FileUploadRequestMultiPartFile$outboundSchema, FileUploadRequestMultiPart$inboundSchema, FileUploadRequestMultiPart$outboundSchema;
62881
62911
  var init_fileuploadrequestmultipart = __esm(() => {
62882
62912
  init_esm();
62883
62913
  init_blobs();
62884
62914
  init_filepurpose();
62915
+ init_fileuploadmetadata();
62885
62916
  FileUploadRequestMultiPartFile$inboundSchema = objectType({
62886
62917
  fileName: stringType(),
62887
62918
  content: unionType([
@@ -62903,12 +62934,12 @@ var init_fileuploadrequestmultipart = __esm(() => {
62903
62934
  FileUploadRequestMultiPart$inboundSchema = objectType({
62904
62935
  file: lazyType(() => FileUploadRequestMultiPartFile$inboundSchema),
62905
62936
  filePurpose: FilePurpose$inboundSchema,
62906
- metadata: stringType().optional()
62937
+ metadata: FileUploadMetadata$inboundSchema.optional()
62907
62938
  });
62908
62939
  FileUploadRequestMultiPart$outboundSchema = objectType({
62909
62940
  file: lazyType(() => FileUploadRequestMultiPartFile$outboundSchema).or(blobLikeSchema),
62910
62941
  filePurpose: FilePurpose$outboundSchema,
62911
- metadata: stringType().optional()
62942
+ metadata: FileUploadMetadata$outboundSchema.optional()
62912
62943
  });
62913
62944
  });
62914
62945
 
@@ -66687,13 +66718,16 @@ var init_webhookdatabalanceupdated = __esm(() => {
66687
66718
  var WebhookDataBankAccountCreated$inboundSchema, WebhookDataBankAccountCreated$outboundSchema;
66688
66719
  var init_webhookdatabankaccountcreated = __esm(() => {
66689
66720
  init_esm();
66721
+ init_bankaccountstatus();
66690
66722
  WebhookDataBankAccountCreated$inboundSchema = objectType({
66691
66723
  bankAccountID: stringType(),
66692
- accountID: stringType()
66724
+ accountID: stringType(),
66725
+ status: BankAccountStatus$inboundSchema
66693
66726
  });
66694
66727
  WebhookDataBankAccountCreated$outboundSchema = objectType({
66695
66728
  bankAccountID: stringType(),
66696
- accountID: stringType()
66729
+ accountID: stringType(),
66730
+ status: BankAccountStatus$outboundSchema
66697
66731
  });
66698
66732
  });
66699
66733
 
@@ -67338,6 +67372,7 @@ var init_webhookdata = __esm(() => {
67338
67372
  WebhookDataBankAccountUpdated$inboundSchema,
67339
67373
  WebhookDataRefundUpdated$inboundSchema,
67340
67374
  WebhookDataWalletTransactionUpdated$inboundSchema,
67375
+ WebhookDataBankAccountCreated$inboundSchema,
67341
67376
  WebhookDataCancellationCreated$inboundSchema,
67342
67377
  WebhookDataCancellationUpdated$inboundSchema,
67343
67378
  WebhookDataCardAutoUpdated$inboundSchema,
@@ -67351,7 +67386,6 @@ var init_webhookdata = __esm(() => {
67351
67386
  WebhookDataTransferCreated$inboundSchema,
67352
67387
  WebhookDataWalletUpdated$inboundSchema,
67353
67388
  WebhookDataBalanceUpdated$inboundSchema,
67354
- WebhookDataBankAccountCreated$inboundSchema,
67355
67389
  WebhookDataBankAccountDeleted$inboundSchema,
67356
67390
  WebhookDataCapabilityRequested$inboundSchema,
67357
67391
  WebhookDataInvoiceCreated$inboundSchema,
@@ -67377,6 +67411,7 @@ var init_webhookdata = __esm(() => {
67377
67411
  WebhookDataBankAccountUpdated$outboundSchema,
67378
67412
  WebhookDataRefundUpdated$outboundSchema,
67379
67413
  WebhookDataWalletTransactionUpdated$outboundSchema,
67414
+ WebhookDataBankAccountCreated$outboundSchema,
67380
67415
  WebhookDataCancellationCreated$outboundSchema,
67381
67416
  WebhookDataCancellationUpdated$outboundSchema,
67382
67417
  WebhookDataCardAutoUpdated$outboundSchema,
@@ -67390,7 +67425,6 @@ var init_webhookdata = __esm(() => {
67390
67425
  WebhookDataTransferCreated$outboundSchema,
67391
67426
  WebhookDataWalletUpdated$outboundSchema,
67392
67427
  WebhookDataBalanceUpdated$outboundSchema,
67393
- WebhookDataBankAccountCreated$outboundSchema,
67394
67428
  WebhookDataBankAccountDeleted$outboundSchema,
67395
67429
  WebhookDataCapabilityRequested$outboundSchema,
67396
67430
  WebhookDataInvoiceCreated$outboundSchema,
@@ -67659,6 +67693,7 @@ var init_components = __esm(() => {
67659
67693
  init_filedetails();
67660
67694
  init_filepurpose();
67661
67695
  init_filestatus();
67696
+ init_fileuploadmetadata();
67662
67697
  init_fileuploadrequestmultipart();
67663
67698
  init_financialinstitutions();
67664
67699
  init_fulfillmentdetails();
@@ -67813,6 +67848,7 @@ var init_components = __esm(() => {
67813
67848
  init_rtpinstitution();
67814
67849
  init_rtprejectioncode();
67815
67850
  init_rtpservices();
67851
+ init_rtptransactiondetails();
67816
67852
  init_rtptransactionstatus();
67817
67853
  init_runtransfer();
67818
67854
  init_scheduledtransferimagemetadata();
@@ -85946,7 +85982,9 @@ async function $do79(client, request, options) {
85946
85982
  }
85947
85983
  appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
85948
85984
  if (payload.FileUploadRequestMultiPart.metadata !== undefined) {
85949
- appendForm(body, "metadata", payload.FileUploadRequestMultiPart.metadata);
85985
+ appendForm(body, "metadata", encodeJSON("metadata", payload.FileUploadRequestMultiPart.metadata, {
85986
+ explode: true
85987
+ }));
85950
85988
  }
85951
85989
  const pathParams = {
85952
85990
  accountID: encodeSimple("accountID", payload.accountID, {
@@ -96024,7 +96062,7 @@ var init_webhooksUpdate2 = __esm(() => {
96024
96062
  function createMCPServer(deps) {
96025
96063
  const server = new McpServer({
96026
96064
  name: "Moov",
96027
- version: "25.2.3"
96065
+ version: "25.2.5"
96028
96066
  });
96029
96067
  const client = new MoovCore({
96030
96068
  security: deps.security,
@@ -97569,7 +97607,7 @@ var routes = rn({
97569
97607
  var app = Ve(routes, {
97570
97608
  name: "mcp",
97571
97609
  versionInfo: {
97572
- currentVersion: "25.2.3"
97610
+ currentVersion: "25.2.5"
97573
97611
  }
97574
97612
  });
97575
97613
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -97577,5 +97615,5 @@ export {
97577
97615
  app
97578
97616
  };
97579
97617
 
97580
- //# debugId=A4C5C73F0C40694A64756E2164756E21
97618
+ //# debugId=AC504DC9AC97E13164756E2164756E21
97581
97619
  //# sourceMappingURL=mcp-server.js.map