@frogbotai/piece-stripe 0.27.0 → 0.29.0

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.
@@ -1,239 +1,1440 @@
1
- import type { PieceWebhookTrigger } from 'frogbot/pieces';
2
1
  import { z } from 'zod';
3
2
  import type { StripeResponse } from './client.js';
4
- type StripeWebhookState = {
5
- webhookId: string;
6
- endpointSecret: string;
7
- };
8
- export declare const stripeTriggerDefinitions: readonly [PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
9
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
10
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
11
- status: number;
12
- headers: {
13
- [k: string]: string;
14
- };
15
- body: StripeResponse;
3
+ export declare const stripeTriggerDefinitions: readonly [{
4
+ slug: string;
5
+ label?: string;
6
+ description: string;
7
+ input: z.ZodObject<{}, z.core.$strip>;
8
+ output?: undefined;
9
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
10
+ } & {
11
+ type: "webhook";
12
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
13
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
14
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
15
+ status: number;
16
+ headers: {
17
+ [k: string]: string;
18
+ };
19
+ body: StripeResponse;
20
+ }>;
21
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
22
+ value: string;
23
+ label: string;
24
+ }[]>;
25
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
26
+ unsubscribe(webhookId: string): Promise<void>;
27
+ }> & {
28
+ webhookUrl: string;
29
+ }): Promise<{
30
+ webhookId: string;
31
+ endpointSecret: string;
16
32
  }>;
17
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
18
- value: string;
19
- label: string;
20
- }[]>;
21
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
22
- unsubscribe(webhookId: string): Promise<void>;
23
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
24
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
25
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
26
- status: number;
27
- headers: {
28
- [k: string]: string;
29
- };
30
- body: StripeResponse;
33
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
34
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
35
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
36
+ status: number;
37
+ headers: {
38
+ [k: string]: string;
39
+ };
40
+ body: StripeResponse;
41
+ }>;
42
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
43
+ value: string;
44
+ label: string;
45
+ }[]>;
46
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
47
+ unsubscribe(webhookId: string): Promise<void>;
48
+ }> & {
49
+ state: {
50
+ webhookId: string;
51
+ endpointSecret: string;
52
+ };
53
+ }): Promise<void>;
54
+ renew?: {
55
+ schedule: string;
56
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
57
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
58
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
59
+ status: number;
60
+ headers: {
61
+ [k: string]: string;
62
+ };
63
+ body: StripeResponse;
64
+ }>;
65
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
66
+ value: string;
67
+ label: string;
68
+ }[]>;
69
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
70
+ unsubscribe(webhookId: string): Promise<void>;
71
+ }> & {
72
+ state: {
73
+ webhookId: string;
74
+ endpointSecret: string;
75
+ };
76
+ webhookUrl: string;
77
+ }): Promise<{
78
+ webhookId: string;
79
+ endpointSecret: string;
80
+ }>;
81
+ } | undefined;
82
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
83
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
84
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
85
+ status: number;
86
+ headers: {
87
+ [k: string]: string;
88
+ };
89
+ body: StripeResponse;
90
+ }>;
91
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
92
+ value: string;
93
+ label: string;
94
+ }[]>;
95
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
96
+ unsubscribe(webhookId: string): Promise<void>;
97
+ }> & {
98
+ state: {
99
+ webhookId: string;
100
+ endpointSecret: string;
101
+ };
102
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
103
+ } & {
104
+ slug: "paymentSucceeded";
105
+ }, {
106
+ slug: string;
107
+ label?: string;
108
+ description: string;
109
+ input: z.ZodObject<{}, z.core.$strip>;
110
+ output?: undefined;
111
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
112
+ } & {
113
+ type: "webhook";
114
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
115
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
116
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
117
+ status: number;
118
+ headers: {
119
+ [k: string]: string;
120
+ };
121
+ body: StripeResponse;
122
+ }>;
123
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
124
+ value: string;
125
+ label: string;
126
+ }[]>;
127
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
128
+ unsubscribe(webhookId: string): Promise<void>;
129
+ }> & {
130
+ webhookUrl: string;
131
+ }): Promise<{
132
+ webhookId: string;
133
+ endpointSecret: string;
31
134
  }>;
32
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
33
- value: string;
34
- label: string;
35
- }[]>;
36
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
37
- unsubscribe(webhookId: string): Promise<void>;
38
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
39
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
40
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
41
- status: number;
42
- headers: {
43
- [k: string]: string;
44
- };
45
- body: StripeResponse;
135
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
136
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
137
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
138
+ status: number;
139
+ headers: {
140
+ [k: string]: string;
141
+ };
142
+ body: StripeResponse;
143
+ }>;
144
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
145
+ value: string;
146
+ label: string;
147
+ }[]>;
148
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
149
+ unsubscribe(webhookId: string): Promise<void>;
150
+ }> & {
151
+ state: {
152
+ webhookId: string;
153
+ endpointSecret: string;
154
+ };
155
+ }): Promise<void>;
156
+ renew?: {
157
+ schedule: string;
158
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
159
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
160
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
161
+ status: number;
162
+ headers: {
163
+ [k: string]: string;
164
+ };
165
+ body: StripeResponse;
166
+ }>;
167
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
168
+ value: string;
169
+ label: string;
170
+ }[]>;
171
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
172
+ unsubscribe(webhookId: string): Promise<void>;
173
+ }> & {
174
+ state: {
175
+ webhookId: string;
176
+ endpointSecret: string;
177
+ };
178
+ webhookUrl: string;
179
+ }): Promise<{
180
+ webhookId: string;
181
+ endpointSecret: string;
182
+ }>;
183
+ } | undefined;
184
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
185
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
186
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
187
+ status: number;
188
+ headers: {
189
+ [k: string]: string;
190
+ };
191
+ body: StripeResponse;
192
+ }>;
193
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
194
+ value: string;
195
+ label: string;
196
+ }[]>;
197
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
198
+ unsubscribe(webhookId: string): Promise<void>;
199
+ }> & {
200
+ state: {
201
+ webhookId: string;
202
+ endpointSecret: string;
203
+ };
204
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
205
+ } & {
206
+ slug: "customerCreated";
207
+ }, {
208
+ slug: string;
209
+ label?: string;
210
+ description: string;
211
+ input: z.ZodObject<{}, z.core.$strip>;
212
+ output?: undefined;
213
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
214
+ } & {
215
+ type: "webhook";
216
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
217
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
218
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
219
+ status: number;
220
+ headers: {
221
+ [k: string]: string;
222
+ };
223
+ body: StripeResponse;
224
+ }>;
225
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
226
+ value: string;
227
+ label: string;
228
+ }[]>;
229
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
230
+ unsubscribe(webhookId: string): Promise<void>;
231
+ }> & {
232
+ webhookUrl: string;
233
+ }): Promise<{
234
+ webhookId: string;
235
+ endpointSecret: string;
46
236
  }>;
47
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
48
- value: string;
49
- label: string;
50
- }[]>;
51
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
52
- unsubscribe(webhookId: string): Promise<void>;
53
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
54
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
55
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
56
- status: number;
57
- headers: {
58
- [k: string]: string;
59
- };
60
- body: StripeResponse;
237
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
238
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
239
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
240
+ status: number;
241
+ headers: {
242
+ [k: string]: string;
243
+ };
244
+ body: StripeResponse;
245
+ }>;
246
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
247
+ value: string;
248
+ label: string;
249
+ }[]>;
250
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
251
+ unsubscribe(webhookId: string): Promise<void>;
252
+ }> & {
253
+ state: {
254
+ webhookId: string;
255
+ endpointSecret: string;
256
+ };
257
+ }): Promise<void>;
258
+ renew?: {
259
+ schedule: string;
260
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
261
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
262
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
263
+ status: number;
264
+ headers: {
265
+ [k: string]: string;
266
+ };
267
+ body: StripeResponse;
268
+ }>;
269
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
270
+ value: string;
271
+ label: string;
272
+ }[]>;
273
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
274
+ unsubscribe(webhookId: string): Promise<void>;
275
+ }> & {
276
+ state: {
277
+ webhookId: string;
278
+ endpointSecret: string;
279
+ };
280
+ webhookUrl: string;
281
+ }): Promise<{
282
+ webhookId: string;
283
+ endpointSecret: string;
284
+ }>;
285
+ } | undefined;
286
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
287
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
288
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
289
+ status: number;
290
+ headers: {
291
+ [k: string]: string;
292
+ };
293
+ body: StripeResponse;
294
+ }>;
295
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
296
+ value: string;
297
+ label: string;
298
+ }[]>;
299
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
300
+ unsubscribe(webhookId: string): Promise<void>;
301
+ }> & {
302
+ state: {
303
+ webhookId: string;
304
+ endpointSecret: string;
305
+ };
306
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
307
+ } & {
308
+ slug: "paymentFailed";
309
+ }, {
310
+ slug: string;
311
+ label?: string;
312
+ description: string;
313
+ input: z.ZodObject<{}, z.core.$strip>;
314
+ output?: undefined;
315
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
316
+ } & {
317
+ type: "webhook";
318
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
319
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
320
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
321
+ status: number;
322
+ headers: {
323
+ [k: string]: string;
324
+ };
325
+ body: StripeResponse;
326
+ }>;
327
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
328
+ value: string;
329
+ label: string;
330
+ }[]>;
331
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
332
+ unsubscribe(webhookId: string): Promise<void>;
333
+ }> & {
334
+ webhookUrl: string;
335
+ }): Promise<{
336
+ webhookId: string;
337
+ endpointSecret: string;
61
338
  }>;
62
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
63
- value: string;
64
- label: string;
65
- }[]>;
66
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
67
- unsubscribe(webhookId: string): Promise<void>;
68
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
69
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
70
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
71
- status: number;
72
- headers: {
73
- [k: string]: string;
74
- };
75
- body: StripeResponse;
339
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
340
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
341
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
342
+ status: number;
343
+ headers: {
344
+ [k: string]: string;
345
+ };
346
+ body: StripeResponse;
347
+ }>;
348
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
349
+ value: string;
350
+ label: string;
351
+ }[]>;
352
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
353
+ unsubscribe(webhookId: string): Promise<void>;
354
+ }> & {
355
+ state: {
356
+ webhookId: string;
357
+ endpointSecret: string;
358
+ };
359
+ }): Promise<void>;
360
+ renew?: {
361
+ schedule: string;
362
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
363
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
364
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
365
+ status: number;
366
+ headers: {
367
+ [k: string]: string;
368
+ };
369
+ body: StripeResponse;
370
+ }>;
371
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
372
+ value: string;
373
+ label: string;
374
+ }[]>;
375
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
376
+ unsubscribe(webhookId: string): Promise<void>;
377
+ }> & {
378
+ state: {
379
+ webhookId: string;
380
+ endpointSecret: string;
381
+ };
382
+ webhookUrl: string;
383
+ }): Promise<{
384
+ webhookId: string;
385
+ endpointSecret: string;
386
+ }>;
387
+ } | undefined;
388
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
389
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
390
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
391
+ status: number;
392
+ headers: {
393
+ [k: string]: string;
394
+ };
395
+ body: StripeResponse;
396
+ }>;
397
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
398
+ value: string;
399
+ label: string;
400
+ }[]>;
401
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
402
+ unsubscribe(webhookId: string): Promise<void>;
403
+ }> & {
404
+ state: {
405
+ webhookId: string;
406
+ endpointSecret: string;
407
+ };
408
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
409
+ } & {
410
+ slug: "subscriptionCreated";
411
+ }, {
412
+ slug: string;
413
+ label?: string;
414
+ description: string;
415
+ input: z.ZodObject<{}, z.core.$strip>;
416
+ output?: undefined;
417
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
418
+ } & {
419
+ type: "webhook";
420
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
421
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
422
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
423
+ status: number;
424
+ headers: {
425
+ [k: string]: string;
426
+ };
427
+ body: StripeResponse;
428
+ }>;
429
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
430
+ value: string;
431
+ label: string;
432
+ }[]>;
433
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
434
+ unsubscribe(webhookId: string): Promise<void>;
435
+ }> & {
436
+ webhookUrl: string;
437
+ }): Promise<{
438
+ webhookId: string;
439
+ endpointSecret: string;
76
440
  }>;
77
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
78
- value: string;
79
- label: string;
80
- }[]>;
81
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
82
- unsubscribe(webhookId: string): Promise<void>;
83
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
84
- status: z.ZodOptional<z.ZodEnum<{
85
- void: "void";
86
- draft: "draft";
87
- open: "open";
88
- paid: "paid";
89
- uncollectible: "uncollectible";
90
- }>>;
91
- customerId: z.ZodOptional<z.ZodString>;
92
- subscriptionId: z.ZodOptional<z.ZodString>;
93
- }, z.core.$strip>, undefined, Record<string, never>, {
94
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
95
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
96
- status: number;
97
- headers: {
98
- [k: string]: string;
99
- };
100
- body: StripeResponse;
441
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
442
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
443
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
444
+ status: number;
445
+ headers: {
446
+ [k: string]: string;
447
+ };
448
+ body: StripeResponse;
449
+ }>;
450
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
451
+ value: string;
452
+ label: string;
453
+ }[]>;
454
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
455
+ unsubscribe(webhookId: string): Promise<void>;
456
+ }> & {
457
+ state: {
458
+ webhookId: string;
459
+ endpointSecret: string;
460
+ };
461
+ }): Promise<void>;
462
+ renew?: {
463
+ schedule: string;
464
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
465
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
466
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
467
+ status: number;
468
+ headers: {
469
+ [k: string]: string;
470
+ };
471
+ body: StripeResponse;
472
+ }>;
473
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
474
+ value: string;
475
+ label: string;
476
+ }[]>;
477
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
478
+ unsubscribe(webhookId: string): Promise<void>;
479
+ }> & {
480
+ state: {
481
+ webhookId: string;
482
+ endpointSecret: string;
483
+ };
484
+ webhookUrl: string;
485
+ }): Promise<{
486
+ webhookId: string;
487
+ endpointSecret: string;
488
+ }>;
489
+ } | undefined;
490
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
491
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
492
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
493
+ status: number;
494
+ headers: {
495
+ [k: string]: string;
496
+ };
497
+ body: StripeResponse;
498
+ }>;
499
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
500
+ value: string;
501
+ label: string;
502
+ }[]>;
503
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
504
+ unsubscribe(webhookId: string): Promise<void>;
505
+ }> & {
506
+ state: {
507
+ webhookId: string;
508
+ endpointSecret: string;
509
+ };
510
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
511
+ } & {
512
+ slug: "chargeSucceeded";
513
+ }, {
514
+ slug: string;
515
+ label?: string;
516
+ description: string;
517
+ input: z.ZodObject<{
518
+ status: z.ZodOptional<z.ZodEnum<{
519
+ void: "void";
520
+ draft: "draft";
521
+ open: "open";
522
+ paid: "paid";
523
+ uncollectible: "uncollectible";
524
+ }>>;
525
+ customerId: z.ZodOptional<z.ZodString>;
526
+ subscriptionId: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strip>;
528
+ output?: undefined;
529
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
530
+ } & {
531
+ type: "webhook";
532
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
533
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
534
+ customerId?: string | undefined;
535
+ subscriptionId?: string | undefined;
536
+ }, Record<string, never>, {
537
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
538
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
539
+ status: number;
540
+ headers: {
541
+ [k: string]: string;
542
+ };
543
+ body: StripeResponse;
544
+ }>;
545
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
546
+ value: string;
547
+ label: string;
548
+ }[]>;
549
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
550
+ unsubscribe(webhookId: string): Promise<void>;
551
+ }> & {
552
+ webhookUrl: string;
553
+ }): Promise<{
554
+ webhookId: string;
555
+ endpointSecret: string;
101
556
  }>;
102
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
103
- value: string;
104
- label: string;
105
- }[]>;
106
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
107
- unsubscribe(webhookId: string): Promise<void>;
108
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
109
- customerId: z.ZodOptional<z.ZodString>;
110
- }, z.core.$strip>, undefined, Record<string, never>, {
111
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
112
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
113
- status: number;
114
- headers: {
115
- [k: string]: string;
116
- };
117
- body: StripeResponse;
557
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
558
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
559
+ customerId?: string | undefined;
560
+ subscriptionId?: string | undefined;
561
+ }, Record<string, never>, {
562
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
563
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
564
+ status: number;
565
+ headers: {
566
+ [k: string]: string;
567
+ };
568
+ body: StripeResponse;
569
+ }>;
570
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
571
+ value: string;
572
+ label: string;
573
+ }[]>;
574
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
575
+ unsubscribe(webhookId: string): Promise<void>;
576
+ }> & {
577
+ state: {
578
+ webhookId: string;
579
+ endpointSecret: string;
580
+ };
581
+ }): Promise<void>;
582
+ renew?: {
583
+ schedule: string;
584
+ run(args: import("frogbot/pieces").PieceRunArgs<{
585
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
586
+ customerId?: string | undefined;
587
+ subscriptionId?: string | undefined;
588
+ }, Record<string, never>, {
589
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
590
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
591
+ status: number;
592
+ headers: {
593
+ [k: string]: string;
594
+ };
595
+ body: StripeResponse;
596
+ }>;
597
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
598
+ value: string;
599
+ label: string;
600
+ }[]>;
601
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
602
+ unsubscribe(webhookId: string): Promise<void>;
603
+ }> & {
604
+ state: {
605
+ webhookId: string;
606
+ endpointSecret: string;
607
+ };
608
+ webhookUrl: string;
609
+ }): Promise<{
610
+ webhookId: string;
611
+ endpointSecret: string;
612
+ }>;
613
+ } | undefined;
614
+ run(args: import("frogbot/pieces").PieceRunArgs<{
615
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
616
+ customerId?: string | undefined;
617
+ subscriptionId?: string | undefined;
618
+ }, Record<string, never>, {
619
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
620
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
621
+ status: number;
622
+ headers: {
623
+ [k: string]: string;
624
+ };
625
+ body: StripeResponse;
626
+ }>;
627
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
628
+ value: string;
629
+ label: string;
630
+ }[]>;
631
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
632
+ unsubscribe(webhookId: string): Promise<void>;
633
+ }> & {
634
+ state: {
635
+ webhookId: string;
636
+ endpointSecret: string;
637
+ };
638
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
639
+ } & {
640
+ slug: "invoiceCreated";
641
+ }, {
642
+ slug: string;
643
+ label?: string;
644
+ description: string;
645
+ input: z.ZodObject<{
646
+ customerId: z.ZodOptional<z.ZodString>;
647
+ }, z.core.$strip>;
648
+ output?: undefined;
649
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
650
+ } & {
651
+ type: "webhook";
652
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
653
+ customerId?: string | undefined;
654
+ }, Record<string, never>, {
655
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
656
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
657
+ status: number;
658
+ headers: {
659
+ [k: string]: string;
660
+ };
661
+ body: StripeResponse;
662
+ }>;
663
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
664
+ value: string;
665
+ label: string;
666
+ }[]>;
667
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
668
+ unsubscribe(webhookId: string): Promise<void>;
669
+ }> & {
670
+ webhookUrl: string;
671
+ }): Promise<{
672
+ webhookId: string;
673
+ endpointSecret: string;
118
674
  }>;
119
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
120
- value: string;
121
- label: string;
122
- }[]>;
123
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
124
- unsubscribe(webhookId: string): Promise<void>;
125
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
126
- customerId: z.ZodOptional<z.ZodString>;
127
- }, z.core.$strip>, undefined, Record<string, never>, {
128
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
129
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
130
- status: number;
131
- headers: {
132
- [k: string]: string;
133
- };
134
- body: StripeResponse;
675
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
676
+ customerId?: string | undefined;
677
+ }, Record<string, never>, {
678
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
679
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
680
+ status: number;
681
+ headers: {
682
+ [k: string]: string;
683
+ };
684
+ body: StripeResponse;
685
+ }>;
686
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
687
+ value: string;
688
+ label: string;
689
+ }[]>;
690
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
691
+ unsubscribe(webhookId: string): Promise<void>;
692
+ }> & {
693
+ state: {
694
+ webhookId: string;
695
+ endpointSecret: string;
696
+ };
697
+ }): Promise<void>;
698
+ renew?: {
699
+ schedule: string;
700
+ run(args: import("frogbot/pieces").PieceRunArgs<{
701
+ customerId?: string | undefined;
702
+ }, Record<string, never>, {
703
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
704
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
705
+ status: number;
706
+ headers: {
707
+ [k: string]: string;
708
+ };
709
+ body: StripeResponse;
710
+ }>;
711
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
712
+ value: string;
713
+ label: string;
714
+ }[]>;
715
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
716
+ unsubscribe(webhookId: string): Promise<void>;
717
+ }> & {
718
+ state: {
719
+ webhookId: string;
720
+ endpointSecret: string;
721
+ };
722
+ webhookUrl: string;
723
+ }): Promise<{
724
+ webhookId: string;
725
+ endpointSecret: string;
726
+ }>;
727
+ } | undefined;
728
+ run(args: import("frogbot/pieces").PieceRunArgs<{
729
+ customerId?: string | undefined;
730
+ }, Record<string, never>, {
731
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
732
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
733
+ status: number;
734
+ headers: {
735
+ [k: string]: string;
736
+ };
737
+ body: StripeResponse;
738
+ }>;
739
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
740
+ value: string;
741
+ label: string;
742
+ }[]>;
743
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
744
+ unsubscribe(webhookId: string): Promise<void>;
745
+ }> & {
746
+ state: {
747
+ webhookId: string;
748
+ endpointSecret: string;
749
+ };
750
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
751
+ } & {
752
+ slug: "invoicePaymentFailed";
753
+ }, {
754
+ slug: string;
755
+ label?: string;
756
+ description: string;
757
+ input: z.ZodObject<{
758
+ customerId: z.ZodOptional<z.ZodString>;
759
+ }, z.core.$strip>;
760
+ output?: undefined;
761
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
762
+ } & {
763
+ type: "webhook";
764
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
765
+ customerId?: string | undefined;
766
+ }, Record<string, never>, {
767
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
768
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
769
+ status: number;
770
+ headers: {
771
+ [k: string]: string;
772
+ };
773
+ body: StripeResponse;
774
+ }>;
775
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
776
+ value: string;
777
+ label: string;
778
+ }[]>;
779
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
780
+ unsubscribe(webhookId: string): Promise<void>;
781
+ }> & {
782
+ webhookUrl: string;
783
+ }): Promise<{
784
+ webhookId: string;
785
+ endpointSecret: string;
135
786
  }>;
136
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
137
- value: string;
138
- label: string;
139
- }[]>;
140
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
141
- unsubscribe(webhookId: string): Promise<void>;
142
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
143
- chargeId: z.ZodOptional<z.ZodString>;
144
- paymentIntentId: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>, undefined, Record<string, never>, {
146
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
147
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
148
- status: number;
149
- headers: {
150
- [k: string]: string;
151
- };
152
- body: StripeResponse;
787
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
788
+ customerId?: string | undefined;
789
+ }, Record<string, never>, {
790
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
791
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
792
+ status: number;
793
+ headers: {
794
+ [k: string]: string;
795
+ };
796
+ body: StripeResponse;
797
+ }>;
798
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
799
+ value: string;
800
+ label: string;
801
+ }[]>;
802
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
803
+ unsubscribe(webhookId: string): Promise<void>;
804
+ }> & {
805
+ state: {
806
+ webhookId: string;
807
+ endpointSecret: string;
808
+ };
809
+ }): Promise<void>;
810
+ renew?: {
811
+ schedule: string;
812
+ run(args: import("frogbot/pieces").PieceRunArgs<{
813
+ customerId?: string | undefined;
814
+ }, Record<string, never>, {
815
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
816
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
817
+ status: number;
818
+ headers: {
819
+ [k: string]: string;
820
+ };
821
+ body: StripeResponse;
822
+ }>;
823
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
824
+ value: string;
825
+ label: string;
826
+ }[]>;
827
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
828
+ unsubscribe(webhookId: string): Promise<void>;
829
+ }> & {
830
+ state: {
831
+ webhookId: string;
832
+ endpointSecret: string;
833
+ };
834
+ webhookUrl: string;
835
+ }): Promise<{
836
+ webhookId: string;
837
+ endpointSecret: string;
838
+ }>;
839
+ } | undefined;
840
+ run(args: import("frogbot/pieces").PieceRunArgs<{
841
+ customerId?: string | undefined;
842
+ }, Record<string, never>, {
843
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
844
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
845
+ status: number;
846
+ headers: {
847
+ [k: string]: string;
848
+ };
849
+ body: StripeResponse;
850
+ }>;
851
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
852
+ value: string;
853
+ label: string;
854
+ }[]>;
855
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
856
+ unsubscribe(webhookId: string): Promise<void>;
857
+ }> & {
858
+ state: {
859
+ webhookId: string;
860
+ endpointSecret: string;
861
+ };
862
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
863
+ } & {
864
+ slug: "subscriptionCanceled";
865
+ }, {
866
+ slug: string;
867
+ label?: string;
868
+ description: string;
869
+ input: z.ZodObject<{
870
+ chargeId: z.ZodOptional<z.ZodString>;
871
+ paymentIntentId: z.ZodOptional<z.ZodString>;
872
+ }, z.core.$strip>;
873
+ output?: undefined;
874
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
875
+ } & {
876
+ type: "webhook";
877
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
878
+ chargeId?: string | undefined;
879
+ paymentIntentId?: string | undefined;
880
+ }, Record<string, never>, {
881
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
882
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
883
+ status: number;
884
+ headers: {
885
+ [k: string]: string;
886
+ };
887
+ body: StripeResponse;
888
+ }>;
889
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
890
+ value: string;
891
+ label: string;
892
+ }[]>;
893
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
894
+ unsubscribe(webhookId: string): Promise<void>;
895
+ }> & {
896
+ webhookUrl: string;
897
+ }): Promise<{
898
+ webhookId: string;
899
+ endpointSecret: string;
153
900
  }>;
154
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
155
- value: string;
156
- label: string;
157
- }[]>;
158
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
159
- unsubscribe(webhookId: string): Promise<void>;
160
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
161
- chargeId: z.ZodOptional<z.ZodString>;
162
- paymentIntentId: z.ZodOptional<z.ZodString>;
163
- }, z.core.$strip>, undefined, Record<string, never>, {
164
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
165
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
166
- status: number;
167
- headers: {
168
- [k: string]: string;
169
- };
170
- body: StripeResponse;
901
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
902
+ chargeId?: string | undefined;
903
+ paymentIntentId?: string | undefined;
904
+ }, Record<string, never>, {
905
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
906
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
907
+ status: number;
908
+ headers: {
909
+ [k: string]: string;
910
+ };
911
+ body: StripeResponse;
912
+ }>;
913
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
914
+ value: string;
915
+ label: string;
916
+ }[]>;
917
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
918
+ unsubscribe(webhookId: string): Promise<void>;
919
+ }> & {
920
+ state: {
921
+ webhookId: string;
922
+ endpointSecret: string;
923
+ };
924
+ }): Promise<void>;
925
+ renew?: {
926
+ schedule: string;
927
+ run(args: import("frogbot/pieces").PieceRunArgs<{
928
+ chargeId?: string | undefined;
929
+ paymentIntentId?: string | undefined;
930
+ }, Record<string, never>, {
931
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
932
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
933
+ status: number;
934
+ headers: {
935
+ [k: string]: string;
936
+ };
937
+ body: StripeResponse;
938
+ }>;
939
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
940
+ value: string;
941
+ label: string;
942
+ }[]>;
943
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
944
+ unsubscribe(webhookId: string): Promise<void>;
945
+ }> & {
946
+ state: {
947
+ webhookId: string;
948
+ endpointSecret: string;
949
+ };
950
+ webhookUrl: string;
951
+ }): Promise<{
952
+ webhookId: string;
953
+ endpointSecret: string;
954
+ }>;
955
+ } | undefined;
956
+ run(args: import("frogbot/pieces").PieceRunArgs<{
957
+ chargeId?: string | undefined;
958
+ paymentIntentId?: string | undefined;
959
+ }, Record<string, never>, {
960
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
961
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
962
+ status: number;
963
+ headers: {
964
+ [k: string]: string;
965
+ };
966
+ body: StripeResponse;
967
+ }>;
968
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
969
+ value: string;
970
+ label: string;
971
+ }[]>;
972
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
973
+ unsubscribe(webhookId: string): Promise<void>;
974
+ }> & {
975
+ state: {
976
+ webhookId: string;
977
+ endpointSecret: string;
978
+ };
979
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
980
+ } & {
981
+ slug: "refundCreated";
982
+ }, {
983
+ slug: string;
984
+ label?: string;
985
+ description: string;
986
+ input: z.ZodObject<{
987
+ chargeId: z.ZodOptional<z.ZodString>;
988
+ paymentIntentId: z.ZodOptional<z.ZodString>;
989
+ }, z.core.$strip>;
990
+ output?: undefined;
991
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
992
+ } & {
993
+ type: "webhook";
994
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
995
+ chargeId?: string | undefined;
996
+ paymentIntentId?: string | undefined;
997
+ }, Record<string, never>, {
998
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
999
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1000
+ status: number;
1001
+ headers: {
1002
+ [k: string]: string;
1003
+ };
1004
+ body: StripeResponse;
1005
+ }>;
1006
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1007
+ value: string;
1008
+ label: string;
1009
+ }[]>;
1010
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1011
+ unsubscribe(webhookId: string): Promise<void>;
1012
+ }> & {
1013
+ webhookUrl: string;
1014
+ }): Promise<{
1015
+ webhookId: string;
1016
+ endpointSecret: string;
171
1017
  }>;
172
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
173
- value: string;
174
- label: string;
175
- }[]>;
176
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
177
- unsubscribe(webhookId: string): Promise<void>;
178
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
179
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
180
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
181
- status: number;
182
- headers: {
183
- [k: string]: string;
184
- };
185
- body: StripeResponse;
1018
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1019
+ chargeId?: string | undefined;
1020
+ paymentIntentId?: string | undefined;
1021
+ }, Record<string, never>, {
1022
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1023
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1024
+ status: number;
1025
+ headers: {
1026
+ [k: string]: string;
1027
+ };
1028
+ body: StripeResponse;
1029
+ }>;
1030
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1031
+ value: string;
1032
+ label: string;
1033
+ }[]>;
1034
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1035
+ unsubscribe(webhookId: string): Promise<void>;
1036
+ }> & {
1037
+ state: {
1038
+ webhookId: string;
1039
+ endpointSecret: string;
1040
+ };
1041
+ }): Promise<void>;
1042
+ renew?: {
1043
+ schedule: string;
1044
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1045
+ chargeId?: string | undefined;
1046
+ paymentIntentId?: string | undefined;
1047
+ }, Record<string, never>, {
1048
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1049
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1050
+ status: number;
1051
+ headers: {
1052
+ [k: string]: string;
1053
+ };
1054
+ body: StripeResponse;
1055
+ }>;
1056
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1057
+ value: string;
1058
+ label: string;
1059
+ }[]>;
1060
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1061
+ unsubscribe(webhookId: string): Promise<void>;
1062
+ }> & {
1063
+ state: {
1064
+ webhookId: string;
1065
+ endpointSecret: string;
1066
+ };
1067
+ webhookUrl: string;
1068
+ }): Promise<{
1069
+ webhookId: string;
1070
+ endpointSecret: string;
1071
+ }>;
1072
+ } | undefined;
1073
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1074
+ chargeId?: string | undefined;
1075
+ paymentIntentId?: string | undefined;
1076
+ }, Record<string, never>, {
1077
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1078
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1079
+ status: number;
1080
+ headers: {
1081
+ [k: string]: string;
1082
+ };
1083
+ body: StripeResponse;
1084
+ }>;
1085
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1086
+ value: string;
1087
+ label: string;
1088
+ }[]>;
1089
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1090
+ unsubscribe(webhookId: string): Promise<void>;
1091
+ }> & {
1092
+ state: {
1093
+ webhookId: string;
1094
+ endpointSecret: string;
1095
+ };
1096
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1097
+ } & {
1098
+ slug: "disputeCreated";
1099
+ }, {
1100
+ slug: string;
1101
+ label?: string;
1102
+ description: string;
1103
+ input: z.ZodObject<{}, z.core.$strip>;
1104
+ output?: undefined;
1105
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1106
+ } & {
1107
+ type: "webhook";
1108
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1109
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1110
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1111
+ status: number;
1112
+ headers: {
1113
+ [k: string]: string;
1114
+ };
1115
+ body: StripeResponse;
1116
+ }>;
1117
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1118
+ value: string;
1119
+ label: string;
1120
+ }[]>;
1121
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1122
+ unsubscribe(webhookId: string): Promise<void>;
1123
+ }> & {
1124
+ webhookUrl: string;
1125
+ }): Promise<{
1126
+ webhookId: string;
1127
+ endpointSecret: string;
186
1128
  }>;
187
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
188
- value: string;
189
- label: string;
190
- }[]>;
191
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
192
- unsubscribe(webhookId: string): Promise<void>;
193
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
194
- status: z.ZodOptional<z.ZodEnum<{
195
- active: "active";
196
- past_due: "past_due";
197
- unpaid: "unpaid";
198
- canceled: "canceled";
199
- incomplete: "incomplete";
200
- incomplete_expired: "incomplete_expired";
201
- trialing: "trialing";
202
- paused: "paused";
203
- }>>;
204
- customerId: z.ZodOptional<z.ZodString>;
205
- }, z.core.$strip>, undefined, Record<string, never>, {
206
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
207
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
208
- status: number;
209
- headers: {
210
- [k: string]: string;
211
- };
212
- body: StripeResponse;
1129
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1130
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1131
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1132
+ status: number;
1133
+ headers: {
1134
+ [k: string]: string;
1135
+ };
1136
+ body: StripeResponse;
1137
+ }>;
1138
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1139
+ value: string;
1140
+ label: string;
1141
+ }[]>;
1142
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1143
+ unsubscribe(webhookId: string): Promise<void>;
1144
+ }> & {
1145
+ state: {
1146
+ webhookId: string;
1147
+ endpointSecret: string;
1148
+ };
1149
+ }): Promise<void>;
1150
+ renew?: {
1151
+ schedule: string;
1152
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1153
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1154
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1155
+ status: number;
1156
+ headers: {
1157
+ [k: string]: string;
1158
+ };
1159
+ body: StripeResponse;
1160
+ }>;
1161
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1162
+ value: string;
1163
+ label: string;
1164
+ }[]>;
1165
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1166
+ unsubscribe(webhookId: string): Promise<void>;
1167
+ }> & {
1168
+ state: {
1169
+ webhookId: string;
1170
+ endpointSecret: string;
1171
+ };
1172
+ webhookUrl: string;
1173
+ }): Promise<{
1174
+ webhookId: string;
1175
+ endpointSecret: string;
1176
+ }>;
1177
+ } | undefined;
1178
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1179
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1180
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1181
+ status: number;
1182
+ headers: {
1183
+ [k: string]: string;
1184
+ };
1185
+ body: StripeResponse;
1186
+ }>;
1187
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1188
+ value: string;
1189
+ label: string;
1190
+ }[]>;
1191
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1192
+ unsubscribe(webhookId: string): Promise<void>;
1193
+ }> & {
1194
+ state: {
1195
+ webhookId: string;
1196
+ endpointSecret: string;
1197
+ };
1198
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1199
+ } & {
1200
+ slug: "paymentLinkCreated";
1201
+ }, {
1202
+ slug: string;
1203
+ label?: string;
1204
+ description: string;
1205
+ input: z.ZodObject<{
1206
+ status: z.ZodOptional<z.ZodEnum<{
1207
+ active: "active";
1208
+ past_due: "past_due";
1209
+ unpaid: "unpaid";
1210
+ canceled: "canceled";
1211
+ incomplete: "incomplete";
1212
+ incomplete_expired: "incomplete_expired";
1213
+ trialing: "trialing";
1214
+ paused: "paused";
1215
+ }>>;
1216
+ customerId: z.ZodOptional<z.ZodString>;
1217
+ }, z.core.$strip>;
1218
+ output?: undefined;
1219
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1220
+ } & {
1221
+ type: "webhook";
1222
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1223
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1224
+ customerId?: string | undefined;
1225
+ }, Record<string, never>, {
1226
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1227
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1228
+ status: number;
1229
+ headers: {
1230
+ [k: string]: string;
1231
+ };
1232
+ body: StripeResponse;
1233
+ }>;
1234
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1235
+ value: string;
1236
+ label: string;
1237
+ }[]>;
1238
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1239
+ unsubscribe(webhookId: string): Promise<void>;
1240
+ }> & {
1241
+ webhookUrl: string;
1242
+ }): Promise<{
1243
+ webhookId: string;
1244
+ endpointSecret: string;
213
1245
  }>;
214
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
215
- value: string;
216
- label: string;
217
- }[]>;
218
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
219
- unsubscribe(webhookId: string): Promise<void>;
220
- }, StripeWebhookState>, PieceWebhookTrigger<z.ZodObject<{
221
- customerId: z.ZodOptional<z.ZodString>;
222
- }, z.core.$strip>, undefined, Record<string, never>, {
223
- request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
224
- requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
225
- status: number;
226
- headers: {
227
- [k: string]: string;
228
- };
229
- body: StripeResponse;
1246
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1247
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1248
+ customerId?: string | undefined;
1249
+ }, Record<string, never>, {
1250
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1251
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1252
+ status: number;
1253
+ headers: {
1254
+ [k: string]: string;
1255
+ };
1256
+ body: StripeResponse;
1257
+ }>;
1258
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1259
+ value: string;
1260
+ label: string;
1261
+ }[]>;
1262
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1263
+ unsubscribe(webhookId: string): Promise<void>;
1264
+ }> & {
1265
+ state: {
1266
+ webhookId: string;
1267
+ endpointSecret: string;
1268
+ };
1269
+ }): Promise<void>;
1270
+ renew?: {
1271
+ schedule: string;
1272
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1273
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1274
+ customerId?: string | undefined;
1275
+ }, Record<string, never>, {
1276
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1277
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1278
+ status: number;
1279
+ headers: {
1280
+ [k: string]: string;
1281
+ };
1282
+ body: StripeResponse;
1283
+ }>;
1284
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1285
+ value: string;
1286
+ label: string;
1287
+ }[]>;
1288
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1289
+ unsubscribe(webhookId: string): Promise<void>;
1290
+ }> & {
1291
+ state: {
1292
+ webhookId: string;
1293
+ endpointSecret: string;
1294
+ };
1295
+ webhookUrl: string;
1296
+ }): Promise<{
1297
+ webhookId: string;
1298
+ endpointSecret: string;
1299
+ }>;
1300
+ } | undefined;
1301
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1302
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1303
+ customerId?: string | undefined;
1304
+ }, Record<string, never>, {
1305
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1306
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1307
+ status: number;
1308
+ headers: {
1309
+ [k: string]: string;
1310
+ };
1311
+ body: StripeResponse;
1312
+ }>;
1313
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1314
+ value: string;
1315
+ label: string;
1316
+ }[]>;
1317
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1318
+ unsubscribe(webhookId: string): Promise<void>;
1319
+ }> & {
1320
+ state: {
1321
+ webhookId: string;
1322
+ endpointSecret: string;
1323
+ };
1324
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1325
+ } & {
1326
+ slug: "subscriptionUpdated";
1327
+ }, {
1328
+ slug: string;
1329
+ label?: string;
1330
+ description: string;
1331
+ input: z.ZodObject<{
1332
+ customerId: z.ZodOptional<z.ZodString>;
1333
+ }, z.core.$strip>;
1334
+ output?: undefined;
1335
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1336
+ } & {
1337
+ type: "webhook";
1338
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1339
+ customerId?: string | undefined;
1340
+ }, Record<string, never>, {
1341
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1342
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1343
+ status: number;
1344
+ headers: {
1345
+ [k: string]: string;
1346
+ };
1347
+ body: StripeResponse;
1348
+ }>;
1349
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1350
+ value: string;
1351
+ label: string;
1352
+ }[]>;
1353
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1354
+ unsubscribe(webhookId: string): Promise<void>;
1355
+ }> & {
1356
+ webhookUrl: string;
1357
+ }): Promise<{
1358
+ webhookId: string;
1359
+ endpointSecret: string;
230
1360
  }>;
231
- options(resource: string, label: (item: StripeResponse) => string): Promise<{
232
- value: string;
233
- label: string;
234
- }[]>;
235
- subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
236
- unsubscribe(webhookId: string): Promise<void>;
237
- }, StripeWebhookState>];
238
- export {};
1361
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1362
+ customerId?: string | undefined;
1363
+ }, Record<string, never>, {
1364
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1365
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1366
+ status: number;
1367
+ headers: {
1368
+ [k: string]: string;
1369
+ };
1370
+ body: StripeResponse;
1371
+ }>;
1372
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1373
+ value: string;
1374
+ label: string;
1375
+ }[]>;
1376
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1377
+ unsubscribe(webhookId: string): Promise<void>;
1378
+ }> & {
1379
+ state: {
1380
+ webhookId: string;
1381
+ endpointSecret: string;
1382
+ };
1383
+ }): Promise<void>;
1384
+ renew?: {
1385
+ schedule: string;
1386
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1387
+ customerId?: string | undefined;
1388
+ }, Record<string, never>, {
1389
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1390
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1391
+ status: number;
1392
+ headers: {
1393
+ [k: string]: string;
1394
+ };
1395
+ body: StripeResponse;
1396
+ }>;
1397
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1398
+ value: string;
1399
+ label: string;
1400
+ }[]>;
1401
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1402
+ unsubscribe(webhookId: string): Promise<void>;
1403
+ }> & {
1404
+ state: {
1405
+ webhookId: string;
1406
+ endpointSecret: string;
1407
+ };
1408
+ webhookUrl: string;
1409
+ }): Promise<{
1410
+ webhookId: string;
1411
+ endpointSecret: string;
1412
+ }>;
1413
+ } | undefined;
1414
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1415
+ customerId?: string | undefined;
1416
+ }, Record<string, never>, {
1417
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
1418
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1419
+ status: number;
1420
+ headers: {
1421
+ [k: string]: string;
1422
+ };
1423
+ body: StripeResponse;
1424
+ }>;
1425
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
1426
+ value: string;
1427
+ label: string;
1428
+ }[]>;
1429
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
1430
+ unsubscribe(webhookId: string): Promise<void>;
1431
+ }> & {
1432
+ state: {
1433
+ webhookId: string;
1434
+ endpointSecret: string;
1435
+ };
1436
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1437
+ } & {
1438
+ slug: "checkoutCompleted";
1439
+ }];
239
1440
  //# sourceMappingURL=triggers.d.ts.map