mollie-api-typescript 1.3.1 → 1.3.3

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 (76) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +21 -11
  3. package/bin/mcp-server.js +37 -12
  4. package/bin/mcp-server.js.map +13 -13
  5. package/dist/commonjs/funcs/profilesCreate.js +2 -2
  6. package/dist/commonjs/funcs/profilesCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/profilesUpdate.js +2 -2
  8. package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
  9. package/dist/commonjs/lib/config.d.ts +3 -3
  10. package/dist/commonjs/lib/config.js +3 -3
  11. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  12. package/dist/commonjs/lib/encodings.js +20 -5
  13. package/dist/commonjs/lib/encodings.js.map +1 -1
  14. package/dist/commonjs/lib/env.d.ts +1 -0
  15. package/dist/commonjs/lib/env.d.ts.map +1 -1
  16. package/dist/commonjs/lib/env.js +1 -0
  17. package/dist/commonjs/lib/env.js.map +1 -1
  18. package/dist/commonjs/lib/security.d.ts.map +1 -1
  19. package/dist/commonjs/lib/security.js +7 -0
  20. package/dist/commonjs/lib/security.js.map +1 -1
  21. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  22. package/dist/commonjs/mcp-server/cli/start/command.js +8 -0
  23. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  24. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -0
  25. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/cli/start/impl.js +10 -2
  27. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  28. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  29. package/dist/commonjs/mcp-server/server.js +1 -1
  30. package/dist/commonjs/models/security.d.ts +2 -0
  31. package/dist/commonjs/models/security.d.ts.map +1 -1
  32. package/dist/commonjs/models/security.js +2 -0
  33. package/dist/commonjs/models/security.js.map +1 -1
  34. package/dist/esm/funcs/profilesCreate.js +2 -2
  35. package/dist/esm/funcs/profilesCreate.js.map +1 -1
  36. package/dist/esm/funcs/profilesUpdate.js +2 -2
  37. package/dist/esm/funcs/profilesUpdate.js.map +1 -1
  38. package/dist/esm/lib/config.d.ts +3 -3
  39. package/dist/esm/lib/config.js +3 -3
  40. package/dist/esm/lib/encodings.d.ts.map +1 -1
  41. package/dist/esm/lib/encodings.js +20 -5
  42. package/dist/esm/lib/encodings.js.map +1 -1
  43. package/dist/esm/lib/env.d.ts +1 -0
  44. package/dist/esm/lib/env.d.ts.map +1 -1
  45. package/dist/esm/lib/env.js +1 -0
  46. package/dist/esm/lib/env.js.map +1 -1
  47. package/dist/esm/lib/security.d.ts.map +1 -1
  48. package/dist/esm/lib/security.js +7 -0
  49. package/dist/esm/lib/security.js.map +1 -1
  50. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  51. package/dist/esm/mcp-server/cli/start/command.js +8 -0
  52. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  53. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -0
  54. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  55. package/dist/esm/mcp-server/cli/start/impl.js +10 -2
  56. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  57. package/dist/esm/mcp-server/mcp-server.js +1 -1
  58. package/dist/esm/mcp-server/server.js +1 -1
  59. package/dist/esm/models/security.d.ts +2 -0
  60. package/dist/esm/models/security.d.ts.map +1 -1
  61. package/dist/esm/models/security.js +2 -0
  62. package/dist/esm/models/security.js.map +1 -1
  63. package/examples/balancesList.example.ts +2 -1
  64. package/jsr.json +1 -1
  65. package/package.json +1 -1
  66. package/src/funcs/profilesCreate.ts +2 -2
  67. package/src/funcs/profilesUpdate.ts +2 -2
  68. package/src/lib/config.ts +3 -3
  69. package/src/lib/encodings.ts +23 -4
  70. package/src/lib/env.ts +2 -0
  71. package/src/lib/security.ts +8 -0
  72. package/src/mcp-server/cli/start/command.ts +8 -0
  73. package/src/mcp-server/cli/start/impl.ts +11 -2
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +1 -1
  76. package/src/models/security.ts +4 -0
package/FUNCTIONS.md CHANGED
@@ -27,7 +27,7 @@ import { balancesList } from "mollie-api-typescript/funcs/balancesList.js";
27
27
  const client = new ClientCore({
28
28
  testmode: false,
29
29
  security: {
30
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
30
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"] ?? "",
31
31
  },
32
32
  });
33
33
 
package/README.md CHANGED
@@ -95,6 +95,7 @@ Add the following server definition to your `claude_desktop_config.json` file:
95
95
  "--",
96
96
  "mcp", "start",
97
97
  "--api-key", "...",
98
+ "--organization-access-token", "...",
98
99
  "--o-auth", "...",
99
100
  "--profile-id", "...",
100
101
  "--testmode", "...",
@@ -122,6 +123,7 @@ Create a `.cursor/mcp.json` file in your project root with the following content
122
123
  "--",
123
124
  "mcp", "start",
124
125
  "--api-key", "...",
126
+ "--organization-access-token", "...",
125
127
  "--o-auth", "...",
126
128
  "--profile-id", "...",
127
129
  "--testmode", "...",
@@ -182,7 +184,8 @@ import { Client } from "mollie-api-typescript";
182
184
  const client = new Client({
183
185
  testmode: false,
184
186
  security: {
185
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
187
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
188
+ ?? "",
186
189
  },
187
190
  });
188
191
 
@@ -211,10 +214,11 @@ run();
211
214
 
212
215
  This SDK supports the following security schemes globally:
213
216
 
214
- | Name | Type | Scheme | Environment Variable |
215
- | -------- | ------ | ------------ | -------------------- |
216
- | `apiKey` | http | HTTP Bearer | `CLIENT_API_KEY` |
217
- | `oAuth` | oauth2 | OAuth2 token | `CLIENT_O_AUTH` |
217
+ | Name | Type | Scheme | Environment Variable |
218
+ | ------------------------- | ------ | ------------ | ---------------------------------- |
219
+ | `apiKey` | http | HTTP Bearer | `CLIENT_API_KEY` |
220
+ | `organizationAccessToken` | http | HTTP Bearer | `CLIENT_ORGANIZATION_ACCESS_TOKEN` |
221
+ | `oAuth` | oauth2 | OAuth2 token | `CLIENT_O_AUTH` |
218
222
 
219
223
  You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
220
224
  ```typescript
@@ -663,7 +667,8 @@ const client = new Client({
663
667
  profileId: "<id>",
664
668
  customUserAgent: "<value>",
665
669
  security: {
666
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
670
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
671
+ ?? "",
667
672
  },
668
673
  });
669
674
 
@@ -703,7 +708,8 @@ import { Client } from "mollie-api-typescript";
703
708
  const client = new Client({
704
709
  testmode: false,
705
710
  security: {
706
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
711
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
712
+ ?? "",
707
713
  },
708
714
  });
709
715
 
@@ -737,7 +743,8 @@ import { Client } from "mollie-api-typescript";
737
743
  const client = new Client({
738
744
  testmode: false,
739
745
  security: {
740
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
746
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
747
+ ?? "",
741
748
  },
742
749
  });
743
750
 
@@ -786,7 +793,8 @@ const client = new Client({
786
793
  },
787
794
  testmode: false,
788
795
  security: {
789
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
796
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
797
+ ?? "",
790
798
  },
791
799
  });
792
800
 
@@ -830,7 +838,8 @@ import * as errors from "mollie-api-typescript/models/errors";
830
838
  const client = new Client({
831
839
  testmode: false,
832
840
  security: {
833
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
841
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
842
+ ?? "",
834
843
  },
835
844
  });
836
845
 
@@ -908,7 +917,8 @@ const client = new Client({
908
917
  serverURL: "https://api.mollie.com/v2",
909
918
  testmode: false,
910
919
  security: {
911
- oAuth: process.env["CLIENT_O_AUTH"] ?? "",
920
+ organizationAccessToken: process.env["CLIENT_ORGANIZATION_ACCESS_TOKEN"]
921
+ ?? "",
912
922
  },
913
923
  });
914
924
 
package/bin/mcp-server.js CHANGED
@@ -52869,9 +52869,9 @@ var init_config = __esm(() => {
52869
52869
  SDK_METADATA = {
52870
52870
  language: "typescript",
52871
52871
  openapiDocVersion: "1.0.0",
52872
- sdkVersion: "1.3.1",
52873
- genVersion: "2.869.10",
52874
- userAgent: "speakeasy-sdk/typescript 1.3.1 2.869.10 1.0.0 mollie-api-typescript"
52872
+ sdkVersion: "1.3.3",
52873
+ genVersion: "2.869.25",
52874
+ userAgent: "speakeasy-sdk/typescript 1.3.3 2.869.25 1.0.0 mollie-api-typescript"
52875
52875
  };
52876
52876
  });
52877
52877
 
@@ -53468,6 +53468,7 @@ var init_env = __esm(() => {
53468
53468
  init_esm();
53469
53469
  envSchema = objectType({
53470
53470
  CLIENT_API_KEY: stringType().optional(),
53471
+ CLIENT_ORGANIZATION_ACCESS_TOKEN: stringType().optional(),
53471
53472
  CLIENT_O_AUTH: stringType().optional(),
53472
53473
  CLIENT_PROFILE_ID: stringType().optional(),
53473
53474
  CLIENT_TESTMODE: enumType(["true", "false"]).transform((v2) => v2 === "true").optional(),
@@ -54676,6 +54677,12 @@ function resolveGlobalSecurity(security) {
54676
54677
  type: "http:bearer",
54677
54678
  value: security?.apiKey ?? env().CLIENT_API_KEY
54678
54679
  }
54680
+ ], [
54681
+ {
54682
+ fieldName: "Authorization",
54683
+ type: "http:bearer",
54684
+ value: security?.organizationAccessToken ?? env().CLIENT_ORGANIZATION_ACCESS_TOKEN
54685
+ }
54679
54686
  ], [
54680
54687
  {
54681
54688
  fieldName: "Authorization",
@@ -62539,10 +62546,12 @@ var init_security2 = __esm(() => {
62539
62546
  init_esm();
62540
62547
  Security$inboundSchema = objectType({
62541
62548
  apiKey: stringType().optional(),
62549
+ organizationAccessToken: stringType().optional(),
62542
62550
  oAuth: stringType().optional()
62543
62551
  });
62544
62552
  Security$outboundSchema = objectType({
62545
62553
  apiKey: stringType().optional(),
62554
+ organizationAccessToken: stringType().optional(),
62546
62555
  oAuth: stringType().optional()
62547
62556
  });
62548
62557
  });
@@ -75850,7 +75859,7 @@ async function $do57(client, request, options) {
75850
75859
  const req = requestRes.value;
75851
75860
  const doResult = await client._do(req, {
75852
75861
  context,
75853
- errorCodes: ["422", "4XX", "5XX"],
75862
+ errorCodes: ["403", "422", "4XX", "5XX"],
75854
75863
  retryConfig: context.retryConfig,
75855
75864
  retryCodes: context.retryCodes
75856
75865
  });
@@ -75863,7 +75872,7 @@ async function $do57(client, request, options) {
75863
75872
  };
75864
75873
  const [result] = await match(json(201, ProfileResponse$inboundSchema, {
75865
75874
  ctype: "application/hal+json"
75866
- }), jsonErr(422, ErrorResponse$inboundSchema, {
75875
+ }), jsonErr([403, 422], ErrorResponse$inboundSchema, {
75867
75876
  ctype: "application/hal+json"
75868
75877
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75869
75878
  if (!result.ok) {
@@ -76486,7 +76495,7 @@ async function $do62(client, request, options) {
76486
76495
  const req = requestRes.value;
76487
76496
  const doResult = await client._do(req, {
76488
76497
  context,
76489
- errorCodes: ["404", "410", "422", "4XX", "5XX"],
76498
+ errorCodes: ["403", "404", "410", "422", "4XX", "5XX"],
76490
76499
  retryConfig: context.retryConfig,
76491
76500
  retryCodes: context.retryCodes
76492
76501
  });
@@ -76499,7 +76508,7 @@ async function $do62(client, request, options) {
76499
76508
  };
76500
76509
  const [result] = await match(json(200, ProfileResponse$inboundSchema, {
76501
76510
  ctype: "application/hal+json"
76502
- }), jsonErr([404, 410, 422], ErrorResponse$inboundSchema, {
76511
+ }), jsonErr([403, 404, 410, 422], ErrorResponse$inboundSchema, {
76503
76512
  ctype: "application/hal+json"
76504
76513
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
76505
76514
  if (!result.ok) {
@@ -81628,7 +81637,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
81628
81637
  function createMCPServer(deps) {
81629
81638
  const server = new McpServer({
81630
81639
  name: "Client",
81631
- version: "1.3.1"
81640
+ version: "1.3.3"
81632
81641
  });
81633
81642
  const client = new ClientCore({
81634
81643
  security: deps.security,
@@ -81878,7 +81887,11 @@ async function startStdio(flags) {
81878
81887
  const server = createMCPServer({
81879
81888
  logger,
81880
81889
  allowedTools: flags.tool,
81881
- security: { apiKey: flags["api-key"] ?? "", oAuth: flags["o-auth"] ?? "" },
81890
+ security: {
81891
+ apiKey: flags["api-key"] ?? "",
81892
+ organizationAccessToken: flags["organization-access-token"] ?? "",
81893
+ oAuth: flags["o-auth"] ?? ""
81894
+ },
81882
81895
  profileId: flags["profile-id"],
81883
81896
  testmode: flags.testmode,
81884
81897
  customUserAgent: flags["custom-user-agent"],
@@ -81899,7 +81912,11 @@ async function startSSE(flags) {
81899
81912
  const mcpServer = createMCPServer({
81900
81913
  logger,
81901
81914
  allowedTools: flags.tool,
81902
- security: { apiKey: flags["api-key"] ?? "", oAuth: flags["o-auth"] ?? "" },
81915
+ security: {
81916
+ apiKey: flags["api-key"] ?? "",
81917
+ organizationAccessToken: flags["organization-access-token"] ?? "",
81918
+ oAuth: flags["o-auth"] ?? ""
81919
+ },
81903
81920
  profileId: flags["profile-id"],
81904
81921
  testmode: flags.testmode,
81905
81922
  customUserAgent: flags["custom-user-agent"],
@@ -82971,6 +82988,14 @@ var startCommand = on({
82971
82988
  return stringType().parse(value);
82972
82989
  }
82973
82990
  },
82991
+ "organization-access-token": {
82992
+ kind: "parsed",
82993
+ brief: "Sets the organizationAccessToken auth field for the API",
82994
+ optional: true,
82995
+ parse: (value) => {
82996
+ return stringType().parse(value);
82997
+ }
82998
+ },
82974
82999
  "o-auth": {
82975
83000
  kind: "parsed",
82976
83001
  brief: "Sets the oAuth auth field for the API",
@@ -83062,7 +83087,7 @@ var routes = an({
83062
83087
  var app = He(routes, {
83063
83088
  name: "mcp",
83064
83089
  versionInfo: {
83065
- currentVersion: "1.3.1"
83090
+ currentVersion: "1.3.3"
83066
83091
  }
83067
83092
  });
83068
83093
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -83070,5 +83095,5 @@ export {
83070
83095
  app
83071
83096
  };
83072
83097
 
83073
- //# debugId=2FA940F777ED119C64756E2164756E21
83098
+ //# debugId=5562B29ABEC2393B64756E2164756E21
83074
83099
  //# sourceMappingURL=mcp-server.js.map