@fantastic.dev/better-stripe 0.58.0 → 0.59.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 (198) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +238 -18
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +119 -9
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +238 -18
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +119 -9
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/usage/allowanceClient.d.ts +1 -1
  12. package/dist/client/usage/client.d.ts +2 -2
  13. package/dist/client/usage/client.d.ts.map +1 -1
  14. package/dist/client/usage/client.js +2 -2
  15. package/dist/client/usage/client.js.map +1 -1
  16. package/dist/client/usage/correctionClient.d.ts +33 -0
  17. package/dist/client/usage/correctionClient.d.ts.map +1 -0
  18. package/dist/client/usage/correctionClient.js +27 -0
  19. package/dist/client/usage/correctionClient.js.map +1 -0
  20. package/dist/client/usage/correctionEligibility.d.ts +4 -0
  21. package/dist/client/usage/correctionEligibility.d.ts.map +1 -0
  22. package/dist/client/usage/correctionEligibility.js +7 -0
  23. package/dist/client/usage/correctionEligibility.js.map +1 -0
  24. package/dist/client/usage/correctionInvoice.d.ts +9 -0
  25. package/dist/client/usage/correctionInvoice.d.ts.map +1 -0
  26. package/dist/client/usage/correctionInvoice.js +218 -0
  27. package/dist/client/usage/correctionInvoice.js.map +1 -0
  28. package/dist/client/usage/correctionInvoiceProof.d.ts +29 -0
  29. package/dist/client/usage/correctionInvoiceProof.d.ts.map +1 -0
  30. package/dist/client/usage/correctionInvoiceProof.js +41 -0
  31. package/dist/client/usage/correctionInvoiceProof.js.map +1 -0
  32. package/dist/client/usage/correctionProofs.d.ts +36 -0
  33. package/dist/client/usage/correctionProofs.d.ts.map +1 -0
  34. package/dist/client/usage/correctionProofs.js +41 -0
  35. package/dist/client/usage/correctionProofs.js.map +1 -0
  36. package/dist/client/usage/correctionProvider.d.ts +6 -0
  37. package/dist/client/usage/correctionProvider.d.ts.map +1 -0
  38. package/dist/client/usage/correctionProvider.js +243 -0
  39. package/dist/client/usage/correctionProvider.js.map +1 -0
  40. package/dist/client/usage/correctionRead.d.ts +27 -0
  41. package/dist/client/usage/correctionRead.d.ts.map +1 -0
  42. package/dist/client/usage/correctionRead.js +36 -0
  43. package/dist/client/usage/correctionRead.js.map +1 -0
  44. package/dist/client/usage/correctionTerms.d.ts +64 -0
  45. package/dist/client/usage/correctionTerms.d.ts.map +1 -0
  46. package/dist/client/usage/correctionTerms.js +65 -0
  47. package/dist/client/usage/correctionTerms.js.map +1 -0
  48. package/dist/client/usage/correctionTransport.fixtures.d.ts +37 -0
  49. package/dist/client/usage/correctionTransport.fixtures.d.ts.map +1 -0
  50. package/dist/client/usage/correctionTransport.fixtures.js +322 -0
  51. package/dist/client/usage/correctionTransport.fixtures.js.map +1 -0
  52. package/dist/client/usage/creditClient.d.ts +1 -1
  53. package/dist/client/usage/index.d.ts +2 -0
  54. package/dist/client/usage/index.d.ts.map +1 -1
  55. package/dist/client/usage/observationClient.d.ts +20 -0
  56. package/dist/client/usage/observationClient.d.ts.map +1 -1
  57. package/dist/client/usage/observationClient.js +20 -6
  58. package/dist/client/usage/observationClient.js.map +1 -1
  59. package/dist/client/usage/records.d.ts +1 -1
  60. package/dist/client/usage/records.d.ts.map +1 -1
  61. package/dist/client/usage/records.js.map +1 -1
  62. package/dist/client/usage/summary.d.ts +3 -0
  63. package/dist/client/usage/summary.d.ts.map +1 -1
  64. package/dist/client/usage/summary.js +9 -4
  65. package/dist/client/usage/summary.js.map +1 -1
  66. package/dist/client/usageExports.d.ts +2 -0
  67. package/dist/client/usageExports.d.ts.map +1 -1
  68. package/dist/component/_generated/api.d.ts +12 -0
  69. package/dist/component/_generated/api.d.ts.map +1 -1
  70. package/dist/component/_generated/api.js.map +1 -1
  71. package/dist/component/_generated/component.d.ts +255 -14
  72. package/dist/component/_generated/component.d.ts.map +1 -1
  73. package/dist/component/accountClosure/mutations.d.ts.map +1 -1
  74. package/dist/component/accountClosure/mutations.js +13 -0
  75. package/dist/component/accountClosure/mutations.js.map +1 -1
  76. package/dist/component/balanceFunding/mutations.d.ts +27 -27
  77. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  78. package/dist/component/earnings/triggers.d.ts +212 -26
  79. package/dist/component/earnings/triggers.d.ts.map +1 -1
  80. package/dist/component/schema.d.ts +119 -9
  81. package/dist/component/schema.js +4 -0
  82. package/dist/component/schema.js.map +1 -1
  83. package/dist/component/usage/queries.d.ts +2 -2
  84. package/dist/component/usage/schema.d.ts +18 -13
  85. package/dist/component/usage/schema.d.ts.map +1 -1
  86. package/dist/component/usage/schema.js +2 -1
  87. package/dist/component/usage/schema.js.map +1 -1
  88. package/dist/component/usageAllowance/queries.d.ts +1 -1
  89. package/dist/component/usageAllowance/queries.d.ts.map +1 -1
  90. package/dist/component/usageAllowance/queries.js +10 -1
  91. package/dist/component/usageAllowance/queries.js.map +1 -1
  92. package/dist/component/usageAllowance/schema.d.ts +5 -5
  93. package/dist/component/usageAllowance/schema.d.ts.map +1 -1
  94. package/dist/component/usageAllowance/schema.js +1 -1
  95. package/dist/component/usageAllowance/schema.js.map +1 -1
  96. package/dist/component/usageCorrections/accounting.d.ts +5 -0
  97. package/dist/component/usageCorrections/accounting.d.ts.map +1 -0
  98. package/dist/component/usageCorrections/accounting.js +55 -0
  99. package/dist/component/usageCorrections/accounting.js.map +1 -0
  100. package/dist/component/usageCorrections/cancellation.d.ts +6 -0
  101. package/dist/component/usageCorrections/cancellation.d.ts.map +1 -0
  102. package/dist/component/usageCorrections/cancellation.js +29 -0
  103. package/dist/component/usageCorrections/cancellation.js.map +1 -0
  104. package/dist/component/usageCorrections/helpers.d.ts +60 -0
  105. package/dist/component/usageCorrections/helpers.d.ts.map +1 -0
  106. package/dist/component/usageCorrections/helpers.js +52 -0
  107. package/dist/component/usageCorrections/helpers.js.map +1 -0
  108. package/dist/component/usageCorrections/invoice.d.ts +38 -0
  109. package/dist/component/usageCorrections/invoice.d.ts.map +1 -0
  110. package/dist/component/usageCorrections/invoice.js +82 -0
  111. package/dist/component/usageCorrections/invoice.js.map +1 -0
  112. package/dist/component/usageCorrections/mutations.d.ts +121 -0
  113. package/dist/component/usageCorrections/mutations.d.ts.map +1 -0
  114. package/dist/component/usageCorrections/mutations.js +256 -0
  115. package/dist/component/usageCorrections/mutations.js.map +1 -0
  116. package/dist/component/usageCorrections/queries.d.ts +115 -0
  117. package/dist/component/usageCorrections/queries.d.ts.map +1 -0
  118. package/dist/component/usageCorrections/queries.js +84 -0
  119. package/dist/component/usageCorrections/queries.js.map +1 -0
  120. package/dist/component/usageCorrections/schema.d.ts +248 -0
  121. package/dist/component/usageCorrections/schema.d.ts.map +1 -0
  122. package/dist/component/usageCorrections/schema.js +74 -0
  123. package/dist/component/usageCorrections/schema.js.map +1 -0
  124. package/dist/component/usageCredits/queries.d.ts +1 -1
  125. package/dist/component/usageCredits/queries.d.ts.map +1 -1
  126. package/dist/component/usageCredits/queries.js +6 -0
  127. package/dist/component/usageCredits/queries.js.map +1 -1
  128. package/dist/component/usageCredits/schema.d.ts +5 -5
  129. package/dist/component/usageCredits/schema.d.ts.map +1 -1
  130. package/dist/component/usageCredits/schema.js +1 -1
  131. package/dist/component/usageCredits/schema.js.map +1 -1
  132. package/dist/component/usageDelivery/fields.d.ts +2 -2
  133. package/dist/component/usageDelivery/fields.d.ts.map +1 -1
  134. package/dist/component/usageDelivery/fields.js +1 -1
  135. package/dist/component/usageDelivery/fields.js.map +1 -1
  136. package/dist/component/usageDelivery/helpers.d.ts +7 -6
  137. package/dist/component/usageDelivery/helpers.d.ts.map +1 -1
  138. package/dist/component/usageDelivery/mutations.d.ts +6 -6
  139. package/dist/component/usageDelivery/mutations.d.ts.map +1 -1
  140. package/dist/component/usageDelivery/mutations.js +9 -1
  141. package/dist/component/usageDelivery/mutations.js.map +1 -1
  142. package/dist/component/usageDelivery/queries.d.ts +8 -6
  143. package/dist/component/usageDelivery/queries.d.ts.map +1 -1
  144. package/dist/component/usageDelivery/schema.d.ts +4 -4
  145. package/dist/component/usageDelivery/steps.d.ts +2 -2
  146. package/dist/component/usageDelivery/steps.js +1 -1
  147. package/dist/component/usageDelivery/steps.js.map +1 -1
  148. package/dist/component/usageObservations/queries.d.ts.map +1 -1
  149. package/dist/component/usageObservations/queries.js +4 -2
  150. package/dist/component/usageObservations/queries.js.map +1 -1
  151. package/dist/component/usageSubscriptions/retirement.d.ts.map +1 -1
  152. package/dist/component/usageSubscriptions/retirement.js +24 -2
  153. package/dist/component/usageSubscriptions/retirement.js.map +1 -1
  154. package/docs/README.md +2 -0
  155. package/docs/usage-corrections.md +249 -0
  156. package/docs/usage-limits.md +1 -1
  157. package/package.json +2 -1
  158. package/src/client/usage/client.ts +2 -2
  159. package/src/client/usage/correctionClient.test.ts +153 -0
  160. package/src/client/usage/correctionClient.ts +62 -0
  161. package/src/client/usage/correctionCredits.test.ts +156 -0
  162. package/src/client/usage/correctionEligibility.ts +14 -0
  163. package/src/client/usage/correctionInvoice.test.ts +127 -0
  164. package/src/client/usage/correctionInvoice.ts +269 -0
  165. package/src/client/usage/correctionInvoiceProof.ts +40 -0
  166. package/src/client/usage/correctionProofs.ts +40 -0
  167. package/src/client/usage/correctionProvider.ts +326 -0
  168. package/src/client/usage/correctionRead.ts +73 -0
  169. package/src/client/usage/correctionRecovery.test.ts +113 -0
  170. package/src/client/usage/correctionTerms.ts +98 -0
  171. package/src/client/usage/correctionTransport.fixtures.ts +372 -0
  172. package/src/client/usage/index.ts +11 -0
  173. package/src/client/usage/observationClient.ts +20 -6
  174. package/src/client/usage/records.ts +7 -1
  175. package/src/client/usage/summary.ts +12 -4
  176. package/src/client/usageExports.ts +11 -0
  177. package/src/component/_generated/api.ts +12 -0
  178. package/src/component/_generated/component.ts +330 -2
  179. package/src/component/accountClosure/mutations.ts +17 -0
  180. package/src/component/schema.ts +8 -0
  181. package/src/component/usage/schema.ts +2 -0
  182. package/src/component/usageAllowance/queries.ts +8 -1
  183. package/src/component/usageAllowance/schema.ts +1 -0
  184. package/src/component/usageCorrections/accounting.ts +79 -0
  185. package/src/component/usageCorrections/cancellation.ts +32 -0
  186. package/src/component/usageCorrections/corrections.test.ts +389 -0
  187. package/src/component/usageCorrections/helpers.ts +57 -0
  188. package/src/component/usageCorrections/invoice.ts +103 -0
  189. package/src/component/usageCorrections/mutations.ts +278 -0
  190. package/src/component/usageCorrections/queries.ts +94 -0
  191. package/src/component/usageCorrections/schema.ts +90 -0
  192. package/src/component/usageCredits/queries.ts +4 -0
  193. package/src/component/usageCredits/schema.ts +1 -0
  194. package/src/component/usageDelivery/fields.ts +1 -0
  195. package/src/component/usageDelivery/mutations.ts +8 -3
  196. package/src/component/usageDelivery/steps.ts +1 -1
  197. package/src/component/usageObservations/queries.ts +5 -2
  198. package/src/component/usageSubscriptions/retirement.ts +31 -2
package/CHANGELOG.md CHANGED
@@ -26,6 +26,12 @@
26
26
  - Remove internal tracker references from public documentation and add a
27
27
  regression check that prevents their reintroduction.
28
28
 
29
+ ## [0.59.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.58.0...v0.59.0) (2026-10-18)
30
+
31
+ ### Features
32
+
33
+ - add auditable usage corrections and invoice adjustment evidence ([#335](https://github.com/FantasticDevHQ/better-stripe/issues/335)) ([6b0ec3a](https://github.com/FantasticDevHQ/better-stripe/commit/6b0ec3adbe87169887afef7ba523644ff1b8c1a2))
34
+
29
35
  ## [0.58.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.57.0...v0.58.0) (2026-10-18)
30
36
 
31
37
  ### Features
package/README.md CHANGED
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
5
5
  syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
6
6
  hooks and headless UI components.
7
7
 
8
- **Version**: `0.58.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
8
+ **Version**: `0.59.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
9
9
 
10
10
  Connect platforms use the default GA API version. Non-Connect merchants using
11
11
  customer-only Accounts v2 need preview access and an explicit preview version.
@@ -9,6 +9,114 @@ export declare const scope: {
9
9
  };
10
10
  export declare function setup(amounts?: number[], currency?: string): Promise<{
11
11
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
12
+ usageCorrectionClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
+ key: string;
14
+ operationKey: string;
15
+ proofJson: string;
16
+ }, {
17
+ key: import("convex/values").VString<string, "required">;
18
+ operationKey: import("convex/values").VString<string, "required">;
19
+ proofJson: import("convex/values").VString<string, "required">;
20
+ }, "required", "key" | "operationKey" | "proofJson">, {
21
+ by_key: ["key", "_creationTime"];
22
+ }, {}, {}>;
23
+ usageCorrections: import("convex/server").TableDefinition<import("convex/values").VObject<{
24
+ adjustmentJson?: string | undefined;
25
+ attempt: number;
26
+ attemptedAt?: number | undefined;
27
+ cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
28
+ correctionId: string;
29
+ creditNoteId?: string | undefined;
30
+ customerAccount?: string | undefined;
31
+ eventId: import("convex/values").GenericId<"usageEvents">;
32
+ firstAttemptAt: number;
33
+ historyCount: number;
34
+ inputJson: string;
35
+ invoiceId?: string | undefined;
36
+ key: string;
37
+ leaseUntil?: number | undefined;
38
+ nativeAdjustmentId?: string | undefined;
39
+ nativeCreditNoteStatus?: "issued" | "void" | undefined;
40
+ nativeStatus?: "complete" | "pending" | undefined;
41
+ observedAt?: number | undefined;
42
+ quantity: string;
43
+ reason: string;
44
+ recordJson: string;
45
+ refundId?: string | undefined;
46
+ resolution?: "event_cancellation" | "invoice_credit" | undefined;
47
+ restoredQuantity: string;
48
+ scaledQuantity: string;
49
+ scopeKey: string;
50
+ state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
51
+ stripeAccountId?: string | undefined;
52
+ subscriptionJson: string;
53
+ }, {
54
+ stripeAccountId: import("convex/values").VString<string | undefined, "optional">;
55
+ customerAccount: import("convex/values").VString<string | undefined, "optional">;
56
+ observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
57
+ nativeCreditNoteStatus: import("convex/values").VUnion<"issued" | "void" | undefined, [import("convex/values").VLiteral<"issued", "required">, import("convex/values").VLiteral<"void", "required">], "optional", never>;
58
+ resolution: import("convex/values").VUnion<"event_cancellation" | "invoice_credit" | undefined, [import("convex/values").VLiteral<"event_cancellation", "required">, import("convex/values").VLiteral<"invoice_credit", "required">], "optional", never>;
59
+ adjustmentJson: import("convex/values").VString<string | undefined, "optional">;
60
+ key: import("convex/values").VString<string, "required">;
61
+ scopeKey: import("convex/values").VString<string, "required">;
62
+ eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
63
+ correctionId: import("convex/values").VString<string, "required">;
64
+ inputJson: import("convex/values").VString<string, "required">;
65
+ recordJson: import("convex/values").VString<string, "required">;
66
+ subscriptionJson: import("convex/values").VString<string, "required">;
67
+ quantity: import("convex/values").VString<string, "required">;
68
+ scaledQuantity: import("convex/values").VString<string, "required">;
69
+ state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
70
+ reason: import("convex/values").VString<string, "required">;
71
+ firstAttemptAt: import("convex/values").VFloat64<number, "required">;
72
+ attemptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
73
+ leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
74
+ attempt: import("convex/values").VFloat64<number, "required">;
75
+ nativeAdjustmentId: import("convex/values").VString<string | undefined, "optional">;
76
+ nativeStatus: import("convex/values").VUnion<"complete" | "pending" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "optional", never>;
77
+ invoiceId: import("convex/values").VString<string | undefined, "optional">;
78
+ creditNoteId: import("convex/values").VString<string | undefined, "optional">;
79
+ refundId: import("convex/values").VString<string | undefined, "optional">;
80
+ cashConsequence: import("convex/values").VUnion<"none" | "operator_resolution_required" | "verified_external_adjustment", [import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"operator_resolution_required", "required">, import("convex/values").VLiteral<"verified_external_adjustment", "required">], "required", never>;
81
+ restoredQuantity: import("convex/values").VString<string, "required">;
82
+ historyCount: import("convex/values").VFloat64<number, "required">;
83
+ }, "required", "adjustmentJson" | "attempt" | "attemptedAt" | "cashConsequence" | "correctionId" | "creditNoteId" | "customerAccount" | "eventId" | "firstAttemptAt" | "historyCount" | "inputJson" | "invoiceId" | "key" | "leaseUntil" | "nativeAdjustmentId" | "nativeCreditNoteStatus" | "nativeStatus" | "observedAt" | "quantity" | "reason" | "recordJson" | "refundId" | "resolution" | "restoredQuantity" | "scaledQuantity" | "scopeKey" | "state" | "stripeAccountId" | "subscriptionJson">, {
84
+ by_event: ["eventId", "_creationTime"];
85
+ by_key: ["key", "_creationTime"];
86
+ by_payer_state: ["customerAccount", "state", "_creationTime"];
87
+ by_realm_state: ["stripeAccountId", "state", "_creationTime"];
88
+ by_scope: ["scopeKey", "_creationTime"];
89
+ by_scope_state: ["scopeKey", "state", "_creationTime"];
90
+ }, {}, {}>;
91
+ usageCorrectionHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
92
+ at: number;
93
+ eventId: import("convex/values").GenericId<"usageEvents">;
94
+ evidenceJson: string;
95
+ key: string;
96
+ occurredAt?: number | undefined;
97
+ reason: string;
98
+ recordJson: string;
99
+ scopeKey: string;
100
+ sequence: number;
101
+ state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
102
+ subscriptionJson: string;
103
+ }, {
104
+ key: import("convex/values").VString<string, "required">;
105
+ scopeKey: import("convex/values").VString<string, "required">;
106
+ eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
107
+ sequence: import("convex/values").VFloat64<number, "required">;
108
+ state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
109
+ reason: import("convex/values").VString<string, "required">;
110
+ recordJson: import("convex/values").VString<string, "required">;
111
+ subscriptionJson: import("convex/values").VString<string, "required">;
112
+ evidenceJson: import("convex/values").VString<string, "required">;
113
+ occurredAt: import("convex/values").VFloat64<number | undefined, "optional">;
114
+ at: import("convex/values").VFloat64<number, "required">;
115
+ }, "required", "at" | "eventId" | "evidenceJson" | "key" | "occurredAt" | "reason" | "recordJson" | "scopeKey" | "sequence" | "state" | "subscriptionJson">, {
116
+ by_event: ["eventId", "_creationTime"];
117
+ by_scope_occurrence: ["scopeKey", "occurredAt", "_creationTime"];
118
+ by_scope_time: ["scopeKey", "at", "_creationTime"];
119
+ }, {}, {}>;
12
120
  usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
121
  bindingJson: string;
14
122
  consumed: string;
@@ -42,10 +150,10 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
42
150
  at: number;
43
151
  evidenceJson: string;
44
152
  key: string;
45
- kind: "commit" | "policy" | "release" | "reservation";
153
+ kind: "commit" | "correction" | "policy" | "release" | "reservation";
46
154
  }, {
47
155
  key: import("convex/values").VString<string, "required">;
48
- kind: import("convex/values").VUnion<"commit" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">], "required", never>;
156
+ kind: import("convex/values").VUnion<"commit" | "correction" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
49
157
  evidenceJson: import("convex/values").VString<string, "required">;
50
158
  at: import("convex/values").VFloat64<number, "required">;
51
159
  }, "required", "at" | "evidenceJson" | "key" | "kind">, {
@@ -252,6 +360,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
252
360
  }, {}, {}>;
253
361
  usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
254
362
  attempts: number;
363
+ correctionKey?: string | undefined;
255
364
  definitionVersion?: 1 | undefined;
256
365
  dispatch?: string | undefined;
257
366
  eventId: import("convex/values").GenericId<"usageEvents">;
@@ -262,13 +371,13 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
262
371
  nextAttemptAt: number;
263
372
  provider?: string | undefined;
264
373
  providerIdentifier: string;
265
- reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
374
+ reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined;
266
375
  receipt?: {
267
376
  created: number;
268
377
  identifier: string;
269
378
  } | undefined;
270
379
  scopeKey: string;
271
- state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
380
+ state: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
272
381
  workflowId?: string | undefined;
273
382
  }, {
274
383
  historySequence: import("convex/values").VFloat64<number | undefined, "optional">;
@@ -278,7 +387,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
278
387
  firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
279
388
  leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
280
389
  held: import("convex/values").VBoolean<boolean | undefined, "optional">;
281
- reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
390
+ reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
282
391
  receipt: import("convex/values").VObject<{
283
392
  created: number;
284
393
  identifier: string;
@@ -286,14 +395,15 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
286
395
  identifier: import("convex/values").VString<string, "required">;
287
396
  created: import("convex/values").VFloat64<number, "required">;
288
397
  }, "optional", "created" | "identifier">;
398
+ correctionKey: import("convex/values").VString<string | undefined, "optional">;
289
399
  eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
290
400
  scopeKey: import("convex/values").VString<string, "required">;
291
- state: import("convex/values").VUnion<"held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
401
+ state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
292
402
  attempts: import("convex/values").VFloat64<number, "required">;
293
403
  nextAttemptAt: import("convex/values").VFloat64<number, "required">;
294
404
  providerIdentifier: import("convex/values").VString<string, "required">;
295
405
  dispatch: import("convex/values").VString<string | undefined, "optional">;
296
- }, "required", "attempts" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
406
+ }, "required", "attempts" | "correctionKey" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
297
407
  by_event: ["eventId", "_creationTime"];
298
408
  by_provider_identifier: ["providerIdentifier", "_creationTime"];
299
409
  by_scope_state: ["scopeKey", "state", "_creationTime"];
@@ -449,13 +559,13 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
449
559
  at: number;
450
560
  evidenceJson: string;
451
561
  fingerprint: string;
452
- kind: "closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
562
+ kind: "closure" | "commit" | "correction" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
453
563
  purchaseKey?: string | undefined;
454
564
  sourceKey: string;
455
565
  }, {
456
566
  accountKey: import("convex/values").VString<string, "required">;
457
567
  purchaseKey: import("convex/values").VString<string | undefined, "optional">;
458
- kind: import("convex/values").VUnion<"closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">], "required", never>;
568
+ kind: import("convex/values").VUnion<"closure" | "commit" | "correction" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
459
569
  sourceKey: import("convex/values").VString<string, "required">;
460
570
  fingerprint: import("convex/values").VString<string, "required">;
461
571
  evidenceJson: import("convex/values").VString<string, "required">;
@@ -3872,6 +3982,114 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
3872
3982
  }>;
3873
3983
  export declare function historical(currency?: string): Promise<{
3874
3984
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3985
+ usageCorrectionClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
3986
+ key: string;
3987
+ operationKey: string;
3988
+ proofJson: string;
3989
+ }, {
3990
+ key: import("convex/values").VString<string, "required">;
3991
+ operationKey: import("convex/values").VString<string, "required">;
3992
+ proofJson: import("convex/values").VString<string, "required">;
3993
+ }, "required", "key" | "operationKey" | "proofJson">, {
3994
+ by_key: ["key", "_creationTime"];
3995
+ }, {}, {}>;
3996
+ usageCorrections: import("convex/server").TableDefinition<import("convex/values").VObject<{
3997
+ adjustmentJson?: string | undefined;
3998
+ attempt: number;
3999
+ attemptedAt?: number | undefined;
4000
+ cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
4001
+ correctionId: string;
4002
+ creditNoteId?: string | undefined;
4003
+ customerAccount?: string | undefined;
4004
+ eventId: import("convex/values").GenericId<"usageEvents">;
4005
+ firstAttemptAt: number;
4006
+ historyCount: number;
4007
+ inputJson: string;
4008
+ invoiceId?: string | undefined;
4009
+ key: string;
4010
+ leaseUntil?: number | undefined;
4011
+ nativeAdjustmentId?: string | undefined;
4012
+ nativeCreditNoteStatus?: "issued" | "void" | undefined;
4013
+ nativeStatus?: "complete" | "pending" | undefined;
4014
+ observedAt?: number | undefined;
4015
+ quantity: string;
4016
+ reason: string;
4017
+ recordJson: string;
4018
+ refundId?: string | undefined;
4019
+ resolution?: "event_cancellation" | "invoice_credit" | undefined;
4020
+ restoredQuantity: string;
4021
+ scaledQuantity: string;
4022
+ scopeKey: string;
4023
+ state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
4024
+ stripeAccountId?: string | undefined;
4025
+ subscriptionJson: string;
4026
+ }, {
4027
+ stripeAccountId: import("convex/values").VString<string | undefined, "optional">;
4028
+ customerAccount: import("convex/values").VString<string | undefined, "optional">;
4029
+ observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
4030
+ nativeCreditNoteStatus: import("convex/values").VUnion<"issued" | "void" | undefined, [import("convex/values").VLiteral<"issued", "required">, import("convex/values").VLiteral<"void", "required">], "optional", never>;
4031
+ resolution: import("convex/values").VUnion<"event_cancellation" | "invoice_credit" | undefined, [import("convex/values").VLiteral<"event_cancellation", "required">, import("convex/values").VLiteral<"invoice_credit", "required">], "optional", never>;
4032
+ adjustmentJson: import("convex/values").VString<string | undefined, "optional">;
4033
+ key: import("convex/values").VString<string, "required">;
4034
+ scopeKey: import("convex/values").VString<string, "required">;
4035
+ eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
4036
+ correctionId: import("convex/values").VString<string, "required">;
4037
+ inputJson: import("convex/values").VString<string, "required">;
4038
+ recordJson: import("convex/values").VString<string, "required">;
4039
+ subscriptionJson: import("convex/values").VString<string, "required">;
4040
+ quantity: import("convex/values").VString<string, "required">;
4041
+ scaledQuantity: import("convex/values").VString<string, "required">;
4042
+ state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
4043
+ reason: import("convex/values").VString<string, "required">;
4044
+ firstAttemptAt: import("convex/values").VFloat64<number, "required">;
4045
+ attemptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
4046
+ leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
4047
+ attempt: import("convex/values").VFloat64<number, "required">;
4048
+ nativeAdjustmentId: import("convex/values").VString<string | undefined, "optional">;
4049
+ nativeStatus: import("convex/values").VUnion<"complete" | "pending" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "optional", never>;
4050
+ invoiceId: import("convex/values").VString<string | undefined, "optional">;
4051
+ creditNoteId: import("convex/values").VString<string | undefined, "optional">;
4052
+ refundId: import("convex/values").VString<string | undefined, "optional">;
4053
+ cashConsequence: import("convex/values").VUnion<"none" | "operator_resolution_required" | "verified_external_adjustment", [import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"operator_resolution_required", "required">, import("convex/values").VLiteral<"verified_external_adjustment", "required">], "required", never>;
4054
+ restoredQuantity: import("convex/values").VString<string, "required">;
4055
+ historyCount: import("convex/values").VFloat64<number, "required">;
4056
+ }, "required", "adjustmentJson" | "attempt" | "attemptedAt" | "cashConsequence" | "correctionId" | "creditNoteId" | "customerAccount" | "eventId" | "firstAttemptAt" | "historyCount" | "inputJson" | "invoiceId" | "key" | "leaseUntil" | "nativeAdjustmentId" | "nativeCreditNoteStatus" | "nativeStatus" | "observedAt" | "quantity" | "reason" | "recordJson" | "refundId" | "resolution" | "restoredQuantity" | "scaledQuantity" | "scopeKey" | "state" | "stripeAccountId" | "subscriptionJson">, {
4057
+ by_event: ["eventId", "_creationTime"];
4058
+ by_key: ["key", "_creationTime"];
4059
+ by_payer_state: ["customerAccount", "state", "_creationTime"];
4060
+ by_realm_state: ["stripeAccountId", "state", "_creationTime"];
4061
+ by_scope: ["scopeKey", "_creationTime"];
4062
+ by_scope_state: ["scopeKey", "state", "_creationTime"];
4063
+ }, {}, {}>;
4064
+ usageCorrectionHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
4065
+ at: number;
4066
+ eventId: import("convex/values").GenericId<"usageEvents">;
4067
+ evidenceJson: string;
4068
+ key: string;
4069
+ occurredAt?: number | undefined;
4070
+ reason: string;
4071
+ recordJson: string;
4072
+ scopeKey: string;
4073
+ sequence: number;
4074
+ state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
4075
+ subscriptionJson: string;
4076
+ }, {
4077
+ key: import("convex/values").VString<string, "required">;
4078
+ scopeKey: import("convex/values").VString<string, "required">;
4079
+ eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
4080
+ sequence: import("convex/values").VFloat64<number, "required">;
4081
+ state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
4082
+ reason: import("convex/values").VString<string, "required">;
4083
+ recordJson: import("convex/values").VString<string, "required">;
4084
+ subscriptionJson: import("convex/values").VString<string, "required">;
4085
+ evidenceJson: import("convex/values").VString<string, "required">;
4086
+ occurredAt: import("convex/values").VFloat64<number | undefined, "optional">;
4087
+ at: import("convex/values").VFloat64<number, "required">;
4088
+ }, "required", "at" | "eventId" | "evidenceJson" | "key" | "occurredAt" | "reason" | "recordJson" | "scopeKey" | "sequence" | "state" | "subscriptionJson">, {
4089
+ by_event: ["eventId", "_creationTime"];
4090
+ by_scope_occurrence: ["scopeKey", "occurredAt", "_creationTime"];
4091
+ by_scope_time: ["scopeKey", "at", "_creationTime"];
4092
+ }, {}, {}>;
3875
4093
  usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
3876
4094
  bindingJson: string;
3877
4095
  consumed: string;
@@ -3905,10 +4123,10 @@ export declare function historical(currency?: string): Promise<{
3905
4123
  at: number;
3906
4124
  evidenceJson: string;
3907
4125
  key: string;
3908
- kind: "commit" | "policy" | "release" | "reservation";
4126
+ kind: "commit" | "correction" | "policy" | "release" | "reservation";
3909
4127
  }, {
3910
4128
  key: import("convex/values").VString<string, "required">;
3911
- kind: import("convex/values").VUnion<"commit" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">], "required", never>;
4129
+ kind: import("convex/values").VUnion<"commit" | "correction" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
3912
4130
  evidenceJson: import("convex/values").VString<string, "required">;
3913
4131
  at: import("convex/values").VFloat64<number, "required">;
3914
4132
  }, "required", "at" | "evidenceJson" | "key" | "kind">, {
@@ -4115,6 +4333,7 @@ export declare function historical(currency?: string): Promise<{
4115
4333
  }, {}, {}>;
4116
4334
  usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
4117
4335
  attempts: number;
4336
+ correctionKey?: string | undefined;
4118
4337
  definitionVersion?: 1 | undefined;
4119
4338
  dispatch?: string | undefined;
4120
4339
  eventId: import("convex/values").GenericId<"usageEvents">;
@@ -4125,13 +4344,13 @@ export declare function historical(currency?: string): Promise<{
4125
4344
  nextAttemptAt: number;
4126
4345
  provider?: string | undefined;
4127
4346
  providerIdentifier: string;
4128
- reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
4347
+ reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined;
4129
4348
  receipt?: {
4130
4349
  created: number;
4131
4350
  identifier: string;
4132
4351
  } | undefined;
4133
4352
  scopeKey: string;
4134
- state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
4353
+ state: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
4135
4354
  workflowId?: string | undefined;
4136
4355
  }, {
4137
4356
  historySequence: import("convex/values").VFloat64<number | undefined, "optional">;
@@ -4141,7 +4360,7 @@ export declare function historical(currency?: string): Promise<{
4141
4360
  firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
4142
4361
  leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
4143
4362
  held: import("convex/values").VBoolean<boolean | undefined, "optional">;
4144
- reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
4363
+ reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
4145
4364
  receipt: import("convex/values").VObject<{
4146
4365
  created: number;
4147
4366
  identifier: string;
@@ -4149,14 +4368,15 @@ export declare function historical(currency?: string): Promise<{
4149
4368
  identifier: import("convex/values").VString<string, "required">;
4150
4369
  created: import("convex/values").VFloat64<number, "required">;
4151
4370
  }, "optional", "created" | "identifier">;
4371
+ correctionKey: import("convex/values").VString<string | undefined, "optional">;
4152
4372
  eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
4153
4373
  scopeKey: import("convex/values").VString<string, "required">;
4154
- state: import("convex/values").VUnion<"held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
4374
+ state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
4155
4375
  attempts: import("convex/values").VFloat64<number, "required">;
4156
4376
  nextAttemptAt: import("convex/values").VFloat64<number, "required">;
4157
4377
  providerIdentifier: import("convex/values").VString<string, "required">;
4158
4378
  dispatch: import("convex/values").VString<string | undefined, "optional">;
4159
- }, "required", "attempts" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
4379
+ }, "required", "attempts" | "correctionKey" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
4160
4380
  by_event: ["eventId", "_creationTime"];
4161
4381
  by_provider_identifier: ["providerIdentifier", "_creationTime"];
4162
4382
  by_scope_state: ["scopeKey", "state", "_creationTime"];
@@ -4312,13 +4532,13 @@ export declare function historical(currency?: string): Promise<{
4312
4532
  at: number;
4313
4533
  evidenceJson: string;
4314
4534
  fingerprint: string;
4315
- kind: "closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
4535
+ kind: "closure" | "commit" | "correction" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
4316
4536
  purchaseKey?: string | undefined;
4317
4537
  sourceKey: string;
4318
4538
  }, {
4319
4539
  accountKey: import("convex/values").VString<string, "required">;
4320
4540
  purchaseKey: import("convex/values").VString<string | undefined, "optional">;
4321
- kind: import("convex/values").VUnion<"closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">], "required", never>;
4541
+ kind: import("convex/values").VUnion<"closure" | "commit" | "correction" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
4322
4542
  sourceKey: import("convex/values").VString<string, "required">;
4323
4543
  fingerprint: import("convex/values").VString<string, "required">;
4324
4544
  evidenceJson: import("convex/values").VString<string, "required">;
@@ -1 +1 @@
1
- {"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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