@moovio/sdk 24.2.3 → 24.2.4

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 (42) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/bin/mcp-server.js +43 -13
  3. package/bin/mcp-server.js.map +12 -11
  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/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/models/components/fileuploadmetadata.d.ts +28 -0
  14. package/models/components/fileuploadmetadata.d.ts.map +1 -0
  15. package/models/components/fileuploadmetadata.js +69 -0
  16. package/models/components/fileuploadmetadata.js.map +1 -0
  17. package/models/components/fileuploadrequestmultipart.d.ts +5 -8
  18. package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
  19. package/models/components/fileuploadrequestmultipart.js +3 -2
  20. package/models/components/fileuploadrequestmultipart.js.map +1 -1
  21. package/models/components/index.d.ts +1 -0
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +1 -0
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/webhookdata.d.ts +2 -2
  26. package/models/components/webhookdata.d.ts.map +1 -1
  27. package/models/components/webhookdata.js +2 -2
  28. package/models/components/webhookdata.js.map +1 -1
  29. package/models/components/webhookdatabankaccountcreated.d.ts +3 -0
  30. package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -1
  31. package/models/components/webhookdatabankaccountcreated.js +3 -0
  32. package/models/components/webhookdatabankaccountcreated.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/funcs/filesUpload.ts +13 -2
  35. package/src/lib/config.ts +3 -3
  36. package/src/mcp-server/mcp-server.ts +1 -1
  37. package/src/mcp-server/server.ts +1 -1
  38. package/src/models/components/fileuploadmetadata.ts +73 -0
  39. package/src/models/components/fileuploadrequestmultipart.ts +12 -10
  40. package/src/models/components/index.ts +1 -0
  41. package/src/models/components/webhookdata.ts +4 -4
  42. 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: "v2024.01.00",
52882
- sdkVersion: "24.2.3",
52883
- genVersion: "2.881.4",
52884
- userAgent: "speakeasy-sdk/typescript 24.2.3 2.881.4 v2024.01.00 @moovio/sdk"
52882
+ sdkVersion: "24.2.4",
52883
+ genVersion: "2.881.17",
52884
+ userAgent: "speakeasy-sdk/typescript 24.2.4 2.881.17 v2024.01.00 @moovio/sdk"
52885
52885
  };
52886
52886
  });
52887
52887
 
@@ -62876,12 +62876,36 @@ var init_filedetails = __esm(() => {
62876
62876
  });
62877
62877
  });
62878
62878
 
62879
+ // src/models/components/fileuploadmetadata.ts
62880
+ var FileUploadMetadata$inboundSchema, FileUploadMetadata$outboundSchema;
62881
+ var init_fileuploadmetadata = __esm(() => {
62882
+ init_esm();
62883
+ init_primitives();
62884
+ FileUploadMetadata$inboundSchema = objectType({
62885
+ representative_id: stringType().optional(),
62886
+ comment: stringType().optional()
62887
+ }).transform((v2) => {
62888
+ return remap(v2, {
62889
+ representative_id: "representativeId"
62890
+ });
62891
+ });
62892
+ FileUploadMetadata$outboundSchema = objectType({
62893
+ representativeId: stringType().optional(),
62894
+ comment: stringType().optional()
62895
+ }).transform((v2) => {
62896
+ return remap(v2, {
62897
+ representativeId: "representative_id"
62898
+ });
62899
+ });
62900
+ });
62901
+
62879
62902
  // src/models/components/fileuploadrequestmultipart.ts
62880
62903
  var FileUploadRequestMultiPartFile$inboundSchema, FileUploadRequestMultiPartFile$outboundSchema, FileUploadRequestMultiPart$inboundSchema, FileUploadRequestMultiPart$outboundSchema;
62881
62904
  var init_fileuploadrequestmultipart = __esm(() => {
62882
62905
  init_esm();
62883
62906
  init_blobs();
62884
62907
  init_filepurpose();
62908
+ init_fileuploadmetadata();
62885
62909
  FileUploadRequestMultiPartFile$inboundSchema = objectType({
62886
62910
  fileName: stringType(),
62887
62911
  content: unionType([
@@ -62903,12 +62927,12 @@ var init_fileuploadrequestmultipart = __esm(() => {
62903
62927
  FileUploadRequestMultiPart$inboundSchema = objectType({
62904
62928
  file: lazyType(() => FileUploadRequestMultiPartFile$inboundSchema),
62905
62929
  filePurpose: FilePurpose$inboundSchema,
62906
- metadata: stringType().optional()
62930
+ metadata: FileUploadMetadata$inboundSchema.optional()
62907
62931
  });
62908
62932
  FileUploadRequestMultiPart$outboundSchema = objectType({
62909
62933
  file: lazyType(() => FileUploadRequestMultiPartFile$outboundSchema).or(blobLikeSchema),
62910
62934
  filePurpose: FilePurpose$outboundSchema,
62911
- metadata: stringType().optional()
62935
+ metadata: FileUploadMetadata$outboundSchema.optional()
62912
62936
  });
62913
62937
  });
62914
62938
 
@@ -66687,13 +66711,16 @@ var init_webhookdatabalanceupdated = __esm(() => {
66687
66711
  var WebhookDataBankAccountCreated$inboundSchema, WebhookDataBankAccountCreated$outboundSchema;
66688
66712
  var init_webhookdatabankaccountcreated = __esm(() => {
66689
66713
  init_esm();
66714
+ init_bankaccountstatus();
66690
66715
  WebhookDataBankAccountCreated$inboundSchema = objectType({
66691
66716
  bankAccountID: stringType(),
66692
- accountID: stringType()
66717
+ accountID: stringType(),
66718
+ status: BankAccountStatus$inboundSchema
66693
66719
  });
66694
66720
  WebhookDataBankAccountCreated$outboundSchema = objectType({
66695
66721
  bankAccountID: stringType(),
66696
- accountID: stringType()
66722
+ accountID: stringType(),
66723
+ status: BankAccountStatus$outboundSchema
66697
66724
  });
66698
66725
  });
66699
66726
 
@@ -67338,6 +67365,7 @@ var init_webhookdata = __esm(() => {
67338
67365
  WebhookDataBankAccountUpdated$inboundSchema,
67339
67366
  WebhookDataRefundUpdated$inboundSchema,
67340
67367
  WebhookDataWalletTransactionUpdated$inboundSchema,
67368
+ WebhookDataBankAccountCreated$inboundSchema,
67341
67369
  WebhookDataCancellationCreated$inboundSchema,
67342
67370
  WebhookDataCancellationUpdated$inboundSchema,
67343
67371
  WebhookDataCardAutoUpdated$inboundSchema,
@@ -67351,7 +67379,6 @@ var init_webhookdata = __esm(() => {
67351
67379
  WebhookDataTransferCreated$inboundSchema,
67352
67380
  WebhookDataWalletUpdated$inboundSchema,
67353
67381
  WebhookDataBalanceUpdated$inboundSchema,
67354
- WebhookDataBankAccountCreated$inboundSchema,
67355
67382
  WebhookDataBankAccountDeleted$inboundSchema,
67356
67383
  WebhookDataCapabilityRequested$inboundSchema,
67357
67384
  WebhookDataInvoiceCreated$inboundSchema,
@@ -67377,6 +67404,7 @@ var init_webhookdata = __esm(() => {
67377
67404
  WebhookDataBankAccountUpdated$outboundSchema,
67378
67405
  WebhookDataRefundUpdated$outboundSchema,
67379
67406
  WebhookDataWalletTransactionUpdated$outboundSchema,
67407
+ WebhookDataBankAccountCreated$outboundSchema,
67380
67408
  WebhookDataCancellationCreated$outboundSchema,
67381
67409
  WebhookDataCancellationUpdated$outboundSchema,
67382
67410
  WebhookDataCardAutoUpdated$outboundSchema,
@@ -67390,7 +67418,6 @@ var init_webhookdata = __esm(() => {
67390
67418
  WebhookDataTransferCreated$outboundSchema,
67391
67419
  WebhookDataWalletUpdated$outboundSchema,
67392
67420
  WebhookDataBalanceUpdated$outboundSchema,
67393
- WebhookDataBankAccountCreated$outboundSchema,
67394
67421
  WebhookDataBankAccountDeleted$outboundSchema,
67395
67422
  WebhookDataCapabilityRequested$outboundSchema,
67396
67423
  WebhookDataInvoiceCreated$outboundSchema,
@@ -67659,6 +67686,7 @@ var init_components = __esm(() => {
67659
67686
  init_filedetails();
67660
67687
  init_filepurpose();
67661
67688
  init_filestatus();
67689
+ init_fileuploadmetadata();
67662
67690
  init_fileuploadrequestmultipart();
67663
67691
  init_financialinstitutions();
67664
67692
  init_fulfillmentdetails();
@@ -85946,7 +85974,9 @@ async function $do79(client, request, options) {
85946
85974
  }
85947
85975
  appendForm(body, "filePurpose", payload.FileUploadRequestMultiPart.filePurpose);
85948
85976
  if (payload.FileUploadRequestMultiPart.metadata !== undefined) {
85949
- appendForm(body, "metadata", payload.FileUploadRequestMultiPart.metadata);
85977
+ appendForm(body, "metadata", encodeJSON("metadata", payload.FileUploadRequestMultiPart.metadata, {
85978
+ explode: true
85979
+ }));
85950
85980
  }
85951
85981
  const pathParams = {
85952
85982
  accountID: encodeSimple("accountID", payload.accountID, {
@@ -96024,7 +96054,7 @@ var init_webhooksUpdate2 = __esm(() => {
96024
96054
  function createMCPServer(deps) {
96025
96055
  const server = new McpServer({
96026
96056
  name: "Moov",
96027
- version: "24.2.3"
96057
+ version: "24.2.4"
96028
96058
  });
96029
96059
  const client = new MoovCore({
96030
96060
  security: deps.security,
@@ -97569,7 +97599,7 @@ var routes = rn({
97569
97599
  var app = Ve(routes, {
97570
97600
  name: "mcp",
97571
97601
  versionInfo: {
97572
- currentVersion: "24.2.3"
97602
+ currentVersion: "24.2.4"
97573
97603
  }
97574
97604
  });
97575
97605
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -97577,5 +97607,5 @@ export {
97577
97607
  app
97578
97608
  };
97579
97609
 
97580
- //# debugId=80D9EF6E0E9F05E864756E2164756E21
97610
+ //# debugId=C8B8555A217A871564756E2164756E21
97581
97611
  //# sourceMappingURL=mcp-server.js.map