mollie-api-typescript 1.3.1 → 1.3.2

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 (64) hide show
  1. package/README.md +7 -4
  2. package/bin/mcp-server.js +33 -8
  3. package/bin/mcp-server.js.map +11 -11
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  7. package/dist/commonjs/lib/encodings.js +20 -5
  8. package/dist/commonjs/lib/encodings.js.map +1 -1
  9. package/dist/commonjs/lib/env.d.ts +1 -0
  10. package/dist/commonjs/lib/env.d.ts.map +1 -1
  11. package/dist/commonjs/lib/env.js +1 -0
  12. package/dist/commonjs/lib/env.js.map +1 -1
  13. package/dist/commonjs/lib/security.d.ts.map +1 -1
  14. package/dist/commonjs/lib/security.js +7 -0
  15. package/dist/commonjs/lib/security.js.map +1 -1
  16. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  17. package/dist/commonjs/mcp-server/cli/start/command.js +8 -0
  18. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  19. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -0
  20. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  21. package/dist/commonjs/mcp-server/cli/start/impl.js +10 -2
  22. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  23. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  24. package/dist/commonjs/mcp-server/server.js +1 -1
  25. package/dist/commonjs/models/security.d.ts +2 -0
  26. package/dist/commonjs/models/security.d.ts.map +1 -1
  27. package/dist/commonjs/models/security.js +2 -0
  28. package/dist/commonjs/models/security.js.map +1 -1
  29. package/dist/esm/lib/config.d.ts +3 -3
  30. package/dist/esm/lib/config.js +3 -3
  31. package/dist/esm/lib/encodings.d.ts.map +1 -1
  32. package/dist/esm/lib/encodings.js +20 -5
  33. package/dist/esm/lib/encodings.js.map +1 -1
  34. package/dist/esm/lib/env.d.ts +1 -0
  35. package/dist/esm/lib/env.d.ts.map +1 -1
  36. package/dist/esm/lib/env.js +1 -0
  37. package/dist/esm/lib/env.js.map +1 -1
  38. package/dist/esm/lib/security.d.ts.map +1 -1
  39. package/dist/esm/lib/security.js +7 -0
  40. package/dist/esm/lib/security.js.map +1 -1
  41. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  42. package/dist/esm/mcp-server/cli/start/command.js +8 -0
  43. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  44. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -0
  45. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  46. package/dist/esm/mcp-server/cli/start/impl.js +10 -2
  47. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  48. package/dist/esm/mcp-server/mcp-server.js +1 -1
  49. package/dist/esm/mcp-server/server.js +1 -1
  50. package/dist/esm/models/security.d.ts +2 -0
  51. package/dist/esm/models/security.d.ts.map +1 -1
  52. package/dist/esm/models/security.js +2 -0
  53. package/dist/esm/models/security.js.map +1 -1
  54. package/jsr.json +1 -1
  55. package/package.json +1 -1
  56. package/src/lib/config.ts +3 -3
  57. package/src/lib/encodings.ts +23 -4
  58. package/src/lib/env.ts +2 -0
  59. package/src/lib/security.ts +8 -0
  60. package/src/mcp-server/cli/start/command.ts +8 -0
  61. package/src/mcp-server/cli/start/impl.ts +11 -2
  62. package/src/mcp-server/mcp-server.ts +1 -1
  63. package/src/mcp-server/server.ts +1 -1
  64. package/src/models/security.ts +4 -0
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", "...",
@@ -211,10 +213,11 @@ run();
211
213
 
212
214
  This SDK supports the following security schemes globally:
213
215
 
214
- | Name | Type | Scheme | Environment Variable |
215
- | -------- | ------ | ------------ | -------------------- |
216
- | `apiKey` | http | HTTP Bearer | `CLIENT_API_KEY` |
217
- | `oAuth` | oauth2 | OAuth2 token | `CLIENT_O_AUTH` |
216
+ | Name | Type | Scheme | Environment Variable |
217
+ | ------------------------- | ------ | ------------ | ---------------------------------- |
218
+ | `apiKey` | http | HTTP Bearer | `CLIENT_API_KEY` |
219
+ | `organizationAccessToken` | http | HTTP Bearer | `CLIENT_ORGANIZATION_ACCESS_TOKEN` |
220
+ | `oAuth` | oauth2 | OAuth2 token | `CLIENT_O_AUTH` |
218
221
 
219
222
  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
223
  ```typescript
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.2",
52873
+ genVersion: "2.869.25",
52874
+ userAgent: "speakeasy-sdk/typescript 1.3.2 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
  });
@@ -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.2"
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.2"
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=D34EE055564CE0E964756E2164756E21
83074
83099
  //# sourceMappingURL=mcp-server.js.map