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.
- package/FUNCTIONS.md +7 -139
- package/README.md +77 -877
- package/bin/mcp-server.js +385 -192
- package/bin/mcp-server.js.map +20 -20
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +40 -40
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/operations/cancelpayment.d.ts +3 -3
- package/dist/commonjs/models/operations/cancelpayment.js +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts +3 -3
- package/dist/commonjs/models/operations/createcustomerpayment.js +1 -1
- package/dist/commonjs/models/operations/createpayment.d.ts +3 -3
- package/dist/commonjs/models/operations/createpayment.js +1 -1
- package/dist/commonjs/models/operations/createwebhook.d.ts +96 -38
- package/dist/commonjs/models/operations/createwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createwebhook.js +79 -41
- package/dist/commonjs/models/operations/createwebhook.js.map +1 -1
- package/dist/commonjs/models/operations/getpayment.d.ts +3 -3
- package/dist/commonjs/models/operations/getpayment.js +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +3 -3
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +1 -1
- package/dist/commonjs/models/operations/getwebhook.d.ts +139 -21
- package/dist/commonjs/models/operations/getwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhook.js +114 -20
- package/dist/commonjs/models/operations/getwebhook.js.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.d.ts +63 -17
- package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.js +48 -21
- package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +3 -3
- package/dist/commonjs/models/operations/listcustomerpayments.js +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +3 -3
- package/dist/commonjs/models/operations/listpayments.js +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts +3 -3
- package/dist/commonjs/models/operations/listsettlementpayments.js +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +3 -3
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +1 -1
- package/dist/commonjs/models/operations/listwebhooks.d.ts +160 -39
- package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listwebhooks.js +136 -41
- package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.d.ts +3 -3
- package/dist/commonjs/models/operations/updatepayment.js +1 -1
- package/dist/commonjs/models/operations/updatewebhook.d.ts +162 -32
- package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatewebhook.js +140 -33
- package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +24 -24
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +36 -36
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +40 -40
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/operations/cancelpayment.d.ts +3 -3
- package/dist/esm/models/operations/cancelpayment.js +1 -1
- package/dist/esm/models/operations/createcustomerpayment.d.ts +3 -3
- package/dist/esm/models/operations/createcustomerpayment.js +1 -1
- package/dist/esm/models/operations/createpayment.d.ts +3 -3
- package/dist/esm/models/operations/createpayment.js +1 -1
- package/dist/esm/models/operations/createwebhook.d.ts +96 -38
- package/dist/esm/models/operations/createwebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/createwebhook.js +78 -40
- package/dist/esm/models/operations/createwebhook.js.map +1 -1
- package/dist/esm/models/operations/getpayment.d.ts +3 -3
- package/dist/esm/models/operations/getpayment.js +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +3 -3
- package/dist/esm/models/operations/getpaymentlinkpayments.js +1 -1
- package/dist/esm/models/operations/getwebhook.d.ts +139 -21
- package/dist/esm/models/operations/getwebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhook.js +109 -19
- package/dist/esm/models/operations/getwebhook.js.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.d.ts +63 -17
- package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.js +45 -18
- package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +3 -3
- package/dist/esm/models/operations/listcustomerpayments.js +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +3 -3
- package/dist/esm/models/operations/listpayments.js +1 -1
- package/dist/esm/models/operations/listsettlementpayments.d.ts +3 -3
- package/dist/esm/models/operations/listsettlementpayments.js +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +3 -3
- package/dist/esm/models/operations/listsubscriptionpayments.js +1 -1
- package/dist/esm/models/operations/listwebhooks.d.ts +160 -39
- package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/esm/models/operations/listwebhooks.js +130 -40
- package/dist/esm/models/operations/listwebhooks.js.map +1 -1
- package/dist/esm/models/operations/updatepayment.d.ts +3 -3
- package/dist/esm/models/operations/updatepayment.js +1 -1
- package/dist/esm/models/operations/updatewebhook.d.ts +162 -32
- package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/updatewebhook.js +135 -32
- package/dist/esm/models/operations/updatewebhook.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +24 -24
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +36 -36
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/webhooks/README.md +4 -4
- package/examples/balancesList.example.ts +33 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +40 -40
- package/src/models/operations/cancelpayment.ts +1 -1
- package/src/models/operations/createcustomerpayment.ts +1 -1
- package/src/models/operations/createpayment.ts +1 -1
- package/src/models/operations/createwebhook.ts +134 -73
- package/src/models/operations/getpayment.ts +1 -1
- package/src/models/operations/getpaymentlinkpayments.ts +1 -1
- package/src/models/operations/getwebhook.ts +228 -39
- package/src/models/operations/getwebhookevent.ts +75 -35
- package/src/models/operations/listcustomerpayments.ts +1 -1
- package/src/models/operations/listpayments.ts +1 -1
- package/src/models/operations/listsettlementpayments.ts +1 -1
- package/src/models/operations/listsubscriptionpayments.ts +1 -1
- package/src/models/operations/listwebhooks.ts +262 -73
- package/src/models/operations/updatepayment.ts +1 -1
- package/src/models/operations/updatewebhook.ts +273 -59
- package/src/sdk/sdk.ts +60 -60
- package/examples/paymentsCreate.example.ts +0 -166
|
@@ -10,21 +10,28 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
13
|
+
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* that require explicit selection. Separate multiple event types with a comma.
|
|
14
17
|
*/
|
|
15
|
-
export const
|
|
18
|
+
export const CreateWebhookWebhookEventTypesRequest = {
|
|
16
19
|
PaymentLinkPaid: "payment-link.paid",
|
|
17
20
|
BalanceTransactionCreated: "balance-transaction.created",
|
|
18
21
|
SalesInvoiceCreated: "sales-invoice.created",
|
|
19
22
|
SalesInvoiceIssued: "sales-invoice.issued",
|
|
20
23
|
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
21
24
|
SalesInvoicePaid: "sales-invoice.paid",
|
|
25
|
+
Wildcard: "*",
|
|
22
26
|
} as const;
|
|
23
27
|
/**
|
|
24
|
-
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
28
|
+
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* that require explicit selection. Separate multiple event types with a comma.
|
|
25
32
|
*/
|
|
26
|
-
export type
|
|
27
|
-
typeof
|
|
33
|
+
export type CreateWebhookWebhookEventTypesRequest = ClosedEnum<
|
|
34
|
+
typeof CreateWebhookWebhookEventTypesRequest
|
|
28
35
|
>;
|
|
29
36
|
|
|
30
37
|
export type CreateWebhookRequest = {
|
|
@@ -37,9 +44,12 @@ export type CreateWebhookRequest = {
|
|
|
37
44
|
*/
|
|
38
45
|
url: string;
|
|
39
46
|
/**
|
|
40
|
-
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
47
|
+
* The list of events to enable for this webhook. You may specify `'*'` to add all events, except those
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* that require explicit selection. Separate multiple event types with a comma.
|
|
41
51
|
*/
|
|
42
|
-
|
|
52
|
+
webhookEventTypes: CreateWebhookWebhookEventTypesRequest;
|
|
43
53
|
/**
|
|
44
54
|
* Whether to create the entity in test mode or live mode.
|
|
45
55
|
*
|
|
@@ -67,6 +77,25 @@ export type CreateWebhookUnprocessableEntityLinks = {
|
|
|
67
77
|
documentation: CreateWebhookUnprocessableEntityDocumentation;
|
|
68
78
|
};
|
|
69
79
|
|
|
80
|
+
/**
|
|
81
|
+
* The event's type
|
|
82
|
+
*/
|
|
83
|
+
export const CreateWebhookEventTypeWebhookEventTypes = {
|
|
84
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
85
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
86
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
87
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
88
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
89
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
90
|
+
Wildcard: "*",
|
|
91
|
+
} as const;
|
|
92
|
+
/**
|
|
93
|
+
* The event's type
|
|
94
|
+
*/
|
|
95
|
+
export type CreateWebhookEventTypeWebhookEventTypes = ClosedEnum<
|
|
96
|
+
typeof CreateWebhookEventTypeWebhookEventTypes
|
|
97
|
+
>;
|
|
98
|
+
|
|
70
99
|
/**
|
|
71
100
|
* The subscription's current status.
|
|
72
101
|
*/
|
|
@@ -81,14 +110,14 @@ export const CreateWebhookStatus = {
|
|
|
81
110
|
export type CreateWebhookStatus = ClosedEnum<typeof CreateWebhookStatus>;
|
|
82
111
|
|
|
83
112
|
/**
|
|
84
|
-
*
|
|
113
|
+
* Whether this entity was created in live mode or in test mode.
|
|
85
114
|
*/
|
|
86
115
|
export const CreateWebhookMode = {
|
|
87
116
|
Live: "live",
|
|
88
117
|
Test: "test",
|
|
89
118
|
} as const;
|
|
90
119
|
/**
|
|
91
|
-
*
|
|
120
|
+
* Whether this entity was created in live mode or in test mode.
|
|
92
121
|
*/
|
|
93
122
|
export type CreateWebhookMode = ClosedEnum<typeof CreateWebhookMode>;
|
|
94
123
|
|
|
@@ -113,7 +142,7 @@ export type CreateWebhookLinks = {
|
|
|
113
142
|
/**
|
|
114
143
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
115
144
|
*/
|
|
116
|
-
documentation
|
|
145
|
+
documentation: CreateWebhookDocumentation;
|
|
117
146
|
};
|
|
118
147
|
|
|
119
148
|
/**
|
|
@@ -123,68 +152,71 @@ export type CreateWebhookResponse = {
|
|
|
123
152
|
/**
|
|
124
153
|
* Indicates the response contains a webhook subscription object. Will always contain the string `webhook` for this endpoint.
|
|
125
154
|
*/
|
|
126
|
-
resource
|
|
155
|
+
resource: string;
|
|
127
156
|
/**
|
|
128
157
|
* The identifier uniquely referring to this subscription.
|
|
129
158
|
*/
|
|
130
|
-
id
|
|
159
|
+
id: string;
|
|
131
160
|
/**
|
|
132
161
|
* The subscription's events destination.
|
|
133
162
|
*/
|
|
134
|
-
url
|
|
163
|
+
url: string;
|
|
135
164
|
/**
|
|
136
165
|
* The identifier uniquely referring to the profile that created the subscription.
|
|
137
166
|
*/
|
|
138
|
-
profileId
|
|
167
|
+
profileId: string;
|
|
139
168
|
/**
|
|
140
169
|
* The subscription's date time of creation.
|
|
141
170
|
*/
|
|
142
|
-
createdAt
|
|
171
|
+
createdAt: string;
|
|
143
172
|
/**
|
|
144
173
|
* The subscription's name.
|
|
145
174
|
*/
|
|
146
|
-
name
|
|
175
|
+
name: string;
|
|
147
176
|
/**
|
|
148
177
|
* The events types that are subscribed.
|
|
149
178
|
*/
|
|
150
|
-
eventTypes
|
|
179
|
+
eventTypes: Array<CreateWebhookEventTypeWebhookEventTypes>;
|
|
151
180
|
/**
|
|
152
181
|
* The subscription's current status.
|
|
153
182
|
*/
|
|
154
|
-
status
|
|
183
|
+
status: CreateWebhookStatus;
|
|
155
184
|
/**
|
|
156
|
-
*
|
|
185
|
+
* Whether this entity was created in live mode or in test mode.
|
|
157
186
|
*/
|
|
158
|
-
mode
|
|
187
|
+
mode: CreateWebhookMode;
|
|
159
188
|
/**
|
|
160
189
|
* The subscription's secret.
|
|
161
190
|
*/
|
|
162
|
-
webhookSecret
|
|
191
|
+
webhookSecret: string;
|
|
163
192
|
/**
|
|
164
193
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
165
194
|
*/
|
|
166
|
-
links
|
|
195
|
+
links: CreateWebhookLinks;
|
|
167
196
|
};
|
|
168
197
|
|
|
169
198
|
/** @internal */
|
|
170
|
-
export const
|
|
171
|
-
typeof
|
|
172
|
-
|
|
199
|
+
export const CreateWebhookWebhookEventTypesRequest$inboundSchema:
|
|
200
|
+
z.ZodNativeEnum<typeof CreateWebhookWebhookEventTypesRequest> = z.nativeEnum(
|
|
201
|
+
CreateWebhookWebhookEventTypesRequest,
|
|
202
|
+
);
|
|
173
203
|
|
|
174
204
|
/** @internal */
|
|
175
|
-
export const
|
|
176
|
-
typeof
|
|
177
|
-
|
|
205
|
+
export const CreateWebhookWebhookEventTypesRequest$outboundSchema:
|
|
206
|
+
z.ZodNativeEnum<typeof CreateWebhookWebhookEventTypesRequest> =
|
|
207
|
+
CreateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
178
208
|
|
|
179
209
|
/**
|
|
180
210
|
* @internal
|
|
181
211
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
212
|
*/
|
|
183
|
-
export namespace
|
|
184
|
-
/** @deprecated use `
|
|
185
|
-
export const inboundSchema =
|
|
186
|
-
|
|
187
|
-
|
|
213
|
+
export namespace CreateWebhookWebhookEventTypesRequest$ {
|
|
214
|
+
/** @deprecated use `CreateWebhookWebhookEventTypesRequest$inboundSchema` instead. */
|
|
215
|
+
export const inboundSchema =
|
|
216
|
+
CreateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
217
|
+
/** @deprecated use `CreateWebhookWebhookEventTypesRequest$outboundSchema` instead. */
|
|
218
|
+
export const outboundSchema =
|
|
219
|
+
CreateWebhookWebhookEventTypesRequest$outboundSchema;
|
|
188
220
|
}
|
|
189
221
|
|
|
190
222
|
/** @internal */
|
|
@@ -195,8 +227,12 @@ export const CreateWebhookRequest$inboundSchema: z.ZodType<
|
|
|
195
227
|
> = z.object({
|
|
196
228
|
name: z.string(),
|
|
197
229
|
url: z.string(),
|
|
198
|
-
eventTypes:
|
|
230
|
+
eventTypes: CreateWebhookWebhookEventTypesRequest$inboundSchema,
|
|
199
231
|
testmode: z.nullable(z.boolean()).optional(),
|
|
232
|
+
}).transform((v) => {
|
|
233
|
+
return remap$(v, {
|
|
234
|
+
"eventTypes": "webhookEventTypes",
|
|
235
|
+
});
|
|
200
236
|
});
|
|
201
237
|
|
|
202
238
|
/** @internal */
|
|
@@ -215,8 +251,12 @@ export const CreateWebhookRequest$outboundSchema: z.ZodType<
|
|
|
215
251
|
> = z.object({
|
|
216
252
|
name: z.string(),
|
|
217
253
|
url: z.string(),
|
|
218
|
-
|
|
254
|
+
webhookEventTypes: CreateWebhookWebhookEventTypesRequest$outboundSchema,
|
|
219
255
|
testmode: z.nullable(z.boolean()).optional(),
|
|
256
|
+
}).transform((v) => {
|
|
257
|
+
return remap$(v, {
|
|
258
|
+
webhookEventTypes: "eventTypes",
|
|
259
|
+
});
|
|
220
260
|
});
|
|
221
261
|
|
|
222
262
|
/**
|
|
@@ -383,6 +423,29 @@ export function createWebhookUnprocessableEntityLinksFromJSON(
|
|
|
383
423
|
);
|
|
384
424
|
}
|
|
385
425
|
|
|
426
|
+
/** @internal */
|
|
427
|
+
export const CreateWebhookEventTypeWebhookEventTypes$inboundSchema:
|
|
428
|
+
z.ZodNativeEnum<typeof CreateWebhookEventTypeWebhookEventTypes> = z
|
|
429
|
+
.nativeEnum(CreateWebhookEventTypeWebhookEventTypes);
|
|
430
|
+
|
|
431
|
+
/** @internal */
|
|
432
|
+
export const CreateWebhookEventTypeWebhookEventTypes$outboundSchema:
|
|
433
|
+
z.ZodNativeEnum<typeof CreateWebhookEventTypeWebhookEventTypes> =
|
|
434
|
+
CreateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @internal
|
|
438
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
439
|
+
*/
|
|
440
|
+
export namespace CreateWebhookEventTypeWebhookEventTypes$ {
|
|
441
|
+
/** @deprecated use `CreateWebhookEventTypeWebhookEventTypes$inboundSchema` instead. */
|
|
442
|
+
export const inboundSchema =
|
|
443
|
+
CreateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
444
|
+
/** @deprecated use `CreateWebhookEventTypeWebhookEventTypes$outboundSchema` instead. */
|
|
445
|
+
export const outboundSchema =
|
|
446
|
+
CreateWebhookEventTypeWebhookEventTypes$outboundSchema;
|
|
447
|
+
}
|
|
448
|
+
|
|
386
449
|
/** @internal */
|
|
387
450
|
export const CreateWebhookStatus$inboundSchema: z.ZodNativeEnum<
|
|
388
451
|
typeof CreateWebhookStatus
|
|
@@ -488,13 +551,12 @@ export const CreateWebhookLinks$inboundSchema: z.ZodType<
|
|
|
488
551
|
z.ZodTypeDef,
|
|
489
552
|
unknown
|
|
490
553
|
> = z.object({
|
|
491
|
-
documentation: z.lazy(() => CreateWebhookDocumentation$inboundSchema)
|
|
492
|
-
.optional(),
|
|
554
|
+
documentation: z.lazy(() => CreateWebhookDocumentation$inboundSchema),
|
|
493
555
|
});
|
|
494
556
|
|
|
495
557
|
/** @internal */
|
|
496
558
|
export type CreateWebhookLinks$Outbound = {
|
|
497
|
-
documentation
|
|
559
|
+
documentation: CreateWebhookDocumentation$Outbound;
|
|
498
560
|
};
|
|
499
561
|
|
|
500
562
|
/** @internal */
|
|
@@ -503,8 +565,7 @@ export const CreateWebhookLinks$outboundSchema: z.ZodType<
|
|
|
503
565
|
z.ZodTypeDef,
|
|
504
566
|
CreateWebhookLinks
|
|
505
567
|
> = z.object({
|
|
506
|
-
documentation: z.lazy(() => CreateWebhookDocumentation$outboundSchema)
|
|
507
|
-
.optional(),
|
|
568
|
+
documentation: z.lazy(() => CreateWebhookDocumentation$outboundSchema),
|
|
508
569
|
});
|
|
509
570
|
|
|
510
571
|
/**
|
|
@@ -544,17 +605,17 @@ export const CreateWebhookResponse$inboundSchema: z.ZodType<
|
|
|
544
605
|
z.ZodTypeDef,
|
|
545
606
|
unknown
|
|
546
607
|
> = z.object({
|
|
547
|
-
resource: z.string()
|
|
548
|
-
id: z.string()
|
|
549
|
-
url: z.string()
|
|
550
|
-
profileId: z.string()
|
|
551
|
-
createdAt: z.string()
|
|
552
|
-
name: z.string()
|
|
553
|
-
eventTypes: z.array(
|
|
554
|
-
status: CreateWebhookStatus$inboundSchema
|
|
555
|
-
mode: CreateWebhookMode$inboundSchema
|
|
556
|
-
webhookSecret: z.string()
|
|
557
|
-
_links: z.lazy(() => CreateWebhookLinks$inboundSchema)
|
|
608
|
+
resource: z.string(),
|
|
609
|
+
id: z.string(),
|
|
610
|
+
url: z.string(),
|
|
611
|
+
profileId: z.string(),
|
|
612
|
+
createdAt: z.string(),
|
|
613
|
+
name: z.string(),
|
|
614
|
+
eventTypes: z.array(CreateWebhookEventTypeWebhookEventTypes$inboundSchema),
|
|
615
|
+
status: CreateWebhookStatus$inboundSchema,
|
|
616
|
+
mode: CreateWebhookMode$inboundSchema,
|
|
617
|
+
webhookSecret: z.string(),
|
|
618
|
+
_links: z.lazy(() => CreateWebhookLinks$inboundSchema),
|
|
558
619
|
}).transform((v) => {
|
|
559
620
|
return remap$(v, {
|
|
560
621
|
"_links": "links",
|
|
@@ -563,17 +624,17 @@ export const CreateWebhookResponse$inboundSchema: z.ZodType<
|
|
|
563
624
|
|
|
564
625
|
/** @internal */
|
|
565
626
|
export type CreateWebhookResponse$Outbound = {
|
|
566
|
-
resource
|
|
567
|
-
id
|
|
568
|
-
url
|
|
569
|
-
profileId
|
|
570
|
-
createdAt
|
|
571
|
-
name
|
|
572
|
-
eventTypes
|
|
573
|
-
status
|
|
574
|
-
mode
|
|
575
|
-
webhookSecret
|
|
576
|
-
_links
|
|
627
|
+
resource: string;
|
|
628
|
+
id: string;
|
|
629
|
+
url: string;
|
|
630
|
+
profileId: string;
|
|
631
|
+
createdAt: string;
|
|
632
|
+
name: string;
|
|
633
|
+
eventTypes: Array<string>;
|
|
634
|
+
status: string;
|
|
635
|
+
mode: string;
|
|
636
|
+
webhookSecret: string;
|
|
637
|
+
_links: CreateWebhookLinks$Outbound;
|
|
577
638
|
};
|
|
578
639
|
|
|
579
640
|
/** @internal */
|
|
@@ -582,17 +643,17 @@ export const CreateWebhookResponse$outboundSchema: z.ZodType<
|
|
|
582
643
|
z.ZodTypeDef,
|
|
583
644
|
CreateWebhookResponse
|
|
584
645
|
> = z.object({
|
|
585
|
-
resource: z.string()
|
|
586
|
-
id: z.string()
|
|
587
|
-
url: z.string()
|
|
588
|
-
profileId: z.string()
|
|
589
|
-
createdAt: z.string()
|
|
590
|
-
name: z.string()
|
|
591
|
-
eventTypes: z.array(
|
|
592
|
-
status: CreateWebhookStatus$outboundSchema
|
|
593
|
-
mode: CreateWebhookMode$outboundSchema
|
|
594
|
-
webhookSecret: z.string()
|
|
595
|
-
links: z.lazy(() => CreateWebhookLinks$outboundSchema)
|
|
646
|
+
resource: z.string(),
|
|
647
|
+
id: z.string(),
|
|
648
|
+
url: z.string(),
|
|
649
|
+
profileId: z.string(),
|
|
650
|
+
createdAt: z.string(),
|
|
651
|
+
name: z.string(),
|
|
652
|
+
eventTypes: z.array(CreateWebhookEventTypeWebhookEventTypes$outboundSchema),
|
|
653
|
+
status: CreateWebhookStatus$outboundSchema,
|
|
654
|
+
mode: CreateWebhookMode$outboundSchema,
|
|
655
|
+
webhookSecret: z.string(),
|
|
656
|
+
links: z.lazy(() => CreateWebhookLinks$outboundSchema),
|
|
596
657
|
}).transform((v) => {
|
|
597
658
|
return remap$(v, {
|
|
598
659
|
links: "_links",
|