mollie-api-typescript 0.0.8 → 0.0.9

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 (46) hide show
  1. package/bin/mcp-server.js +38 -16
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/funcs/webhookEventsGet.js +4 -0
  4. package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
  5. package/dist/commonjs/funcs/webhooksDelete.js +2 -5
  6. package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/operations/deletewebhook.d.ts +33 -9
  12. package/dist/commonjs/models/operations/deletewebhook.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/deletewebhook.js +39 -3
  14. package/dist/commonjs/models/operations/deletewebhook.js.map +1 -1
  15. package/dist/commonjs/models/operations/getwebhookevent.d.ts +11 -0
  16. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/getwebhookevent.js +2 -0
  18. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  19. package/dist/esm/funcs/webhookEventsGet.js +5 -1
  20. package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
  21. package/dist/esm/funcs/webhooksDelete.js +3 -6
  22. package/dist/esm/funcs/webhooksDelete.js.map +1 -1
  23. package/dist/esm/lib/config.d.ts +3 -3
  24. package/dist/esm/lib/config.js +3 -3
  25. package/dist/esm/mcp-server/mcp-server.js +1 -1
  26. package/dist/esm/mcp-server/server.js +1 -1
  27. package/dist/esm/models/operations/deletewebhook.d.ts +33 -9
  28. package/dist/esm/models/operations/deletewebhook.d.ts.map +1 -1
  29. package/dist/esm/models/operations/deletewebhook.js +36 -2
  30. package/dist/esm/models/operations/deletewebhook.js.map +1 -1
  31. package/dist/esm/models/operations/getwebhookevent.d.ts +11 -0
  32. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  33. package/dist/esm/models/operations/getwebhookevent.js +2 -0
  34. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  35. package/docs/sdks/webhookevents/README.md +2 -0
  36. package/docs/sdks/webhooks/README.md +6 -2
  37. package/examples/package-lock.json +1 -1
  38. package/jsr.json +1 -1
  39. package/package.json +1 -1
  40. package/src/funcs/webhookEventsGet.ts +6 -1
  41. package/src/funcs/webhooksDelete.ts +3 -7
  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/operations/deletewebhook.ts +77 -11
  46. package/src/models/operations/getwebhookevent.ts +13 -0
package/bin/mcp-server.js CHANGED
@@ -34269,9 +34269,9 @@ var init_config = __esm(() => {
34269
34269
  SDK_METADATA = {
34270
34270
  language: "typescript",
34271
34271
  openapiDocVersion: "1.0.0",
34272
- sdkVersion: "0.0.8",
34273
- genVersion: "2.674.3",
34274
- userAgent: "speakeasy-sdk/typescript 0.0.8 2.674.3 1.0.0 mollie-api-typescript"
34272
+ sdkVersion: "0.0.9",
34273
+ genVersion: "2.675.0",
34274
+ userAgent: "speakeasy-sdk/typescript 0.0.9 2.675.0 1.0.0 mollie-api-typescript"
34275
34275
  };
34276
34276
  });
34277
34277
 
@@ -44138,16 +44138,35 @@ var init_deletesalesinvoice = __esm(() => {
44138
44138
  });
44139
44139
 
44140
44140
  // src/models/operations/deletewebhook.ts
44141
- var DeleteWebhookRequest$inboundSchema, DeleteWebhookRequest$outboundSchema, DeleteWebhookRequest$, DeleteWebhookUnprocessableEntityDocumentation$inboundSchema, DeleteWebhookUnprocessableEntityDocumentation$outboundSchema, DeleteWebhookUnprocessableEntityDocumentation$, DeleteWebhookUnprocessableEntityLinks$inboundSchema, DeleteWebhookUnprocessableEntityLinks$outboundSchema, DeleteWebhookUnprocessableEntityLinks$, DeleteWebhookNotFoundDocumentation$inboundSchema, DeleteWebhookNotFoundDocumentation$outboundSchema, DeleteWebhookNotFoundDocumentation$, DeleteWebhookNotFoundLinks$inboundSchema, DeleteWebhookNotFoundLinks$outboundSchema, DeleteWebhookNotFoundLinks$;
44141
+ var DeleteWebhookRequestBody$inboundSchema, DeleteWebhookRequestBody$outboundSchema, DeleteWebhookRequestBody$, DeleteWebhookRequest$inboundSchema, DeleteWebhookRequest$outboundSchema, DeleteWebhookRequest$, DeleteWebhookUnprocessableEntityDocumentation$inboundSchema, DeleteWebhookUnprocessableEntityDocumentation$outboundSchema, DeleteWebhookUnprocessableEntityDocumentation$, DeleteWebhookUnprocessableEntityLinks$inboundSchema, DeleteWebhookUnprocessableEntityLinks$outboundSchema, DeleteWebhookUnprocessableEntityLinks$, DeleteWebhookNotFoundDocumentation$inboundSchema, DeleteWebhookNotFoundDocumentation$outboundSchema, DeleteWebhookNotFoundDocumentation$, DeleteWebhookNotFoundLinks$inboundSchema, DeleteWebhookNotFoundLinks$outboundSchema, DeleteWebhookNotFoundLinks$;
44142
44142
  var init_deletewebhook = __esm(() => {
44143
44143
  init_esm();
44144
+ init_primitives();
44145
+ DeleteWebhookRequestBody$inboundSchema = objectType({
44146
+ testmode: nullableType(booleanType()).optional()
44147
+ });
44148
+ DeleteWebhookRequestBody$outboundSchema = objectType({
44149
+ testmode: nullableType(booleanType()).optional()
44150
+ });
44151
+ ((DeleteWebhookRequestBody$) => {
44152
+ DeleteWebhookRequestBody$.inboundSchema = DeleteWebhookRequestBody$inboundSchema;
44153
+ DeleteWebhookRequestBody$.outboundSchema = DeleteWebhookRequestBody$outboundSchema;
44154
+ })(DeleteWebhookRequestBody$ ||= {});
44144
44155
  DeleteWebhookRequest$inboundSchema = objectType({
44145
44156
  id: stringType(),
44146
- testmode: nullableType(booleanType()).optional()
44157
+ RequestBody: lazyType(() => DeleteWebhookRequestBody$inboundSchema).optional()
44158
+ }).transform((v2) => {
44159
+ return remap(v2, {
44160
+ RequestBody: "requestBody"
44161
+ });
44147
44162
  });
44148
44163
  DeleteWebhookRequest$outboundSchema = objectType({
44149
44164
  id: stringType(),
44150
- testmode: nullableType(booleanType()).optional()
44165
+ requestBody: lazyType(() => DeleteWebhookRequestBody$outboundSchema).optional()
44166
+ }).transform((v2) => {
44167
+ return remap(v2, {
44168
+ requestBody: "RequestBody"
44169
+ });
44151
44170
  });
44152
44171
  ((DeleteWebhookRequest$) => {
44153
44172
  DeleteWebhookRequest$.inboundSchema = DeleteWebhookRequest$inboundSchema;
@@ -69205,10 +69224,12 @@ var init_getwebhookevent = __esm(() => {
69205
69224
  First: "first"
69206
69225
  };
69207
69226
  GetWebhookEventRequest$inboundSchema = objectType({
69208
- id: stringType()
69227
+ id: stringType(),
69228
+ testmode: nullableType(booleanType()).optional()
69209
69229
  });
69210
69230
  GetWebhookEventRequest$outboundSchema = objectType({
69211
- id: stringType()
69231
+ id: stringType(),
69232
+ testmode: nullableType(booleanType()).optional()
69212
69233
  });
69213
69234
  ((GetWebhookEventRequest$) => {
69214
69235
  GetWebhookEventRequest$.inboundSchema = GetWebhookEventRequest$inboundSchema;
@@ -107275,6 +107296,9 @@ async function $do87(client, request, options) {
107275
107296
  })
107276
107297
  };
107277
107298
  const path = pathToFunc("/events/{id}")(pathParams);
107299
+ const query = encodeFormQuery({
107300
+ testmode: payload.testmode
107301
+ });
107278
107302
  const headers = new Headers(compactMap({
107279
107303
  Accept: "application/hal+json"
107280
107304
  }));
@@ -107305,6 +107329,7 @@ async function $do87(client, request, options) {
107305
107329
  baseURL: options?.serverURL,
107306
107330
  path,
107307
107331
  headers,
107332
+ query,
107308
107333
  body,
107309
107334
  userAgent: client._options.userAgent,
107310
107335
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -107502,7 +107527,7 @@ async function $do89(client, request, options) {
107502
107527
  return [parsed, { status: "invalid" }];
107503
107528
  }
107504
107529
  const payload = parsed.value;
107505
- const body = null;
107530
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
107506
107531
  const pathParams = {
107507
107532
  id: encodeSimple("id", payload.id, {
107508
107533
  explode: false,
@@ -107510,10 +107535,8 @@ async function $do89(client, request, options) {
107510
107535
  })
107511
107536
  };
107512
107537
  const path = pathToFunc("/webhooks/{id}")(pathParams);
107513
- const query = encodeFormQuery({
107514
- testmode: payload.testmode
107515
- });
107516
107538
  const headers = new Headers(compactMap({
107539
+ "Content-Type": "application/json",
107517
107540
  Accept: "application/hal+json"
107518
107541
  }));
107519
107542
  const securityInput = await extractSecurity(client._options.security);
@@ -107543,7 +107566,6 @@ async function $do89(client, request, options) {
107543
107566
  baseURL: options?.serverURL,
107544
107567
  path,
107545
107568
  headers,
107546
- query,
107547
107569
  body,
107548
107570
  userAgent: client._options.userAgent,
107549
107571
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -108106,7 +108128,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
108106
108128
  function createMCPServer(deps) {
108107
108129
  const server = new McpServer({
108108
108130
  name: "Client",
108109
- version: "0.0.8"
108131
+ version: "0.0.9"
108110
108132
  });
108111
108133
  const client = new ClientCore({
108112
108134
  security: deps.security,
@@ -109495,7 +109517,7 @@ var routes = an({
109495
109517
  var app = He(routes, {
109496
109518
  name: "mcp",
109497
109519
  versionInfo: {
109498
- currentVersion: "0.0.8"
109520
+ currentVersion: "0.0.9"
109499
109521
  }
109500
109522
  });
109501
109523
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -109503,5 +109525,5 @@ export {
109503
109525
  app
109504
109526
  };
109505
109527
 
109506
- //# debugId=676BF56AA879EBE364756E2164756E21
109528
+ //# debugId=6AD6B743B16E600F64756E2164756E21
109507
109529
  //# sourceMappingURL=mcp-server.js.map