@raideno/convex-stripe 0.1.14 → 0.1.15

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.
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
63
63
  operation: string;
64
64
  table: string;
65
65
  }, Promise<{
66
- id: GenericId<"stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules" | "stripeMandates">;
66
+ id: GenericId<"stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules" | "stripeMandates" | "stripeBillingPortalConfigurations">;
67
67
  deleted?: undefined;
68
68
  doc?: undefined;
69
69
  docs?: undefined;
@@ -94,6 +94,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
94
94
  livemode: boolean;
95
95
  url: string | null;
96
96
  active: boolean;
97
+ updated: number;
97
98
  images: string[];
98
99
  package_dimensions: {
99
100
  length: number;
@@ -102,7 +103,6 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
102
103
  width: number;
103
104
  } | null;
104
105
  shippable: boolean | null;
105
- updated: number;
106
106
  marketing_features: {
107
107
  name?: string | null | undefined;
108
108
  }[];
@@ -403,11 +403,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
403
403
  enabled: boolean;
404
404
  } | null | undefined;
405
405
  next_action?: any;
406
- amount_details?: {
407
- tip?: {
408
- amount?: number | null | undefined;
409
- } | null | undefined;
410
- } | null | undefined;
406
+ amount_details?: any;
411
407
  canceled_at?: number | null | undefined;
412
408
  cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
413
409
  object: string;
@@ -617,8 +613,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
617
613
  stripe: {
618
614
  amount?: number | null | undefined;
619
615
  metadata?: Record<string, string | number | null> | null | undefined;
620
- nickname?: string | null | undefined;
621
616
  product?: string | null | undefined;
617
+ nickname?: string | null | undefined;
622
618
  amount_decimal?: string | null | undefined;
623
619
  meter?: string | null | undefined;
624
620
  tiers?: any[] | null | undefined;
@@ -1018,6 +1014,73 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
1018
1014
  };
1019
1015
  lastSyncedAt: number;
1020
1016
  mandateId: string;
1017
+ } | {
1018
+ _id: GenericId<"stripeBillingPortalConfigurations">;
1019
+ _creationTime: number;
1020
+ stripe: {
1021
+ object: string;
1022
+ id: string;
1023
+ name: string | null;
1024
+ metadata: Record<string, string | number | null> | null;
1025
+ application: string | null;
1026
+ created: number;
1027
+ livemode: boolean;
1028
+ active: boolean;
1029
+ business_profile: {
1030
+ headline: string | null;
1031
+ privacy_policy_url: string | null;
1032
+ terms_of_service_url: string | null;
1033
+ };
1034
+ default_return_url: string | null;
1035
+ features: {
1036
+ subscription_update: {
1037
+ products?: {
1038
+ adjustable_quantity: {
1039
+ enabled: boolean;
1040
+ maximum: number | null;
1041
+ minimum: number | null;
1042
+ };
1043
+ prices: string[];
1044
+ product: string;
1045
+ }[] | null | undefined;
1046
+ enabled: boolean;
1047
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
1048
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
1049
+ schedule_at_period_end: {
1050
+ conditions: {
1051
+ type: "decreasing_item_amount" | "shortening_interval";
1052
+ }[];
1053
+ };
1054
+ };
1055
+ customer_update: {
1056
+ enabled: boolean;
1057
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
1058
+ };
1059
+ invoice_history: {
1060
+ enabled: boolean;
1061
+ };
1062
+ payment_method_update: {
1063
+ enabled: boolean;
1064
+ };
1065
+ subscription_cancel: {
1066
+ mode: "at_period_end" | "immediately";
1067
+ enabled: boolean;
1068
+ cancellation_reason: {
1069
+ enabled: boolean;
1070
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
1071
+ };
1072
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
1073
+ };
1074
+ };
1075
+ is_default: boolean;
1076
+ login_page: {
1077
+ url: string | null;
1078
+ enabled: boolean;
1079
+ };
1080
+ updated: number;
1081
+ };
1082
+ lastSyncedAt: number;
1083
+ billingPortalConfigurationId: string;
1021
1084
  })[];
1022
1085
  id?: undefined;
1023
1086
  deleted?: undefined;
@@ -1080,6 +1143,7 @@ created: number;
1080
1143
  livemode: boolean;
1081
1144
  url: string | null;
1082
1145
  active: boolean;
1146
+ updated: number;
1083
1147
  images: string[];
1084
1148
  package_dimensions: {
1085
1149
  length: number;
@@ -1088,7 +1152,6 @@ weight: number;
1088
1152
  width: number;
1089
1153
  } | null;
1090
1154
  shippable: boolean | null;
1091
- updated: number;
1092
1155
  marketing_features: {
1093
1156
  name?: string | null | undefined;
1094
1157
  }[];
@@ -1109,6 +1172,7 @@ created: number;
1109
1172
  livemode: boolean;
1110
1173
  url: string | null;
1111
1174
  active: boolean;
1175
+ updated: number;
1112
1176
  images: string[];
1113
1177
  package_dimensions: {
1114
1178
  length: number;
@@ -1117,7 +1181,6 @@ weight: number;
1117
1181
  width: number;
1118
1182
  } | null;
1119
1183
  shippable: boolean | null;
1120
- updated: number;
1121
1184
  marketing_features: {
1122
1185
  name?: string | null | undefined;
1123
1186
  }[];
@@ -1161,9 +1224,9 @@ name?: string | null | undefined;
1161
1224
  name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
1162
1225
  }, "required", "name">, "required">;
1163
1226
  default_price: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
1164
- }, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "images" | "package_dimensions" | "shippable" | "unit_label" | "updated" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
1227
+ }, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "updated" | "images" | "package_dimensions" | "shippable" | "unit_label" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
1165
1228
  lastSyncedAt: VFloat64<number, "required">;
1166
- }, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.updated" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
1229
+ }, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.updated" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
1167
1230
  byActive: ["stripe.active", "_creationTime"];
1168
1231
  byName: ["stripe.name", "_creationTime"];
1169
1232
  }, {}, {}>;
@@ -2047,11 +2110,7 @@ allow_redirects?: "always" | "never" | null | undefined;
2047
2110
  enabled: boolean;
2048
2111
  } | null | undefined;
2049
2112
  next_action?: any;
2050
- amount_details?: {
2051
- tip?: {
2052
- amount?: number | null | undefined;
2053
- } | null | undefined;
2054
- } | null | undefined;
2113
+ amount_details?: any;
2055
2114
  canceled_at?: number | null | undefined;
2056
2115
  cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
2057
2116
  object: string;
@@ -2118,11 +2177,7 @@ allow_redirects?: "always" | "never" | null | undefined;
2118
2177
  enabled: boolean;
2119
2178
  } | null | undefined;
2120
2179
  next_action?: any;
2121
- amount_details?: {
2122
- tip?: {
2123
- amount?: number | null | undefined;
2124
- } | null | undefined;
2125
- } | null | undefined;
2180
+ amount_details?: any;
2126
2181
  canceled_at?: number | null | undefined;
2127
2182
  cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
2128
2183
  object: string;
@@ -2214,23 +2269,7 @@ statement_descriptor_suffix: VUnion<string | null | undefined, [VString<string,
2214
2269
  status: VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [VLiteral<"canceled", "required">, VLiteral<"processing", "required">, VLiteral<"requires_action", "required">, VLiteral<"requires_capture", "required">, VLiteral<"requires_confirmation", "required">, VLiteral<"requires_payment_method", "required">, VLiteral<"succeeded", "required">], "required", never>;
2215
2270
  object: VString<string, "required">;
2216
2271
  amount_capturable: VFloat64<number, "required">;
2217
- amount_details: VUnion< {
2218
- tip?: {
2219
- amount?: number | null | undefined;
2220
- } | null | undefined;
2221
- } | null | undefined, [VObject< {
2222
- tip?: {
2223
- amount?: number | null | undefined;
2224
- } | null | undefined;
2225
- }, {
2226
- tip: VUnion< {
2227
- amount?: number | null | undefined;
2228
- } | null | undefined, [VObject< {
2229
- amount?: number | null | undefined;
2230
- }, {
2231
- amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
2232
- }, "required", "amount">, VNull<null, "required">], "optional", "amount">;
2233
- }, "required", "tip" | "tip.amount">, VNull<null, "required">], "optional", "tip" | "tip.amount">;
2272
+ amount_details: VUnion<any, [VNull<null, "required">, VAny<any, "required", string>], "optional", string>;
2234
2273
  amount_received: VFloat64<number, "required">;
2235
2274
  application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
2236
2275
  application_fee_amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
@@ -2259,9 +2298,9 @@ processing: VAny<any, "optional", string>;
2259
2298
  review: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
2260
2299
  transfer_data: VAny<any, "optional", string>;
2261
2300
  transfer_group: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
2262
- }, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.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_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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
2301
+ }, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.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_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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | `amount_details.${string}`>;
2263
2302
  lastSyncedAt: VFloat64<number, "required">;
2264
- }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.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_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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount">, {
2303
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.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_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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | `stripe.amount_details.${string}`>, {
2265
2304
  byPaymentIntentId: ["paymentIntentId", "_creationTime"];
2266
2305
  }, {}, {}>;
2267
2306
  stripeCheckoutSessions: TableDefinition<VObject< {
@@ -2821,8 +2860,8 @@ stripePlans: TableDefinition<VObject< {
2821
2860
  stripe: {
2822
2861
  amount?: number | null | undefined;
2823
2862
  metadata?: Record<string, string | number | null> | null | undefined;
2824
- nickname?: string | null | undefined;
2825
2863
  product?: string | null | undefined;
2864
+ nickname?: string | null | undefined;
2826
2865
  amount_decimal?: string | null | undefined;
2827
2866
  meter?: string | null | undefined;
2828
2867
  tiers?: any[] | null | undefined;
@@ -2850,8 +2889,8 @@ planId: VString<string, "required">;
2850
2889
  stripe: VObject< {
2851
2890
  amount?: number | null | undefined;
2852
2891
  metadata?: Record<string, string | number | null> | null | undefined;
2853
- nickname?: string | null | undefined;
2854
2892
  product?: string | null | undefined;
2893
+ nickname?: string | null | undefined;
2855
2894
  amount_decimal?: string | null | undefined;
2856
2895
  meter?: string | null | undefined;
2857
2896
  tiers?: any[] | null | undefined;
@@ -2901,9 +2940,9 @@ round: VUnion<"up" | "down", [VLiteral<"up", "required">, VLiteral<"down", "requ
2901
2940
  }, "required", "divide_by" | "round">, VNull<null, "required">], "optional", "divide_by" | "round">;
2902
2941
  trial_period_days: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
2903
2942
  usage_type: VString<string, "required">;
2904
- }, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "interval" | "nickname" | "product" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
2943
+ }, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "product" | "interval" | "nickname" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
2905
2944
  lastSyncedAt: VFloat64<number, "required">;
2906
- }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.interval" | "stripe.product" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
2945
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.product" | "stripe.interval" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
2907
2946
  byPlanId: ["planId", "_creationTime"];
2908
2947
  }, {}, {}>;
2909
2948
  stripeDisputes: TableDefinition<VObject< {
@@ -4193,6 +4232,318 @@ lastSyncedAt: VFloat64<number, "required">;
4193
4232
  }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.livemode" | "stripe.type" | "stripe.status" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "mandateId" | "stripe.multi_use" | "stripe.single_use" | "stripe.customer_acceptance" | `stripe.multi_use.${string}` | "stripe.single_use.amount" | "stripe.single_use.currency" | "stripe.customer_acceptance.type" | "stripe.customer_acceptance.accepted_at" | "stripe.customer_acceptance.offline" | "stripe.customer_acceptance.online" | `stripe.customer_acceptance.offline.${string}` | "stripe.customer_acceptance.online.ip_address" | "stripe.customer_acceptance.online.user_agent">, {
4194
4233
  byMandateId: ["mandateId", "_creationTime"];
4195
4234
  }, {}, {}>;
4235
+ stripeBillingPortalConfigurations: TableDefinition<VObject< {
4236
+ stripe: {
4237
+ object: string;
4238
+ id: string;
4239
+ name: string | null;
4240
+ metadata: Record<string, string | number | null> | null;
4241
+ application: string | null;
4242
+ created: number;
4243
+ livemode: boolean;
4244
+ active: boolean;
4245
+ business_profile: {
4246
+ headline: string | null;
4247
+ privacy_policy_url: string | null;
4248
+ terms_of_service_url: string | null;
4249
+ };
4250
+ default_return_url: string | null;
4251
+ features: {
4252
+ subscription_update: {
4253
+ products?: {
4254
+ adjustable_quantity: {
4255
+ enabled: boolean;
4256
+ maximum: number | null;
4257
+ minimum: number | null;
4258
+ };
4259
+ prices: string[];
4260
+ product: string;
4261
+ }[] | null | undefined;
4262
+ enabled: boolean;
4263
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4264
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
4265
+ schedule_at_period_end: {
4266
+ conditions: {
4267
+ type: "decreasing_item_amount" | "shortening_interval";
4268
+ }[];
4269
+ };
4270
+ };
4271
+ customer_update: {
4272
+ enabled: boolean;
4273
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
4274
+ };
4275
+ invoice_history: {
4276
+ enabled: boolean;
4277
+ };
4278
+ payment_method_update: {
4279
+ enabled: boolean;
4280
+ };
4281
+ subscription_cancel: {
4282
+ mode: "at_period_end" | "immediately";
4283
+ enabled: boolean;
4284
+ cancellation_reason: {
4285
+ enabled: boolean;
4286
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
4287
+ };
4288
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4289
+ };
4290
+ };
4291
+ is_default: boolean;
4292
+ login_page: {
4293
+ url: string | null;
4294
+ enabled: boolean;
4295
+ };
4296
+ updated: number;
4297
+ };
4298
+ lastSyncedAt: number;
4299
+ billingPortalConfigurationId: string;
4300
+ }, {
4301
+ billingPortalConfigurationId: VString<string, "required">;
4302
+ stripe: VObject< {
4303
+ object: string;
4304
+ id: string;
4305
+ name: string | null;
4306
+ metadata: Record<string, string | number | null> | null;
4307
+ application: string | null;
4308
+ created: number;
4309
+ livemode: boolean;
4310
+ active: boolean;
4311
+ business_profile: {
4312
+ headline: string | null;
4313
+ privacy_policy_url: string | null;
4314
+ terms_of_service_url: string | null;
4315
+ };
4316
+ default_return_url: string | null;
4317
+ features: {
4318
+ subscription_update: {
4319
+ products?: {
4320
+ adjustable_quantity: {
4321
+ enabled: boolean;
4322
+ maximum: number | null;
4323
+ minimum: number | null;
4324
+ };
4325
+ prices: string[];
4326
+ product: string;
4327
+ }[] | null | undefined;
4328
+ enabled: boolean;
4329
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4330
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
4331
+ schedule_at_period_end: {
4332
+ conditions: {
4333
+ type: "decreasing_item_amount" | "shortening_interval";
4334
+ }[];
4335
+ };
4336
+ };
4337
+ customer_update: {
4338
+ enabled: boolean;
4339
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
4340
+ };
4341
+ invoice_history: {
4342
+ enabled: boolean;
4343
+ };
4344
+ payment_method_update: {
4345
+ enabled: boolean;
4346
+ };
4347
+ subscription_cancel: {
4348
+ mode: "at_period_end" | "immediately";
4349
+ enabled: boolean;
4350
+ cancellation_reason: {
4351
+ enabled: boolean;
4352
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
4353
+ };
4354
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4355
+ };
4356
+ };
4357
+ is_default: boolean;
4358
+ login_page: {
4359
+ url: string | null;
4360
+ enabled: boolean;
4361
+ };
4362
+ updated: number;
4363
+ }, {
4364
+ id: VString<string, "required">;
4365
+ object: VString<string, "required">;
4366
+ active: VBoolean<boolean, "required">;
4367
+ application: VUnion<string | null, [VNull<null, "required">, VString<string, "required">], "required", never>;
4368
+ business_profile: VObject< {
4369
+ headline: string | null;
4370
+ privacy_policy_url: string | null;
4371
+ terms_of_service_url: string | null;
4372
+ }, {
4373
+ headline: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4374
+ privacy_policy_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4375
+ terms_of_service_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4376
+ }, "required", "headline" | "privacy_policy_url" | "terms_of_service_url">;
4377
+ created: VFloat64<number, "required">;
4378
+ default_return_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4379
+ features: VObject< {
4380
+ subscription_update: {
4381
+ products?: {
4382
+ adjustable_quantity: {
4383
+ enabled: boolean;
4384
+ maximum: number | null;
4385
+ minimum: number | null;
4386
+ };
4387
+ prices: string[];
4388
+ product: string;
4389
+ }[] | null | undefined;
4390
+ enabled: boolean;
4391
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4392
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
4393
+ schedule_at_period_end: {
4394
+ conditions: {
4395
+ type: "decreasing_item_amount" | "shortening_interval";
4396
+ }[];
4397
+ };
4398
+ };
4399
+ customer_update: {
4400
+ enabled: boolean;
4401
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
4402
+ };
4403
+ invoice_history: {
4404
+ enabled: boolean;
4405
+ };
4406
+ payment_method_update: {
4407
+ enabled: boolean;
4408
+ };
4409
+ subscription_cancel: {
4410
+ mode: "at_period_end" | "immediately";
4411
+ enabled: boolean;
4412
+ cancellation_reason: {
4413
+ enabled: boolean;
4414
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
4415
+ };
4416
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4417
+ };
4418
+ }, {
4419
+ customer_update: VObject< {
4420
+ enabled: boolean;
4421
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
4422
+ }, {
4423
+ allowed_updated: VArray<("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[], VUnion<"address" | "email" | "name" | "phone" | "tax_id" | "shipping", [VLiteral<"address", "required">, VLiteral<"email", "required">, VLiteral<"name", "required">, VLiteral<"phone", "required">, VLiteral<"shipping", "required">, VLiteral<"tax_id", "required">], "required", never>, "required">;
4424
+ enabled: VBoolean<boolean, "required">;
4425
+ }, "required", "enabled" | "allowed_updated">;
4426
+ invoice_history: VObject< {
4427
+ enabled: boolean;
4428
+ }, {
4429
+ enabled: VBoolean<boolean, "required">;
4430
+ }, "required", "enabled">;
4431
+ payment_method_update: VObject< {
4432
+ enabled: boolean;
4433
+ }, {
4434
+ enabled: VBoolean<boolean, "required">;
4435
+ }, "required", "enabled">;
4436
+ subscription_cancel: VObject< {
4437
+ mode: "at_period_end" | "immediately";
4438
+ enabled: boolean;
4439
+ cancellation_reason: {
4440
+ enabled: boolean;
4441
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
4442
+ };
4443
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4444
+ }, {
4445
+ cancellation_reason: VObject< {
4446
+ enabled: boolean;
4447
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
4448
+ }, {
4449
+ enabled: VBoolean<boolean, "required">;
4450
+ options: VArray<("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[], VUnion<"customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused", [VLiteral<"customer_service", "required">, VLiteral<"low_quality", "required">, VLiteral<"missing_features", "required">, VLiteral<"other", "required">, VLiteral<"switched_service", "required">, VLiteral<"too_complex", "required">, VLiteral<"too_expensive", "required">, VLiteral<"unused", "required">], "required", never>, "required">;
4451
+ }, "required", "enabled" | "options">;
4452
+ enabled: VBoolean<boolean, "required">;
4453
+ mode: VUnion<"at_period_end" | "immediately", [VLiteral<"at_period_end", "required">, VLiteral<"immediately", "required">], "required", never>;
4454
+ proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
4455
+ }, "required", "mode" | "enabled" | "cancellation_reason" | "proration_behavior" | "cancellation_reason.enabled" | "cancellation_reason.options">;
4456
+ subscription_update: VObject< {
4457
+ products?: {
4458
+ adjustable_quantity: {
4459
+ enabled: boolean;
4460
+ maximum: number | null;
4461
+ minimum: number | null;
4462
+ };
4463
+ prices: string[];
4464
+ product: string;
4465
+ }[] | null | undefined;
4466
+ enabled: boolean;
4467
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
4468
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
4469
+ schedule_at_period_end: {
4470
+ conditions: {
4471
+ type: "decreasing_item_amount" | "shortening_interval";
4472
+ }[];
4473
+ };
4474
+ }, {
4475
+ default_allowed_updates: VArray<("price" | "promotion_code" | "quantity")[], VUnion<"price" | "promotion_code" | "quantity", [VLiteral<"price", "required">, VLiteral<"promotion_code", "required">, VLiteral<"quantity", "required">], "required", never>, "required">;
4476
+ enabled: VBoolean<boolean, "required">;
4477
+ products: VUnion< {
4478
+ adjustable_quantity: {
4479
+ enabled: boolean;
4480
+ maximum: number | null;
4481
+ minimum: number | null;
4482
+ };
4483
+ prices: string[];
4484
+ product: string;
4485
+ }[] | null | undefined, [VNull<null, "required">, VArray< {
4486
+ adjustable_quantity: {
4487
+ enabled: boolean;
4488
+ maximum: number | null;
4489
+ minimum: number | null;
4490
+ };
4491
+ prices: string[];
4492
+ product: string;
4493
+ }[], VObject< {
4494
+ adjustable_quantity: {
4495
+ enabled: boolean;
4496
+ maximum: number | null;
4497
+ minimum: number | null;
4498
+ };
4499
+ prices: string[];
4500
+ product: string;
4501
+ }, {
4502
+ adjustable_quantity: VObject< {
4503
+ enabled: boolean;
4504
+ maximum: number | null;
4505
+ minimum: number | null;
4506
+ }, {
4507
+ enabled: VBoolean<boolean, "required">;
4508
+ maximum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
4509
+ minimum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
4510
+ }, "required", "enabled" | "maximum" | "minimum">;
4511
+ prices: VArray<string[], VString<string, "required">, "required">;
4512
+ product: VString<string, "required">;
4513
+ }, "required", "adjustable_quantity" | "prices" | "product" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, "required">], "optional", never>;
4514
+ proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
4515
+ schedule_at_period_end: VObject< {
4516
+ conditions: {
4517
+ type: "decreasing_item_amount" | "shortening_interval";
4518
+ }[];
4519
+ }, {
4520
+ conditions: VArray< {
4521
+ type: "decreasing_item_amount" | "shortening_interval";
4522
+ }[], VObject< {
4523
+ type: "decreasing_item_amount" | "shortening_interval";
4524
+ }, {
4525
+ type: VUnion<"decreasing_item_amount" | "shortening_interval", [VLiteral<"decreasing_item_amount", "required">, VLiteral<"shortening_interval", "required">], "required", never>;
4526
+ }, "required", "type">, "required">;
4527
+ }, "required", "conditions">;
4528
+ }, "required", "enabled" | "products" | "proration_behavior" | "default_allowed_updates" | "schedule_at_period_end" | "schedule_at_period_end.conditions">;
4529
+ }, "required", "subscription_update" | "customer_update" | "invoice_history" | "payment_method_update" | "subscription_cancel" | "subscription_update.enabled" | "subscription_update.products" | "subscription_update.proration_behavior" | "subscription_update.default_allowed_updates" | "subscription_update.schedule_at_period_end" | "subscription_update.schedule_at_period_end.conditions" | "customer_update.enabled" | "customer_update.allowed_updated" | "invoice_history.enabled" | "payment_method_update.enabled" | "subscription_cancel.mode" | "subscription_cancel.enabled" | "subscription_cancel.cancellation_reason" | "subscription_cancel.proration_behavior" | "subscription_cancel.cancellation_reason.enabled" | "subscription_cancel.cancellation_reason.options">;
4530
+ is_default: VBoolean<boolean, "required">;
4531
+ livemode: VBoolean<boolean, "required">;
4532
+ login_page: VObject< {
4533
+ url: string | null;
4534
+ enabled: boolean;
4535
+ }, {
4536
+ enabled: VBoolean<boolean, "required">;
4537
+ url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4538
+ }, "required", "url" | "enabled">;
4539
+ metadata: VUnion<Record<string, string | number | null> | null, [VNull<null, "required">, VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>], "required", string>;
4540
+ name: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4541
+ updated: VFloat64<number, "required">;
4542
+ }, "required", "object" | "id" | "name" | "metadata" | "application" | "created" | "livemode" | `metadata.${string}` | "active" | "business_profile" | "default_return_url" | "features" | "is_default" | "login_page" | "updated" | "business_profile.headline" | "business_profile.privacy_policy_url" | "business_profile.terms_of_service_url" | "features.subscription_update" | "features.customer_update" | "features.invoice_history" | "features.payment_method_update" | "features.subscription_cancel" | "features.subscription_update.enabled" | "features.subscription_update.products" | "features.subscription_update.proration_behavior" | "features.subscription_update.default_allowed_updates" | "features.subscription_update.schedule_at_period_end" | "features.subscription_update.schedule_at_period_end.conditions" | "features.customer_update.enabled" | "features.customer_update.allowed_updated" | "features.invoice_history.enabled" | "features.payment_method_update.enabled" | "features.subscription_cancel.mode" | "features.subscription_cancel.enabled" | "features.subscription_cancel.cancellation_reason" | "features.subscription_cancel.proration_behavior" | "features.subscription_cancel.cancellation_reason.enabled" | "features.subscription_cancel.cancellation_reason.options" | "login_page.url" | "login_page.enabled">;
4543
+ lastSyncedAt: VFloat64<number, "required">;
4544
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.updated" | "stripe.application" | "billingPortalConfigurationId" | "stripe.business_profile" | "stripe.default_return_url" | "stripe.features" | "stripe.is_default" | "stripe.login_page" | "stripe.business_profile.headline" | "stripe.business_profile.privacy_policy_url" | "stripe.business_profile.terms_of_service_url" | "stripe.features.subscription_update" | "stripe.features.customer_update" | "stripe.features.invoice_history" | "stripe.features.payment_method_update" | "stripe.features.subscription_cancel" | "stripe.features.subscription_update.enabled" | "stripe.features.subscription_update.products" | "stripe.features.subscription_update.proration_behavior" | "stripe.features.subscription_update.default_allowed_updates" | "stripe.features.subscription_update.schedule_at_period_end" | "stripe.features.subscription_update.schedule_at_period_end.conditions" | "stripe.features.customer_update.enabled" | "stripe.features.customer_update.allowed_updated" | "stripe.features.invoice_history.enabled" | "stripe.features.payment_method_update.enabled" | "stripe.features.subscription_cancel.mode" | "stripe.features.subscription_cancel.enabled" | "stripe.features.subscription_cancel.cancellation_reason" | "stripe.features.subscription_cancel.proration_behavior" | "stripe.features.subscription_cancel.cancellation_reason.enabled" | "stripe.features.subscription_cancel.cancellation_reason.options" | "stripe.login_page.url" | "stripe.login_page.enabled">, {
4545
+ byBillingPortalConfigurationId: ["billingPortalConfigurationId", "_creationTime"];
4546
+ }, {}, {}>;
4196
4547
  }, true>;
4197
4548
 
4198
4549
  export declare const stripeTables: {
@@ -4210,6 +4561,7 @@ export declare const stripeTables: {
4210
4561
  livemode: boolean;
4211
4562
  url: string | null;
4212
4563
  active: boolean;
4564
+ updated: number;
4213
4565
  images: string[];
4214
4566
  package_dimensions: {
4215
4567
  length: number;
@@ -4218,7 +4570,6 @@ export declare const stripeTables: {
4218
4570
  width: number;
4219
4571
  } | null;
4220
4572
  shippable: boolean | null;
4221
- updated: number;
4222
4573
  marketing_features: {
4223
4574
  name?: string | null | undefined;
4224
4575
  }[];
@@ -4239,6 +4590,7 @@ export declare const stripeTables: {
4239
4590
  livemode: boolean;
4240
4591
  url: string | null;
4241
4592
  active: boolean;
4593
+ updated: number;
4242
4594
  images: string[];
4243
4595
  package_dimensions: {
4244
4596
  length: number;
@@ -4247,7 +4599,6 @@ export declare const stripeTables: {
4247
4599
  width: number;
4248
4600
  } | null;
4249
4601
  shippable: boolean | null;
4250
- updated: number;
4251
4602
  marketing_features: {
4252
4603
  name?: string | null | undefined;
4253
4604
  }[];
@@ -4291,9 +4642,9 @@ export declare const stripeTables: {
4291
4642
  name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
4292
4643
  }, "required", "name">, "required">;
4293
4644
  default_price: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
4294
- }, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "images" | "package_dimensions" | "shippable" | "unit_label" | "updated" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
4645
+ }, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "updated" | "images" | "package_dimensions" | "shippable" | "unit_label" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
4295
4646
  lastSyncedAt: VFloat64<number, "required">;
4296
- }, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.updated" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
4647
+ }, "required", "productId" | "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.url" | "stripe.active" | "stripe.updated" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
4297
4648
  byActive: ["stripe.active", "_creationTime"];
4298
4649
  byName: ["stripe.name", "_creationTime"];
4299
4650
  }, {}, {}>;
@@ -5177,11 +5528,7 @@ export declare const stripeTables: {
5177
5528
  enabled: boolean;
5178
5529
  } | null | undefined;
5179
5530
  next_action?: any;
5180
- amount_details?: {
5181
- tip?: {
5182
- amount?: number | null | undefined;
5183
- } | null | undefined;
5184
- } | null | undefined;
5531
+ amount_details?: any;
5185
5532
  canceled_at?: number | null | undefined;
5186
5533
  cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
5187
5534
  object: string;
@@ -5248,11 +5595,7 @@ export declare const stripeTables: {
5248
5595
  enabled: boolean;
5249
5596
  } | null | undefined;
5250
5597
  next_action?: any;
5251
- amount_details?: {
5252
- tip?: {
5253
- amount?: number | null | undefined;
5254
- } | null | undefined;
5255
- } | null | undefined;
5598
+ amount_details?: any;
5256
5599
  canceled_at?: number | null | undefined;
5257
5600
  cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
5258
5601
  object: string;
@@ -5344,23 +5687,7 @@ export declare const stripeTables: {
5344
5687
  status: VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [VLiteral<"canceled", "required">, VLiteral<"processing", "required">, VLiteral<"requires_action", "required">, VLiteral<"requires_capture", "required">, VLiteral<"requires_confirmation", "required">, VLiteral<"requires_payment_method", "required">, VLiteral<"succeeded", "required">], "required", never>;
5345
5688
  object: VString<string, "required">;
5346
5689
  amount_capturable: VFloat64<number, "required">;
5347
- amount_details: VUnion< {
5348
- tip?: {
5349
- amount?: number | null | undefined;
5350
- } | null | undefined;
5351
- } | null | undefined, [VObject< {
5352
- tip?: {
5353
- amount?: number | null | undefined;
5354
- } | null | undefined;
5355
- }, {
5356
- tip: VUnion< {
5357
- amount?: number | null | undefined;
5358
- } | null | undefined, [VObject< {
5359
- amount?: number | null | undefined;
5360
- }, {
5361
- amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
5362
- }, "required", "amount">, VNull<null, "required">], "optional", "amount">;
5363
- }, "required", "tip" | "tip.amount">, VNull<null, "required">], "optional", "tip" | "tip.amount">;
5690
+ amount_details: VUnion<any, [VNull<null, "required">, VAny<any, "required", string>], "optional", string>;
5364
5691
  amount_received: VFloat64<number, "required">;
5365
5692
  application: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
5366
5693
  application_fee_amount: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
@@ -5389,9 +5716,9 @@ export declare const stripeTables: {
5389
5716
  review: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
5390
5717
  transfer_data: VAny<any, "optional", string>;
5391
5718
  transfer_group: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
5392
- }, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.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_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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
5719
+ }, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.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_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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | `amount_details.${string}`>;
5393
5720
  lastSyncedAt: VFloat64<number, "required">;
5394
- }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.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_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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount">, {
5721
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.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_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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | `stripe.amount_details.${string}`>, {
5395
5722
  byPaymentIntentId: ["paymentIntentId", "_creationTime"];
5396
5723
  }, {}, {}>;
5397
5724
  stripeCheckoutSessions: TableDefinition<VObject< {
@@ -5951,8 +6278,8 @@ export declare const stripeTables: {
5951
6278
  stripe: {
5952
6279
  amount?: number | null | undefined;
5953
6280
  metadata?: Record<string, string | number | null> | null | undefined;
5954
- nickname?: string | null | undefined;
5955
6281
  product?: string | null | undefined;
6282
+ nickname?: string | null | undefined;
5956
6283
  amount_decimal?: string | null | undefined;
5957
6284
  meter?: string | null | undefined;
5958
6285
  tiers?: any[] | null | undefined;
@@ -5980,8 +6307,8 @@ export declare const stripeTables: {
5980
6307
  stripe: VObject< {
5981
6308
  amount?: number | null | undefined;
5982
6309
  metadata?: Record<string, string | number | null> | null | undefined;
5983
- nickname?: string | null | undefined;
5984
6310
  product?: string | null | undefined;
6311
+ nickname?: string | null | undefined;
5985
6312
  amount_decimal?: string | null | undefined;
5986
6313
  meter?: string | null | undefined;
5987
6314
  tiers?: any[] | null | undefined;
@@ -6031,9 +6358,9 @@ export declare const stripeTables: {
6031
6358
  }, "required", "divide_by" | "round">, VNull<null, "required">], "optional", "divide_by" | "round">;
6032
6359
  trial_period_days: VUnion<number | null | undefined, [VFloat64<number, "required">, VNull<null, "required">], "optional", never>;
6033
6360
  usage_type: VString<string, "required">;
6034
- }, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "interval" | "nickname" | "product" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
6361
+ }, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "product" | "interval" | "nickname" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
6035
6362
  lastSyncedAt: VFloat64<number, "required">;
6036
- }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.interval" | "stripe.product" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
6363
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.currency" | "stripe.nickname" | "stripe.billing_scheme" | "stripe.tiers_mode" | "stripe.amount" | "planId" | "stripe.product" | "stripe.interval" | "stripe.amount_decimal" | "stripe.interval_count" | "stripe.meter" | "stripe.tiers" | "stripe.transform_usage" | "stripe.trial_period_days" | "stripe.usage_type" | "stripe.transform_usage.divide_by" | "stripe.transform_usage.round">, {
6037
6364
  byPlanId: ["planId", "_creationTime"];
6038
6365
  }, {}, {}>;
6039
6366
  stripeDisputes: TableDefinition<VObject< {
@@ -7323,6 +7650,318 @@ export declare const stripeTables: {
7323
7650
  }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.livemode" | "stripe.type" | "stripe.status" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "mandateId" | "stripe.multi_use" | "stripe.single_use" | "stripe.customer_acceptance" | `stripe.multi_use.${string}` | "stripe.single_use.amount" | "stripe.single_use.currency" | "stripe.customer_acceptance.type" | "stripe.customer_acceptance.accepted_at" | "stripe.customer_acceptance.offline" | "stripe.customer_acceptance.online" | `stripe.customer_acceptance.offline.${string}` | "stripe.customer_acceptance.online.ip_address" | "stripe.customer_acceptance.online.user_agent">, {
7324
7651
  byMandateId: ["mandateId", "_creationTime"];
7325
7652
  }, {}, {}>;
7653
+ stripeBillingPortalConfigurations: TableDefinition<VObject< {
7654
+ stripe: {
7655
+ object: string;
7656
+ id: string;
7657
+ name: string | null;
7658
+ metadata: Record<string, string | number | null> | null;
7659
+ application: string | null;
7660
+ created: number;
7661
+ livemode: boolean;
7662
+ active: boolean;
7663
+ business_profile: {
7664
+ headline: string | null;
7665
+ privacy_policy_url: string | null;
7666
+ terms_of_service_url: string | null;
7667
+ };
7668
+ default_return_url: string | null;
7669
+ features: {
7670
+ subscription_update: {
7671
+ products?: {
7672
+ adjustable_quantity: {
7673
+ enabled: boolean;
7674
+ maximum: number | null;
7675
+ minimum: number | null;
7676
+ };
7677
+ prices: string[];
7678
+ product: string;
7679
+ }[] | null | undefined;
7680
+ enabled: boolean;
7681
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7682
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
7683
+ schedule_at_period_end: {
7684
+ conditions: {
7685
+ type: "decreasing_item_amount" | "shortening_interval";
7686
+ }[];
7687
+ };
7688
+ };
7689
+ customer_update: {
7690
+ enabled: boolean;
7691
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
7692
+ };
7693
+ invoice_history: {
7694
+ enabled: boolean;
7695
+ };
7696
+ payment_method_update: {
7697
+ enabled: boolean;
7698
+ };
7699
+ subscription_cancel: {
7700
+ mode: "at_period_end" | "immediately";
7701
+ enabled: boolean;
7702
+ cancellation_reason: {
7703
+ enabled: boolean;
7704
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
7705
+ };
7706
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7707
+ };
7708
+ };
7709
+ is_default: boolean;
7710
+ login_page: {
7711
+ url: string | null;
7712
+ enabled: boolean;
7713
+ };
7714
+ updated: number;
7715
+ };
7716
+ lastSyncedAt: number;
7717
+ billingPortalConfigurationId: string;
7718
+ }, {
7719
+ billingPortalConfigurationId: VString<string, "required">;
7720
+ stripe: VObject< {
7721
+ object: string;
7722
+ id: string;
7723
+ name: string | null;
7724
+ metadata: Record<string, string | number | null> | null;
7725
+ application: string | null;
7726
+ created: number;
7727
+ livemode: boolean;
7728
+ active: boolean;
7729
+ business_profile: {
7730
+ headline: string | null;
7731
+ privacy_policy_url: string | null;
7732
+ terms_of_service_url: string | null;
7733
+ };
7734
+ default_return_url: string | null;
7735
+ features: {
7736
+ subscription_update: {
7737
+ products?: {
7738
+ adjustable_quantity: {
7739
+ enabled: boolean;
7740
+ maximum: number | null;
7741
+ minimum: number | null;
7742
+ };
7743
+ prices: string[];
7744
+ product: string;
7745
+ }[] | null | undefined;
7746
+ enabled: boolean;
7747
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7748
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
7749
+ schedule_at_period_end: {
7750
+ conditions: {
7751
+ type: "decreasing_item_amount" | "shortening_interval";
7752
+ }[];
7753
+ };
7754
+ };
7755
+ customer_update: {
7756
+ enabled: boolean;
7757
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
7758
+ };
7759
+ invoice_history: {
7760
+ enabled: boolean;
7761
+ };
7762
+ payment_method_update: {
7763
+ enabled: boolean;
7764
+ };
7765
+ subscription_cancel: {
7766
+ mode: "at_period_end" | "immediately";
7767
+ enabled: boolean;
7768
+ cancellation_reason: {
7769
+ enabled: boolean;
7770
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
7771
+ };
7772
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7773
+ };
7774
+ };
7775
+ is_default: boolean;
7776
+ login_page: {
7777
+ url: string | null;
7778
+ enabled: boolean;
7779
+ };
7780
+ updated: number;
7781
+ }, {
7782
+ id: VString<string, "required">;
7783
+ object: VString<string, "required">;
7784
+ active: VBoolean<boolean, "required">;
7785
+ application: VUnion<string | null, [VNull<null, "required">, VString<string, "required">], "required", never>;
7786
+ business_profile: VObject< {
7787
+ headline: string | null;
7788
+ privacy_policy_url: string | null;
7789
+ terms_of_service_url: string | null;
7790
+ }, {
7791
+ headline: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7792
+ privacy_policy_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7793
+ terms_of_service_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7794
+ }, "required", "headline" | "privacy_policy_url" | "terms_of_service_url">;
7795
+ created: VFloat64<number, "required">;
7796
+ default_return_url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7797
+ features: VObject< {
7798
+ subscription_update: {
7799
+ products?: {
7800
+ adjustable_quantity: {
7801
+ enabled: boolean;
7802
+ maximum: number | null;
7803
+ minimum: number | null;
7804
+ };
7805
+ prices: string[];
7806
+ product: string;
7807
+ }[] | null | undefined;
7808
+ enabled: boolean;
7809
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7810
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
7811
+ schedule_at_period_end: {
7812
+ conditions: {
7813
+ type: "decreasing_item_amount" | "shortening_interval";
7814
+ }[];
7815
+ };
7816
+ };
7817
+ customer_update: {
7818
+ enabled: boolean;
7819
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
7820
+ };
7821
+ invoice_history: {
7822
+ enabled: boolean;
7823
+ };
7824
+ payment_method_update: {
7825
+ enabled: boolean;
7826
+ };
7827
+ subscription_cancel: {
7828
+ mode: "at_period_end" | "immediately";
7829
+ enabled: boolean;
7830
+ cancellation_reason: {
7831
+ enabled: boolean;
7832
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
7833
+ };
7834
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7835
+ };
7836
+ }, {
7837
+ customer_update: VObject< {
7838
+ enabled: boolean;
7839
+ allowed_updated: ("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[];
7840
+ }, {
7841
+ allowed_updated: VArray<("address" | "email" | "name" | "phone" | "tax_id" | "shipping")[], VUnion<"address" | "email" | "name" | "phone" | "tax_id" | "shipping", [VLiteral<"address", "required">, VLiteral<"email", "required">, VLiteral<"name", "required">, VLiteral<"phone", "required">, VLiteral<"shipping", "required">, VLiteral<"tax_id", "required">], "required", never>, "required">;
7842
+ enabled: VBoolean<boolean, "required">;
7843
+ }, "required", "enabled" | "allowed_updated">;
7844
+ invoice_history: VObject< {
7845
+ enabled: boolean;
7846
+ }, {
7847
+ enabled: VBoolean<boolean, "required">;
7848
+ }, "required", "enabled">;
7849
+ payment_method_update: VObject< {
7850
+ enabled: boolean;
7851
+ }, {
7852
+ enabled: VBoolean<boolean, "required">;
7853
+ }, "required", "enabled">;
7854
+ subscription_cancel: VObject< {
7855
+ mode: "at_period_end" | "immediately";
7856
+ enabled: boolean;
7857
+ cancellation_reason: {
7858
+ enabled: boolean;
7859
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
7860
+ };
7861
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7862
+ }, {
7863
+ cancellation_reason: VObject< {
7864
+ enabled: boolean;
7865
+ options: ("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[];
7866
+ }, {
7867
+ enabled: VBoolean<boolean, "required">;
7868
+ options: VArray<("customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused")[], VUnion<"customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused", [VLiteral<"customer_service", "required">, VLiteral<"low_quality", "required">, VLiteral<"missing_features", "required">, VLiteral<"other", "required">, VLiteral<"switched_service", "required">, VLiteral<"too_complex", "required">, VLiteral<"too_expensive", "required">, VLiteral<"unused", "required">], "required", never>, "required">;
7869
+ }, "required", "enabled" | "options">;
7870
+ enabled: VBoolean<boolean, "required">;
7871
+ mode: VUnion<"at_period_end" | "immediately", [VLiteral<"at_period_end", "required">, VLiteral<"immediately", "required">], "required", never>;
7872
+ proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
7873
+ }, "required", "mode" | "enabled" | "cancellation_reason" | "proration_behavior" | "cancellation_reason.enabled" | "cancellation_reason.options">;
7874
+ subscription_update: VObject< {
7875
+ products?: {
7876
+ adjustable_quantity: {
7877
+ enabled: boolean;
7878
+ maximum: number | null;
7879
+ minimum: number | null;
7880
+ };
7881
+ prices: string[];
7882
+ product: string;
7883
+ }[] | null | undefined;
7884
+ enabled: boolean;
7885
+ proration_behavior: "none" | "always_invoice" | "create_prorations";
7886
+ default_allowed_updates: ("price" | "promotion_code" | "quantity")[];
7887
+ schedule_at_period_end: {
7888
+ conditions: {
7889
+ type: "decreasing_item_amount" | "shortening_interval";
7890
+ }[];
7891
+ };
7892
+ }, {
7893
+ default_allowed_updates: VArray<("price" | "promotion_code" | "quantity")[], VUnion<"price" | "promotion_code" | "quantity", [VLiteral<"price", "required">, VLiteral<"promotion_code", "required">, VLiteral<"quantity", "required">], "required", never>, "required">;
7894
+ enabled: VBoolean<boolean, "required">;
7895
+ products: VUnion< {
7896
+ adjustable_quantity: {
7897
+ enabled: boolean;
7898
+ maximum: number | null;
7899
+ minimum: number | null;
7900
+ };
7901
+ prices: string[];
7902
+ product: string;
7903
+ }[] | null | undefined, [VNull<null, "required">, VArray< {
7904
+ adjustable_quantity: {
7905
+ enabled: boolean;
7906
+ maximum: number | null;
7907
+ minimum: number | null;
7908
+ };
7909
+ prices: string[];
7910
+ product: string;
7911
+ }[], VObject< {
7912
+ adjustable_quantity: {
7913
+ enabled: boolean;
7914
+ maximum: number | null;
7915
+ minimum: number | null;
7916
+ };
7917
+ prices: string[];
7918
+ product: string;
7919
+ }, {
7920
+ adjustable_quantity: VObject< {
7921
+ enabled: boolean;
7922
+ maximum: number | null;
7923
+ minimum: number | null;
7924
+ }, {
7925
+ enabled: VBoolean<boolean, "required">;
7926
+ maximum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
7927
+ minimum: VUnion<number | null, [VFloat64<number, "required">, VNull<null, "required">], "required", never>;
7928
+ }, "required", "enabled" | "maximum" | "minimum">;
7929
+ prices: VArray<string[], VString<string, "required">, "required">;
7930
+ product: VString<string, "required">;
7931
+ }, "required", "adjustable_quantity" | "prices" | "product" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum">, "required">], "optional", never>;
7932
+ proration_behavior: VUnion<"none" | "always_invoice" | "create_prorations", [VLiteral<"always_invoice", "required">, VLiteral<"create_prorations", "required">, VLiteral<"none", "required">], "required", never>;
7933
+ schedule_at_period_end: VObject< {
7934
+ conditions: {
7935
+ type: "decreasing_item_amount" | "shortening_interval";
7936
+ }[];
7937
+ }, {
7938
+ conditions: VArray< {
7939
+ type: "decreasing_item_amount" | "shortening_interval";
7940
+ }[], VObject< {
7941
+ type: "decreasing_item_amount" | "shortening_interval";
7942
+ }, {
7943
+ type: VUnion<"decreasing_item_amount" | "shortening_interval", [VLiteral<"decreasing_item_amount", "required">, VLiteral<"shortening_interval", "required">], "required", never>;
7944
+ }, "required", "type">, "required">;
7945
+ }, "required", "conditions">;
7946
+ }, "required", "enabled" | "products" | "proration_behavior" | "default_allowed_updates" | "schedule_at_period_end" | "schedule_at_period_end.conditions">;
7947
+ }, "required", "subscription_update" | "customer_update" | "invoice_history" | "payment_method_update" | "subscription_cancel" | "subscription_update.enabled" | "subscription_update.products" | "subscription_update.proration_behavior" | "subscription_update.default_allowed_updates" | "subscription_update.schedule_at_period_end" | "subscription_update.schedule_at_period_end.conditions" | "customer_update.enabled" | "customer_update.allowed_updated" | "invoice_history.enabled" | "payment_method_update.enabled" | "subscription_cancel.mode" | "subscription_cancel.enabled" | "subscription_cancel.cancellation_reason" | "subscription_cancel.proration_behavior" | "subscription_cancel.cancellation_reason.enabled" | "subscription_cancel.cancellation_reason.options">;
7948
+ is_default: VBoolean<boolean, "required">;
7949
+ livemode: VBoolean<boolean, "required">;
7950
+ login_page: VObject< {
7951
+ url: string | null;
7952
+ enabled: boolean;
7953
+ }, {
7954
+ enabled: VBoolean<boolean, "required">;
7955
+ url: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7956
+ }, "required", "url" | "enabled">;
7957
+ metadata: VUnion<Record<string, string | number | null> | null, [VNull<null, "required">, VRecord<Record<string, string | number | null>, VString<string, "required">, VUnion<string | number | null, [VString<string, "required">, VFloat64<number, "required">, VNull<null, "required">], "required", never>, "required", string>], "required", string>;
7958
+ name: VUnion<string | null, [VString<string, "required">, VNull<null, "required">], "required", never>;
7959
+ updated: VFloat64<number, "required">;
7960
+ }, "required", "object" | "id" | "name" | "metadata" | "application" | "created" | "livemode" | `metadata.${string}` | "active" | "business_profile" | "default_return_url" | "features" | "is_default" | "login_page" | "updated" | "business_profile.headline" | "business_profile.privacy_policy_url" | "business_profile.terms_of_service_url" | "features.subscription_update" | "features.customer_update" | "features.invoice_history" | "features.payment_method_update" | "features.subscription_cancel" | "features.subscription_update.enabled" | "features.subscription_update.products" | "features.subscription_update.proration_behavior" | "features.subscription_update.default_allowed_updates" | "features.subscription_update.schedule_at_period_end" | "features.subscription_update.schedule_at_period_end.conditions" | "features.customer_update.enabled" | "features.customer_update.allowed_updated" | "features.invoice_history.enabled" | "features.payment_method_update.enabled" | "features.subscription_cancel.mode" | "features.subscription_cancel.enabled" | "features.subscription_cancel.cancellation_reason" | "features.subscription_cancel.proration_behavior" | "features.subscription_cancel.cancellation_reason.enabled" | "features.subscription_cancel.cancellation_reason.options" | "login_page.url" | "login_page.enabled">;
7961
+ lastSyncedAt: VFloat64<number, "required">;
7962
+ }, "required", "stripe" | "lastSyncedAt" | "stripe.object" | "stripe.id" | "stripe.name" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.updated" | "stripe.application" | "billingPortalConfigurationId" | "stripe.business_profile" | "stripe.default_return_url" | "stripe.features" | "stripe.is_default" | "stripe.login_page" | "stripe.business_profile.headline" | "stripe.business_profile.privacy_policy_url" | "stripe.business_profile.terms_of_service_url" | "stripe.features.subscription_update" | "stripe.features.customer_update" | "stripe.features.invoice_history" | "stripe.features.payment_method_update" | "stripe.features.subscription_cancel" | "stripe.features.subscription_update.enabled" | "stripe.features.subscription_update.products" | "stripe.features.subscription_update.proration_behavior" | "stripe.features.subscription_update.default_allowed_updates" | "stripe.features.subscription_update.schedule_at_period_end" | "stripe.features.subscription_update.schedule_at_period_end.conditions" | "stripe.features.customer_update.enabled" | "stripe.features.customer_update.allowed_updated" | "stripe.features.invoice_history.enabled" | "stripe.features.payment_method_update.enabled" | "stripe.features.subscription_cancel.mode" | "stripe.features.subscription_cancel.enabled" | "stripe.features.subscription_cancel.cancellation_reason" | "stripe.features.subscription_cancel.proration_behavior" | "stripe.features.subscription_cancel.cancellation_reason.enabled" | "stripe.features.subscription_cancel.cancellation_reason.options" | "stripe.login_page.url" | "stripe.login_page.enabled">, {
7963
+ byBillingPortalConfigurationId: ["billingPortalConfigurationId", "_creationTime"];
7964
+ }, {}, {}>;
7326
7965
  };
7327
7966
 
7328
7967
  declare const SubscribeImplementation: {