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
|
@@ -44,6 +44,22 @@ export type GetWebhookNotFoundLinks = {
|
|
|
44
44
|
*/
|
|
45
45
|
documentation: GetWebhookNotFoundDocumentation;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* The event's type
|
|
49
|
+
*/
|
|
50
|
+
export declare const GetWebhookWebhookEventTypes: {
|
|
51
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
52
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
53
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
54
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
55
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
56
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
57
|
+
readonly Wildcard: "*";
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* The event's type
|
|
61
|
+
*/
|
|
62
|
+
export type GetWebhookWebhookEventTypes = ClosedEnum<typeof GetWebhookWebhookEventTypes>;
|
|
47
63
|
/**
|
|
48
64
|
* The subscription's current status.
|
|
49
65
|
*/
|
|
@@ -58,16 +74,38 @@ export declare const GetWebhookStatus: {
|
|
|
58
74
|
*/
|
|
59
75
|
export type GetWebhookStatus = ClosedEnum<typeof GetWebhookStatus>;
|
|
60
76
|
/**
|
|
61
|
-
*
|
|
77
|
+
* Whether this entity was created in live mode or in test mode.
|
|
62
78
|
*/
|
|
63
79
|
export declare const GetWebhookMode: {
|
|
64
80
|
readonly Live: "live";
|
|
65
81
|
readonly Test: "test";
|
|
66
82
|
};
|
|
67
83
|
/**
|
|
68
|
-
*
|
|
84
|
+
* Whether this entity was created in live mode or in test mode.
|
|
69
85
|
*/
|
|
70
86
|
export type GetWebhookMode = ClosedEnum<typeof GetWebhookMode>;
|
|
87
|
+
/**
|
|
88
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
89
|
+
*/
|
|
90
|
+
export type GetWebhookDocumentation = {
|
|
91
|
+
/**
|
|
92
|
+
* The actual URL string.
|
|
93
|
+
*/
|
|
94
|
+
href: string;
|
|
95
|
+
/**
|
|
96
|
+
* The content type of the page or endpoint the URL points to.
|
|
97
|
+
*/
|
|
98
|
+
type: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
102
|
+
*/
|
|
103
|
+
export type GetWebhookLinks = {
|
|
104
|
+
/**
|
|
105
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
106
|
+
*/
|
|
107
|
+
documentation: GetWebhookDocumentation;
|
|
108
|
+
};
|
|
71
109
|
/**
|
|
72
110
|
* The webhook object.
|
|
73
111
|
*/
|
|
@@ -78,39 +116,43 @@ export type GetWebhookResponse = {
|
|
|
78
116
|
* @remarks
|
|
79
117
|
* Will always contain the string `webhook` for this endpoint.
|
|
80
118
|
*/
|
|
81
|
-
resource
|
|
119
|
+
resource: string;
|
|
82
120
|
/**
|
|
83
121
|
* The identifier uniquely referring to this subscription.
|
|
84
122
|
*/
|
|
85
|
-
id
|
|
123
|
+
id: string;
|
|
86
124
|
/**
|
|
87
125
|
* The subscription's events destination.
|
|
88
126
|
*/
|
|
89
|
-
url
|
|
127
|
+
url: string;
|
|
90
128
|
/**
|
|
91
129
|
* The identifier uniquely referring to the profile that created the subscription.
|
|
92
130
|
*/
|
|
93
|
-
profileId
|
|
131
|
+
profileId: string | null;
|
|
94
132
|
/**
|
|
95
133
|
* The subscription's date time of creation.
|
|
96
134
|
*/
|
|
97
|
-
createdAt
|
|
135
|
+
createdAt: string;
|
|
98
136
|
/**
|
|
99
137
|
* The subscription's name.
|
|
100
138
|
*/
|
|
101
|
-
name
|
|
139
|
+
name: string;
|
|
102
140
|
/**
|
|
103
141
|
* The events types that are subscribed.
|
|
104
142
|
*/
|
|
105
|
-
eventTypes
|
|
143
|
+
eventTypes: Array<GetWebhookWebhookEventTypes>;
|
|
106
144
|
/**
|
|
107
145
|
* The subscription's current status.
|
|
108
146
|
*/
|
|
109
|
-
status
|
|
147
|
+
status: GetWebhookStatus;
|
|
110
148
|
/**
|
|
111
|
-
*
|
|
149
|
+
* Whether this entity was created in live mode or in test mode.
|
|
112
150
|
*/
|
|
113
|
-
mode
|
|
151
|
+
mode: GetWebhookMode;
|
|
152
|
+
/**
|
|
153
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
154
|
+
*/
|
|
155
|
+
links: GetWebhookLinks;
|
|
114
156
|
};
|
|
115
157
|
/** @internal */
|
|
116
158
|
export declare const GetWebhookRequest$inboundSchema: z.ZodType<GetWebhookRequest, z.ZodTypeDef, unknown>;
|
|
@@ -226,6 +268,36 @@ export declare namespace GetWebhookNotFoundLinks$ {
|
|
|
226
268
|
export declare function getWebhookNotFoundLinksToJSON(getWebhookNotFoundLinks: GetWebhookNotFoundLinks): string;
|
|
227
269
|
export declare function getWebhookNotFoundLinksFromJSON(jsonString: string): SafeParseResult<GetWebhookNotFoundLinks, SDKValidationError>;
|
|
228
270
|
/** @internal */
|
|
271
|
+
export declare const GetWebhookWebhookEventTypes$inboundSchema: z.ZodNativeEnum<typeof GetWebhookWebhookEventTypes>;
|
|
272
|
+
/** @internal */
|
|
273
|
+
export declare const GetWebhookWebhookEventTypes$outboundSchema: z.ZodNativeEnum<typeof GetWebhookWebhookEventTypes>;
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
277
|
+
*/
|
|
278
|
+
export declare namespace GetWebhookWebhookEventTypes$ {
|
|
279
|
+
/** @deprecated use `GetWebhookWebhookEventTypes$inboundSchema` instead. */
|
|
280
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
281
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
282
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
283
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
284
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
285
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
286
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
287
|
+
readonly Wildcard: "*";
|
|
288
|
+
}>;
|
|
289
|
+
/** @deprecated use `GetWebhookWebhookEventTypes$outboundSchema` instead. */
|
|
290
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
291
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
292
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
293
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
294
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
295
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
296
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
297
|
+
readonly Wildcard: "*";
|
|
298
|
+
}>;
|
|
299
|
+
}
|
|
300
|
+
/** @internal */
|
|
229
301
|
export declare const GetWebhookStatus$inboundSchema: z.ZodNativeEnum<typeof GetWebhookStatus>;
|
|
230
302
|
/** @internal */
|
|
231
303
|
export declare const GetWebhookStatus$outboundSchema: z.ZodNativeEnum<typeof GetWebhookStatus>;
|
|
@@ -270,18 +342,64 @@ export declare namespace GetWebhookMode$ {
|
|
|
270
342
|
}>;
|
|
271
343
|
}
|
|
272
344
|
/** @internal */
|
|
345
|
+
export declare const GetWebhookDocumentation$inboundSchema: z.ZodType<GetWebhookDocumentation, z.ZodTypeDef, unknown>;
|
|
346
|
+
/** @internal */
|
|
347
|
+
export type GetWebhookDocumentation$Outbound = {
|
|
348
|
+
href: string;
|
|
349
|
+
type: string;
|
|
350
|
+
};
|
|
351
|
+
/** @internal */
|
|
352
|
+
export declare const GetWebhookDocumentation$outboundSchema: z.ZodType<GetWebhookDocumentation$Outbound, z.ZodTypeDef, GetWebhookDocumentation>;
|
|
353
|
+
/**
|
|
354
|
+
* @internal
|
|
355
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
|
+
*/
|
|
357
|
+
export declare namespace GetWebhookDocumentation$ {
|
|
358
|
+
/** @deprecated use `GetWebhookDocumentation$inboundSchema` instead. */
|
|
359
|
+
const inboundSchema: z.ZodType<GetWebhookDocumentation, z.ZodTypeDef, unknown>;
|
|
360
|
+
/** @deprecated use `GetWebhookDocumentation$outboundSchema` instead. */
|
|
361
|
+
const outboundSchema: z.ZodType<GetWebhookDocumentation$Outbound, z.ZodTypeDef, GetWebhookDocumentation>;
|
|
362
|
+
/** @deprecated use `GetWebhookDocumentation$Outbound` instead. */
|
|
363
|
+
type Outbound = GetWebhookDocumentation$Outbound;
|
|
364
|
+
}
|
|
365
|
+
export declare function getWebhookDocumentationToJSON(getWebhookDocumentation: GetWebhookDocumentation): string;
|
|
366
|
+
export declare function getWebhookDocumentationFromJSON(jsonString: string): SafeParseResult<GetWebhookDocumentation, SDKValidationError>;
|
|
367
|
+
/** @internal */
|
|
368
|
+
export declare const GetWebhookLinks$inboundSchema: z.ZodType<GetWebhookLinks, z.ZodTypeDef, unknown>;
|
|
369
|
+
/** @internal */
|
|
370
|
+
export type GetWebhookLinks$Outbound = {
|
|
371
|
+
documentation: GetWebhookDocumentation$Outbound;
|
|
372
|
+
};
|
|
373
|
+
/** @internal */
|
|
374
|
+
export declare const GetWebhookLinks$outboundSchema: z.ZodType<GetWebhookLinks$Outbound, z.ZodTypeDef, GetWebhookLinks>;
|
|
375
|
+
/**
|
|
376
|
+
* @internal
|
|
377
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
378
|
+
*/
|
|
379
|
+
export declare namespace GetWebhookLinks$ {
|
|
380
|
+
/** @deprecated use `GetWebhookLinks$inboundSchema` instead. */
|
|
381
|
+
const inboundSchema: z.ZodType<GetWebhookLinks, z.ZodTypeDef, unknown>;
|
|
382
|
+
/** @deprecated use `GetWebhookLinks$outboundSchema` instead. */
|
|
383
|
+
const outboundSchema: z.ZodType<GetWebhookLinks$Outbound, z.ZodTypeDef, GetWebhookLinks>;
|
|
384
|
+
/** @deprecated use `GetWebhookLinks$Outbound` instead. */
|
|
385
|
+
type Outbound = GetWebhookLinks$Outbound;
|
|
386
|
+
}
|
|
387
|
+
export declare function getWebhookLinksToJSON(getWebhookLinks: GetWebhookLinks): string;
|
|
388
|
+
export declare function getWebhookLinksFromJSON(jsonString: string): SafeParseResult<GetWebhookLinks, SDKValidationError>;
|
|
389
|
+
/** @internal */
|
|
273
390
|
export declare const GetWebhookResponse$inboundSchema: z.ZodType<GetWebhookResponse, z.ZodTypeDef, unknown>;
|
|
274
391
|
/** @internal */
|
|
275
392
|
export type GetWebhookResponse$Outbound = {
|
|
276
|
-
resource
|
|
277
|
-
id
|
|
278
|
-
url
|
|
279
|
-
profileId
|
|
280
|
-
createdAt
|
|
281
|
-
name
|
|
282
|
-
eventTypes
|
|
283
|
-
status
|
|
284
|
-
mode
|
|
393
|
+
resource: string;
|
|
394
|
+
id: string;
|
|
395
|
+
url: string;
|
|
396
|
+
profileId: string | null;
|
|
397
|
+
createdAt: string;
|
|
398
|
+
name: string;
|
|
399
|
+
eventTypes: Array<string>;
|
|
400
|
+
status: string;
|
|
401
|
+
mode: string;
|
|
402
|
+
_links: GetWebhookLinks$Outbound;
|
|
285
403
|
};
|
|
286
404
|
/** @internal */
|
|
287
405
|
export declare const GetWebhookResponse$outboundSchema: z.ZodType<GetWebhookResponse$Outbound, z.ZodTypeDef, GetWebhookResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getwebhook.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getwebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"getwebhook.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getwebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAA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AAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
/**
|
|
8
|
+
* The event's type
|
|
9
|
+
*/
|
|
10
|
+
export const GetWebhookWebhookEventTypes = {
|
|
11
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
12
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
13
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
14
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
15
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
16
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
17
|
+
Wildcard: "*",
|
|
18
|
+
};
|
|
6
19
|
/**
|
|
7
20
|
* The subscription's current status.
|
|
8
21
|
*/
|
|
@@ -13,7 +26,7 @@ export const GetWebhookStatus = {
|
|
|
13
26
|
Deleted: "deleted",
|
|
14
27
|
};
|
|
15
28
|
/**
|
|
16
|
-
*
|
|
29
|
+
* Whether this entity was created in live mode or in test mode.
|
|
17
30
|
*/
|
|
18
31
|
export const GetWebhookMode = {
|
|
19
32
|
Live: "live",
|
|
@@ -151,6 +164,21 @@ export function getWebhookNotFoundLinksFromJSON(jsonString) {
|
|
|
151
164
|
return safeParse(jsonString, (x) => GetWebhookNotFoundLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookNotFoundLinks' from JSON`);
|
|
152
165
|
}
|
|
153
166
|
/** @internal */
|
|
167
|
+
export const GetWebhookWebhookEventTypes$inboundSchema = z.nativeEnum(GetWebhookWebhookEventTypes);
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetWebhookWebhookEventTypes$outboundSchema = GetWebhookWebhookEventTypes$inboundSchema;
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
173
|
+
*/
|
|
174
|
+
export var GetWebhookWebhookEventTypes$;
|
|
175
|
+
(function (GetWebhookWebhookEventTypes$) {
|
|
176
|
+
/** @deprecated use `GetWebhookWebhookEventTypes$inboundSchema` instead. */
|
|
177
|
+
GetWebhookWebhookEventTypes$.inboundSchema = GetWebhookWebhookEventTypes$inboundSchema;
|
|
178
|
+
/** @deprecated use `GetWebhookWebhookEventTypes$outboundSchema` instead. */
|
|
179
|
+
GetWebhookWebhookEventTypes$.outboundSchema = GetWebhookWebhookEventTypes$outboundSchema;
|
|
180
|
+
})(GetWebhookWebhookEventTypes$ || (GetWebhookWebhookEventTypes$ = {}));
|
|
181
|
+
/** @internal */
|
|
154
182
|
export const GetWebhookStatus$inboundSchema = z.nativeEnum(GetWebhookStatus);
|
|
155
183
|
/** @internal */
|
|
156
184
|
export const GetWebhookStatus$outboundSchema = GetWebhookStatus$inboundSchema;
|
|
@@ -181,28 +209,90 @@ export var GetWebhookMode$;
|
|
|
181
209
|
GetWebhookMode$.outboundSchema = GetWebhookMode$outboundSchema;
|
|
182
210
|
})(GetWebhookMode$ || (GetWebhookMode$ = {}));
|
|
183
211
|
/** @internal */
|
|
212
|
+
export const GetWebhookDocumentation$inboundSchema = z.object({
|
|
213
|
+
href: z.string(),
|
|
214
|
+
type: z.string(),
|
|
215
|
+
});
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const GetWebhookDocumentation$outboundSchema = z.object({
|
|
218
|
+
href: z.string(),
|
|
219
|
+
type: z.string(),
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export var GetWebhookDocumentation$;
|
|
226
|
+
(function (GetWebhookDocumentation$) {
|
|
227
|
+
/** @deprecated use `GetWebhookDocumentation$inboundSchema` instead. */
|
|
228
|
+
GetWebhookDocumentation$.inboundSchema = GetWebhookDocumentation$inboundSchema;
|
|
229
|
+
/** @deprecated use `GetWebhookDocumentation$outboundSchema` instead. */
|
|
230
|
+
GetWebhookDocumentation$.outboundSchema = GetWebhookDocumentation$outboundSchema;
|
|
231
|
+
})(GetWebhookDocumentation$ || (GetWebhookDocumentation$ = {}));
|
|
232
|
+
export function getWebhookDocumentationToJSON(getWebhookDocumentation) {
|
|
233
|
+
return JSON.stringify(GetWebhookDocumentation$outboundSchema.parse(getWebhookDocumentation));
|
|
234
|
+
}
|
|
235
|
+
export function getWebhookDocumentationFromJSON(jsonString) {
|
|
236
|
+
return safeParse(jsonString, (x) => GetWebhookDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookDocumentation' from JSON`);
|
|
237
|
+
}
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const GetWebhookLinks$inboundSchema = z.object({
|
|
240
|
+
documentation: z.lazy(() => GetWebhookDocumentation$inboundSchema),
|
|
241
|
+
});
|
|
242
|
+
/** @internal */
|
|
243
|
+
export const GetWebhookLinks$outboundSchema = z.object({
|
|
244
|
+
documentation: z.lazy(() => GetWebhookDocumentation$outboundSchema),
|
|
245
|
+
});
|
|
246
|
+
/**
|
|
247
|
+
* @internal
|
|
248
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
249
|
+
*/
|
|
250
|
+
export var GetWebhookLinks$;
|
|
251
|
+
(function (GetWebhookLinks$) {
|
|
252
|
+
/** @deprecated use `GetWebhookLinks$inboundSchema` instead. */
|
|
253
|
+
GetWebhookLinks$.inboundSchema = GetWebhookLinks$inboundSchema;
|
|
254
|
+
/** @deprecated use `GetWebhookLinks$outboundSchema` instead. */
|
|
255
|
+
GetWebhookLinks$.outboundSchema = GetWebhookLinks$outboundSchema;
|
|
256
|
+
})(GetWebhookLinks$ || (GetWebhookLinks$ = {}));
|
|
257
|
+
export function getWebhookLinksToJSON(getWebhookLinks) {
|
|
258
|
+
return JSON.stringify(GetWebhookLinks$outboundSchema.parse(getWebhookLinks));
|
|
259
|
+
}
|
|
260
|
+
export function getWebhookLinksFromJSON(jsonString) {
|
|
261
|
+
return safeParse(jsonString, (x) => GetWebhookLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookLinks' from JSON`);
|
|
262
|
+
}
|
|
263
|
+
/** @internal */
|
|
184
264
|
export const GetWebhookResponse$inboundSchema = z.object({
|
|
185
|
-
resource: z.string()
|
|
186
|
-
id: z.string()
|
|
187
|
-
url: z.string()
|
|
188
|
-
profileId: z.
|
|
189
|
-
createdAt: z.string()
|
|
190
|
-
name: z.string()
|
|
191
|
-
eventTypes: z.array(
|
|
192
|
-
status: GetWebhookStatus$inboundSchema
|
|
193
|
-
mode: GetWebhookMode$inboundSchema
|
|
265
|
+
resource: z.string(),
|
|
266
|
+
id: z.string(),
|
|
267
|
+
url: z.string(),
|
|
268
|
+
profileId: z.nullable(z.string()),
|
|
269
|
+
createdAt: z.string(),
|
|
270
|
+
name: z.string(),
|
|
271
|
+
eventTypes: z.array(GetWebhookWebhookEventTypes$inboundSchema),
|
|
272
|
+
status: GetWebhookStatus$inboundSchema,
|
|
273
|
+
mode: GetWebhookMode$inboundSchema,
|
|
274
|
+
_links: z.lazy(() => GetWebhookLinks$inboundSchema),
|
|
275
|
+
}).transform((v) => {
|
|
276
|
+
return remap$(v, {
|
|
277
|
+
"_links": "links",
|
|
278
|
+
});
|
|
194
279
|
});
|
|
195
280
|
/** @internal */
|
|
196
281
|
export const GetWebhookResponse$outboundSchema = z.object({
|
|
197
|
-
resource: z.string()
|
|
198
|
-
id: z.string()
|
|
199
|
-
url: z.string()
|
|
200
|
-
profileId: z.
|
|
201
|
-
createdAt: z.string()
|
|
202
|
-
name: z.string()
|
|
203
|
-
eventTypes: z.array(
|
|
204
|
-
status: GetWebhookStatus$outboundSchema
|
|
205
|
-
mode: GetWebhookMode$outboundSchema
|
|
282
|
+
resource: z.string(),
|
|
283
|
+
id: z.string(),
|
|
284
|
+
url: z.string(),
|
|
285
|
+
profileId: z.nullable(z.string()),
|
|
286
|
+
createdAt: z.string(),
|
|
287
|
+
name: z.string(),
|
|
288
|
+
eventTypes: z.array(GetWebhookWebhookEventTypes$outboundSchema),
|
|
289
|
+
status: GetWebhookStatus$outboundSchema,
|
|
290
|
+
mode: GetWebhookMode$outboundSchema,
|
|
291
|
+
links: z.lazy(() => GetWebhookLinks$outboundSchema),
|
|
292
|
+
}).transform((v) => {
|
|
293
|
+
return remap$(v, {
|
|
294
|
+
links: "_links",
|
|
295
|
+
});
|
|
206
296
|
});
|
|
207
297
|
/**
|
|
208
298
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getwebhook.js","sourceRoot":"","sources":["../../../../src/models/operations/getwebhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAoDjD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"getwebhook.js","sourceRoot":"","sources":["../../../../src/models/operations/getwebhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAoDjD;;GAEG;AACH,MAAM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O,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,22 @@ export type GetWebhookEventNotFoundLinks = {
|
|
|
31
31
|
*/
|
|
32
32
|
documentation: GetWebhookEventNotFoundDocumentation;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* The event's type
|
|
36
|
+
*/
|
|
37
|
+
export declare const GetWebhookEventWebhookEventTypes: {
|
|
38
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
39
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
40
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
41
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
42
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
43
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
44
|
+
readonly Wildcard: "*";
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The event's type
|
|
48
|
+
*/
|
|
49
|
+
export type GetWebhookEventWebhookEventTypes = ClosedEnum<typeof GetWebhookEventWebhookEventTypes>;
|
|
34
50
|
/**
|
|
35
51
|
* Whether this entity was created in live mode or in test mode.
|
|
36
52
|
*/
|
|
@@ -1077,11 +1093,11 @@ export type GetWebhookEventLinks = {
|
|
|
1077
1093
|
/**
|
|
1078
1094
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
1079
1095
|
*/
|
|
1080
|
-
self
|
|
1096
|
+
self: GetWebhookEventSelf;
|
|
1081
1097
|
/**
|
|
1082
1098
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
1083
1099
|
*/
|
|
1084
|
-
documentation
|
|
1100
|
+
documentation: GetWebhookEventDocumentation;
|
|
1085
1101
|
/**
|
|
1086
1102
|
* The API resource URL of the entity that this event belongs to.
|
|
1087
1103
|
*/
|
|
@@ -1094,23 +1110,23 @@ export type GetWebhookEventResponse = {
|
|
|
1094
1110
|
/**
|
|
1095
1111
|
* Indicates the response contains a webhook event object. Will always contain the string `event` for this endpoint.
|
|
1096
1112
|
*/
|
|
1097
|
-
resource
|
|
1113
|
+
resource: string;
|
|
1098
1114
|
/**
|
|
1099
1115
|
* The identifier uniquely referring to this event.
|
|
1100
1116
|
*/
|
|
1101
|
-
id
|
|
1117
|
+
id: string;
|
|
1102
1118
|
/**
|
|
1103
|
-
* The event's type
|
|
1119
|
+
* The event's type
|
|
1104
1120
|
*/
|
|
1105
|
-
|
|
1121
|
+
webhookEventTypes: GetWebhookEventWebhookEventTypes;
|
|
1106
1122
|
/**
|
|
1107
1123
|
* The entity token that triggered the event
|
|
1108
1124
|
*/
|
|
1109
|
-
entityId
|
|
1125
|
+
entityId: string;
|
|
1110
1126
|
/**
|
|
1111
1127
|
* The event's date time of creation.
|
|
1112
1128
|
*/
|
|
1113
|
-
createdAt
|
|
1129
|
+
createdAt: string;
|
|
1114
1130
|
/**
|
|
1115
1131
|
* Full payload of the event.
|
|
1116
1132
|
*/
|
|
@@ -1118,7 +1134,7 @@ export type GetWebhookEventResponse = {
|
|
|
1118
1134
|
/**
|
|
1119
1135
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
1120
1136
|
*/
|
|
1121
|
-
links
|
|
1137
|
+
links: GetWebhookEventLinks;
|
|
1122
1138
|
};
|
|
1123
1139
|
/** @internal */
|
|
1124
1140
|
export declare const GetWebhookEventRequest$inboundSchema: z.ZodType<GetWebhookEventRequest, z.ZodTypeDef, unknown>;
|
|
@@ -1189,6 +1205,36 @@ export declare namespace GetWebhookEventNotFoundLinks$ {
|
|
|
1189
1205
|
export declare function getWebhookEventNotFoundLinksToJSON(getWebhookEventNotFoundLinks: GetWebhookEventNotFoundLinks): string;
|
|
1190
1206
|
export declare function getWebhookEventNotFoundLinksFromJSON(jsonString: string): SafeParseResult<GetWebhookEventNotFoundLinks, SDKValidationError>;
|
|
1191
1207
|
/** @internal */
|
|
1208
|
+
export declare const GetWebhookEventWebhookEventTypes$inboundSchema: z.ZodNativeEnum<typeof GetWebhookEventWebhookEventTypes>;
|
|
1209
|
+
/** @internal */
|
|
1210
|
+
export declare const GetWebhookEventWebhookEventTypes$outboundSchema: z.ZodNativeEnum<typeof GetWebhookEventWebhookEventTypes>;
|
|
1211
|
+
/**
|
|
1212
|
+
* @internal
|
|
1213
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1214
|
+
*/
|
|
1215
|
+
export declare namespace GetWebhookEventWebhookEventTypes$ {
|
|
1216
|
+
/** @deprecated use `GetWebhookEventWebhookEventTypes$inboundSchema` instead. */
|
|
1217
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1218
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
1219
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
1220
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
1221
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
1222
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
1223
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
1224
|
+
readonly Wildcard: "*";
|
|
1225
|
+
}>;
|
|
1226
|
+
/** @deprecated use `GetWebhookEventWebhookEventTypes$outboundSchema` instead. */
|
|
1227
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1228
|
+
readonly PaymentLinkPaid: "payment-link.paid";
|
|
1229
|
+
readonly BalanceTransactionCreated: "balance-transaction.created";
|
|
1230
|
+
readonly SalesInvoiceCreated: "sales-invoice.created";
|
|
1231
|
+
readonly SalesInvoiceIssued: "sales-invoice.issued";
|
|
1232
|
+
readonly SalesInvoiceCanceled: "sales-invoice.canceled";
|
|
1233
|
+
readonly SalesInvoicePaid: "sales-invoice.paid";
|
|
1234
|
+
readonly Wildcard: "*";
|
|
1235
|
+
}>;
|
|
1236
|
+
}
|
|
1237
|
+
/** @internal */
|
|
1192
1238
|
export declare const GetWebhookEventMode2$inboundSchema: z.ZodNativeEnum<typeof GetWebhookEventMode2>;
|
|
1193
1239
|
/** @internal */
|
|
1194
1240
|
export declare const GetWebhookEventMode2$outboundSchema: z.ZodNativeEnum<typeof GetWebhookEventMode2>;
|
|
@@ -2127,8 +2173,8 @@ export declare function linksEntityFromJSON(jsonString: string): SafeParseResult
|
|
|
2127
2173
|
export declare const GetWebhookEventLinks$inboundSchema: z.ZodType<GetWebhookEventLinks, z.ZodTypeDef, unknown>;
|
|
2128
2174
|
/** @internal */
|
|
2129
2175
|
export type GetWebhookEventLinks$Outbound = {
|
|
2130
|
-
self
|
|
2131
|
-
documentation
|
|
2176
|
+
self: GetWebhookEventSelf$Outbound;
|
|
2177
|
+
documentation: GetWebhookEventDocumentation$Outbound;
|
|
2132
2178
|
entity?: LinksEntity$Outbound | undefined;
|
|
2133
2179
|
};
|
|
2134
2180
|
/** @internal */
|
|
@@ -2151,13 +2197,13 @@ export declare function getWebhookEventLinksFromJSON(jsonString: string): SafePa
|
|
|
2151
2197
|
export declare const GetWebhookEventResponse$inboundSchema: z.ZodType<GetWebhookEventResponse, z.ZodTypeDef, unknown>;
|
|
2152
2198
|
/** @internal */
|
|
2153
2199
|
export type GetWebhookEventResponse$Outbound = {
|
|
2154
|
-
resource
|
|
2155
|
-
id
|
|
2156
|
-
type
|
|
2157
|
-
entityId
|
|
2158
|
-
createdAt
|
|
2200
|
+
resource: string;
|
|
2201
|
+
id: string;
|
|
2202
|
+
type: string;
|
|
2203
|
+
entityId: string;
|
|
2204
|
+
createdAt: string;
|
|
2159
2205
|
_embedded?: GetWebhookEventEmbedded$Outbound | null | undefined;
|
|
2160
|
-
_links
|
|
2206
|
+
_links: GetWebhookEventLinks$Outbound;
|
|
2161
2207
|
};
|
|
2162
2208
|
/** @internal */
|
|
2163
2209
|
export declare const GetWebhookEventResponse$outboundSchema: z.ZodType<GetWebhookEventResponse$Outbound, z.ZodTypeDef, GetWebhookEventResponse>;
|