@fantastic.dev/better-stripe 0.66.0 → 0.67.1

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 (90) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +17 -20
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +126 -12
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +79 -22
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +158 -44
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +63 -6
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/index.d.ts +1 -0
  12. package/dist/client/index.d.ts.map +1 -1
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/recoveryWorkflow/provider.fixture.d.ts +21 -0
  15. package/dist/client/recoveryWorkflow/provider.fixture.d.ts.map +1 -0
  16. package/dist/client/recoveryWorkflow/provider.fixture.js +125 -0
  17. package/dist/client/recoveryWorkflow/provider.fixture.js.map +1 -0
  18. package/dist/client/settlement/authorization.d.ts.map +1 -1
  19. package/dist/client/settlement/authorization.fixture.d.ts +10 -0
  20. package/dist/client/settlement/authorization.fixture.d.ts.map +1 -1
  21. package/dist/client/settlement/authorization.js +1 -0
  22. package/dist/client/settlement/authorization.js.map +1 -1
  23. package/dist/client/settlement/execution.d.ts +2 -0
  24. package/dist/client/settlement/execution.d.ts.map +1 -1
  25. package/dist/client/settlement/execution.js +3 -0
  26. package/dist/client/settlement/execution.js.map +1 -1
  27. package/dist/client/settlement/settleSale.d.ts +2 -0
  28. package/dist/client/settlement/settleSale.d.ts.map +1 -1
  29. package/dist/client/settlement/settleSale.js +4 -0
  30. package/dist/client/settlement/settleSale.js.map +1 -1
  31. package/dist/client/usage/observationClient.d.ts +2 -2
  32. package/dist/client/usage/observationClient.d.ts.map +1 -1
  33. package/dist/component/_generated/component.d.ts +25 -0
  34. package/dist/component/_generated/component.d.ts.map +1 -1
  35. package/dist/component/balanceFunding/mutations.d.ts +27 -27
  36. package/dist/component/balanceFunding/queries.d.ts +1 -1
  37. package/dist/component/earnings/triggers.d.ts +36 -6
  38. package/dist/component/earnings/triggers.d.ts.map +1 -1
  39. package/dist/component/payoutRelease/queries.d.ts +2 -2
  40. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  41. package/dist/component/recoveryWorkflow/helpers.d.ts +5 -0
  42. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
  43. package/dist/component/recoveryWorkflow/mutations.d.ts +5 -0
  44. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
  45. package/dist/component/recoveryWorkflow/mutations.js +2 -0
  46. package/dist/component/recoveryWorkflow/mutations.js.map +1 -1
  47. package/dist/component/recoveryWorkflow/queries.d.ts +10 -0
  48. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
  49. package/dist/component/recoveryWorkflow/schema.d.ts +114 -10
  50. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
  51. package/dist/component/schema.d.ts +63 -6
  52. package/dist/component/settlement/mutations.d.ts +10 -0
  53. package/dist/component/settlement/mutations.d.ts.map +1 -1
  54. package/dist/component/settlement/mutations.js +3 -0
  55. package/dist/component/settlement/mutations.js.map +1 -1
  56. package/dist/component/settlement/queries.d.ts +5 -0
  57. package/dist/component/settlement/queries.d.ts.map +1 -1
  58. package/dist/component/settlement/schema.d.ts +24 -1
  59. package/dist/component/settlement/schema.d.ts.map +1 -1
  60. package/dist/component/settlement/schema.js +5 -0
  61. package/dist/component/settlement/schema.js.map +1 -1
  62. package/dist/component/usage/allowance.fixtures.d.ts +79 -22
  63. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  64. package/dist/component/usageCredits/accounting.fixtures.d.ts +63 -6
  65. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  66. package/dist/shared/settlementPolicyContext.d.ts +10 -0
  67. package/dist/shared/settlementPolicyContext.d.ts.map +1 -0
  68. package/dist/shared/settlementPolicyContext.js +40 -0
  69. package/dist/shared/settlementPolicyContext.js.map +1 -0
  70. package/docs/README.md +2 -1
  71. package/docs/metered-usage.md +174 -356
  72. package/docs/metering-setup.md +175 -168
  73. package/docs/settlement.md +38 -0
  74. package/docs/usage-catalog.md +1 -1
  75. package/docs/usage-ledger.md +9 -8
  76. package/docs/usage-rollout.md +147 -0
  77. package/package.json +3 -2
  78. package/src/client/index.ts +1 -0
  79. package/src/client/recoveryWorkflow/provider.fixture.ts +143 -0
  80. package/src/client/recoveryWorkflow/provider.test.ts +83 -140
  81. package/src/client/settlement/authorization.ts +1 -0
  82. package/src/client/settlement/execution.ts +7 -0
  83. package/src/client/settlement/policy-context.test.ts +277 -0
  84. package/src/client/settlement/settleSale.ts +12 -0
  85. package/src/component/_generated/component.ts +25 -0
  86. package/src/component/recoveryWorkflow/mutations.ts +2 -0
  87. package/src/component/settlement/mutations.ts +6 -0
  88. package/src/component/settlement/schema.ts +7 -0
  89. package/src/component/tsconfig.json +5 -0
  90. package/src/shared/settlementPolicyContext.ts +62 -0
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/settlement/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,M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AC,CAAC;QACL,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACjC,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,IAAI,QAAQ,CAAC,aAAa;gBAAE,SAAS;YACtE,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc;gBACxC,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;qBACT,KAAK,CAAC,uBAAuB,CAAC;qBAC9B,SAAS,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,EAAE,CACnC,CAAC,CAAC,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,cAAe,CAAC,CACjD;qBACA,MAAM,EAAE;gBACb,CAAC,CAAC,IAAI,CAAC;YACT,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,OAAO,EAAE,CAAC;gBACV,SAAS;YACX,CAAC;YACD,MAAM,UAAU,GAAG,MAAM,0BAA0B,CACjD,GAAG,EACH,QAAQ,EACR,UAAU,CAAC,KAAK,CACjB,CAAC;YACF,MAAM,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;YAC5C,QAAQ,EAAE,CAAC;QACb,CAAC;QACD,OAAO;YACL,QAAQ;YACR,OAAO;YACP,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -18,6 +18,11 @@ export declare const getSettlementAllocation: import("convex/server").Registered
18
18
  paymentId?: string | undefined;
19
19
  paymentIntentId?: string | undefined;
20
20
  platformNet: number;
21
+ policyContext?: {
22
+ fields: Record<string, string>;
23
+ namespace: string;
24
+ version: 1;
25
+ } | undefined;
21
26
  processingFee: number;
22
27
  sourceChargeId: string;
23
28
  sourceInvoiceId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/queries.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAUlC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;UAkB5B,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBnC,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/queries.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAUlC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;UAkB5B,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBnC,CAAC"}
@@ -1,5 +1,14 @@
1
1
  export declare const termValidator: import("convex/values").VUnion<"forever" | "one_time", [import("convex/values").VLiteral<"forever", "required">, import("convex/values").VLiteral<"one_time", "required">], "required", never>;
2
2
  export declare const allocationFields: {
3
+ policyContext: import("convex/values").VObject<{
4
+ fields: Record<string, string>;
5
+ namespace: string;
6
+ version: 1;
7
+ } | undefined, {
8
+ namespace: import("convex/values").VString<string, "required">;
9
+ version: import("convex/values").VLiteral<1, "required">;
10
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
11
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
3
12
  sourceChargeId: import("convex/values").VString<string, "required">;
4
13
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
5
14
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -90,6 +99,11 @@ export declare const allocationsTable: import("convex/server").TableDefinition<i
90
99
  paymentId?: string | undefined;
91
100
  paymentIntentId?: string | undefined;
92
101
  platformNet: number;
102
+ policyContext?: {
103
+ fields: Record<string, string>;
104
+ namespace: string;
105
+ version: 1;
106
+ } | undefined;
93
107
  processingFee: number;
94
108
  sourceChargeId: string;
95
109
  sourceInvoiceId?: string | undefined;
@@ -115,6 +129,15 @@ export declare const allocationsTable: import("convex/server").TableDefinition<i
115
129
  subscriptionItemId: string;
116
130
  } | undefined;
117
131
  }, {
132
+ policyContext: import("convex/values").VObject<{
133
+ fields: Record<string, string>;
134
+ namespace: string;
135
+ version: 1;
136
+ } | undefined, {
137
+ namespace: import("convex/values").VString<string, "required">;
138
+ version: import("convex/values").VLiteral<1, "required">;
139
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
140
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
118
141
  sourceChargeId: import("convex/values").VString<string, "required">;
119
142
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
120
143
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -188,7 +211,7 @@ export declare const allocationsTable: import("convex/server").TableDefinition<i
188
211
  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>;
189
212
  amount: import("convex/values").VFloat64<number, "required">;
190
213
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
191
- }, "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">, {
214
+ }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "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" | `policyContext.fields.${string}`>, {
192
215
  by_source_charge: ["sourceChargeId", "_creationTime"];
193
216
  }, {}, {}>;
194
217
  export declare const commissionFields: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,gMAGzB,CAAC;AACF,eAAO,MAAM,gBAAgB;IAC3B,cAAc;IACd,eAAe;IACf,eAAe;IACf,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAeX,YAAY;;;;;;;;;;;;;;;;;IAWZ,KAAK;IACL,QAAQ;IACR,aAAa;IACb,WAAW;IACX,gBAAgB;IAChB,SAAS;IACT,SAAS;;;;;;;;;;;;;CAOV,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAG5B,CAAC;AACF,eAAO,MAAM,gBAAgB;IAC3B,cAAc;IACd,IAAI;IACJ,kBAAkB;IAClB,kBAAkB;CACnB,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;UAGhC,CAAC;AACF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;UAK+B,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/settlement/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,gMAGzB,CAAC;AACF,eAAO,MAAM,gBAAgB;IAC3B,aAAa;;;;;;;;;IAOb,cAAc;IACd,eAAe;IACf,eAAe;IACf,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAeX,YAAY;;;;;;;;;;;;;;;;;IAWZ,KAAK;IACL,QAAQ;IACR,aAAa;IACb,WAAW;IACX,gBAAgB;IAChB,SAAS;IACT,SAAS;;;;;;;;;;;;;CAOV,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAG5B,CAAC;AACF,eAAO,MAAM,gBAAgB;IAC3B,cAAc;IACd,IAAI;IACJ,kBAAkB;IAClB,kBAAkB;CACnB,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;UAGhC,CAAC;AACF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;UAK+B,CAAC"}
@@ -3,6 +3,11 @@ import { v } from "convex/values";
3
3
  import { splitRecipientRoleValidator } from "../lib/fees.js";
4
4
  export const termValidator = v.union(v.literal("forever"), v.literal("one_time"));
5
5
  export const allocationFields = {
6
+ policyContext: v.optional(v.object({
7
+ namespace: v.string(),
8
+ version: v.literal(1),
9
+ fields: v.record(v.string(), v.string()),
10
+ })),
6
11
  sourceChargeId: v.string(),
7
12
  paymentIntentId: v.optional(v.string()),
8
13
  sourceInvoiceId: v.optional(v.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/settlement/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAClC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CACtB,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,CAAC;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;QAC1B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,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K,CACrE,iBAAiB,EACjB,CAAC,gBAAgB,CAAC,CACnB,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC;IAClD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC"}
@@ -1403,6 +1403,11 @@ export declare function setupAllowance(): Promise<{
1403
1403
  paymentId?: string | undefined;
1404
1404
  paymentIntentId?: string | undefined;
1405
1405
  platformNet: number;
1406
+ policyContext?: {
1407
+ fields: Record<string, string>;
1408
+ namespace: string;
1409
+ version: 1;
1410
+ } | undefined;
1406
1411
  processingFee: number;
1407
1412
  sourceChargeId: string;
1408
1413
  sourceInvoiceId?: string | undefined;
@@ -1475,6 +1480,11 @@ export declare function setupAllowance(): Promise<{
1475
1480
  paymentId?: string | undefined;
1476
1481
  paymentIntentId?: string | undefined;
1477
1482
  platformNet: number;
1483
+ policyContext?: {
1484
+ fields: Record<string, string>;
1485
+ namespace: string;
1486
+ version: 1;
1487
+ } | undefined;
1478
1488
  processingFee: number;
1479
1489
  sourceChargeId: string;
1480
1490
  sourceInvoiceId?: string | undefined;
@@ -1500,6 +1510,15 @@ export declare function setupAllowance(): Promise<{
1500
1510
  subscriptionItemId: string;
1501
1511
  } | undefined;
1502
1512
  } | undefined, {
1513
+ policyContext: import("convex/values").VObject<{
1514
+ fields: Record<string, string>;
1515
+ namespace: string;
1516
+ version: 1;
1517
+ } | undefined, {
1518
+ namespace: import("convex/values").VString<string, "required">;
1519
+ version: import("convex/values").VLiteral<1, "required">;
1520
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
1521
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
1503
1522
  sourceChargeId: import("convex/values").VString<string, "required">;
1504
1523
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1505
1524
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -1573,7 +1592,7 @@ export declare function setupAllowance(): Promise<{
1573
1592
  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>;
1574
1593
  amount: import("convex/values").VFloat64<number, "required">;
1575
1594
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1576
- }, "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">;
1595
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "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" | `policyContext.fields.${string}`>;
1577
1596
  version: import("convex/values").VFloat64<number, "required">;
1578
1597
  sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
1579
1598
  sourceId: import("convex/values").VString<string, "required">;
@@ -1584,7 +1603,7 @@ export declare function setupAllowance(): Promise<{
1584
1603
  activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
1585
1604
  resumeQueued: import("convex/values").VBoolean<boolean, "required">;
1586
1605
  outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
1587
- }, "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">, {
1606
+ }, "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.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "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" | `allocation.policyContext.fields.${string}`>, {
1588
1607
  by_group: ["groupKey", "_creationTime"];
1589
1608
  by_source: ["sourceKind", "sourceId", "_creationTime"];
1590
1609
  }, {}, {}>;
@@ -1607,6 +1626,11 @@ export declare function setupAllowance(): Promise<{
1607
1626
  paymentId?: string | undefined;
1608
1627
  paymentIntentId?: string | undefined;
1609
1628
  platformNet: number;
1629
+ policyContext?: {
1630
+ fields: Record<string, string>;
1631
+ namespace: string;
1632
+ version: 1;
1633
+ } | undefined;
1610
1634
  processingFee: number;
1611
1635
  sourceChargeId: string;
1612
1636
  sourceInvoiceId?: string | undefined;
@@ -1665,6 +1689,11 @@ export declare function setupAllowance(): Promise<{
1665
1689
  paymentId?: string | undefined;
1666
1690
  paymentIntentId?: string | undefined;
1667
1691
  platformNet: number;
1692
+ policyContext?: {
1693
+ fields: Record<string, string>;
1694
+ namespace: string;
1695
+ version: 1;
1696
+ } | undefined;
1668
1697
  processingFee: number;
1669
1698
  sourceChargeId: string;
1670
1699
  sourceInvoiceId?: string | undefined;
@@ -1728,6 +1757,11 @@ export declare function setupAllowance(): Promise<{
1728
1757
  paymentId?: string | undefined;
1729
1758
  paymentIntentId?: string | undefined;
1730
1759
  platformNet: number;
1760
+ policyContext?: {
1761
+ fields: Record<string, string>;
1762
+ namespace: string;
1763
+ version: 1;
1764
+ } | undefined;
1731
1765
  processingFee: number;
1732
1766
  sourceChargeId: string;
1733
1767
  sourceInvoiceId?: string | undefined;
@@ -1753,6 +1787,15 @@ export declare function setupAllowance(): Promise<{
1753
1787
  subscriptionItemId: string;
1754
1788
  } | undefined;
1755
1789
  } | undefined, {
1790
+ policyContext: import("convex/values").VObject<{
1791
+ fields: Record<string, string>;
1792
+ namespace: string;
1793
+ version: 1;
1794
+ } | undefined, {
1795
+ namespace: import("convex/values").VString<string, "required">;
1796
+ version: import("convex/values").VLiteral<1, "required">;
1797
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
1798
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
1756
1799
  sourceChargeId: import("convex/values").VString<string, "required">;
1757
1800
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1758
1801
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -1826,10 +1869,10 @@ export declare function setupAllowance(): Promise<{
1826
1869
  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>;
1827
1870
  amount: import("convex/values").VFloat64<number, "required">;
1828
1871
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1829
- }, "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">;
1830
- }, "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">;
1872
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "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" | `policyContext.fields.${string}`>;
1873
+ }, "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.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "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" | `allocation.policyContext.fields.${string}`>;
1831
1874
  operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
1832
- }, "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">, {
1875
+ }, "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.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "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" | `binding.allocation.policyContext.fields.${string}`>, {
1833
1876
  by_key: ["requestKey", "_creationTime"];
1834
1877
  }, {}, {}>;
1835
1878
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -2137,6 +2180,14 @@ export declare function setupAllowance(): Promise<{
2137
2180
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2138
2181
  requestKey: string;
2139
2182
  result?: {
2183
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2184
+ retryable: false;
2185
+ status: "conflict";
2186
+ } | {
2187
+ reason: "policy_invalid";
2188
+ retryable: false;
2189
+ status: "rejected";
2190
+ } | {
2140
2191
  operation: {
2141
2192
  accountId: string;
2142
2193
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2147,14 +2198,6 @@ export declare function setupAllowance(): Promise<{
2147
2198
  } | {
2148
2199
  enabled: boolean;
2149
2200
  status: "unchanged";
2150
- } | {
2151
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2152
- retryable: false;
2153
- status: "conflict";
2154
- } | {
2155
- reason: "policy_invalid";
2156
- retryable: false;
2157
- status: "rejected";
2158
2201
  } | {
2159
2202
  reason: "provider_pending";
2160
2203
  retryable: true;
@@ -2165,6 +2208,14 @@ export declare function setupAllowance(): Promise<{
2165
2208
  payload: import("convex/values").VString<string, "required">;
2166
2209
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
2167
2210
  result: import("convex/values").VUnion<{
2211
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2212
+ retryable: false;
2213
+ status: "conflict";
2214
+ } | {
2215
+ reason: "policy_invalid";
2216
+ retryable: false;
2217
+ status: "rejected";
2218
+ } | {
2168
2219
  operation: {
2169
2220
  accountId: string;
2170
2221
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2175,14 +2226,6 @@ export declare function setupAllowance(): Promise<{
2175
2226
  } | {
2176
2227
  enabled: boolean;
2177
2228
  status: "unchanged";
2178
- } | {
2179
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2180
- retryable: false;
2181
- status: "conflict";
2182
- } | {
2183
- reason: "policy_invalid";
2184
- retryable: false;
2185
- status: "rejected";
2186
2229
  } | {
2187
2230
  reason: "provider_pending";
2188
2231
  retryable: true;
@@ -3642,6 +3685,11 @@ export declare function setupAllowance(): Promise<{
3642
3685
  paymentId?: string | undefined;
3643
3686
  paymentIntentId?: string | undefined;
3644
3687
  platformNet: number;
3688
+ policyContext?: {
3689
+ fields: Record<string, string>;
3690
+ namespace: string;
3691
+ version: 1;
3692
+ } | undefined;
3645
3693
  processingFee: number;
3646
3694
  sourceChargeId: string;
3647
3695
  sourceInvoiceId?: string | undefined;
@@ -3667,6 +3715,15 @@ export declare function setupAllowance(): Promise<{
3667
3715
  subscriptionItemId: string;
3668
3716
  } | undefined;
3669
3717
  }, {
3718
+ policyContext: import("convex/values").VObject<{
3719
+ fields: Record<string, string>;
3720
+ namespace: string;
3721
+ version: 1;
3722
+ } | undefined, {
3723
+ namespace: import("convex/values").VString<string, "required">;
3724
+ version: import("convex/values").VLiteral<1, "required">;
3725
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
3726
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
3670
3727
  sourceChargeId: import("convex/values").VString<string, "required">;
3671
3728
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
3672
3729
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -3740,7 +3797,7 @@ export declare function setupAllowance(): Promise<{
3740
3797
  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>;
3741
3798
  amount: import("convex/values").VFloat64<number, "required">;
3742
3799
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
3743
- }, "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">, {
3800
+ }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "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" | `policyContext.fields.${string}`>, {
3744
3801
  by_source_charge: ["sourceChargeId", "_creationTime"];
3745
3802
  }, {}, {}>;
3746
3803
  commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"allowance.fixtures.d.ts","sourceRoot":"","sources":["../../../src/component/usage/allowance.fixtures.ts"],"names":[],"mappings":"AAiBA,wBAAsB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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