mollie-api-typescript 0.1.7 → 0.1.8

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 (79) hide show
  1. package/FUNCTIONS.md +7 -139
  2. package/README.md +77 -877
  3. package/bin/mcp-server.js +375 -182
  4. package/bin/mcp-server.js.map +10 -10
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/lib/config.js.map +1 -1
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +40 -40
  10. package/dist/commonjs/mcp-server/server.js.map +1 -1
  11. package/dist/commonjs/models/operations/createwebhook.d.ts +96 -38
  12. package/dist/commonjs/models/operations/createwebhook.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/createwebhook.js +79 -41
  14. package/dist/commonjs/models/operations/createwebhook.js.map +1 -1
  15. package/dist/commonjs/models/operations/getwebhook.d.ts +139 -21
  16. package/dist/commonjs/models/operations/getwebhook.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/getwebhook.js +114 -20
  18. package/dist/commonjs/models/operations/getwebhook.js.map +1 -1
  19. package/dist/commonjs/models/operations/getwebhookevent.d.ts +63 -17
  20. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/getwebhookevent.js +48 -21
  22. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  23. package/dist/commonjs/models/operations/listwebhooks.d.ts +160 -39
  24. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/listwebhooks.js +136 -41
  26. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  27. package/dist/commonjs/models/operations/updatewebhook.d.ts +162 -32
  28. package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/updatewebhook.js +140 -33
  30. package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
  31. package/dist/commonjs/sdk/sdk.d.ts +24 -24
  32. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  33. package/dist/commonjs/sdk/sdk.js +36 -36
  34. package/dist/commonjs/sdk/sdk.js.map +1 -1
  35. package/dist/esm/lib/config.d.ts +3 -3
  36. package/dist/esm/lib/config.js +3 -3
  37. package/dist/esm/lib/config.js.map +1 -1
  38. package/dist/esm/mcp-server/mcp-server.js +1 -1
  39. package/dist/esm/mcp-server/server.js +40 -40
  40. package/dist/esm/mcp-server/server.js.map +1 -1
  41. package/dist/esm/models/operations/createwebhook.d.ts +96 -38
  42. package/dist/esm/models/operations/createwebhook.d.ts.map +1 -1
  43. package/dist/esm/models/operations/createwebhook.js +78 -40
  44. package/dist/esm/models/operations/createwebhook.js.map +1 -1
  45. package/dist/esm/models/operations/getwebhook.d.ts +139 -21
  46. package/dist/esm/models/operations/getwebhook.d.ts.map +1 -1
  47. package/dist/esm/models/operations/getwebhook.js +109 -19
  48. package/dist/esm/models/operations/getwebhook.js.map +1 -1
  49. package/dist/esm/models/operations/getwebhookevent.d.ts +63 -17
  50. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  51. package/dist/esm/models/operations/getwebhookevent.js +45 -18
  52. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  53. package/dist/esm/models/operations/listwebhooks.d.ts +160 -39
  54. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  55. package/dist/esm/models/operations/listwebhooks.js +130 -40
  56. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  57. package/dist/esm/models/operations/updatewebhook.d.ts +162 -32
  58. package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
  59. package/dist/esm/models/operations/updatewebhook.js +135 -32
  60. package/dist/esm/models/operations/updatewebhook.js.map +1 -1
  61. package/dist/esm/sdk/sdk.d.ts +24 -24
  62. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  63. package/dist/esm/sdk/sdk.js +36 -36
  64. package/dist/esm/sdk/sdk.js.map +1 -1
  65. package/docs/sdks/webhooks/README.md +4 -4
  66. package/examples/balancesList.example.ts +33 -0
  67. package/examples/package-lock.json +1 -1
  68. package/jsr.json +1 -1
  69. package/package.json +1 -1
  70. package/src/lib/config.ts +3 -3
  71. package/src/mcp-server/mcp-server.ts +1 -1
  72. package/src/mcp-server/server.ts +40 -40
  73. package/src/models/operations/createwebhook.ts +134 -73
  74. package/src/models/operations/getwebhook.ts +228 -39
  75. package/src/models/operations/getwebhookevent.ts +75 -35
  76. package/src/models/operations/listwebhooks.ts +262 -73
  77. package/src/models/operations/updatewebhook.ts +273 -59
  78. package/src/sdk/sdk.ts +60 -60
  79. package/examples/paymentsCreate.example.ts +0 -166
@@ -36,13 +36,18 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ListWebhooksResponse$ = exports.ListWebhooksResponse$outboundSchema = exports.ListWebhooksResponse$inboundSchema = exports.ListWebhooksLinks$ = exports.ListWebhooksLinks$outboundSchema = exports.ListWebhooksLinks$inboundSchema = exports.ListWebhooksDocumentation$ = exports.ListWebhooksDocumentation$outboundSchema = exports.ListWebhooksDocumentation$inboundSchema = exports.ListWebhooksNext$ = exports.ListWebhooksNext$outboundSchema = exports.ListWebhooksNext$inboundSchema = exports.ListWebhooksPrevious$ = exports.ListWebhooksPrevious$outboundSchema = exports.ListWebhooksPrevious$inboundSchema = exports.ListWebhooksSelf$ = exports.ListWebhooksSelf$outboundSchema = exports.ListWebhooksSelf$inboundSchema = exports.ListWebhooksEmbedded$ = exports.ListWebhooksEmbedded$outboundSchema = exports.ListWebhooksEmbedded$inboundSchema = exports.Webhook$ = exports.Webhook$outboundSchema = exports.Webhook$inboundSchema = exports.ListWebhooksMode$ = exports.ListWebhooksMode$outboundSchema = exports.ListWebhooksMode$inboundSchema = exports.ListWebhooksStatus$ = exports.ListWebhooksStatus$outboundSchema = exports.ListWebhooksStatus$inboundSchema = exports.ListWebhooksBadRequestLinks$ = exports.ListWebhooksBadRequestLinks$outboundSchema = exports.ListWebhooksBadRequestLinks$inboundSchema = exports.ListWebhooksBadRequestDocumentation$ = exports.ListWebhooksBadRequestDocumentation$outboundSchema = exports.ListWebhooksBadRequestDocumentation$inboundSchema = exports.ListWebhooksRequest$ = exports.ListWebhooksRequest$outboundSchema = exports.ListWebhooksRequest$inboundSchema = exports.ListWebhooksEventTypes$ = exports.ListWebhooksEventTypes$outboundSchema = exports.ListWebhooksEventTypes$inboundSchema = exports.ListWebhooksSort$ = exports.ListWebhooksSort$outboundSchema = exports.ListWebhooksSort$inboundSchema = exports.ListWebhooksMode = exports.ListWebhooksStatus = exports.ListWebhooksEventTypes = exports.ListWebhooksSort = void 0;
39
+ exports.ListWebhooksNext$ = exports.ListWebhooksNext$outboundSchema = exports.ListWebhooksNext$inboundSchema = exports.ListWebhooksPrevious$ = exports.ListWebhooksPrevious$outboundSchema = exports.ListWebhooksPrevious$inboundSchema = exports.ListWebhooksSelf$ = exports.ListWebhooksSelf$outboundSchema = exports.ListWebhooksSelf$inboundSchema = exports.ListWebhooksEmbedded$ = exports.ListWebhooksEmbedded$outboundSchema = exports.ListWebhooksEmbedded$inboundSchema = exports.Webhook$ = exports.Webhook$outboundSchema = exports.Webhook$inboundSchema = exports.WebhookLinks$ = exports.WebhookLinks$outboundSchema = exports.WebhookLinks$inboundSchema = exports.WebhookDocumentation$ = exports.WebhookDocumentation$outboundSchema = exports.WebhookDocumentation$inboundSchema = exports.ListWebhooksMode$ = exports.ListWebhooksMode$outboundSchema = exports.ListWebhooksMode$inboundSchema = exports.ListWebhooksStatus$ = exports.ListWebhooksStatus$outboundSchema = exports.ListWebhooksStatus$inboundSchema = exports.WebhookWebhookEventTypes$ = exports.WebhookWebhookEventTypes$outboundSchema = exports.WebhookWebhookEventTypes$inboundSchema = exports.ListWebhooksBadRequestLinks$ = exports.ListWebhooksBadRequestLinks$outboundSchema = exports.ListWebhooksBadRequestLinks$inboundSchema = exports.ListWebhooksBadRequestDocumentation$ = exports.ListWebhooksBadRequestDocumentation$outboundSchema = exports.ListWebhooksBadRequestDocumentation$inboundSchema = exports.ListWebhooksRequest$ = exports.ListWebhooksRequest$outboundSchema = exports.ListWebhooksRequest$inboundSchema = exports.EventTypesWebhookEventTypes$ = exports.EventTypesWebhookEventTypes$outboundSchema = exports.EventTypesWebhookEventTypes$inboundSchema = exports.ListWebhooksSort$ = exports.ListWebhooksSort$outboundSchema = exports.ListWebhooksSort$inboundSchema = exports.ListWebhooksMode = exports.ListWebhooksStatus = exports.WebhookWebhookEventTypes = exports.EventTypesWebhookEventTypes = exports.ListWebhooksSort = void 0;
40
+ exports.ListWebhooksResponse$ = exports.ListWebhooksResponse$outboundSchema = exports.ListWebhooksResponse$inboundSchema = exports.ListWebhooksLinks$ = exports.ListWebhooksLinks$outboundSchema = exports.ListWebhooksLinks$inboundSchema = exports.ListWebhooksDocumentation$ = exports.ListWebhooksDocumentation$outboundSchema = exports.ListWebhooksDocumentation$inboundSchema = void 0;
40
41
  exports.listWebhooksRequestToJSON = listWebhooksRequestToJSON;
41
42
  exports.listWebhooksRequestFromJSON = listWebhooksRequestFromJSON;
42
43
  exports.listWebhooksBadRequestDocumentationToJSON = listWebhooksBadRequestDocumentationToJSON;
43
44
  exports.listWebhooksBadRequestDocumentationFromJSON = listWebhooksBadRequestDocumentationFromJSON;
44
45
  exports.listWebhooksBadRequestLinksToJSON = listWebhooksBadRequestLinksToJSON;
45
46
  exports.listWebhooksBadRequestLinksFromJSON = listWebhooksBadRequestLinksFromJSON;
47
+ exports.webhookDocumentationToJSON = webhookDocumentationToJSON;
48
+ exports.webhookDocumentationFromJSON = webhookDocumentationFromJSON;
49
+ exports.webhookLinksToJSON = webhookLinksToJSON;
50
+ exports.webhookLinksFromJSON = webhookLinksFromJSON;
46
51
  exports.webhookToJSON = webhookToJSON;
47
52
  exports.webhookFromJSON = webhookFromJSON;
48
53
  exports.listWebhooksEmbeddedToJSON = listWebhooksEmbeddedToJSON;
@@ -73,15 +78,28 @@ exports.ListWebhooksSort = {
73
78
  Desc: "desc",
74
79
  };
75
80
  /**
76
- * Used to filter out only the webhooks that are subscribed to certain types of events.
81
+ * The event's type
77
82
  */
78
- exports.ListWebhooksEventTypes = {
83
+ exports.EventTypesWebhookEventTypes = {
79
84
  PaymentLinkPaid: "payment-link.paid",
80
85
  BalanceTransactionCreated: "balance-transaction.created",
81
86
  SalesInvoiceCreated: "sales-invoice.created",
82
87
  SalesInvoiceIssued: "sales-invoice.issued",
83
88
  SalesInvoiceCanceled: "sales-invoice.canceled",
84
89
  SalesInvoicePaid: "sales-invoice.paid",
90
+ Wildcard: "*",
91
+ };
92
+ /**
93
+ * The event's type
94
+ */
95
+ exports.WebhookWebhookEventTypes = {
96
+ PaymentLinkPaid: "payment-link.paid",
97
+ BalanceTransactionCreated: "balance-transaction.created",
98
+ SalesInvoiceCreated: "sales-invoice.created",
99
+ SalesInvoiceIssued: "sales-invoice.issued",
100
+ SalesInvoiceCanceled: "sales-invoice.canceled",
101
+ SalesInvoicePaid: "sales-invoice.paid",
102
+ Wildcard: "*",
85
103
  };
86
104
  /**
87
105
  * The subscription's current status.
@@ -93,7 +111,7 @@ exports.ListWebhooksStatus = {
93
111
  Deleted: "deleted",
94
112
  };
95
113
  /**
96
- * The subscription's mode.
114
+ * Whether this entity was created in live mode or in test mode.
97
115
  */
98
116
  exports.ListWebhooksMode = {
99
117
  Live: "live",
@@ -115,26 +133,26 @@ var ListWebhooksSort$;
115
133
  ListWebhooksSort$.outboundSchema = exports.ListWebhooksSort$outboundSchema;
116
134
  })(ListWebhooksSort$ || (exports.ListWebhooksSort$ = ListWebhooksSort$ = {}));
117
135
  /** @internal */
118
- exports.ListWebhooksEventTypes$inboundSchema = z.nativeEnum(exports.ListWebhooksEventTypes);
136
+ exports.EventTypesWebhookEventTypes$inboundSchema = z.nativeEnum(exports.EventTypesWebhookEventTypes);
119
137
  /** @internal */
120
- exports.ListWebhooksEventTypes$outboundSchema = exports.ListWebhooksEventTypes$inboundSchema;
138
+ exports.EventTypesWebhookEventTypes$outboundSchema = exports.EventTypesWebhookEventTypes$inboundSchema;
121
139
  /**
122
140
  * @internal
123
141
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
142
  */
125
- var ListWebhooksEventTypes$;
126
- (function (ListWebhooksEventTypes$) {
127
- /** @deprecated use `ListWebhooksEventTypes$inboundSchema` instead. */
128
- ListWebhooksEventTypes$.inboundSchema = exports.ListWebhooksEventTypes$inboundSchema;
129
- /** @deprecated use `ListWebhooksEventTypes$outboundSchema` instead. */
130
- ListWebhooksEventTypes$.outboundSchema = exports.ListWebhooksEventTypes$outboundSchema;
131
- })(ListWebhooksEventTypes$ || (exports.ListWebhooksEventTypes$ = ListWebhooksEventTypes$ = {}));
143
+ var EventTypesWebhookEventTypes$;
144
+ (function (EventTypesWebhookEventTypes$) {
145
+ /** @deprecated use `EventTypesWebhookEventTypes$inboundSchema` instead. */
146
+ EventTypesWebhookEventTypes$.inboundSchema = exports.EventTypesWebhookEventTypes$inboundSchema;
147
+ /** @deprecated use `EventTypesWebhookEventTypes$outboundSchema` instead. */
148
+ EventTypesWebhookEventTypes$.outboundSchema = exports.EventTypesWebhookEventTypes$outboundSchema;
149
+ })(EventTypesWebhookEventTypes$ || (exports.EventTypesWebhookEventTypes$ = EventTypesWebhookEventTypes$ = {}));
132
150
  /** @internal */
133
151
  exports.ListWebhooksRequest$inboundSchema = z.object({
134
152
  from: z.string().optional(),
135
153
  limit: z.nullable(z.number().int()).optional(),
136
154
  sort: z.nullable(exports.ListWebhooksSort$inboundSchema).optional(),
137
- eventTypes: exports.ListWebhooksEventTypes$inboundSchema.optional(),
155
+ eventTypes: exports.EventTypesWebhookEventTypes$inboundSchema.optional(),
138
156
  testmode: z.nullable(z.boolean()).optional(),
139
157
  });
140
158
  /** @internal */
@@ -142,7 +160,7 @@ exports.ListWebhooksRequest$outboundSchema = z.object({
142
160
  from: z.string().optional(),
143
161
  limit: z.nullable(z.number().int()).optional(),
144
162
  sort: z.nullable(exports.ListWebhooksSort$outboundSchema).optional(),
145
- eventTypes: exports.ListWebhooksEventTypes$outboundSchema.optional(),
163
+ eventTypes: exports.EventTypesWebhookEventTypes$outboundSchema.optional(),
146
164
  testmode: z.nullable(z.boolean()).optional(),
147
165
  });
148
166
  /**
@@ -215,6 +233,21 @@ function listWebhooksBadRequestLinksFromJSON(jsonString) {
215
233
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListWebhooksBadRequestLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWebhooksBadRequestLinks' from JSON`);
216
234
  }
217
235
  /** @internal */
236
+ exports.WebhookWebhookEventTypes$inboundSchema = z.nativeEnum(exports.WebhookWebhookEventTypes);
237
+ /** @internal */
238
+ exports.WebhookWebhookEventTypes$outboundSchema = exports.WebhookWebhookEventTypes$inboundSchema;
239
+ /**
240
+ * @internal
241
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
242
+ */
243
+ var WebhookWebhookEventTypes$;
244
+ (function (WebhookWebhookEventTypes$) {
245
+ /** @deprecated use `WebhookWebhookEventTypes$inboundSchema` instead. */
246
+ WebhookWebhookEventTypes$.inboundSchema = exports.WebhookWebhookEventTypes$inboundSchema;
247
+ /** @deprecated use `WebhookWebhookEventTypes$outboundSchema` instead. */
248
+ WebhookWebhookEventTypes$.outboundSchema = exports.WebhookWebhookEventTypes$outboundSchema;
249
+ })(WebhookWebhookEventTypes$ || (exports.WebhookWebhookEventTypes$ = WebhookWebhookEventTypes$ = {}));
250
+ /** @internal */
218
251
  exports.ListWebhooksStatus$inboundSchema = z.nativeEnum(exports.ListWebhooksStatus);
219
252
  /** @internal */
220
253
  exports.ListWebhooksStatus$outboundSchema = exports.ListWebhooksStatus$inboundSchema;
@@ -245,28 +278,90 @@ var ListWebhooksMode$;
245
278
  ListWebhooksMode$.outboundSchema = exports.ListWebhooksMode$outboundSchema;
246
279
  })(ListWebhooksMode$ || (exports.ListWebhooksMode$ = ListWebhooksMode$ = {}));
247
280
  /** @internal */
281
+ exports.WebhookDocumentation$inboundSchema = z.object({
282
+ href: z.string(),
283
+ type: z.string(),
284
+ });
285
+ /** @internal */
286
+ exports.WebhookDocumentation$outboundSchema = z.object({
287
+ href: z.string(),
288
+ type: z.string(),
289
+ });
290
+ /**
291
+ * @internal
292
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
293
+ */
294
+ var WebhookDocumentation$;
295
+ (function (WebhookDocumentation$) {
296
+ /** @deprecated use `WebhookDocumentation$inboundSchema` instead. */
297
+ WebhookDocumentation$.inboundSchema = exports.WebhookDocumentation$inboundSchema;
298
+ /** @deprecated use `WebhookDocumentation$outboundSchema` instead. */
299
+ WebhookDocumentation$.outboundSchema = exports.WebhookDocumentation$outboundSchema;
300
+ })(WebhookDocumentation$ || (exports.WebhookDocumentation$ = WebhookDocumentation$ = {}));
301
+ function webhookDocumentationToJSON(webhookDocumentation) {
302
+ return JSON.stringify(exports.WebhookDocumentation$outboundSchema.parse(webhookDocumentation));
303
+ }
304
+ function webhookDocumentationFromJSON(jsonString) {
305
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDocumentation' from JSON`);
306
+ }
307
+ /** @internal */
308
+ exports.WebhookLinks$inboundSchema = z.object({
309
+ documentation: z.lazy(() => exports.WebhookDocumentation$inboundSchema),
310
+ });
311
+ /** @internal */
312
+ exports.WebhookLinks$outboundSchema = z.object({
313
+ documentation: z.lazy(() => exports.WebhookDocumentation$outboundSchema),
314
+ });
315
+ /**
316
+ * @internal
317
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
318
+ */
319
+ var WebhookLinks$;
320
+ (function (WebhookLinks$) {
321
+ /** @deprecated use `WebhookLinks$inboundSchema` instead. */
322
+ WebhookLinks$.inboundSchema = exports.WebhookLinks$inboundSchema;
323
+ /** @deprecated use `WebhookLinks$outboundSchema` instead. */
324
+ WebhookLinks$.outboundSchema = exports.WebhookLinks$outboundSchema;
325
+ })(WebhookLinks$ || (exports.WebhookLinks$ = WebhookLinks$ = {}));
326
+ function webhookLinksToJSON(webhookLinks) {
327
+ return JSON.stringify(exports.WebhookLinks$outboundSchema.parse(webhookLinks));
328
+ }
329
+ function webhookLinksFromJSON(jsonString) {
330
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookLinks' from JSON`);
331
+ }
332
+ /** @internal */
248
333
  exports.Webhook$inboundSchema = z.object({
249
- resource: z.string().optional(),
250
- id: z.string().optional(),
251
- url: z.string().optional(),
252
- profileId: z.string().optional(),
253
- createdAt: z.string().optional(),
254
- name: z.string().optional(),
255
- eventTypes: z.array(z.string()).optional(),
256
- status: exports.ListWebhooksStatus$inboundSchema.optional(),
257
- mode: exports.ListWebhooksMode$inboundSchema.optional(),
334
+ resource: z.string(),
335
+ id: z.string(),
336
+ url: z.string(),
337
+ profileId: z.nullable(z.string()),
338
+ createdAt: z.string(),
339
+ name: z.string(),
340
+ eventTypes: z.array(exports.WebhookWebhookEventTypes$inboundSchema),
341
+ status: exports.ListWebhooksStatus$inboundSchema,
342
+ mode: exports.ListWebhooksMode$inboundSchema,
343
+ _links: z.lazy(() => exports.WebhookLinks$inboundSchema),
344
+ }).transform((v) => {
345
+ return (0, primitives_js_1.remap)(v, {
346
+ "_links": "links",
347
+ });
258
348
  });
259
349
  /** @internal */
260
350
  exports.Webhook$outboundSchema = z.object({
261
- resource: z.string().optional(),
262
- id: z.string().optional(),
263
- url: z.string().optional(),
264
- profileId: z.string().optional(),
265
- createdAt: z.string().optional(),
266
- name: z.string().optional(),
267
- eventTypes: z.array(z.string()).optional(),
268
- status: exports.ListWebhooksStatus$outboundSchema.optional(),
269
- mode: exports.ListWebhooksMode$outboundSchema.optional(),
351
+ resource: z.string(),
352
+ id: z.string(),
353
+ url: z.string(),
354
+ profileId: z.nullable(z.string()),
355
+ createdAt: z.string(),
356
+ name: z.string(),
357
+ eventTypes: z.array(exports.WebhookWebhookEventTypes$outboundSchema),
358
+ status: exports.ListWebhooksStatus$outboundSchema,
359
+ mode: exports.ListWebhooksMode$outboundSchema,
360
+ links: z.lazy(() => exports.WebhookLinks$outboundSchema),
361
+ }).transform((v) => {
362
+ return (0, primitives_js_1.remap)(v, {
363
+ links: "_links",
364
+ });
270
365
  });
271
366
  /**
272
367
  * @internal
@@ -287,11 +382,11 @@ function webhookFromJSON(jsonString) {
287
382
  }
288
383
  /** @internal */
289
384
  exports.ListWebhooksEmbedded$inboundSchema = z.object({
290
- webhooks: z.array(z.lazy(() => exports.Webhook$inboundSchema)).optional(),
385
+ webhooks: z.array(z.lazy(() => exports.Webhook$inboundSchema)),
291
386
  });
292
387
  /** @internal */
293
388
  exports.ListWebhooksEmbedded$outboundSchema = z.object({
294
- webhooks: z.array(z.lazy(() => exports.Webhook$outboundSchema)).optional(),
389
+ webhooks: z.array(z.lazy(() => exports.Webhook$outboundSchema)),
295
390
  });
296
391
  /**
297
392
  * @internal
@@ -451,9 +546,9 @@ function listWebhooksLinksFromJSON(jsonString) {
451
546
  }
452
547
  /** @internal */
453
548
  exports.ListWebhooksResponse$inboundSchema = z.object({
454
- count: z.number().int().optional(),
455
- _embedded: z.lazy(() => exports.ListWebhooksEmbedded$inboundSchema).optional(),
456
- _links: z.lazy(() => exports.ListWebhooksLinks$inboundSchema).optional(),
549
+ count: z.number().int(),
550
+ _embedded: z.lazy(() => exports.ListWebhooksEmbedded$inboundSchema),
551
+ _links: z.lazy(() => exports.ListWebhooksLinks$inboundSchema),
457
552
  }).transform((v) => {
458
553
  return (0, primitives_js_1.remap)(v, {
459
554
  "_embedded": "embedded",
@@ -462,9 +557,9 @@ exports.ListWebhooksResponse$inboundSchema = z.object({
462
557
  });
463
558
  /** @internal */
464
559
  exports.ListWebhooksResponse$outboundSchema = z.object({
465
- count: z.number().int().optional(),
466
- embedded: z.lazy(() => exports.ListWebhooksEmbedded$outboundSchema).optional(),
467
- links: z.lazy(() => exports.ListWebhooksLinks$outboundSchema).optional(),
560
+ count: z.number().int(),
561
+ embedded: z.lazy(() => exports.ListWebhooksEmbedded$outboundSchema),
562
+ links: z.lazy(() => exports.ListWebhooksLinks$outboundSchema),
468
563
  }).transform((v) => {
469
564
  return (0, primitives_js_1.remap)(v, {
470
565
  embedded: "_embedded",
@@ -1 +1 @@
1
- {"version":3,"file":"listwebhooks.js","sourceRoot":"","sources":["../../../../src/models/operations/listwebhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwWH,8DAMC;AAED,kEAQC;AA2CD,8FAQC;AAED,kGASC;AA0CD,8EAQC;AAED,kFAQC;AAqGD,sCAEC;AAED,0CAQC;AAsCD,gEAMC;AAED,oEAQC;AAyCD,wDAMC;AAED,4DAQC;AAyCD,gEAMC;AAED,oEAQC;AAyCD,wDAMC;AAED,4DAQC;AAyCD,0EAMC;AAED,8EAQC;AA+CD,0DAMC;AAED,8DAQC;AAsDD,gEAMC;AAED,oEAQC;AAhgCD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKjD;;;;;GAKG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AASX;;GAEG;AACU,QAAA,sBAAsB,GAAG;IACpC,eAAe,EAAE,mBAAmB;IACpC,yBAAyB,EAAE,6BAA6B;IACxD,mBAAmB,EAAE,uBAAuB;IAC5C,kBAAkB,EAAE,sBAAsB;IAC1C,oBAAoB,EAAE,wBAAwB;IAC9C,gBAAgB,EAAE,oBAAoB;CAC9B,CAAC;AAwDX;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,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mC,CAAC,CAAC,QAAQ,EAAE;IACtE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wCAAgC,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"listwebhooks.js","sourceRoot":"","sources":["../../../../src/models/operations/listwebhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0ZH,8DAMC;AAED,kEAQC;AA2CD,8FAQC;AAED,kGASC;AA0CD,8EAQC;AAED,kFAQC;AAwGD,gEAMC;AAED,oEAQC;AAsCD,gDAEC;AAED,oDAQC;AAsED,sCAEC;AAED,0CAQC;AAsCD,gEAMC;AAED,oEAQC;AAyCD,wDAMC;AAED,4DAQC;AAyCD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,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -3,20 +3,27 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
- * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those that require explicit selection. Separate multiple event types with a comma.
6
+ * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
7
+ *
8
+ * @remarks
9
+ * that require explicit selection. Separate multiple event types with a comma.
7
10
  */
8
- export declare const UpdateWebhookEventTypes: {
11
+ export declare const UpdateWebhookWebhookEventTypesRequest: {
9
12
  readonly PaymentLinkPaid: "payment-link.paid";
10
13
  readonly BalanceTransactionCreated: "balance-transaction.created";
11
14
  readonly SalesInvoiceCreated: "sales-invoice.created";
12
15
  readonly SalesInvoiceIssued: "sales-invoice.issued";
13
16
  readonly SalesInvoiceCanceled: "sales-invoice.canceled";
14
17
  readonly SalesInvoicePaid: "sales-invoice.paid";
18
+ readonly Wildcard: "*";
15
19
  };
16
20
  /**
17
- * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those that require explicit selection. Separate multiple event types with a comma.
21
+ * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
22
+ *
23
+ * @remarks
24
+ * that require explicit selection. Separate multiple event types with a comma.
18
25
  */
19
- export type UpdateWebhookEventTypes = ClosedEnum<typeof UpdateWebhookEventTypes>;
26
+ export type UpdateWebhookWebhookEventTypesRequest = ClosedEnum<typeof UpdateWebhookWebhookEventTypesRequest>;
20
27
  export type UpdateWebhookRequestBody = {
21
28
  /**
22
29
  * A name that identifies the webhook.
@@ -27,9 +34,12 @@ export type UpdateWebhookRequestBody = {
27
34
  */
28
35
  url?: string | undefined;
29
36
  /**
30
- * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those that require explicit selection. Separate multiple event types with a comma.
37
+ * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
38
+ *
39
+ * @remarks
40
+ * that require explicit selection. Separate multiple event types with a comma.
31
41
  */
32
- eventTypes?: UpdateWebhookEventTypes | undefined;
42
+ webhookEventTypes?: UpdateWebhookWebhookEventTypesRequest | undefined;
33
43
  /**
34
44
  * Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
35
45
  *
@@ -73,6 +83,22 @@ export type UpdateWebhookNotFoundLinks = {
73
83
  */
74
84
  documentation: UpdateWebhookNotFoundDocumentation;
75
85
  };
86
+ /**
87
+ * The event's type
88
+ */
89
+ export declare const UpdateWebhookEventTypeWebhookEventTypes: {
90
+ readonly PaymentLinkPaid: "payment-link.paid";
91
+ readonly BalanceTransactionCreated: "balance-transaction.created";
92
+ readonly SalesInvoiceCreated: "sales-invoice.created";
93
+ readonly SalesInvoiceIssued: "sales-invoice.issued";
94
+ readonly SalesInvoiceCanceled: "sales-invoice.canceled";
95
+ readonly SalesInvoicePaid: "sales-invoice.paid";
96
+ readonly Wildcard: "*";
97
+ };
98
+ /**
99
+ * The event's type
100
+ */
101
+ export type UpdateWebhookEventTypeWebhookEventTypes = ClosedEnum<typeof UpdateWebhookEventTypeWebhookEventTypes>;
76
102
  /**
77
103
  * The subscription's current status.
78
104
  */
@@ -87,16 +113,38 @@ export declare const UpdateWebhookStatus: {
87
113
  */
88
114
  export type UpdateWebhookStatus = ClosedEnum<typeof UpdateWebhookStatus>;
89
115
  /**
90
- * The subscription's mode.
116
+ * Whether this entity was created in live mode or in test mode.
91
117
  */
92
118
  export declare const UpdateWebhookMode: {
93
119
  readonly Live: "live";
94
120
  readonly Test: "test";
95
121
  };
96
122
  /**
97
- * The subscription's mode.
123
+ * Whether this entity was created in live mode or in test mode.
98
124
  */
99
125
  export type UpdateWebhookMode = ClosedEnum<typeof UpdateWebhookMode>;
126
+ /**
127
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
128
+ */
129
+ export type UpdateWebhookDocumentation = {
130
+ /**
131
+ * The actual URL string.
132
+ */
133
+ href: string;
134
+ /**
135
+ * The content type of the page or endpoint the URL points to.
136
+ */
137
+ type: string;
138
+ };
139
+ /**
140
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
141
+ */
142
+ export type UpdateWebhookLinks = {
143
+ /**
144
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
145
+ */
146
+ documentation: UpdateWebhookDocumentation;
147
+ };
100
148
  /**
101
149
  * The webhook object.
102
150
  */
@@ -107,50 +155,54 @@ export type UpdateWebhookResponse = {
107
155
  * @remarks
108
156
  * Will always contain the string `webhook` for this endpoint.
109
157
  */
110
- resource?: string | undefined;
158
+ resource: string;
111
159
  /**
112
160
  * The identifier uniquely referring to this subscription.
113
161
  */
114
- id?: string | undefined;
162
+ id: string;
115
163
  /**
116
164
  * The subscription's events destination.
117
165
  */
118
- url?: string | undefined;
166
+ url: string;
119
167
  /**
120
168
  * The identifier uniquely referring to the profile that created the subscription.
121
169
  */
122
- profileId?: string | undefined;
170
+ profileId: string | null;
123
171
  /**
124
172
  * The subscription's date time of creation.
125
173
  */
126
- createdAt?: string | undefined;
174
+ createdAt: string;
127
175
  /**
128
176
  * The subscription's name.
129
177
  */
130
- name?: string | undefined;
178
+ name: string;
131
179
  /**
132
180
  * The events types that are subscribed.
133
181
  */
134
- eventTypes?: Array<string> | undefined;
182
+ eventTypes: Array<UpdateWebhookEventTypeWebhookEventTypes>;
135
183
  /**
136
184
  * The subscription's current status.
137
185
  */
138
- status?: UpdateWebhookStatus | undefined;
186
+ status: UpdateWebhookStatus;
139
187
  /**
140
- * The subscription's mode.
188
+ * Whether this entity was created in live mode or in test mode.
141
189
  */
142
- mode?: UpdateWebhookMode | undefined;
190
+ mode: UpdateWebhookMode;
191
+ /**
192
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
193
+ */
194
+ links: UpdateWebhookLinks;
143
195
  };
144
196
  /** @internal */
145
- export declare const UpdateWebhookEventTypes$inboundSchema: z.ZodNativeEnum<typeof UpdateWebhookEventTypes>;
197
+ export declare const UpdateWebhookWebhookEventTypesRequest$inboundSchema: z.ZodNativeEnum<typeof UpdateWebhookWebhookEventTypesRequest>;
146
198
  /** @internal */
147
- export declare const UpdateWebhookEventTypes$outboundSchema: z.ZodNativeEnum<typeof UpdateWebhookEventTypes>;
199
+ export declare const UpdateWebhookWebhookEventTypesRequest$outboundSchema: z.ZodNativeEnum<typeof UpdateWebhookWebhookEventTypesRequest>;
148
200
  /**
149
201
  * @internal
150
202
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
151
203
  */
152
- export declare namespace UpdateWebhookEventTypes$ {
153
- /** @deprecated use `UpdateWebhookEventTypes$inboundSchema` instead. */
204
+ export declare namespace UpdateWebhookWebhookEventTypesRequest$ {
205
+ /** @deprecated use `UpdateWebhookWebhookEventTypesRequest$inboundSchema` instead. */
154
206
  const inboundSchema: z.ZodNativeEnum<{
155
207
  readonly PaymentLinkPaid: "payment-link.paid";
156
208
  readonly BalanceTransactionCreated: "balance-transaction.created";
@@ -158,8 +210,9 @@ export declare namespace UpdateWebhookEventTypes$ {
158
210
  readonly SalesInvoiceIssued: "sales-invoice.issued";
159
211
  readonly SalesInvoiceCanceled: "sales-invoice.canceled";
160
212
  readonly SalesInvoicePaid: "sales-invoice.paid";
213
+ readonly Wildcard: "*";
161
214
  }>;
162
- /** @deprecated use `UpdateWebhookEventTypes$outboundSchema` instead. */
215
+ /** @deprecated use `UpdateWebhookWebhookEventTypesRequest$outboundSchema` instead. */
163
216
  const outboundSchema: z.ZodNativeEnum<{
164
217
  readonly PaymentLinkPaid: "payment-link.paid";
165
218
  readonly BalanceTransactionCreated: "balance-transaction.created";
@@ -167,6 +220,7 @@ export declare namespace UpdateWebhookEventTypes$ {
167
220
  readonly SalesInvoiceIssued: "sales-invoice.issued";
168
221
  readonly SalesInvoiceCanceled: "sales-invoice.canceled";
169
222
  readonly SalesInvoicePaid: "sales-invoice.paid";
223
+ readonly Wildcard: "*";
170
224
  }>;
171
225
  }
172
226
  /** @internal */
@@ -308,6 +362,36 @@ export declare namespace UpdateWebhookNotFoundLinks$ {
308
362
  export declare function updateWebhookNotFoundLinksToJSON(updateWebhookNotFoundLinks: UpdateWebhookNotFoundLinks): string;
309
363
  export declare function updateWebhookNotFoundLinksFromJSON(jsonString: string): SafeParseResult<UpdateWebhookNotFoundLinks, SDKValidationError>;
310
364
  /** @internal */
365
+ export declare const UpdateWebhookEventTypeWebhookEventTypes$inboundSchema: z.ZodNativeEnum<typeof UpdateWebhookEventTypeWebhookEventTypes>;
366
+ /** @internal */
367
+ export declare const UpdateWebhookEventTypeWebhookEventTypes$outboundSchema: z.ZodNativeEnum<typeof UpdateWebhookEventTypeWebhookEventTypes>;
368
+ /**
369
+ * @internal
370
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
+ */
372
+ export declare namespace UpdateWebhookEventTypeWebhookEventTypes$ {
373
+ /** @deprecated use `UpdateWebhookEventTypeWebhookEventTypes$inboundSchema` instead. */
374
+ const inboundSchema: z.ZodNativeEnum<{
375
+ readonly PaymentLinkPaid: "payment-link.paid";
376
+ readonly BalanceTransactionCreated: "balance-transaction.created";
377
+ readonly SalesInvoiceCreated: "sales-invoice.created";
378
+ readonly SalesInvoiceIssued: "sales-invoice.issued";
379
+ readonly SalesInvoiceCanceled: "sales-invoice.canceled";
380
+ readonly SalesInvoicePaid: "sales-invoice.paid";
381
+ readonly Wildcard: "*";
382
+ }>;
383
+ /** @deprecated use `UpdateWebhookEventTypeWebhookEventTypes$outboundSchema` instead. */
384
+ const outboundSchema: z.ZodNativeEnum<{
385
+ readonly PaymentLinkPaid: "payment-link.paid";
386
+ readonly BalanceTransactionCreated: "balance-transaction.created";
387
+ readonly SalesInvoiceCreated: "sales-invoice.created";
388
+ readonly SalesInvoiceIssued: "sales-invoice.issued";
389
+ readonly SalesInvoiceCanceled: "sales-invoice.canceled";
390
+ readonly SalesInvoicePaid: "sales-invoice.paid";
391
+ readonly Wildcard: "*";
392
+ }>;
393
+ }
394
+ /** @internal */
311
395
  export declare const UpdateWebhookStatus$inboundSchema: z.ZodNativeEnum<typeof UpdateWebhookStatus>;
312
396
  /** @internal */
313
397
  export declare const UpdateWebhookStatus$outboundSchema: z.ZodNativeEnum<typeof UpdateWebhookStatus>;
@@ -352,18 +436,64 @@ export declare namespace UpdateWebhookMode$ {
352
436
  }>;
353
437
  }
354
438
  /** @internal */
439
+ export declare const UpdateWebhookDocumentation$inboundSchema: z.ZodType<UpdateWebhookDocumentation, z.ZodTypeDef, unknown>;
440
+ /** @internal */
441
+ export type UpdateWebhookDocumentation$Outbound = {
442
+ href: string;
443
+ type: string;
444
+ };
445
+ /** @internal */
446
+ export declare const UpdateWebhookDocumentation$outboundSchema: z.ZodType<UpdateWebhookDocumentation$Outbound, z.ZodTypeDef, UpdateWebhookDocumentation>;
447
+ /**
448
+ * @internal
449
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
450
+ */
451
+ export declare namespace UpdateWebhookDocumentation$ {
452
+ /** @deprecated use `UpdateWebhookDocumentation$inboundSchema` instead. */
453
+ const inboundSchema: z.ZodType<UpdateWebhookDocumentation, z.ZodTypeDef, unknown>;
454
+ /** @deprecated use `UpdateWebhookDocumentation$outboundSchema` instead. */
455
+ const outboundSchema: z.ZodType<UpdateWebhookDocumentation$Outbound, z.ZodTypeDef, UpdateWebhookDocumentation>;
456
+ /** @deprecated use `UpdateWebhookDocumentation$Outbound` instead. */
457
+ type Outbound = UpdateWebhookDocumentation$Outbound;
458
+ }
459
+ export declare function updateWebhookDocumentationToJSON(updateWebhookDocumentation: UpdateWebhookDocumentation): string;
460
+ export declare function updateWebhookDocumentationFromJSON(jsonString: string): SafeParseResult<UpdateWebhookDocumentation, SDKValidationError>;
461
+ /** @internal */
462
+ export declare const UpdateWebhookLinks$inboundSchema: z.ZodType<UpdateWebhookLinks, z.ZodTypeDef, unknown>;
463
+ /** @internal */
464
+ export type UpdateWebhookLinks$Outbound = {
465
+ documentation: UpdateWebhookDocumentation$Outbound;
466
+ };
467
+ /** @internal */
468
+ export declare const UpdateWebhookLinks$outboundSchema: z.ZodType<UpdateWebhookLinks$Outbound, z.ZodTypeDef, UpdateWebhookLinks>;
469
+ /**
470
+ * @internal
471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
472
+ */
473
+ export declare namespace UpdateWebhookLinks$ {
474
+ /** @deprecated use `UpdateWebhookLinks$inboundSchema` instead. */
475
+ const inboundSchema: z.ZodType<UpdateWebhookLinks, z.ZodTypeDef, unknown>;
476
+ /** @deprecated use `UpdateWebhookLinks$outboundSchema` instead. */
477
+ const outboundSchema: z.ZodType<UpdateWebhookLinks$Outbound, z.ZodTypeDef, UpdateWebhookLinks>;
478
+ /** @deprecated use `UpdateWebhookLinks$Outbound` instead. */
479
+ type Outbound = UpdateWebhookLinks$Outbound;
480
+ }
481
+ export declare function updateWebhookLinksToJSON(updateWebhookLinks: UpdateWebhookLinks): string;
482
+ export declare function updateWebhookLinksFromJSON(jsonString: string): SafeParseResult<UpdateWebhookLinks, SDKValidationError>;
483
+ /** @internal */
355
484
  export declare const UpdateWebhookResponse$inboundSchema: z.ZodType<UpdateWebhookResponse, z.ZodTypeDef, unknown>;
356
485
  /** @internal */
357
486
  export type UpdateWebhookResponse$Outbound = {
358
- resource?: string | undefined;
359
- id?: string | undefined;
360
- url?: string | undefined;
361
- profileId?: string | undefined;
362
- createdAt?: string | undefined;
363
- name?: string | undefined;
364
- eventTypes?: Array<string> | undefined;
365
- status?: string | undefined;
366
- mode?: string | undefined;
487
+ resource: string;
488
+ id: string;
489
+ url: string;
490
+ profileId: string | null;
491
+ createdAt: string;
492
+ name: string;
493
+ eventTypes: Array<string>;
494
+ status: string;
495
+ mode: string;
496
+ _links: UpdateWebhookLinks$Outbound;
367
497
  };
368
498
  /** @internal */
369
499
  export declare const UpdateWebhookResponse$outboundSchema: z.ZodType<UpdateWebhookResponse$Outbound, z.ZodTypeDef, UpdateWebhookResponse>;