@fantastic.dev/better-stripe 0.59.0 → 0.60.0

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 (124) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +3 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +650 -44
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +309 -6
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +618 -12
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +325 -22
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/index.d.ts +4 -0
  12. package/dist/client/index.d.ts.map +1 -1
  13. package/dist/client/paymentSource/resolver.d.ts +12 -1
  14. package/dist/client/paymentSource/resolver.d.ts.map +1 -1
  15. package/dist/client/paymentSource/resolver.fixtures.d.ts +220 -0
  16. package/dist/client/paymentSource/resolver.fixtures.d.ts.map +1 -0
  17. package/dist/client/paymentSource/resolver.fixtures.js +189 -0
  18. package/dist/client/paymentSource/resolver.fixtures.js.map +1 -0
  19. package/dist/client/paymentSource/resolver.js +28 -3
  20. package/dist/client/paymentSource/resolver.js.map +1 -1
  21. package/dist/client/settlement/execution.d.ts +25 -0
  22. package/dist/client/settlement/execution.d.ts.map +1 -1
  23. package/dist/client/settlement/execution.js +2 -0
  24. package/dist/client/settlement/execution.js.map +1 -1
  25. package/dist/client/usage/catalogPrices.d.ts +1 -1
  26. package/dist/client/usage/catalogPrices.d.ts.map +1 -1
  27. package/dist/client/usage/catalogPrices.js +4 -4
  28. package/dist/client/usage/catalogPrices.js.map +1 -1
  29. package/dist/client/usage/client.d.ts +2 -2
  30. package/dist/client/usage/client.js +2 -2
  31. package/dist/client/usage/creditRevenue.d.ts +22 -0
  32. package/dist/client/usage/creditRevenue.d.ts.map +1 -0
  33. package/dist/client/usage/creditRevenue.js +118 -0
  34. package/dist/client/usage/creditRevenue.js.map +1 -0
  35. package/dist/client/usage/creditSettlement.d.ts +29 -0
  36. package/dist/client/usage/creditSettlement.d.ts.map +1 -0
  37. package/dist/client/usage/creditSettlement.fixtures.d.ts +215 -0
  38. package/dist/client/usage/creditSettlement.fixtures.d.ts.map +1 -0
  39. package/dist/client/usage/creditSettlement.fixtures.js +59 -0
  40. package/dist/client/usage/creditSettlement.fixtures.js.map +1 -0
  41. package/dist/client/usage/creditSettlement.js +70 -0
  42. package/dist/client/usage/creditSettlement.js.map +1 -0
  43. package/dist/client/usage/creditTransport.fixtures.d.ts +7 -1
  44. package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -1
  45. package/dist/client/usage/creditTransport.fixtures.js +25 -4
  46. package/dist/client/usage/creditTransport.fixtures.js.map +1 -1
  47. package/dist/client/usage/index.d.ts +4 -0
  48. package/dist/client/usage/index.d.ts.map +1 -1
  49. package/dist/client/usage/invoiceSale.d.ts +22 -0
  50. package/dist/client/usage/invoiceSale.d.ts.map +1 -0
  51. package/dist/client/usage/invoiceSale.fixtures.d.ts +285 -0
  52. package/dist/client/usage/invoiceSale.fixtures.d.ts.map +1 -0
  53. package/dist/client/usage/invoiceSale.fixtures.js +104 -0
  54. package/dist/client/usage/invoiceSale.fixtures.js.map +1 -0
  55. package/dist/client/usage/invoiceSale.js +117 -0
  56. package/dist/client/usage/invoiceSale.js.map +1 -0
  57. package/dist/client/usage/observationClient.d.ts +2 -2
  58. package/dist/client/usage/observationClient.d.ts.map +1 -1
  59. package/dist/client/usage/settlement.d.ts +32 -0
  60. package/dist/client/usage/settlement.d.ts.map +1 -0
  61. package/dist/client/usage/settlement.js +60 -0
  62. package/dist/client/usage/settlement.js.map +1 -0
  63. package/dist/client/usage/settlementClient.d.ts +51 -0
  64. package/dist/client/usage/settlementClient.d.ts.map +1 -0
  65. package/dist/client/usage/settlementClient.js +35 -0
  66. package/dist/client/usage/settlementClient.js.map +1 -0
  67. package/dist/component/_generated/component.d.ts +125 -0
  68. package/dist/component/_generated/component.d.ts.map +1 -1
  69. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  70. package/dist/component/balanceFunding/mutations.d.ts +27 -27
  71. package/dist/component/earnings/triggers.d.ts +156 -6
  72. package/dist/component/earnings/triggers.d.ts.map +1 -1
  73. package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -1
  74. package/dist/component/financialObservations/settlementHelpers.js +2 -0
  75. package/dist/component/financialObservations/settlementHelpers.js.map +1 -1
  76. package/dist/component/recoveryWorkflow/helpers.d.ts +25 -0
  77. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
  78. package/dist/component/recoveryWorkflow/mutations.d.ts +25 -0
  79. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
  80. package/dist/component/recoveryWorkflow/queries.d.ts +50 -0
  81. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
  82. package/dist/component/recoveryWorkflow/schema.d.ts +566 -10
  83. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
  84. package/dist/component/schema.d.ts +309 -6
  85. package/dist/component/settlement/mutations.d.ts +50 -0
  86. package/dist/component/settlement/mutations.d.ts.map +1 -1
  87. package/dist/component/settlement/mutations.js +8 -1
  88. package/dist/component/settlement/mutations.js.map +1 -1
  89. package/dist/component/settlement/queries.d.ts +25 -0
  90. package/dist/component/settlement/queries.d.ts.map +1 -1
  91. package/dist/component/settlement/schema.d.ts +128 -1
  92. package/dist/component/settlement/schema.d.ts.map +1 -1
  93. package/dist/component/settlement/schema.js +22 -0
  94. package/dist/component/settlement/schema.js.map +1 -1
  95. package/docs/README.md +2 -0
  96. package/docs/settlement.md +4 -0
  97. package/docs/usage-settlement.md +162 -0
  98. package/package.json +2 -1
  99. package/src/client/index.ts +9 -0
  100. package/src/client/paymentSource/resolver.fixtures.ts +216 -0
  101. package/src/client/paymentSource/resolver.test.ts +11 -207
  102. package/src/client/paymentSource/resolver.ts +54 -2
  103. package/src/client/settlement/execution.ts +24 -0
  104. package/src/client/usage/catalogPrices.ts +4 -2
  105. package/src/client/usage/client.ts +2 -2
  106. package/src/client/usage/creditRevenue.test.ts +105 -0
  107. package/src/client/usage/creditRevenue.ts +163 -0
  108. package/src/client/usage/creditSettlement.fixtures.ts +70 -0
  109. package/src/client/usage/creditSettlement.test.ts +66 -0
  110. package/src/client/usage/creditSettlement.ts +94 -0
  111. package/src/client/usage/creditSettlementRecovery.test.ts +173 -0
  112. package/src/client/usage/creditTransport.fixtures.ts +29 -4
  113. package/src/client/usage/index.ts +9 -0
  114. package/src/client/usage/invoiceSale.fixtures.ts +103 -0
  115. package/src/client/usage/invoiceSale.test.ts +184 -0
  116. package/src/client/usage/invoiceSale.ts +155 -0
  117. package/src/client/usage/settlement.test.ts +179 -0
  118. package/src/client/usage/settlement.ts +81 -0
  119. package/src/client/usage/settlementClient.ts +84 -0
  120. package/src/component/_generated/component.ts +110 -0
  121. package/src/component/financialObservations/settlementHelpers.ts +2 -0
  122. package/src/component/settlement/mutations.ts +10 -1
  123. package/src/component/settlement/schema.ts +26 -0
  124. package/src/component/settlement/settlement-claims.test.ts +54 -0
@@ -1105,6 +1105,15 @@ export declare function large(count?: number, amount?: number): Promise<{
1105
1105
  activePhase?: "execute" | "reconcile" | undefined;
1106
1106
  allocation?: {
1107
1107
  adjustmentAmount?: number | undefined;
1108
+ creditSource?: {
1109
+ creditGrantId: string;
1110
+ customerAccount: string;
1111
+ livemode: boolean;
1112
+ purchaseId: string;
1113
+ stripeAccountId: string;
1114
+ stripePriceId: string;
1115
+ stripeProductId: string;
1116
+ } | undefined;
1108
1117
  currency: string;
1109
1118
  gross: number;
1110
1119
  paymentId?: string | undefined;
@@ -1118,6 +1127,22 @@ export declare function large(count?: number, amount?: number): Promise<{
1118
1127
  destinationAccountId: string;
1119
1128
  role: "affiliate" | "other" | "store";
1120
1129
  }[];
1130
+ usageSource?: {
1131
+ customerAccount: string;
1132
+ invoicePaymentId: string;
1133
+ livemode: boolean;
1134
+ meterId: string;
1135
+ model: "included_overage" | "pay_as_you_go";
1136
+ period: {
1137
+ end: number;
1138
+ start: number;
1139
+ };
1140
+ stripeAccountId: string;
1141
+ stripePriceId: string;
1142
+ stripeProductId: string;
1143
+ subscriptionId: string;
1144
+ subscriptionItemId: string;
1145
+ } | undefined;
1121
1146
  } | undefined;
1122
1147
  cancelRequested: boolean;
1123
1148
  completion?: string | undefined;
@@ -1152,6 +1177,15 @@ export declare function large(count?: number, amount?: number): Promise<{
1152
1177
  retryDelayMs: import("convex/values").VFloat64<number, "required">;
1153
1178
  allocation: import("convex/values").VObject<{
1154
1179
  adjustmentAmount?: number | undefined;
1180
+ creditSource?: {
1181
+ creditGrantId: string;
1182
+ customerAccount: string;
1183
+ livemode: boolean;
1184
+ purchaseId: string;
1185
+ stripeAccountId: string;
1186
+ stripePriceId: string;
1187
+ stripeProductId: string;
1188
+ } | undefined;
1155
1189
  currency: string;
1156
1190
  gross: number;
1157
1191
  paymentId?: string | undefined;
@@ -1165,10 +1199,77 @@ export declare function large(count?: number, amount?: number): Promise<{
1165
1199
  destinationAccountId: string;
1166
1200
  role: "affiliate" | "other" | "store";
1167
1201
  }[];
1202
+ usageSource?: {
1203
+ customerAccount: string;
1204
+ invoicePaymentId: string;
1205
+ livemode: boolean;
1206
+ meterId: string;
1207
+ model: "included_overage" | "pay_as_you_go";
1208
+ period: {
1209
+ end: number;
1210
+ start: number;
1211
+ };
1212
+ stripeAccountId: string;
1213
+ stripePriceId: string;
1214
+ stripeProductId: string;
1215
+ subscriptionId: string;
1216
+ subscriptionItemId: string;
1217
+ } | undefined;
1168
1218
  } | undefined, {
1169
1219
  sourceChargeId: import("convex/values").VString<string, "required">;
1170
1220
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1171
1221
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
1222
+ usageSource: import("convex/values").VObject<{
1223
+ customerAccount: string;
1224
+ invoicePaymentId: string;
1225
+ livemode: boolean;
1226
+ meterId: string;
1227
+ model: "included_overage" | "pay_as_you_go";
1228
+ period: {
1229
+ end: number;
1230
+ start: number;
1231
+ };
1232
+ stripeAccountId: string;
1233
+ stripePriceId: string;
1234
+ stripeProductId: string;
1235
+ subscriptionId: string;
1236
+ subscriptionItemId: string;
1237
+ } | undefined, {
1238
+ stripeAccountId: import("convex/values").VString<string, "required">;
1239
+ customerAccount: import("convex/values").VString<string, "required">;
1240
+ livemode: import("convex/values").VBoolean<boolean, "required">;
1241
+ meterId: import("convex/values").VString<string, "required">;
1242
+ stripePriceId: import("convex/values").VString<string, "required">;
1243
+ stripeProductId: import("convex/values").VString<string, "required">;
1244
+ subscriptionId: import("convex/values").VString<string, "required">;
1245
+ subscriptionItemId: import("convex/values").VString<string, "required">;
1246
+ invoicePaymentId: import("convex/values").VString<string, "required">;
1247
+ period: import("convex/values").VObject<{
1248
+ end: number;
1249
+ start: number;
1250
+ }, {
1251
+ start: import("convex/values").VFloat64<number, "required">;
1252
+ end: import("convex/values").VFloat64<number, "required">;
1253
+ }, "required", "end" | "start">;
1254
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
1255
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
1256
+ creditSource: import("convex/values").VObject<{
1257
+ creditGrantId: string;
1258
+ customerAccount: string;
1259
+ livemode: boolean;
1260
+ purchaseId: string;
1261
+ stripeAccountId: string;
1262
+ stripePriceId: string;
1263
+ stripeProductId: string;
1264
+ } | undefined, {
1265
+ stripeAccountId: import("convex/values").VString<string, "required">;
1266
+ customerAccount: import("convex/values").VString<string, "required">;
1267
+ livemode: import("convex/values").VBoolean<boolean, "required">;
1268
+ purchaseId: import("convex/values").VString<string, "required">;
1269
+ creditGrantId: import("convex/values").VString<string, "required">;
1270
+ stripePriceId: import("convex/values").VString<string, "required">;
1271
+ stripeProductId: import("convex/values").VString<string, "required">;
1272
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
1172
1273
  gross: import("convex/values").VFloat64<number, "required">;
1173
1274
  currency: import("convex/values").VString<string, "required">;
1174
1275
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -1188,7 +1289,7 @@ export declare function large(count?: number, amount?: number): Promise<{
1188
1289
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
1189
1290
  amount: import("convex/values").VFloat64<number, "required">;
1190
1291
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1191
- }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
1292
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
1192
1293
  version: import("convex/values").VFloat64<number, "required">;
1193
1294
  sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
1194
1295
  sourceId: import("convex/values").VString<string, "required">;
@@ -1199,7 +1300,7 @@ export declare function large(count?: number, amount?: number): Promise<{
1199
1300
  activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
1200
1301
  resumeQueued: import("convex/values").VBoolean<boolean, "required">;
1201
1302
  outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
1202
- }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
1303
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
1203
1304
  by_group: ["groupKey", "_creationTime"];
1204
1305
  by_source: ["sourceKind", "sourceId", "_creationTime"];
1205
1306
  }, {}, {}>;
@@ -1208,6 +1309,15 @@ export declare function large(count?: number, amount?: number): Promise<{
1208
1309
  accountId: string;
1209
1310
  allocation?: {
1210
1311
  adjustmentAmount?: number | undefined;
1312
+ creditSource?: {
1313
+ creditGrantId: string;
1314
+ customerAccount: string;
1315
+ livemode: boolean;
1316
+ purchaseId: string;
1317
+ stripeAccountId: string;
1318
+ stripePriceId: string;
1319
+ stripeProductId: string;
1320
+ } | undefined;
1211
1321
  currency: string;
1212
1322
  gross: number;
1213
1323
  paymentId?: string | undefined;
@@ -1221,6 +1331,22 @@ export declare function large(count?: number, amount?: number): Promise<{
1221
1331
  destinationAccountId: string;
1222
1332
  role: "affiliate" | "other" | "store";
1223
1333
  }[];
1334
+ usageSource?: {
1335
+ customerAccount: string;
1336
+ invoicePaymentId: string;
1337
+ livemode: boolean;
1338
+ meterId: string;
1339
+ model: "included_overage" | "pay_as_you_go";
1340
+ period: {
1341
+ end: number;
1342
+ start: number;
1343
+ };
1344
+ stripeAccountId: string;
1345
+ stripePriceId: string;
1346
+ stripeProductId: string;
1347
+ subscriptionId: string;
1348
+ subscriptionItemId: string;
1349
+ } | undefined;
1224
1350
  } | undefined;
1225
1351
  completion?: string | undefined;
1226
1352
  currency: string;
@@ -1241,6 +1367,15 @@ export declare function large(count?: number, amount?: number): Promise<{
1241
1367
  accountId: string;
1242
1368
  allocation?: {
1243
1369
  adjustmentAmount?: number | undefined;
1370
+ creditSource?: {
1371
+ creditGrantId: string;
1372
+ customerAccount: string;
1373
+ livemode: boolean;
1374
+ purchaseId: string;
1375
+ stripeAccountId: string;
1376
+ stripePriceId: string;
1377
+ stripeProductId: string;
1378
+ } | undefined;
1244
1379
  currency: string;
1245
1380
  gross: number;
1246
1381
  paymentId?: string | undefined;
@@ -1254,6 +1389,22 @@ export declare function large(count?: number, amount?: number): Promise<{
1254
1389
  destinationAccountId: string;
1255
1390
  role: "affiliate" | "other" | "store";
1256
1391
  }[];
1392
+ usageSource?: {
1393
+ customerAccount: string;
1394
+ invoicePaymentId: string;
1395
+ livemode: boolean;
1396
+ meterId: string;
1397
+ model: "included_overage" | "pay_as_you_go";
1398
+ period: {
1399
+ end: number;
1400
+ start: number;
1401
+ };
1402
+ stripeAccountId: string;
1403
+ stripePriceId: string;
1404
+ stripeProductId: string;
1405
+ subscriptionId: string;
1406
+ subscriptionItemId: string;
1407
+ } | undefined;
1257
1408
  } | undefined;
1258
1409
  completion?: string | undefined;
1259
1410
  currency: string;
@@ -1279,6 +1430,15 @@ export declare function large(count?: number, amount?: number): Promise<{
1279
1430
  retryDelayMs: import("convex/values").VFloat64<number, "required">;
1280
1431
  allocation: import("convex/values").VObject<{
1281
1432
  adjustmentAmount?: number | undefined;
1433
+ creditSource?: {
1434
+ creditGrantId: string;
1435
+ customerAccount: string;
1436
+ livemode: boolean;
1437
+ purchaseId: string;
1438
+ stripeAccountId: string;
1439
+ stripePriceId: string;
1440
+ stripeProductId: string;
1441
+ } | undefined;
1282
1442
  currency: string;
1283
1443
  gross: number;
1284
1444
  paymentId?: string | undefined;
@@ -1292,10 +1452,77 @@ export declare function large(count?: number, amount?: number): Promise<{
1292
1452
  destinationAccountId: string;
1293
1453
  role: "affiliate" | "other" | "store";
1294
1454
  }[];
1455
+ usageSource?: {
1456
+ customerAccount: string;
1457
+ invoicePaymentId: string;
1458
+ livemode: boolean;
1459
+ meterId: string;
1460
+ model: "included_overage" | "pay_as_you_go";
1461
+ period: {
1462
+ end: number;
1463
+ start: number;
1464
+ };
1465
+ stripeAccountId: string;
1466
+ stripePriceId: string;
1467
+ stripeProductId: string;
1468
+ subscriptionId: string;
1469
+ subscriptionItemId: string;
1470
+ } | undefined;
1295
1471
  } | undefined, {
1296
1472
  sourceChargeId: import("convex/values").VString<string, "required">;
1297
1473
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1298
1474
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
1475
+ usageSource: import("convex/values").VObject<{
1476
+ customerAccount: string;
1477
+ invoicePaymentId: string;
1478
+ livemode: boolean;
1479
+ meterId: string;
1480
+ model: "included_overage" | "pay_as_you_go";
1481
+ period: {
1482
+ end: number;
1483
+ start: number;
1484
+ };
1485
+ stripeAccountId: string;
1486
+ stripePriceId: string;
1487
+ stripeProductId: string;
1488
+ subscriptionId: string;
1489
+ subscriptionItemId: string;
1490
+ } | undefined, {
1491
+ stripeAccountId: import("convex/values").VString<string, "required">;
1492
+ customerAccount: import("convex/values").VString<string, "required">;
1493
+ livemode: import("convex/values").VBoolean<boolean, "required">;
1494
+ meterId: import("convex/values").VString<string, "required">;
1495
+ stripePriceId: import("convex/values").VString<string, "required">;
1496
+ stripeProductId: import("convex/values").VString<string, "required">;
1497
+ subscriptionId: import("convex/values").VString<string, "required">;
1498
+ subscriptionItemId: import("convex/values").VString<string, "required">;
1499
+ invoicePaymentId: import("convex/values").VString<string, "required">;
1500
+ period: import("convex/values").VObject<{
1501
+ end: number;
1502
+ start: number;
1503
+ }, {
1504
+ start: import("convex/values").VFloat64<number, "required">;
1505
+ end: import("convex/values").VFloat64<number, "required">;
1506
+ }, "required", "end" | "start">;
1507
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
1508
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
1509
+ creditSource: import("convex/values").VObject<{
1510
+ creditGrantId: string;
1511
+ customerAccount: string;
1512
+ livemode: boolean;
1513
+ purchaseId: string;
1514
+ stripeAccountId: string;
1515
+ stripePriceId: string;
1516
+ stripeProductId: string;
1517
+ } | undefined, {
1518
+ stripeAccountId: import("convex/values").VString<string, "required">;
1519
+ customerAccount: import("convex/values").VString<string, "required">;
1520
+ livemode: import("convex/values").VBoolean<boolean, "required">;
1521
+ purchaseId: import("convex/values").VString<string, "required">;
1522
+ creditGrantId: import("convex/values").VString<string, "required">;
1523
+ stripePriceId: import("convex/values").VString<string, "required">;
1524
+ stripeProductId: import("convex/values").VString<string, "required">;
1525
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
1299
1526
  gross: import("convex/values").VFloat64<number, "required">;
1300
1527
  currency: import("convex/values").VString<string, "required">;
1301
1528
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -1315,10 +1542,10 @@ export declare function large(count?: number, amount?: number): Promise<{
1315
1542
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
1316
1543
  amount: import("convex/values").VFloat64<number, "required">;
1317
1544
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1318
- }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
1319
- }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
1545
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
1546
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
1320
1547
  operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
1321
- }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
1548
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
1322
1549
  by_key: ["requestKey", "_creationTime"];
1323
1550
  }, {}, {}>;
1324
1551
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -3116,6 +3343,15 @@ export declare function large(count?: number, amount?: number): Promise<{
3116
3343
  }, {}, {}>;
3117
3344
  settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3118
3345
  adjustmentAmount?: number | undefined;
3346
+ creditSource?: {
3347
+ creditGrantId: string;
3348
+ customerAccount: string;
3349
+ livemode: boolean;
3350
+ purchaseId: string;
3351
+ stripeAccountId: string;
3352
+ stripePriceId: string;
3353
+ stripeProductId: string;
3354
+ } | undefined;
3119
3355
  currency: string;
3120
3356
  gross: number;
3121
3357
  paymentId?: string | undefined;
@@ -3129,10 +3365,77 @@ export declare function large(count?: number, amount?: number): Promise<{
3129
3365
  destinationAccountId: string;
3130
3366
  role: "affiliate" | "other" | "store";
3131
3367
  }[];
3368
+ usageSource?: {
3369
+ customerAccount: string;
3370
+ invoicePaymentId: string;
3371
+ livemode: boolean;
3372
+ meterId: string;
3373
+ model: "included_overage" | "pay_as_you_go";
3374
+ period: {
3375
+ end: number;
3376
+ start: number;
3377
+ };
3378
+ stripeAccountId: string;
3379
+ stripePriceId: string;
3380
+ stripeProductId: string;
3381
+ subscriptionId: string;
3382
+ subscriptionItemId: string;
3383
+ } | undefined;
3132
3384
  }, {
3133
3385
  sourceChargeId: import("convex/values").VString<string, "required">;
3134
3386
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
3135
3387
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
3388
+ usageSource: import("convex/values").VObject<{
3389
+ customerAccount: string;
3390
+ invoicePaymentId: string;
3391
+ livemode: boolean;
3392
+ meterId: string;
3393
+ model: "included_overage" | "pay_as_you_go";
3394
+ period: {
3395
+ end: number;
3396
+ start: number;
3397
+ };
3398
+ stripeAccountId: string;
3399
+ stripePriceId: string;
3400
+ stripeProductId: string;
3401
+ subscriptionId: string;
3402
+ subscriptionItemId: string;
3403
+ } | undefined, {
3404
+ stripeAccountId: import("convex/values").VString<string, "required">;
3405
+ customerAccount: import("convex/values").VString<string, "required">;
3406
+ livemode: import("convex/values").VBoolean<boolean, "required">;
3407
+ meterId: import("convex/values").VString<string, "required">;
3408
+ stripePriceId: import("convex/values").VString<string, "required">;
3409
+ stripeProductId: import("convex/values").VString<string, "required">;
3410
+ subscriptionId: import("convex/values").VString<string, "required">;
3411
+ subscriptionItemId: import("convex/values").VString<string, "required">;
3412
+ invoicePaymentId: import("convex/values").VString<string, "required">;
3413
+ period: import("convex/values").VObject<{
3414
+ end: number;
3415
+ start: number;
3416
+ }, {
3417
+ start: import("convex/values").VFloat64<number, "required">;
3418
+ end: import("convex/values").VFloat64<number, "required">;
3419
+ }, "required", "end" | "start">;
3420
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
3421
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
3422
+ creditSource: import("convex/values").VObject<{
3423
+ creditGrantId: string;
3424
+ customerAccount: string;
3425
+ livemode: boolean;
3426
+ purchaseId: string;
3427
+ stripeAccountId: string;
3428
+ stripePriceId: string;
3429
+ stripeProductId: string;
3430
+ } | undefined, {
3431
+ stripeAccountId: import("convex/values").VString<string, "required">;
3432
+ customerAccount: import("convex/values").VString<string, "required">;
3433
+ livemode: import("convex/values").VBoolean<boolean, "required">;
3434
+ purchaseId: import("convex/values").VString<string, "required">;
3435
+ creditGrantId: import("convex/values").VString<string, "required">;
3436
+ stripePriceId: import("convex/values").VString<string, "required">;
3437
+ stripeProductId: import("convex/values").VString<string, "required">;
3438
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
3136
3439
  gross: import("convex/values").VFloat64<number, "required">;
3137
3440
  currency: import("convex/values").VString<string, "required">;
3138
3441
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -3152,7 +3455,7 @@ export declare function large(count?: number, amount?: number): Promise<{
3152
3455
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
3153
3456
  amount: import("convex/values").VFloat64<number, "required">;
3154
3457
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
3155
- }, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
3458
+ }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">, {
3156
3459
  by_source_charge: ["sourceChargeId", "_creationTime"];
3157
3460
  }, {}, {}>;
3158
3461
  commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -5079,6 +5382,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5079
5382
  activePhase?: "execute" | "reconcile" | undefined;
5080
5383
  allocation?: {
5081
5384
  adjustmentAmount?: number | undefined;
5385
+ creditSource?: {
5386
+ creditGrantId: string;
5387
+ customerAccount: string;
5388
+ livemode: boolean;
5389
+ purchaseId: string;
5390
+ stripeAccountId: string;
5391
+ stripePriceId: string;
5392
+ stripeProductId: string;
5393
+ } | undefined;
5082
5394
  currency: string;
5083
5395
  gross: number;
5084
5396
  paymentId?: string | undefined;
@@ -5092,6 +5404,22 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5092
5404
  destinationAccountId: string;
5093
5405
  role: "affiliate" | "other" | "store";
5094
5406
  }[];
5407
+ usageSource?: {
5408
+ customerAccount: string;
5409
+ invoicePaymentId: string;
5410
+ livemode: boolean;
5411
+ meterId: string;
5412
+ model: "included_overage" | "pay_as_you_go";
5413
+ period: {
5414
+ end: number;
5415
+ start: number;
5416
+ };
5417
+ stripeAccountId: string;
5418
+ stripePriceId: string;
5419
+ stripeProductId: string;
5420
+ subscriptionId: string;
5421
+ subscriptionItemId: string;
5422
+ } | undefined;
5095
5423
  } | undefined;
5096
5424
  cancelRequested: boolean;
5097
5425
  completion?: string | undefined;
@@ -5126,6 +5454,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5126
5454
  retryDelayMs: import("convex/values").VFloat64<number, "required">;
5127
5455
  allocation: import("convex/values").VObject<{
5128
5456
  adjustmentAmount?: number | undefined;
5457
+ creditSource?: {
5458
+ creditGrantId: string;
5459
+ customerAccount: string;
5460
+ livemode: boolean;
5461
+ purchaseId: string;
5462
+ stripeAccountId: string;
5463
+ stripePriceId: string;
5464
+ stripeProductId: string;
5465
+ } | undefined;
5129
5466
  currency: string;
5130
5467
  gross: number;
5131
5468
  paymentId?: string | undefined;
@@ -5139,10 +5476,77 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5139
5476
  destinationAccountId: string;
5140
5477
  role: "affiliate" | "other" | "store";
5141
5478
  }[];
5479
+ usageSource?: {
5480
+ customerAccount: string;
5481
+ invoicePaymentId: string;
5482
+ livemode: boolean;
5483
+ meterId: string;
5484
+ model: "included_overage" | "pay_as_you_go";
5485
+ period: {
5486
+ end: number;
5487
+ start: number;
5488
+ };
5489
+ stripeAccountId: string;
5490
+ stripePriceId: string;
5491
+ stripeProductId: string;
5492
+ subscriptionId: string;
5493
+ subscriptionItemId: string;
5494
+ } | undefined;
5142
5495
  } | undefined, {
5143
5496
  sourceChargeId: import("convex/values").VString<string, "required">;
5144
5497
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
5145
5498
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
5499
+ usageSource: import("convex/values").VObject<{
5500
+ customerAccount: string;
5501
+ invoicePaymentId: string;
5502
+ livemode: boolean;
5503
+ meterId: string;
5504
+ model: "included_overage" | "pay_as_you_go";
5505
+ period: {
5506
+ end: number;
5507
+ start: number;
5508
+ };
5509
+ stripeAccountId: string;
5510
+ stripePriceId: string;
5511
+ stripeProductId: string;
5512
+ subscriptionId: string;
5513
+ subscriptionItemId: string;
5514
+ } | undefined, {
5515
+ stripeAccountId: import("convex/values").VString<string, "required">;
5516
+ customerAccount: import("convex/values").VString<string, "required">;
5517
+ livemode: import("convex/values").VBoolean<boolean, "required">;
5518
+ meterId: import("convex/values").VString<string, "required">;
5519
+ stripePriceId: import("convex/values").VString<string, "required">;
5520
+ stripeProductId: import("convex/values").VString<string, "required">;
5521
+ subscriptionId: import("convex/values").VString<string, "required">;
5522
+ subscriptionItemId: import("convex/values").VString<string, "required">;
5523
+ invoicePaymentId: import("convex/values").VString<string, "required">;
5524
+ period: import("convex/values").VObject<{
5525
+ end: number;
5526
+ start: number;
5527
+ }, {
5528
+ start: import("convex/values").VFloat64<number, "required">;
5529
+ end: import("convex/values").VFloat64<number, "required">;
5530
+ }, "required", "end" | "start">;
5531
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
5532
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
5533
+ creditSource: import("convex/values").VObject<{
5534
+ creditGrantId: string;
5535
+ customerAccount: string;
5536
+ livemode: boolean;
5537
+ purchaseId: string;
5538
+ stripeAccountId: string;
5539
+ stripePriceId: string;
5540
+ stripeProductId: string;
5541
+ } | undefined, {
5542
+ stripeAccountId: import("convex/values").VString<string, "required">;
5543
+ customerAccount: import("convex/values").VString<string, "required">;
5544
+ livemode: import("convex/values").VBoolean<boolean, "required">;
5545
+ purchaseId: import("convex/values").VString<string, "required">;
5546
+ creditGrantId: import("convex/values").VString<string, "required">;
5547
+ stripePriceId: import("convex/values").VString<string, "required">;
5548
+ stripeProductId: import("convex/values").VString<string, "required">;
5549
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
5146
5550
  gross: import("convex/values").VFloat64<number, "required">;
5147
5551
  currency: import("convex/values").VString<string, "required">;
5148
5552
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -5162,7 +5566,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5162
5566
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
5163
5567
  amount: import("convex/values").VFloat64<number, "required">;
5164
5568
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
5165
- }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
5569
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
5166
5570
  version: import("convex/values").VFloat64<number, "required">;
5167
5571
  sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
5168
5572
  sourceId: import("convex/values").VString<string, "required">;
@@ -5173,7 +5577,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5173
5577
  activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
5174
5578
  resumeQueued: import("convex/values").VBoolean<boolean, "required">;
5175
5579
  outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
5176
- }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
5580
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
5177
5581
  by_group: ["groupKey", "_creationTime"];
5178
5582
  by_source: ["sourceKind", "sourceId", "_creationTime"];
5179
5583
  }, {}, {}>;
@@ -5182,6 +5586,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5182
5586
  accountId: string;
5183
5587
  allocation?: {
5184
5588
  adjustmentAmount?: number | undefined;
5589
+ creditSource?: {
5590
+ creditGrantId: string;
5591
+ customerAccount: string;
5592
+ livemode: boolean;
5593
+ purchaseId: string;
5594
+ stripeAccountId: string;
5595
+ stripePriceId: string;
5596
+ stripeProductId: string;
5597
+ } | undefined;
5185
5598
  currency: string;
5186
5599
  gross: number;
5187
5600
  paymentId?: string | undefined;
@@ -5195,6 +5608,22 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5195
5608
  destinationAccountId: string;
5196
5609
  role: "affiliate" | "other" | "store";
5197
5610
  }[];
5611
+ usageSource?: {
5612
+ customerAccount: string;
5613
+ invoicePaymentId: string;
5614
+ livemode: boolean;
5615
+ meterId: string;
5616
+ model: "included_overage" | "pay_as_you_go";
5617
+ period: {
5618
+ end: number;
5619
+ start: number;
5620
+ };
5621
+ stripeAccountId: string;
5622
+ stripePriceId: string;
5623
+ stripeProductId: string;
5624
+ subscriptionId: string;
5625
+ subscriptionItemId: string;
5626
+ } | undefined;
5198
5627
  } | undefined;
5199
5628
  completion?: string | undefined;
5200
5629
  currency: string;
@@ -5215,6 +5644,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5215
5644
  accountId: string;
5216
5645
  allocation?: {
5217
5646
  adjustmentAmount?: number | undefined;
5647
+ creditSource?: {
5648
+ creditGrantId: string;
5649
+ customerAccount: string;
5650
+ livemode: boolean;
5651
+ purchaseId: string;
5652
+ stripeAccountId: string;
5653
+ stripePriceId: string;
5654
+ stripeProductId: string;
5655
+ } | undefined;
5218
5656
  currency: string;
5219
5657
  gross: number;
5220
5658
  paymentId?: string | undefined;
@@ -5228,6 +5666,22 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5228
5666
  destinationAccountId: string;
5229
5667
  role: "affiliate" | "other" | "store";
5230
5668
  }[];
5669
+ usageSource?: {
5670
+ customerAccount: string;
5671
+ invoicePaymentId: string;
5672
+ livemode: boolean;
5673
+ meterId: string;
5674
+ model: "included_overage" | "pay_as_you_go";
5675
+ period: {
5676
+ end: number;
5677
+ start: number;
5678
+ };
5679
+ stripeAccountId: string;
5680
+ stripePriceId: string;
5681
+ stripeProductId: string;
5682
+ subscriptionId: string;
5683
+ subscriptionItemId: string;
5684
+ } | undefined;
5231
5685
  } | undefined;
5232
5686
  completion?: string | undefined;
5233
5687
  currency: string;
@@ -5253,6 +5707,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5253
5707
  retryDelayMs: import("convex/values").VFloat64<number, "required">;
5254
5708
  allocation: import("convex/values").VObject<{
5255
5709
  adjustmentAmount?: number | undefined;
5710
+ creditSource?: {
5711
+ creditGrantId: string;
5712
+ customerAccount: string;
5713
+ livemode: boolean;
5714
+ purchaseId: string;
5715
+ stripeAccountId: string;
5716
+ stripePriceId: string;
5717
+ stripeProductId: string;
5718
+ } | undefined;
5256
5719
  currency: string;
5257
5720
  gross: number;
5258
5721
  paymentId?: string | undefined;
@@ -5266,10 +5729,77 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5266
5729
  destinationAccountId: string;
5267
5730
  role: "affiliate" | "other" | "store";
5268
5731
  }[];
5732
+ usageSource?: {
5733
+ customerAccount: string;
5734
+ invoicePaymentId: string;
5735
+ livemode: boolean;
5736
+ meterId: string;
5737
+ model: "included_overage" | "pay_as_you_go";
5738
+ period: {
5739
+ end: number;
5740
+ start: number;
5741
+ };
5742
+ stripeAccountId: string;
5743
+ stripePriceId: string;
5744
+ stripeProductId: string;
5745
+ subscriptionId: string;
5746
+ subscriptionItemId: string;
5747
+ } | undefined;
5269
5748
  } | undefined, {
5270
5749
  sourceChargeId: import("convex/values").VString<string, "required">;
5271
5750
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
5272
5751
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
5752
+ usageSource: import("convex/values").VObject<{
5753
+ customerAccount: string;
5754
+ invoicePaymentId: string;
5755
+ livemode: boolean;
5756
+ meterId: string;
5757
+ model: "included_overage" | "pay_as_you_go";
5758
+ period: {
5759
+ end: number;
5760
+ start: number;
5761
+ };
5762
+ stripeAccountId: string;
5763
+ stripePriceId: string;
5764
+ stripeProductId: string;
5765
+ subscriptionId: string;
5766
+ subscriptionItemId: string;
5767
+ } | undefined, {
5768
+ stripeAccountId: import("convex/values").VString<string, "required">;
5769
+ customerAccount: import("convex/values").VString<string, "required">;
5770
+ livemode: import("convex/values").VBoolean<boolean, "required">;
5771
+ meterId: import("convex/values").VString<string, "required">;
5772
+ stripePriceId: import("convex/values").VString<string, "required">;
5773
+ stripeProductId: import("convex/values").VString<string, "required">;
5774
+ subscriptionId: import("convex/values").VString<string, "required">;
5775
+ subscriptionItemId: import("convex/values").VString<string, "required">;
5776
+ invoicePaymentId: import("convex/values").VString<string, "required">;
5777
+ period: import("convex/values").VObject<{
5778
+ end: number;
5779
+ start: number;
5780
+ }, {
5781
+ start: import("convex/values").VFloat64<number, "required">;
5782
+ end: import("convex/values").VFloat64<number, "required">;
5783
+ }, "required", "end" | "start">;
5784
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
5785
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
5786
+ creditSource: import("convex/values").VObject<{
5787
+ creditGrantId: string;
5788
+ customerAccount: string;
5789
+ livemode: boolean;
5790
+ purchaseId: string;
5791
+ stripeAccountId: string;
5792
+ stripePriceId: string;
5793
+ stripeProductId: string;
5794
+ } | undefined, {
5795
+ stripeAccountId: import("convex/values").VString<string, "required">;
5796
+ customerAccount: import("convex/values").VString<string, "required">;
5797
+ livemode: import("convex/values").VBoolean<boolean, "required">;
5798
+ purchaseId: import("convex/values").VString<string, "required">;
5799
+ creditGrantId: import("convex/values").VString<string, "required">;
5800
+ stripePriceId: import("convex/values").VString<string, "required">;
5801
+ stripeProductId: import("convex/values").VString<string, "required">;
5802
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
5273
5803
  gross: import("convex/values").VFloat64<number, "required">;
5274
5804
  currency: import("convex/values").VString<string, "required">;
5275
5805
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -5289,10 +5819,10 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
5289
5819
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
5290
5820
  amount: import("convex/values").VFloat64<number, "required">;
5291
5821
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
5292
- }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
5293
- }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
5822
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
5823
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
5294
5824
  operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
5295
- }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
5825
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
5296
5826
  by_key: ["requestKey", "_creationTime"];
5297
5827
  }, {}, {}>;
5298
5828
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -7090,6 +7620,15 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
7090
7620
  }, {}, {}>;
7091
7621
  settlementAllocations: import("convex/server").TableDefinition<import("convex/values").VObject<{
7092
7622
  adjustmentAmount?: number | undefined;
7623
+ creditSource?: {
7624
+ creditGrantId: string;
7625
+ customerAccount: string;
7626
+ livemode: boolean;
7627
+ purchaseId: string;
7628
+ stripeAccountId: string;
7629
+ stripePriceId: string;
7630
+ stripeProductId: string;
7631
+ } | undefined;
7093
7632
  currency: string;
7094
7633
  gross: number;
7095
7634
  paymentId?: string | undefined;
@@ -7103,10 +7642,77 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
7103
7642
  destinationAccountId: string;
7104
7643
  role: "affiliate" | "other" | "store";
7105
7644
  }[];
7645
+ usageSource?: {
7646
+ customerAccount: string;
7647
+ invoicePaymentId: string;
7648
+ livemode: boolean;
7649
+ meterId: string;
7650
+ model: "included_overage" | "pay_as_you_go";
7651
+ period: {
7652
+ end: number;
7653
+ start: number;
7654
+ };
7655
+ stripeAccountId: string;
7656
+ stripePriceId: string;
7657
+ stripeProductId: string;
7658
+ subscriptionId: string;
7659
+ subscriptionItemId: string;
7660
+ } | undefined;
7106
7661
  }, {
7107
7662
  sourceChargeId: import("convex/values").VString<string, "required">;
7108
7663
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
7109
7664
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
7665
+ usageSource: import("convex/values").VObject<{
7666
+ customerAccount: string;
7667
+ invoicePaymentId: string;
7668
+ livemode: boolean;
7669
+ meterId: string;
7670
+ model: "included_overage" | "pay_as_you_go";
7671
+ period: {
7672
+ end: number;
7673
+ start: number;
7674
+ };
7675
+ stripeAccountId: string;
7676
+ stripePriceId: string;
7677
+ stripeProductId: string;
7678
+ subscriptionId: string;
7679
+ subscriptionItemId: string;
7680
+ } | undefined, {
7681
+ stripeAccountId: import("convex/values").VString<string, "required">;
7682
+ customerAccount: import("convex/values").VString<string, "required">;
7683
+ livemode: import("convex/values").VBoolean<boolean, "required">;
7684
+ meterId: import("convex/values").VString<string, "required">;
7685
+ stripePriceId: import("convex/values").VString<string, "required">;
7686
+ stripeProductId: import("convex/values").VString<string, "required">;
7687
+ subscriptionId: import("convex/values").VString<string, "required">;
7688
+ subscriptionItemId: import("convex/values").VString<string, "required">;
7689
+ invoicePaymentId: import("convex/values").VString<string, "required">;
7690
+ period: import("convex/values").VObject<{
7691
+ end: number;
7692
+ start: number;
7693
+ }, {
7694
+ start: import("convex/values").VFloat64<number, "required">;
7695
+ end: import("convex/values").VFloat64<number, "required">;
7696
+ }, "required", "end" | "start">;
7697
+ model: import("convex/values").VUnion<"included_overage" | "pay_as_you_go", [import("convex/values").VLiteral<"pay_as_you_go", "required">, import("convex/values").VLiteral<"included_overage", "required">], "required", never>;
7698
+ }, "optional", "customerAccount" | "invoicePaymentId" | "livemode" | "meterId" | "model" | "period" | "period.end" | "period.start" | "stripeAccountId" | "stripePriceId" | "stripeProductId" | "subscriptionId" | "subscriptionItemId">;
7699
+ creditSource: import("convex/values").VObject<{
7700
+ creditGrantId: string;
7701
+ customerAccount: string;
7702
+ livemode: boolean;
7703
+ purchaseId: string;
7704
+ stripeAccountId: string;
7705
+ stripePriceId: string;
7706
+ stripeProductId: string;
7707
+ } | undefined, {
7708
+ stripeAccountId: import("convex/values").VString<string, "required">;
7709
+ customerAccount: import("convex/values").VString<string, "required">;
7710
+ livemode: import("convex/values").VBoolean<boolean, "required">;
7711
+ purchaseId: import("convex/values").VString<string, "required">;
7712
+ creditGrantId: import("convex/values").VString<string, "required">;
7713
+ stripePriceId: import("convex/values").VString<string, "required">;
7714
+ stripeProductId: import("convex/values").VString<string, "required">;
7715
+ }, "optional", "creditGrantId" | "customerAccount" | "livemode" | "purchaseId" | "stripeAccountId" | "stripePriceId" | "stripeProductId">;
7110
7716
  gross: import("convex/values").VFloat64<number, "required">;
7111
7717
  currency: import("convex/values").VString<string, "required">;
7112
7718
  processingFee: import("convex/values").VFloat64<number, "required">;
@@ -7126,7 +7732,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
7126
7732
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
7127
7733
  amount: import("convex/values").VFloat64<number, "required">;
7128
7734
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
7129
- }, "required", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">, {
7735
+ }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">, {
7130
7736
  by_source_charge: ["sourceChargeId", "_creationTime"];
7131
7737
  }, {}, {}>;
7132
7738
  commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{