mollie-api-typescript 0.1.6 → 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 (127) hide show
  1. package/FUNCTIONS.md +7 -139
  2. package/README.md +77 -877
  3. package/bin/mcp-server.js +385 -192
  4. package/bin/mcp-server.js.map +20 -20
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +40 -40
  9. package/dist/commonjs/mcp-server/server.js.map +1 -1
  10. package/dist/commonjs/models/operations/cancelpayment.d.ts +3 -3
  11. package/dist/commonjs/models/operations/cancelpayment.js +1 -1
  12. package/dist/commonjs/models/operations/createcustomerpayment.d.ts +3 -3
  13. package/dist/commonjs/models/operations/createcustomerpayment.js +1 -1
  14. package/dist/commonjs/models/operations/createpayment.d.ts +3 -3
  15. package/dist/commonjs/models/operations/createpayment.js +1 -1
  16. package/dist/commonjs/models/operations/createwebhook.d.ts +96 -38
  17. package/dist/commonjs/models/operations/createwebhook.d.ts.map +1 -1
  18. package/dist/commonjs/models/operations/createwebhook.js +79 -41
  19. package/dist/commonjs/models/operations/createwebhook.js.map +1 -1
  20. package/dist/commonjs/models/operations/getpayment.d.ts +3 -3
  21. package/dist/commonjs/models/operations/getpayment.js +1 -1
  22. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +3 -3
  23. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +1 -1
  24. package/dist/commonjs/models/operations/getwebhook.d.ts +139 -21
  25. package/dist/commonjs/models/operations/getwebhook.d.ts.map +1 -1
  26. package/dist/commonjs/models/operations/getwebhook.js +114 -20
  27. package/dist/commonjs/models/operations/getwebhook.js.map +1 -1
  28. package/dist/commonjs/models/operations/getwebhookevent.d.ts +63 -17
  29. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/getwebhookevent.js +48 -21
  31. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  32. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +3 -3
  33. package/dist/commonjs/models/operations/listcustomerpayments.js +1 -1
  34. package/dist/commonjs/models/operations/listpayments.d.ts +3 -3
  35. package/dist/commonjs/models/operations/listpayments.js +1 -1
  36. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +3 -3
  37. package/dist/commonjs/models/operations/listsettlementpayments.js +1 -1
  38. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +3 -3
  39. package/dist/commonjs/models/operations/listsubscriptionpayments.js +1 -1
  40. package/dist/commonjs/models/operations/listwebhooks.d.ts +160 -39
  41. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/listwebhooks.js +136 -41
  43. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  44. package/dist/commonjs/models/operations/updatepayment.d.ts +3 -3
  45. package/dist/commonjs/models/operations/updatepayment.js +1 -1
  46. package/dist/commonjs/models/operations/updatewebhook.d.ts +162 -32
  47. package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/updatewebhook.js +140 -33
  49. package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
  50. package/dist/commonjs/sdk/sdk.d.ts +24 -24
  51. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  52. package/dist/commonjs/sdk/sdk.js +36 -36
  53. package/dist/commonjs/sdk/sdk.js.map +1 -1
  54. package/dist/esm/lib/config.d.ts +3 -3
  55. package/dist/esm/lib/config.js +3 -3
  56. package/dist/esm/mcp-server/mcp-server.js +1 -1
  57. package/dist/esm/mcp-server/server.js +40 -40
  58. package/dist/esm/mcp-server/server.js.map +1 -1
  59. package/dist/esm/models/operations/cancelpayment.d.ts +3 -3
  60. package/dist/esm/models/operations/cancelpayment.js +1 -1
  61. package/dist/esm/models/operations/createcustomerpayment.d.ts +3 -3
  62. package/dist/esm/models/operations/createcustomerpayment.js +1 -1
  63. package/dist/esm/models/operations/createpayment.d.ts +3 -3
  64. package/dist/esm/models/operations/createpayment.js +1 -1
  65. package/dist/esm/models/operations/createwebhook.d.ts +96 -38
  66. package/dist/esm/models/operations/createwebhook.d.ts.map +1 -1
  67. package/dist/esm/models/operations/createwebhook.js +78 -40
  68. package/dist/esm/models/operations/createwebhook.js.map +1 -1
  69. package/dist/esm/models/operations/getpayment.d.ts +3 -3
  70. package/dist/esm/models/operations/getpayment.js +1 -1
  71. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +3 -3
  72. package/dist/esm/models/operations/getpaymentlinkpayments.js +1 -1
  73. package/dist/esm/models/operations/getwebhook.d.ts +139 -21
  74. package/dist/esm/models/operations/getwebhook.d.ts.map +1 -1
  75. package/dist/esm/models/operations/getwebhook.js +109 -19
  76. package/dist/esm/models/operations/getwebhook.js.map +1 -1
  77. package/dist/esm/models/operations/getwebhookevent.d.ts +63 -17
  78. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  79. package/dist/esm/models/operations/getwebhookevent.js +45 -18
  80. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  81. package/dist/esm/models/operations/listcustomerpayments.d.ts +3 -3
  82. package/dist/esm/models/operations/listcustomerpayments.js +1 -1
  83. package/dist/esm/models/operations/listpayments.d.ts +3 -3
  84. package/dist/esm/models/operations/listpayments.js +1 -1
  85. package/dist/esm/models/operations/listsettlementpayments.d.ts +3 -3
  86. package/dist/esm/models/operations/listsettlementpayments.js +1 -1
  87. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +3 -3
  88. package/dist/esm/models/operations/listsubscriptionpayments.js +1 -1
  89. package/dist/esm/models/operations/listwebhooks.d.ts +160 -39
  90. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  91. package/dist/esm/models/operations/listwebhooks.js +130 -40
  92. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  93. package/dist/esm/models/operations/updatepayment.d.ts +3 -3
  94. package/dist/esm/models/operations/updatepayment.js +1 -1
  95. package/dist/esm/models/operations/updatewebhook.d.ts +162 -32
  96. package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
  97. package/dist/esm/models/operations/updatewebhook.js +135 -32
  98. package/dist/esm/models/operations/updatewebhook.js.map +1 -1
  99. package/dist/esm/sdk/sdk.d.ts +24 -24
  100. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  101. package/dist/esm/sdk/sdk.js +36 -36
  102. package/dist/esm/sdk/sdk.js.map +1 -1
  103. package/docs/sdks/webhooks/README.md +4 -4
  104. package/examples/balancesList.example.ts +33 -0
  105. package/examples/package-lock.json +1 -1
  106. package/jsr.json +1 -1
  107. package/package.json +1 -1
  108. package/src/lib/config.ts +3 -3
  109. package/src/mcp-server/mcp-server.ts +1 -1
  110. package/src/mcp-server/server.ts +40 -40
  111. package/src/models/operations/cancelpayment.ts +1 -1
  112. package/src/models/operations/createcustomerpayment.ts +1 -1
  113. package/src/models/operations/createpayment.ts +1 -1
  114. package/src/models/operations/createwebhook.ts +134 -73
  115. package/src/models/operations/getpayment.ts +1 -1
  116. package/src/models/operations/getpaymentlinkpayments.ts +1 -1
  117. package/src/models/operations/getwebhook.ts +228 -39
  118. package/src/models/operations/getwebhookevent.ts +75 -35
  119. package/src/models/operations/listcustomerpayments.ts +1 -1
  120. package/src/models/operations/listpayments.ts +1 -1
  121. package/src/models/operations/listsettlementpayments.ts +1 -1
  122. package/src/models/operations/listsubscriptionpayments.ts +1 -1
  123. package/src/models/operations/listwebhooks.ts +262 -73
  124. package/src/models/operations/updatepayment.ts +1 -1
  125. package/src/models/operations/updatewebhook.ts +273 -59
  126. package/src/sdk/sdk.ts +60 -60
  127. package/examples/paymentsCreate.example.ts +0 -166
@@ -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>;
@@ -1 +1 @@
1
- {"version":3,"file":"updatewebhook.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatewebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,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C3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.UpdateWebhookResponse$ = exports.UpdateWebhookResponse$outboundSchema = exports.UpdateWebhookResponse$inboundSchema = exports.UpdateWebhookMode$ = exports.UpdateWebhookMode$outboundSchema = exports.UpdateWebhookMode$inboundSchema = exports.UpdateWebhookStatus$ = exports.UpdateWebhookStatus$outboundSchema = exports.UpdateWebhookStatus$inboundSchema = exports.UpdateWebhookNotFoundLinks$ = exports.UpdateWebhookNotFoundLinks$outboundSchema = exports.UpdateWebhookNotFoundLinks$inboundSchema = exports.UpdateWebhookNotFoundDocumentation$ = exports.UpdateWebhookNotFoundDocumentation$outboundSchema = exports.UpdateWebhookNotFoundDocumentation$inboundSchema = exports.UpdateWebhookUnprocessableEntityLinks$ = exports.UpdateWebhookUnprocessableEntityLinks$outboundSchema = exports.UpdateWebhookUnprocessableEntityLinks$inboundSchema = exports.UpdateWebhookUnprocessableEntityDocumentation$ = exports.UpdateWebhookUnprocessableEntityDocumentation$outboundSchema = exports.UpdateWebhookUnprocessableEntityDocumentation$inboundSchema = exports.UpdateWebhookRequest$ = exports.UpdateWebhookRequest$outboundSchema = exports.UpdateWebhookRequest$inboundSchema = exports.UpdateWebhookRequestBody$ = exports.UpdateWebhookRequestBody$outboundSchema = exports.UpdateWebhookRequestBody$inboundSchema = exports.UpdateWebhookEventTypes$ = exports.UpdateWebhookEventTypes$outboundSchema = exports.UpdateWebhookEventTypes$inboundSchema = exports.UpdateWebhookMode = exports.UpdateWebhookStatus = exports.UpdateWebhookEventTypes = void 0;
39
+ exports.UpdateWebhookResponse$ = exports.UpdateWebhookResponse$outboundSchema = exports.UpdateWebhookResponse$inboundSchema = exports.UpdateWebhookLinks$ = exports.UpdateWebhookLinks$outboundSchema = exports.UpdateWebhookLinks$inboundSchema = exports.UpdateWebhookDocumentation$ = exports.UpdateWebhookDocumentation$outboundSchema = exports.UpdateWebhookDocumentation$inboundSchema = exports.UpdateWebhookMode$ = exports.UpdateWebhookMode$outboundSchema = exports.UpdateWebhookMode$inboundSchema = exports.UpdateWebhookStatus$ = exports.UpdateWebhookStatus$outboundSchema = exports.UpdateWebhookStatus$inboundSchema = exports.UpdateWebhookEventTypeWebhookEventTypes$ = exports.UpdateWebhookEventTypeWebhookEventTypes$outboundSchema = exports.UpdateWebhookEventTypeWebhookEventTypes$inboundSchema = exports.UpdateWebhookNotFoundLinks$ = exports.UpdateWebhookNotFoundLinks$outboundSchema = exports.UpdateWebhookNotFoundLinks$inboundSchema = exports.UpdateWebhookNotFoundDocumentation$ = exports.UpdateWebhookNotFoundDocumentation$outboundSchema = exports.UpdateWebhookNotFoundDocumentation$inboundSchema = exports.UpdateWebhookUnprocessableEntityLinks$ = exports.UpdateWebhookUnprocessableEntityLinks$outboundSchema = exports.UpdateWebhookUnprocessableEntityLinks$inboundSchema = exports.UpdateWebhookUnprocessableEntityDocumentation$ = exports.UpdateWebhookUnprocessableEntityDocumentation$outboundSchema = exports.UpdateWebhookUnprocessableEntityDocumentation$inboundSchema = exports.UpdateWebhookRequest$ = exports.UpdateWebhookRequest$outboundSchema = exports.UpdateWebhookRequest$inboundSchema = exports.UpdateWebhookRequestBody$ = exports.UpdateWebhookRequestBody$outboundSchema = exports.UpdateWebhookRequestBody$inboundSchema = exports.UpdateWebhookWebhookEventTypesRequest$ = exports.UpdateWebhookWebhookEventTypesRequest$outboundSchema = exports.UpdateWebhookWebhookEventTypesRequest$inboundSchema = exports.UpdateWebhookMode = exports.UpdateWebhookStatus = exports.UpdateWebhookEventTypeWebhookEventTypes = exports.UpdateWebhookWebhookEventTypesRequest = void 0;
40
40
  exports.updateWebhookRequestBodyToJSON = updateWebhookRequestBodyToJSON;
41
41
  exports.updateWebhookRequestBodyFromJSON = updateWebhookRequestBodyFromJSON;
42
42
  exports.updateWebhookRequestToJSON = updateWebhookRequestToJSON;
@@ -49,21 +49,41 @@ exports.updateWebhookNotFoundDocumentationToJSON = updateWebhookNotFoundDocument
49
49
  exports.updateWebhookNotFoundDocumentationFromJSON = updateWebhookNotFoundDocumentationFromJSON;
50
50
  exports.updateWebhookNotFoundLinksToJSON = updateWebhookNotFoundLinksToJSON;
51
51
  exports.updateWebhookNotFoundLinksFromJSON = updateWebhookNotFoundLinksFromJSON;
52
+ exports.updateWebhookDocumentationToJSON = updateWebhookDocumentationToJSON;
53
+ exports.updateWebhookDocumentationFromJSON = updateWebhookDocumentationFromJSON;
54
+ exports.updateWebhookLinksToJSON = updateWebhookLinksToJSON;
55
+ exports.updateWebhookLinksFromJSON = updateWebhookLinksFromJSON;
52
56
  exports.updateWebhookResponseToJSON = updateWebhookResponseToJSON;
53
57
  exports.updateWebhookResponseFromJSON = updateWebhookResponseFromJSON;
54
58
  const z = __importStar(require("zod"));
55
59
  const primitives_js_1 = require("../../lib/primitives.js");
56
60
  const schemas_js_1 = require("../../lib/schemas.js");
57
61
  /**
58
- * 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.
62
+ * The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
63
+ *
64
+ * @remarks
65
+ * that require explicit selection. Separate multiple event types with a comma.
59
66
  */
60
- exports.UpdateWebhookEventTypes = {
67
+ exports.UpdateWebhookWebhookEventTypesRequest = {
61
68
  PaymentLinkPaid: "payment-link.paid",
62
69
  BalanceTransactionCreated: "balance-transaction.created",
63
70
  SalesInvoiceCreated: "sales-invoice.created",
64
71
  SalesInvoiceIssued: "sales-invoice.issued",
65
72
  SalesInvoiceCanceled: "sales-invoice.canceled",
66
73
  SalesInvoicePaid: "sales-invoice.paid",
74
+ Wildcard: "*",
75
+ };
76
+ /**
77
+ * The event's type
78
+ */
79
+ exports.UpdateWebhookEventTypeWebhookEventTypes = {
80
+ PaymentLinkPaid: "payment-link.paid",
81
+ BalanceTransactionCreated: "balance-transaction.created",
82
+ SalesInvoiceCreated: "sales-invoice.created",
83
+ SalesInvoiceIssued: "sales-invoice.issued",
84
+ SalesInvoiceCanceled: "sales-invoice.canceled",
85
+ SalesInvoicePaid: "sales-invoice.paid",
86
+ Wildcard: "*",
67
87
  };
68
88
  /**
69
89
  * The subscription's current status.
@@ -75,40 +95,49 @@ exports.UpdateWebhookStatus = {
75
95
  Deleted: "deleted",
76
96
  };
77
97
  /**
78
- * The subscription's mode.
98
+ * Whether this entity was created in live mode or in test mode.
79
99
  */
80
100
  exports.UpdateWebhookMode = {
81
101
  Live: "live",
82
102
  Test: "test",
83
103
  };
84
104
  /** @internal */
85
- exports.UpdateWebhookEventTypes$inboundSchema = z.nativeEnum(exports.UpdateWebhookEventTypes);
105
+ exports.UpdateWebhookWebhookEventTypesRequest$inboundSchema = z.nativeEnum(exports.UpdateWebhookWebhookEventTypesRequest);
86
106
  /** @internal */
87
- exports.UpdateWebhookEventTypes$outboundSchema = exports.UpdateWebhookEventTypes$inboundSchema;
107
+ exports.UpdateWebhookWebhookEventTypesRequest$outboundSchema = exports.UpdateWebhookWebhookEventTypesRequest$inboundSchema;
88
108
  /**
89
109
  * @internal
90
110
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
111
  */
92
- var UpdateWebhookEventTypes$;
93
- (function (UpdateWebhookEventTypes$) {
94
- /** @deprecated use `UpdateWebhookEventTypes$inboundSchema` instead. */
95
- UpdateWebhookEventTypes$.inboundSchema = exports.UpdateWebhookEventTypes$inboundSchema;
96
- /** @deprecated use `UpdateWebhookEventTypes$outboundSchema` instead. */
97
- UpdateWebhookEventTypes$.outboundSchema = exports.UpdateWebhookEventTypes$outboundSchema;
98
- })(UpdateWebhookEventTypes$ || (exports.UpdateWebhookEventTypes$ = UpdateWebhookEventTypes$ = {}));
112
+ var UpdateWebhookWebhookEventTypesRequest$;
113
+ (function (UpdateWebhookWebhookEventTypesRequest$) {
114
+ /** @deprecated use `UpdateWebhookWebhookEventTypesRequest$inboundSchema` instead. */
115
+ UpdateWebhookWebhookEventTypesRequest$.inboundSchema = exports.UpdateWebhookWebhookEventTypesRequest$inboundSchema;
116
+ /** @deprecated use `UpdateWebhookWebhookEventTypesRequest$outboundSchema` instead. */
117
+ UpdateWebhookWebhookEventTypesRequest$.outboundSchema = exports.UpdateWebhookWebhookEventTypesRequest$outboundSchema;
118
+ })(UpdateWebhookWebhookEventTypesRequest$ || (exports.UpdateWebhookWebhookEventTypesRequest$ = UpdateWebhookWebhookEventTypesRequest$ = {}));
99
119
  /** @internal */
100
120
  exports.UpdateWebhookRequestBody$inboundSchema = z.object({
101
121
  name: z.string().optional(),
102
122
  url: z.string().optional(),
103
- eventTypes: exports.UpdateWebhookEventTypes$inboundSchema.optional(),
123
+ eventTypes: exports.UpdateWebhookWebhookEventTypesRequest$inboundSchema.optional(),
104
124
  testmode: z.nullable(z.boolean()).optional(),
125
+ }).transform((v) => {
126
+ return (0, primitives_js_1.remap)(v, {
127
+ "eventTypes": "webhookEventTypes",
128
+ });
105
129
  });
106
130
  /** @internal */
107
131
  exports.UpdateWebhookRequestBody$outboundSchema = z.object({
108
132
  name: z.string().optional(),
109
133
  url: z.string().optional(),
110
- eventTypes: exports.UpdateWebhookEventTypes$outboundSchema.optional(),
134
+ webhookEventTypes: exports.UpdateWebhookWebhookEventTypesRequest$outboundSchema
135
+ .optional(),
111
136
  testmode: z.nullable(z.boolean()).optional(),
137
+ }).transform((v) => {
138
+ return (0, primitives_js_1.remap)(v, {
139
+ webhookEventTypes: "eventTypes",
140
+ });
112
141
  });
113
142
  /**
114
143
  * @internal
@@ -267,6 +296,22 @@ function updateWebhookNotFoundLinksFromJSON(jsonString) {
267
296
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateWebhookNotFoundLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateWebhookNotFoundLinks' from JSON`);
268
297
  }
269
298
  /** @internal */
299
+ exports.UpdateWebhookEventTypeWebhookEventTypes$inboundSchema = z
300
+ .nativeEnum(exports.UpdateWebhookEventTypeWebhookEventTypes);
301
+ /** @internal */
302
+ exports.UpdateWebhookEventTypeWebhookEventTypes$outboundSchema = exports.UpdateWebhookEventTypeWebhookEventTypes$inboundSchema;
303
+ /**
304
+ * @internal
305
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
306
+ */
307
+ var UpdateWebhookEventTypeWebhookEventTypes$;
308
+ (function (UpdateWebhookEventTypeWebhookEventTypes$) {
309
+ /** @deprecated use `UpdateWebhookEventTypeWebhookEventTypes$inboundSchema` instead. */
310
+ UpdateWebhookEventTypeWebhookEventTypes$.inboundSchema = exports.UpdateWebhookEventTypeWebhookEventTypes$inboundSchema;
311
+ /** @deprecated use `UpdateWebhookEventTypeWebhookEventTypes$outboundSchema` instead. */
312
+ UpdateWebhookEventTypeWebhookEventTypes$.outboundSchema = exports.UpdateWebhookEventTypeWebhookEventTypes$outboundSchema;
313
+ })(UpdateWebhookEventTypeWebhookEventTypes$ || (exports.UpdateWebhookEventTypeWebhookEventTypes$ = UpdateWebhookEventTypeWebhookEventTypes$ = {}));
314
+ /** @internal */
270
315
  exports.UpdateWebhookStatus$inboundSchema = z.nativeEnum(exports.UpdateWebhookStatus);
271
316
  /** @internal */
272
317
  exports.UpdateWebhookStatus$outboundSchema = exports.UpdateWebhookStatus$inboundSchema;
@@ -297,28 +342,90 @@ var UpdateWebhookMode$;
297
342
  UpdateWebhookMode$.outboundSchema = exports.UpdateWebhookMode$outboundSchema;
298
343
  })(UpdateWebhookMode$ || (exports.UpdateWebhookMode$ = UpdateWebhookMode$ = {}));
299
344
  /** @internal */
345
+ exports.UpdateWebhookDocumentation$inboundSchema = z.object({
346
+ href: z.string(),
347
+ type: z.string(),
348
+ });
349
+ /** @internal */
350
+ exports.UpdateWebhookDocumentation$outboundSchema = z.object({
351
+ href: z.string(),
352
+ type: z.string(),
353
+ });
354
+ /**
355
+ * @internal
356
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
+ */
358
+ var UpdateWebhookDocumentation$;
359
+ (function (UpdateWebhookDocumentation$) {
360
+ /** @deprecated use `UpdateWebhookDocumentation$inboundSchema` instead. */
361
+ UpdateWebhookDocumentation$.inboundSchema = exports.UpdateWebhookDocumentation$inboundSchema;
362
+ /** @deprecated use `UpdateWebhookDocumentation$outboundSchema` instead. */
363
+ UpdateWebhookDocumentation$.outboundSchema = exports.UpdateWebhookDocumentation$outboundSchema;
364
+ })(UpdateWebhookDocumentation$ || (exports.UpdateWebhookDocumentation$ = UpdateWebhookDocumentation$ = {}));
365
+ function updateWebhookDocumentationToJSON(updateWebhookDocumentation) {
366
+ return JSON.stringify(exports.UpdateWebhookDocumentation$outboundSchema.parse(updateWebhookDocumentation));
367
+ }
368
+ function updateWebhookDocumentationFromJSON(jsonString) {
369
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateWebhookDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateWebhookDocumentation' from JSON`);
370
+ }
371
+ /** @internal */
372
+ exports.UpdateWebhookLinks$inboundSchema = z.object({
373
+ documentation: z.lazy(() => exports.UpdateWebhookDocumentation$inboundSchema),
374
+ });
375
+ /** @internal */
376
+ exports.UpdateWebhookLinks$outboundSchema = z.object({
377
+ documentation: z.lazy(() => exports.UpdateWebhookDocumentation$outboundSchema),
378
+ });
379
+ /**
380
+ * @internal
381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
382
+ */
383
+ var UpdateWebhookLinks$;
384
+ (function (UpdateWebhookLinks$) {
385
+ /** @deprecated use `UpdateWebhookLinks$inboundSchema` instead. */
386
+ UpdateWebhookLinks$.inboundSchema = exports.UpdateWebhookLinks$inboundSchema;
387
+ /** @deprecated use `UpdateWebhookLinks$outboundSchema` instead. */
388
+ UpdateWebhookLinks$.outboundSchema = exports.UpdateWebhookLinks$outboundSchema;
389
+ })(UpdateWebhookLinks$ || (exports.UpdateWebhookLinks$ = UpdateWebhookLinks$ = {}));
390
+ function updateWebhookLinksToJSON(updateWebhookLinks) {
391
+ return JSON.stringify(exports.UpdateWebhookLinks$outboundSchema.parse(updateWebhookLinks));
392
+ }
393
+ function updateWebhookLinksFromJSON(jsonString) {
394
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateWebhookLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateWebhookLinks' from JSON`);
395
+ }
396
+ /** @internal */
300
397
  exports.UpdateWebhookResponse$inboundSchema = z.object({
301
- resource: z.string().optional(),
302
- id: z.string().optional(),
303
- url: z.string().optional(),
304
- profileId: z.string().optional(),
305
- createdAt: z.string().optional(),
306
- name: z.string().optional(),
307
- eventTypes: z.array(z.string()).optional(),
308
- status: exports.UpdateWebhookStatus$inboundSchema.optional(),
309
- mode: exports.UpdateWebhookMode$inboundSchema.optional(),
398
+ resource: z.string(),
399
+ id: z.string(),
400
+ url: z.string(),
401
+ profileId: z.nullable(z.string()),
402
+ createdAt: z.string(),
403
+ name: z.string(),
404
+ eventTypes: z.array(exports.UpdateWebhookEventTypeWebhookEventTypes$inboundSchema),
405
+ status: exports.UpdateWebhookStatus$inboundSchema,
406
+ mode: exports.UpdateWebhookMode$inboundSchema,
407
+ _links: z.lazy(() => exports.UpdateWebhookLinks$inboundSchema),
408
+ }).transform((v) => {
409
+ return (0, primitives_js_1.remap)(v, {
410
+ "_links": "links",
411
+ });
310
412
  });
311
413
  /** @internal */
312
414
  exports.UpdateWebhookResponse$outboundSchema = z.object({
313
- resource: z.string().optional(),
314
- id: z.string().optional(),
315
- url: z.string().optional(),
316
- profileId: z.string().optional(),
317
- createdAt: z.string().optional(),
318
- name: z.string().optional(),
319
- eventTypes: z.array(z.string()).optional(),
320
- status: exports.UpdateWebhookStatus$outboundSchema.optional(),
321
- mode: exports.UpdateWebhookMode$outboundSchema.optional(),
415
+ resource: z.string(),
416
+ id: z.string(),
417
+ url: z.string(),
418
+ profileId: z.nullable(z.string()),
419
+ createdAt: z.string(),
420
+ name: z.string(),
421
+ eventTypes: z.array(exports.UpdateWebhookEventTypeWebhookEventTypes$outboundSchema),
422
+ status: exports.UpdateWebhookStatus$outboundSchema,
423
+ mode: exports.UpdateWebhookMode$outboundSchema,
424
+ links: z.lazy(() => exports.UpdateWebhookLinks$outboundSchema),
425
+ }).transform((v) => {
426
+ return (0, primitives_js_1.remap)(v, {
427
+ links: "_links",
428
+ });
322
429
  });
323
430
  /**
324
431
  * @internal