mollie-api-typescript 0.8.2 → 0.8.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 (41) hide show
  1. package/bin/mcp-server.js +24 -23
  2. package/bin/mcp-server.js.map +8 -8
  3. package/dist/commonjs/hooks/mollie-hooks.d.ts.map +1 -1
  4. package/dist/commonjs/hooks/mollie-hooks.js +2 -1
  5. package/dist/commonjs/hooks/mollie-hooks.js.map +1 -1
  6. package/dist/commonjs/lib/config.d.ts +3 -3
  7. package/dist/commonjs/lib/config.js +3 -3
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +1 -1
  10. package/dist/commonjs/models/operations/getclient.d.ts +8 -11
  11. package/dist/commonjs/models/operations/getclient.d.ts.map +1 -1
  12. package/dist/commonjs/models/operations/getclient.js +8 -8
  13. package/dist/commonjs/models/operations/getclient.js.map +1 -1
  14. package/dist/commonjs/models/operations/listclients.d.ts +8 -11
  15. package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
  16. package/dist/commonjs/models/operations/listclients.js +8 -8
  17. package/dist/commonjs/models/operations/listclients.js.map +1 -1
  18. package/dist/esm/hooks/mollie-hooks.d.ts.map +1 -1
  19. package/dist/esm/hooks/mollie-hooks.js +2 -1
  20. package/dist/esm/hooks/mollie-hooks.js.map +1 -1
  21. package/dist/esm/lib/config.d.ts +3 -3
  22. package/dist/esm/lib/config.js +3 -3
  23. package/dist/esm/mcp-server/mcp-server.js +1 -1
  24. package/dist/esm/mcp-server/server.js +1 -1
  25. package/dist/esm/models/operations/getclient.d.ts +8 -11
  26. package/dist/esm/models/operations/getclient.d.ts.map +1 -1
  27. package/dist/esm/models/operations/getclient.js +8 -8
  28. package/dist/esm/models/operations/getclient.js.map +1 -1
  29. package/dist/esm/models/operations/listclients.d.ts +8 -11
  30. package/dist/esm/models/operations/listclients.d.ts.map +1 -1
  31. package/dist/esm/models/operations/listclients.js +8 -8
  32. package/dist/esm/models/operations/listclients.js.map +1 -1
  33. package/examples/package-lock.json +2 -10
  34. package/jsr.json +1 -1
  35. package/package.json +3 -10
  36. package/src/hooks/mollie-hooks.ts +2 -1
  37. package/src/lib/config.ts +3 -3
  38. package/src/mcp-server/mcp-server.ts +1 -1
  39. package/src/mcp-server/server.ts +1 -1
  40. package/src/models/operations/getclient.ts +16 -19
  41. package/src/models/operations/listclients.ts +16 -19
package/bin/mcp-server.js CHANGED
@@ -34124,9 +34124,9 @@ var init_config = __esm(() => {
34124
34124
  SDK_METADATA = {
34125
34125
  language: "typescript",
34126
34126
  openapiDocVersion: "1.0.0",
34127
- sdkVersion: "0.8.2",
34128
- genVersion: "2.753.6",
34129
- userAgent: "speakeasy-sdk/typescript 0.8.2 2.753.6 1.0.0 mollie-api-typescript"
34127
+ sdkVersion: "0.8.4",
34128
+ genVersion: "2.755.9",
34129
+ userAgent: "speakeasy-sdk/typescript 0.8.4 2.755.9 1.0.0 mollie-api-typescript"
34130
34130
  };
34131
34131
  });
34132
34132
 
@@ -34171,10 +34171,11 @@ class MollieHooks {
34171
34171
  }
34172
34172
  customizeUserAgent(headers, hookContext) {
34173
34173
  const userAgentKey = "User-Agent";
34174
+ const process3 = globalThis?.process;
34174
34175
  const customUserAgent = hookContext.options.customUserAgent;
34175
34176
  const genVersion = SDK_METADATA.genVersion;
34176
34177
  const sdkVersion = SDK_METADATA.sdkVersion;
34177
- const nodeVersion = typeof process !== "undefined" && process.version ? process.version : "unknown";
34178
+ const nodeVersion = process3?.version ? process3?.version : "unknown";
34178
34179
  const packageName = SDK_METADATA.userAgent.split(" ").at(-1);
34179
34180
  let mollieUserAgent = `Speakeasy/${genVersion} TypeScript/${nodeVersion} ${packageName}/${sdkVersion}`;
34180
34181
  if (customUserAgent) {
@@ -43083,13 +43084,13 @@ var init_getclient = __esm(() => {
43083
43084
  count: numberType().int().optional()
43084
43085
  });
43085
43086
  GetClientLinks$inboundSchema = objectType({
43086
- self: Url$inboundSchema.optional(),
43087
+ self: Url$inboundSchema,
43087
43088
  organization: Url$inboundSchema.optional(),
43088
43089
  onboarding: Url$inboundSchema.optional(),
43089
43090
  documentation: Url$inboundSchema.optional()
43090
43091
  });
43091
43092
  GetClientLinks$outboundSchema = objectType({
43092
- self: Url$outboundSchema.optional(),
43093
+ self: Url$outboundSchema,
43093
43094
  organization: Url$outboundSchema.optional(),
43094
43095
  onboarding: Url$outboundSchema.optional(),
43095
43096
  documentation: Url$outboundSchema.optional()
@@ -43105,11 +43106,11 @@ var init_getclient = __esm(() => {
43105
43106
  capabilities: EntityCapability$outboundSchema.optional()
43106
43107
  });
43107
43108
  GetClientResponse$inboundSchema = objectType({
43108
- resource: stringType().optional(),
43109
- id: stringType().optional(),
43109
+ resource: stringType(),
43110
+ id: stringType(),
43110
43111
  commission: nullableType(lazyType(() => GetClientCommission$inboundSchema)).optional(),
43111
43112
  organizationCreatedAt: stringType().optional(),
43112
- _links: lazyType(() => GetClientLinks$inboundSchema).optional(),
43113
+ _links: lazyType(() => GetClientLinks$inboundSchema),
43113
43114
  _embedded: lazyType(() => GetClientEmbedded$inboundSchema).optional()
43114
43115
  }).transform((v2) => {
43115
43116
  return remap(v2, {
@@ -43118,11 +43119,11 @@ var init_getclient = __esm(() => {
43118
43119
  });
43119
43120
  });
43120
43121
  GetClientResponse$outboundSchema = objectType({
43121
- resource: stringType().optional(),
43122
- id: stringType().optional(),
43122
+ resource: stringType(),
43123
+ id: stringType(),
43123
43124
  commission: nullableType(lazyType(() => GetClientCommission$outboundSchema)).optional(),
43124
43125
  organizationCreatedAt: stringType().optional(),
43125
- links: lazyType(() => GetClientLinks$outboundSchema).optional(),
43126
+ links: lazyType(() => GetClientLinks$outboundSchema),
43126
43127
  embedded: lazyType(() => GetClientEmbedded$outboundSchema).optional()
43127
43128
  }).transform((v2) => {
43128
43129
  return remap(v2, {
@@ -44609,13 +44610,13 @@ var init_listclients = __esm(() => {
44609
44610
  count: numberType().int().optional()
44610
44611
  });
44611
44612
  ListClientsLinks$inboundSchema = objectType({
44612
- self: Url$inboundSchema.optional(),
44613
+ self: Url$inboundSchema,
44613
44614
  organization: Url$inboundSchema.optional(),
44614
44615
  onboarding: Url$inboundSchema.optional(),
44615
44616
  documentation: Url$inboundSchema.optional()
44616
44617
  });
44617
44618
  ListClientsLinks$outboundSchema = objectType({
44618
- self: Url$outboundSchema.optional(),
44619
+ self: Url$outboundSchema,
44619
44620
  organization: Url$outboundSchema.optional(),
44620
44621
  onboarding: Url$outboundSchema.optional(),
44621
44622
  documentation: Url$outboundSchema.optional()
@@ -44631,11 +44632,11 @@ var init_listclients = __esm(() => {
44631
44632
  capabilities: EntityCapability$outboundSchema.optional()
44632
44633
  });
44633
44634
  Client$inboundSchema = objectType({
44634
- resource: stringType().optional(),
44635
- id: stringType().optional(),
44635
+ resource: stringType(),
44636
+ id: stringType(),
44636
44637
  commission: nullableType(lazyType(() => ListClientsCommission$inboundSchema)).optional(),
44637
44638
  organizationCreatedAt: stringType().optional(),
44638
- _links: lazyType(() => ListClientsLinks$inboundSchema).optional(),
44639
+ _links: lazyType(() => ListClientsLinks$inboundSchema),
44639
44640
  _embedded: lazyType(() => ClientEmbedded$inboundSchema).optional()
44640
44641
  }).transform((v2) => {
44641
44642
  return remap(v2, {
@@ -44644,11 +44645,11 @@ var init_listclients = __esm(() => {
44644
44645
  });
44645
44646
  });
44646
44647
  Client$outboundSchema = objectType({
44647
- resource: stringType().optional(),
44648
- id: stringType().optional(),
44648
+ resource: stringType(),
44649
+ id: stringType(),
44649
44650
  commission: nullableType(lazyType(() => ListClientsCommission$outboundSchema)).optional(),
44650
44651
  organizationCreatedAt: stringType().optional(),
44651
- links: lazyType(() => ListClientsLinks$outboundSchema).optional(),
44652
+ links: lazyType(() => ListClientsLinks$outboundSchema),
44652
44653
  embedded: lazyType(() => ClientEmbedded$outboundSchema).optional()
44653
44654
  }).transform((v2) => {
44654
44655
  return remap(v2, {
@@ -58956,7 +58957,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
58956
58957
  function createMCPServer(deps) {
58957
58958
  const server = new McpServer({
58958
58959
  name: "Client",
58959
- version: "0.8.2"
58960
+ version: "0.8.4"
58960
58961
  });
58961
58962
  const client = new ClientCore({
58962
58963
  security: deps.security,
@@ -60384,7 +60385,7 @@ var routes = an({
60384
60385
  var app = He(routes, {
60385
60386
  name: "mcp",
60386
60387
  versionInfo: {
60387
- currentVersion: "0.8.2"
60388
+ currentVersion: "0.8.4"
60388
60389
  }
60389
60390
  });
60390
60391
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -60392,5 +60393,5 @@ export {
60392
60393
  app
60393
60394
  };
60394
60395
 
60395
- //# debugId=CBD3587FD5E1A8DA64756E2164756E21
60396
+ //# debugId=36AB504229E4248C64756E2164756E21
60396
60397
  //# sourceMappingURL=mcp-server.js.map