@bubblelab/bubble-core 0.1.50 → 0.1.52

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.
Files changed (95) hide show
  1. package/dist/bubble-bundle.d.ts +126 -106
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +4 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/agi-inc.d.ts +132 -132
  6. package/dist/bubbles/service-bubble/ai-agent.d.ts +44 -44
  7. package/dist/bubbles/service-bubble/airtable.d.ts +278 -278
  8. package/dist/bubbles/service-bubble/apify/apify.d.ts +38 -38
  9. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +154 -154
  10. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +57 -57
  11. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +94 -94
  12. package/dist/bubbles/service-bubble/eleven-labs.d.ts +48 -48
  13. package/dist/bubbles/service-bubble/firecrawl.d.ts +248 -248
  14. package/dist/bubbles/service-bubble/followupboss.d.ts +306 -306
  15. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +64 -64
  16. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts.map +1 -1
  17. package/dist/bubbles/service-bubble/fullenrich/fullenrich.js +8 -4
  18. package/dist/bubbles/service-bubble/fullenrich/fullenrich.js.map +1 -1
  19. package/dist/bubbles/service-bubble/github.d.ts +180 -180
  20. package/dist/bubbles/service-bubble/gmail.d.ts +372 -372
  21. package/dist/bubbles/service-bubble/google-calendar.d.ts +56 -56
  22. package/dist/bubbles/service-bubble/google-drive.d.ts +128 -128
  23. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +54 -54
  24. package/dist/bubbles/service-bubble/hello-world.d.ts +6 -6
  25. package/dist/bubbles/service-bubble/http.d.ts +12 -12
  26. package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
  27. package/dist/bubbles/service-bubble/jira/jira.d.ts +67 -67
  28. package/dist/bubbles/service-bubble/notion/notion.d.ts +829 -829
  29. package/dist/bubbles/service-bubble/postgresql.d.ts +16 -16
  30. package/dist/bubbles/service-bubble/resend.d.ts +24 -24
  31. package/dist/bubbles/service-bubble/slack/slack.d.ts +360 -360
  32. package/dist/bubbles/service-bubble/storage.d.ts +40 -40
  33. package/dist/bubbles/service-bubble/stripe/index.d.ts +4 -0
  34. package/dist/bubbles/service-bubble/stripe/index.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/stripe/index.js +4 -0
  36. package/dist/bubbles/service-bubble/stripe/index.js.map +1 -0
  37. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +1347 -0
  38. package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/stripe/stripe.js +669 -0
  40. package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -0
  41. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +1496 -0
  42. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts.map +1 -0
  43. package/dist/bubbles/service-bubble/stripe/stripe.schema.js +671 -0
  44. package/dist/bubbles/service-bubble/stripe/stripe.schema.js.map +1 -0
  45. package/dist/bubbles/service-bubble/stripe/stripe.utils.d.ts +40 -0
  46. package/dist/bubbles/service-bubble/stripe/stripe.utils.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/stripe/stripe.utils.js +111 -0
  48. package/dist/bubbles/service-bubble/stripe/stripe.utils.js.map +1 -0
  49. package/dist/bubbles/service-bubble/telegram.d.ts +254 -254
  50. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +40 -40
  51. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +6 -6
  52. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
  53. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +8 -8
  54. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +8 -8
  55. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +22 -22
  56. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  57. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  58. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
  59. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +8 -8
  60. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +4 -4
  61. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +324 -324
  62. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +12 -12
  63. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +14 -14
  64. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +12 -12
  65. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  66. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  67. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
  68. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  69. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +150 -150
  70. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +16 -16
  71. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +12 -12
  72. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
  73. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +14 -14
  74. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +28 -28
  75. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  76. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +28 -28
  77. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
  78. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +88 -88
  79. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
  80. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +4 -4
  81. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +8 -8
  82. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  83. package/dist/bubbles.json +2056 -2
  84. package/dist/index.d.ts +1 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +1 -0
  87. package/dist/index.js.map +1 -1
  88. package/dist/types/base-bubble-class.d.ts.map +1 -1
  89. package/dist/types/base-bubble-class.js +12 -0
  90. package/dist/types/base-bubble-class.js.map +1 -1
  91. package/dist/utils/schema-comparison.d.ts +10 -0
  92. package/dist/utils/schema-comparison.d.ts.map +1 -1
  93. package/dist/utils/schema-comparison.js +215 -0
  94. package/dist/utils/schema-comparison.js.map +1 -1
  95. package/package.json +2 -2
@@ -0,0 +1,1347 @@
1
+ import { ServiceBubble } from '../../../types/service-bubble-class.js';
2
+ import type { BubbleContext } from '../../../types/bubble.js';
3
+ import { CredentialType } from '@bubblelab/shared-schemas';
4
+ import { type StripeParamsInput, type StripeResult } from './stripe.schema.js';
5
+ /**
6
+ * Stripe Service Bubble
7
+ *
8
+ * Comprehensive Stripe integration for payment and billing management.
9
+ * Based on the Stripe MCP (Model Context Protocol) implementation.
10
+ *
11
+ * Features:
12
+ * - Customer management (create, list)
13
+ * - Product and price management
14
+ * - Payment links creation
15
+ * - Invoice management
16
+ * - Subscription management
17
+ * - Payment intents listing
18
+ * - Refund creation
19
+ * - Balance retrieval
20
+ *
21
+ * Use cases:
22
+ * - Accept payments through payment links
23
+ * - Manage customer billing and subscriptions
24
+ * - Create and manage products and pricing
25
+ * - Process refunds
26
+ * - Monitor account balance
27
+ *
28
+ * Security Features:
29
+ * - OAuth 2.0 authentication with Stripe
30
+ * - Secure API key handling
31
+ * - Input validation with Zod schemas
32
+ */
33
+ export declare class StripeBubble<T extends StripeParamsInput = StripeParamsInput> extends ServiceBubble<T, Extract<StripeResult, {
34
+ operation: T['operation'];
35
+ }>> {
36
+ static readonly type: "service";
37
+ static readonly service = "stripe";
38
+ static readonly authType: "apikey";
39
+ static readonly bubbleName = "stripe";
40
+ static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
41
+ operation: import("zod").ZodLiteral<"create_customer">;
42
+ name: import("zod").ZodString;
43
+ email: import("zod").ZodOptional<import("zod").ZodString>;
44
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
45
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ name: string;
48
+ operation: "create_customer";
49
+ email?: string | undefined;
50
+ metadata?: Record<string, string> | undefined;
51
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
52
+ }, {
53
+ name: string;
54
+ operation: "create_customer";
55
+ email?: string | undefined;
56
+ metadata?: Record<string, string> | undefined;
57
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
58
+ }>, import("zod").ZodObject<{
59
+ operation: import("zod").ZodLiteral<"list_customers">;
60
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
61
+ email: import("zod").ZodOptional<import("zod").ZodString>;
62
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
63
+ }, "strip", import("zod").ZodTypeAny, {
64
+ operation: "list_customers";
65
+ limit: number;
66
+ email?: string | undefined;
67
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
68
+ }, {
69
+ operation: "list_customers";
70
+ email?: string | undefined;
71
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
72
+ limit?: number | undefined;
73
+ }>, import("zod").ZodObject<{
74
+ operation: import("zod").ZodLiteral<"create_product">;
75
+ name: import("zod").ZodString;
76
+ description: import("zod").ZodOptional<import("zod").ZodString>;
77
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
78
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
79
+ }, "strip", import("zod").ZodTypeAny, {
80
+ name: string;
81
+ operation: "create_product";
82
+ description?: string | undefined;
83
+ metadata?: Record<string, string> | undefined;
84
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
85
+ }, {
86
+ name: string;
87
+ operation: "create_product";
88
+ description?: string | undefined;
89
+ metadata?: Record<string, string> | undefined;
90
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
91
+ }>, import("zod").ZodObject<{
92
+ operation: import("zod").ZodLiteral<"list_products">;
93
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
94
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
96
+ }, "strip", import("zod").ZodTypeAny, {
97
+ operation: "list_products";
98
+ limit: number;
99
+ active?: boolean | undefined;
100
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
101
+ }, {
102
+ operation: "list_products";
103
+ active?: boolean | undefined;
104
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
105
+ limit?: number | undefined;
106
+ }>, import("zod").ZodObject<{
107
+ operation: import("zod").ZodLiteral<"create_price">;
108
+ product: import("zod").ZodString;
109
+ unit_amount: import("zod").ZodNumber;
110
+ currency: import("zod").ZodDefault<import("zod").ZodString>;
111
+ recurring: import("zod").ZodOptional<import("zod").ZodObject<{
112
+ interval: import("zod").ZodEnum<["day", "week", "month", "year"]>;
113
+ interval_count: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
114
+ }, "strip", import("zod").ZodTypeAny, {
115
+ interval: "day" | "week" | "month" | "year";
116
+ interval_count: number;
117
+ }, {
118
+ interval: "day" | "week" | "month" | "year";
119
+ interval_count?: number | undefined;
120
+ }>>;
121
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
122
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
123
+ }, "strip", import("zod").ZodTypeAny, {
124
+ product: string;
125
+ unit_amount: number;
126
+ currency: string;
127
+ operation: "create_price";
128
+ metadata?: Record<string, string> | undefined;
129
+ recurring?: {
130
+ interval: "day" | "week" | "month" | "year";
131
+ interval_count: number;
132
+ } | undefined;
133
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
134
+ }, {
135
+ product: string;
136
+ unit_amount: number;
137
+ operation: "create_price";
138
+ metadata?: Record<string, string> | undefined;
139
+ currency?: string | undefined;
140
+ recurring?: {
141
+ interval: "day" | "week" | "month" | "year";
142
+ interval_count?: number | undefined;
143
+ } | undefined;
144
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
145
+ }>, import("zod").ZodObject<{
146
+ operation: import("zod").ZodLiteral<"list_prices">;
147
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
148
+ product: import("zod").ZodOptional<import("zod").ZodString>;
149
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
150
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
151
+ }, "strip", import("zod").ZodTypeAny, {
152
+ operation: "list_prices";
153
+ limit: number;
154
+ active?: boolean | undefined;
155
+ product?: string | undefined;
156
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
157
+ }, {
158
+ operation: "list_prices";
159
+ active?: boolean | undefined;
160
+ product?: string | undefined;
161
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
162
+ limit?: number | undefined;
163
+ }>, import("zod").ZodObject<{
164
+ operation: import("zod").ZodLiteral<"create_payment_link">;
165
+ price: import("zod").ZodString;
166
+ quantity: import("zod").ZodDefault<import("zod").ZodNumber>;
167
+ redirect_url: import("zod").ZodOptional<import("zod").ZodString>;
168
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
169
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
170
+ }, "strip", import("zod").ZodTypeAny, {
171
+ operation: "create_payment_link";
172
+ price: string;
173
+ quantity: number;
174
+ metadata?: Record<string, string> | undefined;
175
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
176
+ redirect_url?: string | undefined;
177
+ }, {
178
+ operation: "create_payment_link";
179
+ price: string;
180
+ metadata?: Record<string, string> | undefined;
181
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
182
+ quantity?: number | undefined;
183
+ redirect_url?: string | undefined;
184
+ }>, import("zod").ZodObject<{
185
+ operation: import("zod").ZodLiteral<"create_invoice">;
186
+ customer: import("zod").ZodString;
187
+ auto_advance: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
188
+ collection_method: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["charge_automatically", "send_invoice"]>>>;
189
+ days_until_due: import("zod").ZodOptional<import("zod").ZodNumber>;
190
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
191
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
192
+ }, "strip", import("zod").ZodTypeAny, {
193
+ customer: string;
194
+ operation: "create_invoice";
195
+ auto_advance: boolean;
196
+ collection_method: "charge_automatically" | "send_invoice";
197
+ metadata?: Record<string, string> | undefined;
198
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
199
+ days_until_due?: number | undefined;
200
+ }, {
201
+ customer: string;
202
+ operation: "create_invoice";
203
+ metadata?: Record<string, string> | undefined;
204
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
205
+ auto_advance?: boolean | undefined;
206
+ collection_method?: "charge_automatically" | "send_invoice" | undefined;
207
+ days_until_due?: number | undefined;
208
+ }>, import("zod").ZodObject<{
209
+ operation: import("zod").ZodLiteral<"list_invoices">;
210
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
211
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
212
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
213
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
214
+ }, "strip", import("zod").ZodTypeAny, {
215
+ operation: "list_invoices";
216
+ limit: number;
217
+ status?: "draft" | "open" | "paid" | "uncollectible" | "void" | undefined;
218
+ customer?: string | undefined;
219
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
220
+ }, {
221
+ operation: "list_invoices";
222
+ status?: "draft" | "open" | "paid" | "uncollectible" | "void" | undefined;
223
+ customer?: string | undefined;
224
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
225
+ limit?: number | undefined;
226
+ }>, import("zod").ZodObject<{
227
+ operation: import("zod").ZodLiteral<"retrieve_invoice">;
228
+ invoice_id: import("zod").ZodString;
229
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
230
+ }, "strip", import("zod").ZodTypeAny, {
231
+ operation: "retrieve_invoice";
232
+ invoice_id: string;
233
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
234
+ }, {
235
+ operation: "retrieve_invoice";
236
+ invoice_id: string;
237
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
238
+ }>, import("zod").ZodObject<{
239
+ operation: import("zod").ZodLiteral<"finalize_invoice">;
240
+ invoice_id: import("zod").ZodString;
241
+ auto_advance: import("zod").ZodOptional<import("zod").ZodBoolean>;
242
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
243
+ }, "strip", import("zod").ZodTypeAny, {
244
+ operation: "finalize_invoice";
245
+ invoice_id: string;
246
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
247
+ auto_advance?: boolean | undefined;
248
+ }, {
249
+ operation: "finalize_invoice";
250
+ invoice_id: string;
251
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
252
+ auto_advance?: boolean | undefined;
253
+ }>, import("zod").ZodObject<{
254
+ operation: import("zod").ZodLiteral<"get_balance">;
255
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
256
+ }, "strip", import("zod").ZodTypeAny, {
257
+ operation: "get_balance";
258
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
259
+ }, {
260
+ operation: "get_balance";
261
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
262
+ }>, import("zod").ZodObject<{
263
+ operation: import("zod").ZodLiteral<"list_payment_intents">;
264
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
265
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
266
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
267
+ }, "strip", import("zod").ZodTypeAny, {
268
+ operation: "list_payment_intents";
269
+ limit: number;
270
+ customer?: string | undefined;
271
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
272
+ }, {
273
+ operation: "list_payment_intents";
274
+ customer?: string | undefined;
275
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
276
+ limit?: number | undefined;
277
+ }>, import("zod").ZodObject<{
278
+ operation: import("zod").ZodLiteral<"list_subscriptions">;
279
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
280
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
281
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused", "all"]>>;
282
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
283
+ }, "strip", import("zod").ZodTypeAny, {
284
+ operation: "list_subscriptions";
285
+ limit: number;
286
+ status?: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused" | "all" | undefined;
287
+ customer?: string | undefined;
288
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
289
+ }, {
290
+ operation: "list_subscriptions";
291
+ status?: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused" | "all" | undefined;
292
+ customer?: string | undefined;
293
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
294
+ limit?: number | undefined;
295
+ }>, import("zod").ZodObject<{
296
+ operation: import("zod").ZodLiteral<"cancel_subscription">;
297
+ subscription_id: import("zod").ZodString;
298
+ cancel_at_period_end: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
299
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
300
+ }, "strip", import("zod").ZodTypeAny, {
301
+ cancel_at_period_end: boolean;
302
+ operation: "cancel_subscription";
303
+ subscription_id: string;
304
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
305
+ }, {
306
+ operation: "cancel_subscription";
307
+ subscription_id: string;
308
+ cancel_at_period_end?: boolean | undefined;
309
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
310
+ }>, import("zod").ZodObject<{
311
+ operation: import("zod").ZodLiteral<"list_payment_links">;
312
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
313
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
314
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
315
+ }, "strip", import("zod").ZodTypeAny, {
316
+ operation: "list_payment_links";
317
+ limit: number;
318
+ active?: boolean | undefined;
319
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
320
+ }, {
321
+ operation: "list_payment_links";
322
+ active?: boolean | undefined;
323
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
324
+ limit?: number | undefined;
325
+ }>, import("zod").ZodObject<{
326
+ operation: import("zod").ZodLiteral<"create_subscription">;
327
+ customer: import("zod").ZodString;
328
+ price: import("zod").ZodString;
329
+ trial_period_days: import("zod").ZodOptional<import("zod").ZodNumber>;
330
+ payment_behavior: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["default_incomplete", "error_if_incomplete", "allow_incomplete"]>>>;
331
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
332
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
333
+ }, "strip", import("zod").ZodTypeAny, {
334
+ customer: string;
335
+ operation: "create_subscription";
336
+ price: string;
337
+ payment_behavior: "default_incomplete" | "error_if_incomplete" | "allow_incomplete";
338
+ metadata?: Record<string, string> | undefined;
339
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
340
+ trial_period_days?: number | undefined;
341
+ }, {
342
+ customer: string;
343
+ operation: "create_subscription";
344
+ price: string;
345
+ metadata?: Record<string, string> | undefined;
346
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
347
+ trial_period_days?: number | undefined;
348
+ payment_behavior?: "default_incomplete" | "error_if_incomplete" | "allow_incomplete" | undefined;
349
+ }>]>;
350
+ static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
351
+ operation: import("zod").ZodLiteral<"create_customer">;
352
+ success: import("zod").ZodBoolean;
353
+ customer: import("zod").ZodOptional<import("zod").ZodObject<{
354
+ id: import("zod").ZodString;
355
+ name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
356
+ email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
357
+ created: import("zod").ZodNumber;
358
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
359
+ }, "strip", import("zod").ZodTypeAny, {
360
+ id: string;
361
+ created: number;
362
+ name?: string | null | undefined;
363
+ email?: string | null | undefined;
364
+ metadata?: Record<string, string> | undefined;
365
+ }, {
366
+ id: string;
367
+ created: number;
368
+ name?: string | null | undefined;
369
+ email?: string | null | undefined;
370
+ metadata?: Record<string, string> | undefined;
371
+ }>>;
372
+ error: import("zod").ZodString;
373
+ }, "strip", import("zod").ZodTypeAny, {
374
+ operation: "create_customer";
375
+ success: boolean;
376
+ error: string;
377
+ customer?: {
378
+ id: string;
379
+ created: number;
380
+ name?: string | null | undefined;
381
+ email?: string | null | undefined;
382
+ metadata?: Record<string, string> | undefined;
383
+ } | undefined;
384
+ }, {
385
+ operation: "create_customer";
386
+ success: boolean;
387
+ error: string;
388
+ customer?: {
389
+ id: string;
390
+ created: number;
391
+ name?: string | null | undefined;
392
+ email?: string | null | undefined;
393
+ metadata?: Record<string, string> | undefined;
394
+ } | undefined;
395
+ }>, import("zod").ZodObject<{
396
+ operation: import("zod").ZodLiteral<"list_customers">;
397
+ success: import("zod").ZodBoolean;
398
+ customers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
399
+ id: import("zod").ZodString;
400
+ name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
401
+ email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
402
+ created: import("zod").ZodNumber;
403
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
404
+ }, "strip", import("zod").ZodTypeAny, {
405
+ id: string;
406
+ created: number;
407
+ name?: string | null | undefined;
408
+ email?: string | null | undefined;
409
+ metadata?: Record<string, string> | undefined;
410
+ }, {
411
+ id: string;
412
+ created: number;
413
+ name?: string | null | undefined;
414
+ email?: string | null | undefined;
415
+ metadata?: Record<string, string> | undefined;
416
+ }>, "many">>;
417
+ error: import("zod").ZodString;
418
+ }, "strip", import("zod").ZodTypeAny, {
419
+ operation: "list_customers";
420
+ success: boolean;
421
+ error: string;
422
+ customers?: {
423
+ id: string;
424
+ created: number;
425
+ name?: string | null | undefined;
426
+ email?: string | null | undefined;
427
+ metadata?: Record<string, string> | undefined;
428
+ }[] | undefined;
429
+ }, {
430
+ operation: "list_customers";
431
+ success: boolean;
432
+ error: string;
433
+ customers?: {
434
+ id: string;
435
+ created: number;
436
+ name?: string | null | undefined;
437
+ email?: string | null | undefined;
438
+ metadata?: Record<string, string> | undefined;
439
+ }[] | undefined;
440
+ }>, import("zod").ZodObject<{
441
+ operation: import("zod").ZodLiteral<"create_product">;
442
+ success: import("zod").ZodBoolean;
443
+ product: import("zod").ZodOptional<import("zod").ZodObject<{
444
+ id: import("zod").ZodString;
445
+ name: import("zod").ZodString;
446
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
447
+ active: import("zod").ZodBoolean;
448
+ created: import("zod").ZodNumber;
449
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
450
+ }, "strip", import("zod").ZodTypeAny, {
451
+ id: string;
452
+ name: string;
453
+ created: number;
454
+ active: boolean;
455
+ description?: string | null | undefined;
456
+ metadata?: Record<string, string> | undefined;
457
+ }, {
458
+ id: string;
459
+ name: string;
460
+ created: number;
461
+ active: boolean;
462
+ description?: string | null | undefined;
463
+ metadata?: Record<string, string> | undefined;
464
+ }>>;
465
+ error: import("zod").ZodString;
466
+ }, "strip", import("zod").ZodTypeAny, {
467
+ operation: "create_product";
468
+ success: boolean;
469
+ error: string;
470
+ product?: {
471
+ id: string;
472
+ name: string;
473
+ created: number;
474
+ active: boolean;
475
+ description?: string | null | undefined;
476
+ metadata?: Record<string, string> | undefined;
477
+ } | undefined;
478
+ }, {
479
+ operation: "create_product";
480
+ success: boolean;
481
+ error: string;
482
+ product?: {
483
+ id: string;
484
+ name: string;
485
+ created: number;
486
+ active: boolean;
487
+ description?: string | null | undefined;
488
+ metadata?: Record<string, string> | undefined;
489
+ } | undefined;
490
+ }>, import("zod").ZodObject<{
491
+ operation: import("zod").ZodLiteral<"list_products">;
492
+ success: import("zod").ZodBoolean;
493
+ products: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
494
+ id: import("zod").ZodString;
495
+ name: import("zod").ZodString;
496
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
497
+ active: import("zod").ZodBoolean;
498
+ created: import("zod").ZodNumber;
499
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
500
+ }, "strip", import("zod").ZodTypeAny, {
501
+ id: string;
502
+ name: string;
503
+ created: number;
504
+ active: boolean;
505
+ description?: string | null | undefined;
506
+ metadata?: Record<string, string> | undefined;
507
+ }, {
508
+ id: string;
509
+ name: string;
510
+ created: number;
511
+ active: boolean;
512
+ description?: string | null | undefined;
513
+ metadata?: Record<string, string> | undefined;
514
+ }>, "many">>;
515
+ error: import("zod").ZodString;
516
+ }, "strip", import("zod").ZodTypeAny, {
517
+ operation: "list_products";
518
+ success: boolean;
519
+ error: string;
520
+ products?: {
521
+ id: string;
522
+ name: string;
523
+ created: number;
524
+ active: boolean;
525
+ description?: string | null | undefined;
526
+ metadata?: Record<string, string> | undefined;
527
+ }[] | undefined;
528
+ }, {
529
+ operation: "list_products";
530
+ success: boolean;
531
+ error: string;
532
+ products?: {
533
+ id: string;
534
+ name: string;
535
+ created: number;
536
+ active: boolean;
537
+ description?: string | null | undefined;
538
+ metadata?: Record<string, string> | undefined;
539
+ }[] | undefined;
540
+ }>, import("zod").ZodObject<{
541
+ operation: import("zod").ZodLiteral<"create_price">;
542
+ success: import("zod").ZodBoolean;
543
+ price: import("zod").ZodOptional<import("zod").ZodObject<{
544
+ id: import("zod").ZodString;
545
+ product: import("zod").ZodString;
546
+ unit_amount: import("zod").ZodNullable<import("zod").ZodNumber>;
547
+ currency: import("zod").ZodString;
548
+ type: import("zod").ZodEnum<["one_time", "recurring"]>;
549
+ active: import("zod").ZodBoolean;
550
+ created: import("zod").ZodNumber;
551
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
552
+ }, "strip", import("zod").ZodTypeAny, {
553
+ id: string;
554
+ created: number;
555
+ type: "one_time" | "recurring";
556
+ active: boolean;
557
+ product: string;
558
+ unit_amount: number | null;
559
+ currency: string;
560
+ metadata?: Record<string, string> | undefined;
561
+ }, {
562
+ id: string;
563
+ created: number;
564
+ type: "one_time" | "recurring";
565
+ active: boolean;
566
+ product: string;
567
+ unit_amount: number | null;
568
+ currency: string;
569
+ metadata?: Record<string, string> | undefined;
570
+ }>>;
571
+ error: import("zod").ZodString;
572
+ }, "strip", import("zod").ZodTypeAny, {
573
+ operation: "create_price";
574
+ success: boolean;
575
+ error: string;
576
+ price?: {
577
+ id: string;
578
+ created: number;
579
+ type: "one_time" | "recurring";
580
+ active: boolean;
581
+ product: string;
582
+ unit_amount: number | null;
583
+ currency: string;
584
+ metadata?: Record<string, string> | undefined;
585
+ } | undefined;
586
+ }, {
587
+ operation: "create_price";
588
+ success: boolean;
589
+ error: string;
590
+ price?: {
591
+ id: string;
592
+ created: number;
593
+ type: "one_time" | "recurring";
594
+ active: boolean;
595
+ product: string;
596
+ unit_amount: number | null;
597
+ currency: string;
598
+ metadata?: Record<string, string> | undefined;
599
+ } | undefined;
600
+ }>, import("zod").ZodObject<{
601
+ operation: import("zod").ZodLiteral<"list_prices">;
602
+ success: import("zod").ZodBoolean;
603
+ prices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
604
+ id: import("zod").ZodString;
605
+ product: import("zod").ZodString;
606
+ unit_amount: import("zod").ZodNullable<import("zod").ZodNumber>;
607
+ currency: import("zod").ZodString;
608
+ type: import("zod").ZodEnum<["one_time", "recurring"]>;
609
+ active: import("zod").ZodBoolean;
610
+ created: import("zod").ZodNumber;
611
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
612
+ }, "strip", import("zod").ZodTypeAny, {
613
+ id: string;
614
+ created: number;
615
+ type: "one_time" | "recurring";
616
+ active: boolean;
617
+ product: string;
618
+ unit_amount: number | null;
619
+ currency: string;
620
+ metadata?: Record<string, string> | undefined;
621
+ }, {
622
+ id: string;
623
+ created: number;
624
+ type: "one_time" | "recurring";
625
+ active: boolean;
626
+ product: string;
627
+ unit_amount: number | null;
628
+ currency: string;
629
+ metadata?: Record<string, string> | undefined;
630
+ }>, "many">>;
631
+ error: import("zod").ZodString;
632
+ }, "strip", import("zod").ZodTypeAny, {
633
+ operation: "list_prices";
634
+ success: boolean;
635
+ error: string;
636
+ prices?: {
637
+ id: string;
638
+ created: number;
639
+ type: "one_time" | "recurring";
640
+ active: boolean;
641
+ product: string;
642
+ unit_amount: number | null;
643
+ currency: string;
644
+ metadata?: Record<string, string> | undefined;
645
+ }[] | undefined;
646
+ }, {
647
+ operation: "list_prices";
648
+ success: boolean;
649
+ error: string;
650
+ prices?: {
651
+ id: string;
652
+ created: number;
653
+ type: "one_time" | "recurring";
654
+ active: boolean;
655
+ product: string;
656
+ unit_amount: number | null;
657
+ currency: string;
658
+ metadata?: Record<string, string> | undefined;
659
+ }[] | undefined;
660
+ }>, import("zod").ZodObject<{
661
+ operation: import("zod").ZodLiteral<"create_payment_link">;
662
+ success: import("zod").ZodBoolean;
663
+ payment_link: import("zod").ZodOptional<import("zod").ZodObject<{
664
+ id: import("zod").ZodString;
665
+ url: import("zod").ZodString;
666
+ active: import("zod").ZodBoolean;
667
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
668
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
669
+ }, "strip", import("zod").ZodTypeAny, {
670
+ id: string;
671
+ active: boolean;
672
+ url: string;
673
+ created?: number | undefined;
674
+ metadata?: Record<string, string> | undefined;
675
+ }, {
676
+ id: string;
677
+ active: boolean;
678
+ url: string;
679
+ created?: number | undefined;
680
+ metadata?: Record<string, string> | undefined;
681
+ }>>;
682
+ error: import("zod").ZodString;
683
+ }, "strip", import("zod").ZodTypeAny, {
684
+ operation: "create_payment_link";
685
+ success: boolean;
686
+ error: string;
687
+ payment_link?: {
688
+ id: string;
689
+ active: boolean;
690
+ url: string;
691
+ created?: number | undefined;
692
+ metadata?: Record<string, string> | undefined;
693
+ } | undefined;
694
+ }, {
695
+ operation: "create_payment_link";
696
+ success: boolean;
697
+ error: string;
698
+ payment_link?: {
699
+ id: string;
700
+ active: boolean;
701
+ url: string;
702
+ created?: number | undefined;
703
+ metadata?: Record<string, string> | undefined;
704
+ } | undefined;
705
+ }>, import("zod").ZodObject<{
706
+ operation: import("zod").ZodLiteral<"create_invoice">;
707
+ success: import("zod").ZodBoolean;
708
+ invoice: import("zod").ZodOptional<import("zod").ZodObject<{
709
+ id: import("zod").ZodString;
710
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
711
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
712
+ total: import("zod").ZodNumber;
713
+ currency: import("zod").ZodString;
714
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
715
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
716
+ invoice_pdf: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
717
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
718
+ }, "strip", import("zod").ZodTypeAny, {
719
+ id: string;
720
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
721
+ currency: string;
722
+ customer: string | null;
723
+ total: number;
724
+ created?: number | undefined;
725
+ metadata?: Record<string, string> | undefined;
726
+ hosted_invoice_url?: string | null | undefined;
727
+ invoice_pdf?: string | null | undefined;
728
+ }, {
729
+ id: string;
730
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
731
+ currency: string;
732
+ customer: string | null;
733
+ total: number;
734
+ created?: number | undefined;
735
+ metadata?: Record<string, string> | undefined;
736
+ hosted_invoice_url?: string | null | undefined;
737
+ invoice_pdf?: string | null | undefined;
738
+ }>>;
739
+ error: import("zod").ZodString;
740
+ }, "strip", import("zod").ZodTypeAny, {
741
+ operation: "create_invoice";
742
+ success: boolean;
743
+ error: string;
744
+ invoice?: {
745
+ id: string;
746
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
747
+ currency: string;
748
+ customer: string | null;
749
+ total: number;
750
+ created?: number | undefined;
751
+ metadata?: Record<string, string> | undefined;
752
+ hosted_invoice_url?: string | null | undefined;
753
+ invoice_pdf?: string | null | undefined;
754
+ } | undefined;
755
+ }, {
756
+ operation: "create_invoice";
757
+ success: boolean;
758
+ error: string;
759
+ invoice?: {
760
+ id: string;
761
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
762
+ currency: string;
763
+ customer: string | null;
764
+ total: number;
765
+ created?: number | undefined;
766
+ metadata?: Record<string, string> | undefined;
767
+ hosted_invoice_url?: string | null | undefined;
768
+ invoice_pdf?: string | null | undefined;
769
+ } | undefined;
770
+ }>, import("zod").ZodObject<{
771
+ operation: import("zod").ZodLiteral<"list_invoices">;
772
+ success: import("zod").ZodBoolean;
773
+ invoices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
774
+ id: import("zod").ZodString;
775
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
776
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
777
+ total: import("zod").ZodNumber;
778
+ currency: import("zod").ZodString;
779
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
780
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
781
+ invoice_pdf: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
782
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
783
+ }, "strip", import("zod").ZodTypeAny, {
784
+ id: string;
785
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
786
+ currency: string;
787
+ customer: string | null;
788
+ total: number;
789
+ created?: number | undefined;
790
+ metadata?: Record<string, string> | undefined;
791
+ hosted_invoice_url?: string | null | undefined;
792
+ invoice_pdf?: string | null | undefined;
793
+ }, {
794
+ id: string;
795
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
796
+ currency: string;
797
+ customer: string | null;
798
+ total: number;
799
+ created?: number | undefined;
800
+ metadata?: Record<string, string> | undefined;
801
+ hosted_invoice_url?: string | null | undefined;
802
+ invoice_pdf?: string | null | undefined;
803
+ }>, "many">>;
804
+ error: import("zod").ZodString;
805
+ }, "strip", import("zod").ZodTypeAny, {
806
+ operation: "list_invoices";
807
+ success: boolean;
808
+ error: string;
809
+ invoices?: {
810
+ id: string;
811
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
812
+ currency: string;
813
+ customer: string | null;
814
+ total: number;
815
+ created?: number | undefined;
816
+ metadata?: Record<string, string> | undefined;
817
+ hosted_invoice_url?: string | null | undefined;
818
+ invoice_pdf?: string | null | undefined;
819
+ }[] | undefined;
820
+ }, {
821
+ operation: "list_invoices";
822
+ success: boolean;
823
+ error: string;
824
+ invoices?: {
825
+ id: string;
826
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
827
+ currency: string;
828
+ customer: string | null;
829
+ total: number;
830
+ created?: number | undefined;
831
+ metadata?: Record<string, string> | undefined;
832
+ hosted_invoice_url?: string | null | undefined;
833
+ invoice_pdf?: string | null | undefined;
834
+ }[] | undefined;
835
+ }>, import("zod").ZodObject<{
836
+ operation: import("zod").ZodLiteral<"retrieve_invoice">;
837
+ success: import("zod").ZodBoolean;
838
+ invoice: import("zod").ZodOptional<import("zod").ZodObject<{
839
+ id: import("zod").ZodString;
840
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
841
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
842
+ total: import("zod").ZodNumber;
843
+ currency: import("zod").ZodString;
844
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
845
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
846
+ invoice_pdf: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
847
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
848
+ }, "strip", import("zod").ZodTypeAny, {
849
+ id: string;
850
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
851
+ currency: string;
852
+ customer: string | null;
853
+ total: number;
854
+ created?: number | undefined;
855
+ metadata?: Record<string, string> | undefined;
856
+ hosted_invoice_url?: string | null | undefined;
857
+ invoice_pdf?: string | null | undefined;
858
+ }, {
859
+ id: string;
860
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
861
+ currency: string;
862
+ customer: string | null;
863
+ total: number;
864
+ created?: number | undefined;
865
+ metadata?: Record<string, string> | undefined;
866
+ hosted_invoice_url?: string | null | undefined;
867
+ invoice_pdf?: string | null | undefined;
868
+ }>>;
869
+ error: import("zod").ZodString;
870
+ }, "strip", import("zod").ZodTypeAny, {
871
+ operation: "retrieve_invoice";
872
+ success: boolean;
873
+ error: string;
874
+ invoice?: {
875
+ id: string;
876
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
877
+ currency: string;
878
+ customer: string | null;
879
+ total: number;
880
+ created?: number | undefined;
881
+ metadata?: Record<string, string> | undefined;
882
+ hosted_invoice_url?: string | null | undefined;
883
+ invoice_pdf?: string | null | undefined;
884
+ } | undefined;
885
+ }, {
886
+ operation: "retrieve_invoice";
887
+ success: boolean;
888
+ error: string;
889
+ invoice?: {
890
+ id: string;
891
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
892
+ currency: string;
893
+ customer: string | null;
894
+ total: number;
895
+ created?: number | undefined;
896
+ metadata?: Record<string, string> | undefined;
897
+ hosted_invoice_url?: string | null | undefined;
898
+ invoice_pdf?: string | null | undefined;
899
+ } | undefined;
900
+ }>, import("zod").ZodObject<{
901
+ operation: import("zod").ZodLiteral<"finalize_invoice">;
902
+ success: import("zod").ZodBoolean;
903
+ invoice: import("zod").ZodOptional<import("zod").ZodObject<{
904
+ id: import("zod").ZodString;
905
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
906
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
907
+ total: import("zod").ZodNumber;
908
+ currency: import("zod").ZodString;
909
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
910
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
911
+ invoice_pdf: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
912
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
913
+ }, "strip", import("zod").ZodTypeAny, {
914
+ id: string;
915
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
916
+ currency: string;
917
+ customer: string | null;
918
+ total: number;
919
+ created?: number | undefined;
920
+ metadata?: Record<string, string> | undefined;
921
+ hosted_invoice_url?: string | null | undefined;
922
+ invoice_pdf?: string | null | undefined;
923
+ }, {
924
+ id: string;
925
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
926
+ currency: string;
927
+ customer: string | null;
928
+ total: number;
929
+ created?: number | undefined;
930
+ metadata?: Record<string, string> | undefined;
931
+ hosted_invoice_url?: string | null | undefined;
932
+ invoice_pdf?: string | null | undefined;
933
+ }>>;
934
+ error: import("zod").ZodString;
935
+ }, "strip", import("zod").ZodTypeAny, {
936
+ operation: "finalize_invoice";
937
+ success: boolean;
938
+ error: string;
939
+ invoice?: {
940
+ id: string;
941
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
942
+ currency: string;
943
+ customer: string | null;
944
+ total: number;
945
+ created?: number | undefined;
946
+ metadata?: Record<string, string> | undefined;
947
+ hosted_invoice_url?: string | null | undefined;
948
+ invoice_pdf?: string | null | undefined;
949
+ } | undefined;
950
+ }, {
951
+ operation: "finalize_invoice";
952
+ success: boolean;
953
+ error: string;
954
+ invoice?: {
955
+ id: string;
956
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
957
+ currency: string;
958
+ customer: string | null;
959
+ total: number;
960
+ created?: number | undefined;
961
+ metadata?: Record<string, string> | undefined;
962
+ hosted_invoice_url?: string | null | undefined;
963
+ invoice_pdf?: string | null | undefined;
964
+ } | undefined;
965
+ }>, import("zod").ZodObject<{
966
+ operation: import("zod").ZodLiteral<"get_balance">;
967
+ success: import("zod").ZodBoolean;
968
+ balance: import("zod").ZodOptional<import("zod").ZodObject<{
969
+ available: import("zod").ZodArray<import("zod").ZodObject<{
970
+ amount: import("zod").ZodNumber;
971
+ currency: import("zod").ZodString;
972
+ }, "strip", import("zod").ZodTypeAny, {
973
+ currency: string;
974
+ amount: number;
975
+ }, {
976
+ currency: string;
977
+ amount: number;
978
+ }>, "many">;
979
+ pending: import("zod").ZodArray<import("zod").ZodObject<{
980
+ amount: import("zod").ZodNumber;
981
+ currency: import("zod").ZodString;
982
+ }, "strip", import("zod").ZodTypeAny, {
983
+ currency: string;
984
+ amount: number;
985
+ }, {
986
+ currency: string;
987
+ amount: number;
988
+ }>, "many">;
989
+ }, "strip", import("zod").ZodTypeAny, {
990
+ available: {
991
+ currency: string;
992
+ amount: number;
993
+ }[];
994
+ pending: {
995
+ currency: string;
996
+ amount: number;
997
+ }[];
998
+ }, {
999
+ available: {
1000
+ currency: string;
1001
+ amount: number;
1002
+ }[];
1003
+ pending: {
1004
+ currency: string;
1005
+ amount: number;
1006
+ }[];
1007
+ }>>;
1008
+ error: import("zod").ZodString;
1009
+ }, "strip", import("zod").ZodTypeAny, {
1010
+ operation: "get_balance";
1011
+ success: boolean;
1012
+ error: string;
1013
+ balance?: {
1014
+ available: {
1015
+ currency: string;
1016
+ amount: number;
1017
+ }[];
1018
+ pending: {
1019
+ currency: string;
1020
+ amount: number;
1021
+ }[];
1022
+ } | undefined;
1023
+ }, {
1024
+ operation: "get_balance";
1025
+ success: boolean;
1026
+ error: string;
1027
+ balance?: {
1028
+ available: {
1029
+ currency: string;
1030
+ amount: number;
1031
+ }[];
1032
+ pending: {
1033
+ currency: string;
1034
+ amount: number;
1035
+ }[];
1036
+ } | undefined;
1037
+ }>, import("zod").ZodObject<{
1038
+ operation: import("zod").ZodLiteral<"list_payment_intents">;
1039
+ success: import("zod").ZodBoolean;
1040
+ payment_intents: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1041
+ id: import("zod").ZodString;
1042
+ amount: import("zod").ZodNumber;
1043
+ currency: import("zod").ZodString;
1044
+ status: import("zod").ZodEnum<["requires_payment_method", "requires_confirmation", "requires_action", "processing", "requires_capture", "canceled", "succeeded"]>;
1045
+ customer: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1046
+ created: import("zod").ZodNumber;
1047
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1048
+ }, "strip", import("zod").ZodTypeAny, {
1049
+ id: string;
1050
+ created: number;
1051
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
1052
+ currency: string;
1053
+ amount: number;
1054
+ metadata?: Record<string, string> | undefined;
1055
+ customer?: string | null | undefined;
1056
+ }, {
1057
+ id: string;
1058
+ created: number;
1059
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
1060
+ currency: string;
1061
+ amount: number;
1062
+ metadata?: Record<string, string> | undefined;
1063
+ customer?: string | null | undefined;
1064
+ }>, "many">>;
1065
+ error: import("zod").ZodString;
1066
+ }, "strip", import("zod").ZodTypeAny, {
1067
+ operation: "list_payment_intents";
1068
+ success: boolean;
1069
+ error: string;
1070
+ payment_intents?: {
1071
+ id: string;
1072
+ created: number;
1073
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
1074
+ currency: string;
1075
+ amount: number;
1076
+ metadata?: Record<string, string> | undefined;
1077
+ customer?: string | null | undefined;
1078
+ }[] | undefined;
1079
+ }, {
1080
+ operation: "list_payment_intents";
1081
+ success: boolean;
1082
+ error: string;
1083
+ payment_intents?: {
1084
+ id: string;
1085
+ created: number;
1086
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
1087
+ currency: string;
1088
+ amount: number;
1089
+ metadata?: Record<string, string> | undefined;
1090
+ customer?: string | null | undefined;
1091
+ }[] | undefined;
1092
+ }>, import("zod").ZodObject<{
1093
+ operation: import("zod").ZodLiteral<"list_subscriptions">;
1094
+ success: import("zod").ZodBoolean;
1095
+ subscriptions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1096
+ id: import("zod").ZodString;
1097
+ customer: import("zod").ZodString;
1098
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
1099
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
1100
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
1101
+ cancel_at_period_end: import("zod").ZodBoolean;
1102
+ created: import("zod").ZodNumber;
1103
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1104
+ }, "strip", import("zod").ZodTypeAny, {
1105
+ id: string;
1106
+ created: number;
1107
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1108
+ customer: string;
1109
+ cancel_at_period_end: boolean;
1110
+ metadata?: Record<string, string> | undefined;
1111
+ current_period_start?: number | undefined;
1112
+ current_period_end?: number | undefined;
1113
+ }, {
1114
+ id: string;
1115
+ created: number;
1116
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1117
+ customer: string;
1118
+ cancel_at_period_end: boolean;
1119
+ metadata?: Record<string, string> | undefined;
1120
+ current_period_start?: number | undefined;
1121
+ current_period_end?: number | undefined;
1122
+ }>, "many">>;
1123
+ error: import("zod").ZodString;
1124
+ }, "strip", import("zod").ZodTypeAny, {
1125
+ operation: "list_subscriptions";
1126
+ success: boolean;
1127
+ error: string;
1128
+ subscriptions?: {
1129
+ id: string;
1130
+ created: number;
1131
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1132
+ customer: string;
1133
+ cancel_at_period_end: boolean;
1134
+ metadata?: Record<string, string> | undefined;
1135
+ current_period_start?: number | undefined;
1136
+ current_period_end?: number | undefined;
1137
+ }[] | undefined;
1138
+ }, {
1139
+ operation: "list_subscriptions";
1140
+ success: boolean;
1141
+ error: string;
1142
+ subscriptions?: {
1143
+ id: string;
1144
+ created: number;
1145
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1146
+ customer: string;
1147
+ cancel_at_period_end: boolean;
1148
+ metadata?: Record<string, string> | undefined;
1149
+ current_period_start?: number | undefined;
1150
+ current_period_end?: number | undefined;
1151
+ }[] | undefined;
1152
+ }>, import("zod").ZodObject<{
1153
+ operation: import("zod").ZodLiteral<"cancel_subscription">;
1154
+ success: import("zod").ZodBoolean;
1155
+ subscription: import("zod").ZodOptional<import("zod").ZodObject<{
1156
+ id: import("zod").ZodString;
1157
+ customer: import("zod").ZodString;
1158
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
1159
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
1160
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
1161
+ cancel_at_period_end: import("zod").ZodBoolean;
1162
+ created: import("zod").ZodNumber;
1163
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1164
+ }, "strip", import("zod").ZodTypeAny, {
1165
+ id: string;
1166
+ created: number;
1167
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1168
+ customer: string;
1169
+ cancel_at_period_end: boolean;
1170
+ metadata?: Record<string, string> | undefined;
1171
+ current_period_start?: number | undefined;
1172
+ current_period_end?: number | undefined;
1173
+ }, {
1174
+ id: string;
1175
+ created: number;
1176
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1177
+ customer: string;
1178
+ cancel_at_period_end: boolean;
1179
+ metadata?: Record<string, string> | undefined;
1180
+ current_period_start?: number | undefined;
1181
+ current_period_end?: number | undefined;
1182
+ }>>;
1183
+ error: import("zod").ZodString;
1184
+ }, "strip", import("zod").ZodTypeAny, {
1185
+ operation: "cancel_subscription";
1186
+ success: boolean;
1187
+ error: string;
1188
+ subscription?: {
1189
+ id: string;
1190
+ created: number;
1191
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1192
+ customer: string;
1193
+ cancel_at_period_end: boolean;
1194
+ metadata?: Record<string, string> | undefined;
1195
+ current_period_start?: number | undefined;
1196
+ current_period_end?: number | undefined;
1197
+ } | undefined;
1198
+ }, {
1199
+ operation: "cancel_subscription";
1200
+ success: boolean;
1201
+ error: string;
1202
+ subscription?: {
1203
+ id: string;
1204
+ created: number;
1205
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1206
+ customer: string;
1207
+ cancel_at_period_end: boolean;
1208
+ metadata?: Record<string, string> | undefined;
1209
+ current_period_start?: number | undefined;
1210
+ current_period_end?: number | undefined;
1211
+ } | undefined;
1212
+ }>, import("zod").ZodObject<{
1213
+ operation: import("zod").ZodLiteral<"list_payment_links">;
1214
+ success: import("zod").ZodBoolean;
1215
+ payment_links: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1216
+ id: import("zod").ZodString;
1217
+ url: import("zod").ZodString;
1218
+ active: import("zod").ZodBoolean;
1219
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
1220
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1221
+ }, "strip", import("zod").ZodTypeAny, {
1222
+ id: string;
1223
+ active: boolean;
1224
+ url: string;
1225
+ created?: number | undefined;
1226
+ metadata?: Record<string, string> | undefined;
1227
+ }, {
1228
+ id: string;
1229
+ active: boolean;
1230
+ url: string;
1231
+ created?: number | undefined;
1232
+ metadata?: Record<string, string> | undefined;
1233
+ }>, "many">>;
1234
+ error: import("zod").ZodString;
1235
+ }, "strip", import("zod").ZodTypeAny, {
1236
+ operation: "list_payment_links";
1237
+ success: boolean;
1238
+ error: string;
1239
+ payment_links?: {
1240
+ id: string;
1241
+ active: boolean;
1242
+ url: string;
1243
+ created?: number | undefined;
1244
+ metadata?: Record<string, string> | undefined;
1245
+ }[] | undefined;
1246
+ }, {
1247
+ operation: "list_payment_links";
1248
+ success: boolean;
1249
+ error: string;
1250
+ payment_links?: {
1251
+ id: string;
1252
+ active: boolean;
1253
+ url: string;
1254
+ created?: number | undefined;
1255
+ metadata?: Record<string, string> | undefined;
1256
+ }[] | undefined;
1257
+ }>, import("zod").ZodObject<{
1258
+ operation: import("zod").ZodLiteral<"create_subscription">;
1259
+ success: import("zod").ZodBoolean;
1260
+ subscription: import("zod").ZodOptional<import("zod").ZodObject<{
1261
+ id: import("zod").ZodString;
1262
+ customer: import("zod").ZodString;
1263
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
1264
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
1265
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
1266
+ cancel_at_period_end: import("zod").ZodBoolean;
1267
+ created: import("zod").ZodNumber;
1268
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1269
+ }, "strip", import("zod").ZodTypeAny, {
1270
+ id: string;
1271
+ created: number;
1272
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1273
+ customer: string;
1274
+ cancel_at_period_end: boolean;
1275
+ metadata?: Record<string, string> | undefined;
1276
+ current_period_start?: number | undefined;
1277
+ current_period_end?: number | undefined;
1278
+ }, {
1279
+ id: string;
1280
+ created: number;
1281
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1282
+ customer: string;
1283
+ cancel_at_period_end: boolean;
1284
+ metadata?: Record<string, string> | undefined;
1285
+ current_period_start?: number | undefined;
1286
+ current_period_end?: number | undefined;
1287
+ }>>;
1288
+ error: import("zod").ZodString;
1289
+ }, "strip", import("zod").ZodTypeAny, {
1290
+ operation: "create_subscription";
1291
+ success: boolean;
1292
+ error: string;
1293
+ subscription?: {
1294
+ id: string;
1295
+ created: number;
1296
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1297
+ customer: string;
1298
+ cancel_at_period_end: boolean;
1299
+ metadata?: Record<string, string> | undefined;
1300
+ current_period_start?: number | undefined;
1301
+ current_period_end?: number | undefined;
1302
+ } | undefined;
1303
+ }, {
1304
+ operation: "create_subscription";
1305
+ success: boolean;
1306
+ error: string;
1307
+ subscription?: {
1308
+ id: string;
1309
+ created: number;
1310
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1311
+ customer: string;
1312
+ cancel_at_period_end: boolean;
1313
+ metadata?: Record<string, string> | undefined;
1314
+ current_period_start?: number | undefined;
1315
+ current_period_end?: number | undefined;
1316
+ } | undefined;
1317
+ }>]>;
1318
+ static readonly shortDescription = "Stripe integration for payments, billing, and subscriptions";
1319
+ static readonly longDescription = "\n Stripe service integration for comprehensive payment and billing management.\n Based on the official Stripe MCP implementation.\n\n Features:\n - Customer management (create, list)\n - Product and price management\n - Payment links creation\n - Invoice management\n - Subscription management\n - Payment intents listing\n - Refund creation\n - Balance retrieval\n\n Use cases:\n - Accept payments through payment links\n - Manage customer billing and subscriptions\n - Create and manage products and pricing\n - Process refunds\n - Monitor account balance\n\n Security Features:\n - OAuth 2.0 authentication with Stripe\n - Secure API key handling\n - Input validation with Zod schemas\n ";
1320
+ static readonly alias = "payments";
1321
+ constructor(params?: T, context?: BubbleContext);
1322
+ testCredential(): Promise<boolean>;
1323
+ private makeStripeRequest;
1324
+ private encodeFormData;
1325
+ protected performAction(context?: BubbleContext): Promise<Extract<StripeResult, {
1326
+ operation: T['operation'];
1327
+ }>>;
1328
+ private createCustomer;
1329
+ private listCustomers;
1330
+ private createProduct;
1331
+ private listProducts;
1332
+ private createPrice;
1333
+ private listPrices;
1334
+ private createPaymentLink;
1335
+ private createInvoice;
1336
+ private listInvoices;
1337
+ private retrieveInvoice;
1338
+ private finalizeInvoice;
1339
+ private getBalance;
1340
+ private listPaymentIntents;
1341
+ private listSubscriptions;
1342
+ private cancelSubscription;
1343
+ private listPaymentLinks;
1344
+ private createSubscription;
1345
+ protected chooseCredential(): string | undefined;
1346
+ }
1347
+ //# sourceMappingURL=stripe.d.ts.map