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