@frogbotai/piece-stripe 0.27.0 → 0.28.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,6 +1,6 @@
1
1
  import type { z } from 'zod';
2
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
+ export declare const stripeTriggers: ("paymentSucceeded" | "customerCreated" | "paymentFailed" | "subscriptionCreated" | "chargeSucceeded" | "invoiceCreated" | "invoicePaymentFailed" | "subscriptionCanceled" | "refundCreated" | "disputeCreated" | "paymentLinkCreated" | "subscriptionUpdated" | "checkoutCompleted")[];
4
4
  export declare const stripeScopes: readonly [];
5
5
  export declare const createStripe: import("frogbot/pieces").PieceFactory<{
6
6
  slug: string;
@@ -40,7 +40,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
40
40
  name: z.ZodString;
41
41
  description: z.ZodOptional<z.ZodString>;
42
42
  phone: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
43
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
44
44
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
45
45
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
46
46
  status: number;
@@ -61,7 +61,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
61
61
  customerId: z.ZodString;
62
62
  description: z.ZodOptional<z.ZodString>;
63
63
  daysUntilDue: z.ZodOptional<z.ZodNumber>;
64
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
64
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
65
65
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
66
66
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
67
67
  status: number;
@@ -80,7 +80,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
80
80
  slug: "createInvoice";
81
81
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
82
82
  email: z.ZodString;
83
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
83
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
84
84
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
85
85
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
86
86
  status: number;
@@ -114,7 +114,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
114
114
  createdBefore: z.ZodOptional<z.ZodString>;
115
115
  limit: z.ZodDefault<z.ZodNumber>;
116
116
  includeCustomerDetails: z.ZodDefault<z.ZodBoolean>;
117
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
117
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
118
118
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
119
119
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
120
120
  status: number;
@@ -133,7 +133,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
133
133
  slug: "searchSubscriptions";
134
134
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
135
135
  customerId: z.ZodString;
136
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
136
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
137
137
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
138
138
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
139
139
  status: number;
@@ -161,7 +161,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
161
161
  name: z.ZodOptional<z.ZodString>;
162
162
  description: z.ZodOptional<z.ZodString>;
163
163
  phone: z.ZodOptional<z.ZodString>;
164
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
164
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
165
165
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
166
166
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
167
167
  status: number;
@@ -187,7 +187,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
187
187
  returnUrl: z.ZodOptional<z.ZodString>;
188
188
  description: z.ZodOptional<z.ZodString>;
189
189
  receiptEmail: z.ZodOptional<z.ZodString>;
190
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
190
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
191
191
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
192
192
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
193
193
  status: number;
@@ -211,7 +211,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
211
211
  images: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
212
  url: z.ZodOptional<z.ZodString>;
213
213
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
214
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
214
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
215
215
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
216
216
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
217
217
  status: number;
@@ -240,7 +240,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
240
240
  year: "year";
241
241
  }>>;
242
242
  recurringIntervalCount: z.ZodOptional<z.ZodNumber>;
243
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
243
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
244
244
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
245
245
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
246
246
  status: number;
@@ -271,7 +271,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
271
271
  trialPeriodDays: z.ZodOptional<z.ZodNumber>;
272
272
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
273
273
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
274
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
274
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
275
275
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
276
276
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
277
277
  status: number;
@@ -291,7 +291,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
291
291
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
292
292
  subscriptionId: z.ZodString;
293
293
  cancelAtPeriodEnd: z.ZodDefault<z.ZodBoolean>;
294
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
294
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
295
295
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
296
296
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
297
297
  status: number;
@@ -310,7 +310,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
310
310
  slug: "cancelSubscription";
311
311
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
312
312
  invoiceId: z.ZodString;
313
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
313
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
314
314
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
315
315
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
316
316
  status: number;
@@ -329,7 +329,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
329
329
  slug: "getInvoice";
330
330
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
331
331
  payoutId: z.ZodString;
332
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
332
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
333
333
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
334
334
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
335
335
  status: number;
@@ -355,7 +355,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
355
355
  requested_by_customer: "requested_by_customer";
356
356
  }>>;
357
357
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
358
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
358
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
359
359
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
360
360
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
361
361
  status: number;
@@ -388,7 +388,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
388
388
  required: "required";
389
389
  }>>;
390
390
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
391
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
391
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
392
392
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
393
393
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
394
394
  status: number;
@@ -407,7 +407,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
407
407
  slug: "createPaymentLink";
408
408
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
409
409
  paymentLinkId: z.ZodString;
410
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
410
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
411
411
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
412
412
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
413
413
  status: number;
@@ -426,7 +426,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
426
426
  slug: "deactivatePaymentLink";
427
427
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
428
428
  paymentIntentId: z.ZodString;
429
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
429
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
430
430
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
431
431
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
432
432
  status: number;
@@ -445,7 +445,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
445
445
  slug: "getPaymentIntent";
446
446
  }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
447
447
  invoiceId: z.ZodString;
448
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, object, {
448
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>, Record<string, never>, {
449
449
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
450
450
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
451
451
  status: number;
@@ -475,7 +475,7 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
475
475
  status: z.ZodNumber;
476
476
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
477
477
  body: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
478
- }, z.core.$strip>, object, {
478
+ }, z.core.$strip>, Record<string, never>, {
479
479
  request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
480
480
  requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
481
481
  status: number;
@@ -497,123 +497,1442 @@ export declare const createStripe: import("frogbot/pieces").PieceFactory<{
497
497
  }> & {
498
498
  slug: "sendRequest";
499
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;
500
+ triggers: (({
501
+ slug: string;
502
+ label?: string;
503
+ description: string;
504
+ input: z.ZodObject<{}, z.core.$strip>;
505
+ output?: undefined;
506
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
507
+ } & {
508
+ type: "webhook";
509
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
510
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
511
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
512
+ status: number;
513
+ headers: {
514
+ [k: string]: string;
515
+ };
516
+ body: import("./client.js").StripeResponse;
517
+ }>;
518
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
519
+ value: string;
520
+ label: string;
521
+ }[]>;
522
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
523
+ unsubscribe(webhookId: string): Promise<void>;
524
+ }> & {
525
+ webhookUrl: string;
526
+ }): Promise<{
527
+ webhookId: string;
528
+ endpointSecret: string;
529
+ }>;
530
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
531
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
532
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
533
+ status: number;
534
+ headers: {
535
+ [k: string]: string;
536
+ };
537
+ body: import("./client.js").StripeResponse;
538
+ }>;
539
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
540
+ value: string;
541
+ label: string;
542
+ }[]>;
543
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
544
+ unsubscribe(webhookId: string): Promise<void>;
545
+ }> & {
546
+ state: {
547
+ webhookId: string;
548
+ endpointSecret: string;
506
549
  };
507
- body: import("./client.js").StripeResponse;
550
+ }): Promise<void>;
551
+ renew?: {
552
+ schedule: string;
553
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
554
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
555
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
556
+ status: number;
557
+ headers: {
558
+ [k: string]: string;
559
+ };
560
+ body: import("./client.js").StripeResponse;
561
+ }>;
562
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
563
+ value: string;
564
+ label: string;
565
+ }[]>;
566
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
567
+ unsubscribe(webhookId: string): Promise<void>;
568
+ }> & {
569
+ state: {
570
+ webhookId: string;
571
+ endpointSecret: string;
572
+ };
573
+ webhookUrl: string;
574
+ }): Promise<{
575
+ webhookId: string;
576
+ endpointSecret: string;
577
+ }>;
578
+ } | undefined;
579
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
580
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
581
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
582
+ status: number;
583
+ headers: {
584
+ [k: string]: string;
585
+ };
586
+ body: import("./client.js").StripeResponse;
587
+ }>;
588
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
589
+ value: string;
590
+ label: string;
591
+ }[]>;
592
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
593
+ unsubscribe(webhookId: string): Promise<void>;
594
+ }> & {
595
+ state: {
596
+ webhookId: string;
597
+ endpointSecret: string;
598
+ };
599
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
600
+ } & {
601
+ slug: "paymentSucceeded";
602
+ }) | ({
603
+ slug: string;
604
+ label?: string;
605
+ description: string;
606
+ input: z.ZodObject<{}, z.core.$strip>;
607
+ output?: undefined;
608
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
609
+ } & {
610
+ type: "webhook";
611
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
612
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
613
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
614
+ status: number;
615
+ headers: {
616
+ [k: string]: string;
617
+ };
618
+ body: import("./client.js").StripeResponse;
619
+ }>;
620
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
621
+ value: string;
622
+ label: string;
623
+ }[]>;
624
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
625
+ unsubscribe(webhookId: string): Promise<void>;
626
+ }> & {
627
+ webhookUrl: string;
628
+ }): Promise<{
629
+ webhookId: string;
630
+ endpointSecret: string;
508
631
  }>;
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;
632
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
633
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
634
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
635
+ status: number;
636
+ headers: {
637
+ [k: string]: string;
638
+ };
639
+ body: import("./client.js").StripeResponse;
640
+ }>;
641
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
642
+ value: string;
643
+ label: string;
644
+ }[]>;
645
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
646
+ unsubscribe(webhookId: string): Promise<void>;
647
+ }> & {
648
+ state: {
649
+ webhookId: string;
650
+ endpointSecret: string;
534
651
  };
535
- body: import("./client.js").StripeResponse;
652
+ }): Promise<void>;
653
+ renew?: {
654
+ schedule: string;
655
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
656
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
657
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
658
+ status: number;
659
+ headers: {
660
+ [k: string]: string;
661
+ };
662
+ body: import("./client.js").StripeResponse;
663
+ }>;
664
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
665
+ value: string;
666
+ label: string;
667
+ }[]>;
668
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
669
+ unsubscribe(webhookId: string): Promise<void>;
670
+ }> & {
671
+ state: {
672
+ webhookId: string;
673
+ endpointSecret: string;
674
+ };
675
+ webhookUrl: string;
676
+ }): Promise<{
677
+ webhookId: string;
678
+ endpointSecret: string;
679
+ }>;
680
+ } | undefined;
681
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
682
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
683
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
684
+ status: number;
685
+ headers: {
686
+ [k: string]: string;
687
+ };
688
+ body: import("./client.js").StripeResponse;
689
+ }>;
690
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
691
+ value: string;
692
+ label: string;
693
+ }[]>;
694
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
695
+ unsubscribe(webhookId: string): Promise<void>;
696
+ }> & {
697
+ state: {
698
+ webhookId: string;
699
+ endpointSecret: string;
700
+ };
701
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
702
+ } & {
703
+ slug: "customerCreated";
704
+ }) | ({
705
+ slug: string;
706
+ label?: string;
707
+ description: string;
708
+ input: z.ZodObject<{}, z.core.$strip>;
709
+ output?: undefined;
710
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
711
+ } & {
712
+ type: "webhook";
713
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
714
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
715
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
716
+ status: number;
717
+ headers: {
718
+ [k: string]: string;
719
+ };
720
+ body: import("./client.js").StripeResponse;
721
+ }>;
722
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
723
+ value: string;
724
+ label: string;
725
+ }[]>;
726
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
727
+ unsubscribe(webhookId: string): Promise<void>;
728
+ }> & {
729
+ webhookUrl: string;
730
+ }): Promise<{
731
+ webhookId: string;
732
+ endpointSecret: string;
536
733
  }>;
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;
734
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
735
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
736
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
737
+ status: number;
738
+ headers: {
739
+ [k: string]: string;
740
+ };
741
+ body: import("./client.js").StripeResponse;
742
+ }>;
743
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
744
+ value: string;
745
+ label: string;
746
+ }[]>;
747
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
748
+ unsubscribe(webhookId: string): Promise<void>;
749
+ }> & {
750
+ state: {
751
+ webhookId: string;
752
+ endpointSecret: string;
554
753
  };
555
- body: import("./client.js").StripeResponse;
754
+ }): Promise<void>;
755
+ renew?: {
756
+ schedule: string;
757
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
758
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
759
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
760
+ status: number;
761
+ headers: {
762
+ [k: string]: string;
763
+ };
764
+ body: import("./client.js").StripeResponse;
765
+ }>;
766
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
767
+ value: string;
768
+ label: string;
769
+ }[]>;
770
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
771
+ unsubscribe(webhookId: string): Promise<void>;
772
+ }> & {
773
+ state: {
774
+ webhookId: string;
775
+ endpointSecret: string;
776
+ };
777
+ webhookUrl: string;
778
+ }): Promise<{
779
+ webhookId: string;
780
+ endpointSecret: string;
781
+ }>;
782
+ } | undefined;
783
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
784
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
785
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
786
+ status: number;
787
+ headers: {
788
+ [k: string]: string;
789
+ };
790
+ body: import("./client.js").StripeResponse;
791
+ }>;
792
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
793
+ value: string;
794
+ label: string;
795
+ }[]>;
796
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
797
+ unsubscribe(webhookId: string): Promise<void>;
798
+ }> & {
799
+ state: {
800
+ webhookId: string;
801
+ endpointSecret: string;
802
+ };
803
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
804
+ } & {
805
+ slug: "paymentFailed";
806
+ }) | ({
807
+ slug: string;
808
+ label?: string;
809
+ description: string;
810
+ input: z.ZodObject<{}, z.core.$strip>;
811
+ output?: undefined;
812
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
813
+ } & {
814
+ type: "webhook";
815
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
816
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
817
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
818
+ status: number;
819
+ headers: {
820
+ [k: string]: string;
821
+ };
822
+ body: import("./client.js").StripeResponse;
823
+ }>;
824
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
825
+ value: string;
826
+ label: string;
827
+ }[]>;
828
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
829
+ unsubscribe(webhookId: string): Promise<void>;
830
+ }> & {
831
+ webhookUrl: string;
832
+ }): Promise<{
833
+ webhookId: string;
834
+ endpointSecret: string;
556
835
  }>;
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;
836
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
837
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
838
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
839
+ status: number;
840
+ headers: {
841
+ [k: string]: string;
842
+ };
843
+ body: import("./client.js").StripeResponse;
844
+ }>;
845
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
846
+ value: string;
847
+ label: string;
848
+ }[]>;
849
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
850
+ unsubscribe(webhookId: string): Promise<void>;
851
+ }> & {
852
+ state: {
853
+ webhookId: string;
854
+ endpointSecret: string;
575
855
  };
576
- body: import("./client.js").StripeResponse;
856
+ }): Promise<void>;
857
+ renew?: {
858
+ schedule: string;
859
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
860
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
861
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
862
+ status: number;
863
+ headers: {
864
+ [k: string]: string;
865
+ };
866
+ body: import("./client.js").StripeResponse;
867
+ }>;
868
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
869
+ value: string;
870
+ label: string;
871
+ }[]>;
872
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
873
+ unsubscribe(webhookId: string): Promise<void>;
874
+ }> & {
875
+ state: {
876
+ webhookId: string;
877
+ endpointSecret: string;
878
+ };
879
+ webhookUrl: string;
880
+ }): Promise<{
881
+ webhookId: string;
882
+ endpointSecret: string;
883
+ }>;
884
+ } | undefined;
885
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
886
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").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: import("./client.js").StripeResponse;
893
+ }>;
894
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
895
+ value: string;
896
+ label: string;
897
+ }[]>;
898
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
899
+ unsubscribe(webhookId: string): Promise<void>;
900
+ }> & {
901
+ state: {
902
+ webhookId: string;
903
+ endpointSecret: string;
904
+ };
905
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
906
+ } & {
907
+ slug: "subscriptionCreated";
908
+ }) | ({
909
+ slug: string;
910
+ label?: string;
911
+ description: string;
912
+ input: z.ZodObject<{}, z.core.$strip>;
913
+ output?: undefined;
914
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
915
+ } & {
916
+ type: "webhook";
917
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
918
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
919
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
920
+ status: number;
921
+ headers: {
922
+ [k: string]: string;
923
+ };
924
+ body: import("./client.js").StripeResponse;
925
+ }>;
926
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
927
+ value: string;
928
+ label: string;
929
+ }[]>;
930
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
931
+ unsubscribe(webhookId: string): Promise<void>;
932
+ }> & {
933
+ webhookUrl: string;
934
+ }): Promise<{
935
+ webhookId: string;
936
+ endpointSecret: string;
577
937
  }>;
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;
938
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
939
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
940
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
941
+ status: number;
942
+ headers: {
943
+ [k: string]: string;
944
+ };
945
+ body: import("./client.js").StripeResponse;
946
+ }>;
947
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
948
+ value: string;
949
+ label: string;
950
+ }[]>;
951
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
952
+ unsubscribe(webhookId: string): Promise<void>;
953
+ }> & {
954
+ state: {
955
+ webhookId: string;
956
+ endpointSecret: string;
605
957
  };
606
- body: import("./client.js").StripeResponse;
958
+ }): Promise<void>;
959
+ renew?: {
960
+ schedule: string;
961
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
962
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
963
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
964
+ status: number;
965
+ headers: {
966
+ [k: string]: string;
967
+ };
968
+ body: import("./client.js").StripeResponse;
969
+ }>;
970
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
971
+ value: string;
972
+ label: string;
973
+ }[]>;
974
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
975
+ unsubscribe(webhookId: string): Promise<void>;
976
+ }> & {
977
+ state: {
978
+ webhookId: string;
979
+ endpointSecret: string;
980
+ };
981
+ webhookUrl: string;
982
+ }): Promise<{
983
+ webhookId: string;
984
+ endpointSecret: string;
985
+ }>;
986
+ } | undefined;
987
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
988
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
989
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
990
+ status: number;
991
+ headers: {
992
+ [k: string]: string;
993
+ };
994
+ body: import("./client.js").StripeResponse;
995
+ }>;
996
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
997
+ value: string;
998
+ label: string;
999
+ }[]>;
1000
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1001
+ unsubscribe(webhookId: string): Promise<void>;
1002
+ }> & {
1003
+ state: {
1004
+ webhookId: string;
1005
+ endpointSecret: string;
1006
+ };
1007
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1008
+ } & {
1009
+ slug: "chargeSucceeded";
1010
+ }) | ({
1011
+ slug: string;
1012
+ label?: string;
1013
+ description: string;
1014
+ input: z.ZodObject<{
1015
+ status: z.ZodOptional<z.ZodEnum<{
1016
+ void: "void";
1017
+ draft: "draft";
1018
+ open: "open";
1019
+ paid: "paid";
1020
+ uncollectible: "uncollectible";
1021
+ }>>;
1022
+ customerId: z.ZodOptional<z.ZodString>;
1023
+ subscriptionId: z.ZodOptional<z.ZodString>;
1024
+ }, z.core.$strip>;
1025
+ output?: undefined;
1026
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1027
+ } & {
1028
+ type: "webhook";
1029
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1030
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
1031
+ customerId?: string | undefined;
1032
+ subscriptionId?: string | undefined;
1033
+ }, Record<string, never>, {
1034
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1035
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1036
+ status: number;
1037
+ headers: {
1038
+ [k: string]: string;
1039
+ };
1040
+ body: import("./client.js").StripeResponse;
1041
+ }>;
1042
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1043
+ value: string;
1044
+ label: string;
1045
+ }[]>;
1046
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1047
+ unsubscribe(webhookId: string): Promise<void>;
1048
+ }> & {
1049
+ webhookUrl: string;
1050
+ }): Promise<{
1051
+ webhookId: string;
1052
+ endpointSecret: string;
607
1053
  }>;
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
- }>)[];
1054
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1055
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
1056
+ customerId?: string | undefined;
1057
+ subscriptionId?: string | undefined;
1058
+ }, Record<string, never>, {
1059
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1060
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1061
+ status: number;
1062
+ headers: {
1063
+ [k: string]: string;
1064
+ };
1065
+ body: import("./client.js").StripeResponse;
1066
+ }>;
1067
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1068
+ value: string;
1069
+ label: string;
1070
+ }[]>;
1071
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1072
+ unsubscribe(webhookId: string): Promise<void>;
1073
+ }> & {
1074
+ state: {
1075
+ webhookId: string;
1076
+ endpointSecret: string;
1077
+ };
1078
+ }): Promise<void>;
1079
+ renew?: {
1080
+ schedule: string;
1081
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1082
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
1083
+ customerId?: string | undefined;
1084
+ subscriptionId?: string | undefined;
1085
+ }, Record<string, never>, {
1086
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1087
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1088
+ status: number;
1089
+ headers: {
1090
+ [k: string]: string;
1091
+ };
1092
+ body: import("./client.js").StripeResponse;
1093
+ }>;
1094
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1095
+ value: string;
1096
+ label: string;
1097
+ }[]>;
1098
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1099
+ unsubscribe(webhookId: string): Promise<void>;
1100
+ }> & {
1101
+ state: {
1102
+ webhookId: string;
1103
+ endpointSecret: string;
1104
+ };
1105
+ webhookUrl: string;
1106
+ }): Promise<{
1107
+ webhookId: string;
1108
+ endpointSecret: string;
1109
+ }>;
1110
+ } | undefined;
1111
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1112
+ status?: "void" | "draft" | "open" | "paid" | "uncollectible" | undefined;
1113
+ customerId?: string | undefined;
1114
+ subscriptionId?: string | undefined;
1115
+ }, Record<string, never>, {
1116
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1117
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1118
+ status: number;
1119
+ headers: {
1120
+ [k: string]: string;
1121
+ };
1122
+ body: import("./client.js").StripeResponse;
1123
+ }>;
1124
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1125
+ value: string;
1126
+ label: string;
1127
+ }[]>;
1128
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1129
+ unsubscribe(webhookId: string): Promise<void>;
1130
+ }> & {
1131
+ state: {
1132
+ webhookId: string;
1133
+ endpointSecret: string;
1134
+ };
1135
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1136
+ } & {
1137
+ slug: "invoiceCreated";
1138
+ }) | ({
1139
+ slug: string;
1140
+ label?: string;
1141
+ description: string;
1142
+ input: z.ZodObject<{
1143
+ customerId: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strip>;
1145
+ output?: undefined;
1146
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1147
+ } & {
1148
+ type: "webhook";
1149
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1150
+ customerId?: string | undefined;
1151
+ }, Record<string, never>, {
1152
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1153
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1154
+ status: number;
1155
+ headers: {
1156
+ [k: string]: string;
1157
+ };
1158
+ body: import("./client.js").StripeResponse;
1159
+ }>;
1160
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1161
+ value: string;
1162
+ label: string;
1163
+ }[]>;
1164
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1165
+ unsubscribe(webhookId: string): Promise<void>;
1166
+ }> & {
1167
+ webhookUrl: string;
1168
+ }): Promise<{
1169
+ webhookId: string;
1170
+ endpointSecret: string;
1171
+ }>;
1172
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1173
+ customerId?: string | undefined;
1174
+ }, Record<string, never>, {
1175
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1176
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1177
+ status: number;
1178
+ headers: {
1179
+ [k: string]: string;
1180
+ };
1181
+ body: import("./client.js").StripeResponse;
1182
+ }>;
1183
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1184
+ value: string;
1185
+ label: string;
1186
+ }[]>;
1187
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1188
+ unsubscribe(webhookId: string): Promise<void>;
1189
+ }> & {
1190
+ state: {
1191
+ webhookId: string;
1192
+ endpointSecret: string;
1193
+ };
1194
+ }): Promise<void>;
1195
+ renew?: {
1196
+ schedule: string;
1197
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1198
+ customerId?: string | undefined;
1199
+ }, Record<string, never>, {
1200
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1201
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1202
+ status: number;
1203
+ headers: {
1204
+ [k: string]: string;
1205
+ };
1206
+ body: import("./client.js").StripeResponse;
1207
+ }>;
1208
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1209
+ value: string;
1210
+ label: string;
1211
+ }[]>;
1212
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1213
+ unsubscribe(webhookId: string): Promise<void>;
1214
+ }> & {
1215
+ state: {
1216
+ webhookId: string;
1217
+ endpointSecret: string;
1218
+ };
1219
+ webhookUrl: string;
1220
+ }): Promise<{
1221
+ webhookId: string;
1222
+ endpointSecret: string;
1223
+ }>;
1224
+ } | undefined;
1225
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1226
+ customerId?: string | undefined;
1227
+ }, Record<string, never>, {
1228
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1229
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1230
+ status: number;
1231
+ headers: {
1232
+ [k: string]: string;
1233
+ };
1234
+ body: import("./client.js").StripeResponse;
1235
+ }>;
1236
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1237
+ value: string;
1238
+ label: string;
1239
+ }[]>;
1240
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1241
+ unsubscribe(webhookId: string): Promise<void>;
1242
+ }> & {
1243
+ state: {
1244
+ webhookId: string;
1245
+ endpointSecret: string;
1246
+ };
1247
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1248
+ } & {
1249
+ slug: "invoicePaymentFailed";
1250
+ }) | ({
1251
+ slug: string;
1252
+ label?: string;
1253
+ description: string;
1254
+ input: z.ZodObject<{
1255
+ customerId: z.ZodOptional<z.ZodString>;
1256
+ }, z.core.$strip>;
1257
+ output?: undefined;
1258
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1259
+ } & {
1260
+ type: "webhook";
1261
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1262
+ customerId?: string | undefined;
1263
+ }, Record<string, never>, {
1264
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1265
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1266
+ status: number;
1267
+ headers: {
1268
+ [k: string]: string;
1269
+ };
1270
+ body: import("./client.js").StripeResponse;
1271
+ }>;
1272
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1273
+ value: string;
1274
+ label: string;
1275
+ }[]>;
1276
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1277
+ unsubscribe(webhookId: string): Promise<void>;
1278
+ }> & {
1279
+ webhookUrl: string;
1280
+ }): Promise<{
1281
+ webhookId: string;
1282
+ endpointSecret: string;
1283
+ }>;
1284
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1285
+ customerId?: string | undefined;
1286
+ }, Record<string, never>, {
1287
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1288
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1289
+ status: number;
1290
+ headers: {
1291
+ [k: string]: string;
1292
+ };
1293
+ body: import("./client.js").StripeResponse;
1294
+ }>;
1295
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1296
+ value: string;
1297
+ label: string;
1298
+ }[]>;
1299
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1300
+ unsubscribe(webhookId: string): Promise<void>;
1301
+ }> & {
1302
+ state: {
1303
+ webhookId: string;
1304
+ endpointSecret: string;
1305
+ };
1306
+ }): Promise<void>;
1307
+ renew?: {
1308
+ schedule: string;
1309
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1310
+ customerId?: string | undefined;
1311
+ }, Record<string, never>, {
1312
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1313
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1314
+ status: number;
1315
+ headers: {
1316
+ [k: string]: string;
1317
+ };
1318
+ body: import("./client.js").StripeResponse;
1319
+ }>;
1320
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1321
+ value: string;
1322
+ label: string;
1323
+ }[]>;
1324
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1325
+ unsubscribe(webhookId: string): Promise<void>;
1326
+ }> & {
1327
+ state: {
1328
+ webhookId: string;
1329
+ endpointSecret: string;
1330
+ };
1331
+ webhookUrl: string;
1332
+ }): Promise<{
1333
+ webhookId: string;
1334
+ endpointSecret: string;
1335
+ }>;
1336
+ } | undefined;
1337
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1338
+ customerId?: string | undefined;
1339
+ }, Record<string, never>, {
1340
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1341
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1342
+ status: number;
1343
+ headers: {
1344
+ [k: string]: string;
1345
+ };
1346
+ body: import("./client.js").StripeResponse;
1347
+ }>;
1348
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1349
+ value: string;
1350
+ label: string;
1351
+ }[]>;
1352
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1353
+ unsubscribe(webhookId: string): Promise<void>;
1354
+ }> & {
1355
+ state: {
1356
+ webhookId: string;
1357
+ endpointSecret: string;
1358
+ };
1359
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1360
+ } & {
1361
+ slug: "subscriptionCanceled";
1362
+ }) | ({
1363
+ slug: string;
1364
+ label?: string;
1365
+ description: string;
1366
+ input: z.ZodObject<{
1367
+ chargeId: z.ZodOptional<z.ZodString>;
1368
+ paymentIntentId: z.ZodOptional<z.ZodString>;
1369
+ }, z.core.$strip>;
1370
+ output?: undefined;
1371
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1372
+ } & {
1373
+ type: "webhook";
1374
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1375
+ chargeId?: string | undefined;
1376
+ paymentIntentId?: string | undefined;
1377
+ }, Record<string, never>, {
1378
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1379
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1380
+ status: number;
1381
+ headers: {
1382
+ [k: string]: string;
1383
+ };
1384
+ body: import("./client.js").StripeResponse;
1385
+ }>;
1386
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1387
+ value: string;
1388
+ label: string;
1389
+ }[]>;
1390
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1391
+ unsubscribe(webhookId: string): Promise<void>;
1392
+ }> & {
1393
+ webhookUrl: string;
1394
+ }): Promise<{
1395
+ webhookId: string;
1396
+ endpointSecret: string;
1397
+ }>;
1398
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1399
+ chargeId?: string | undefined;
1400
+ paymentIntentId?: string | undefined;
1401
+ }, Record<string, never>, {
1402
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1403
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1404
+ status: number;
1405
+ headers: {
1406
+ [k: string]: string;
1407
+ };
1408
+ body: import("./client.js").StripeResponse;
1409
+ }>;
1410
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1411
+ value: string;
1412
+ label: string;
1413
+ }[]>;
1414
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1415
+ unsubscribe(webhookId: string): Promise<void>;
1416
+ }> & {
1417
+ state: {
1418
+ webhookId: string;
1419
+ endpointSecret: string;
1420
+ };
1421
+ }): Promise<void>;
1422
+ renew?: {
1423
+ schedule: string;
1424
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1425
+ chargeId?: string | undefined;
1426
+ paymentIntentId?: string | undefined;
1427
+ }, Record<string, never>, {
1428
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1429
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1430
+ status: number;
1431
+ headers: {
1432
+ [k: string]: string;
1433
+ };
1434
+ body: import("./client.js").StripeResponse;
1435
+ }>;
1436
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1437
+ value: string;
1438
+ label: string;
1439
+ }[]>;
1440
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1441
+ unsubscribe(webhookId: string): Promise<void>;
1442
+ }> & {
1443
+ state: {
1444
+ webhookId: string;
1445
+ endpointSecret: string;
1446
+ };
1447
+ webhookUrl: string;
1448
+ }): Promise<{
1449
+ webhookId: string;
1450
+ endpointSecret: string;
1451
+ }>;
1452
+ } | undefined;
1453
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1454
+ chargeId?: string | undefined;
1455
+ paymentIntentId?: string | undefined;
1456
+ }, Record<string, never>, {
1457
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1458
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1459
+ status: number;
1460
+ headers: {
1461
+ [k: string]: string;
1462
+ };
1463
+ body: import("./client.js").StripeResponse;
1464
+ }>;
1465
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1466
+ value: string;
1467
+ label: string;
1468
+ }[]>;
1469
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1470
+ unsubscribe(webhookId: string): Promise<void>;
1471
+ }> & {
1472
+ state: {
1473
+ webhookId: string;
1474
+ endpointSecret: string;
1475
+ };
1476
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1477
+ } & {
1478
+ slug: "refundCreated";
1479
+ }) | ({
1480
+ slug: string;
1481
+ label?: string;
1482
+ description: string;
1483
+ input: z.ZodObject<{
1484
+ chargeId: z.ZodOptional<z.ZodString>;
1485
+ paymentIntentId: z.ZodOptional<z.ZodString>;
1486
+ }, z.core.$strip>;
1487
+ output?: undefined;
1488
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1489
+ } & {
1490
+ type: "webhook";
1491
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1492
+ chargeId?: string | undefined;
1493
+ paymentIntentId?: string | undefined;
1494
+ }, Record<string, never>, {
1495
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1496
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1497
+ status: number;
1498
+ headers: {
1499
+ [k: string]: string;
1500
+ };
1501
+ body: import("./client.js").StripeResponse;
1502
+ }>;
1503
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1504
+ value: string;
1505
+ label: string;
1506
+ }[]>;
1507
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1508
+ unsubscribe(webhookId: string): Promise<void>;
1509
+ }> & {
1510
+ webhookUrl: string;
1511
+ }): Promise<{
1512
+ webhookId: string;
1513
+ endpointSecret: string;
1514
+ }>;
1515
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1516
+ chargeId?: string | undefined;
1517
+ paymentIntentId?: string | undefined;
1518
+ }, Record<string, never>, {
1519
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1520
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1521
+ status: number;
1522
+ headers: {
1523
+ [k: string]: string;
1524
+ };
1525
+ body: import("./client.js").StripeResponse;
1526
+ }>;
1527
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1528
+ value: string;
1529
+ label: string;
1530
+ }[]>;
1531
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1532
+ unsubscribe(webhookId: string): Promise<void>;
1533
+ }> & {
1534
+ state: {
1535
+ webhookId: string;
1536
+ endpointSecret: string;
1537
+ };
1538
+ }): Promise<void>;
1539
+ renew?: {
1540
+ schedule: string;
1541
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1542
+ chargeId?: string | undefined;
1543
+ paymentIntentId?: string | undefined;
1544
+ }, Record<string, never>, {
1545
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1546
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1547
+ status: number;
1548
+ headers: {
1549
+ [k: string]: string;
1550
+ };
1551
+ body: import("./client.js").StripeResponse;
1552
+ }>;
1553
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1554
+ value: string;
1555
+ label: string;
1556
+ }[]>;
1557
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1558
+ unsubscribe(webhookId: string): Promise<void>;
1559
+ }> & {
1560
+ state: {
1561
+ webhookId: string;
1562
+ endpointSecret: string;
1563
+ };
1564
+ webhookUrl: string;
1565
+ }): Promise<{
1566
+ webhookId: string;
1567
+ endpointSecret: string;
1568
+ }>;
1569
+ } | undefined;
1570
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1571
+ chargeId?: string | undefined;
1572
+ paymentIntentId?: string | undefined;
1573
+ }, Record<string, never>, {
1574
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1575
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1576
+ status: number;
1577
+ headers: {
1578
+ [k: string]: string;
1579
+ };
1580
+ body: import("./client.js").StripeResponse;
1581
+ }>;
1582
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1583
+ value: string;
1584
+ label: string;
1585
+ }[]>;
1586
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1587
+ unsubscribe(webhookId: string): Promise<void>;
1588
+ }> & {
1589
+ state: {
1590
+ webhookId: string;
1591
+ endpointSecret: string;
1592
+ };
1593
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1594
+ } & {
1595
+ slug: "disputeCreated";
1596
+ }) | ({
1597
+ slug: string;
1598
+ label?: string;
1599
+ description: string;
1600
+ input: z.ZodObject<{}, z.core.$strip>;
1601
+ output?: undefined;
1602
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1603
+ } & {
1604
+ type: "webhook";
1605
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1606
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1607
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1608
+ status: number;
1609
+ headers: {
1610
+ [k: string]: string;
1611
+ };
1612
+ body: import("./client.js").StripeResponse;
1613
+ }>;
1614
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1615
+ value: string;
1616
+ label: string;
1617
+ }[]>;
1618
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1619
+ unsubscribe(webhookId: string): Promise<void>;
1620
+ }> & {
1621
+ webhookUrl: string;
1622
+ }): Promise<{
1623
+ webhookId: string;
1624
+ endpointSecret: string;
1625
+ }>;
1626
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1627
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1628
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1629
+ status: number;
1630
+ headers: {
1631
+ [k: string]: string;
1632
+ };
1633
+ body: import("./client.js").StripeResponse;
1634
+ }>;
1635
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1636
+ value: string;
1637
+ label: string;
1638
+ }[]>;
1639
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1640
+ unsubscribe(webhookId: string): Promise<void>;
1641
+ }> & {
1642
+ state: {
1643
+ webhookId: string;
1644
+ endpointSecret: string;
1645
+ };
1646
+ }): Promise<void>;
1647
+ renew?: {
1648
+ schedule: string;
1649
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1650
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1651
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1652
+ status: number;
1653
+ headers: {
1654
+ [k: string]: string;
1655
+ };
1656
+ body: import("./client.js").StripeResponse;
1657
+ }>;
1658
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1659
+ value: string;
1660
+ label: string;
1661
+ }[]>;
1662
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1663
+ unsubscribe(webhookId: string): Promise<void>;
1664
+ }> & {
1665
+ state: {
1666
+ webhookId: string;
1667
+ endpointSecret: string;
1668
+ };
1669
+ webhookUrl: string;
1670
+ }): Promise<{
1671
+ webhookId: string;
1672
+ endpointSecret: string;
1673
+ }>;
1674
+ } | undefined;
1675
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
1676
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1677
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1678
+ status: number;
1679
+ headers: {
1680
+ [k: string]: string;
1681
+ };
1682
+ body: import("./client.js").StripeResponse;
1683
+ }>;
1684
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1685
+ value: string;
1686
+ label: string;
1687
+ }[]>;
1688
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1689
+ unsubscribe(webhookId: string): Promise<void>;
1690
+ }> & {
1691
+ state: {
1692
+ webhookId: string;
1693
+ endpointSecret: string;
1694
+ };
1695
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1696
+ } & {
1697
+ slug: "paymentLinkCreated";
1698
+ }) | ({
1699
+ slug: string;
1700
+ label?: string;
1701
+ description: string;
1702
+ input: z.ZodObject<{
1703
+ status: z.ZodOptional<z.ZodEnum<{
1704
+ active: "active";
1705
+ past_due: "past_due";
1706
+ unpaid: "unpaid";
1707
+ canceled: "canceled";
1708
+ incomplete: "incomplete";
1709
+ incomplete_expired: "incomplete_expired";
1710
+ trialing: "trialing";
1711
+ paused: "paused";
1712
+ }>>;
1713
+ customerId: z.ZodOptional<z.ZodString>;
1714
+ }, z.core.$strip>;
1715
+ output?: undefined;
1716
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1717
+ } & {
1718
+ type: "webhook";
1719
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1720
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1721
+ customerId?: string | undefined;
1722
+ }, Record<string, never>, {
1723
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1724
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1725
+ status: number;
1726
+ headers: {
1727
+ [k: string]: string;
1728
+ };
1729
+ body: import("./client.js").StripeResponse;
1730
+ }>;
1731
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1732
+ value: string;
1733
+ label: string;
1734
+ }[]>;
1735
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1736
+ unsubscribe(webhookId: string): Promise<void>;
1737
+ }> & {
1738
+ webhookUrl: string;
1739
+ }): Promise<{
1740
+ webhookId: string;
1741
+ endpointSecret: string;
1742
+ }>;
1743
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1744
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1745
+ customerId?: string | undefined;
1746
+ }, Record<string, never>, {
1747
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1748
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1749
+ status: number;
1750
+ headers: {
1751
+ [k: string]: string;
1752
+ };
1753
+ body: import("./client.js").StripeResponse;
1754
+ }>;
1755
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1756
+ value: string;
1757
+ label: string;
1758
+ }[]>;
1759
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1760
+ unsubscribe(webhookId: string): Promise<void>;
1761
+ }> & {
1762
+ state: {
1763
+ webhookId: string;
1764
+ endpointSecret: string;
1765
+ };
1766
+ }): Promise<void>;
1767
+ renew?: {
1768
+ schedule: string;
1769
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1770
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1771
+ customerId?: string | undefined;
1772
+ }, Record<string, never>, {
1773
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1774
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1775
+ status: number;
1776
+ headers: {
1777
+ [k: string]: string;
1778
+ };
1779
+ body: import("./client.js").StripeResponse;
1780
+ }>;
1781
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1782
+ value: string;
1783
+ label: string;
1784
+ }[]>;
1785
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1786
+ unsubscribe(webhookId: string): Promise<void>;
1787
+ }> & {
1788
+ state: {
1789
+ webhookId: string;
1790
+ endpointSecret: string;
1791
+ };
1792
+ webhookUrl: string;
1793
+ }): Promise<{
1794
+ webhookId: string;
1795
+ endpointSecret: string;
1796
+ }>;
1797
+ } | undefined;
1798
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1799
+ status?: "active" | "past_due" | "unpaid" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "paused" | undefined;
1800
+ customerId?: string | undefined;
1801
+ }, Record<string, never>, {
1802
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1803
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1804
+ status: number;
1805
+ headers: {
1806
+ [k: string]: string;
1807
+ };
1808
+ body: import("./client.js").StripeResponse;
1809
+ }>;
1810
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1811
+ value: string;
1812
+ label: string;
1813
+ }[]>;
1814
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1815
+ unsubscribe(webhookId: string): Promise<void>;
1816
+ }> & {
1817
+ state: {
1818
+ webhookId: string;
1819
+ endpointSecret: string;
1820
+ };
1821
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1822
+ } & {
1823
+ slug: "subscriptionUpdated";
1824
+ }) | ({
1825
+ slug: string;
1826
+ label?: string;
1827
+ description: string;
1828
+ input: z.ZodObject<{
1829
+ customerId: z.ZodOptional<z.ZodString>;
1830
+ }, z.core.$strip>;
1831
+ output?: undefined;
1832
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
1833
+ } & {
1834
+ type: "webhook";
1835
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
1836
+ customerId?: string | undefined;
1837
+ }, Record<string, never>, {
1838
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1839
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1840
+ status: number;
1841
+ headers: {
1842
+ [k: string]: string;
1843
+ };
1844
+ body: import("./client.js").StripeResponse;
1845
+ }>;
1846
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1847
+ value: string;
1848
+ label: string;
1849
+ }[]>;
1850
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1851
+ unsubscribe(webhookId: string): Promise<void>;
1852
+ }> & {
1853
+ webhookUrl: string;
1854
+ }): Promise<{
1855
+ webhookId: string;
1856
+ endpointSecret: string;
1857
+ }>;
1858
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
1859
+ customerId?: string | undefined;
1860
+ }, Record<string, never>, {
1861
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1862
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1863
+ status: number;
1864
+ headers: {
1865
+ [k: string]: string;
1866
+ };
1867
+ body: import("./client.js").StripeResponse;
1868
+ }>;
1869
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1870
+ value: string;
1871
+ label: string;
1872
+ }[]>;
1873
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1874
+ unsubscribe(webhookId: string): Promise<void>;
1875
+ }> & {
1876
+ state: {
1877
+ webhookId: string;
1878
+ endpointSecret: string;
1879
+ };
1880
+ }): Promise<void>;
1881
+ renew?: {
1882
+ schedule: string;
1883
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1884
+ customerId?: string | undefined;
1885
+ }, Record<string, never>, {
1886
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1887
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1888
+ status: number;
1889
+ headers: {
1890
+ [k: string]: string;
1891
+ };
1892
+ body: import("./client.js").StripeResponse;
1893
+ }>;
1894
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1895
+ value: string;
1896
+ label: string;
1897
+ }[]>;
1898
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1899
+ unsubscribe(webhookId: string): Promise<void>;
1900
+ }> & {
1901
+ state: {
1902
+ webhookId: string;
1903
+ endpointSecret: string;
1904
+ };
1905
+ webhookUrl: string;
1906
+ }): Promise<{
1907
+ webhookId: string;
1908
+ endpointSecret: string;
1909
+ }>;
1910
+ } | undefined;
1911
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1912
+ customerId?: string | undefined;
1913
+ }, Record<string, never>, {
1914
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
1915
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
1916
+ status: number;
1917
+ headers: {
1918
+ [k: string]: string;
1919
+ };
1920
+ body: import("./client.js").StripeResponse;
1921
+ }>;
1922
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
1923
+ value: string;
1924
+ label: string;
1925
+ }[]>;
1926
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
1927
+ unsubscribe(webhookId: string): Promise<void>;
1928
+ }> & {
1929
+ state: {
1930
+ webhookId: string;
1931
+ endpointSecret: string;
1932
+ };
1933
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
1934
+ } & {
1935
+ slug: "checkoutCompleted";
1936
+ }))[];
618
1937
  }>;
619
1938
  //# sourceMappingURL=index.d.ts.map