@bubblelab/bubble-core 0.1.49 → 0.1.51

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 +36 -36
  7. package/dist/bubbles/service-bubble/airtable.d.ts +230 -230
  8. package/dist/bubbles/service-bubble/apify/apify.d.ts +38 -38
  9. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +178 -178
  10. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +57 -57
  11. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +98 -98
  12. package/dist/bubbles/service-bubble/eleven-labs.d.ts +48 -48
  13. package/dist/bubbles/service-bubble/firecrawl.d.ts +292 -292
  14. package/dist/bubbles/service-bubble/followupboss.d.ts +302 -302
  15. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +28 -28
  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 +124 -124
  20. package/dist/bubbles/service-bubble/gmail.d.ts +248 -248
  21. package/dist/bubbles/service-bubble/google-calendar.d.ts +56 -56
  22. package/dist/bubbles/service-bubble/google-drive.d.ts +120 -120
  23. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +54 -54
  24. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  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 +59 -59
  28. package/dist/bubbles/service-bubble/notion/notion.d.ts +212 -212
  29. package/dist/bubbles/service-bubble/postgresql.d.ts +16 -16
  30. package/dist/bubbles/service-bubble/resend.d.ts +16 -16
  31. package/dist/bubbles/service-bubble/slack/slack.d.ts +340 -340
  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 +1178 -0
  38. package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/stripe/stripe.js +618 -0
  40. package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -0
  41. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +1326 -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 +626 -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 +114 -114
  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 +8 -8
  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 +4 -4
  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 +4 -4
  63. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +4 -4
  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 +132 -132
  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 +20 -20
  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 +96 -96
  79. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
  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 +16 -16
  82. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  83. package/dist/bubbles.json +1806 -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,1178 @@
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<"get_balance">;
228
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
229
+ }, "strip", import("zod").ZodTypeAny, {
230
+ operation: "get_balance";
231
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
232
+ }, {
233
+ operation: "get_balance";
234
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
235
+ }>, import("zod").ZodObject<{
236
+ operation: import("zod").ZodLiteral<"list_payment_intents">;
237
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
238
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
239
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
240
+ }, "strip", import("zod").ZodTypeAny, {
241
+ operation: "list_payment_intents";
242
+ limit: number;
243
+ customer?: string | undefined;
244
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
245
+ }, {
246
+ operation: "list_payment_intents";
247
+ customer?: string | undefined;
248
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
249
+ limit?: number | undefined;
250
+ }>, import("zod").ZodObject<{
251
+ operation: import("zod").ZodLiteral<"list_subscriptions">;
252
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
253
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
254
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused", "all"]>>;
255
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
256
+ }, "strip", import("zod").ZodTypeAny, {
257
+ operation: "list_subscriptions";
258
+ limit: number;
259
+ status?: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused" | "all" | undefined;
260
+ customer?: string | undefined;
261
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
262
+ }, {
263
+ operation: "list_subscriptions";
264
+ status?: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused" | "all" | undefined;
265
+ customer?: string | undefined;
266
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
267
+ limit?: number | undefined;
268
+ }>, import("zod").ZodObject<{
269
+ operation: import("zod").ZodLiteral<"cancel_subscription">;
270
+ subscription_id: import("zod").ZodString;
271
+ cancel_at_period_end: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
272
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
273
+ }, "strip", import("zod").ZodTypeAny, {
274
+ cancel_at_period_end: boolean;
275
+ operation: "cancel_subscription";
276
+ subscription_id: string;
277
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
278
+ }, {
279
+ operation: "cancel_subscription";
280
+ subscription_id: string;
281
+ cancel_at_period_end?: boolean | undefined;
282
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
283
+ }>, import("zod").ZodObject<{
284
+ operation: import("zod").ZodLiteral<"list_payment_links">;
285
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
286
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
287
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
288
+ }, "strip", import("zod").ZodTypeAny, {
289
+ operation: "list_payment_links";
290
+ limit: number;
291
+ active?: boolean | undefined;
292
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
293
+ }, {
294
+ operation: "list_payment_links";
295
+ active?: boolean | undefined;
296
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
297
+ limit?: number | undefined;
298
+ }>, import("zod").ZodObject<{
299
+ operation: import("zod").ZodLiteral<"create_subscription">;
300
+ customer: import("zod").ZodString;
301
+ price: import("zod").ZodString;
302
+ trial_period_days: import("zod").ZodOptional<import("zod").ZodNumber>;
303
+ payment_behavior: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["default_incomplete", "error_if_incomplete", "allow_incomplete"]>>>;
304
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
305
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
306
+ }, "strip", import("zod").ZodTypeAny, {
307
+ customer: string;
308
+ operation: "create_subscription";
309
+ price: string;
310
+ payment_behavior: "default_incomplete" | "error_if_incomplete" | "allow_incomplete";
311
+ metadata?: Record<string, string> | undefined;
312
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
313
+ trial_period_days?: number | undefined;
314
+ }, {
315
+ customer: string;
316
+ operation: "create_subscription";
317
+ price: string;
318
+ metadata?: Record<string, string> | undefined;
319
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
320
+ trial_period_days?: number | undefined;
321
+ payment_behavior?: "default_incomplete" | "error_if_incomplete" | "allow_incomplete" | undefined;
322
+ }>]>;
323
+ static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
324
+ operation: import("zod").ZodLiteral<"create_customer">;
325
+ success: import("zod").ZodBoolean;
326
+ customer: import("zod").ZodOptional<import("zod").ZodObject<{
327
+ id: import("zod").ZodString;
328
+ name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
329
+ email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
330
+ created: import("zod").ZodNumber;
331
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
332
+ }, "strip", import("zod").ZodTypeAny, {
333
+ id: string;
334
+ created: number;
335
+ name?: string | null | undefined;
336
+ email?: string | null | undefined;
337
+ metadata?: Record<string, string> | undefined;
338
+ }, {
339
+ id: string;
340
+ created: number;
341
+ name?: string | null | undefined;
342
+ email?: string | null | undefined;
343
+ metadata?: Record<string, string> | undefined;
344
+ }>>;
345
+ error: import("zod").ZodString;
346
+ }, "strip", import("zod").ZodTypeAny, {
347
+ operation: "create_customer";
348
+ success: boolean;
349
+ error: string;
350
+ customer?: {
351
+ id: string;
352
+ created: number;
353
+ name?: string | null | undefined;
354
+ email?: string | null | undefined;
355
+ metadata?: Record<string, string> | undefined;
356
+ } | undefined;
357
+ }, {
358
+ operation: "create_customer";
359
+ success: boolean;
360
+ error: string;
361
+ customer?: {
362
+ id: string;
363
+ created: number;
364
+ name?: string | null | undefined;
365
+ email?: string | null | undefined;
366
+ metadata?: Record<string, string> | undefined;
367
+ } | undefined;
368
+ }>, import("zod").ZodObject<{
369
+ operation: import("zod").ZodLiteral<"list_customers">;
370
+ success: import("zod").ZodBoolean;
371
+ customers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
372
+ id: import("zod").ZodString;
373
+ name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
374
+ email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
375
+ created: import("zod").ZodNumber;
376
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
377
+ }, "strip", import("zod").ZodTypeAny, {
378
+ id: string;
379
+ created: number;
380
+ name?: string | null | undefined;
381
+ email?: string | null | undefined;
382
+ metadata?: Record<string, string> | undefined;
383
+ }, {
384
+ id: string;
385
+ created: number;
386
+ name?: string | null | undefined;
387
+ email?: string | null | undefined;
388
+ metadata?: Record<string, string> | undefined;
389
+ }>, "many">>;
390
+ error: import("zod").ZodString;
391
+ }, "strip", import("zod").ZodTypeAny, {
392
+ operation: "list_customers";
393
+ success: boolean;
394
+ error: string;
395
+ customers?: {
396
+ id: string;
397
+ created: number;
398
+ name?: string | null | undefined;
399
+ email?: string | null | undefined;
400
+ metadata?: Record<string, string> | undefined;
401
+ }[] | undefined;
402
+ }, {
403
+ operation: "list_customers";
404
+ success: boolean;
405
+ error: string;
406
+ customers?: {
407
+ id: string;
408
+ created: number;
409
+ name?: string | null | undefined;
410
+ email?: string | null | undefined;
411
+ metadata?: Record<string, string> | undefined;
412
+ }[] | undefined;
413
+ }>, import("zod").ZodObject<{
414
+ operation: import("zod").ZodLiteral<"create_product">;
415
+ success: import("zod").ZodBoolean;
416
+ product: import("zod").ZodOptional<import("zod").ZodObject<{
417
+ id: import("zod").ZodString;
418
+ name: import("zod").ZodString;
419
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
420
+ active: import("zod").ZodBoolean;
421
+ created: import("zod").ZodNumber;
422
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
423
+ }, "strip", import("zod").ZodTypeAny, {
424
+ id: string;
425
+ name: string;
426
+ created: number;
427
+ active: boolean;
428
+ description?: string | null | undefined;
429
+ metadata?: Record<string, string> | undefined;
430
+ }, {
431
+ id: string;
432
+ name: string;
433
+ created: number;
434
+ active: boolean;
435
+ description?: string | null | undefined;
436
+ metadata?: Record<string, string> | undefined;
437
+ }>>;
438
+ error: import("zod").ZodString;
439
+ }, "strip", import("zod").ZodTypeAny, {
440
+ operation: "create_product";
441
+ success: boolean;
442
+ error: string;
443
+ product?: {
444
+ id: string;
445
+ name: string;
446
+ created: number;
447
+ active: boolean;
448
+ description?: string | null | undefined;
449
+ metadata?: Record<string, string> | undefined;
450
+ } | undefined;
451
+ }, {
452
+ operation: "create_product";
453
+ success: boolean;
454
+ error: string;
455
+ product?: {
456
+ id: string;
457
+ name: string;
458
+ created: number;
459
+ active: boolean;
460
+ description?: string | null | undefined;
461
+ metadata?: Record<string, string> | undefined;
462
+ } | undefined;
463
+ }>, import("zod").ZodObject<{
464
+ operation: import("zod").ZodLiteral<"list_products">;
465
+ success: import("zod").ZodBoolean;
466
+ products: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
467
+ id: import("zod").ZodString;
468
+ name: import("zod").ZodString;
469
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
470
+ active: import("zod").ZodBoolean;
471
+ created: import("zod").ZodNumber;
472
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
473
+ }, "strip", import("zod").ZodTypeAny, {
474
+ id: string;
475
+ name: string;
476
+ created: number;
477
+ active: boolean;
478
+ description?: string | null | undefined;
479
+ metadata?: Record<string, string> | undefined;
480
+ }, {
481
+ id: string;
482
+ name: string;
483
+ created: number;
484
+ active: boolean;
485
+ description?: string | null | undefined;
486
+ metadata?: Record<string, string> | undefined;
487
+ }>, "many">>;
488
+ error: import("zod").ZodString;
489
+ }, "strip", import("zod").ZodTypeAny, {
490
+ operation: "list_products";
491
+ success: boolean;
492
+ error: string;
493
+ products?: {
494
+ id: string;
495
+ name: string;
496
+ created: number;
497
+ active: boolean;
498
+ description?: string | null | undefined;
499
+ metadata?: Record<string, string> | undefined;
500
+ }[] | undefined;
501
+ }, {
502
+ operation: "list_products";
503
+ success: boolean;
504
+ error: string;
505
+ products?: {
506
+ id: string;
507
+ name: string;
508
+ created: number;
509
+ active: boolean;
510
+ description?: string | null | undefined;
511
+ metadata?: Record<string, string> | undefined;
512
+ }[] | undefined;
513
+ }>, import("zod").ZodObject<{
514
+ operation: import("zod").ZodLiteral<"create_price">;
515
+ success: import("zod").ZodBoolean;
516
+ price: import("zod").ZodOptional<import("zod").ZodObject<{
517
+ id: import("zod").ZodString;
518
+ product: import("zod").ZodString;
519
+ unit_amount: import("zod").ZodNullable<import("zod").ZodNumber>;
520
+ currency: import("zod").ZodString;
521
+ type: import("zod").ZodEnum<["one_time", "recurring"]>;
522
+ active: import("zod").ZodBoolean;
523
+ created: import("zod").ZodNumber;
524
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
525
+ }, "strip", import("zod").ZodTypeAny, {
526
+ type: "one_time" | "recurring";
527
+ id: string;
528
+ created: number;
529
+ active: boolean;
530
+ product: string;
531
+ unit_amount: number | null;
532
+ currency: string;
533
+ metadata?: Record<string, string> | undefined;
534
+ }, {
535
+ type: "one_time" | "recurring";
536
+ id: string;
537
+ created: number;
538
+ active: boolean;
539
+ product: string;
540
+ unit_amount: number | null;
541
+ currency: string;
542
+ metadata?: Record<string, string> | undefined;
543
+ }>>;
544
+ error: import("zod").ZodString;
545
+ }, "strip", import("zod").ZodTypeAny, {
546
+ operation: "create_price";
547
+ success: boolean;
548
+ error: string;
549
+ price?: {
550
+ type: "one_time" | "recurring";
551
+ id: string;
552
+ created: number;
553
+ active: boolean;
554
+ product: string;
555
+ unit_amount: number | null;
556
+ currency: string;
557
+ metadata?: Record<string, string> | undefined;
558
+ } | undefined;
559
+ }, {
560
+ operation: "create_price";
561
+ success: boolean;
562
+ error: string;
563
+ price?: {
564
+ type: "one_time" | "recurring";
565
+ id: string;
566
+ created: number;
567
+ active: boolean;
568
+ product: string;
569
+ unit_amount: number | null;
570
+ currency: string;
571
+ metadata?: Record<string, string> | undefined;
572
+ } | undefined;
573
+ }>, import("zod").ZodObject<{
574
+ operation: import("zod").ZodLiteral<"list_prices">;
575
+ success: import("zod").ZodBoolean;
576
+ prices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
577
+ id: import("zod").ZodString;
578
+ product: import("zod").ZodString;
579
+ unit_amount: import("zod").ZodNullable<import("zod").ZodNumber>;
580
+ currency: import("zod").ZodString;
581
+ type: import("zod").ZodEnum<["one_time", "recurring"]>;
582
+ active: import("zod").ZodBoolean;
583
+ created: import("zod").ZodNumber;
584
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
585
+ }, "strip", import("zod").ZodTypeAny, {
586
+ type: "one_time" | "recurring";
587
+ id: string;
588
+ created: number;
589
+ active: boolean;
590
+ product: string;
591
+ unit_amount: number | null;
592
+ currency: string;
593
+ metadata?: Record<string, string> | undefined;
594
+ }, {
595
+ type: "one_time" | "recurring";
596
+ id: string;
597
+ created: number;
598
+ active: boolean;
599
+ product: string;
600
+ unit_amount: number | null;
601
+ currency: string;
602
+ metadata?: Record<string, string> | undefined;
603
+ }>, "many">>;
604
+ error: import("zod").ZodString;
605
+ }, "strip", import("zod").ZodTypeAny, {
606
+ operation: "list_prices";
607
+ success: boolean;
608
+ error: string;
609
+ prices?: {
610
+ type: "one_time" | "recurring";
611
+ id: string;
612
+ created: number;
613
+ active: boolean;
614
+ product: string;
615
+ unit_amount: number | null;
616
+ currency: string;
617
+ metadata?: Record<string, string> | undefined;
618
+ }[] | undefined;
619
+ }, {
620
+ operation: "list_prices";
621
+ success: boolean;
622
+ error: string;
623
+ prices?: {
624
+ type: "one_time" | "recurring";
625
+ id: string;
626
+ created: number;
627
+ active: boolean;
628
+ product: string;
629
+ unit_amount: number | null;
630
+ currency: string;
631
+ metadata?: Record<string, string> | undefined;
632
+ }[] | undefined;
633
+ }>, import("zod").ZodObject<{
634
+ operation: import("zod").ZodLiteral<"create_payment_link">;
635
+ success: import("zod").ZodBoolean;
636
+ payment_link: import("zod").ZodOptional<import("zod").ZodObject<{
637
+ id: import("zod").ZodString;
638
+ url: import("zod").ZodString;
639
+ active: import("zod").ZodBoolean;
640
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
641
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
642
+ }, "strip", import("zod").ZodTypeAny, {
643
+ id: string;
644
+ active: boolean;
645
+ url: string;
646
+ created?: number | undefined;
647
+ metadata?: Record<string, string> | undefined;
648
+ }, {
649
+ id: string;
650
+ active: boolean;
651
+ url: string;
652
+ created?: number | undefined;
653
+ metadata?: Record<string, string> | undefined;
654
+ }>>;
655
+ error: import("zod").ZodString;
656
+ }, "strip", import("zod").ZodTypeAny, {
657
+ operation: "create_payment_link";
658
+ success: boolean;
659
+ error: string;
660
+ payment_link?: {
661
+ id: string;
662
+ active: boolean;
663
+ url: string;
664
+ created?: number | undefined;
665
+ metadata?: Record<string, string> | undefined;
666
+ } | undefined;
667
+ }, {
668
+ operation: "create_payment_link";
669
+ success: boolean;
670
+ error: string;
671
+ payment_link?: {
672
+ id: string;
673
+ active: boolean;
674
+ url: string;
675
+ created?: number | undefined;
676
+ metadata?: Record<string, string> | undefined;
677
+ } | undefined;
678
+ }>, import("zod").ZodObject<{
679
+ operation: import("zod").ZodLiteral<"create_invoice">;
680
+ success: import("zod").ZodBoolean;
681
+ invoice: import("zod").ZodOptional<import("zod").ZodObject<{
682
+ id: import("zod").ZodString;
683
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
684
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
685
+ total: import("zod").ZodNumber;
686
+ currency: import("zod").ZodString;
687
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
688
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
689
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
690
+ }, "strip", import("zod").ZodTypeAny, {
691
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
692
+ id: string;
693
+ currency: string;
694
+ customer: string | null;
695
+ total: number;
696
+ created?: number | undefined;
697
+ metadata?: Record<string, string> | undefined;
698
+ hosted_invoice_url?: string | null | undefined;
699
+ }, {
700
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
701
+ id: string;
702
+ currency: string;
703
+ customer: string | null;
704
+ total: number;
705
+ created?: number | undefined;
706
+ metadata?: Record<string, string> | undefined;
707
+ hosted_invoice_url?: string | null | undefined;
708
+ }>>;
709
+ error: import("zod").ZodString;
710
+ }, "strip", import("zod").ZodTypeAny, {
711
+ operation: "create_invoice";
712
+ success: boolean;
713
+ error: string;
714
+ invoice?: {
715
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
716
+ id: string;
717
+ currency: string;
718
+ customer: string | null;
719
+ total: number;
720
+ created?: number | undefined;
721
+ metadata?: Record<string, string> | undefined;
722
+ hosted_invoice_url?: string | null | undefined;
723
+ } | undefined;
724
+ }, {
725
+ operation: "create_invoice";
726
+ success: boolean;
727
+ error: string;
728
+ invoice?: {
729
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
730
+ id: string;
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
+ } | undefined;
738
+ }>, import("zod").ZodObject<{
739
+ operation: import("zod").ZodLiteral<"list_invoices">;
740
+ success: import("zod").ZodBoolean;
741
+ invoices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
742
+ id: import("zod").ZodString;
743
+ customer: import("zod").ZodNullable<import("zod").ZodString>;
744
+ status: import("zod").ZodNullable<import("zod").ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>>;
745
+ total: import("zod").ZodNumber;
746
+ currency: import("zod").ZodString;
747
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
748
+ hosted_invoice_url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
749
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
750
+ }, "strip", import("zod").ZodTypeAny, {
751
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
752
+ id: string;
753
+ currency: string;
754
+ customer: string | null;
755
+ total: number;
756
+ created?: number | undefined;
757
+ metadata?: Record<string, string> | undefined;
758
+ hosted_invoice_url?: string | null | undefined;
759
+ }, {
760
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
761
+ id: string;
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
+ }>, "many">>;
769
+ error: import("zod").ZodString;
770
+ }, "strip", import("zod").ZodTypeAny, {
771
+ operation: "list_invoices";
772
+ success: boolean;
773
+ error: string;
774
+ invoices?: {
775
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
776
+ id: string;
777
+ currency: string;
778
+ customer: string | null;
779
+ total: number;
780
+ created?: number | undefined;
781
+ metadata?: Record<string, string> | undefined;
782
+ hosted_invoice_url?: string | null | undefined;
783
+ }[] | undefined;
784
+ }, {
785
+ operation: "list_invoices";
786
+ success: boolean;
787
+ error: string;
788
+ invoices?: {
789
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
790
+ id: string;
791
+ currency: string;
792
+ customer: string | null;
793
+ total: number;
794
+ created?: number | undefined;
795
+ metadata?: Record<string, string> | undefined;
796
+ hosted_invoice_url?: string | null | undefined;
797
+ }[] | undefined;
798
+ }>, import("zod").ZodObject<{
799
+ operation: import("zod").ZodLiteral<"get_balance">;
800
+ success: import("zod").ZodBoolean;
801
+ balance: import("zod").ZodOptional<import("zod").ZodObject<{
802
+ available: import("zod").ZodArray<import("zod").ZodObject<{
803
+ amount: import("zod").ZodNumber;
804
+ currency: import("zod").ZodString;
805
+ }, "strip", import("zod").ZodTypeAny, {
806
+ currency: string;
807
+ amount: number;
808
+ }, {
809
+ currency: string;
810
+ amount: number;
811
+ }>, "many">;
812
+ pending: import("zod").ZodArray<import("zod").ZodObject<{
813
+ amount: import("zod").ZodNumber;
814
+ currency: import("zod").ZodString;
815
+ }, "strip", import("zod").ZodTypeAny, {
816
+ currency: string;
817
+ amount: number;
818
+ }, {
819
+ currency: string;
820
+ amount: number;
821
+ }>, "many">;
822
+ }, "strip", import("zod").ZodTypeAny, {
823
+ available: {
824
+ currency: string;
825
+ amount: number;
826
+ }[];
827
+ pending: {
828
+ currency: string;
829
+ amount: number;
830
+ }[];
831
+ }, {
832
+ available: {
833
+ currency: string;
834
+ amount: number;
835
+ }[];
836
+ pending: {
837
+ currency: string;
838
+ amount: number;
839
+ }[];
840
+ }>>;
841
+ error: import("zod").ZodString;
842
+ }, "strip", import("zod").ZodTypeAny, {
843
+ operation: "get_balance";
844
+ success: boolean;
845
+ error: string;
846
+ balance?: {
847
+ available: {
848
+ currency: string;
849
+ amount: number;
850
+ }[];
851
+ pending: {
852
+ currency: string;
853
+ amount: number;
854
+ }[];
855
+ } | undefined;
856
+ }, {
857
+ operation: "get_balance";
858
+ success: boolean;
859
+ error: string;
860
+ balance?: {
861
+ available: {
862
+ currency: string;
863
+ amount: number;
864
+ }[];
865
+ pending: {
866
+ currency: string;
867
+ amount: number;
868
+ }[];
869
+ } | undefined;
870
+ }>, import("zod").ZodObject<{
871
+ operation: import("zod").ZodLiteral<"list_payment_intents">;
872
+ success: import("zod").ZodBoolean;
873
+ payment_intents: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
874
+ id: import("zod").ZodString;
875
+ amount: import("zod").ZodNumber;
876
+ currency: import("zod").ZodString;
877
+ status: import("zod").ZodEnum<["requires_payment_method", "requires_confirmation", "requires_action", "processing", "requires_capture", "canceled", "succeeded"]>;
878
+ customer: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
879
+ created: import("zod").ZodNumber;
880
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
881
+ }, "strip", import("zod").ZodTypeAny, {
882
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
883
+ id: string;
884
+ created: number;
885
+ currency: string;
886
+ amount: number;
887
+ metadata?: Record<string, string> | undefined;
888
+ customer?: string | null | undefined;
889
+ }, {
890
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
891
+ id: string;
892
+ created: number;
893
+ currency: string;
894
+ amount: number;
895
+ metadata?: Record<string, string> | undefined;
896
+ customer?: string | null | undefined;
897
+ }>, "many">>;
898
+ error: import("zod").ZodString;
899
+ }, "strip", import("zod").ZodTypeAny, {
900
+ operation: "list_payment_intents";
901
+ success: boolean;
902
+ error: string;
903
+ payment_intents?: {
904
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
905
+ id: string;
906
+ created: number;
907
+ currency: string;
908
+ amount: number;
909
+ metadata?: Record<string, string> | undefined;
910
+ customer?: string | null | undefined;
911
+ }[] | undefined;
912
+ }, {
913
+ operation: "list_payment_intents";
914
+ success: boolean;
915
+ error: string;
916
+ payment_intents?: {
917
+ status: "requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded";
918
+ id: string;
919
+ created: number;
920
+ currency: string;
921
+ amount: number;
922
+ metadata?: Record<string, string> | undefined;
923
+ customer?: string | null | undefined;
924
+ }[] | undefined;
925
+ }>, import("zod").ZodObject<{
926
+ operation: import("zod").ZodLiteral<"list_subscriptions">;
927
+ success: import("zod").ZodBoolean;
928
+ subscriptions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
929
+ id: import("zod").ZodString;
930
+ customer: import("zod").ZodString;
931
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
932
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
933
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
934
+ cancel_at_period_end: import("zod").ZodBoolean;
935
+ created: import("zod").ZodNumber;
936
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
937
+ }, "strip", import("zod").ZodTypeAny, {
938
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
939
+ id: string;
940
+ created: number;
941
+ customer: string;
942
+ cancel_at_period_end: boolean;
943
+ metadata?: Record<string, string> | undefined;
944
+ current_period_start?: number | undefined;
945
+ current_period_end?: number | undefined;
946
+ }, {
947
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
948
+ id: string;
949
+ created: number;
950
+ customer: string;
951
+ cancel_at_period_end: boolean;
952
+ metadata?: Record<string, string> | undefined;
953
+ current_period_start?: number | undefined;
954
+ current_period_end?: number | undefined;
955
+ }>, "many">>;
956
+ error: import("zod").ZodString;
957
+ }, "strip", import("zod").ZodTypeAny, {
958
+ operation: "list_subscriptions";
959
+ success: boolean;
960
+ error: string;
961
+ subscriptions?: {
962
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
963
+ id: string;
964
+ created: number;
965
+ customer: string;
966
+ cancel_at_period_end: boolean;
967
+ metadata?: Record<string, string> | undefined;
968
+ current_period_start?: number | undefined;
969
+ current_period_end?: number | undefined;
970
+ }[] | undefined;
971
+ }, {
972
+ operation: "list_subscriptions";
973
+ success: boolean;
974
+ error: string;
975
+ subscriptions?: {
976
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
977
+ id: string;
978
+ created: number;
979
+ customer: string;
980
+ cancel_at_period_end: boolean;
981
+ metadata?: Record<string, string> | undefined;
982
+ current_period_start?: number | undefined;
983
+ current_period_end?: number | undefined;
984
+ }[] | undefined;
985
+ }>, import("zod").ZodObject<{
986
+ operation: import("zod").ZodLiteral<"cancel_subscription">;
987
+ success: import("zod").ZodBoolean;
988
+ subscription: import("zod").ZodOptional<import("zod").ZodObject<{
989
+ id: import("zod").ZodString;
990
+ customer: import("zod").ZodString;
991
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
992
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
993
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
994
+ cancel_at_period_end: import("zod").ZodBoolean;
995
+ created: import("zod").ZodNumber;
996
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
997
+ }, "strip", import("zod").ZodTypeAny, {
998
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
999
+ id: string;
1000
+ created: number;
1001
+ customer: string;
1002
+ cancel_at_period_end: boolean;
1003
+ metadata?: Record<string, string> | undefined;
1004
+ current_period_start?: number | undefined;
1005
+ current_period_end?: number | undefined;
1006
+ }, {
1007
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1008
+ id: string;
1009
+ created: number;
1010
+ customer: string;
1011
+ cancel_at_period_end: boolean;
1012
+ metadata?: Record<string, string> | undefined;
1013
+ current_period_start?: number | undefined;
1014
+ current_period_end?: number | undefined;
1015
+ }>>;
1016
+ error: import("zod").ZodString;
1017
+ }, "strip", import("zod").ZodTypeAny, {
1018
+ operation: "cancel_subscription";
1019
+ success: boolean;
1020
+ error: string;
1021
+ subscription?: {
1022
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1023
+ id: string;
1024
+ created: number;
1025
+ customer: string;
1026
+ cancel_at_period_end: boolean;
1027
+ metadata?: Record<string, string> | undefined;
1028
+ current_period_start?: number | undefined;
1029
+ current_period_end?: number | undefined;
1030
+ } | undefined;
1031
+ }, {
1032
+ operation: "cancel_subscription";
1033
+ success: boolean;
1034
+ error: string;
1035
+ subscription?: {
1036
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1037
+ id: string;
1038
+ created: number;
1039
+ customer: string;
1040
+ cancel_at_period_end: boolean;
1041
+ metadata?: Record<string, string> | undefined;
1042
+ current_period_start?: number | undefined;
1043
+ current_period_end?: number | undefined;
1044
+ } | undefined;
1045
+ }>, import("zod").ZodObject<{
1046
+ operation: import("zod").ZodLiteral<"list_payment_links">;
1047
+ success: import("zod").ZodBoolean;
1048
+ payment_links: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1049
+ id: import("zod").ZodString;
1050
+ url: import("zod").ZodString;
1051
+ active: import("zod").ZodBoolean;
1052
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
1053
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1054
+ }, "strip", import("zod").ZodTypeAny, {
1055
+ id: string;
1056
+ active: boolean;
1057
+ url: string;
1058
+ created?: number | undefined;
1059
+ metadata?: Record<string, string> | undefined;
1060
+ }, {
1061
+ id: string;
1062
+ active: boolean;
1063
+ url: string;
1064
+ created?: number | undefined;
1065
+ metadata?: Record<string, string> | undefined;
1066
+ }>, "many">>;
1067
+ error: import("zod").ZodString;
1068
+ }, "strip", import("zod").ZodTypeAny, {
1069
+ operation: "list_payment_links";
1070
+ success: boolean;
1071
+ error: string;
1072
+ payment_links?: {
1073
+ id: string;
1074
+ active: boolean;
1075
+ url: string;
1076
+ created?: number | undefined;
1077
+ metadata?: Record<string, string> | undefined;
1078
+ }[] | undefined;
1079
+ }, {
1080
+ operation: "list_payment_links";
1081
+ success: boolean;
1082
+ error: string;
1083
+ payment_links?: {
1084
+ id: string;
1085
+ active: boolean;
1086
+ url: string;
1087
+ created?: number | undefined;
1088
+ metadata?: Record<string, string> | undefined;
1089
+ }[] | undefined;
1090
+ }>, import("zod").ZodObject<{
1091
+ operation: import("zod").ZodLiteral<"create_subscription">;
1092
+ success: import("zod").ZodBoolean;
1093
+ subscription: import("zod").ZodOptional<import("zod").ZodObject<{
1094
+ id: import("zod").ZodString;
1095
+ customer: import("zod").ZodString;
1096
+ status: import("zod").ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>;
1097
+ current_period_start: import("zod").ZodOptional<import("zod").ZodNumber>;
1098
+ current_period_end: import("zod").ZodOptional<import("zod").ZodNumber>;
1099
+ cancel_at_period_end: import("zod").ZodBoolean;
1100
+ created: import("zod").ZodNumber;
1101
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1102
+ }, "strip", import("zod").ZodTypeAny, {
1103
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1104
+ id: string;
1105
+ created: number;
1106
+ customer: string;
1107
+ cancel_at_period_end: boolean;
1108
+ metadata?: Record<string, string> | undefined;
1109
+ current_period_start?: number | undefined;
1110
+ current_period_end?: number | undefined;
1111
+ }, {
1112
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1113
+ id: string;
1114
+ created: number;
1115
+ customer: string;
1116
+ cancel_at_period_end: boolean;
1117
+ metadata?: Record<string, string> | undefined;
1118
+ current_period_start?: number | undefined;
1119
+ current_period_end?: number | undefined;
1120
+ }>>;
1121
+ error: import("zod").ZodString;
1122
+ }, "strip", import("zod").ZodTypeAny, {
1123
+ operation: "create_subscription";
1124
+ success: boolean;
1125
+ error: string;
1126
+ subscription?: {
1127
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1128
+ id: string;
1129
+ created: number;
1130
+ customer: string;
1131
+ cancel_at_period_end: boolean;
1132
+ metadata?: Record<string, string> | undefined;
1133
+ current_period_start?: number | undefined;
1134
+ current_period_end?: number | undefined;
1135
+ } | undefined;
1136
+ }, {
1137
+ operation: "create_subscription";
1138
+ success: boolean;
1139
+ error: string;
1140
+ subscription?: {
1141
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "unpaid" | "paused";
1142
+ id: string;
1143
+ created: number;
1144
+ customer: string;
1145
+ cancel_at_period_end: boolean;
1146
+ metadata?: Record<string, string> | undefined;
1147
+ current_period_start?: number | undefined;
1148
+ current_period_end?: number | undefined;
1149
+ } | undefined;
1150
+ }>]>;
1151
+ static readonly shortDescription = "Stripe integration for payments, billing, and subscriptions";
1152
+ 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 ";
1153
+ static readonly alias = "payments";
1154
+ constructor(params?: T, context?: BubbleContext);
1155
+ testCredential(): Promise<boolean>;
1156
+ private makeStripeRequest;
1157
+ private encodeFormData;
1158
+ protected performAction(context?: BubbleContext): Promise<Extract<StripeResult, {
1159
+ operation: T['operation'];
1160
+ }>>;
1161
+ private createCustomer;
1162
+ private listCustomers;
1163
+ private createProduct;
1164
+ private listProducts;
1165
+ private createPrice;
1166
+ private listPrices;
1167
+ private createPaymentLink;
1168
+ private createInvoice;
1169
+ private listInvoices;
1170
+ private getBalance;
1171
+ private listPaymentIntents;
1172
+ private listSubscriptions;
1173
+ private cancelSubscription;
1174
+ private listPaymentLinks;
1175
+ private createSubscription;
1176
+ protected chooseCredential(): string | undefined;
1177
+ }
1178
+ //# sourceMappingURL=stripe.d.ts.map