@frogbotai/piece-stripe 0.21.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.
package/dist/index.d.ts CHANGED
@@ -1,44 +1,619 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const stripeActions: readonly ["create_customer", "search_customer", "retrieve_customer", "update_customer", "create_invoice", "retrieve_invoice", "create_payment_link", "create_refund"];
1
+ import type { z } from 'zod';
2
+ export declare const stripeActions: readonly ["createCustomer", "createInvoice", "searchCustomers", "searchSubscriptions", "getCustomer", "updateCustomer", "createPaymentIntent", "createProduct", "createPrice", "createSubscription", "cancelSubscription", "getInvoice", "getPayout", "createRefund", "createPaymentLink", "deactivatePaymentLink", "getPaymentIntent", "findInvoice", "sendRequest"];
3
+ export declare const stripeTriggers: string[];
3
4
  export declare const stripeScopes: readonly [];
4
- export declare function createStripe(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Create Customer: Create a customer in stripe */
6
- createCustomer: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Create Invoice: Create an Invoice in stripe */
8
- createInvoice: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Search Customer: Search for a customer in stripe by email */
10
- searchCustomer: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** Search Subscriptions: Search for subscriptions by price ID, status, customer ID and other filters, including customer details */
12
- searchSubscriptions: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Retrieve Customer: Retrieve a customer in stripe by id */
14
- retrieveCustomer: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Update Customer: Modify an existing customer’s details. */
16
- updateCustomer: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Create Payment (Payment Intent): Creates a new payment intent to start a payment flow. */
18
- createPaymentIntent: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Create Product: Create a new product object in Stripe. */
20
- createProduct: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Create Price: Create a price (one-time or recurring), associated with a product. */
22
- createPrice: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- /** Create Subscription: Start a subscription for a customer with specified items/prices. */
24
- createSubscription: import("node_modules/frogbot/dist/tools/types").AnyTool;
25
- /** Cancel Subscription: Cancel an existing subscription, either immediately or at the end of the current billing period. */
26
- cancelSubscription: import("node_modules/frogbot/dist/tools/types").AnyTool;
27
- /** Retrieve an Invoice: Retrieves the details of an existing invoice by its ID. */
28
- retrieveInvoice: import("node_modules/frogbot/dist/tools/types").AnyTool;
29
- /** Retrieve a Payout: Retrieves the details of an existing payout by its ID. */
30
- retrievePayout: import("node_modules/frogbot/dist/tools/types").AnyTool;
31
- /** Create a Refund: Create a full or partial refund for a payment. */
32
- createRefund: import("node_modules/frogbot/dist/tools/types").AnyTool;
33
- /** Create Payment Link: Creates a shareable, Stripe-hosted payment link for one-time purchases or subscriptions. */
34
- createPaymentLink: import("node_modules/frogbot/dist/tools/types").AnyTool;
35
- /** Deactivate Payment Link: Disable or deactivate a Payment Link so it can no longer be used. */
36
- deactivatePaymentLink: import("node_modules/frogbot/dist/tools/types").AnyTool;
37
- /** Find Payment (by Payment Intent ID): Retrieves the details of a payment by its unique Payment Intent ID. */
38
- retrievePaymentIntent: import("node_modules/frogbot/dist/tools/types").AnyTool;
39
- /** Find Invoice: Finds an invoice by its unique ID. */
40
- findInvoice: import("node_modules/frogbot/dist/tools/types").AnyTool;
41
- /** Custom API Call: Make a custom API call to a specific endpoint */
42
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
43
- };
5
+ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
6
+ slug: string;
7
+ label: string;
8
+ admin: {
9
+ description: string;
10
+ group: string;
11
+ };
12
+ auth: z.ZodObject<{
13
+ apiKey: z.ZodString;
14
+ }, z.core.$strip>;
15
+ client: ({ auth }: {
16
+ auth: unknown;
17
+ }) => {
18
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
19
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
20
+ status: number;
21
+ headers: {
22
+ [k: string]: string;
23
+ };
24
+ body: import("./client.js").StripeResponse;
25
+ }>;
26
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
27
+ value: string;
28
+ label: string;
29
+ }[]>;
30
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
31
+ unsubscribe(webhookId: string): Promise<void>;
32
+ };
33
+ actions: ((import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
34
+ line1: z.ZodOptional<z.ZodString>;
35
+ postalCode: z.ZodOptional<z.ZodString>;
36
+ city: z.ZodOptional<z.ZodString>;
37
+ state: z.ZodOptional<z.ZodString>;
38
+ country: z.ZodOptional<z.ZodString>;
39
+ email: z.ZodString;
40
+ name: z.ZodString;
41
+ description: z.ZodOptional<z.ZodString>;
42
+ phone: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
44
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
45
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
46
+ status: number;
47
+ headers: {
48
+ [k: string]: string;
49
+ };
50
+ body: import("./client.js").StripeResponse;
51
+ }>;
52
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
53
+ value: string;
54
+ label: string;
55
+ }[]>;
56
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
57
+ unsubscribe(webhookId: string): Promise<void>;
58
+ }, Record<string, z.core.util.JSONType>> & {
59
+ slug: "createCustomer";
60
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
61
+ customerId: z.ZodString;
62
+ description: z.ZodOptional<z.ZodString>;
63
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
64
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
65
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
66
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
67
+ status: number;
68
+ headers: {
69
+ [k: string]: string;
70
+ };
71
+ body: import("./client.js").StripeResponse;
72
+ }>;
73
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
74
+ value: string;
75
+ label: string;
76
+ }[]>;
77
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
78
+ unsubscribe(webhookId: string): Promise<void>;
79
+ }, Record<string, z.core.util.JSONType>> & {
80
+ slug: "createInvoice";
81
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
82
+ email: z.ZodString;
83
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
84
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
85
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
86
+ status: number;
87
+ headers: {
88
+ [k: string]: string;
89
+ };
90
+ body: import("./client.js").StripeResponse;
91
+ }>;
92
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
93
+ value: string;
94
+ label: string;
95
+ }[]>;
96
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
97
+ unsubscribe(webhookId: string): Promise<void>;
98
+ }, Record<string, z.core.util.JSONType>> & {
99
+ slug: "searchCustomers";
100
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
101
+ priceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
+ status: z.ZodOptional<z.ZodEnum<{
103
+ active: "active";
104
+ past_due: "past_due";
105
+ unpaid: "unpaid";
106
+ canceled: "canceled";
107
+ incomplete: "incomplete";
108
+ incomplete_expired: "incomplete_expired";
109
+ trialing: "trialing";
110
+ paused: "paused";
111
+ }>>;
112
+ customerId: z.ZodOptional<z.ZodString>;
113
+ createdAfter: z.ZodOptional<z.ZodString>;
114
+ createdBefore: z.ZodOptional<z.ZodString>;
115
+ limit: z.ZodDefault<z.ZodNumber>;
116
+ includeCustomerDetails: z.ZodDefault<z.ZodBoolean>;
117
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
118
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
119
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
120
+ status: number;
121
+ headers: {
122
+ [k: string]: string;
123
+ };
124
+ body: import("./client.js").StripeResponse;
125
+ }>;
126
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
127
+ value: string;
128
+ label: string;
129
+ }[]>;
130
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
131
+ unsubscribe(webhookId: string): Promise<void>;
132
+ }, Record<string, z.core.util.JSONType>> & {
133
+ slug: "searchSubscriptions";
134
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
135
+ customerId: z.ZodString;
136
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
137
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
138
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
139
+ status: number;
140
+ headers: {
141
+ [k: string]: string;
142
+ };
143
+ body: import("./client.js").StripeResponse;
144
+ }>;
145
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
146
+ value: string;
147
+ label: string;
148
+ }[]>;
149
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
150
+ unsubscribe(webhookId: string): Promise<void>;
151
+ }, Record<string, z.core.util.JSONType>> & {
152
+ slug: "getCustomer";
153
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
154
+ line1: z.ZodOptional<z.ZodString>;
155
+ postalCode: z.ZodOptional<z.ZodString>;
156
+ city: z.ZodOptional<z.ZodString>;
157
+ state: z.ZodOptional<z.ZodString>;
158
+ country: z.ZodOptional<z.ZodString>;
159
+ customerId: z.ZodString;
160
+ email: z.ZodOptional<z.ZodString>;
161
+ name: z.ZodOptional<z.ZodString>;
162
+ description: z.ZodOptional<z.ZodString>;
163
+ phone: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
165
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
166
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
167
+ status: number;
168
+ headers: {
169
+ [k: string]: string;
170
+ };
171
+ body: import("./client.js").StripeResponse;
172
+ }>;
173
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
174
+ value: string;
175
+ label: string;
176
+ }[]>;
177
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
178
+ unsubscribe(webhookId: string): Promise<void>;
179
+ }, Record<string, z.core.util.JSONType>> & {
180
+ slug: "updateCustomer";
181
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
182
+ amount: z.ZodNumber;
183
+ currency: z.ZodString;
184
+ customerId: z.ZodOptional<z.ZodString>;
185
+ paymentMethodId: z.ZodOptional<z.ZodString>;
186
+ confirm: z.ZodDefault<z.ZodBoolean>;
187
+ returnUrl: z.ZodOptional<z.ZodString>;
188
+ description: z.ZodOptional<z.ZodString>;
189
+ receiptEmail: z.ZodOptional<z.ZodString>;
190
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
191
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
192
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
193
+ status: number;
194
+ headers: {
195
+ [k: string]: string;
196
+ };
197
+ body: import("./client.js").StripeResponse;
198
+ }>;
199
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
200
+ value: string;
201
+ label: string;
202
+ }[]>;
203
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
204
+ unsubscribe(webhookId: string): Promise<void>;
205
+ }, Record<string, z.core.util.JSONType>> & {
206
+ slug: "createPaymentIntent";
207
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
208
+ name: z.ZodString;
209
+ description: z.ZodOptional<z.ZodString>;
210
+ active: z.ZodOptional<z.ZodBoolean>;
211
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ url: z.ZodOptional<z.ZodString>;
213
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
214
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
215
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
216
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
217
+ status: number;
218
+ headers: {
219
+ [k: string]: string;
220
+ };
221
+ body: import("./client.js").StripeResponse;
222
+ }>;
223
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
224
+ value: string;
225
+ label: string;
226
+ }[]>;
227
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
228
+ unsubscribe(webhookId: string): Promise<void>;
229
+ }, Record<string, z.core.util.JSONType>> & {
230
+ slug: "createProduct";
231
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
232
+ productId: z.ZodString;
233
+ unitAmount: z.ZodNumber;
234
+ currency: z.ZodString;
235
+ recurringInterval: z.ZodDefault<z.ZodEnum<{
236
+ one_time: "one_time";
237
+ day: "day";
238
+ week: "week";
239
+ month: "month";
240
+ year: "year";
241
+ }>>;
242
+ recurringIntervalCount: z.ZodOptional<z.ZodNumber>;
243
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
244
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
245
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
246
+ status: number;
247
+ headers: {
248
+ [k: string]: string;
249
+ };
250
+ body: import("./client.js").StripeResponse;
251
+ }>;
252
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
253
+ value: string;
254
+ label: string;
255
+ }[]>;
256
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
257
+ unsubscribe(webhookId: string): Promise<void>;
258
+ }, Record<string, z.core.util.JSONType>> & {
259
+ slug: "createPrice";
260
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
261
+ customerId: z.ZodString;
262
+ items: z.ZodArray<z.ZodObject<{
263
+ priceId: z.ZodString;
264
+ quantity: z.ZodOptional<z.ZodNumber>;
265
+ }, z.core.$strip>>;
266
+ collectionMethod: z.ZodOptional<z.ZodEnum<{
267
+ send_invoice: "send_invoice";
268
+ charge_automatically: "charge_automatically";
269
+ }>>;
270
+ daysUntilDue: z.ZodOptional<z.ZodNumber>;
271
+ trialPeriodDays: z.ZodOptional<z.ZodNumber>;
272
+ defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
273
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
274
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
275
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
276
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
277
+ status: number;
278
+ headers: {
279
+ [k: string]: string;
280
+ };
281
+ body: import("./client.js").StripeResponse;
282
+ }>;
283
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
284
+ value: string;
285
+ label: string;
286
+ }[]>;
287
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
288
+ unsubscribe(webhookId: string): Promise<void>;
289
+ }, Record<string, z.core.util.JSONType>> & {
290
+ slug: "createSubscription";
291
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
292
+ subscriptionId: z.ZodString;
293
+ cancelAtPeriodEnd: z.ZodDefault<z.ZodBoolean>;
294
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
295
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
296
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
297
+ status: number;
298
+ headers: {
299
+ [k: string]: string;
300
+ };
301
+ body: import("./client.js").StripeResponse;
302
+ }>;
303
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
304
+ value: string;
305
+ label: string;
306
+ }[]>;
307
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
308
+ unsubscribe(webhookId: string): Promise<void>;
309
+ }, Record<string, z.core.util.JSONType>> & {
310
+ slug: "cancelSubscription";
311
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
312
+ invoiceId: z.ZodString;
313
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
314
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
315
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
316
+ status: number;
317
+ headers: {
318
+ [k: string]: string;
319
+ };
320
+ body: import("./client.js").StripeResponse;
321
+ }>;
322
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
323
+ value: string;
324
+ label: string;
325
+ }[]>;
326
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
327
+ unsubscribe(webhookId: string): Promise<void>;
328
+ }, Record<string, z.core.util.JSONType>> & {
329
+ slug: "getInvoice";
330
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
331
+ payoutId: z.ZodString;
332
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
333
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
334
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
335
+ status: number;
336
+ headers: {
337
+ [k: string]: string;
338
+ };
339
+ body: import("./client.js").StripeResponse;
340
+ }>;
341
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
342
+ value: string;
343
+ label: string;
344
+ }[]>;
345
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
346
+ unsubscribe(webhookId: string): Promise<void>;
347
+ }, Record<string, z.core.util.JSONType>> & {
348
+ slug: "getPayout";
349
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
350
+ paymentIntentId: z.ZodString;
351
+ amount: z.ZodOptional<z.ZodNumber>;
352
+ reason: z.ZodOptional<z.ZodEnum<{
353
+ duplicate: "duplicate";
354
+ fraudulent: "fraudulent";
355
+ requested_by_customer: "requested_by_customer";
356
+ }>>;
357
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
358
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
359
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
360
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
361
+ status: number;
362
+ headers: {
363
+ [k: string]: string;
364
+ };
365
+ body: import("./client.js").StripeResponse;
366
+ }>;
367
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
368
+ value: string;
369
+ label: string;
370
+ }[]>;
371
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
372
+ unsubscribe(webhookId: string): Promise<void>;
373
+ }, Record<string, z.core.util.JSONType>> & {
374
+ slug: "createRefund";
375
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
376
+ lineItems: z.ZodArray<z.ZodObject<{
377
+ priceId: z.ZodString;
378
+ quantity: z.ZodNumber;
379
+ }, z.core.$strip>>;
380
+ afterCompletion: z.ZodOptional<z.ZodEnum<{
381
+ hosted_confirmation: "hosted_confirmation";
382
+ redirect: "redirect";
383
+ }>>;
384
+ redirectUrl: z.ZodOptional<z.ZodString>;
385
+ allowPromotionCodes: z.ZodOptional<z.ZodBoolean>;
386
+ billingAddressCollection: z.ZodOptional<z.ZodEnum<{
387
+ auto: "auto";
388
+ required: "required";
389
+ }>>;
390
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
391
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
392
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
393
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
394
+ status: number;
395
+ headers: {
396
+ [k: string]: string;
397
+ };
398
+ body: import("./client.js").StripeResponse;
399
+ }>;
400
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
401
+ value: string;
402
+ label: string;
403
+ }[]>;
404
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
405
+ unsubscribe(webhookId: string): Promise<void>;
406
+ }, Record<string, z.core.util.JSONType>> & {
407
+ slug: "createPaymentLink";
408
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
409
+ paymentLinkId: z.ZodString;
410
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
411
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
412
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
413
+ status: number;
414
+ headers: {
415
+ [k: string]: string;
416
+ };
417
+ body: import("./client.js").StripeResponse;
418
+ }>;
419
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
420
+ value: string;
421
+ label: string;
422
+ }[]>;
423
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
424
+ unsubscribe(webhookId: string): Promise<void>;
425
+ }, Record<string, z.core.util.JSONType>> & {
426
+ slug: "deactivatePaymentLink";
427
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
428
+ paymentIntentId: z.ZodString;
429
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
430
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
431
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
432
+ status: number;
433
+ headers: {
434
+ [k: string]: string;
435
+ };
436
+ body: import("./client.js").StripeResponse;
437
+ }>;
438
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
439
+ value: string;
440
+ label: string;
441
+ }[]>;
442
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
443
+ unsubscribe(webhookId: string): Promise<void>;
444
+ }, Record<string, z.core.util.JSONType>> & {
445
+ slug: "getPaymentIntent";
446
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
447
+ invoiceId: z.ZodString;
448
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
449
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
450
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
451
+ status: number;
452
+ headers: {
453
+ [k: string]: string;
454
+ };
455
+ body: import("./client.js").StripeResponse;
456
+ }>;
457
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
458
+ value: string;
459
+ label: string;
460
+ }[]>;
461
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
462
+ unsubscribe(webhookId: string): Promise<void>;
463
+ }, Record<string, z.core.util.JSONType>> & {
464
+ slug: "findInvoice";
465
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
466
+ method: z.ZodEnum<{
467
+ DELETE: "DELETE";
468
+ GET: "GET";
469
+ POST: "POST";
470
+ }>;
471
+ path: z.ZodString;
472
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
473
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ status: z.ZodNumber;
476
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
477
+ body: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
478
+ }, z.core.$strip>, object, {
479
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
480
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
481
+ status: number;
482
+ headers: {
483
+ [k: string]: string;
484
+ };
485
+ body: import("./client.js").StripeResponse;
486
+ }>;
487
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
488
+ value: string;
489
+ label: string;
490
+ }[]>;
491
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
492
+ unsubscribe(webhookId: string): Promise<void>;
493
+ }, {
494
+ status: number;
495
+ headers: Record<string, string>;
496
+ body: Record<string, z.core.util.JSONType>;
497
+ }> & {
498
+ slug: "sendRequest";
499
+ }))[];
500
+ triggers: (import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, Record<string, never>, {
501
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
502
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
503
+ status: number;
504
+ headers: {
505
+ [k: string]: string;
506
+ };
507
+ body: import("./client.js").StripeResponse;
508
+ }>;
509
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
510
+ value: string;
511
+ label: string;
512
+ }[]>;
513
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
514
+ unsubscribe(webhookId: string): Promise<void>;
515
+ }, {
516
+ webhookId: string;
517
+ endpointSecret: string;
518
+ }> | import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
519
+ status: z.ZodOptional<z.ZodEnum<{
520
+ void: "void";
521
+ draft: "draft";
522
+ open: "open";
523
+ paid: "paid";
524
+ uncollectible: "uncollectible";
525
+ }>>;
526
+ customerId: z.ZodOptional<z.ZodString>;
527
+ subscriptionId: z.ZodOptional<z.ZodString>;
528
+ }, z.core.$strip>, undefined, Record<string, never>, {
529
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
530
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
531
+ status: number;
532
+ headers: {
533
+ [k: string]: string;
534
+ };
535
+ body: import("./client.js").StripeResponse;
536
+ }>;
537
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
538
+ value: string;
539
+ label: string;
540
+ }[]>;
541
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
542
+ unsubscribe(webhookId: string): Promise<void>;
543
+ }, {
544
+ webhookId: string;
545
+ endpointSecret: string;
546
+ }> | import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
547
+ customerId: z.ZodOptional<z.ZodString>;
548
+ }, z.core.$strip>, undefined, Record<string, never>, {
549
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
550
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
551
+ status: number;
552
+ headers: {
553
+ [k: string]: string;
554
+ };
555
+ body: import("./client.js").StripeResponse;
556
+ }>;
557
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
558
+ value: string;
559
+ label: string;
560
+ }[]>;
561
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
562
+ unsubscribe(webhookId: string): Promise<void>;
563
+ }, {
564
+ webhookId: string;
565
+ endpointSecret: string;
566
+ }> | import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
567
+ chargeId: z.ZodOptional<z.ZodString>;
568
+ paymentIntentId: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$strip>, undefined, Record<string, never>, {
570
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
571
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
572
+ status: number;
573
+ headers: {
574
+ [k: string]: string;
575
+ };
576
+ body: import("./client.js").StripeResponse;
577
+ }>;
578
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
579
+ value: string;
580
+ label: string;
581
+ }[]>;
582
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
583
+ unsubscribe(webhookId: string): Promise<void>;
584
+ }, {
585
+ webhookId: string;
586
+ endpointSecret: string;
587
+ }> | import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
588
+ status: z.ZodOptional<z.ZodEnum<{
589
+ active: "active";
590
+ past_due: "past_due";
591
+ unpaid: "unpaid";
592
+ canceled: "canceled";
593
+ incomplete: "incomplete";
594
+ incomplete_expired: "incomplete_expired";
595
+ trialing: "trialing";
596
+ paused: "paused";
597
+ }>>;
598
+ customerId: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strip>, undefined, Record<string, never>, {
600
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
601
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
602
+ status: number;
603
+ headers: {
604
+ [k: string]: string;
605
+ };
606
+ body: import("./client.js").StripeResponse;
607
+ }>;
608
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
609
+ value: string;
610
+ label: string;
611
+ }[]>;
612
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
613
+ unsubscribe(webhookId: string): Promise<void>;
614
+ }, {
615
+ webhookId: string;
616
+ endpointSecret: string;
617
+ }>)[];
618
+ }>;
44
619
  //# sourceMappingURL=index.d.ts.map