@raideno/convex-stripe 0.1.1 → 0.1.2

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 (68) hide show
  1. package/dist/index.d.ts +0 -2
  2. package/dist/index.js +1 -0
  3. package/dist/server/actions/index.d.ts +4 -0
  4. package/dist/server/actions/pay.d.ts +579 -0
  5. package/dist/server/actions/portal.d.ts +26 -0
  6. package/dist/server/actions/setup.d.ts +19 -0
  7. package/dist/server/actions/subscribe.d.ts +44 -0
  8. package/dist/server/helpers.d.ts +28 -0
  9. package/dist/server/index.d.ts +589 -0
  10. package/dist/server/logger.d.ts +8 -0
  11. package/dist/server/redirects/index.d.ts +47 -0
  12. package/dist/server/redirects/pay.d.ts +5 -0
  13. package/dist/server/redirects/portal.d.ts +3 -0
  14. package/dist/server/redirects/subscribe.d.ts +3 -0
  15. package/dist/server/redirects/types.d.ts +9 -0
  16. package/dist/server/schema/checkout-session.d.ts +256 -0
  17. package/dist/server/schema/coupon.d.ts +112 -0
  18. package/dist/server/schema/customer.d.ts +366 -0
  19. package/dist/server/schema/index.d.ts +3511 -0
  20. package/dist/server/schema/invoice.d.ts +314 -0
  21. package/dist/server/schema/payment-intent.d.ts +311 -0
  22. package/dist/server/schema/payout.d.ts +140 -0
  23. package/dist/server/schema/price.d.ts +148 -0
  24. package/dist/server/schema/product.d.ts +132 -0
  25. package/dist/server/schema/promotion-code.d.ts +266 -0
  26. package/dist/server/schema/refund.d.ts +92 -0
  27. package/dist/server/schema/review.d.ts +152 -0
  28. package/dist/server/schema/subscription.d.ts +4 -0
  29. package/dist/server/store/index.d.ts +582 -0
  30. package/dist/server/store/operations/delete-by-id.d.ts +3 -0
  31. package/dist/server/store/operations/index.d.ts +5 -0
  32. package/dist/server/store/operations/select-all.d.ts +3 -0
  33. package/dist/server/store/operations/select-by-id.d.ts +4 -0
  34. package/dist/server/store/operations/select-one.d.ts +3 -0
  35. package/dist/server/store/operations/upsert.d.ts +4 -0
  36. package/dist/server/store/types.d.ts +70 -0
  37. package/dist/server/sync/all.d.ts +5 -0
  38. package/dist/server/sync/checkouts-session.handler.d.ts +5 -0
  39. package/dist/server/sync/coupons.handler.d.ts +5 -0
  40. package/dist/server/sync/customers.handler.d.ts +5 -0
  41. package/dist/server/sync/invoices.handler.d.ts +5 -0
  42. package/dist/server/sync/payment-intent.handler.d.ts +5 -0
  43. package/dist/server/sync/payouts.handler.d.ts +5 -0
  44. package/dist/server/sync/prices.handler.d.ts +5 -0
  45. package/dist/server/sync/products.handler.d.ts +5 -0
  46. package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
  47. package/dist/server/sync/refunds.handler.d.ts +5 -0
  48. package/dist/server/sync/reviews.handler.d.ts +5 -0
  49. package/dist/server/sync/subscription.d.ts +12 -0
  50. package/dist/server/sync/subscriptions.handler.d.ts +5 -0
  51. package/dist/server/types.d.ts +29 -0
  52. package/dist/server/webhooks/checkouts-session.handler.d.ts +2 -0
  53. package/dist/server/webhooks/coupons.handler.d.ts +2 -0
  54. package/dist/server/webhooks/customers.handler.d.ts +2 -0
  55. package/dist/server/webhooks/index.d.ts +2 -0
  56. package/dist/server/webhooks/invoices.handler.d.ts +2 -0
  57. package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
  58. package/dist/server/webhooks/payouts.handler.d.ts +2 -0
  59. package/dist/server/webhooks/prices.handler.d.ts +2 -0
  60. package/dist/server/webhooks/products.handler.d.ts +2 -0
  61. package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
  62. package/dist/server/webhooks/refunds.handler.d.ts +2 -0
  63. package/dist/server/webhooks/reviews.handler.d.ts +2 -0
  64. package/dist/server/webhooks/subscription.handler.d.ts +2 -0
  65. package/dist/server/webhooks/types.d.ts +11 -0
  66. package/dist/server.d.ts +2 -3790
  67. package/dist/server.js +3811 -1236
  68. package/package.json +9 -8
package/dist/server.d.ts CHANGED
@@ -1,3790 +1,2 @@
1
- import * as convex_server from 'convex/server';
2
- import { GenericDataModel, TableNamesInDataModel, DocumentByName, DataModelFromSchemaDefinition, GenericActionCtx, GenericMutationCtx, HttpRouter, Crons } from 'convex/server';
3
- import * as convex_values from 'convex/values';
4
- import { GenericId, Validator, Infer, VObject } from 'convex/values';
5
- import * as Stripe from 'stripe';
6
- import Stripe__default from 'stripe';
7
-
8
- declare const PayImplementation: {
9
- args: convex_values.VObject<{
10
- metadata?: Record<string, string | number | null> | null | undefined;
11
- createStripeCustomerIfMissing?: boolean | undefined;
12
- entityId: string;
13
- line_items: ({
14
- adjustable_quantity?: {
15
- maximum?: number | undefined;
16
- minimum?: number | undefined;
17
- enabled: boolean;
18
- } | undefined;
19
- quantity?: number | undefined;
20
- tax_rates?: string[] | undefined;
21
- dynamic_tax_rates?: string[] | undefined;
22
- price: string;
23
- } | {
24
- adjustable_quantity?: {
25
- maximum?: number | undefined;
26
- minimum?: number | undefined;
27
- enabled: boolean;
28
- } | undefined;
29
- quantity?: number | undefined;
30
- tax_rates?: string[] | undefined;
31
- dynamic_tax_rates?: string[] | undefined;
32
- price_data: {
33
- recurring?: {
34
- interval_count?: number | undefined;
35
- interval: "day" | "week" | "month" | "year";
36
- } | undefined;
37
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
38
- productId: string;
39
- currency: string;
40
- unit_amount: number;
41
- } | {
42
- recurring?: {
43
- interval_count?: number | undefined;
44
- interval: "day" | "week" | "month" | "year";
45
- } | undefined;
46
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
47
- currency: string;
48
- unit_amount: number;
49
- product_data: {
50
- description?: string | undefined;
51
- images?: string[] | undefined;
52
- tax_code?: string | undefined;
53
- name: string;
54
- metadata: Record<string, string | number | null>;
55
- };
56
- };
57
- })[];
58
- success: {
59
- url: string;
60
- };
61
- cancel: {
62
- url: string;
63
- };
64
- referenceId: string;
65
- }, {
66
- createStripeCustomerIfMissing: convex_values.VBoolean<boolean | undefined, "optional">;
67
- entityId: convex_values.VString<string, "required">;
68
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
69
- referenceId: convex_values.VString<string, "required">;
70
- line_items: convex_values.VArray<({
71
- adjustable_quantity?: {
72
- maximum?: number | undefined;
73
- minimum?: number | undefined;
74
- enabled: boolean;
75
- } | undefined;
76
- quantity?: number | undefined;
77
- tax_rates?: string[] | undefined;
78
- dynamic_tax_rates?: string[] | undefined;
79
- price: string;
80
- } | {
81
- adjustable_quantity?: {
82
- maximum?: number | undefined;
83
- minimum?: number | undefined;
84
- enabled: boolean;
85
- } | undefined;
86
- quantity?: number | undefined;
87
- tax_rates?: string[] | undefined;
88
- dynamic_tax_rates?: string[] | undefined;
89
- price_data: {
90
- recurring?: {
91
- interval_count?: number | undefined;
92
- interval: "day" | "week" | "month" | "year";
93
- } | undefined;
94
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
95
- productId: string;
96
- currency: string;
97
- unit_amount: number;
98
- } | {
99
- recurring?: {
100
- interval_count?: number | undefined;
101
- interval: "day" | "week" | "month" | "year";
102
- } | undefined;
103
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
104
- currency: string;
105
- unit_amount: number;
106
- product_data: {
107
- description?: string | undefined;
108
- images?: string[] | undefined;
109
- tax_code?: string | undefined;
110
- name: string;
111
- metadata: Record<string, string | number | null>;
112
- };
113
- };
114
- })[], convex_values.VUnion<{
115
- adjustable_quantity?: {
116
- maximum?: number | undefined;
117
- minimum?: number | undefined;
118
- enabled: boolean;
119
- } | undefined;
120
- quantity?: number | undefined;
121
- tax_rates?: string[] | undefined;
122
- dynamic_tax_rates?: string[] | undefined;
123
- price: string;
124
- } | {
125
- adjustable_quantity?: {
126
- maximum?: number | undefined;
127
- minimum?: number | undefined;
128
- enabled: boolean;
129
- } | undefined;
130
- quantity?: number | undefined;
131
- tax_rates?: string[] | undefined;
132
- dynamic_tax_rates?: string[] | undefined;
133
- price_data: {
134
- recurring?: {
135
- interval_count?: number | undefined;
136
- interval: "day" | "week" | "month" | "year";
137
- } | undefined;
138
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
139
- productId: string;
140
- currency: string;
141
- unit_amount: number;
142
- } | {
143
- recurring?: {
144
- interval_count?: number | undefined;
145
- interval: "day" | "week" | "month" | "year";
146
- } | undefined;
147
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
148
- currency: string;
149
- unit_amount: number;
150
- product_data: {
151
- description?: string | undefined;
152
- images?: string[] | undefined;
153
- tax_code?: string | undefined;
154
- name: string;
155
- metadata: Record<string, string | number | null>;
156
- };
157
- };
158
- }, [convex_values.VObject<{
159
- adjustable_quantity?: {
160
- maximum?: number | undefined;
161
- minimum?: number | undefined;
162
- enabled: boolean;
163
- } | undefined;
164
- quantity?: number | undefined;
165
- tax_rates?: string[] | undefined;
166
- dynamic_tax_rates?: string[] | undefined;
167
- price: string;
168
- }, {
169
- adjustable_quantity: convex_values.VObject<{
170
- maximum?: number | undefined;
171
- minimum?: number | undefined;
172
- enabled: boolean;
173
- } | undefined, {
174
- enabled: convex_values.VBoolean<boolean, "required">;
175
- maximum: convex_values.VFloat64<number | undefined, "optional">;
176
- minimum: convex_values.VFloat64<number | undefined, "optional">;
177
- }, "optional", "enabled" | "maximum" | "minimum">;
178
- price: convex_values.VString<string, "required">;
179
- quantity: convex_values.VFloat64<number | undefined, "optional">;
180
- tax_rates: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
181
- dynamic_tax_rates: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
182
- }, "required", "adjustable_quantity" | "price" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, convex_values.VObject<{
183
- adjustable_quantity?: {
184
- maximum?: number | undefined;
185
- minimum?: number | undefined;
186
- enabled: boolean;
187
- } | undefined;
188
- quantity?: number | undefined;
189
- tax_rates?: string[] | undefined;
190
- dynamic_tax_rates?: string[] | undefined;
191
- price_data: {
192
- recurring?: {
193
- interval_count?: number | undefined;
194
- interval: "day" | "week" | "month" | "year";
195
- } | undefined;
196
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
197
- productId: string;
198
- currency: string;
199
- unit_amount: number;
200
- } | {
201
- recurring?: {
202
- interval_count?: number | undefined;
203
- interval: "day" | "week" | "month" | "year";
204
- } | undefined;
205
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
206
- currency: string;
207
- unit_amount: number;
208
- product_data: {
209
- description?: string | undefined;
210
- images?: string[] | undefined;
211
- tax_code?: string | undefined;
212
- name: string;
213
- metadata: Record<string, string | number | null>;
214
- };
215
- };
216
- }, {
217
- adjustable_quantity: convex_values.VObject<{
218
- maximum?: number | undefined;
219
- minimum?: number | undefined;
220
- enabled: boolean;
221
- } | undefined, {
222
- enabled: convex_values.VBoolean<boolean, "required">;
223
- maximum: convex_values.VFloat64<number | undefined, "optional">;
224
- minimum: convex_values.VFloat64<number | undefined, "optional">;
225
- }, "optional", "enabled" | "maximum" | "minimum">;
226
- price_data: convex_values.VUnion<{
227
- recurring?: {
228
- interval_count?: number | undefined;
229
- interval: "day" | "week" | "month" | "year";
230
- } | undefined;
231
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
232
- productId: string;
233
- currency: string;
234
- unit_amount: number;
235
- } | {
236
- recurring?: {
237
- interval_count?: number | undefined;
238
- interval: "day" | "week" | "month" | "year";
239
- } | undefined;
240
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
241
- currency: string;
242
- unit_amount: number;
243
- product_data: {
244
- description?: string | undefined;
245
- images?: string[] | undefined;
246
- tax_code?: string | undefined;
247
- name: string;
248
- metadata: Record<string, string | number | null>;
249
- };
250
- }, [convex_values.VObject<{
251
- recurring?: {
252
- interval_count?: number | undefined;
253
- interval: "day" | "week" | "month" | "year";
254
- } | undefined;
255
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
256
- productId: string;
257
- currency: string;
258
- unit_amount: number;
259
- }, {
260
- currency: convex_values.VString<string, "required">;
261
- productId: convex_values.VString<string, "required">;
262
- recurring: convex_values.VObject<{
263
- interval_count?: number | undefined;
264
- interval: "day" | "week" | "month" | "year";
265
- } | undefined, {
266
- interval: convex_values.VUnion<"day" | "week" | "month" | "year", [convex_values.VLiteral<"day", "required">, convex_values.VLiteral<"week", "required">, convex_values.VLiteral<"month", "required">, convex_values.VLiteral<"year", "required">], "required", never>;
267
- interval_count: convex_values.VFloat64<number | undefined, "optional">;
268
- }, "optional", "interval" | "interval_count">;
269
- tax_behavior: convex_values.VUnion<"exclusive" | "inclusive" | "unspecified" | undefined, [convex_values.VLiteral<"exclusive", "required">, convex_values.VLiteral<"inclusive", "required">, convex_values.VLiteral<"unspecified", "required">], "optional", never>;
270
- unit_amount: convex_values.VFloat64<number, "required">;
271
- }, "required", "productId" | "recurring" | "currency" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior">, convex_values.VObject<{
272
- recurring?: {
273
- interval_count?: number | undefined;
274
- interval: "day" | "week" | "month" | "year";
275
- } | undefined;
276
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
277
- currency: string;
278
- unit_amount: number;
279
- product_data: {
280
- description?: string | undefined;
281
- images?: string[] | undefined;
282
- tax_code?: string | undefined;
283
- name: string;
284
- metadata: Record<string, string | number | null>;
285
- };
286
- }, {
287
- currency: convex_values.VString<string, "required">;
288
- product_data: convex_values.VObject<{
289
- description?: string | undefined;
290
- images?: string[] | undefined;
291
- tax_code?: string | undefined;
292
- name: string;
293
- metadata: Record<string, string | number | null>;
294
- }, {
295
- description: convex_values.VString<string | undefined, "optional">;
296
- images: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
297
- metadata: convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>;
298
- name: convex_values.VString<string, "required">;
299
- tax_code: convex_values.VString<string | undefined, "optional">;
300
- }, "required", "name" | "description" | "metadata" | "images" | `metadata.${string}` | "tax_code">;
301
- recurring: convex_values.VObject<{
302
- interval_count?: number | undefined;
303
- interval: "day" | "week" | "month" | "year";
304
- } | undefined, {
305
- interval: convex_values.VUnion<"day" | "week" | "month" | "year", [convex_values.VLiteral<"day", "required">, convex_values.VLiteral<"week", "required">, convex_values.VLiteral<"month", "required">, convex_values.VLiteral<"year", "required">], "required", never>;
306
- interval_count: convex_values.VFloat64<number | undefined, "optional">;
307
- }, "optional", "interval" | "interval_count">;
308
- tax_behavior: convex_values.VUnion<"exclusive" | "inclusive" | "unspecified" | undefined, [convex_values.VLiteral<"exclusive", "required">, convex_values.VLiteral<"inclusive", "required">, convex_values.VLiteral<"unspecified", "required">], "optional", never>;
309
- unit_amount: convex_values.VFloat64<number, "required">;
310
- }, "required", "recurring" | "currency" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | "product_data.images" | `product_data.metadata.${string}` | "product_data.tax_code">], "required", "productId" | "recurring" | "currency" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | "product_data.images" | `product_data.metadata.${string}` | "product_data.tax_code">;
311
- quantity: convex_values.VFloat64<number | undefined, "optional">;
312
- tax_rates: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
313
- dynamic_tax_rates: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
314
- }, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.productId" | "price_data.recurring" | "price_data.currency" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | "price_data.product_data.images" | `price_data.product_data.metadata.${string}` | "price_data.product_data.tax_code">], "required", "adjustable_quantity" | "price" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.productId" | "price_data.recurring" | "price_data.currency" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | "price_data.product_data.images" | `price_data.product_data.metadata.${string}` | "price_data.product_data.tax_code">, "required">;
315
- success: convex_values.VObject<{
316
- url: string;
317
- }, {
318
- url: convex_values.VString<string, "required">;
319
- }, "required", "url">;
320
- cancel: convex_values.VObject<{
321
- url: string;
322
- }, {
323
- url: convex_values.VString<string, "required">;
324
- }, "required", "url">;
325
- }, "required", "metadata" | `metadata.${string}` | "entityId" | "line_items" | "createStripeCustomerIfMissing" | "success" | "cancel" | "success.url" | "cancel.url" | "referenceId">;
326
- name: string;
327
- handler: (context: convex_server.GenericActionCtx<StripeDataModel>, args: {
328
- metadata?: Record<string, string | number | null> | null | undefined;
329
- createStripeCustomerIfMissing?: boolean | undefined;
330
- entityId: string;
331
- line_items: ({
332
- adjustable_quantity?: {
333
- maximum?: number | undefined;
334
- minimum?: number | undefined;
335
- enabled: boolean;
336
- } | undefined;
337
- quantity?: number | undefined;
338
- tax_rates?: string[] | undefined;
339
- dynamic_tax_rates?: string[] | undefined;
340
- price: string;
341
- } | {
342
- adjustable_quantity?: {
343
- maximum?: number | undefined;
344
- minimum?: number | undefined;
345
- enabled: boolean;
346
- } | undefined;
347
- quantity?: number | undefined;
348
- tax_rates?: string[] | undefined;
349
- dynamic_tax_rates?: string[] | undefined;
350
- price_data: {
351
- recurring?: {
352
- interval_count?: number | undefined;
353
- interval: "day" | "week" | "month" | "year";
354
- } | undefined;
355
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
356
- productId: string;
357
- currency: string;
358
- unit_amount: number;
359
- } | {
360
- recurring?: {
361
- interval_count?: number | undefined;
362
- interval: "day" | "week" | "month" | "year";
363
- } | undefined;
364
- tax_behavior?: "exclusive" | "inclusive" | "unspecified" | undefined;
365
- currency: string;
366
- unit_amount: number;
367
- product_data: {
368
- description?: string | undefined;
369
- images?: string[] | undefined;
370
- tax_code?: string | undefined;
371
- name: string;
372
- metadata: Record<string, string | number | null>;
373
- };
374
- };
375
- })[];
376
- success: {
377
- url: string;
378
- };
379
- cancel: {
380
- url: string;
381
- };
382
- referenceId: string;
383
- }, configuration: InternalConfiguration) => Promise<Stripe__default.Response<Stripe__default.Checkout.Session>>;
384
- };
385
-
386
- declare const PortalImplementation: {
387
- args: convex_values.VObject<{
388
- createStripeCustomerIfMissing?: boolean | undefined;
389
- entityId: string;
390
- return: {
391
- url: string;
392
- };
393
- }, {
394
- createStripeCustomerIfMissing: convex_values.VBoolean<boolean | undefined, "optional">;
395
- entityId: convex_values.VString<string, "required">;
396
- return: convex_values.VObject<{
397
- url: string;
398
- }, {
399
- url: convex_values.VString<string, "required">;
400
- }, "required", "url">;
401
- }, "required", "entityId" | "createStripeCustomerIfMissing" | "return" | "return.url">;
402
- name: string;
403
- handler: (context: convex_server.GenericActionCtx<StripeDataModel>, args: {
404
- createStripeCustomerIfMissing?: boolean | undefined;
405
- entityId: string;
406
- return: {
407
- url: string;
408
- };
409
- }, configuration: InternalConfiguration) => Promise<Stripe__default.Response<Stripe__default.BillingPortal.Session>>;
410
- };
411
-
412
- declare const SubscribeImplementation: {
413
- args: convex_values.VObject<{
414
- metadata?: Record<string, string | number | null> | null | undefined;
415
- createStripeCustomerIfMissing?: boolean | undefined;
416
- priceId: string;
417
- entityId: string;
418
- success: {
419
- url: string;
420
- };
421
- cancel: {
422
- url: string;
423
- };
424
- }, {
425
- createStripeCustomerIfMissing: convex_values.VBoolean<boolean | undefined, "optional">;
426
- entityId: convex_values.VString<string, "required">;
427
- priceId: convex_values.VString<string, "required">;
428
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
429
- success: convex_values.VObject<{
430
- url: string;
431
- }, {
432
- url: convex_values.VString<string, "required">;
433
- }, "required", "url">;
434
- cancel: convex_values.VObject<{
435
- url: string;
436
- }, {
437
- url: convex_values.VString<string, "required">;
438
- }, "required", "url">;
439
- }, "required", "metadata" | `metadata.${string}` | "priceId" | "entityId" | "createStripeCustomerIfMissing" | "success" | "cancel" | "success.url" | "cancel.url">;
440
- name: string;
441
- handler: (context: convex_server.GenericActionCtx<StripeDataModel>, args: {
442
- metadata?: Record<string, string | number | null> | null | undefined;
443
- createStripeCustomerIfMissing?: boolean | undefined;
444
- priceId: string;
445
- entityId: string;
446
- success: {
447
- url: string;
448
- };
449
- cancel: {
450
- url: string;
451
- };
452
- }, configuration: InternalConfiguration) => Promise<{
453
- url: string | null;
454
- }>;
455
- };
456
-
457
- declare class Logger {
458
- debug_: boolean;
459
- constructor(debug: boolean);
460
- log(message: string): void;
461
- error(message: string): void;
462
- warn(message: string): void;
463
- debug(message: string): void;
464
- }
465
-
466
- interface InternalConfiguration {
467
- stripe: {
468
- secret_key: string;
469
- webhook_secret: string;
470
- };
471
- sync: Partial<Record<keyof typeof stripeTables, boolean>>;
472
- debug: boolean;
473
- logger: Logger;
474
- base: string;
475
- }
476
- type WithOptional<T, K extends keyof T = never> = Omit<T, K> & Partial<Pick<T, K>>;
477
- type InputConfiguration = WithOptional<InternalConfiguration, "base" | "debug" | "logger" | "sync">;
478
- type ArgSchema = Record<string, Validator<any, "optional" | "required", any>>;
479
- type InferArgs<S extends ArgSchema> = {
480
- [K in keyof S as S[K] extends Validator<any, "required", any> ? K : never]: Infer<S[K]>;
481
- } & {
482
- [K in keyof S as S[K] extends Validator<any, "optional", any> ? K : never]?: Infer<S[K]>;
483
- };
484
- /**
485
- * Convex document from a given table.
486
- */
487
- type GenericDoc<DataModel extends GenericDataModel, TableName extends TableNamesInDataModel<DataModel>> = DocumentByName<DataModel, TableName> & {
488
- _id: GenericId<TableName>;
489
- _creationTime: number;
490
- };
491
-
492
- declare const currencies: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>;
493
-
494
- declare const stripeTables: {
495
- convex_stripe_products: convex_server.TableDefinition<convex_values.VObject<{
496
- stripe: {
497
- metadata?: Record<string, string | number | null> | null | undefined;
498
- statement_descriptor?: string | null | undefined;
499
- unit_label?: string | null | undefined;
500
- object: string;
501
- id: string;
502
- name: string;
503
- active: boolean;
504
- description: string | null;
505
- created: number;
506
- images: string[];
507
- livemode: boolean;
508
- package_dimensions: {
509
- height: number;
510
- length: number;
511
- weight: number;
512
- width: number;
513
- } | null;
514
- shippable: boolean | null;
515
- updated: number;
516
- url: string | null;
517
- marketing_features: {
518
- name?: string | null | undefined;
519
- }[];
520
- default_price: string | null;
521
- };
522
- productId: string;
523
- last_synced_at: number;
524
- }, {
525
- productId: convex_values.VString<string, "required">;
526
- stripe: convex_values.VObject<{
527
- metadata?: Record<string, string | number | null> | null | undefined;
528
- statement_descriptor?: string | null | undefined;
529
- unit_label?: string | null | undefined;
530
- object: string;
531
- id: string;
532
- name: string;
533
- active: boolean;
534
- description: string | null;
535
- created: number;
536
- images: string[];
537
- livemode: boolean;
538
- package_dimensions: {
539
- height: number;
540
- length: number;
541
- weight: number;
542
- width: number;
543
- } | null;
544
- shippable: boolean | null;
545
- updated: number;
546
- url: string | null;
547
- marketing_features: {
548
- name?: string | null | undefined;
549
- }[];
550
- default_price: string | null;
551
- }, {
552
- id: convex_values.VString<string, "required">;
553
- object: convex_values.VString<string, "required">;
554
- active: convex_values.VBoolean<boolean, "required">;
555
- description: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
556
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
557
- name: convex_values.VString<string, "required">;
558
- created: convex_values.VFloat64<number, "required">;
559
- images: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
560
- livemode: convex_values.VBoolean<boolean, "required">;
561
- package_dimensions: convex_values.VUnion<{
562
- height: number;
563
- length: number;
564
- weight: number;
565
- width: number;
566
- } | null, [convex_values.VObject<{
567
- height: number;
568
- length: number;
569
- weight: number;
570
- width: number;
571
- }, {
572
- height: convex_values.VFloat64<number, "required">;
573
- length: convex_values.VFloat64<number, "required">;
574
- weight: convex_values.VFloat64<number, "required">;
575
- width: convex_values.VFloat64<number, "required">;
576
- }, "required", "height" | "length" | "weight" | "width">, convex_values.VNull<null, "required">], "required", "height" | "length" | "weight" | "width">;
577
- shippable: convex_values.VUnion<boolean | null, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "required", never>;
578
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
579
- unit_label: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
580
- updated: convex_values.VFloat64<number, "required">;
581
- url: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
582
- marketing_features: convex_values.VArray<{
583
- name?: string | null | undefined;
584
- }[], convex_values.VObject<{
585
- name?: string | null | undefined;
586
- }, {
587
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
588
- }, "required", "name">, "required">;
589
- default_price: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
590
- }, "required", "object" | "id" | "name" | "active" | "description" | "metadata" | "created" | "images" | "livemode" | "package_dimensions" | "shippable" | "statement_descriptor" | "unit_label" | "updated" | "url" | "marketing_features" | "default_price" | `metadata.${string}` | "package_dimensions.height" | "package_dimensions.length" | "package_dimensions.weight" | "package_dimensions.width">;
591
- last_synced_at: convex_values.VFloat64<number, "required">;
592
- }, "required", "stripe" | "productId" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.active" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.images" | "stripe.livemode" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.statement_descriptor" | "stripe.unit_label" | "stripe.updated" | "stripe.url" | "stripe.marketing_features" | "stripe.default_price" | `stripe.metadata.${string}` | "stripe.package_dimensions.height" | "stripe.package_dimensions.length" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
593
- byActive: ["stripe.active", "_creationTime"];
594
- byName: ["stripe.name", "_creationTime"];
595
- }, {}, {}>;
596
- convex_stripe_prices: convex_server.TableDefinition<convex_values.VObject<{
597
- stripe: {
598
- metadata?: Record<string, string | number | null> | null | undefined;
599
- object: string;
600
- id: string;
601
- productId: string;
602
- type: "one_time" | "recurring";
603
- active: boolean;
604
- created: number;
605
- livemode: boolean;
606
- recurring: {
607
- interval: "day" | "week" | "month" | "year";
608
- interval_count: number;
609
- trial_period_days: number | null;
610
- meter: string | null;
611
- usage_type: "licensed" | "metered";
612
- } | null;
613
- currency: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
614
- nickname: string | null;
615
- unit_amount: number | null;
616
- billing_scheme: "per_unit" | "tiered";
617
- lookup_key: string | null;
618
- tiers_mode: "graduated" | "volume" | null;
619
- transform_quantity: {
620
- divide_by: number;
621
- round: "up" | "down";
622
- } | null;
623
- unit_amount_decimal: string | null;
624
- };
625
- last_synced_at: number;
626
- priceId: string;
627
- }, {
628
- priceId: convex_values.VString<string, "required">;
629
- stripe: convex_values.VObject<{
630
- metadata?: Record<string, string | number | null> | null | undefined;
631
- object: string;
632
- id: string;
633
- productId: string;
634
- type: "one_time" | "recurring";
635
- active: boolean;
636
- created: number;
637
- livemode: boolean;
638
- recurring: {
639
- interval: "day" | "week" | "month" | "year";
640
- interval_count: number;
641
- trial_period_days: number | null;
642
- meter: string | null;
643
- usage_type: "licensed" | "metered";
644
- } | null;
645
- currency: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
646
- nickname: string | null;
647
- unit_amount: number | null;
648
- billing_scheme: "per_unit" | "tiered";
649
- lookup_key: string | null;
650
- tiers_mode: "graduated" | "volume" | null;
651
- transform_quantity: {
652
- divide_by: number;
653
- round: "up" | "down";
654
- } | null;
655
- unit_amount_decimal: string | null;
656
- }, {
657
- id: convex_values.VString<string, "required">;
658
- object: convex_values.VString<string, "required">;
659
- active: convex_values.VBoolean<boolean, "required">;
660
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>;
661
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
662
- nickname: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
663
- recurring: convex_values.VUnion<{
664
- interval: "day" | "week" | "month" | "year";
665
- interval_count: number;
666
- trial_period_days: number | null;
667
- meter: string | null;
668
- usage_type: "licensed" | "metered";
669
- } | null, [convex_values.VObject<{
670
- interval: "day" | "week" | "month" | "year";
671
- interval_count: number;
672
- trial_period_days: number | null;
673
- meter: string | null;
674
- usage_type: "licensed" | "metered";
675
- }, {
676
- interval: convex_values.VUnion<"day" | "week" | "month" | "year", [convex_values.VLiteral<"day", "required">, convex_values.VLiteral<"week", "required">, convex_values.VLiteral<"month", "required">, convex_values.VLiteral<"year", "required">], "required", never>;
677
- interval_count: convex_values.VFloat64<number, "required">;
678
- trial_period_days: convex_values.VUnion<number | null, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>;
679
- meter: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
680
- usage_type: convex_values.VUnion<"licensed" | "metered", [convex_values.VLiteral<"licensed", "required">, convex_values.VLiteral<"metered", "required">], "required", never>;
681
- }, "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">, convex_values.VNull<null, "required">], "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">;
682
- productId: convex_values.VString<string, "required">;
683
- type: convex_values.VUnion<"one_time" | "recurring", [convex_values.VLiteral<"one_time", "required">, convex_values.VLiteral<"recurring", "required">], "required", never>;
684
- unit_amount: convex_values.VUnion<number | null, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>;
685
- billing_scheme: convex_values.VUnion<"per_unit" | "tiered", [convex_values.VLiteral<"per_unit", "required">, convex_values.VLiteral<"tiered", "required">], "required", never>;
686
- created: convex_values.VFloat64<number, "required">;
687
- livemode: convex_values.VBoolean<boolean, "required">;
688
- lookup_key: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
689
- tiers_mode: convex_values.VUnion<"graduated" | "volume" | null, [convex_values.VLiteral<"graduated", "required">, convex_values.VLiteral<"volume", "required">, convex_values.VNull<null, "required">], "required", never>;
690
- transform_quantity: convex_values.VUnion<{
691
- divide_by: number;
692
- round: "up" | "down";
693
- } | null, [convex_values.VObject<{
694
- divide_by: number;
695
- round: "up" | "down";
696
- }, {
697
- divide_by: convex_values.VFloat64<number, "required">;
698
- round: convex_values.VUnion<"up" | "down", [convex_values.VLiteral<"up", "required">, convex_values.VLiteral<"down", "required">], "required", never>;
699
- }, "required", "divide_by" | "round">, convex_values.VNull<null, "required">], "required", "divide_by" | "round">;
700
- unit_amount_decimal: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
701
- }, "required", "object" | "id" | "productId" | "type" | "active" | "metadata" | "created" | "livemode" | `metadata.${string}` | "recurring" | "currency" | "nickname" | "unit_amount" | "billing_scheme" | "lookup_key" | "tiers_mode" | "transform_quantity" | "unit_amount_decimal" | "recurring.interval" | "recurring.interval_count" | "recurring.trial_period_days" | "recurring.meter" | "recurring.usage_type" | "transform_quantity.divide_by" | "transform_quantity.round">;
702
- last_synced_at: convex_values.VFloat64<number, "required">;
703
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.active" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "priceId" | "stripe.productId" | "stripe.type" | "stripe.recurring" | "stripe.currency" | "stripe.nickname" | "stripe.unit_amount" | "stripe.billing_scheme" | "stripe.lookup_key" | "stripe.tiers_mode" | "stripe.transform_quantity" | "stripe.unit_amount_decimal" | "stripe.recurring.interval" | "stripe.recurring.interval_count" | "stripe.recurring.trial_period_days" | "stripe.recurring.meter" | "stripe.recurring.usage_type" | "stripe.transform_quantity.divide_by" | "stripe.transform_quantity.round">, {
704
- byPriceId: ["priceId", "_creationTime"];
705
- byActive: ["stripe.active", "_creationTime"];
706
- byRecurringInterval: ["stripe.recurring.interval", "_creationTime"];
707
- byCurrency: ["stripe.currency", "_creationTime"];
708
- }, {}, {}>;
709
- convex_stripe_customers: convex_server.TableDefinition<convex_values.VObject<{
710
- stripe: {
711
- name?: string | null | undefined;
712
- description?: string | null | undefined;
713
- metadata?: Record<string, string | number | null> | null | undefined;
714
- currency?: string | null | undefined;
715
- address?: {
716
- city?: string | null | undefined;
717
- country?: string | null | undefined;
718
- line1?: string | null | undefined;
719
- line2?: string | null | undefined;
720
- postal_code?: string | null | undefined;
721
- state?: string | null | undefined;
722
- } | null | undefined;
723
- phone?: string | null | undefined;
724
- email?: string | null | undefined;
725
- shipping?: {
726
- name?: string | undefined;
727
- address?: {
728
- city?: string | null | undefined;
729
- country?: string | null | undefined;
730
- line1?: string | null | undefined;
731
- line2?: string | null | undefined;
732
- postal_code?: string | null | undefined;
733
- state?: string | null | undefined;
734
- } | undefined;
735
- phone?: string | null | undefined;
736
- carrier?: string | null | undefined;
737
- tracking_number?: string | null | undefined;
738
- } | null | undefined;
739
- tax?: {
740
- ip_address?: string | null | undefined;
741
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
742
- location: {
743
- state?: string | null | undefined;
744
- country: string;
745
- source: string;
746
- } | null;
747
- } | undefined;
748
- cash_balance?: any;
749
- default_source?: string | null | undefined;
750
- delinquent?: boolean | null | undefined;
751
- discount?: any;
752
- invoice_credit_balance?: any;
753
- invoice_prefix?: string | null | undefined;
754
- next_invoice_sequence?: number | null | undefined;
755
- preferred_locales?: string[] | null | undefined;
756
- sources?: any;
757
- subscriptions?: any;
758
- tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
759
- tax_ids?: any;
760
- test_clock?: string | null | undefined;
761
- object: string;
762
- id: string;
763
- created: number;
764
- livemode: boolean;
765
- balance: number;
766
- invoice_settings: any;
767
- };
768
- last_synced_at: number;
769
- customerId: string;
770
- entityId: string;
771
- }, {
772
- customerId: convex_values.VString<string, "required">;
773
- entityId: convex_values.VString<string, "required">;
774
- stripe: convex_values.VObject<{
775
- name?: string | null | undefined;
776
- description?: string | null | undefined;
777
- metadata?: Record<string, string | number | null> | null | undefined;
778
- currency?: string | null | undefined;
779
- address?: {
780
- city?: string | null | undefined;
781
- country?: string | null | undefined;
782
- line1?: string | null | undefined;
783
- line2?: string | null | undefined;
784
- postal_code?: string | null | undefined;
785
- state?: string | null | undefined;
786
- } | null | undefined;
787
- phone?: string | null | undefined;
788
- email?: string | null | undefined;
789
- shipping?: {
790
- name?: string | undefined;
791
- address?: {
792
- city?: string | null | undefined;
793
- country?: string | null | undefined;
794
- line1?: string | null | undefined;
795
- line2?: string | null | undefined;
796
- postal_code?: string | null | undefined;
797
- state?: string | null | undefined;
798
- } | undefined;
799
- phone?: string | null | undefined;
800
- carrier?: string | null | undefined;
801
- tracking_number?: string | null | undefined;
802
- } | null | undefined;
803
- tax?: {
804
- ip_address?: string | null | undefined;
805
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
806
- location: {
807
- state?: string | null | undefined;
808
- country: string;
809
- source: string;
810
- } | null;
811
- } | undefined;
812
- cash_balance?: any;
813
- default_source?: string | null | undefined;
814
- delinquent?: boolean | null | undefined;
815
- discount?: any;
816
- invoice_credit_balance?: any;
817
- invoice_prefix?: string | null | undefined;
818
- next_invoice_sequence?: number | null | undefined;
819
- preferred_locales?: string[] | null | undefined;
820
- sources?: any;
821
- subscriptions?: any;
822
- tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
823
- tax_ids?: any;
824
- test_clock?: string | null | undefined;
825
- object: string;
826
- id: string;
827
- created: number;
828
- livemode: boolean;
829
- balance: number;
830
- invoice_settings: any;
831
- }, {
832
- id: convex_values.VString<string, "required">;
833
- address: convex_values.VUnion<{
834
- city?: string | null | undefined;
835
- country?: string | null | undefined;
836
- line1?: string | null | undefined;
837
- line2?: string | null | undefined;
838
- postal_code?: string | null | undefined;
839
- state?: string | null | undefined;
840
- } | null | undefined, [convex_values.VObject<{
841
- city?: string | null | undefined;
842
- country?: string | null | undefined;
843
- line1?: string | null | undefined;
844
- line2?: string | null | undefined;
845
- postal_code?: string | null | undefined;
846
- state?: string | null | undefined;
847
- }, {
848
- city: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
849
- country: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
850
- line1: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
851
- line2: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
852
- postal_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
853
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
854
- }, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, convex_values.VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
855
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
856
- email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
857
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
858
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
859
- phone: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
860
- shipping: convex_values.VUnion<{
861
- name?: string | undefined;
862
- address?: {
863
- city?: string | null | undefined;
864
- country?: string | null | undefined;
865
- line1?: string | null | undefined;
866
- line2?: string | null | undefined;
867
- postal_code?: string | null | undefined;
868
- state?: string | null | undefined;
869
- } | undefined;
870
- phone?: string | null | undefined;
871
- carrier?: string | null | undefined;
872
- tracking_number?: string | null | undefined;
873
- } | null | undefined, [convex_values.VObject<{
874
- name?: string | undefined;
875
- address?: {
876
- city?: string | null | undefined;
877
- country?: string | null | undefined;
878
- line1?: string | null | undefined;
879
- line2?: string | null | undefined;
880
- postal_code?: string | null | undefined;
881
- state?: string | null | undefined;
882
- } | undefined;
883
- phone?: string | null | undefined;
884
- carrier?: string | null | undefined;
885
- tracking_number?: string | null | undefined;
886
- }, {
887
- address: convex_values.VObject<{
888
- city?: string | null | undefined;
889
- country?: string | null | undefined;
890
- line1?: string | null | undefined;
891
- line2?: string | null | undefined;
892
- postal_code?: string | null | undefined;
893
- state?: string | null | undefined;
894
- } | undefined, {
895
- city: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
896
- country: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
897
- line1: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
898
- line2: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
899
- postal_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
900
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
901
- }, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
902
- name: convex_values.VString<string | undefined, "optional">;
903
- phone: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
904
- carrier: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
905
- tracking_number: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
906
- }, "required", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">, convex_values.VNull<null, "required">], "optional", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
907
- tax: convex_values.VObject<{
908
- ip_address?: string | null | undefined;
909
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
910
- location: {
911
- state?: string | null | undefined;
912
- country: string;
913
- source: string;
914
- } | null;
915
- } | undefined, {
916
- automatic_tax: convex_values.VUnion<"failed" | "not_collecting" | "supported" | "unrecognized_location", [convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"not_collecting", "required">, convex_values.VLiteral<"supported", "required">, convex_values.VLiteral<"unrecognized_location", "required">], "required", never>;
917
- ip_address: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
918
- location: convex_values.VUnion<{
919
- state?: string | null | undefined;
920
- country: string;
921
- source: string;
922
- } | null, [convex_values.VObject<{
923
- state?: string | null | undefined;
924
- country: string;
925
- source: string;
926
- }, {
927
- country: convex_values.VString<string, "required">;
928
- source: convex_values.VString<string, "required">;
929
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
930
- }, "required", "country" | "state" | "source">, convex_values.VNull<null, "required">], "required", "country" | "state" | "source">;
931
- }, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
932
- object: convex_values.VString<string, "required">;
933
- balance: convex_values.VFloat64<number, "required">;
934
- cash_balance: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
935
- created: convex_values.VFloat64<number, "required">;
936
- currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
937
- default_source: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
938
- delinquent: convex_values.VUnion<boolean | null | undefined, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "optional", never>;
939
- discount: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
940
- invoice_credit_balance: convex_values.VAny<any, "optional", string>;
941
- invoice_prefix: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
942
- invoice_settings: convex_values.VAny<any, "required", string>;
943
- livemode: convex_values.VBoolean<boolean, "required">;
944
- next_invoice_sequence: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
945
- preferred_locales: convex_values.VUnion<string[] | null | undefined, [convex_values.VArray<string[], convex_values.VString<string, "required">, "required">, convex_values.VNull<null, "required">], "optional", never>;
946
- sources: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
947
- subscriptions: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
948
- tax_exempt: convex_values.VUnion<"reverse" | "exempt" | "none" | null | undefined, [convex_values.VLiteral<"exempt", "required">, convex_values.VLiteral<"none", "required">, convex_values.VLiteral<"reverse", "required">, convex_values.VNull<null, "required">], "optional", never>;
949
- tax_ids: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
950
- test_clock: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
951
- }, "required", "object" | "id" | "name" | "description" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "address" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "email" | "shipping" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "discount" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.name" | "shipping.address" | "shipping.phone" | "shipping.carrier" | "shipping.tracking_number" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `discount.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
952
- last_synced_at: convex_values.VFloat64<number, "required">;
953
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "customerId" | "entityId" | "stripe.address" | "stripe.phone" | "stripe.address.city" | "stripe.address.country" | "stripe.address.line1" | "stripe.address.line2" | "stripe.address.postal_code" | "stripe.address.state" | "stripe.email" | "stripe.shipping" | "stripe.tax" | "stripe.balance" | "stripe.cash_balance" | "stripe.default_source" | "stripe.delinquent" | "stripe.discount" | "stripe.invoice_credit_balance" | "stripe.invoice_prefix" | "stripe.invoice_settings" | "stripe.next_invoice_sequence" | "stripe.preferred_locales" | "stripe.sources" | "stripe.subscriptions" | "stripe.tax_exempt" | "stripe.tax_ids" | "stripe.test_clock" | "stripe.shipping.name" | "stripe.shipping.address" | "stripe.shipping.phone" | "stripe.shipping.carrier" | "stripe.shipping.tracking_number" | "stripe.shipping.address.city" | "stripe.shipping.address.country" | "stripe.shipping.address.line1" | "stripe.shipping.address.line2" | "stripe.shipping.address.postal_code" | "stripe.shipping.address.state" | "stripe.tax.automatic_tax" | "stripe.tax.ip_address" | "stripe.tax.location" | "stripe.tax.location.country" | "stripe.tax.location.state" | "stripe.tax.location.source" | `stripe.cash_balance.${string}` | `stripe.discount.${string}` | `stripe.invoice_credit_balance.${string}` | `stripe.invoice_settings.${string}` | `stripe.sources.${string}` | `stripe.subscriptions.${string}` | `stripe.tax_ids.${string}`>, {
954
- byCustomerId: ["customerId", "_creationTime"];
955
- byEntityId: ["entityId", "_creationTime"];
956
- }, {}, {}>;
957
- convex_stripe_subscriptions: convex_server.TableDefinition<convex_values.VObject<{
958
- stripe: any;
959
- last_synced_at: number;
960
- customerId: string;
961
- subscriptionId: string | null;
962
- }, {
963
- subscriptionId: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
964
- customerId: convex_values.VString<string, "required">;
965
- stripe: convex_values.VAny<any, "required", string>;
966
- last_synced_at: convex_values.VFloat64<number, "required">;
967
- }, "required", "stripe" | "last_synced_at" | "customerId" | "subscriptionId" | `stripe.${string}`>, {
968
- bySubscriptionId: ["subscriptionId", "_creationTime"];
969
- byCustomerId: ["customerId", "_creationTime"];
970
- }, {}, {}>;
971
- convex_stripe_coupons: convex_server.TableDefinition<convex_values.VObject<{
972
- stripe: {
973
- name?: string | null | undefined;
974
- metadata?: Record<string, string | number | null> | null | undefined;
975
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
976
- amount_off?: number | null | undefined;
977
- percent_off?: number | null | undefined;
978
- applies_to?: {
979
- products: string[];
980
- } | null | undefined;
981
- currency_options?: Record<string, {
982
- amount_off: number;
983
- }> | null | undefined;
984
- duration_in_months?: number | null | undefined;
985
- max_redemptions?: number | null | undefined;
986
- redeem_by?: number | null | undefined;
987
- object: string;
988
- id: string;
989
- created: number;
990
- livemode: boolean;
991
- duration: "forever" | "once" | "repeating";
992
- times_redeemed: number;
993
- valid: boolean;
994
- };
995
- last_synced_at: number;
996
- couponId: string;
997
- }, {
998
- couponId: convex_values.VString<string, "required">;
999
- stripe: convex_values.VObject<{
1000
- name?: string | null | undefined;
1001
- metadata?: Record<string, string | number | null> | null | undefined;
1002
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1003
- amount_off?: number | null | undefined;
1004
- percent_off?: number | null | undefined;
1005
- applies_to?: {
1006
- products: string[];
1007
- } | null | undefined;
1008
- currency_options?: Record<string, {
1009
- amount_off: number;
1010
- }> | null | undefined;
1011
- duration_in_months?: number | null | undefined;
1012
- max_redemptions?: number | null | undefined;
1013
- redeem_by?: number | null | undefined;
1014
- object: string;
1015
- id: string;
1016
- created: number;
1017
- livemode: boolean;
1018
- duration: "forever" | "once" | "repeating";
1019
- times_redeemed: number;
1020
- valid: boolean;
1021
- }, {
1022
- id: convex_values.VString<string, "required">;
1023
- amount_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1024
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
1025
- duration: convex_values.VUnion<"forever" | "once" | "repeating", [convex_values.VLiteral<"forever", "required">, convex_values.VLiteral<"once", "required">, convex_values.VLiteral<"repeating", "required">], "required", never>;
1026
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1027
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1028
- percent_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1029
- object: convex_values.VString<string, "required">;
1030
- applies_to: convex_values.VUnion<{
1031
- products: string[];
1032
- } | null | undefined, [convex_values.VObject<{
1033
- products: string[];
1034
- }, {
1035
- products: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
1036
- }, "required", "products">, convex_values.VNull<null, "required">], "optional", "products">;
1037
- created: convex_values.VFloat64<number, "required">;
1038
- currency_options: convex_values.VUnion<Record<string, {
1039
- amount_off: number;
1040
- }> | null | undefined, [convex_values.VRecord<Record<string, {
1041
- amount_off: number;
1042
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
1043
- amount_off: number;
1044
- }, {
1045
- amount_off: convex_values.VFloat64<number, "required">;
1046
- }, "required", "amount_off">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1047
- duration_in_months: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1048
- livemode: convex_values.VBoolean<boolean, "required">;
1049
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1050
- redeem_by: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1051
- times_redeemed: convex_values.VFloat64<number, "required">;
1052
- valid: convex_values.VBoolean<boolean, "required">;
1053
- }, "required", "object" | "id" | "name" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "amount_off" | "duration" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
1054
- last_synced_at: convex_values.VFloat64<number, "required">;
1055
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "couponId" | "stripe.amount_off" | "stripe.duration" | "stripe.percent_off" | "stripe.applies_to" | "stripe.currency_options" | "stripe.duration_in_months" | "stripe.max_redemptions" | "stripe.redeem_by" | "stripe.times_redeemed" | "stripe.valid" | "stripe.applies_to.products" | `stripe.currency_options.${string}`>, {
1056
- byCouponId: ["couponId", "_creationTime"];
1057
- }, {}, {}>;
1058
- convex_stripe_promotion_codes: convex_server.TableDefinition<convex_values.VObject<{
1059
- stripe: {
1060
- metadata?: Record<string, string | number | null> | null | undefined;
1061
- max_redemptions?: number | null | undefined;
1062
- customer?: string | null | undefined;
1063
- expires_at?: number | null | undefined;
1064
- object: string;
1065
- id: string;
1066
- active: boolean;
1067
- created: number;
1068
- livemode: boolean;
1069
- times_redeemed: number;
1070
- code: string;
1071
- coupon: {
1072
- name?: string | null | undefined;
1073
- metadata?: Record<string, string | number | null> | null | undefined;
1074
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1075
- amount_off?: number | null | undefined;
1076
- percent_off?: number | null | undefined;
1077
- applies_to?: {
1078
- products: string[];
1079
- } | null | undefined;
1080
- currency_options?: Record<string, {
1081
- amount_off: number;
1082
- }> | null | undefined;
1083
- duration_in_months?: number | null | undefined;
1084
- max_redemptions?: number | null | undefined;
1085
- redeem_by?: number | null | undefined;
1086
- object: string;
1087
- id: string;
1088
- created: number;
1089
- livemode: boolean;
1090
- duration: "forever" | "once" | "repeating";
1091
- times_redeemed: number;
1092
- valid: boolean;
1093
- };
1094
- restrictions: {
1095
- currency_options?: Record<string, {
1096
- minimum_amount?: number | null | undefined;
1097
- }> | null | undefined;
1098
- minimum_amount?: number | null | undefined;
1099
- first_time_transaction?: boolean | undefined;
1100
- minimum_amount_currency?: string | null | undefined;
1101
- };
1102
- };
1103
- last_synced_at: number;
1104
- promotionCodeId: string;
1105
- }, {
1106
- promotionCodeId: convex_values.VString<string, "required">;
1107
- stripe: convex_values.VObject<{
1108
- metadata?: Record<string, string | number | null> | null | undefined;
1109
- max_redemptions?: number | null | undefined;
1110
- customer?: string | null | undefined;
1111
- expires_at?: number | null | undefined;
1112
- object: string;
1113
- id: string;
1114
- active: boolean;
1115
- created: number;
1116
- livemode: boolean;
1117
- times_redeemed: number;
1118
- code: string;
1119
- coupon: {
1120
- name?: string | null | undefined;
1121
- metadata?: Record<string, string | number | null> | null | undefined;
1122
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1123
- amount_off?: number | null | undefined;
1124
- percent_off?: number | null | undefined;
1125
- applies_to?: {
1126
- products: string[];
1127
- } | null | undefined;
1128
- currency_options?: Record<string, {
1129
- amount_off: number;
1130
- }> | null | undefined;
1131
- duration_in_months?: number | null | undefined;
1132
- max_redemptions?: number | null | undefined;
1133
- redeem_by?: number | null | undefined;
1134
- object: string;
1135
- id: string;
1136
- created: number;
1137
- livemode: boolean;
1138
- duration: "forever" | "once" | "repeating";
1139
- times_redeemed: number;
1140
- valid: boolean;
1141
- };
1142
- restrictions: {
1143
- currency_options?: Record<string, {
1144
- minimum_amount?: number | null | undefined;
1145
- }> | null | undefined;
1146
- minimum_amount?: number | null | undefined;
1147
- first_time_transaction?: boolean | undefined;
1148
- minimum_amount_currency?: string | null | undefined;
1149
- };
1150
- }, {
1151
- id: convex_values.VString<string, "required">;
1152
- code: convex_values.VString<string, "required">;
1153
- coupon: convex_values.VObject<{
1154
- name?: string | null | undefined;
1155
- metadata?: Record<string, string | number | null> | null | undefined;
1156
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1157
- amount_off?: number | null | undefined;
1158
- percent_off?: number | null | undefined;
1159
- applies_to?: {
1160
- products: string[];
1161
- } | null | undefined;
1162
- currency_options?: Record<string, {
1163
- amount_off: number;
1164
- }> | null | undefined;
1165
- duration_in_months?: number | null | undefined;
1166
- max_redemptions?: number | null | undefined;
1167
- redeem_by?: number | null | undefined;
1168
- object: string;
1169
- id: string;
1170
- created: number;
1171
- livemode: boolean;
1172
- duration: "forever" | "once" | "repeating";
1173
- times_redeemed: number;
1174
- valid: boolean;
1175
- }, {
1176
- id: convex_values.VString<string, "required">;
1177
- amount_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1178
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
1179
- duration: convex_values.VUnion<"forever" | "once" | "repeating", [convex_values.VLiteral<"forever", "required">, convex_values.VLiteral<"once", "required">, convex_values.VLiteral<"repeating", "required">], "required", never>;
1180
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1181
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1182
- percent_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1183
- object: convex_values.VString<string, "required">;
1184
- applies_to: convex_values.VUnion<{
1185
- products: string[];
1186
- } | null | undefined, [convex_values.VObject<{
1187
- products: string[];
1188
- }, {
1189
- products: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
1190
- }, "required", "products">, convex_values.VNull<null, "required">], "optional", "products">;
1191
- created: convex_values.VFloat64<number, "required">;
1192
- currency_options: convex_values.VUnion<Record<string, {
1193
- amount_off: number;
1194
- }> | null | undefined, [convex_values.VRecord<Record<string, {
1195
- amount_off: number;
1196
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
1197
- amount_off: number;
1198
- }, {
1199
- amount_off: convex_values.VFloat64<number, "required">;
1200
- }, "required", "amount_off">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1201
- duration_in_months: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1202
- livemode: convex_values.VBoolean<boolean, "required">;
1203
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1204
- redeem_by: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1205
- times_redeemed: convex_values.VFloat64<number, "required">;
1206
- valid: convex_values.VBoolean<boolean, "required">;
1207
- }, "required", "object" | "id" | "name" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "amount_off" | "duration" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
1208
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1209
- object: convex_values.VString<string, "required">;
1210
- active: convex_values.VBoolean<boolean, "required">;
1211
- created: convex_values.VFloat64<number, "required">;
1212
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1213
- expires_at: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1214
- livemode: convex_values.VBoolean<boolean, "required">;
1215
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1216
- restrictions: convex_values.VObject<{
1217
- currency_options?: Record<string, {
1218
- minimum_amount?: number | null | undefined;
1219
- }> | null | undefined;
1220
- minimum_amount?: number | null | undefined;
1221
- first_time_transaction?: boolean | undefined;
1222
- minimum_amount_currency?: string | null | undefined;
1223
- }, {
1224
- currency_options: convex_values.VUnion<Record<string, {
1225
- minimum_amount?: number | null | undefined;
1226
- }> | null | undefined, [convex_values.VRecord<Record<string, {
1227
- minimum_amount?: number | null | undefined;
1228
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
1229
- minimum_amount?: number | null | undefined;
1230
- }, {
1231
- minimum_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1232
- }, "required", "minimum_amount">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1233
- first_time_transaction: convex_values.VBoolean<boolean | undefined, "optional">;
1234
- minimum_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1235
- minimum_amount_currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1236
- }, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
1237
- times_redeemed: convex_values.VFloat64<number, "required">;
1238
- }, "required", "object" | "id" | "active" | "metadata" | "created" | "livemode" | `metadata.${string}` | "max_redemptions" | "times_redeemed" | "code" | "coupon" | "customer" | "expires_at" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.name" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.currency" | "coupon.amount_off" | "coupon.duration" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
1239
- last_synced_at: convex_values.VFloat64<number, "required">;
1240
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.active" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.code" | "stripe.coupon" | "stripe.customer" | "stripe.expires_at" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.name" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.currency" | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
1241
- byPromotionCodeId: ["promotionCodeId", "_creationTime"];
1242
- }, {}, {}>;
1243
- convex_stripe_payouts: convex_server.TableDefinition<convex_values.VObject<{
1244
- stripe: {
1245
- description?: string | null | undefined;
1246
- metadata?: Record<string, string | number | null> | null | undefined;
1247
- statement_descriptor?: string | null | undefined;
1248
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1249
- application_only?: string | null | undefined;
1250
- application_fee_amount?: number | null | undefined;
1251
- balance_transaction?: string | null | undefined;
1252
- destination?: string | null | undefined;
1253
- failure_balance_transaction?: string | null | undefined;
1254
- failure_code?: string | null | undefined;
1255
- failure_message?: string | null | undefined;
1256
- original_payout?: string | null | undefined;
1257
- payout_method?: string | null | undefined;
1258
- reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
1259
- reversed_by?: string | null | undefined;
1260
- trace_id?: {
1261
- value?: string | null | undefined;
1262
- status: string;
1263
- } | null | undefined;
1264
- object: string;
1265
- id: string;
1266
- type: "bank_account" | "card";
1267
- created: number;
1268
- livemode: boolean;
1269
- status: string;
1270
- amount: number;
1271
- arrival_date: number;
1272
- automatic: boolean;
1273
- method: string;
1274
- source_type: string;
1275
- };
1276
- last_synced_at: number;
1277
- payoutId: string;
1278
- }, {
1279
- payoutId: convex_values.VString<string, "required">;
1280
- stripe: convex_values.VObject<{
1281
- description?: string | null | undefined;
1282
- metadata?: Record<string, string | number | null> | null | undefined;
1283
- statement_descriptor?: string | null | undefined;
1284
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
1285
- application_only?: string | null | undefined;
1286
- application_fee_amount?: number | null | undefined;
1287
- balance_transaction?: string | null | undefined;
1288
- destination?: string | null | undefined;
1289
- failure_balance_transaction?: string | null | undefined;
1290
- failure_code?: string | null | undefined;
1291
- failure_message?: string | null | undefined;
1292
- original_payout?: string | null | undefined;
1293
- payout_method?: string | null | undefined;
1294
- reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
1295
- reversed_by?: string | null | undefined;
1296
- trace_id?: {
1297
- value?: string | null | undefined;
1298
- status: string;
1299
- } | null | undefined;
1300
- object: string;
1301
- id: string;
1302
- type: "bank_account" | "card";
1303
- created: number;
1304
- livemode: boolean;
1305
- status: string;
1306
- amount: number;
1307
- arrival_date: number;
1308
- automatic: boolean;
1309
- method: string;
1310
- source_type: string;
1311
- }, {
1312
- id: convex_values.VString<string, "required">;
1313
- amount: convex_values.VFloat64<number, "required">;
1314
- arrival_date: convex_values.VFloat64<number, "required">;
1315
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
1316
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1317
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1318
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1319
- status: convex_values.VString<string, "required">;
1320
- object: convex_values.VString<string, "required">;
1321
- application_only: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1322
- application_fee_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1323
- automatic: convex_values.VBoolean<boolean, "required">;
1324
- balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1325
- created: convex_values.VFloat64<number, "required">;
1326
- destination: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1327
- failure_balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1328
- failure_code: convex_values.VUnion<string | null | undefined, [convex_values.VLiteral<"account_closed", "required">, convex_values.VLiteral<"account_frozen", "required">, convex_values.VLiteral<"bank_account_restricted", "required">, convex_values.VLiteral<"bank_ownership_changed", "required">, convex_values.VLiteral<"could_not_process", "required">, convex_values.VLiteral<"debit_not_authorized", "required">, convex_values.VLiteral<"declined", "required">, convex_values.VLiteral<"incorrect_account_holder_address", "required">, convex_values.VLiteral<"incorrect_account_holder_name", "required">, convex_values.VLiteral<"incorrect_account_holder_tax_id", "required">, convex_values.VLiteral<"incorrect_account_type", "required">, convex_values.VLiteral<"insufficient_funds", "required">, convex_values.VLiteral<"invalid_account_number", "required">, convex_values.VLiteral<"invalid_account_number_length", "required">, convex_values.VLiteral<"invalid_currency", "required">, convex_values.VLiteral<"no_account", "required">, convex_values.VLiteral<"unsupported_card", "required">, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1329
- failure_message: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1330
- livemode: convex_values.VBoolean<boolean, "required">;
1331
- method: convex_values.VString<string, "required">;
1332
- original_payout: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1333
- payout_method: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1334
- reconciliation_status: convex_values.VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"in_progress", "required">, convex_values.VLiteral<"not_applicable", "required">], "optional", never>;
1335
- reversed_by: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1336
- source_type: convex_values.VString<string, "required">;
1337
- trace_id: convex_values.VUnion<{
1338
- value?: string | null | undefined;
1339
- status: string;
1340
- } | null | undefined, [convex_values.VNull<null, "required">, convex_values.VObject<{
1341
- value?: string | null | undefined;
1342
- status: string;
1343
- }, {
1344
- status: convex_values.VString<string, "required">;
1345
- value: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1346
- }, "required", "status" | "value">], "optional", "status" | "value">;
1347
- type: convex_values.VUnion<"bank_account" | "card", [convex_values.VLiteral<"bank_account", "required">, convex_values.VLiteral<"card", "required">], "required", never>;
1348
- }, "required", "object" | "id" | "type" | "description" | "metadata" | "created" | "livemode" | "statement_descriptor" | `metadata.${string}` | "currency" | "status" | "amount" | "arrival_date" | "application_only" | "application_fee_amount" | "automatic" | "balance_transaction" | "destination" | "failure_balance_transaction" | "failure_code" | "failure_message" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
1349
- last_synced_at: convex_values.VFloat64<number, "required">;
1350
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.statement_descriptor" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.arrival_date" | "stripe.application_only" | "stripe.application_fee_amount" | "stripe.automatic" | "stripe.balance_transaction" | "stripe.destination" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.status" | "stripe.trace_id.value">, {
1351
- byPayoutId: ["payoutId", "_creationTime"];
1352
- }, {}, {}>;
1353
- convex_stripe_refunds: convex_server.TableDefinition<convex_values.VObject<{
1354
- stripe: {
1355
- description?: string | null | undefined;
1356
- metadata?: Record<string, string | number | null> | null | undefined;
1357
- status?: string | null | undefined;
1358
- balance_transaction?: string | null | undefined;
1359
- failure_balance_transaction?: string | null | undefined;
1360
- charge?: string | null | undefined;
1361
- payment_intent?: string | null | undefined;
1362
- reason?: string | null | undefined;
1363
- destination_details?: any;
1364
- failure_reason?: string | null | undefined;
1365
- instructions_email?: string | null | undefined;
1366
- next_action?: any;
1367
- pending_reason?: string | null | undefined;
1368
- receipt_number?: string | null | undefined;
1369
- source_transfer_reversal?: string | null | undefined;
1370
- transfer_reversal?: string | null | undefined;
1371
- object: string;
1372
- id: string;
1373
- created: number;
1374
- currency: string;
1375
- amount: number;
1376
- };
1377
- last_synced_at: number;
1378
- refundId: string;
1379
- }, {
1380
- refundId: convex_values.VString<string, "required">;
1381
- stripe: convex_values.VObject<{
1382
- description?: string | null | undefined;
1383
- metadata?: Record<string, string | number | null> | null | undefined;
1384
- status?: string | null | undefined;
1385
- balance_transaction?: string | null | undefined;
1386
- failure_balance_transaction?: string | null | undefined;
1387
- charge?: string | null | undefined;
1388
- payment_intent?: string | null | undefined;
1389
- reason?: string | null | undefined;
1390
- destination_details?: any;
1391
- failure_reason?: string | null | undefined;
1392
- instructions_email?: string | null | undefined;
1393
- next_action?: any;
1394
- pending_reason?: string | null | undefined;
1395
- receipt_number?: string | null | undefined;
1396
- source_transfer_reversal?: string | null | undefined;
1397
- transfer_reversal?: string | null | undefined;
1398
- object: string;
1399
- id: string;
1400
- created: number;
1401
- currency: string;
1402
- amount: number;
1403
- }, {
1404
- id: convex_values.VString<string, "required">;
1405
- amount: convex_values.VFloat64<number, "required">;
1406
- charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1407
- currency: convex_values.VUnion<string, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">], "required", never>;
1408
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1409
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1410
- payment_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1411
- reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1412
- status: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1413
- object: convex_values.VString<string, "required">;
1414
- balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1415
- created: convex_values.VFloat64<number, "required">;
1416
- destination_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VObject<{}, {}, "required", never>, convex_values.VNull<null, "required">], "optional", string>;
1417
- failure_balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1418
- failure_reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1419
- instructions_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1420
- next_action: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VObject<{}, {}, "required", never>, convex_values.VNull<null, "required">], "optional", string>;
1421
- pending_reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1422
- receipt_number: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1423
- source_transfer_reversal: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1424
- transfer_reversal: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1425
- }, "required", "object" | "id" | "description" | "metadata" | "created" | `metadata.${string}` | "currency" | "status" | "amount" | "balance_transaction" | "failure_balance_transaction" | "charge" | "payment_intent" | "reason" | "destination_details" | "failure_reason" | "instructions_email" | "next_action" | "pending_reason" | "receipt_number" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}` | `next_action.${string}`>;
1426
- last_synced_at: convex_values.VFloat64<number, "required">;
1427
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.failure_balance_transaction" | "refundId" | "stripe.charge" | "stripe.payment_intent" | "stripe.reason" | "stripe.destination_details" | "stripe.failure_reason" | "stripe.instructions_email" | "stripe.next_action" | "stripe.pending_reason" | "stripe.receipt_number" | "stripe.source_transfer_reversal" | "stripe.transfer_reversal" | `stripe.destination_details.${string}` | `stripe.next_action.${string}`>, {
1428
- byRefundId: ["refundId", "_creationTime"];
1429
- }, {}, {}>;
1430
- convex_stripe_payment_intents: convex_server.TableDefinition<convex_values.VObject<{
1431
- stripe: {
1432
- description?: string | null | undefined;
1433
- metadata?: Record<string, string | number | null> | null | undefined;
1434
- statement_descriptor?: string | null | undefined;
1435
- shipping?: any;
1436
- customer?: string | null | undefined;
1437
- application_fee_amount?: number | null | undefined;
1438
- next_action?: any;
1439
- payment_method?: string | null | undefined;
1440
- last_payment_error?: {
1441
- code?: string | null | undefined;
1442
- charge?: string | null | undefined;
1443
- advice_code?: string | null | undefined;
1444
- decline_code?: string | null | undefined;
1445
- doc_url?: string | null | undefined;
1446
- message?: string | null | undefined;
1447
- network_advice_code?: string | null | undefined;
1448
- network_decline_code?: string | null | undefined;
1449
- param?: string | null | undefined;
1450
- payment_method?: any;
1451
- payment_method_type?: string | null | undefined;
1452
- last_payment_error?: any;
1453
- latest_charge?: string | null | undefined;
1454
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
1455
- } | null | undefined;
1456
- latest_charge?: string | null | undefined;
1457
- processing?: any;
1458
- automatic_payment_methods?: {
1459
- allow_redirects?: "always" | "never" | null | undefined;
1460
- enabled: boolean;
1461
- } | null | undefined;
1462
- client_secret?: string | null | undefined;
1463
- receipt_email?: string | null | undefined;
1464
- statement_descriptor_suffix?: string | null | undefined;
1465
- amount_details?: {
1466
- tip?: {
1467
- amount?: number | null | undefined;
1468
- } | null | undefined;
1469
- } | null | undefined;
1470
- application?: string | null | undefined;
1471
- canceled_at?: number | null | undefined;
1472
- cancellation_reason?: "automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
1473
- on_behalf_of?: string | null | undefined;
1474
- payment_method_configuration_details?: {
1475
- parent?: string | null | undefined;
1476
- id: string;
1477
- } | null | undefined;
1478
- payment_method_options?: any;
1479
- presentment_details?: any;
1480
- review?: string | null | undefined;
1481
- transfer_data?: any;
1482
- transfer_group?: string | null | undefined;
1483
- object: string;
1484
- id: string;
1485
- created: number;
1486
- livemode: boolean;
1487
- currency: string | null;
1488
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
1489
- amount: number;
1490
- setup_future_usage: "off_session" | "on_session" | null;
1491
- amount_capturable: number;
1492
- amount_received: number;
1493
- capture_method: "automatic" | "automatic_sync" | "automatic_async" | "manual";
1494
- confirmation_method: "automatic" | "manual";
1495
- excluded_payment_method_types: string[] | null;
1496
- payment_method_types: string[];
1497
- };
1498
- last_synced_at: number;
1499
- paymentIntentId: string;
1500
- }, {
1501
- paymentIntentId: convex_values.VString<string, "required">;
1502
- stripe: convex_values.VObject<{
1503
- description?: string | null | undefined;
1504
- metadata?: Record<string, string | number | null> | null | undefined;
1505
- statement_descriptor?: string | null | undefined;
1506
- shipping?: any;
1507
- customer?: string | null | undefined;
1508
- application_fee_amount?: number | null | undefined;
1509
- next_action?: any;
1510
- payment_method?: string | null | undefined;
1511
- last_payment_error?: {
1512
- code?: string | null | undefined;
1513
- charge?: string | null | undefined;
1514
- advice_code?: string | null | undefined;
1515
- decline_code?: string | null | undefined;
1516
- doc_url?: string | null | undefined;
1517
- message?: string | null | undefined;
1518
- network_advice_code?: string | null | undefined;
1519
- network_decline_code?: string | null | undefined;
1520
- param?: string | null | undefined;
1521
- payment_method?: any;
1522
- payment_method_type?: string | null | undefined;
1523
- last_payment_error?: any;
1524
- latest_charge?: string | null | undefined;
1525
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
1526
- } | null | undefined;
1527
- latest_charge?: string | null | undefined;
1528
- processing?: any;
1529
- automatic_payment_methods?: {
1530
- allow_redirects?: "always" | "never" | null | undefined;
1531
- enabled: boolean;
1532
- } | null | undefined;
1533
- client_secret?: string | null | undefined;
1534
- receipt_email?: string | null | undefined;
1535
- statement_descriptor_suffix?: string | null | undefined;
1536
- amount_details?: {
1537
- tip?: {
1538
- amount?: number | null | undefined;
1539
- } | null | undefined;
1540
- } | null | undefined;
1541
- application?: string | null | undefined;
1542
- canceled_at?: number | null | undefined;
1543
- cancellation_reason?: "automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
1544
- on_behalf_of?: string | null | undefined;
1545
- payment_method_configuration_details?: {
1546
- parent?: string | null | undefined;
1547
- id: string;
1548
- } | null | undefined;
1549
- payment_method_options?: any;
1550
- presentment_details?: any;
1551
- review?: string | null | undefined;
1552
- transfer_data?: any;
1553
- transfer_group?: string | null | undefined;
1554
- object: string;
1555
- id: string;
1556
- created: number;
1557
- livemode: boolean;
1558
- currency: string | null;
1559
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
1560
- amount: number;
1561
- setup_future_usage: "off_session" | "on_session" | null;
1562
- amount_capturable: number;
1563
- amount_received: number;
1564
- capture_method: "automatic" | "automatic_sync" | "automatic_async" | "manual";
1565
- confirmation_method: "automatic" | "manual";
1566
- excluded_payment_method_types: string[] | null;
1567
- payment_method_types: string[];
1568
- }, {
1569
- id: convex_values.VString<string, "required">;
1570
- amount: convex_values.VFloat64<number, "required">;
1571
- automatic_payment_methods: convex_values.VUnion<{
1572
- allow_redirects?: "always" | "never" | null | undefined;
1573
- enabled: boolean;
1574
- } | null | undefined, [convex_values.VObject<{
1575
- allow_redirects?: "always" | "never" | null | undefined;
1576
- enabled: boolean;
1577
- }, {
1578
- allow_redirects: convex_values.VUnion<"always" | "never" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"never", "required">, convex_values.VNull<null, "required">], "optional", never>;
1579
- enabled: convex_values.VBoolean<boolean, "required">;
1580
- }, "required", "allow_redirects" | "enabled">, convex_values.VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
1581
- client_secret: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1582
- currency: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
1583
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1584
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1585
- last_payment_error: convex_values.VUnion<{
1586
- code?: string | null | undefined;
1587
- charge?: string | null | undefined;
1588
- advice_code?: string | null | undefined;
1589
- decline_code?: string | null | undefined;
1590
- doc_url?: string | null | undefined;
1591
- message?: string | null | undefined;
1592
- network_advice_code?: string | null | undefined;
1593
- network_decline_code?: string | null | undefined;
1594
- param?: string | null | undefined;
1595
- payment_method?: any;
1596
- payment_method_type?: string | null | undefined;
1597
- last_payment_error?: any;
1598
- latest_charge?: string | null | undefined;
1599
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
1600
- } | null | undefined, [convex_values.VObject<{
1601
- code?: string | null | undefined;
1602
- charge?: string | null | undefined;
1603
- advice_code?: string | null | undefined;
1604
- decline_code?: string | null | undefined;
1605
- doc_url?: string | null | undefined;
1606
- message?: string | null | undefined;
1607
- network_advice_code?: string | null | undefined;
1608
- network_decline_code?: string | null | undefined;
1609
- param?: string | null | undefined;
1610
- payment_method?: any;
1611
- payment_method_type?: string | null | undefined;
1612
- last_payment_error?: any;
1613
- latest_charge?: string | null | undefined;
1614
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
1615
- }, {
1616
- advice_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1617
- charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1618
- code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1619
- decline_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1620
- doc_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1621
- message: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1622
- network_advice_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1623
- network_decline_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1624
- param: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1625
- payment_method: convex_values.VAny<any, "optional", string>;
1626
- payment_method_type: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1627
- last_payment_error: convex_values.VAny<any, "optional", string>;
1628
- type: convex_values.VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [convex_values.VLiteral<"api_error", "required">, convex_values.VLiteral<"card_error", "required">, convex_values.VLiteral<"idempotency_error", "required">, convex_values.VLiteral<"invalid_request_error", "required">], "required", never>;
1629
- latest_charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1630
- }, "required", "type" | "code" | "charge" | "advice_code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, convex_values.VNull<null, "required">], "optional", "type" | "code" | "charge" | "advice_code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
1631
- latest_charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1632
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1633
- next_action: convex_values.VAny<any, "optional", string>;
1634
- payment_method: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1635
- receipt_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1636
- setup_future_usage: convex_values.VUnion<"off_session" | "on_session" | null, [convex_values.VLiteral<"off_session", "required">, convex_values.VLiteral<"on_session", "required">, convex_values.VNull<null, "required">], "required", never>;
1637
- shipping: convex_values.VAny<any, "optional", string>;
1638
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1639
- statement_descriptor_suffix: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1640
- status: convex_values.VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [convex_values.VLiteral<"canceled", "required">, convex_values.VLiteral<"processing", "required">, convex_values.VLiteral<"requires_action", "required">, convex_values.VLiteral<"requires_capture", "required">, convex_values.VLiteral<"requires_confirmation", "required">, convex_values.VLiteral<"requires_payment_method", "required">, convex_values.VLiteral<"succeeded", "required">], "required", never>;
1641
- object: convex_values.VString<string, "required">;
1642
- amount_capturable: convex_values.VFloat64<number, "required">;
1643
- amount_details: convex_values.VUnion<{
1644
- tip?: {
1645
- amount?: number | null | undefined;
1646
- } | null | undefined;
1647
- } | null | undefined, [convex_values.VObject<{
1648
- tip?: {
1649
- amount?: number | null | undefined;
1650
- } | null | undefined;
1651
- }, {
1652
- tip: convex_values.VUnion<{
1653
- amount?: number | null | undefined;
1654
- } | null | undefined, [convex_values.VObject<{
1655
- amount?: number | null | undefined;
1656
- }, {
1657
- amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1658
- }, "required", "amount">, convex_values.VNull<null, "required">], "optional", "amount">;
1659
- }, "required", "tip" | "tip.amount">, convex_values.VNull<null, "required">], "optional", "tip" | "tip.amount">;
1660
- amount_received: convex_values.VFloat64<number, "required">;
1661
- application: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1662
- application_fee_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1663
- canceled_at: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1664
- cancellation_reason: convex_values.VUnion<"automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [convex_values.VLiteral<"abandoned", "required">, convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"duplicate", "required">, convex_values.VLiteral<"expired", "required">, convex_values.VLiteral<"failed_invoice", "required">, convex_values.VLiteral<"fraudulent", "required">, convex_values.VLiteral<"requested_by_customer", "required">, convex_values.VLiteral<"void_invoice", "required">, convex_values.VNull<null, "required">], "optional", never>;
1665
- capture_method: convex_values.VUnion<"automatic" | "automatic_sync" | "automatic_async" | "manual", [convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"automatic_sync", "required">, convex_values.VLiteral<"automatic_async", "required">, convex_values.VLiteral<"manual", "required">], "required", never>;
1666
- confirmation_method: convex_values.VUnion<"automatic" | "manual", [convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"manual", "required">], "required", never>;
1667
- created: convex_values.VFloat64<number, "required">;
1668
- excluded_payment_method_types: convex_values.VUnion<string[] | null, [convex_values.VArray<string[], convex_values.VString<string, "required">, "required">, convex_values.VNull<null, "required">], "required", never>;
1669
- livemode: convex_values.VBoolean<boolean, "required">;
1670
- on_behalf_of: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1671
- payment_method_configuration_details: convex_values.VUnion<{
1672
- parent?: string | null | undefined;
1673
- id: string;
1674
- } | null | undefined, [convex_values.VObject<{
1675
- parent?: string | null | undefined;
1676
- id: string;
1677
- }, {
1678
- id: convex_values.VString<string, "required">;
1679
- parent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1680
- }, "required", "id" | "parent">, convex_values.VNull<null, "required">], "optional", "id" | "parent">;
1681
- payment_method_options: convex_values.VAny<any, "optional", string>;
1682
- payment_method_types: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
1683
- presentment_details: convex_values.VAny<any, "optional", string>;
1684
- processing: convex_values.VAny<any, "optional", string>;
1685
- review: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1686
- transfer_data: convex_values.VAny<any, "optional", string>;
1687
- transfer_group: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1688
- }, "required", "object" | "id" | "description" | "metadata" | "created" | "livemode" | "statement_descriptor" | `metadata.${string}` | "currency" | "shipping" | "customer" | "status" | "amount" | "application_fee_amount" | "next_action" | `next_action.${string}` | "payment_method" | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "client_secret" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "on_behalf_of" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.code" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | "amount_details.tip" | "amount_details.tip.amount" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `payment_method_options.${string}` | `presentment_details.${string}` | `transfer_data.${string}`>;
1689
- last_synced_at: convex_values.VFloat64<number, "required">;
1690
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.statement_descriptor" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.status" | "stripe.amount" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.payment_method" | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.client_secret" | "stripe.receipt_email" | "stripe.setup_future_usage" | "stripe.statement_descriptor_suffix" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.application" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.on_behalf_of" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | "stripe.last_payment_error.type" | "stripe.last_payment_error.code" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.allow_redirects" | "stripe.automatic_payment_methods.enabled" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}`>, {
1691
- byPaymentIntentId: ["paymentIntentId", "_creationTime"];
1692
- }, {}, {}>;
1693
- convex_stripe_checkout_sessions: convex_server.TableDefinition<convex_values.VObject<{
1694
- stripe: {
1695
- metadata?: Record<string, string | number | null> | null | undefined;
1696
- url?: string | null | undefined;
1697
- currency?: string | null | undefined;
1698
- customer?: string | null | undefined;
1699
- payment_intent?: string | null | undefined;
1700
- client_secret?: string | null | undefined;
1701
- payment_method_configuration_details?: any;
1702
- payment_method_options?: any;
1703
- presentment_details?: any;
1704
- subscription?: string | null | undefined;
1705
- client_reference_id?: string | null | undefined;
1706
- customer_email?: string | null | undefined;
1707
- line_items?: any[] | null | undefined;
1708
- return_url?: string | null | undefined;
1709
- success_url?: string | null | undefined;
1710
- ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
1711
- adaptive_pricing?: any;
1712
- after_expiration?: any;
1713
- allow_promotion_codes?: boolean | null | undefined;
1714
- amount_subtotal?: number | null | undefined;
1715
- amount_total?: number | null | undefined;
1716
- billing_address_collection?: "required" | "auto" | null | undefined;
1717
- cancel_url?: string | null | undefined;
1718
- collected_information?: any;
1719
- consent?: any;
1720
- consent_collection?: any;
1721
- currency_conversion?: any;
1722
- customer_creation?: "always" | "if_required" | null | undefined;
1723
- customer_details?: any;
1724
- discounts?: any[] | null | undefined;
1725
- invoice?: string | null | undefined;
1726
- invoice_creation?: any;
1727
- locale?: string | null | undefined;
1728
- optional_items?: any[] | null | undefined;
1729
- origin_context?: "mobile_app" | "web" | null | undefined;
1730
- payment_link?: string | null | undefined;
1731
- payment_method_collection?: "always" | "if_required" | null | undefined;
1732
- permissions?: any;
1733
- phone_number_collection?: any;
1734
- recovered_from?: string | null | undefined;
1735
- redirect_on_completion?: "always" | "never" | "if_required" | null | undefined;
1736
- saved_payment_method_options?: any;
1737
- setup_intent?: string | null | undefined;
1738
- shipping_address_collection?: any;
1739
- shipping_cost?: any;
1740
- submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
1741
- tax_id_collection?: any;
1742
- total_details?: any;
1743
- wallet_options?: any;
1744
- object: string;
1745
- id: string;
1746
- created: number;
1747
- livemode: boolean;
1748
- automatic_tax: any;
1749
- expires_at: number;
1750
- status: "expired" | "complete" | "open" | null;
1751
- payment_method_types: string[];
1752
- mode: "payment" | "setup" | "subscription";
1753
- payment_status: "no_payment_required" | "paid" | "unpaid";
1754
- custom_fields: any[];
1755
- custom_text: any;
1756
- shipping_options: any[];
1757
- };
1758
- last_synced_at: number;
1759
- checkoutSessionId: string;
1760
- }, {
1761
- checkoutSessionId: convex_values.VString<string, "required">;
1762
- stripe: convex_values.VObject<{
1763
- metadata?: Record<string, string | number | null> | null | undefined;
1764
- url?: string | null | undefined;
1765
- currency?: string | null | undefined;
1766
- customer?: string | null | undefined;
1767
- payment_intent?: string | null | undefined;
1768
- client_secret?: string | null | undefined;
1769
- payment_method_configuration_details?: any;
1770
- payment_method_options?: any;
1771
- presentment_details?: any;
1772
- subscription?: string | null | undefined;
1773
- client_reference_id?: string | null | undefined;
1774
- customer_email?: string | null | undefined;
1775
- line_items?: any[] | null | undefined;
1776
- return_url?: string | null | undefined;
1777
- success_url?: string | null | undefined;
1778
- ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
1779
- adaptive_pricing?: any;
1780
- after_expiration?: any;
1781
- allow_promotion_codes?: boolean | null | undefined;
1782
- amount_subtotal?: number | null | undefined;
1783
- amount_total?: number | null | undefined;
1784
- billing_address_collection?: "required" | "auto" | null | undefined;
1785
- cancel_url?: string | null | undefined;
1786
- collected_information?: any;
1787
- consent?: any;
1788
- consent_collection?: any;
1789
- currency_conversion?: any;
1790
- customer_creation?: "always" | "if_required" | null | undefined;
1791
- customer_details?: any;
1792
- discounts?: any[] | null | undefined;
1793
- invoice?: string | null | undefined;
1794
- invoice_creation?: any;
1795
- locale?: string | null | undefined;
1796
- optional_items?: any[] | null | undefined;
1797
- origin_context?: "mobile_app" | "web" | null | undefined;
1798
- payment_link?: string | null | undefined;
1799
- payment_method_collection?: "always" | "if_required" | null | undefined;
1800
- permissions?: any;
1801
- phone_number_collection?: any;
1802
- recovered_from?: string | null | undefined;
1803
- redirect_on_completion?: "always" | "never" | "if_required" | null | undefined;
1804
- saved_payment_method_options?: any;
1805
- setup_intent?: string | null | undefined;
1806
- shipping_address_collection?: any;
1807
- shipping_cost?: any;
1808
- submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
1809
- tax_id_collection?: any;
1810
- total_details?: any;
1811
- wallet_options?: any;
1812
- object: string;
1813
- id: string;
1814
- created: number;
1815
- livemode: boolean;
1816
- automatic_tax: any;
1817
- expires_at: number;
1818
- status: "expired" | "complete" | "open" | null;
1819
- payment_method_types: string[];
1820
- mode: "payment" | "setup" | "subscription";
1821
- payment_status: "no_payment_required" | "paid" | "unpaid";
1822
- custom_fields: any[];
1823
- custom_text: any;
1824
- shipping_options: any[];
1825
- }, {
1826
- id: convex_values.VString<string, "required">;
1827
- automatic_tax: convex_values.VAny<any, "required", string>;
1828
- client_reference_id: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1829
- currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1830
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1831
- customer_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1832
- line_items: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
1833
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1834
- mode: convex_values.VUnion<"payment" | "setup" | "subscription", [convex_values.VLiteral<"payment", "required">, convex_values.VLiteral<"setup", "required">, convex_values.VLiteral<"subscription", "required">], "required", never>;
1835
- payment_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1836
- payment_status: convex_values.VUnion<"no_payment_required" | "paid" | "unpaid", [convex_values.VLiteral<"no_payment_required", "required">, convex_values.VLiteral<"paid", "required">, convex_values.VLiteral<"unpaid", "required">], "required", never>;
1837
- return_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1838
- status: convex_values.VUnion<"expired" | "complete" | "open" | null, [convex_values.VLiteral<"complete", "required">, convex_values.VLiteral<"expired", "required">, convex_values.VLiteral<"open", "required">, convex_values.VNull<null, "required">], "required", never>;
1839
- success_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1840
- ui_mode: convex_values.VUnion<"custom" | "embedded" | "hosted" | null | undefined, [convex_values.VLiteral<"custom", "required">, convex_values.VLiteral<"embedded", "required">, convex_values.VLiteral<"hosted", "required">, convex_values.VNull<null, "required">], "optional", never>;
1841
- url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1842
- object: convex_values.VString<string, "required">;
1843
- adaptive_pricing: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1844
- after_expiration: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1845
- allow_promotion_codes: convex_values.VUnion<boolean | null | undefined, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "optional", never>;
1846
- amount_subtotal: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1847
- amount_total: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
1848
- billing_address_collection: convex_values.VUnion<"required" | "auto" | null | undefined, [convex_values.VLiteral<"auto", "required">, convex_values.VLiteral<"required", "required">, convex_values.VNull<null, "required">], "optional", never>;
1849
- cancel_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1850
- client_secret: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1851
- collected_information: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1852
- consent: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1853
- consent_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1854
- created: convex_values.VFloat64<number, "required">;
1855
- currency_conversion: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1856
- custom_fields: convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">;
1857
- custom_text: convex_values.VAny<any, "required", string>;
1858
- customer_creation: convex_values.VUnion<"always" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VNull<null, "required">], "optional", never>;
1859
- customer_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1860
- discounts: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
1861
- expires_at: convex_values.VFloat64<number, "required">;
1862
- invoice: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1863
- invoice_creation: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1864
- livemode: convex_values.VBoolean<boolean, "required">;
1865
- locale: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1866
- optional_items: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
1867
- origin_context: convex_values.VUnion<"mobile_app" | "web" | null | undefined, [convex_values.VLiteral<"mobile_app", "required">, convex_values.VLiteral<"web", "required">, convex_values.VNull<null, "required">], "optional", never>;
1868
- payment_link: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1869
- payment_method_collection: convex_values.VUnion<"always" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VNull<null, "required">], "optional", never>;
1870
- payment_method_configuration_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1871
- payment_method_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1872
- payment_method_types: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
1873
- permissions: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1874
- phone_number_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1875
- presentment_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1876
- recovered_from: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1877
- redirect_on_completion: convex_values.VUnion<"always" | "never" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VLiteral<"never", "required">, convex_values.VNull<null, "required">], "optional", never>;
1878
- saved_payment_method_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1879
- setup_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1880
- shipping_address_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1881
- shipping_cost: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1882
- shipping_options: convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">;
1883
- submit_type: convex_values.VUnion<"auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined, [convex_values.VLiteral<"auto", "required">, convex_values.VLiteral<"book", "required">, convex_values.VLiteral<"donate", "required">, convex_values.VLiteral<"pay", "required">, convex_values.VLiteral<"subscribe", "required">, convex_values.VNull<null, "required">], "optional", never>;
1884
- subscription: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1885
- tax_id_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1886
- total_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1887
- wallet_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1888
- }, "required", "object" | "id" | "metadata" | "created" | "livemode" | "url" | `metadata.${string}` | "currency" | "automatic_tax" | "customer" | "expires_at" | "status" | "payment_intent" | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `payment_method_options.${string}` | `presentment_details.${string}` | "subscription" | "client_reference_id" | "customer_email" | "line_items" | "mode" | "payment_status" | "return_url" | "success_url" | "ui_mode" | "adaptive_pricing" | "after_expiration" | "allow_promotion_codes" | "amount_subtotal" | "amount_total" | "billing_address_collection" | "cancel_url" | "collected_information" | "consent" | "consent_collection" | "currency_conversion" | "custom_fields" | "custom_text" | "customer_creation" | "customer_details" | "discounts" | "invoice" | "invoice_creation" | "locale" | "optional_items" | "origin_context" | "payment_link" | "payment_method_collection" | "permissions" | "phone_number_collection" | "recovered_from" | "redirect_on_completion" | "saved_payment_method_options" | "setup_intent" | "shipping_address_collection" | "shipping_cost" | "shipping_options" | "submit_type" | "tax_id_collection" | "total_details" | "wallet_options" | `automatic_tax.${string}` | `payment_method_configuration_details.${string}` | `adaptive_pricing.${string}` | `after_expiration.${string}` | `collected_information.${string}` | `consent.${string}` | `consent_collection.${string}` | `currency_conversion.${string}` | `custom_text.${string}` | `customer_details.${string}` | `invoice_creation.${string}` | `permissions.${string}` | `phone_number_collection.${string}` | `saved_payment_method_options.${string}` | `shipping_address_collection.${string}` | `shipping_cost.${string}` | `tax_id_collection.${string}` | `total_details.${string}` | `wallet_options.${string}`>;
1889
- last_synced_at: convex_values.VFloat64<number, "required">;
1890
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.url" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.customer" | "stripe.expires_at" | "stripe.status" | "stripe.payment_intent" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "checkoutSessionId" | "stripe.automatic_tax" | "stripe.subscription" | "stripe.client_reference_id" | "stripe.customer_email" | "stripe.line_items" | "stripe.mode" | "stripe.payment_status" | "stripe.return_url" | "stripe.success_url" | "stripe.ui_mode" | "stripe.adaptive_pricing" | "stripe.after_expiration" | "stripe.allow_promotion_codes" | "stripe.amount_subtotal" | "stripe.amount_total" | "stripe.billing_address_collection" | "stripe.cancel_url" | "stripe.collected_information" | "stripe.consent" | "stripe.consent_collection" | "stripe.currency_conversion" | "stripe.custom_fields" | "stripe.custom_text" | "stripe.customer_creation" | "stripe.customer_details" | "stripe.discounts" | "stripe.invoice" | "stripe.invoice_creation" | "stripe.locale" | "stripe.optional_items" | "stripe.origin_context" | "stripe.payment_link" | "stripe.payment_method_collection" | "stripe.permissions" | "stripe.phone_number_collection" | "stripe.recovered_from" | "stripe.redirect_on_completion" | "stripe.saved_payment_method_options" | "stripe.setup_intent" | "stripe.shipping_address_collection" | "stripe.shipping_cost" | "stripe.shipping_options" | "stripe.submit_type" | "stripe.tax_id_collection" | "stripe.total_details" | "stripe.wallet_options" | `stripe.automatic_tax.${string}` | `stripe.payment_method_configuration_details.${string}` | `stripe.adaptive_pricing.${string}` | `stripe.after_expiration.${string}` | `stripe.collected_information.${string}` | `stripe.consent.${string}` | `stripe.consent_collection.${string}` | `stripe.currency_conversion.${string}` | `stripe.custom_text.${string}` | `stripe.customer_details.${string}` | `stripe.invoice_creation.${string}` | `stripe.permissions.${string}` | `stripe.phone_number_collection.${string}` | `stripe.saved_payment_method_options.${string}` | `stripe.shipping_address_collection.${string}` | `stripe.shipping_cost.${string}` | `stripe.tax_id_collection.${string}` | `stripe.total_details.${string}` | `stripe.wallet_options.${string}`>, {
1891
- byCheckoutSessionId: ["checkoutSessionId", "_creationTime"];
1892
- }, {}, {}>;
1893
- };
1894
- declare const defaultSchema: convex_server.SchemaDefinition<{
1895
- convex_stripe_products: convex_server.TableDefinition<convex_values.VObject<{
1896
- stripe: {
1897
- metadata?: Record<string, string | number | null> | null | undefined;
1898
- statement_descriptor?: string | null | undefined;
1899
- unit_label?: string | null | undefined;
1900
- object: string;
1901
- id: string;
1902
- name: string;
1903
- active: boolean;
1904
- description: string | null;
1905
- created: number;
1906
- images: string[];
1907
- livemode: boolean;
1908
- package_dimensions: {
1909
- height: number;
1910
- length: number;
1911
- weight: number;
1912
- width: number;
1913
- } | null;
1914
- shippable: boolean | null;
1915
- updated: number;
1916
- url: string | null;
1917
- marketing_features: {
1918
- name?: string | null | undefined;
1919
- }[];
1920
- default_price: string | null;
1921
- };
1922
- productId: string;
1923
- last_synced_at: number;
1924
- }, {
1925
- productId: convex_values.VString<string, "required">;
1926
- stripe: convex_values.VObject<{
1927
- metadata?: Record<string, string | number | null> | null | undefined;
1928
- statement_descriptor?: string | null | undefined;
1929
- unit_label?: string | null | undefined;
1930
- object: string;
1931
- id: string;
1932
- name: string;
1933
- active: boolean;
1934
- description: string | null;
1935
- created: number;
1936
- images: string[];
1937
- livemode: boolean;
1938
- package_dimensions: {
1939
- height: number;
1940
- length: number;
1941
- weight: number;
1942
- width: number;
1943
- } | null;
1944
- shippable: boolean | null;
1945
- updated: number;
1946
- url: string | null;
1947
- marketing_features: {
1948
- name?: string | null | undefined;
1949
- }[];
1950
- default_price: string | null;
1951
- }, {
1952
- id: convex_values.VString<string, "required">;
1953
- object: convex_values.VString<string, "required">;
1954
- active: convex_values.VBoolean<boolean, "required">;
1955
- description: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
1956
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
1957
- name: convex_values.VString<string, "required">;
1958
- created: convex_values.VFloat64<number, "required">;
1959
- images: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
1960
- livemode: convex_values.VBoolean<boolean, "required">;
1961
- package_dimensions: convex_values.VUnion<{
1962
- height: number;
1963
- length: number;
1964
- weight: number;
1965
- width: number;
1966
- } | null, [convex_values.VObject<{
1967
- height: number;
1968
- length: number;
1969
- weight: number;
1970
- width: number;
1971
- }, {
1972
- height: convex_values.VFloat64<number, "required">;
1973
- length: convex_values.VFloat64<number, "required">;
1974
- weight: convex_values.VFloat64<number, "required">;
1975
- width: convex_values.VFloat64<number, "required">;
1976
- }, "required", "height" | "length" | "weight" | "width">, convex_values.VNull<null, "required">], "required", "height" | "length" | "weight" | "width">;
1977
- shippable: convex_values.VUnion<boolean | null, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "required", never>;
1978
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1979
- unit_label: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1980
- updated: convex_values.VFloat64<number, "required">;
1981
- url: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
1982
- marketing_features: convex_values.VArray<{
1983
- name?: string | null | undefined;
1984
- }[], convex_values.VObject<{
1985
- name?: string | null | undefined;
1986
- }, {
1987
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
1988
- }, "required", "name">, "required">;
1989
- default_price: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
1990
- }, "required", "object" | "id" | "name" | "active" | "description" | "metadata" | "created" | "images" | "livemode" | "package_dimensions" | "shippable" | "statement_descriptor" | "unit_label" | "updated" | "url" | "marketing_features" | "default_price" | `metadata.${string}` | "package_dimensions.height" | "package_dimensions.length" | "package_dimensions.weight" | "package_dimensions.width">;
1991
- last_synced_at: convex_values.VFloat64<number, "required">;
1992
- }, "required", "stripe" | "productId" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.active" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.images" | "stripe.livemode" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.statement_descriptor" | "stripe.unit_label" | "stripe.updated" | "stripe.url" | "stripe.marketing_features" | "stripe.default_price" | `stripe.metadata.${string}` | "stripe.package_dimensions.height" | "stripe.package_dimensions.length" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
1993
- byActive: ["stripe.active", "_creationTime"];
1994
- byName: ["stripe.name", "_creationTime"];
1995
- }, {}, {}>;
1996
- convex_stripe_prices: convex_server.TableDefinition<convex_values.VObject<{
1997
- stripe: {
1998
- metadata?: Record<string, string | number | null> | null | undefined;
1999
- object: string;
2000
- id: string;
2001
- productId: string;
2002
- type: "one_time" | "recurring";
2003
- active: boolean;
2004
- created: number;
2005
- livemode: boolean;
2006
- recurring: {
2007
- interval: "day" | "week" | "month" | "year";
2008
- interval_count: number;
2009
- trial_period_days: number | null;
2010
- meter: string | null;
2011
- usage_type: "licensed" | "metered";
2012
- } | null;
2013
- currency: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
2014
- nickname: string | null;
2015
- unit_amount: number | null;
2016
- billing_scheme: "per_unit" | "tiered";
2017
- lookup_key: string | null;
2018
- tiers_mode: "graduated" | "volume" | null;
2019
- transform_quantity: {
2020
- divide_by: number;
2021
- round: "up" | "down";
2022
- } | null;
2023
- unit_amount_decimal: string | null;
2024
- };
2025
- last_synced_at: number;
2026
- priceId: string;
2027
- }, {
2028
- priceId: convex_values.VString<string, "required">;
2029
- stripe: convex_values.VObject<{
2030
- metadata?: Record<string, string | number | null> | null | undefined;
2031
- object: string;
2032
- id: string;
2033
- productId: string;
2034
- type: "one_time" | "recurring";
2035
- active: boolean;
2036
- created: number;
2037
- livemode: boolean;
2038
- recurring: {
2039
- interval: "day" | "week" | "month" | "year";
2040
- interval_count: number;
2041
- trial_period_days: number | null;
2042
- meter: string | null;
2043
- usage_type: "licensed" | "metered";
2044
- } | null;
2045
- currency: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
2046
- nickname: string | null;
2047
- unit_amount: number | null;
2048
- billing_scheme: "per_unit" | "tiered";
2049
- lookup_key: string | null;
2050
- tiers_mode: "graduated" | "volume" | null;
2051
- transform_quantity: {
2052
- divide_by: number;
2053
- round: "up" | "down";
2054
- } | null;
2055
- unit_amount_decimal: string | null;
2056
- }, {
2057
- id: convex_values.VString<string, "required">;
2058
- object: convex_values.VString<string, "required">;
2059
- active: convex_values.VBoolean<boolean, "required">;
2060
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>;
2061
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2062
- nickname: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2063
- recurring: convex_values.VUnion<{
2064
- interval: "day" | "week" | "month" | "year";
2065
- interval_count: number;
2066
- trial_period_days: number | null;
2067
- meter: string | null;
2068
- usage_type: "licensed" | "metered";
2069
- } | null, [convex_values.VObject<{
2070
- interval: "day" | "week" | "month" | "year";
2071
- interval_count: number;
2072
- trial_period_days: number | null;
2073
- meter: string | null;
2074
- usage_type: "licensed" | "metered";
2075
- }, {
2076
- interval: convex_values.VUnion<"day" | "week" | "month" | "year", [convex_values.VLiteral<"day", "required">, convex_values.VLiteral<"week", "required">, convex_values.VLiteral<"month", "required">, convex_values.VLiteral<"year", "required">], "required", never>;
2077
- interval_count: convex_values.VFloat64<number, "required">;
2078
- trial_period_days: convex_values.VUnion<number | null, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>;
2079
- meter: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2080
- usage_type: convex_values.VUnion<"licensed" | "metered", [convex_values.VLiteral<"licensed", "required">, convex_values.VLiteral<"metered", "required">], "required", never>;
2081
- }, "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">, convex_values.VNull<null, "required">], "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">;
2082
- productId: convex_values.VString<string, "required">;
2083
- type: convex_values.VUnion<"one_time" | "recurring", [convex_values.VLiteral<"one_time", "required">, convex_values.VLiteral<"recurring", "required">], "required", never>;
2084
- unit_amount: convex_values.VUnion<number | null, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>;
2085
- billing_scheme: convex_values.VUnion<"per_unit" | "tiered", [convex_values.VLiteral<"per_unit", "required">, convex_values.VLiteral<"tiered", "required">], "required", never>;
2086
- created: convex_values.VFloat64<number, "required">;
2087
- livemode: convex_values.VBoolean<boolean, "required">;
2088
- lookup_key: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2089
- tiers_mode: convex_values.VUnion<"graduated" | "volume" | null, [convex_values.VLiteral<"graduated", "required">, convex_values.VLiteral<"volume", "required">, convex_values.VNull<null, "required">], "required", never>;
2090
- transform_quantity: convex_values.VUnion<{
2091
- divide_by: number;
2092
- round: "up" | "down";
2093
- } | null, [convex_values.VObject<{
2094
- divide_by: number;
2095
- round: "up" | "down";
2096
- }, {
2097
- divide_by: convex_values.VFloat64<number, "required">;
2098
- round: convex_values.VUnion<"up" | "down", [convex_values.VLiteral<"up", "required">, convex_values.VLiteral<"down", "required">], "required", never>;
2099
- }, "required", "divide_by" | "round">, convex_values.VNull<null, "required">], "required", "divide_by" | "round">;
2100
- unit_amount_decimal: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2101
- }, "required", "object" | "id" | "productId" | "type" | "active" | "metadata" | "created" | "livemode" | `metadata.${string}` | "recurring" | "currency" | "nickname" | "unit_amount" | "billing_scheme" | "lookup_key" | "tiers_mode" | "transform_quantity" | "unit_amount_decimal" | "recurring.interval" | "recurring.interval_count" | "recurring.trial_period_days" | "recurring.meter" | "recurring.usage_type" | "transform_quantity.divide_by" | "transform_quantity.round">;
2102
- last_synced_at: convex_values.VFloat64<number, "required">;
2103
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.active" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "priceId" | "stripe.productId" | "stripe.type" | "stripe.recurring" | "stripe.currency" | "stripe.nickname" | "stripe.unit_amount" | "stripe.billing_scheme" | "stripe.lookup_key" | "stripe.tiers_mode" | "stripe.transform_quantity" | "stripe.unit_amount_decimal" | "stripe.recurring.interval" | "stripe.recurring.interval_count" | "stripe.recurring.trial_period_days" | "stripe.recurring.meter" | "stripe.recurring.usage_type" | "stripe.transform_quantity.divide_by" | "stripe.transform_quantity.round">, {
2104
- byPriceId: ["priceId", "_creationTime"];
2105
- byActive: ["stripe.active", "_creationTime"];
2106
- byRecurringInterval: ["stripe.recurring.interval", "_creationTime"];
2107
- byCurrency: ["stripe.currency", "_creationTime"];
2108
- }, {}, {}>;
2109
- convex_stripe_customers: convex_server.TableDefinition<convex_values.VObject<{
2110
- stripe: {
2111
- name?: string | null | undefined;
2112
- description?: string | null | undefined;
2113
- metadata?: Record<string, string | number | null> | null | undefined;
2114
- currency?: string | null | undefined;
2115
- address?: {
2116
- city?: string | null | undefined;
2117
- country?: string | null | undefined;
2118
- line1?: string | null | undefined;
2119
- line2?: string | null | undefined;
2120
- postal_code?: string | null | undefined;
2121
- state?: string | null | undefined;
2122
- } | null | undefined;
2123
- phone?: string | null | undefined;
2124
- email?: string | null | undefined;
2125
- shipping?: {
2126
- name?: string | undefined;
2127
- address?: {
2128
- city?: string | null | undefined;
2129
- country?: string | null | undefined;
2130
- line1?: string | null | undefined;
2131
- line2?: string | null | undefined;
2132
- postal_code?: string | null | undefined;
2133
- state?: string | null | undefined;
2134
- } | undefined;
2135
- phone?: string | null | undefined;
2136
- carrier?: string | null | undefined;
2137
- tracking_number?: string | null | undefined;
2138
- } | null | undefined;
2139
- tax?: {
2140
- ip_address?: string | null | undefined;
2141
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
2142
- location: {
2143
- state?: string | null | undefined;
2144
- country: string;
2145
- source: string;
2146
- } | null;
2147
- } | undefined;
2148
- cash_balance?: any;
2149
- default_source?: string | null | undefined;
2150
- delinquent?: boolean | null | undefined;
2151
- discount?: any;
2152
- invoice_credit_balance?: any;
2153
- invoice_prefix?: string | null | undefined;
2154
- next_invoice_sequence?: number | null | undefined;
2155
- preferred_locales?: string[] | null | undefined;
2156
- sources?: any;
2157
- subscriptions?: any;
2158
- tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
2159
- tax_ids?: any;
2160
- test_clock?: string | null | undefined;
2161
- object: string;
2162
- id: string;
2163
- created: number;
2164
- livemode: boolean;
2165
- balance: number;
2166
- invoice_settings: any;
2167
- };
2168
- last_synced_at: number;
2169
- customerId: string;
2170
- entityId: string;
2171
- }, {
2172
- customerId: convex_values.VString<string, "required">;
2173
- entityId: convex_values.VString<string, "required">;
2174
- stripe: convex_values.VObject<{
2175
- name?: string | null | undefined;
2176
- description?: string | null | undefined;
2177
- metadata?: Record<string, string | number | null> | null | undefined;
2178
- currency?: string | null | undefined;
2179
- address?: {
2180
- city?: string | null | undefined;
2181
- country?: string | null | undefined;
2182
- line1?: string | null | undefined;
2183
- line2?: string | null | undefined;
2184
- postal_code?: string | null | undefined;
2185
- state?: string | null | undefined;
2186
- } | null | undefined;
2187
- phone?: string | null | undefined;
2188
- email?: string | null | undefined;
2189
- shipping?: {
2190
- name?: string | undefined;
2191
- address?: {
2192
- city?: string | null | undefined;
2193
- country?: string | null | undefined;
2194
- line1?: string | null | undefined;
2195
- line2?: string | null | undefined;
2196
- postal_code?: string | null | undefined;
2197
- state?: string | null | undefined;
2198
- } | undefined;
2199
- phone?: string | null | undefined;
2200
- carrier?: string | null | undefined;
2201
- tracking_number?: string | null | undefined;
2202
- } | null | undefined;
2203
- tax?: {
2204
- ip_address?: string | null | undefined;
2205
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
2206
- location: {
2207
- state?: string | null | undefined;
2208
- country: string;
2209
- source: string;
2210
- } | null;
2211
- } | undefined;
2212
- cash_balance?: any;
2213
- default_source?: string | null | undefined;
2214
- delinquent?: boolean | null | undefined;
2215
- discount?: any;
2216
- invoice_credit_balance?: any;
2217
- invoice_prefix?: string | null | undefined;
2218
- next_invoice_sequence?: number | null | undefined;
2219
- preferred_locales?: string[] | null | undefined;
2220
- sources?: any;
2221
- subscriptions?: any;
2222
- tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
2223
- tax_ids?: any;
2224
- test_clock?: string | null | undefined;
2225
- object: string;
2226
- id: string;
2227
- created: number;
2228
- livemode: boolean;
2229
- balance: number;
2230
- invoice_settings: any;
2231
- }, {
2232
- id: convex_values.VString<string, "required">;
2233
- address: convex_values.VUnion<{
2234
- city?: string | null | undefined;
2235
- country?: string | null | undefined;
2236
- line1?: string | null | undefined;
2237
- line2?: string | null | undefined;
2238
- postal_code?: string | null | undefined;
2239
- state?: string | null | undefined;
2240
- } | null | undefined, [convex_values.VObject<{
2241
- city?: string | null | undefined;
2242
- country?: string | null | undefined;
2243
- line1?: string | null | undefined;
2244
- line2?: string | null | undefined;
2245
- postal_code?: string | null | undefined;
2246
- state?: string | null | undefined;
2247
- }, {
2248
- city: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2249
- country: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2250
- line1: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2251
- line2: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2252
- postal_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2253
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2254
- }, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, convex_values.VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
2255
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2256
- email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2257
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2258
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2259
- phone: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2260
- shipping: convex_values.VUnion<{
2261
- name?: string | undefined;
2262
- address?: {
2263
- city?: string | null | undefined;
2264
- country?: string | null | undefined;
2265
- line1?: string | null | undefined;
2266
- line2?: string | null | undefined;
2267
- postal_code?: string | null | undefined;
2268
- state?: string | null | undefined;
2269
- } | undefined;
2270
- phone?: string | null | undefined;
2271
- carrier?: string | null | undefined;
2272
- tracking_number?: string | null | undefined;
2273
- } | null | undefined, [convex_values.VObject<{
2274
- name?: string | undefined;
2275
- address?: {
2276
- city?: string | null | undefined;
2277
- country?: string | null | undefined;
2278
- line1?: string | null | undefined;
2279
- line2?: string | null | undefined;
2280
- postal_code?: string | null | undefined;
2281
- state?: string | null | undefined;
2282
- } | undefined;
2283
- phone?: string | null | undefined;
2284
- carrier?: string | null | undefined;
2285
- tracking_number?: string | null | undefined;
2286
- }, {
2287
- address: convex_values.VObject<{
2288
- city?: string | null | undefined;
2289
- country?: string | null | undefined;
2290
- line1?: string | null | undefined;
2291
- line2?: string | null | undefined;
2292
- postal_code?: string | null | undefined;
2293
- state?: string | null | undefined;
2294
- } | undefined, {
2295
- city: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2296
- country: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2297
- line1: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2298
- line2: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2299
- postal_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2300
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2301
- }, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
2302
- name: convex_values.VString<string | undefined, "optional">;
2303
- phone: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2304
- carrier: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2305
- tracking_number: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2306
- }, "required", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">, convex_values.VNull<null, "required">], "optional", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
2307
- tax: convex_values.VObject<{
2308
- ip_address?: string | null | undefined;
2309
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
2310
- location: {
2311
- state?: string | null | undefined;
2312
- country: string;
2313
- source: string;
2314
- } | null;
2315
- } | undefined, {
2316
- automatic_tax: convex_values.VUnion<"failed" | "not_collecting" | "supported" | "unrecognized_location", [convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"not_collecting", "required">, convex_values.VLiteral<"supported", "required">, convex_values.VLiteral<"unrecognized_location", "required">], "required", never>;
2317
- ip_address: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2318
- location: convex_values.VUnion<{
2319
- state?: string | null | undefined;
2320
- country: string;
2321
- source: string;
2322
- } | null, [convex_values.VObject<{
2323
- state?: string | null | undefined;
2324
- country: string;
2325
- source: string;
2326
- }, {
2327
- country: convex_values.VString<string, "required">;
2328
- source: convex_values.VString<string, "required">;
2329
- state: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2330
- }, "required", "country" | "state" | "source">, convex_values.VNull<null, "required">], "required", "country" | "state" | "source">;
2331
- }, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
2332
- object: convex_values.VString<string, "required">;
2333
- balance: convex_values.VFloat64<number, "required">;
2334
- cash_balance: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2335
- created: convex_values.VFloat64<number, "required">;
2336
- currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2337
- default_source: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2338
- delinquent: convex_values.VUnion<boolean | null | undefined, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "optional", never>;
2339
- discount: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2340
- invoice_credit_balance: convex_values.VAny<any, "optional", string>;
2341
- invoice_prefix: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2342
- invoice_settings: convex_values.VAny<any, "required", string>;
2343
- livemode: convex_values.VBoolean<boolean, "required">;
2344
- next_invoice_sequence: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2345
- preferred_locales: convex_values.VUnion<string[] | null | undefined, [convex_values.VArray<string[], convex_values.VString<string, "required">, "required">, convex_values.VNull<null, "required">], "optional", never>;
2346
- sources: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2347
- subscriptions: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2348
- tax_exempt: convex_values.VUnion<"reverse" | "exempt" | "none" | null | undefined, [convex_values.VLiteral<"exempt", "required">, convex_values.VLiteral<"none", "required">, convex_values.VLiteral<"reverse", "required">, convex_values.VNull<null, "required">], "optional", never>;
2349
- tax_ids: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2350
- test_clock: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2351
- }, "required", "object" | "id" | "name" | "description" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "address" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "email" | "shipping" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "discount" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.name" | "shipping.address" | "shipping.phone" | "shipping.carrier" | "shipping.tracking_number" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `discount.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
2352
- last_synced_at: convex_values.VFloat64<number, "required">;
2353
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "customerId" | "entityId" | "stripe.address" | "stripe.phone" | "stripe.address.city" | "stripe.address.country" | "stripe.address.line1" | "stripe.address.line2" | "stripe.address.postal_code" | "stripe.address.state" | "stripe.email" | "stripe.shipping" | "stripe.tax" | "stripe.balance" | "stripe.cash_balance" | "stripe.default_source" | "stripe.delinquent" | "stripe.discount" | "stripe.invoice_credit_balance" | "stripe.invoice_prefix" | "stripe.invoice_settings" | "stripe.next_invoice_sequence" | "stripe.preferred_locales" | "stripe.sources" | "stripe.subscriptions" | "stripe.tax_exempt" | "stripe.tax_ids" | "stripe.test_clock" | "stripe.shipping.name" | "stripe.shipping.address" | "stripe.shipping.phone" | "stripe.shipping.carrier" | "stripe.shipping.tracking_number" | "stripe.shipping.address.city" | "stripe.shipping.address.country" | "stripe.shipping.address.line1" | "stripe.shipping.address.line2" | "stripe.shipping.address.postal_code" | "stripe.shipping.address.state" | "stripe.tax.automatic_tax" | "stripe.tax.ip_address" | "stripe.tax.location" | "stripe.tax.location.country" | "stripe.tax.location.state" | "stripe.tax.location.source" | `stripe.cash_balance.${string}` | `stripe.discount.${string}` | `stripe.invoice_credit_balance.${string}` | `stripe.invoice_settings.${string}` | `stripe.sources.${string}` | `stripe.subscriptions.${string}` | `stripe.tax_ids.${string}`>, {
2354
- byCustomerId: ["customerId", "_creationTime"];
2355
- byEntityId: ["entityId", "_creationTime"];
2356
- }, {}, {}>;
2357
- convex_stripe_subscriptions: convex_server.TableDefinition<convex_values.VObject<{
2358
- stripe: any;
2359
- last_synced_at: number;
2360
- customerId: string;
2361
- subscriptionId: string | null;
2362
- }, {
2363
- subscriptionId: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2364
- customerId: convex_values.VString<string, "required">;
2365
- stripe: convex_values.VAny<any, "required", string>;
2366
- last_synced_at: convex_values.VFloat64<number, "required">;
2367
- }, "required", "stripe" | "last_synced_at" | "customerId" | "subscriptionId" | `stripe.${string}`>, {
2368
- bySubscriptionId: ["subscriptionId", "_creationTime"];
2369
- byCustomerId: ["customerId", "_creationTime"];
2370
- }, {}, {}>;
2371
- convex_stripe_coupons: convex_server.TableDefinition<convex_values.VObject<{
2372
- stripe: {
2373
- name?: string | null | undefined;
2374
- metadata?: Record<string, string | number | null> | null | undefined;
2375
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2376
- amount_off?: number | null | undefined;
2377
- percent_off?: number | null | undefined;
2378
- applies_to?: {
2379
- products: string[];
2380
- } | null | undefined;
2381
- currency_options?: Record<string, {
2382
- amount_off: number;
2383
- }> | null | undefined;
2384
- duration_in_months?: number | null | undefined;
2385
- max_redemptions?: number | null | undefined;
2386
- redeem_by?: number | null | undefined;
2387
- object: string;
2388
- id: string;
2389
- created: number;
2390
- livemode: boolean;
2391
- duration: "forever" | "once" | "repeating";
2392
- times_redeemed: number;
2393
- valid: boolean;
2394
- };
2395
- last_synced_at: number;
2396
- couponId: string;
2397
- }, {
2398
- couponId: convex_values.VString<string, "required">;
2399
- stripe: convex_values.VObject<{
2400
- name?: string | null | undefined;
2401
- metadata?: Record<string, string | number | null> | null | undefined;
2402
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2403
- amount_off?: number | null | undefined;
2404
- percent_off?: number | null | undefined;
2405
- applies_to?: {
2406
- products: string[];
2407
- } | null | undefined;
2408
- currency_options?: Record<string, {
2409
- amount_off: number;
2410
- }> | null | undefined;
2411
- duration_in_months?: number | null | undefined;
2412
- max_redemptions?: number | null | undefined;
2413
- redeem_by?: number | null | undefined;
2414
- object: string;
2415
- id: string;
2416
- created: number;
2417
- livemode: boolean;
2418
- duration: "forever" | "once" | "repeating";
2419
- times_redeemed: number;
2420
- valid: boolean;
2421
- }, {
2422
- id: convex_values.VString<string, "required">;
2423
- amount_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2424
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
2425
- duration: convex_values.VUnion<"forever" | "once" | "repeating", [convex_values.VLiteral<"forever", "required">, convex_values.VLiteral<"once", "required">, convex_values.VLiteral<"repeating", "required">], "required", never>;
2426
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2427
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2428
- percent_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2429
- object: convex_values.VString<string, "required">;
2430
- applies_to: convex_values.VUnion<{
2431
- products: string[];
2432
- } | null | undefined, [convex_values.VObject<{
2433
- products: string[];
2434
- }, {
2435
- products: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
2436
- }, "required", "products">, convex_values.VNull<null, "required">], "optional", "products">;
2437
- created: convex_values.VFloat64<number, "required">;
2438
- currency_options: convex_values.VUnion<Record<string, {
2439
- amount_off: number;
2440
- }> | null | undefined, [convex_values.VRecord<Record<string, {
2441
- amount_off: number;
2442
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
2443
- amount_off: number;
2444
- }, {
2445
- amount_off: convex_values.VFloat64<number, "required">;
2446
- }, "required", "amount_off">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2447
- duration_in_months: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2448
- livemode: convex_values.VBoolean<boolean, "required">;
2449
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2450
- redeem_by: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2451
- times_redeemed: convex_values.VFloat64<number, "required">;
2452
- valid: convex_values.VBoolean<boolean, "required">;
2453
- }, "required", "object" | "id" | "name" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "amount_off" | "duration" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
2454
- last_synced_at: convex_values.VFloat64<number, "required">;
2455
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "couponId" | "stripe.amount_off" | "stripe.duration" | "stripe.percent_off" | "stripe.applies_to" | "stripe.currency_options" | "stripe.duration_in_months" | "stripe.max_redemptions" | "stripe.redeem_by" | "stripe.times_redeemed" | "stripe.valid" | "stripe.applies_to.products" | `stripe.currency_options.${string}`>, {
2456
- byCouponId: ["couponId", "_creationTime"];
2457
- }, {}, {}>;
2458
- convex_stripe_promotion_codes: convex_server.TableDefinition<convex_values.VObject<{
2459
- stripe: {
2460
- metadata?: Record<string, string | number | null> | null | undefined;
2461
- max_redemptions?: number | null | undefined;
2462
- customer?: string | null | undefined;
2463
- expires_at?: number | null | undefined;
2464
- object: string;
2465
- id: string;
2466
- active: boolean;
2467
- created: number;
2468
- livemode: boolean;
2469
- times_redeemed: number;
2470
- code: string;
2471
- coupon: {
2472
- name?: string | null | undefined;
2473
- metadata?: Record<string, string | number | null> | null | undefined;
2474
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2475
- amount_off?: number | null | undefined;
2476
- percent_off?: number | null | undefined;
2477
- applies_to?: {
2478
- products: string[];
2479
- } | null | undefined;
2480
- currency_options?: Record<string, {
2481
- amount_off: number;
2482
- }> | null | undefined;
2483
- duration_in_months?: number | null | undefined;
2484
- max_redemptions?: number | null | undefined;
2485
- redeem_by?: number | null | undefined;
2486
- object: string;
2487
- id: string;
2488
- created: number;
2489
- livemode: boolean;
2490
- duration: "forever" | "once" | "repeating";
2491
- times_redeemed: number;
2492
- valid: boolean;
2493
- };
2494
- restrictions: {
2495
- currency_options?: Record<string, {
2496
- minimum_amount?: number | null | undefined;
2497
- }> | null | undefined;
2498
- minimum_amount?: number | null | undefined;
2499
- first_time_transaction?: boolean | undefined;
2500
- minimum_amount_currency?: string | null | undefined;
2501
- };
2502
- };
2503
- last_synced_at: number;
2504
- promotionCodeId: string;
2505
- }, {
2506
- promotionCodeId: convex_values.VString<string, "required">;
2507
- stripe: convex_values.VObject<{
2508
- metadata?: Record<string, string | number | null> | null | undefined;
2509
- max_redemptions?: number | null | undefined;
2510
- customer?: string | null | undefined;
2511
- expires_at?: number | null | undefined;
2512
- object: string;
2513
- id: string;
2514
- active: boolean;
2515
- created: number;
2516
- livemode: boolean;
2517
- times_redeemed: number;
2518
- code: string;
2519
- coupon: {
2520
- name?: string | null | undefined;
2521
- metadata?: Record<string, string | number | null> | null | undefined;
2522
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2523
- amount_off?: number | null | undefined;
2524
- percent_off?: number | null | undefined;
2525
- applies_to?: {
2526
- products: string[];
2527
- } | null | undefined;
2528
- currency_options?: Record<string, {
2529
- amount_off: number;
2530
- }> | null | undefined;
2531
- duration_in_months?: number | null | undefined;
2532
- max_redemptions?: number | null | undefined;
2533
- redeem_by?: number | null | undefined;
2534
- object: string;
2535
- id: string;
2536
- created: number;
2537
- livemode: boolean;
2538
- duration: "forever" | "once" | "repeating";
2539
- times_redeemed: number;
2540
- valid: boolean;
2541
- };
2542
- restrictions: {
2543
- currency_options?: Record<string, {
2544
- minimum_amount?: number | null | undefined;
2545
- }> | null | undefined;
2546
- minimum_amount?: number | null | undefined;
2547
- first_time_transaction?: boolean | undefined;
2548
- minimum_amount_currency?: string | null | undefined;
2549
- };
2550
- }, {
2551
- id: convex_values.VString<string, "required">;
2552
- code: convex_values.VString<string, "required">;
2553
- coupon: convex_values.VObject<{
2554
- name?: string | null | undefined;
2555
- metadata?: Record<string, string | number | null> | null | undefined;
2556
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2557
- amount_off?: number | null | undefined;
2558
- percent_off?: number | null | undefined;
2559
- applies_to?: {
2560
- products: string[];
2561
- } | null | undefined;
2562
- currency_options?: Record<string, {
2563
- amount_off: number;
2564
- }> | null | undefined;
2565
- duration_in_months?: number | null | undefined;
2566
- max_redemptions?: number | null | undefined;
2567
- redeem_by?: number | null | undefined;
2568
- object: string;
2569
- id: string;
2570
- created: number;
2571
- livemode: boolean;
2572
- duration: "forever" | "once" | "repeating";
2573
- times_redeemed: number;
2574
- valid: boolean;
2575
- }, {
2576
- id: convex_values.VString<string, "required">;
2577
- amount_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2578
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
2579
- duration: convex_values.VUnion<"forever" | "once" | "repeating", [convex_values.VLiteral<"forever", "required">, convex_values.VLiteral<"once", "required">, convex_values.VLiteral<"repeating", "required">], "required", never>;
2580
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2581
- name: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2582
- percent_off: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2583
- object: convex_values.VString<string, "required">;
2584
- applies_to: convex_values.VUnion<{
2585
- products: string[];
2586
- } | null | undefined, [convex_values.VObject<{
2587
- products: string[];
2588
- }, {
2589
- products: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
2590
- }, "required", "products">, convex_values.VNull<null, "required">], "optional", "products">;
2591
- created: convex_values.VFloat64<number, "required">;
2592
- currency_options: convex_values.VUnion<Record<string, {
2593
- amount_off: number;
2594
- }> | null | undefined, [convex_values.VRecord<Record<string, {
2595
- amount_off: number;
2596
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
2597
- amount_off: number;
2598
- }, {
2599
- amount_off: convex_values.VFloat64<number, "required">;
2600
- }, "required", "amount_off">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2601
- duration_in_months: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2602
- livemode: convex_values.VBoolean<boolean, "required">;
2603
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2604
- redeem_by: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2605
- times_redeemed: convex_values.VFloat64<number, "required">;
2606
- valid: convex_values.VBoolean<boolean, "required">;
2607
- }, "required", "object" | "id" | "name" | "metadata" | "created" | "livemode" | `metadata.${string}` | "currency" | "amount_off" | "duration" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
2608
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2609
- object: convex_values.VString<string, "required">;
2610
- active: convex_values.VBoolean<boolean, "required">;
2611
- created: convex_values.VFloat64<number, "required">;
2612
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2613
- expires_at: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2614
- livemode: convex_values.VBoolean<boolean, "required">;
2615
- max_redemptions: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2616
- restrictions: convex_values.VObject<{
2617
- currency_options?: Record<string, {
2618
- minimum_amount?: number | null | undefined;
2619
- }> | null | undefined;
2620
- minimum_amount?: number | null | undefined;
2621
- first_time_transaction?: boolean | undefined;
2622
- minimum_amount_currency?: string | null | undefined;
2623
- }, {
2624
- currency_options: convex_values.VUnion<Record<string, {
2625
- minimum_amount?: number | null | undefined;
2626
- }> | null | undefined, [convex_values.VRecord<Record<string, {
2627
- minimum_amount?: number | null | undefined;
2628
- }>, convex_values.VString<string, "required">, convex_values.VObject<{
2629
- minimum_amount?: number | null | undefined;
2630
- }, {
2631
- minimum_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2632
- }, "required", "minimum_amount">, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2633
- first_time_transaction: convex_values.VBoolean<boolean | undefined, "optional">;
2634
- minimum_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2635
- minimum_amount_currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2636
- }, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
2637
- times_redeemed: convex_values.VFloat64<number, "required">;
2638
- }, "required", "object" | "id" | "active" | "metadata" | "created" | "livemode" | `metadata.${string}` | "max_redemptions" | "times_redeemed" | "code" | "coupon" | "customer" | "expires_at" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.name" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.currency" | "coupon.amount_off" | "coupon.duration" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
2639
- last_synced_at: convex_values.VFloat64<number, "required">;
2640
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.active" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.code" | "stripe.coupon" | "stripe.customer" | "stripe.expires_at" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.name" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.currency" | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
2641
- byPromotionCodeId: ["promotionCodeId", "_creationTime"];
2642
- }, {}, {}>;
2643
- convex_stripe_payouts: convex_server.TableDefinition<convex_values.VObject<{
2644
- stripe: {
2645
- description?: string | null | undefined;
2646
- metadata?: Record<string, string | number | null> | null | undefined;
2647
- statement_descriptor?: string | null | undefined;
2648
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2649
- application_only?: string | null | undefined;
2650
- application_fee_amount?: number | null | undefined;
2651
- balance_transaction?: string | null | undefined;
2652
- destination?: string | null | undefined;
2653
- failure_balance_transaction?: string | null | undefined;
2654
- failure_code?: string | null | undefined;
2655
- failure_message?: string | null | undefined;
2656
- original_payout?: string | null | undefined;
2657
- payout_method?: string | null | undefined;
2658
- reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
2659
- reversed_by?: string | null | undefined;
2660
- trace_id?: {
2661
- value?: string | null | undefined;
2662
- status: string;
2663
- } | null | undefined;
2664
- object: string;
2665
- id: string;
2666
- type: "bank_account" | "card";
2667
- created: number;
2668
- livemode: boolean;
2669
- status: string;
2670
- amount: number;
2671
- arrival_date: number;
2672
- automatic: boolean;
2673
- method: string;
2674
- source_type: string;
2675
- };
2676
- last_synced_at: number;
2677
- payoutId: string;
2678
- }, {
2679
- payoutId: convex_values.VString<string, "required">;
2680
- stripe: convex_values.VObject<{
2681
- description?: string | null | undefined;
2682
- metadata?: Record<string, string | number | null> | null | undefined;
2683
- statement_descriptor?: string | null | undefined;
2684
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
2685
- application_only?: string | null | undefined;
2686
- application_fee_amount?: number | null | undefined;
2687
- balance_transaction?: string | null | undefined;
2688
- destination?: string | null | undefined;
2689
- failure_balance_transaction?: string | null | undefined;
2690
- failure_code?: string | null | undefined;
2691
- failure_message?: string | null | undefined;
2692
- original_payout?: string | null | undefined;
2693
- payout_method?: string | null | undefined;
2694
- reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
2695
- reversed_by?: string | null | undefined;
2696
- trace_id?: {
2697
- value?: string | null | undefined;
2698
- status: string;
2699
- } | null | undefined;
2700
- object: string;
2701
- id: string;
2702
- type: "bank_account" | "card";
2703
- created: number;
2704
- livemode: boolean;
2705
- status: string;
2706
- amount: number;
2707
- arrival_date: number;
2708
- automatic: boolean;
2709
- method: string;
2710
- source_type: string;
2711
- }, {
2712
- id: convex_values.VString<string, "required">;
2713
- amount: convex_values.VFloat64<number, "required">;
2714
- arrival_date: convex_values.VFloat64<number, "required">;
2715
- currency: convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VNull<null, "required">], "optional", never>;
2716
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2717
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2718
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2719
- status: convex_values.VString<string, "required">;
2720
- object: convex_values.VString<string, "required">;
2721
- application_only: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2722
- application_fee_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
2723
- automatic: convex_values.VBoolean<boolean, "required">;
2724
- balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2725
- created: convex_values.VFloat64<number, "required">;
2726
- destination: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2727
- failure_balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2728
- failure_code: convex_values.VUnion<string | null | undefined, [convex_values.VLiteral<"account_closed", "required">, convex_values.VLiteral<"account_frozen", "required">, convex_values.VLiteral<"bank_account_restricted", "required">, convex_values.VLiteral<"bank_ownership_changed", "required">, convex_values.VLiteral<"could_not_process", "required">, convex_values.VLiteral<"debit_not_authorized", "required">, convex_values.VLiteral<"declined", "required">, convex_values.VLiteral<"incorrect_account_holder_address", "required">, convex_values.VLiteral<"incorrect_account_holder_name", "required">, convex_values.VLiteral<"incorrect_account_holder_tax_id", "required">, convex_values.VLiteral<"incorrect_account_type", "required">, convex_values.VLiteral<"insufficient_funds", "required">, convex_values.VLiteral<"invalid_account_number", "required">, convex_values.VLiteral<"invalid_account_number_length", "required">, convex_values.VLiteral<"invalid_currency", "required">, convex_values.VLiteral<"no_account", "required">, convex_values.VLiteral<"unsupported_card", "required">, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2729
- failure_message: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2730
- livemode: convex_values.VBoolean<boolean, "required">;
2731
- method: convex_values.VString<string, "required">;
2732
- original_payout: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2733
- payout_method: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2734
- reconciliation_status: convex_values.VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"in_progress", "required">, convex_values.VLiteral<"not_applicable", "required">], "optional", never>;
2735
- reversed_by: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2736
- source_type: convex_values.VString<string, "required">;
2737
- trace_id: convex_values.VUnion<{
2738
- value?: string | null | undefined;
2739
- status: string;
2740
- } | null | undefined, [convex_values.VNull<null, "required">, convex_values.VObject<{
2741
- value?: string | null | undefined;
2742
- status: string;
2743
- }, {
2744
- status: convex_values.VString<string, "required">;
2745
- value: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2746
- }, "required", "status" | "value">], "optional", "status" | "value">;
2747
- type: convex_values.VUnion<"bank_account" | "card", [convex_values.VLiteral<"bank_account", "required">, convex_values.VLiteral<"card", "required">], "required", never>;
2748
- }, "required", "object" | "id" | "type" | "description" | "metadata" | "created" | "livemode" | "statement_descriptor" | `metadata.${string}` | "currency" | "status" | "amount" | "arrival_date" | "application_only" | "application_fee_amount" | "automatic" | "balance_transaction" | "destination" | "failure_balance_transaction" | "failure_code" | "failure_message" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
2749
- last_synced_at: convex_values.VFloat64<number, "required">;
2750
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.statement_descriptor" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.arrival_date" | "stripe.application_only" | "stripe.application_fee_amount" | "stripe.automatic" | "stripe.balance_transaction" | "stripe.destination" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.status" | "stripe.trace_id.value">, {
2751
- byPayoutId: ["payoutId", "_creationTime"];
2752
- }, {}, {}>;
2753
- convex_stripe_refunds: convex_server.TableDefinition<convex_values.VObject<{
2754
- stripe: {
2755
- description?: string | null | undefined;
2756
- metadata?: Record<string, string | number | null> | null | undefined;
2757
- status?: string | null | undefined;
2758
- balance_transaction?: string | null | undefined;
2759
- failure_balance_transaction?: string | null | undefined;
2760
- charge?: string | null | undefined;
2761
- payment_intent?: string | null | undefined;
2762
- reason?: string | null | undefined;
2763
- destination_details?: any;
2764
- failure_reason?: string | null | undefined;
2765
- instructions_email?: string | null | undefined;
2766
- next_action?: any;
2767
- pending_reason?: string | null | undefined;
2768
- receipt_number?: string | null | undefined;
2769
- source_transfer_reversal?: string | null | undefined;
2770
- transfer_reversal?: string | null | undefined;
2771
- object: string;
2772
- id: string;
2773
- created: number;
2774
- currency: string;
2775
- amount: number;
2776
- };
2777
- last_synced_at: number;
2778
- refundId: string;
2779
- }, {
2780
- refundId: convex_values.VString<string, "required">;
2781
- stripe: convex_values.VObject<{
2782
- description?: string | null | undefined;
2783
- metadata?: Record<string, string | number | null> | null | undefined;
2784
- status?: string | null | undefined;
2785
- balance_transaction?: string | null | undefined;
2786
- failure_balance_transaction?: string | null | undefined;
2787
- charge?: string | null | undefined;
2788
- payment_intent?: string | null | undefined;
2789
- reason?: string | null | undefined;
2790
- destination_details?: any;
2791
- failure_reason?: string | null | undefined;
2792
- instructions_email?: string | null | undefined;
2793
- next_action?: any;
2794
- pending_reason?: string | null | undefined;
2795
- receipt_number?: string | null | undefined;
2796
- source_transfer_reversal?: string | null | undefined;
2797
- transfer_reversal?: string | null | undefined;
2798
- object: string;
2799
- id: string;
2800
- created: number;
2801
- currency: string;
2802
- amount: number;
2803
- }, {
2804
- id: convex_values.VString<string, "required">;
2805
- amount: convex_values.VFloat64<number, "required">;
2806
- charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2807
- currency: convex_values.VUnion<string, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">], "required", never>;
2808
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2809
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
2810
- payment_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2811
- reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2812
- status: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2813
- object: convex_values.VString<string, "required">;
2814
- balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2815
- created: convex_values.VFloat64<number, "required">;
2816
- destination_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VObject<{}, {}, "required", never>, convex_values.VNull<null, "required">], "optional", string>;
2817
- failure_balance_transaction: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2818
- failure_reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2819
- instructions_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2820
- next_action: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VObject<{}, {}, "required", never>, convex_values.VNull<null, "required">], "optional", string>;
2821
- pending_reason: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2822
- receipt_number: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2823
- source_transfer_reversal: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2824
- transfer_reversal: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2825
- }, "required", "object" | "id" | "description" | "metadata" | "created" | `metadata.${string}` | "currency" | "status" | "amount" | "balance_transaction" | "failure_balance_transaction" | "charge" | "payment_intent" | "reason" | "destination_details" | "failure_reason" | "instructions_email" | "next_action" | "pending_reason" | "receipt_number" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}` | `next_action.${string}`>;
2826
- last_synced_at: convex_values.VFloat64<number, "required">;
2827
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.failure_balance_transaction" | "refundId" | "stripe.charge" | "stripe.payment_intent" | "stripe.reason" | "stripe.destination_details" | "stripe.failure_reason" | "stripe.instructions_email" | "stripe.next_action" | "stripe.pending_reason" | "stripe.receipt_number" | "stripe.source_transfer_reversal" | "stripe.transfer_reversal" | `stripe.destination_details.${string}` | `stripe.next_action.${string}`>, {
2828
- byRefundId: ["refundId", "_creationTime"];
2829
- }, {}, {}>;
2830
- convex_stripe_payment_intents: convex_server.TableDefinition<convex_values.VObject<{
2831
- stripe: {
2832
- description?: string | null | undefined;
2833
- metadata?: Record<string, string | number | null> | null | undefined;
2834
- statement_descriptor?: string | null | undefined;
2835
- shipping?: any;
2836
- customer?: string | null | undefined;
2837
- application_fee_amount?: number | null | undefined;
2838
- next_action?: any;
2839
- payment_method?: string | null | undefined;
2840
- last_payment_error?: {
2841
- code?: string | null | undefined;
2842
- charge?: string | null | undefined;
2843
- advice_code?: string | null | undefined;
2844
- decline_code?: string | null | undefined;
2845
- doc_url?: string | null | undefined;
2846
- message?: string | null | undefined;
2847
- network_advice_code?: string | null | undefined;
2848
- network_decline_code?: string | null | undefined;
2849
- param?: string | null | undefined;
2850
- payment_method?: any;
2851
- payment_method_type?: string | null | undefined;
2852
- last_payment_error?: any;
2853
- latest_charge?: string | null | undefined;
2854
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
2855
- } | null | undefined;
2856
- latest_charge?: string | null | undefined;
2857
- processing?: any;
2858
- automatic_payment_methods?: {
2859
- allow_redirects?: "always" | "never" | null | undefined;
2860
- enabled: boolean;
2861
- } | null | undefined;
2862
- client_secret?: string | null | undefined;
2863
- receipt_email?: string | null | undefined;
2864
- statement_descriptor_suffix?: string | null | undefined;
2865
- amount_details?: {
2866
- tip?: {
2867
- amount?: number | null | undefined;
2868
- } | null | undefined;
2869
- } | null | undefined;
2870
- application?: string | null | undefined;
2871
- canceled_at?: number | null | undefined;
2872
- cancellation_reason?: "automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
2873
- on_behalf_of?: string | null | undefined;
2874
- payment_method_configuration_details?: {
2875
- parent?: string | null | undefined;
2876
- id: string;
2877
- } | null | undefined;
2878
- payment_method_options?: any;
2879
- presentment_details?: any;
2880
- review?: string | null | undefined;
2881
- transfer_data?: any;
2882
- transfer_group?: string | null | undefined;
2883
- object: string;
2884
- id: string;
2885
- created: number;
2886
- livemode: boolean;
2887
- currency: string | null;
2888
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
2889
- amount: number;
2890
- setup_future_usage: "off_session" | "on_session" | null;
2891
- amount_capturable: number;
2892
- amount_received: number;
2893
- capture_method: "automatic" | "automatic_sync" | "automatic_async" | "manual";
2894
- confirmation_method: "automatic" | "manual";
2895
- excluded_payment_method_types: string[] | null;
2896
- payment_method_types: string[];
2897
- };
2898
- last_synced_at: number;
2899
- paymentIntentId: string;
2900
- }, {
2901
- paymentIntentId: convex_values.VString<string, "required">;
2902
- stripe: convex_values.VObject<{
2903
- description?: string | null | undefined;
2904
- metadata?: Record<string, string | number | null> | null | undefined;
2905
- statement_descriptor?: string | null | undefined;
2906
- shipping?: any;
2907
- customer?: string | null | undefined;
2908
- application_fee_amount?: number | null | undefined;
2909
- next_action?: any;
2910
- payment_method?: string | null | undefined;
2911
- last_payment_error?: {
2912
- code?: string | null | undefined;
2913
- charge?: string | null | undefined;
2914
- advice_code?: string | null | undefined;
2915
- decline_code?: string | null | undefined;
2916
- doc_url?: string | null | undefined;
2917
- message?: string | null | undefined;
2918
- network_advice_code?: string | null | undefined;
2919
- network_decline_code?: string | null | undefined;
2920
- param?: string | null | undefined;
2921
- payment_method?: any;
2922
- payment_method_type?: string | null | undefined;
2923
- last_payment_error?: any;
2924
- latest_charge?: string | null | undefined;
2925
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
2926
- } | null | undefined;
2927
- latest_charge?: string | null | undefined;
2928
- processing?: any;
2929
- automatic_payment_methods?: {
2930
- allow_redirects?: "always" | "never" | null | undefined;
2931
- enabled: boolean;
2932
- } | null | undefined;
2933
- client_secret?: string | null | undefined;
2934
- receipt_email?: string | null | undefined;
2935
- statement_descriptor_suffix?: string | null | undefined;
2936
- amount_details?: {
2937
- tip?: {
2938
- amount?: number | null | undefined;
2939
- } | null | undefined;
2940
- } | null | undefined;
2941
- application?: string | null | undefined;
2942
- canceled_at?: number | null | undefined;
2943
- cancellation_reason?: "automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
2944
- on_behalf_of?: string | null | undefined;
2945
- payment_method_configuration_details?: {
2946
- parent?: string | null | undefined;
2947
- id: string;
2948
- } | null | undefined;
2949
- payment_method_options?: any;
2950
- presentment_details?: any;
2951
- review?: string | null | undefined;
2952
- transfer_data?: any;
2953
- transfer_group?: string | null | undefined;
2954
- object: string;
2955
- id: string;
2956
- created: number;
2957
- livemode: boolean;
2958
- currency: string | null;
2959
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
2960
- amount: number;
2961
- setup_future_usage: "off_session" | "on_session" | null;
2962
- amount_capturable: number;
2963
- amount_received: number;
2964
- capture_method: "automatic" | "automatic_sync" | "automatic_async" | "manual";
2965
- confirmation_method: "automatic" | "manual";
2966
- excluded_payment_method_types: string[] | null;
2967
- payment_method_types: string[];
2968
- }, {
2969
- id: convex_values.VString<string, "required">;
2970
- amount: convex_values.VFloat64<number, "required">;
2971
- automatic_payment_methods: convex_values.VUnion<{
2972
- allow_redirects?: "always" | "never" | null | undefined;
2973
- enabled: boolean;
2974
- } | null | undefined, [convex_values.VObject<{
2975
- allow_redirects?: "always" | "never" | null | undefined;
2976
- enabled: boolean;
2977
- }, {
2978
- allow_redirects: convex_values.VUnion<"always" | "never" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"never", "required">, convex_values.VNull<null, "required">], "optional", never>;
2979
- enabled: convex_values.VBoolean<boolean, "required">;
2980
- }, "required", "allow_redirects" | "enabled">, convex_values.VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
2981
- client_secret: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2982
- currency: convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
2983
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2984
- description: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
2985
- last_payment_error: convex_values.VUnion<{
2986
- code?: string | null | undefined;
2987
- charge?: string | null | undefined;
2988
- advice_code?: string | null | undefined;
2989
- decline_code?: string | null | undefined;
2990
- doc_url?: string | null | undefined;
2991
- message?: string | null | undefined;
2992
- network_advice_code?: string | null | undefined;
2993
- network_decline_code?: string | null | undefined;
2994
- param?: string | null | undefined;
2995
- payment_method?: any;
2996
- payment_method_type?: string | null | undefined;
2997
- last_payment_error?: any;
2998
- latest_charge?: string | null | undefined;
2999
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
3000
- } | null | undefined, [convex_values.VObject<{
3001
- code?: string | null | undefined;
3002
- charge?: string | null | undefined;
3003
- advice_code?: string | null | undefined;
3004
- decline_code?: string | null | undefined;
3005
- doc_url?: string | null | undefined;
3006
- message?: string | null | undefined;
3007
- network_advice_code?: string | null | undefined;
3008
- network_decline_code?: string | null | undefined;
3009
- param?: string | null | undefined;
3010
- payment_method?: any;
3011
- payment_method_type?: string | null | undefined;
3012
- last_payment_error?: any;
3013
- latest_charge?: string | null | undefined;
3014
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
3015
- }, {
3016
- advice_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3017
- charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3018
- code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3019
- decline_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3020
- doc_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3021
- message: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3022
- network_advice_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3023
- network_decline_code: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3024
- param: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3025
- payment_method: convex_values.VAny<any, "optional", string>;
3026
- payment_method_type: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3027
- last_payment_error: convex_values.VAny<any, "optional", string>;
3028
- type: convex_values.VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [convex_values.VLiteral<"api_error", "required">, convex_values.VLiteral<"card_error", "required">, convex_values.VLiteral<"idempotency_error", "required">, convex_values.VLiteral<"invalid_request_error", "required">], "required", never>;
3029
- latest_charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3030
- }, "required", "type" | "code" | "charge" | "advice_code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, convex_values.VNull<null, "required">], "optional", "type" | "code" | "charge" | "advice_code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
3031
- latest_charge: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3032
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3033
- next_action: convex_values.VAny<any, "optional", string>;
3034
- payment_method: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3035
- receipt_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3036
- setup_future_usage: convex_values.VUnion<"off_session" | "on_session" | null, [convex_values.VLiteral<"off_session", "required">, convex_values.VLiteral<"on_session", "required">, convex_values.VNull<null, "required">], "required", never>;
3037
- shipping: convex_values.VAny<any, "optional", string>;
3038
- statement_descriptor: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3039
- statement_descriptor_suffix: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3040
- status: convex_values.VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [convex_values.VLiteral<"canceled", "required">, convex_values.VLiteral<"processing", "required">, convex_values.VLiteral<"requires_action", "required">, convex_values.VLiteral<"requires_capture", "required">, convex_values.VLiteral<"requires_confirmation", "required">, convex_values.VLiteral<"requires_payment_method", "required">, convex_values.VLiteral<"succeeded", "required">], "required", never>;
3041
- object: convex_values.VString<string, "required">;
3042
- amount_capturable: convex_values.VFloat64<number, "required">;
3043
- amount_details: convex_values.VUnion<{
3044
- tip?: {
3045
- amount?: number | null | undefined;
3046
- } | null | undefined;
3047
- } | null | undefined, [convex_values.VObject<{
3048
- tip?: {
3049
- amount?: number | null | undefined;
3050
- } | null | undefined;
3051
- }, {
3052
- tip: convex_values.VUnion<{
3053
- amount?: number | null | undefined;
3054
- } | null | undefined, [convex_values.VObject<{
3055
- amount?: number | null | undefined;
3056
- }, {
3057
- amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
3058
- }, "required", "amount">, convex_values.VNull<null, "required">], "optional", "amount">;
3059
- }, "required", "tip" | "tip.amount">, convex_values.VNull<null, "required">], "optional", "tip" | "tip.amount">;
3060
- amount_received: convex_values.VFloat64<number, "required">;
3061
- application: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3062
- application_fee_amount: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
3063
- canceled_at: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
3064
- cancellation_reason: convex_values.VUnion<"automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [convex_values.VLiteral<"abandoned", "required">, convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"duplicate", "required">, convex_values.VLiteral<"expired", "required">, convex_values.VLiteral<"failed_invoice", "required">, convex_values.VLiteral<"fraudulent", "required">, convex_values.VLiteral<"requested_by_customer", "required">, convex_values.VLiteral<"void_invoice", "required">, convex_values.VNull<null, "required">], "optional", never>;
3065
- capture_method: convex_values.VUnion<"automatic" | "automatic_sync" | "automatic_async" | "manual", [convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"automatic_sync", "required">, convex_values.VLiteral<"automatic_async", "required">, convex_values.VLiteral<"manual", "required">], "required", never>;
3066
- confirmation_method: convex_values.VUnion<"automatic" | "manual", [convex_values.VLiteral<"automatic", "required">, convex_values.VLiteral<"manual", "required">], "required", never>;
3067
- created: convex_values.VFloat64<number, "required">;
3068
- excluded_payment_method_types: convex_values.VUnion<string[] | null, [convex_values.VArray<string[], convex_values.VString<string, "required">, "required">, convex_values.VNull<null, "required">], "required", never>;
3069
- livemode: convex_values.VBoolean<boolean, "required">;
3070
- on_behalf_of: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3071
- payment_method_configuration_details: convex_values.VUnion<{
3072
- parent?: string | null | undefined;
3073
- id: string;
3074
- } | null | undefined, [convex_values.VObject<{
3075
- parent?: string | null | undefined;
3076
- id: string;
3077
- }, {
3078
- id: convex_values.VString<string, "required">;
3079
- parent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3080
- }, "required", "id" | "parent">, convex_values.VNull<null, "required">], "optional", "id" | "parent">;
3081
- payment_method_options: convex_values.VAny<any, "optional", string>;
3082
- payment_method_types: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
3083
- presentment_details: convex_values.VAny<any, "optional", string>;
3084
- processing: convex_values.VAny<any, "optional", string>;
3085
- review: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3086
- transfer_data: convex_values.VAny<any, "optional", string>;
3087
- transfer_group: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3088
- }, "required", "object" | "id" | "description" | "metadata" | "created" | "livemode" | "statement_descriptor" | `metadata.${string}` | "currency" | "shipping" | "customer" | "status" | "amount" | "application_fee_amount" | "next_action" | `next_action.${string}` | "payment_method" | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "client_secret" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "on_behalf_of" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.code" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | "amount_details.tip" | "amount_details.tip.amount" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `payment_method_options.${string}` | `presentment_details.${string}` | `transfer_data.${string}`>;
3089
- last_synced_at: convex_values.VFloat64<number, "required">;
3090
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.statement_descriptor" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.status" | "stripe.amount" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.payment_method" | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.client_secret" | "stripe.receipt_email" | "stripe.setup_future_usage" | "stripe.statement_descriptor_suffix" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.application" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.on_behalf_of" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | "stripe.last_payment_error.type" | "stripe.last_payment_error.code" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.allow_redirects" | "stripe.automatic_payment_methods.enabled" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}`>, {
3091
- byPaymentIntentId: ["paymentIntentId", "_creationTime"];
3092
- }, {}, {}>;
3093
- convex_stripe_checkout_sessions: convex_server.TableDefinition<convex_values.VObject<{
3094
- stripe: {
3095
- metadata?: Record<string, string | number | null> | null | undefined;
3096
- url?: string | null | undefined;
3097
- currency?: string | null | undefined;
3098
- customer?: string | null | undefined;
3099
- payment_intent?: string | null | undefined;
3100
- client_secret?: string | null | undefined;
3101
- payment_method_configuration_details?: any;
3102
- payment_method_options?: any;
3103
- presentment_details?: any;
3104
- subscription?: string | null | undefined;
3105
- client_reference_id?: string | null | undefined;
3106
- customer_email?: string | null | undefined;
3107
- line_items?: any[] | null | undefined;
3108
- return_url?: string | null | undefined;
3109
- success_url?: string | null | undefined;
3110
- ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
3111
- adaptive_pricing?: any;
3112
- after_expiration?: any;
3113
- allow_promotion_codes?: boolean | null | undefined;
3114
- amount_subtotal?: number | null | undefined;
3115
- amount_total?: number | null | undefined;
3116
- billing_address_collection?: "required" | "auto" | null | undefined;
3117
- cancel_url?: string | null | undefined;
3118
- collected_information?: any;
3119
- consent?: any;
3120
- consent_collection?: any;
3121
- currency_conversion?: any;
3122
- customer_creation?: "always" | "if_required" | null | undefined;
3123
- customer_details?: any;
3124
- discounts?: any[] | null | undefined;
3125
- invoice?: string | null | undefined;
3126
- invoice_creation?: any;
3127
- locale?: string | null | undefined;
3128
- optional_items?: any[] | null | undefined;
3129
- origin_context?: "mobile_app" | "web" | null | undefined;
3130
- payment_link?: string | null | undefined;
3131
- payment_method_collection?: "always" | "if_required" | null | undefined;
3132
- permissions?: any;
3133
- phone_number_collection?: any;
3134
- recovered_from?: string | null | undefined;
3135
- redirect_on_completion?: "always" | "never" | "if_required" | null | undefined;
3136
- saved_payment_method_options?: any;
3137
- setup_intent?: string | null | undefined;
3138
- shipping_address_collection?: any;
3139
- shipping_cost?: any;
3140
- submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
3141
- tax_id_collection?: any;
3142
- total_details?: any;
3143
- wallet_options?: any;
3144
- object: string;
3145
- id: string;
3146
- created: number;
3147
- livemode: boolean;
3148
- automatic_tax: any;
3149
- expires_at: number;
3150
- status: "expired" | "complete" | "open" | null;
3151
- payment_method_types: string[];
3152
- mode: "payment" | "setup" | "subscription";
3153
- payment_status: "no_payment_required" | "paid" | "unpaid";
3154
- custom_fields: any[];
3155
- custom_text: any;
3156
- shipping_options: any[];
3157
- };
3158
- last_synced_at: number;
3159
- checkoutSessionId: string;
3160
- }, {
3161
- checkoutSessionId: convex_values.VString<string, "required">;
3162
- stripe: convex_values.VObject<{
3163
- metadata?: Record<string, string | number | null> | null | undefined;
3164
- url?: string | null | undefined;
3165
- currency?: string | null | undefined;
3166
- customer?: string | null | undefined;
3167
- payment_intent?: string | null | undefined;
3168
- client_secret?: string | null | undefined;
3169
- payment_method_configuration_details?: any;
3170
- payment_method_options?: any;
3171
- presentment_details?: any;
3172
- subscription?: string | null | undefined;
3173
- client_reference_id?: string | null | undefined;
3174
- customer_email?: string | null | undefined;
3175
- line_items?: any[] | null | undefined;
3176
- return_url?: string | null | undefined;
3177
- success_url?: string | null | undefined;
3178
- ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
3179
- adaptive_pricing?: any;
3180
- after_expiration?: any;
3181
- allow_promotion_codes?: boolean | null | undefined;
3182
- amount_subtotal?: number | null | undefined;
3183
- amount_total?: number | null | undefined;
3184
- billing_address_collection?: "required" | "auto" | null | undefined;
3185
- cancel_url?: string | null | undefined;
3186
- collected_information?: any;
3187
- consent?: any;
3188
- consent_collection?: any;
3189
- currency_conversion?: any;
3190
- customer_creation?: "always" | "if_required" | null | undefined;
3191
- customer_details?: any;
3192
- discounts?: any[] | null | undefined;
3193
- invoice?: string | null | undefined;
3194
- invoice_creation?: any;
3195
- locale?: string | null | undefined;
3196
- optional_items?: any[] | null | undefined;
3197
- origin_context?: "mobile_app" | "web" | null | undefined;
3198
- payment_link?: string | null | undefined;
3199
- payment_method_collection?: "always" | "if_required" | null | undefined;
3200
- permissions?: any;
3201
- phone_number_collection?: any;
3202
- recovered_from?: string | null | undefined;
3203
- redirect_on_completion?: "always" | "never" | "if_required" | null | undefined;
3204
- saved_payment_method_options?: any;
3205
- setup_intent?: string | null | undefined;
3206
- shipping_address_collection?: any;
3207
- shipping_cost?: any;
3208
- submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
3209
- tax_id_collection?: any;
3210
- total_details?: any;
3211
- wallet_options?: any;
3212
- object: string;
3213
- id: string;
3214
- created: number;
3215
- livemode: boolean;
3216
- automatic_tax: any;
3217
- expires_at: number;
3218
- status: "expired" | "complete" | "open" | null;
3219
- payment_method_types: string[];
3220
- mode: "payment" | "setup" | "subscription";
3221
- payment_status: "no_payment_required" | "paid" | "unpaid";
3222
- custom_fields: any[];
3223
- custom_text: any;
3224
- shipping_options: any[];
3225
- }, {
3226
- id: convex_values.VString<string, "required">;
3227
- automatic_tax: convex_values.VAny<any, "required", string>;
3228
- client_reference_id: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3229
- currency: convex_values.VUnion<string | null | undefined, [convex_values.VUnion<"usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw", [convex_values.VLiteral<"usd", "required">, convex_values.VLiteral<"aed", "required">, convex_values.VLiteral<"afn", "required">, convex_values.VLiteral<"all", "required">, convex_values.VLiteral<"amd", "required">, convex_values.VLiteral<"ang", "required">, convex_values.VLiteral<"aoa", "required">, convex_values.VLiteral<"ars", "required">, convex_values.VLiteral<"aud", "required">, convex_values.VLiteral<"awg", "required">, convex_values.VLiteral<"azn", "required">, convex_values.VLiteral<"bam", "required">, convex_values.VLiteral<"bbd", "required">, convex_values.VLiteral<"bdt", "required">, convex_values.VLiteral<"bgn", "required">, convex_values.VLiteral<"bif", "required">, convex_values.VLiteral<"bmd", "required">, convex_values.VLiteral<"bnd", "required">, convex_values.VLiteral<"bob", "required">, convex_values.VLiteral<"brl", "required">, convex_values.VLiteral<"bsd", "required">, convex_values.VLiteral<"bwp", "required">, convex_values.VLiteral<"byn", "required">, convex_values.VLiteral<"bzd", "required">, convex_values.VLiteral<"cad", "required">, convex_values.VLiteral<"cdf", "required">, convex_values.VLiteral<"chf", "required">, convex_values.VLiteral<"clp", "required">, convex_values.VLiteral<"cny", "required">, convex_values.VLiteral<"cop", "required">, convex_values.VLiteral<"crc", "required">, convex_values.VLiteral<"cve", "required">, convex_values.VLiteral<"czk", "required">, convex_values.VLiteral<"djf", "required">, convex_values.VLiteral<"dkk", "required">, convex_values.VLiteral<"dop", "required">, convex_values.VLiteral<"dzd", "required">, convex_values.VLiteral<"egp", "required">, convex_values.VLiteral<"etb", "required">, convex_values.VLiteral<"eur", "required">, convex_values.VLiteral<"fjd", "required">, convex_values.VLiteral<"fkp", "required">, convex_values.VLiteral<"gbp", "required">, convex_values.VLiteral<"gel", "required">, convex_values.VLiteral<"gip", "required">, convex_values.VLiteral<"gmd", "required">, convex_values.VLiteral<"gnf", "required">, convex_values.VLiteral<"gtq", "required">, convex_values.VLiteral<"gyd", "required">, convex_values.VLiteral<"hkd", "required">, convex_values.VLiteral<"hnl", "required">, convex_values.VLiteral<"htg", "required">, convex_values.VLiteral<"huf", "required">, convex_values.VLiteral<"idr", "required">, convex_values.VLiteral<"ils", "required">, convex_values.VLiteral<"inr", "required">, convex_values.VLiteral<"isk", "required">, convex_values.VLiteral<"jmd", "required">, convex_values.VLiteral<"jpy", "required">, convex_values.VLiteral<"kes", "required">, convex_values.VLiteral<"kgs", "required">, convex_values.VLiteral<"khr", "required">, convex_values.VLiteral<"kmf", "required">, convex_values.VLiteral<"krw", "required">, convex_values.VLiteral<"kyd", "required">, convex_values.VLiteral<"kzt", "required">, convex_values.VLiteral<"lak", "required">, convex_values.VLiteral<"lbp", "required">, convex_values.VLiteral<"lkr", "required">, convex_values.VLiteral<"lrd", "required">, convex_values.VLiteral<"lsl", "required">, convex_values.VLiteral<"mad", "required">, convex_values.VLiteral<"mdl", "required">, convex_values.VLiteral<"mga", "required">, convex_values.VLiteral<"mkd", "required">, convex_values.VLiteral<"mmk", "required">, convex_values.VLiteral<"mnt", "required">, convex_values.VLiteral<"mop", "required">, convex_values.VLiteral<"mur", "required">, convex_values.VLiteral<"mvr", "required">, convex_values.VLiteral<"mwk", "required">, convex_values.VLiteral<"mxn", "required">, convex_values.VLiteral<"myr", "required">, convex_values.VLiteral<"mzn", "required">, convex_values.VLiteral<"nad", "required">, convex_values.VLiteral<"ngn", "required">, convex_values.VLiteral<"nio", "required">, convex_values.VLiteral<"nok", "required">, convex_values.VLiteral<"npr", "required">, convex_values.VLiteral<"nzd", "required">, convex_values.VLiteral<"pab", "required">, convex_values.VLiteral<"pen", "required">, convex_values.VLiteral<"pgk", "required">, convex_values.VLiteral<"php", "required">, convex_values.VLiteral<"pkr", "required">, convex_values.VLiteral<"pln", "required">, convex_values.VLiteral<"pyg", "required">, convex_values.VLiteral<"qar", "required">, convex_values.VLiteral<"ron", "required">, convex_values.VLiteral<"rsd", "required">, convex_values.VLiteral<"rub", "required">, convex_values.VLiteral<"rwf", "required">, convex_values.VLiteral<"sar", "required">, convex_values.VLiteral<"sbd", "required">, convex_values.VLiteral<"scr", "required">, convex_values.VLiteral<"sek", "required">, convex_values.VLiteral<"sgd", "required">, convex_values.VLiteral<"shp", "required">, convex_values.VLiteral<"sle", "required">, convex_values.VLiteral<"sos", "required">, convex_values.VLiteral<"srd", "required">, convex_values.VLiteral<"std", "required">, convex_values.VLiteral<"szl", "required">, convex_values.VLiteral<"thb", "required">, convex_values.VLiteral<"tjs", "required">, convex_values.VLiteral<"top", "required">, convex_values.VLiteral<"try", "required">, convex_values.VLiteral<"ttd", "required">, convex_values.VLiteral<"twd", "required">, convex_values.VLiteral<"tzs", "required">, convex_values.VLiteral<"uah", "required">, convex_values.VLiteral<"ugx", "required">, convex_values.VLiteral<"uyu", "required">, convex_values.VLiteral<"uzs", "required">, convex_values.VLiteral<"vnd", "required">, convex_values.VLiteral<"vuv", "required">, convex_values.VLiteral<"wst", "required">, convex_values.VLiteral<"xaf", "required">, convex_values.VLiteral<"xcd", "required">, convex_values.VLiteral<"xcg", "required">, convex_values.VLiteral<"xof", "required">, convex_values.VLiteral<"xpf", "required">, convex_values.VLiteral<"yer", "required">, convex_values.VLiteral<"zar", "required">, convex_values.VLiteral<"zmw", "required">], "required", never>, convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3230
- customer: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3231
- customer_email: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3232
- line_items: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
3233
- metadata: convex_values.VUnion<Record<string, string | number | null> | null | undefined, [convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3234
- mode: convex_values.VUnion<"payment" | "setup" | "subscription", [convex_values.VLiteral<"payment", "required">, convex_values.VLiteral<"setup", "required">, convex_values.VLiteral<"subscription", "required">], "required", never>;
3235
- payment_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3236
- payment_status: convex_values.VUnion<"no_payment_required" | "paid" | "unpaid", [convex_values.VLiteral<"no_payment_required", "required">, convex_values.VLiteral<"paid", "required">, convex_values.VLiteral<"unpaid", "required">], "required", never>;
3237
- return_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3238
- status: convex_values.VUnion<"expired" | "complete" | "open" | null, [convex_values.VLiteral<"complete", "required">, convex_values.VLiteral<"expired", "required">, convex_values.VLiteral<"open", "required">, convex_values.VNull<null, "required">], "required", never>;
3239
- success_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3240
- ui_mode: convex_values.VUnion<"custom" | "embedded" | "hosted" | null | undefined, [convex_values.VLiteral<"custom", "required">, convex_values.VLiteral<"embedded", "required">, convex_values.VLiteral<"hosted", "required">, convex_values.VNull<null, "required">], "optional", never>;
3241
- url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3242
- object: convex_values.VString<string, "required">;
3243
- adaptive_pricing: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3244
- after_expiration: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3245
- allow_promotion_codes: convex_values.VUnion<boolean | null | undefined, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "optional", never>;
3246
- amount_subtotal: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
3247
- amount_total: convex_values.VUnion<number | null | undefined, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "optional", never>;
3248
- billing_address_collection: convex_values.VUnion<"required" | "auto" | null | undefined, [convex_values.VLiteral<"auto", "required">, convex_values.VLiteral<"required", "required">, convex_values.VNull<null, "required">], "optional", never>;
3249
- cancel_url: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3250
- client_secret: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3251
- collected_information: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3252
- consent: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3253
- consent_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3254
- created: convex_values.VFloat64<number, "required">;
3255
- currency_conversion: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3256
- custom_fields: convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">;
3257
- custom_text: convex_values.VAny<any, "required", string>;
3258
- customer_creation: convex_values.VUnion<"always" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VNull<null, "required">], "optional", never>;
3259
- customer_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3260
- discounts: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
3261
- expires_at: convex_values.VFloat64<number, "required">;
3262
- invoice: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3263
- invoice_creation: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3264
- livemode: convex_values.VBoolean<boolean, "required">;
3265
- locale: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3266
- optional_items: convex_values.VUnion<any[] | null | undefined, [convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">, convex_values.VNull<null, "required">], "optional", never>;
3267
- origin_context: convex_values.VUnion<"mobile_app" | "web" | null | undefined, [convex_values.VLiteral<"mobile_app", "required">, convex_values.VLiteral<"web", "required">, convex_values.VNull<null, "required">], "optional", never>;
3268
- payment_link: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3269
- payment_method_collection: convex_values.VUnion<"always" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VNull<null, "required">], "optional", never>;
3270
- payment_method_configuration_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3271
- payment_method_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3272
- payment_method_types: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
3273
- permissions: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3274
- phone_number_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3275
- presentment_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3276
- recovered_from: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3277
- redirect_on_completion: convex_values.VUnion<"always" | "never" | "if_required" | null | undefined, [convex_values.VLiteral<"always", "required">, convex_values.VLiteral<"if_required", "required">, convex_values.VLiteral<"never", "required">, convex_values.VNull<null, "required">], "optional", never>;
3278
- saved_payment_method_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3279
- setup_intent: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3280
- shipping_address_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3281
- shipping_cost: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3282
- shipping_options: convex_values.VArray<any[], convex_values.VAny<any, "required", string>, "required">;
3283
- submit_type: convex_values.VUnion<"auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined, [convex_values.VLiteral<"auto", "required">, convex_values.VLiteral<"book", "required">, convex_values.VLiteral<"donate", "required">, convex_values.VLiteral<"pay", "required">, convex_values.VLiteral<"subscribe", "required">, convex_values.VNull<null, "required">], "optional", never>;
3284
- subscription: convex_values.VUnion<string | null | undefined, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "optional", never>;
3285
- tax_id_collection: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3286
- total_details: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3287
- wallet_options: convex_values.VUnion<any, [convex_values.VAny<any, "required", string>, convex_values.VNull<null, "required">], "optional", string>;
3288
- }, "required", "object" | "id" | "metadata" | "created" | "livemode" | "url" | `metadata.${string}` | "currency" | "automatic_tax" | "customer" | "expires_at" | "status" | "payment_intent" | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `payment_method_options.${string}` | `presentment_details.${string}` | "subscription" | "client_reference_id" | "customer_email" | "line_items" | "mode" | "payment_status" | "return_url" | "success_url" | "ui_mode" | "adaptive_pricing" | "after_expiration" | "allow_promotion_codes" | "amount_subtotal" | "amount_total" | "billing_address_collection" | "cancel_url" | "collected_information" | "consent" | "consent_collection" | "currency_conversion" | "custom_fields" | "custom_text" | "customer_creation" | "customer_details" | "discounts" | "invoice" | "invoice_creation" | "locale" | "optional_items" | "origin_context" | "payment_link" | "payment_method_collection" | "permissions" | "phone_number_collection" | "recovered_from" | "redirect_on_completion" | "saved_payment_method_options" | "setup_intent" | "shipping_address_collection" | "shipping_cost" | "shipping_options" | "submit_type" | "tax_id_collection" | "total_details" | "wallet_options" | `automatic_tax.${string}` | `payment_method_configuration_details.${string}` | `adaptive_pricing.${string}` | `after_expiration.${string}` | `collected_information.${string}` | `consent.${string}` | `consent_collection.${string}` | `currency_conversion.${string}` | `custom_text.${string}` | `customer_details.${string}` | `invoice_creation.${string}` | `permissions.${string}` | `phone_number_collection.${string}` | `saved_payment_method_options.${string}` | `shipping_address_collection.${string}` | `shipping_cost.${string}` | `tax_id_collection.${string}` | `total_details.${string}` | `wallet_options.${string}`>;
3289
- last_synced_at: convex_values.VFloat64<number, "required">;
3290
- }, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | "stripe.url" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.customer" | "stripe.expires_at" | "stripe.status" | "stripe.payment_intent" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "checkoutSessionId" | "stripe.automatic_tax" | "stripe.subscription" | "stripe.client_reference_id" | "stripe.customer_email" | "stripe.line_items" | "stripe.mode" | "stripe.payment_status" | "stripe.return_url" | "stripe.success_url" | "stripe.ui_mode" | "stripe.adaptive_pricing" | "stripe.after_expiration" | "stripe.allow_promotion_codes" | "stripe.amount_subtotal" | "stripe.amount_total" | "stripe.billing_address_collection" | "stripe.cancel_url" | "stripe.collected_information" | "stripe.consent" | "stripe.consent_collection" | "stripe.currency_conversion" | "stripe.custom_fields" | "stripe.custom_text" | "stripe.customer_creation" | "stripe.customer_details" | "stripe.discounts" | "stripe.invoice" | "stripe.invoice_creation" | "stripe.locale" | "stripe.optional_items" | "stripe.origin_context" | "stripe.payment_link" | "stripe.payment_method_collection" | "stripe.permissions" | "stripe.phone_number_collection" | "stripe.recovered_from" | "stripe.redirect_on_completion" | "stripe.saved_payment_method_options" | "stripe.setup_intent" | "stripe.shipping_address_collection" | "stripe.shipping_cost" | "stripe.shipping_options" | "stripe.submit_type" | "stripe.tax_id_collection" | "stripe.total_details" | "stripe.wallet_options" | `stripe.automatic_tax.${string}` | `stripe.payment_method_configuration_details.${string}` | `stripe.adaptive_pricing.${string}` | `stripe.after_expiration.${string}` | `stripe.collected_information.${string}` | `stripe.consent.${string}` | `stripe.consent_collection.${string}` | `stripe.currency_conversion.${string}` | `stripe.custom_text.${string}` | `stripe.customer_details.${string}` | `stripe.invoice_creation.${string}` | `stripe.permissions.${string}` | `stripe.phone_number_collection.${string}` | `stripe.saved_payment_method_options.${string}` | `stripe.shipping_address_collection.${string}` | `stripe.shipping_cost.${string}` | `stripe.tax_id_collection.${string}` | `stripe.total_details.${string}` | `stripe.wallet_options.${string}`>, {
3291
- byCheckoutSessionId: ["checkoutSessionId", "_creationTime"];
3292
- }, {}, {}>;
3293
- }, true>;
3294
- type StripeDataModel = DataModelFromSchemaDefinition<typeof defaultSchema>;
3295
- type Doc<T extends TableNamesInDataModel<StripeDataModel>> = GenericDoc<StripeDataModel, T>;
3296
-
3297
- declare const normalizeConfiguration: (config: InputConfiguration) => InternalConfiguration;
3298
- declare const defineActionImplementation: <S extends VObject<any, any>, R>(spec: {
3299
- args: S;
3300
- name: string;
3301
- handler: (context: GenericActionCtx<StripeDataModel>, args: Infer<S>, configuration: InternalConfiguration) => R;
3302
- }) => {
3303
- args: S;
3304
- name: string;
3305
- handler: (context: GenericActionCtx<StripeDataModel>, args: Infer<S>, configuration: InternalConfiguration) => R;
3306
- };
3307
- declare const defineMutationImplementation: <S extends ArgSchema, R>(spec: {
3308
- args: S;
3309
- name: string;
3310
- handler: (context: GenericMutationCtx<StripeDataModel>, args: InferArgs<S>, configuration: InternalConfiguration) => R;
3311
- }) => {
3312
- args: S;
3313
- name: string;
3314
- handler: (context: GenericMutationCtx<StripeDataModel>, args: InferArgs<S>, configuration: InternalConfiguration) => R;
3315
- };
3316
- declare const nullablestring: () => convex_values.VUnion<string | null, [convex_values.VString<string, "required">, convex_values.VNull<null, "required">], "required", never>;
3317
- declare const nullableboolean: () => convex_values.VUnion<boolean | null, [convex_values.VBoolean<boolean, "required">, convex_values.VNull<null, "required">], "required", never>;
3318
- declare const nullablenumber: () => convex_values.VUnion<number | null, [convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>;
3319
- declare const metadata: () => convex_values.VRecord<Record<string, string | number | null>, convex_values.VString<string, "required">, convex_values.VUnion<string | number | null, [convex_values.VString<string, "required">, convex_values.VFloat64<number, "required">, convex_values.VNull<null, "required">], "required", never>, "required", string>;
3320
- declare const optionalnullableobject: <T extends ArgSchema>(object: T) => convex_values.VUnion<convex_server.Expand<{ [Property_1 in { [Property in keyof T]: T[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T]]?: Exclude<Infer<T[Property_1]>, undefined> | undefined; } & { [Property_1_1 in Exclude<keyof T, { [Property in keyof T]: T[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T]>]: Infer<T[Property_1_1]>; }> | null | undefined, [VObject<convex_server.Expand<{ [Property_1 in { [Property in keyof T]: T[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T]]?: Exclude<Infer<T[Property_1]>, undefined> | undefined; } & { [Property_1_1 in Exclude<keyof T, { [Property in keyof T]: T[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T]>]: Infer<T[Property_1_1]>; }>, T, "required", { [Property_2 in keyof T]: Property_2 | `${Property_2 & string}.${T[Property_2]["fieldPaths"]}`; }[keyof T] & string>, convex_values.VNull<null, "required">], "optional", { [Property_2 in keyof T]: Property_2 | `${Property_2 & string}.${T[Property_2]["fieldPaths"]}`; }[keyof T] & string>;
3321
-
3322
- declare const internalConvexStripe: (configuration_: InputConfiguration) => {
3323
- stripe: {
3324
- addHttpRoutes: (http: HttpRouter) => void;
3325
- addCronJobs: (crons: Crons) => void;
3326
- portal: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof PortalImplementation.args>) => Promise<Stripe.Stripe.Response<Stripe.Stripe.BillingPortal.Session>>;
3327
- subscribe: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof SubscribeImplementation.args>) => Promise<{
3328
- url: string | null;
3329
- }>;
3330
- pay: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof PayImplementation.args>) => Promise<Stripe.Stripe.Response<Stripe.Stripe.Checkout.Session>>;
3331
- };
3332
- store: convex_server.RegisteredMutation<"internal", {
3333
- id?: any;
3334
- value?: any;
3335
- field?: string | undefined;
3336
- idField?: string | undefined;
3337
- data?: any;
3338
- idValue?: any;
3339
- operation: string;
3340
- table: string;
3341
- }, Promise<{
3342
- id: convex_values.GenericId<"convex_stripe_products" | "convex_stripe_prices" | "convex_stripe_customers" | "convex_stripe_subscriptions" | "convex_stripe_coupons" | "convex_stripe_promotion_codes" | "convex_stripe_payouts" | "convex_stripe_refunds" | "convex_stripe_payment_intents" | "convex_stripe_checkout_sessions">;
3343
- deleted?: undefined;
3344
- doc?: undefined;
3345
- docs?: undefined;
3346
- } | {
3347
- deleted: boolean;
3348
- id?: undefined;
3349
- doc?: undefined;
3350
- docs?: undefined;
3351
- } | {
3352
- doc: any;
3353
- id?: undefined;
3354
- deleted?: undefined;
3355
- docs?: undefined;
3356
- } | {
3357
- docs: ({
3358
- _id: convex_values.GenericId<"convex_stripe_products">;
3359
- _creationTime: number;
3360
- stripe: {
3361
- metadata?: Record<string, string | number | null> | null | undefined;
3362
- statement_descriptor?: string | null | undefined;
3363
- unit_label?: string | null | undefined;
3364
- object: string;
3365
- id: string;
3366
- name: string;
3367
- active: boolean;
3368
- description: string | null;
3369
- created: number;
3370
- images: string[];
3371
- livemode: boolean;
3372
- package_dimensions: {
3373
- height: number;
3374
- length: number;
3375
- weight: number;
3376
- width: number;
3377
- } | null;
3378
- shippable: boolean | null;
3379
- updated: number;
3380
- url: string | null;
3381
- marketing_features: {
3382
- name?: string | null | undefined;
3383
- }[];
3384
- default_price: string | null;
3385
- };
3386
- productId: string;
3387
- last_synced_at: number;
3388
- } | {
3389
- _id: convex_values.GenericId<"convex_stripe_prices">;
3390
- _creationTime: number;
3391
- stripe: {
3392
- metadata?: Record<string, string | number | null> | null | undefined;
3393
- object: string;
3394
- id: string;
3395
- productId: string;
3396
- type: "one_time" | "recurring";
3397
- active: boolean;
3398
- created: number;
3399
- livemode: boolean;
3400
- recurring: {
3401
- interval: "day" | "week" | "month" | "year";
3402
- interval_count: number;
3403
- trial_period_days: number | null;
3404
- meter: string | null;
3405
- usage_type: "licensed" | "metered";
3406
- } | null;
3407
- currency: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
3408
- nickname: string | null;
3409
- unit_amount: number | null;
3410
- billing_scheme: "per_unit" | "tiered";
3411
- lookup_key: string | null;
3412
- tiers_mode: "graduated" | "volume" | null;
3413
- transform_quantity: {
3414
- divide_by: number;
3415
- round: "up" | "down";
3416
- } | null;
3417
- unit_amount_decimal: string | null;
3418
- };
3419
- last_synced_at: number;
3420
- priceId: string;
3421
- } | {
3422
- _id: convex_values.GenericId<"convex_stripe_customers">;
3423
- _creationTime: number;
3424
- stripe: {
3425
- name?: string | null | undefined;
3426
- description?: string | null | undefined;
3427
- metadata?: Record<string, string | number | null> | null | undefined;
3428
- currency?: string | null | undefined;
3429
- address?: {
3430
- city?: string | null | undefined;
3431
- country?: string | null | undefined;
3432
- line1?: string | null | undefined;
3433
- line2?: string | null | undefined;
3434
- postal_code?: string | null | undefined;
3435
- state?: string | null | undefined;
3436
- } | null | undefined;
3437
- phone?: string | null | undefined;
3438
- email?: string | null | undefined;
3439
- shipping?: {
3440
- name?: string | undefined;
3441
- address?: {
3442
- city?: string | null | undefined;
3443
- country?: string | null | undefined;
3444
- line1?: string | null | undefined;
3445
- line2?: string | null | undefined;
3446
- postal_code?: string | null | undefined;
3447
- state?: string | null | undefined;
3448
- } | undefined;
3449
- phone?: string | null | undefined;
3450
- carrier?: string | null | undefined;
3451
- tracking_number?: string | null | undefined;
3452
- } | null | undefined;
3453
- tax?: {
3454
- ip_address?: string | null | undefined;
3455
- automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
3456
- location: {
3457
- state?: string | null | undefined;
3458
- country: string;
3459
- source: string;
3460
- } | null;
3461
- } | undefined;
3462
- cash_balance?: any;
3463
- default_source?: string | null | undefined;
3464
- delinquent?: boolean | null | undefined;
3465
- discount?: any;
3466
- invoice_credit_balance?: any;
3467
- invoice_prefix?: string | null | undefined;
3468
- next_invoice_sequence?: number | null | undefined;
3469
- preferred_locales?: string[] | null | undefined;
3470
- sources?: any;
3471
- subscriptions?: any;
3472
- tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
3473
- tax_ids?: any;
3474
- test_clock?: string | null | undefined;
3475
- object: string;
3476
- id: string;
3477
- created: number;
3478
- livemode: boolean;
3479
- balance: number;
3480
- invoice_settings: any;
3481
- };
3482
- last_synced_at: number;
3483
- customerId: string;
3484
- entityId: string;
3485
- } | {
3486
- _id: convex_values.GenericId<"convex_stripe_subscriptions">;
3487
- _creationTime: number;
3488
- stripe: any;
3489
- last_synced_at: number;
3490
- customerId: string;
3491
- subscriptionId: string | null;
3492
- } | {
3493
- _id: convex_values.GenericId<"convex_stripe_coupons">;
3494
- _creationTime: number;
3495
- stripe: {
3496
- name?: string | null | undefined;
3497
- metadata?: Record<string, string | number | null> | null | undefined;
3498
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
3499
- amount_off?: number | null | undefined;
3500
- percent_off?: number | null | undefined;
3501
- applies_to?: {
3502
- products: string[];
3503
- } | null | undefined;
3504
- currency_options?: Record<string, {
3505
- amount_off: number;
3506
- }> | null | undefined;
3507
- duration_in_months?: number | null | undefined;
3508
- max_redemptions?: number | null | undefined;
3509
- redeem_by?: number | null | undefined;
3510
- object: string;
3511
- id: string;
3512
- created: number;
3513
- livemode: boolean;
3514
- duration: "forever" | "once" | "repeating";
3515
- times_redeemed: number;
3516
- valid: boolean;
3517
- };
3518
- last_synced_at: number;
3519
- couponId: string;
3520
- } | {
3521
- _id: convex_values.GenericId<"convex_stripe_promotion_codes">;
3522
- _creationTime: number;
3523
- stripe: {
3524
- metadata?: Record<string, string | number | null> | null | undefined;
3525
- max_redemptions?: number | null | undefined;
3526
- customer?: string | null | undefined;
3527
- expires_at?: number | null | undefined;
3528
- object: string;
3529
- id: string;
3530
- active: boolean;
3531
- created: number;
3532
- livemode: boolean;
3533
- times_redeemed: number;
3534
- code: string;
3535
- coupon: {
3536
- name?: string | null | undefined;
3537
- metadata?: Record<string, string | number | null> | null | undefined;
3538
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
3539
- amount_off?: number | null | undefined;
3540
- percent_off?: number | null | undefined;
3541
- applies_to?: {
3542
- products: string[];
3543
- } | null | undefined;
3544
- currency_options?: Record<string, {
3545
- amount_off: number;
3546
- }> | null | undefined;
3547
- duration_in_months?: number | null | undefined;
3548
- max_redemptions?: number | null | undefined;
3549
- redeem_by?: number | null | undefined;
3550
- object: string;
3551
- id: string;
3552
- created: number;
3553
- livemode: boolean;
3554
- duration: "forever" | "once" | "repeating";
3555
- times_redeemed: number;
3556
- valid: boolean;
3557
- };
3558
- restrictions: {
3559
- currency_options?: Record<string, {
3560
- minimum_amount?: number | null | undefined;
3561
- }> | null | undefined;
3562
- minimum_amount?: number | null | undefined;
3563
- first_time_transaction?: boolean | undefined;
3564
- minimum_amount_currency?: string | null | undefined;
3565
- };
3566
- };
3567
- last_synced_at: number;
3568
- promotionCodeId: string;
3569
- } | {
3570
- _id: convex_values.GenericId<"convex_stripe_payouts">;
3571
- _creationTime: number;
3572
- stripe: {
3573
- description?: string | null | undefined;
3574
- metadata?: Record<string, string | number | null> | null | undefined;
3575
- statement_descriptor?: string | null | undefined;
3576
- currency?: "usd" | "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bgn" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw" | null | undefined;
3577
- application_only?: string | null | undefined;
3578
- application_fee_amount?: number | null | undefined;
3579
- balance_transaction?: string | null | undefined;
3580
- destination?: string | null | undefined;
3581
- failure_balance_transaction?: string | null | undefined;
3582
- failure_code?: string | null | undefined;
3583
- failure_message?: string | null | undefined;
3584
- original_payout?: string | null | undefined;
3585
- payout_method?: string | null | undefined;
3586
- reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
3587
- reversed_by?: string | null | undefined;
3588
- trace_id?: {
3589
- value?: string | null | undefined;
3590
- status: string;
3591
- } | null | undefined;
3592
- object: string;
3593
- id: string;
3594
- type: "bank_account" | "card";
3595
- created: number;
3596
- livemode: boolean;
3597
- status: string;
3598
- amount: number;
3599
- arrival_date: number;
3600
- automatic: boolean;
3601
- method: string;
3602
- source_type: string;
3603
- };
3604
- last_synced_at: number;
3605
- payoutId: string;
3606
- } | {
3607
- _id: convex_values.GenericId<"convex_stripe_refunds">;
3608
- _creationTime: number;
3609
- stripe: {
3610
- description?: string | null | undefined;
3611
- metadata?: Record<string, string | number | null> | null | undefined;
3612
- status?: string | null | undefined;
3613
- balance_transaction?: string | null | undefined;
3614
- failure_balance_transaction?: string | null | undefined;
3615
- charge?: string | null | undefined;
3616
- payment_intent?: string | null | undefined;
3617
- reason?: string | null | undefined;
3618
- destination_details?: any;
3619
- failure_reason?: string | null | undefined;
3620
- instructions_email?: string | null | undefined;
3621
- next_action?: any;
3622
- pending_reason?: string | null | undefined;
3623
- receipt_number?: string | null | undefined;
3624
- source_transfer_reversal?: string | null | undefined;
3625
- transfer_reversal?: string | null | undefined;
3626
- object: string;
3627
- id: string;
3628
- created: number;
3629
- currency: string;
3630
- amount: number;
3631
- };
3632
- last_synced_at: number;
3633
- refundId: string;
3634
- } | {
3635
- _id: convex_values.GenericId<"convex_stripe_payment_intents">;
3636
- _creationTime: number;
3637
- stripe: {
3638
- description?: string | null | undefined;
3639
- metadata?: Record<string, string | number | null> | null | undefined;
3640
- statement_descriptor?: string | null | undefined;
3641
- shipping?: any;
3642
- customer?: string | null | undefined;
3643
- application_fee_amount?: number | null | undefined;
3644
- next_action?: any;
3645
- payment_method?: string | null | undefined;
3646
- last_payment_error?: {
3647
- code?: string | null | undefined;
3648
- charge?: string | null | undefined;
3649
- advice_code?: string | null | undefined;
3650
- decline_code?: string | null | undefined;
3651
- doc_url?: string | null | undefined;
3652
- message?: string | null | undefined;
3653
- network_advice_code?: string | null | undefined;
3654
- network_decline_code?: string | null | undefined;
3655
- param?: string | null | undefined;
3656
- payment_method?: any;
3657
- payment_method_type?: string | null | undefined;
3658
- last_payment_error?: any;
3659
- latest_charge?: string | null | undefined;
3660
- type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
3661
- } | null | undefined;
3662
- latest_charge?: string | null | undefined;
3663
- processing?: any;
3664
- automatic_payment_methods?: {
3665
- allow_redirects?: "always" | "never" | null | undefined;
3666
- enabled: boolean;
3667
- } | null | undefined;
3668
- client_secret?: string | null | undefined;
3669
- receipt_email?: string | null | undefined;
3670
- statement_descriptor_suffix?: string | null | undefined;
3671
- amount_details?: {
3672
- tip?: {
3673
- amount?: number | null | undefined;
3674
- } | null | undefined;
3675
- } | null | undefined;
3676
- application?: string | null | undefined;
3677
- canceled_at?: number | null | undefined;
3678
- cancellation_reason?: "automatic" | "abandoned" | "duplicate" | "expired" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
3679
- on_behalf_of?: string | null | undefined;
3680
- payment_method_configuration_details?: {
3681
- parent?: string | null | undefined;
3682
- id: string;
3683
- } | null | undefined;
3684
- payment_method_options?: any;
3685
- presentment_details?: any;
3686
- review?: string | null | undefined;
3687
- transfer_data?: any;
3688
- transfer_group?: string | null | undefined;
3689
- object: string;
3690
- id: string;
3691
- created: number;
3692
- livemode: boolean;
3693
- currency: string | null;
3694
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
3695
- amount: number;
3696
- setup_future_usage: "off_session" | "on_session" | null;
3697
- amount_capturable: number;
3698
- amount_received: number;
3699
- capture_method: "automatic" | "automatic_sync" | "automatic_async" | "manual";
3700
- confirmation_method: "automatic" | "manual";
3701
- excluded_payment_method_types: string[] | null;
3702
- payment_method_types: string[];
3703
- };
3704
- last_synced_at: number;
3705
- paymentIntentId: string;
3706
- } | {
3707
- _id: convex_values.GenericId<"convex_stripe_checkout_sessions">;
3708
- _creationTime: number;
3709
- stripe: {
3710
- metadata?: Record<string, string | number | null> | null | undefined;
3711
- url?: string | null | undefined;
3712
- currency?: string | null | undefined;
3713
- customer?: string | null | undefined;
3714
- payment_intent?: string | null | undefined;
3715
- client_secret?: string | null | undefined;
3716
- payment_method_configuration_details?: any;
3717
- payment_method_options?: any;
3718
- presentment_details?: any;
3719
- subscription?: string | null | undefined;
3720
- client_reference_id?: string | null | undefined;
3721
- customer_email?: string | null | undefined;
3722
- line_items?: any[] | null | undefined;
3723
- return_url?: string | null | undefined;
3724
- success_url?: string | null | undefined;
3725
- ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
3726
- adaptive_pricing?: any;
3727
- after_expiration?: any;
3728
- allow_promotion_codes?: boolean | null | undefined;
3729
- amount_subtotal?: number | null | undefined;
3730
- amount_total?: number | null | undefined;
3731
- billing_address_collection?: "required" | "auto" | null | undefined;
3732
- cancel_url?: string | null | undefined;
3733
- collected_information?: any;
3734
- consent?: any;
3735
- consent_collection?: any;
3736
- currency_conversion?: any;
3737
- customer_creation?: "always" | "if_required" | null | undefined;
3738
- customer_details?: any;
3739
- discounts?: any[] | null | undefined;
3740
- invoice?: string | null | undefined;
3741
- invoice_creation?: any;
3742
- locale?: string | null | undefined;
3743
- optional_items?: any[] | null | undefined;
3744
- origin_context?: "mobile_app" | "web" | null | undefined;
3745
- payment_link?: string | null | undefined;
3746
- payment_method_collection?: "always" | "if_required" | null | undefined;
3747
- permissions?: any;
3748
- phone_number_collection?: any;
3749
- recovered_from?: string | null | undefined;
3750
- redirect_on_completion?: "always" | "never" | "if_required" | null | undefined;
3751
- saved_payment_method_options?: any;
3752
- setup_intent?: string | null | undefined;
3753
- shipping_address_collection?: any;
3754
- shipping_cost?: any;
3755
- submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
3756
- tax_id_collection?: any;
3757
- total_details?: any;
3758
- wallet_options?: any;
3759
- object: string;
3760
- id: string;
3761
- created: number;
3762
- livemode: boolean;
3763
- automatic_tax: any;
3764
- expires_at: number;
3765
- status: "expired" | "complete" | "open" | null;
3766
- payment_method_types: string[];
3767
- mode: "payment" | "setup" | "subscription";
3768
- payment_status: "no_payment_required" | "paid" | "unpaid";
3769
- custom_fields: any[];
3770
- custom_text: any;
3771
- shipping_options: any[];
3772
- };
3773
- last_synced_at: number;
3774
- checkoutSessionId: string;
3775
- })[];
3776
- id?: undefined;
3777
- deleted?: undefined;
3778
- doc?: undefined;
3779
- } | undefined>>;
3780
- sync: convex_server.RegisteredAction<"internal", {}, Promise<void>>;
3781
- setup: convex_server.RegisteredAction<"internal", {
3782
- metadata?: Record<string, any> | undefined;
3783
- email?: string | undefined;
3784
- entityId: string;
3785
- }, Promise<{
3786
- customerId: string;
3787
- }>>;
3788
- };
3789
-
3790
- export { type ArgSchema, type Doc, type GenericDoc, type InferArgs, type InputConfiguration, type InternalConfiguration, type StripeDataModel, type WithOptional, currencies, defineActionImplementation, defineMutationImplementation, internalConvexStripe, metadata, normalizeConfiguration, nullableboolean, nullablenumber, nullablestring, optionalnullableobject, stripeTables };
1
+ export * from './server/index'
2
+ export {}