@raideno/convex-stripe 0.1.2 → 0.1.3

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 (50) hide show
  1. package/dist/server/actions/pay.d.ts +52 -52
  2. package/dist/server/actions/setup.d.ts +3 -3
  3. package/dist/server/actions/subscribe.d.ts +7 -7
  4. package/dist/server/index.d.ts +451 -73
  5. package/dist/server/schema/charge.d.ts +294 -0
  6. package/dist/server/schema/checkout-session.d.ts +21 -21
  7. package/dist/server/schema/coupon.d.ts +3 -3
  8. package/dist/server/schema/credit-note.d.ts +228 -0
  9. package/dist/server/schema/customer.d.ts +19 -19
  10. package/dist/server/schema/dispute.d.ts +76 -0
  11. package/dist/server/schema/early-fraud-warning.d.ts +40 -0
  12. package/dist/server/schema/index.d.ts +4157 -1605
  13. package/dist/server/schema/invoice.d.ts +35 -35
  14. package/dist/server/schema/payment-intent.d.ts +28 -28
  15. package/dist/server/schema/payment-method.d.ts +248 -0
  16. package/dist/server/schema/payout.d.ts +11 -11
  17. package/dist/server/schema/plan.d.ts +112 -0
  18. package/dist/server/schema/price.d.ts +17 -17
  19. package/dist/server/schema/product.d.ts +7 -7
  20. package/dist/server/schema/promotion-code.d.ts +7 -7
  21. package/dist/server/schema/refund.d.ts +11 -11
  22. package/dist/server/schema/review.d.ts +9 -9
  23. package/dist/server/schema/setup-intent.d.ts +156 -0
  24. package/dist/server/schema/subscription-schedule.d.ts +468 -0
  25. package/dist/server/schema/tax-id.d.ts +120 -0
  26. package/dist/server/store/index.d.ts +450 -72
  27. package/dist/server/sync/charges.handler.d.ts +5 -0
  28. package/dist/server/sync/credit-notes.handler.d.ts +5 -0
  29. package/dist/server/sync/disputes.handler.d.ts +5 -0
  30. package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
  31. package/dist/server/sync/payment-methods.handler.d.ts +5 -0
  32. package/dist/server/sync/plans.handler.d.ts +5 -0
  33. package/dist/server/sync/setup-intents.handler.d.ts +5 -0
  34. package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
  35. package/dist/server/sync/tax-id.handler.d.ts +5 -0
  36. package/dist/server/webhooks/charges.handler.d.ts +2 -0
  37. package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
  38. package/dist/server/webhooks/disputes.handler.d.ts +2 -0
  39. package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
  40. package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
  41. package/dist/server/webhooks/plans.handler.d.ts +2 -0
  42. package/dist/server/webhooks/refunds.handler.d.ts +1 -1
  43. package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
  44. package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
  45. package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
  46. package/dist/server.js +2022 -89
  47. package/package.json +1 -3
  48. /package/dist/server/sync/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
  49. /package/dist/server/sync/{payment-intent.handler.d.ts → payment-intents.handler.d.ts} +0 -0
  50. /package/dist/server/webhooks/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
@@ -10,10 +10,10 @@ export declare const PromotionCodeStripeToConvex: (promotionCode: Stripe.Promoti
10
10
  livemode: boolean;
11
11
  times_redeemed: number;
12
12
  coupon: {
13
+ name?: string | null | undefined;
13
14
  currency?: string | null | undefined;
14
15
  metadata?: Record<string, string | number | null> | null | undefined;
15
16
  amount_off?: number | null | undefined;
16
- name?: string | null | undefined;
17
17
  percent_off?: number | null | undefined;
18
18
  applies_to?: {
19
19
  products: string[];
@@ -47,10 +47,10 @@ export declare const PromotionCodeSchema: {
47
47
  id: import('convex/values').VString<string, "required">;
48
48
  code: import('convex/values').VString<string, "required">;
49
49
  coupon: import('convex/values').VObject<{
50
+ name?: string | null | undefined;
50
51
  currency?: string | null | undefined;
51
52
  metadata?: Record<string, string | number | null> | null | undefined;
52
53
  amount_off?: number | null | undefined;
53
- name?: string | null | undefined;
54
54
  percent_off?: number | null | undefined;
55
55
  applies_to?: {
56
56
  products: string[];
@@ -100,7 +100,7 @@ export declare const PromotionCodeSchema: {
100
100
  redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
101
101
  times_redeemed: import('convex/values').VFloat64<number, "required">;
102
102
  valid: import('convex/values').VBoolean<boolean, "required">;
103
- }, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
103
+ }, "required", "object" | "id" | "name" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "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}`>;
104
104
  metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
105
105
  object: import('convex/values').VString<string, "required">;
106
106
  active: import('convex/values').VBoolean<boolean, "required">;
@@ -143,10 +143,10 @@ export declare const PromotionCodeObject: import('convex/values').VObject<{
143
143
  livemode: boolean;
144
144
  times_redeemed: number;
145
145
  coupon: {
146
+ name?: string | null | undefined;
146
147
  currency?: string | null | undefined;
147
148
  metadata?: Record<string, string | number | null> | null | undefined;
148
149
  amount_off?: number | null | undefined;
149
- name?: string | null | undefined;
150
150
  percent_off?: number | null | undefined;
151
151
  applies_to?: {
152
152
  products: string[];
@@ -179,10 +179,10 @@ export declare const PromotionCodeObject: import('convex/values').VObject<{
179
179
  id: import('convex/values').VString<string, "required">;
180
180
  code: import('convex/values').VString<string, "required">;
181
181
  coupon: import('convex/values').VObject<{
182
+ name?: string | null | undefined;
182
183
  currency?: string | null | undefined;
183
184
  metadata?: Record<string, string | number | null> | null | undefined;
184
185
  amount_off?: number | null | undefined;
185
- name?: string | null | undefined;
186
186
  percent_off?: number | null | undefined;
187
187
  applies_to?: {
188
188
  products: string[];
@@ -232,7 +232,7 @@ export declare const PromotionCodeObject: import('convex/values').VObject<{
232
232
  redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
233
233
  times_redeemed: import('convex/values').VFloat64<number, "required">;
234
234
  valid: import('convex/values').VBoolean<boolean, "required">;
235
- }, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
235
+ }, "required", "object" | "id" | "name" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "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}`>;
236
236
  metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
237
237
  object: import('convex/values').VString<string, "required">;
238
238
  active: import('convex/values').VBoolean<boolean, "required">;
@@ -263,4 +263,4 @@ export declare const PromotionCodeObject: import('convex/values').VObject<{
263
263
  minimum_amount_currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
264
264
  }, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
265
265
  times_redeemed: import('convex/values').VFloat64<number, "required">;
266
- }, "required", "object" | "id" | "customer" | "metadata" | "created" | "expires_at" | "livemode" | `metadata.${string}` | "max_redemptions" | "times_redeemed" | "coupon" | "code" | "active" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.amount_off" | "coupon.duration" | "coupon.name" | "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">;
266
+ }, "required", "object" | "id" | "customer" | "metadata" | "created" | "livemode" | `metadata.${string}` | "expires_at" | "max_redemptions" | "times_redeemed" | "coupon" | "code" | "active" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.name" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "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">;
@@ -1,15 +1,15 @@
1
1
  import { default as Stripe } from 'stripe';
2
2
  export declare const RefundStripeToConvex: (refund: Stripe.Refund) => {
3
+ balance_transaction?: string | null | undefined;
4
+ description?: string | null | undefined;
3
5
  metadata?: Record<string, string | number | null> | null | undefined;
4
6
  payment_intent?: string | null | undefined;
5
7
  status?: string | null | undefined;
6
- description?: string | null | undefined;
8
+ failure_balance_transaction?: string | null | undefined;
7
9
  receipt_number?: string | null | undefined;
8
10
  charge?: string | null | undefined;
9
- next_action?: any;
10
- balance_transaction?: string | null | undefined;
11
- failure_balance_transaction?: string | null | undefined;
12
11
  reason?: string | null | undefined;
12
+ next_action?: any;
13
13
  destination_details?: any;
14
14
  failure_reason?: string | null | undefined;
15
15
  instructions_email?: string | null | undefined;
@@ -18,9 +18,9 @@ export declare const RefundStripeToConvex: (refund: Stripe.Refund) => {
18
18
  transfer_reversal?: string | null | undefined;
19
19
  object: string;
20
20
  id: string;
21
+ amount: number;
21
22
  currency: string;
22
23
  created: number;
23
- amount: number;
24
24
  };
25
25
  export declare const RefundSchema: {
26
26
  id: import('convex/values').VString<string, "required">;
@@ -46,16 +46,16 @@ export declare const RefundSchema: {
46
46
  transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
47
47
  };
48
48
  export declare const RefundObject: import('convex/values').VObject<{
49
+ balance_transaction?: string | null | undefined;
50
+ description?: string | null | undefined;
49
51
  metadata?: Record<string, string | number | null> | null | undefined;
50
52
  payment_intent?: string | null | undefined;
51
53
  status?: string | null | undefined;
52
- description?: string | null | undefined;
54
+ failure_balance_transaction?: string | null | undefined;
53
55
  receipt_number?: string | null | undefined;
54
56
  charge?: string | null | undefined;
55
- next_action?: any;
56
- balance_transaction?: string | null | undefined;
57
- failure_balance_transaction?: string | null | undefined;
58
57
  reason?: string | null | undefined;
58
+ next_action?: any;
59
59
  destination_details?: any;
60
60
  failure_reason?: string | null | undefined;
61
61
  instructions_email?: string | null | undefined;
@@ -64,9 +64,9 @@ export declare const RefundObject: import('convex/values').VObject<{
64
64
  transfer_reversal?: string | null | undefined;
65
65
  object: string;
66
66
  id: string;
67
+ amount: number;
67
68
  currency: string;
68
69
  created: number;
69
- amount: number;
70
70
  }, {
71
71
  id: import('convex/values').VString<string, "required">;
72
72
  amount: import('convex/values').VFloat64<number, "required">;
@@ -89,4 +89,4 @@ export declare const RefundObject: import('convex/values').VObject<{
89
89
  receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
90
90
  source_transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
91
91
  transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
92
- }, "required", "object" | "id" | "currency" | "metadata" | "payment_intent" | "status" | "created" | `metadata.${string}` | "description" | "receipt_number" | "charge" | "amount" | "next_action" | `next_action.${string}` | "balance_transaction" | "failure_balance_transaction" | "reason" | "destination_details" | "failure_reason" | "instructions_email" | "pending_reason" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}`>;
92
+ }, "required", "object" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "payment_intent" | "status" | "created" | "failure_balance_transaction" | "receipt_number" | `metadata.${string}` | "charge" | "reason" | "next_action" | `next_action.${string}` | "destination_details" | "failure_reason" | "instructions_email" | "pending_reason" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}`>;
@@ -1,10 +1,10 @@
1
1
  import { default as Stripe } from 'stripe';
2
2
  export declare const ReviewStripeToConvex: (review: Stripe.Review) => {
3
3
  payment_intent?: string | null | undefined;
4
- ip_address?: string | null | undefined;
5
4
  charge?: string | null | undefined;
5
+ ip_address?: string | null | undefined;
6
6
  billing_zip?: string | null | undefined;
7
- closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
7
+ closed_reason?: "disputed" | "refunded" | "canceled" | "approved" | "refunded_as_fraud" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
8
8
  ip_address_location?: {
9
9
  city?: string | null | undefined;
10
10
  country?: string | null | undefined;
@@ -20,9 +20,9 @@ export declare const ReviewStripeToConvex: (review: Stripe.Review) => {
20
20
  } | null | undefined;
21
21
  object: string;
22
22
  id: string;
23
- open: boolean;
24
23
  created: number;
25
24
  livemode: boolean;
25
+ open: boolean;
26
26
  reason: string;
27
27
  opened_reason: "manual" | "rule";
28
28
  };
@@ -34,7 +34,7 @@ export declare const ReviewSchema: {
34
34
  reason: import('convex/values').VString<string, "required">;
35
35
  object: import('convex/values').VString<string, "required">;
36
36
  billing_zip: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
37
- closed_reason: import('convex/values').VUnion<"canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
37
+ closed_reason: import('convex/values').VUnion<"disputed" | "refunded" | "canceled" | "approved" | "refunded_as_fraud" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
38
38
  created: import('convex/values').VFloat64<number, "required">;
39
39
  ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
40
40
  ip_address_location: import('convex/values').VUnion<{
@@ -77,10 +77,10 @@ export declare const ReviewSchema: {
77
77
  };
78
78
  export declare const ReviewObject: import('convex/values').VObject<{
79
79
  payment_intent?: string | null | undefined;
80
- ip_address?: string | null | undefined;
81
80
  charge?: string | null | undefined;
81
+ ip_address?: string | null | undefined;
82
82
  billing_zip?: string | null | undefined;
83
- closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
83
+ closed_reason?: "disputed" | "refunded" | "canceled" | "approved" | "refunded_as_fraud" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
84
84
  ip_address_location?: {
85
85
  city?: string | null | undefined;
86
86
  country?: string | null | undefined;
@@ -96,9 +96,9 @@ export declare const ReviewObject: import('convex/values').VObject<{
96
96
  } | null | undefined;
97
97
  object: string;
98
98
  id: string;
99
- open: boolean;
100
99
  created: number;
101
100
  livemode: boolean;
101
+ open: boolean;
102
102
  reason: string;
103
103
  opened_reason: "manual" | "rule";
104
104
  }, {
@@ -109,7 +109,7 @@ export declare const ReviewObject: import('convex/values').VObject<{
109
109
  reason: import('convex/values').VString<string, "required">;
110
110
  object: import('convex/values').VString<string, "required">;
111
111
  billing_zip: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
112
- closed_reason: import('convex/values').VUnion<"canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
112
+ closed_reason: import('convex/values').VUnion<"disputed" | "refunded" | "canceled" | "approved" | "refunded_as_fraud" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
113
113
  created: import('convex/values').VFloat64<number, "required">;
114
114
  ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
115
115
  ip_address_location: import('convex/values').VUnion<{
@@ -149,4 +149,4 @@ export declare const ReviewObject: import('convex/values').VObject<{
149
149
  platform: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
150
150
  version: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
151
151
  }, "required", "browser" | "device" | "platform" | "version">, import('convex/values').VNull<null, "required">], "optional", "browser" | "device" | "platform" | "version">;
152
- }, "required", "object" | "id" | "open" | "payment_intent" | "created" | "livemode" | "ip_address" | "charge" | "reason" | "billing_zip" | "closed_reason" | "ip_address_location" | "opened_reason" | "session" | "ip_address_location.city" | "ip_address_location.country" | "ip_address_location.latitude" | "ip_address_location.longitude" | "ip_address_location.region" | "session.browser" | "session.device" | "session.platform" | "session.version">;
152
+ }, "required", "object" | "id" | "payment_intent" | "created" | "livemode" | "charge" | "open" | "reason" | "ip_address" | "billing_zip" | "closed_reason" | "ip_address_location" | "opened_reason" | "session" | "ip_address_location.city" | "ip_address_location.country" | "ip_address_location.latitude" | "ip_address_location.longitude" | "ip_address_location.region" | "session.browser" | "session.device" | "session.platform" | "session.version">;
@@ -0,0 +1,156 @@
1
+ import { default as Stripe } from 'stripe';
2
+ export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent) => {
3
+ customer?: string | null | undefined;
4
+ description?: string | null | undefined;
5
+ metadata?: Record<string, string | number | null> | null | undefined;
6
+ application?: string | null | undefined;
7
+ on_behalf_of?: string | null | undefined;
8
+ payment_method?: string | null | undefined;
9
+ client_secret?: string | null | undefined;
10
+ payment_method_configuration_details?: {
11
+ parent?: string | null | undefined;
12
+ id: string;
13
+ } | null | undefined;
14
+ automatic_payment_methods?: {
15
+ allow_redirects?: "always" | "never" | null | undefined;
16
+ enabled?: boolean | null | undefined;
17
+ } | null | undefined;
18
+ cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
19
+ attach_to_self?: boolean | null | undefined;
20
+ latest_attempt?: string | null | undefined;
21
+ mandate?: string | null | undefined;
22
+ single_use_mandate?: string | null | undefined;
23
+ object: string;
24
+ id: string;
25
+ status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
26
+ created: number;
27
+ livemode: boolean;
28
+ payment_method_options: any;
29
+ payment_method_types: string[];
30
+ next_action: any;
31
+ last_setup_error: any;
32
+ usage: string;
33
+ flow_directions: ("inbound" | "outbound")[] | null;
34
+ };
35
+ export declare const SetupIntentSchema: {
36
+ id: import('convex/values').VString<string, "required">;
37
+ automatic_payment_methods: import('convex/values').VUnion<{
38
+ allow_redirects?: "always" | "never" | null | undefined;
39
+ enabled?: boolean | null | undefined;
40
+ } | null | undefined, [import('convex/values').VObject<{
41
+ allow_redirects?: "always" | "never" | null | undefined;
42
+ enabled?: boolean | null | undefined;
43
+ }, {
44
+ allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
45
+ enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
46
+ }, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
47
+ client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
48
+ customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
49
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
50
+ last_setup_error: import('convex/values').VAny<any, "required", string>;
51
+ metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
52
+ next_action: import('convex/values').VAny<any, "required", string>;
53
+ payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
54
+ status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
55
+ usage: import('convex/values').VString<string, "required">;
56
+ object: import('convex/values').VString<string, "required">;
57
+ application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
58
+ attach_to_self: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
59
+ cancellation_reason: import('convex/values').VUnion<"duplicate" | "abandoned" | "requested_by_customer" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
60
+ created: import('convex/values').VFloat64<number, "required">;
61
+ flow_directions: import('convex/values').VUnion<("inbound" | "outbound")[] | null, [import('convex/values').VArray<("inbound" | "outbound")[], import('convex/values').VUnion<"inbound" | "outbound", [import('convex/values').VLiteral<"inbound", "required">, import('convex/values').VLiteral<"outbound", "required">], "required", never>, "required">, import('convex/values').VNull<null, "required">], "required", never>;
62
+ latest_attempt: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
63
+ livemode: import('convex/values').VBoolean<boolean, "required">;
64
+ mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
65
+ on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
66
+ payment_method_configuration_details: import('convex/values').VUnion<{
67
+ parent?: string | null | undefined;
68
+ id: string;
69
+ } | null | undefined, [import('convex/values').VObject<{
70
+ parent?: string | null | undefined;
71
+ id: string;
72
+ }, {
73
+ id: import('convex/values').VString<string, "required">;
74
+ parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
75
+ }, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
76
+ payment_method_options: import('convex/values').VAny<any, "required", string>;
77
+ payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
78
+ single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
79
+ };
80
+ export declare const SetupIntentObject: import('convex/values').VObject<{
81
+ customer?: string | null | undefined;
82
+ description?: string | null | undefined;
83
+ metadata?: Record<string, string | number | null> | null | undefined;
84
+ application?: string | null | undefined;
85
+ on_behalf_of?: string | null | undefined;
86
+ payment_method?: string | null | undefined;
87
+ client_secret?: string | null | undefined;
88
+ payment_method_configuration_details?: {
89
+ parent?: string | null | undefined;
90
+ id: string;
91
+ } | null | undefined;
92
+ automatic_payment_methods?: {
93
+ allow_redirects?: "always" | "never" | null | undefined;
94
+ enabled?: boolean | null | undefined;
95
+ } | null | undefined;
96
+ cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
97
+ attach_to_self?: boolean | null | undefined;
98
+ latest_attempt?: string | null | undefined;
99
+ mandate?: string | null | undefined;
100
+ single_use_mandate?: string | null | undefined;
101
+ object: string;
102
+ id: string;
103
+ status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
104
+ created: number;
105
+ livemode: boolean;
106
+ payment_method_options: any;
107
+ payment_method_types: string[];
108
+ next_action: any;
109
+ last_setup_error: any;
110
+ usage: string;
111
+ flow_directions: ("inbound" | "outbound")[] | null;
112
+ }, {
113
+ id: import('convex/values').VString<string, "required">;
114
+ automatic_payment_methods: import('convex/values').VUnion<{
115
+ allow_redirects?: "always" | "never" | null | undefined;
116
+ enabled?: boolean | null | undefined;
117
+ } | null | undefined, [import('convex/values').VObject<{
118
+ allow_redirects?: "always" | "never" | null | undefined;
119
+ enabled?: boolean | null | undefined;
120
+ }, {
121
+ allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
122
+ enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
123
+ }, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
124
+ client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
125
+ customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
126
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
127
+ last_setup_error: import('convex/values').VAny<any, "required", string>;
128
+ metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
129
+ next_action: import('convex/values').VAny<any, "required", string>;
130
+ payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
131
+ status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
132
+ usage: import('convex/values').VString<string, "required">;
133
+ object: import('convex/values').VString<string, "required">;
134
+ application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
135
+ attach_to_self: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
136
+ cancellation_reason: import('convex/values').VUnion<"duplicate" | "abandoned" | "requested_by_customer" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
137
+ created: import('convex/values').VFloat64<number, "required">;
138
+ flow_directions: import('convex/values').VUnion<("inbound" | "outbound")[] | null, [import('convex/values').VArray<("inbound" | "outbound")[], import('convex/values').VUnion<"inbound" | "outbound", [import('convex/values').VLiteral<"inbound", "required">, import('convex/values').VLiteral<"outbound", "required">], "required", never>, "required">, import('convex/values').VNull<null, "required">], "required", never>;
139
+ latest_attempt: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
140
+ livemode: import('convex/values').VBoolean<boolean, "required">;
141
+ mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
142
+ on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
143
+ payment_method_configuration_details: import('convex/values').VUnion<{
144
+ parent?: string | null | undefined;
145
+ id: string;
146
+ } | null | undefined, [import('convex/values').VObject<{
147
+ parent?: string | null | undefined;
148
+ id: string;
149
+ }, {
150
+ id: import('convex/values').VString<string, "required">;
151
+ parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
152
+ }, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
153
+ payment_method_options: import('convex/values').VAny<any, "required", string>;
154
+ payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
155
+ single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
156
+ }, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;