@frogbotai/piece-stripe 0.22.0 → 0.23.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.
@@ -0,0 +1,957 @@
1
+ import type { PieceActionDefinition } from 'frogbot/pieces';
2
+ import { z } from 'zod';
3
+ import type { StripeResponse } from './client.js';
4
+ export declare const createCustomer: PieceActionDefinition<z.ZodObject<{
5
+ line1: z.ZodOptional<z.ZodString>;
6
+ postalCode: z.ZodOptional<z.ZodString>;
7
+ city: z.ZodOptional<z.ZodString>;
8
+ state: z.ZodOptional<z.ZodString>;
9
+ country: z.ZodOptional<z.ZodString>;
10
+ email: z.ZodString;
11
+ name: z.ZodString;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ phone: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
15
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
16
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
17
+ status: number;
18
+ headers: {
19
+ [k: string]: string;
20
+ };
21
+ body: StripeResponse;
22
+ }>;
23
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
24
+ value: string;
25
+ label: string;
26
+ }[]>;
27
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
28
+ unsubscribe(webhookId: string): Promise<void>;
29
+ }, Record<string, z.core.util.JSONType>> & {
30
+ slug: "createCustomer";
31
+ };
32
+ export declare const createInvoice: PieceActionDefinition<z.ZodObject<{
33
+ customerId: z.ZodString;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
37
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
38
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
39
+ status: number;
40
+ headers: {
41
+ [k: string]: string;
42
+ };
43
+ body: StripeResponse;
44
+ }>;
45
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
46
+ value: string;
47
+ label: string;
48
+ }[]>;
49
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
50
+ unsubscribe(webhookId: string): Promise<void>;
51
+ }, Record<string, z.core.util.JSONType>> & {
52
+ slug: "createInvoice";
53
+ };
54
+ export declare const searchCustomers: PieceActionDefinition<z.ZodObject<{
55
+ email: z.ZodString;
56
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
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
+ }, Record<string, z.core.util.JSONType>> & {
72
+ slug: "searchCustomers";
73
+ };
74
+ export declare const searchSubscriptions: PieceActionDefinition<z.ZodObject<{
75
+ priceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ status: z.ZodOptional<z.ZodEnum<{
77
+ active: "active";
78
+ past_due: "past_due";
79
+ unpaid: "unpaid";
80
+ canceled: "canceled";
81
+ incomplete: "incomplete";
82
+ incomplete_expired: "incomplete_expired";
83
+ trialing: "trialing";
84
+ paused: "paused";
85
+ }>>;
86
+ customerId: z.ZodOptional<z.ZodString>;
87
+ createdAfter: z.ZodOptional<z.ZodString>;
88
+ createdBefore: z.ZodOptional<z.ZodString>;
89
+ limit: z.ZodDefault<z.ZodNumber>;
90
+ includeCustomerDetails: z.ZodDefault<z.ZodBoolean>;
91
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
92
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
93
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
94
+ status: number;
95
+ headers: {
96
+ [k: string]: string;
97
+ };
98
+ body: StripeResponse;
99
+ }>;
100
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
101
+ value: string;
102
+ label: string;
103
+ }[]>;
104
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
105
+ unsubscribe(webhookId: string): Promise<void>;
106
+ }, Record<string, z.core.util.JSONType>> & {
107
+ slug: "searchSubscriptions";
108
+ };
109
+ export declare const getCustomer: PieceActionDefinition<z.ZodObject<{
110
+ customerId: z.ZodString;
111
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
112
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
113
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
114
+ status: number;
115
+ headers: {
116
+ [k: string]: string;
117
+ };
118
+ body: StripeResponse;
119
+ }>;
120
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
121
+ value: string;
122
+ label: string;
123
+ }[]>;
124
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
125
+ unsubscribe(webhookId: string): Promise<void>;
126
+ }, Record<string, z.core.util.JSONType>> & {
127
+ slug: "getCustomer";
128
+ };
129
+ export declare const updateCustomer: PieceActionDefinition<z.ZodObject<{
130
+ line1: z.ZodOptional<z.ZodString>;
131
+ postalCode: z.ZodOptional<z.ZodString>;
132
+ city: z.ZodOptional<z.ZodString>;
133
+ state: z.ZodOptional<z.ZodString>;
134
+ country: z.ZodOptional<z.ZodString>;
135
+ customerId: z.ZodString;
136
+ email: z.ZodOptional<z.ZodString>;
137
+ name: z.ZodOptional<z.ZodString>;
138
+ description: z.ZodOptional<z.ZodString>;
139
+ phone: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
141
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
142
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
143
+ status: number;
144
+ headers: {
145
+ [k: string]: string;
146
+ };
147
+ body: StripeResponse;
148
+ }>;
149
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
150
+ value: string;
151
+ label: string;
152
+ }[]>;
153
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
154
+ unsubscribe(webhookId: string): Promise<void>;
155
+ }, Record<string, z.core.util.JSONType>> & {
156
+ slug: "updateCustomer";
157
+ };
158
+ export declare const createPaymentIntent: PieceActionDefinition<z.ZodObject<{
159
+ amount: z.ZodNumber;
160
+ currency: z.ZodString;
161
+ customerId: z.ZodOptional<z.ZodString>;
162
+ paymentMethodId: z.ZodOptional<z.ZodString>;
163
+ confirm: z.ZodDefault<z.ZodBoolean>;
164
+ returnUrl: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ receiptEmail: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
168
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
169
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
170
+ status: number;
171
+ headers: {
172
+ [k: string]: string;
173
+ };
174
+ body: StripeResponse;
175
+ }>;
176
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
177
+ value: string;
178
+ label: string;
179
+ }[]>;
180
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
181
+ unsubscribe(webhookId: string): Promise<void>;
182
+ }, Record<string, z.core.util.JSONType>> & {
183
+ slug: "createPaymentIntent";
184
+ };
185
+ export declare const createProduct: PieceActionDefinition<z.ZodObject<{
186
+ name: z.ZodString;
187
+ description: z.ZodOptional<z.ZodString>;
188
+ active: z.ZodOptional<z.ZodBoolean>;
189
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ url: z.ZodOptional<z.ZodString>;
191
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
192
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
193
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
194
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
195
+ status: number;
196
+ headers: {
197
+ [k: string]: string;
198
+ };
199
+ body: StripeResponse;
200
+ }>;
201
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
202
+ value: string;
203
+ label: string;
204
+ }[]>;
205
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
206
+ unsubscribe(webhookId: string): Promise<void>;
207
+ }, Record<string, z.core.util.JSONType>> & {
208
+ slug: "createProduct";
209
+ };
210
+ export declare const createPrice: PieceActionDefinition<z.ZodObject<{
211
+ productId: z.ZodString;
212
+ unitAmount: z.ZodNumber;
213
+ currency: z.ZodString;
214
+ recurringInterval: z.ZodDefault<z.ZodEnum<{
215
+ one_time: "one_time";
216
+ day: "day";
217
+ week: "week";
218
+ month: "month";
219
+ year: "year";
220
+ }>>;
221
+ recurringIntervalCount: z.ZodOptional<z.ZodNumber>;
222
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
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;
230
+ }>;
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
+ }, Record<string, z.core.util.JSONType>> & {
238
+ slug: "createPrice";
239
+ };
240
+ export declare const createSubscription: PieceActionDefinition<z.ZodObject<{
241
+ customerId: z.ZodString;
242
+ items: z.ZodArray<z.ZodObject<{
243
+ priceId: z.ZodString;
244
+ quantity: z.ZodOptional<z.ZodNumber>;
245
+ }, z.core.$strip>>;
246
+ collectionMethod: z.ZodOptional<z.ZodEnum<{
247
+ send_invoice: "send_invoice";
248
+ charge_automatically: "charge_automatically";
249
+ }>>;
250
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
251
+ trialPeriodDays: z.ZodOptional<z.ZodNumber>;
252
+ defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
253
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
254
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
255
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
256
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
257
+ status: number;
258
+ headers: {
259
+ [k: string]: string;
260
+ };
261
+ body: StripeResponse;
262
+ }>;
263
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
264
+ value: string;
265
+ label: string;
266
+ }[]>;
267
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
268
+ unsubscribe(webhookId: string): Promise<void>;
269
+ }, Record<string, z.core.util.JSONType>> & {
270
+ slug: "createSubscription";
271
+ };
272
+ export declare const cancelSubscription: PieceActionDefinition<z.ZodObject<{
273
+ subscriptionId: z.ZodString;
274
+ cancelAtPeriodEnd: z.ZodDefault<z.ZodBoolean>;
275
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
276
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
277
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
278
+ status: number;
279
+ headers: {
280
+ [k: string]: string;
281
+ };
282
+ body: StripeResponse;
283
+ }>;
284
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
285
+ value: string;
286
+ label: string;
287
+ }[]>;
288
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
289
+ unsubscribe(webhookId: string): Promise<void>;
290
+ }, Record<string, z.core.util.JSONType>> & {
291
+ slug: "cancelSubscription";
292
+ };
293
+ export declare const getInvoice: PieceActionDefinition<z.ZodObject<{
294
+ invoiceId: z.ZodString;
295
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
296
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
297
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
298
+ status: number;
299
+ headers: {
300
+ [k: string]: string;
301
+ };
302
+ body: StripeResponse;
303
+ }>;
304
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
305
+ value: string;
306
+ label: string;
307
+ }[]>;
308
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
309
+ unsubscribe(webhookId: string): Promise<void>;
310
+ }, Record<string, z.core.util.JSONType>> & {
311
+ slug: "getInvoice";
312
+ };
313
+ export declare const getPayout: PieceActionDefinition<z.ZodObject<{
314
+ payoutId: z.ZodString;
315
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
316
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
317
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
318
+ status: number;
319
+ headers: {
320
+ [k: string]: string;
321
+ };
322
+ body: StripeResponse;
323
+ }>;
324
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
325
+ value: string;
326
+ label: string;
327
+ }[]>;
328
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
329
+ unsubscribe(webhookId: string): Promise<void>;
330
+ }, Record<string, z.core.util.JSONType>> & {
331
+ slug: "getPayout";
332
+ };
333
+ export declare const createRefund: PieceActionDefinition<z.ZodObject<{
334
+ paymentIntentId: z.ZodString;
335
+ amount: z.ZodOptional<z.ZodNumber>;
336
+ reason: z.ZodOptional<z.ZodEnum<{
337
+ duplicate: "duplicate";
338
+ fraudulent: "fraudulent";
339
+ requested_by_customer: "requested_by_customer";
340
+ }>>;
341
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
342
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
343
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
344
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
345
+ status: number;
346
+ headers: {
347
+ [k: string]: string;
348
+ };
349
+ body: StripeResponse;
350
+ }>;
351
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
352
+ value: string;
353
+ label: string;
354
+ }[]>;
355
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
356
+ unsubscribe(webhookId: string): Promise<void>;
357
+ }, Record<string, z.core.util.JSONType>> & {
358
+ slug: "createRefund";
359
+ };
360
+ export declare const createPaymentLink: PieceActionDefinition<z.ZodObject<{
361
+ lineItems: z.ZodArray<z.ZodObject<{
362
+ priceId: z.ZodString;
363
+ quantity: z.ZodNumber;
364
+ }, z.core.$strip>>;
365
+ afterCompletion: z.ZodOptional<z.ZodEnum<{
366
+ hosted_confirmation: "hosted_confirmation";
367
+ redirect: "redirect";
368
+ }>>;
369
+ redirectUrl: z.ZodOptional<z.ZodString>;
370
+ allowPromotionCodes: z.ZodOptional<z.ZodBoolean>;
371
+ billingAddressCollection: z.ZodOptional<z.ZodEnum<{
372
+ auto: "auto";
373
+ required: "required";
374
+ }>>;
375
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
376
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
377
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
378
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
379
+ status: number;
380
+ headers: {
381
+ [k: string]: string;
382
+ };
383
+ body: StripeResponse;
384
+ }>;
385
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
386
+ value: string;
387
+ label: string;
388
+ }[]>;
389
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
390
+ unsubscribe(webhookId: string): Promise<void>;
391
+ }, Record<string, z.core.util.JSONType>> & {
392
+ slug: "createPaymentLink";
393
+ };
394
+ export declare const deactivatePaymentLink: PieceActionDefinition<z.ZodObject<{
395
+ paymentLinkId: z.ZodString;
396
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
397
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
398
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
399
+ status: number;
400
+ headers: {
401
+ [k: string]: string;
402
+ };
403
+ body: StripeResponse;
404
+ }>;
405
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
406
+ value: string;
407
+ label: string;
408
+ }[]>;
409
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
410
+ unsubscribe(webhookId: string): Promise<void>;
411
+ }, Record<string, z.core.util.JSONType>> & {
412
+ slug: "deactivatePaymentLink";
413
+ };
414
+ export declare const getPaymentIntent: PieceActionDefinition<z.ZodObject<{
415
+ paymentIntentId: z.ZodString;
416
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
417
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
418
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
419
+ status: number;
420
+ headers: {
421
+ [k: string]: string;
422
+ };
423
+ body: StripeResponse;
424
+ }>;
425
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
426
+ value: string;
427
+ label: string;
428
+ }[]>;
429
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
430
+ unsubscribe(webhookId: string): Promise<void>;
431
+ }, Record<string, z.core.util.JSONType>> & {
432
+ slug: "getPaymentIntent";
433
+ };
434
+ export declare const findInvoice: PieceActionDefinition<z.ZodObject<{
435
+ invoiceId: z.ZodString;
436
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
437
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
438
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
439
+ status: number;
440
+ headers: {
441
+ [k: string]: string;
442
+ };
443
+ body: StripeResponse;
444
+ }>;
445
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
446
+ value: string;
447
+ label: string;
448
+ }[]>;
449
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
450
+ unsubscribe(webhookId: string): Promise<void>;
451
+ }, Record<string, z.core.util.JSONType>> & {
452
+ slug: "findInvoice";
453
+ };
454
+ export declare const sendRequest: PieceActionDefinition<z.ZodObject<{
455
+ method: z.ZodEnum<{
456
+ DELETE: "DELETE";
457
+ GET: "GET";
458
+ POST: "POST";
459
+ }>;
460
+ path: z.ZodString;
461
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
462
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ status: z.ZodNumber;
465
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
466
+ body: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
467
+ }, z.core.$strip>, object, {
468
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
469
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
470
+ status: number;
471
+ headers: {
472
+ [k: string]: string;
473
+ };
474
+ body: StripeResponse;
475
+ }>;
476
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
477
+ value: string;
478
+ label: string;
479
+ }[]>;
480
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
481
+ unsubscribe(webhookId: string): Promise<void>;
482
+ }, {
483
+ status: number;
484
+ headers: Record<string, string>;
485
+ body: Record<string, z.core.util.JSONType>;
486
+ }> & {
487
+ slug: "sendRequest";
488
+ };
489
+ export declare const stripeActionDefinitions: readonly [PieceActionDefinition<z.ZodObject<{
490
+ line1: z.ZodOptional<z.ZodString>;
491
+ postalCode: z.ZodOptional<z.ZodString>;
492
+ city: z.ZodOptional<z.ZodString>;
493
+ state: z.ZodOptional<z.ZodString>;
494
+ country: z.ZodOptional<z.ZodString>;
495
+ email: z.ZodString;
496
+ name: z.ZodString;
497
+ description: z.ZodOptional<z.ZodString>;
498
+ phone: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
500
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
501
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
502
+ status: number;
503
+ headers: {
504
+ [k: string]: string;
505
+ };
506
+ body: StripeResponse;
507
+ }>;
508
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
509
+ value: string;
510
+ label: string;
511
+ }[]>;
512
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
513
+ unsubscribe(webhookId: string): Promise<void>;
514
+ }, Record<string, z.core.util.JSONType>> & {
515
+ slug: "createCustomer";
516
+ }, PieceActionDefinition<z.ZodObject<{
517
+ customerId: z.ZodString;
518
+ description: z.ZodOptional<z.ZodString>;
519
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
520
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
521
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
522
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
523
+ status: number;
524
+ headers: {
525
+ [k: string]: string;
526
+ };
527
+ body: StripeResponse;
528
+ }>;
529
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
530
+ value: string;
531
+ label: string;
532
+ }[]>;
533
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
534
+ unsubscribe(webhookId: string): Promise<void>;
535
+ }, Record<string, z.core.util.JSONType>> & {
536
+ slug: "createInvoice";
537
+ }, PieceActionDefinition<z.ZodObject<{
538
+ email: z.ZodString;
539
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
540
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
541
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
542
+ status: number;
543
+ headers: {
544
+ [k: string]: string;
545
+ };
546
+ body: StripeResponse;
547
+ }>;
548
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
549
+ value: string;
550
+ label: string;
551
+ }[]>;
552
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
553
+ unsubscribe(webhookId: string): Promise<void>;
554
+ }, Record<string, z.core.util.JSONType>> & {
555
+ slug: "searchCustomers";
556
+ }, PieceActionDefinition<z.ZodObject<{
557
+ priceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
+ status: z.ZodOptional<z.ZodEnum<{
559
+ active: "active";
560
+ past_due: "past_due";
561
+ unpaid: "unpaid";
562
+ canceled: "canceled";
563
+ incomplete: "incomplete";
564
+ incomplete_expired: "incomplete_expired";
565
+ trialing: "trialing";
566
+ paused: "paused";
567
+ }>>;
568
+ customerId: z.ZodOptional<z.ZodString>;
569
+ createdAfter: z.ZodOptional<z.ZodString>;
570
+ createdBefore: z.ZodOptional<z.ZodString>;
571
+ limit: z.ZodDefault<z.ZodNumber>;
572
+ includeCustomerDetails: z.ZodDefault<z.ZodBoolean>;
573
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
574
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
575
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
576
+ status: number;
577
+ headers: {
578
+ [k: string]: string;
579
+ };
580
+ body: StripeResponse;
581
+ }>;
582
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
583
+ value: string;
584
+ label: string;
585
+ }[]>;
586
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
587
+ unsubscribe(webhookId: string): Promise<void>;
588
+ }, Record<string, z.core.util.JSONType>> & {
589
+ slug: "searchSubscriptions";
590
+ }, PieceActionDefinition<z.ZodObject<{
591
+ customerId: z.ZodString;
592
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
593
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
594
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
595
+ status: number;
596
+ headers: {
597
+ [k: string]: string;
598
+ };
599
+ body: StripeResponse;
600
+ }>;
601
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
602
+ value: string;
603
+ label: string;
604
+ }[]>;
605
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
606
+ unsubscribe(webhookId: string): Promise<void>;
607
+ }, Record<string, z.core.util.JSONType>> & {
608
+ slug: "getCustomer";
609
+ }, PieceActionDefinition<z.ZodObject<{
610
+ line1: z.ZodOptional<z.ZodString>;
611
+ postalCode: z.ZodOptional<z.ZodString>;
612
+ city: z.ZodOptional<z.ZodString>;
613
+ state: z.ZodOptional<z.ZodString>;
614
+ country: z.ZodOptional<z.ZodString>;
615
+ customerId: z.ZodString;
616
+ email: z.ZodOptional<z.ZodString>;
617
+ name: z.ZodOptional<z.ZodString>;
618
+ description: z.ZodOptional<z.ZodString>;
619
+ phone: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
621
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
622
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
623
+ status: number;
624
+ headers: {
625
+ [k: string]: string;
626
+ };
627
+ body: StripeResponse;
628
+ }>;
629
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
630
+ value: string;
631
+ label: string;
632
+ }[]>;
633
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
634
+ unsubscribe(webhookId: string): Promise<void>;
635
+ }, Record<string, z.core.util.JSONType>> & {
636
+ slug: "updateCustomer";
637
+ }, PieceActionDefinition<z.ZodObject<{
638
+ amount: z.ZodNumber;
639
+ currency: z.ZodString;
640
+ customerId: z.ZodOptional<z.ZodString>;
641
+ paymentMethodId: z.ZodOptional<z.ZodString>;
642
+ confirm: z.ZodDefault<z.ZodBoolean>;
643
+ returnUrl: z.ZodOptional<z.ZodString>;
644
+ description: z.ZodOptional<z.ZodString>;
645
+ receiptEmail: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
647
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
648
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
649
+ status: number;
650
+ headers: {
651
+ [k: string]: string;
652
+ };
653
+ body: StripeResponse;
654
+ }>;
655
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
656
+ value: string;
657
+ label: string;
658
+ }[]>;
659
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
660
+ unsubscribe(webhookId: string): Promise<void>;
661
+ }, Record<string, z.core.util.JSONType>> & {
662
+ slug: "createPaymentIntent";
663
+ }, PieceActionDefinition<z.ZodObject<{
664
+ name: z.ZodString;
665
+ description: z.ZodOptional<z.ZodString>;
666
+ active: z.ZodOptional<z.ZodBoolean>;
667
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
+ url: z.ZodOptional<z.ZodString>;
669
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
670
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
671
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
672
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
673
+ status: number;
674
+ headers: {
675
+ [k: string]: string;
676
+ };
677
+ body: StripeResponse;
678
+ }>;
679
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
680
+ value: string;
681
+ label: string;
682
+ }[]>;
683
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
684
+ unsubscribe(webhookId: string): Promise<void>;
685
+ }, Record<string, z.core.util.JSONType>> & {
686
+ slug: "createProduct";
687
+ }, PieceActionDefinition<z.ZodObject<{
688
+ productId: z.ZodString;
689
+ unitAmount: z.ZodNumber;
690
+ currency: z.ZodString;
691
+ recurringInterval: z.ZodDefault<z.ZodEnum<{
692
+ one_time: "one_time";
693
+ day: "day";
694
+ week: "week";
695
+ month: "month";
696
+ year: "year";
697
+ }>>;
698
+ recurringIntervalCount: z.ZodOptional<z.ZodNumber>;
699
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
700
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
701
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
702
+ status: number;
703
+ headers: {
704
+ [k: string]: string;
705
+ };
706
+ body: StripeResponse;
707
+ }>;
708
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
709
+ value: string;
710
+ label: string;
711
+ }[]>;
712
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
713
+ unsubscribe(webhookId: string): Promise<void>;
714
+ }, Record<string, z.core.util.JSONType>> & {
715
+ slug: "createPrice";
716
+ }, PieceActionDefinition<z.ZodObject<{
717
+ customerId: z.ZodString;
718
+ items: z.ZodArray<z.ZodObject<{
719
+ priceId: z.ZodString;
720
+ quantity: z.ZodOptional<z.ZodNumber>;
721
+ }, z.core.$strip>>;
722
+ collectionMethod: z.ZodOptional<z.ZodEnum<{
723
+ send_invoice: "send_invoice";
724
+ charge_automatically: "charge_automatically";
725
+ }>>;
726
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
727
+ trialPeriodDays: z.ZodOptional<z.ZodNumber>;
728
+ defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
729
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
730
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
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
+ }, Record<string, z.core.util.JSONType>> & {
746
+ slug: "createSubscription";
747
+ }, PieceActionDefinition<z.ZodObject<{
748
+ subscriptionId: z.ZodString;
749
+ cancelAtPeriodEnd: z.ZodDefault<z.ZodBoolean>;
750
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
751
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
752
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
753
+ status: number;
754
+ headers: {
755
+ [k: string]: string;
756
+ };
757
+ body: StripeResponse;
758
+ }>;
759
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
760
+ value: string;
761
+ label: string;
762
+ }[]>;
763
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
764
+ unsubscribe(webhookId: string): Promise<void>;
765
+ }, Record<string, z.core.util.JSONType>> & {
766
+ slug: "cancelSubscription";
767
+ }, PieceActionDefinition<z.ZodObject<{
768
+ invoiceId: z.ZodString;
769
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
770
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
771
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
772
+ status: number;
773
+ headers: {
774
+ [k: string]: string;
775
+ };
776
+ body: StripeResponse;
777
+ }>;
778
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
779
+ value: string;
780
+ label: string;
781
+ }[]>;
782
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
783
+ unsubscribe(webhookId: string): Promise<void>;
784
+ }, Record<string, z.core.util.JSONType>> & {
785
+ slug: "getInvoice";
786
+ }, PieceActionDefinition<z.ZodObject<{
787
+ payoutId: z.ZodString;
788
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
789
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
790
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
791
+ status: number;
792
+ headers: {
793
+ [k: string]: string;
794
+ };
795
+ body: StripeResponse;
796
+ }>;
797
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
798
+ value: string;
799
+ label: string;
800
+ }[]>;
801
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
802
+ unsubscribe(webhookId: string): Promise<void>;
803
+ }, Record<string, z.core.util.JSONType>> & {
804
+ slug: "getPayout";
805
+ }, PieceActionDefinition<z.ZodObject<{
806
+ paymentIntentId: z.ZodString;
807
+ amount: z.ZodOptional<z.ZodNumber>;
808
+ reason: z.ZodOptional<z.ZodEnum<{
809
+ duplicate: "duplicate";
810
+ fraudulent: "fraudulent";
811
+ requested_by_customer: "requested_by_customer";
812
+ }>>;
813
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
814
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
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
+ }, Record<string, z.core.util.JSONType>> & {
830
+ slug: "createRefund";
831
+ }, PieceActionDefinition<z.ZodObject<{
832
+ lineItems: z.ZodArray<z.ZodObject<{
833
+ priceId: z.ZodString;
834
+ quantity: z.ZodNumber;
835
+ }, z.core.$strip>>;
836
+ afterCompletion: z.ZodOptional<z.ZodEnum<{
837
+ hosted_confirmation: "hosted_confirmation";
838
+ redirect: "redirect";
839
+ }>>;
840
+ redirectUrl: z.ZodOptional<z.ZodString>;
841
+ allowPromotionCodes: z.ZodOptional<z.ZodBoolean>;
842
+ billingAddressCollection: z.ZodOptional<z.ZodEnum<{
843
+ auto: "auto";
844
+ required: "required";
845
+ }>>;
846
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
847
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
848
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
849
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
850
+ status: number;
851
+ headers: {
852
+ [k: string]: string;
853
+ };
854
+ body: StripeResponse;
855
+ }>;
856
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
857
+ value: string;
858
+ label: string;
859
+ }[]>;
860
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
861
+ unsubscribe(webhookId: string): Promise<void>;
862
+ }, Record<string, z.core.util.JSONType>> & {
863
+ slug: "createPaymentLink";
864
+ }, PieceActionDefinition<z.ZodObject<{
865
+ paymentLinkId: z.ZodString;
866
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
867
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
868
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
869
+ status: number;
870
+ headers: {
871
+ [k: string]: string;
872
+ };
873
+ body: StripeResponse;
874
+ }>;
875
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
876
+ value: string;
877
+ label: string;
878
+ }[]>;
879
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
880
+ unsubscribe(webhookId: string): Promise<void>;
881
+ }, Record<string, z.core.util.JSONType>> & {
882
+ slug: "deactivatePaymentLink";
883
+ }, PieceActionDefinition<z.ZodObject<{
884
+ paymentIntentId: z.ZodString;
885
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
886
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
887
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
888
+ status: number;
889
+ headers: {
890
+ [k: string]: string;
891
+ };
892
+ body: StripeResponse;
893
+ }>;
894
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
895
+ value: string;
896
+ label: string;
897
+ }[]>;
898
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
899
+ unsubscribe(webhookId: string): Promise<void>;
900
+ }, Record<string, z.core.util.JSONType>> & {
901
+ slug: "getPaymentIntent";
902
+ }, PieceActionDefinition<z.ZodObject<{
903
+ invoiceId: z.ZodString;
904
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
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
+ }, Record<string, z.core.util.JSONType>> & {
920
+ slug: "findInvoice";
921
+ }, PieceActionDefinition<z.ZodObject<{
922
+ method: z.ZodEnum<{
923
+ DELETE: "DELETE";
924
+ GET: "GET";
925
+ POST: "POST";
926
+ }>;
927
+ path: z.ZodString;
928
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
929
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
930
+ }, z.core.$strip>, z.ZodObject<{
931
+ status: z.ZodNumber;
932
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
933
+ body: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
934
+ }, z.core.$strip>, object, {
935
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<StripeResponse>;
936
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
937
+ status: number;
938
+ headers: {
939
+ [k: string]: string;
940
+ };
941
+ body: StripeResponse;
942
+ }>;
943
+ options(resource: string, label: (item: StripeResponse) => string): Promise<{
944
+ value: string;
945
+ label: string;
946
+ }[]>;
947
+ subscribe(event: string, webhookUrl: string): Promise<StripeResponse>;
948
+ unsubscribe(webhookId: string): Promise<void>;
949
+ }, {
950
+ status: number;
951
+ headers: Record<string, string>;
952
+ body: Record<string, z.core.util.JSONType>;
953
+ }> & {
954
+ slug: "sendRequest";
955
+ }];
956
+ export type { StripeResponse };
957
+ //# sourceMappingURL=actions.d.ts.map