@bubblelab/bubble-core 0.1.50 → 0.1.52

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