@fantastic.dev/better-stripe 0.34.0 → 0.37.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 (308) hide show
  1. package/CHANGELOG.md +260 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +664 -2
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +332 -1
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +664 -2
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +332 -1
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/connect/refundCommandEvidence.d.ts +14 -0
  12. package/dist/client/connect/refundCommandEvidence.d.ts.map +1 -0
  13. package/dist/client/connect/refundCommandEvidence.js +20 -0
  14. package/dist/client/connect/refundCommandEvidence.js.map +1 -0
  15. package/dist/client/connect/refundCommandNormalization.d.ts +11 -0
  16. package/dist/client/connect/refundCommandNormalization.d.ts.map +1 -0
  17. package/dist/client/connect/refundCommandNormalization.js +12 -0
  18. package/dist/client/connect/refundCommandNormalization.js.map +1 -0
  19. package/dist/client/financialObservations.d.ts +42 -0
  20. package/dist/client/financialObservations.d.ts.map +1 -0
  21. package/dist/client/financialObservations.js +58 -0
  22. package/dist/client/financialObservations.js.map +1 -0
  23. package/dist/client/financialOwnership.d.ts +52 -0
  24. package/dist/client/financialOwnership.d.ts.map +1 -0
  25. package/dist/client/financialOwnership.js +72 -0
  26. package/dist/client/financialOwnership.js.map +1 -0
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/index.d.ts.map +1 -1
  29. package/dist/client/index.js +2 -2
  30. package/dist/client/index.js.map +1 -1
  31. package/dist/client/observationPagination.d.ts +10 -0
  32. package/dist/client/observationPagination.d.ts.map +1 -0
  33. package/dist/client/observationPagination.js +12 -0
  34. package/dist/client/observationPagination.js.map +1 -0
  35. package/dist/client/operationEvidence.d.ts +37 -0
  36. package/dist/client/operationEvidence.d.ts.map +1 -0
  37. package/dist/client/operationEvidence.js +44 -0
  38. package/dist/client/operationEvidence.js.map +1 -0
  39. package/dist/client/publicTypes.d.ts +6 -0
  40. package/dist/client/publicTypes.d.ts.map +1 -1
  41. package/dist/client/readContracts.d.ts +31 -0
  42. package/dist/client/readContracts.d.ts.map +1 -1
  43. package/dist/client/readContracts.js +14 -0
  44. package/dist/client/readContracts.js.map +1 -1
  45. package/dist/client/transferObservations.d.ts +59 -0
  46. package/dist/client/transferObservations.d.ts.map +1 -0
  47. package/dist/client/transferObservations.js +82 -0
  48. package/dist/client/transferObservations.js.map +1 -0
  49. package/dist/component/_generated/component.d.ts +687 -0
  50. package/dist/component/_generated/component.d.ts.map +1 -1
  51. package/dist/component/affiliateRecovery/mutations.d.ts.map +1 -1
  52. package/dist/component/affiliateRecovery/mutations.js +4 -1
  53. package/dist/component/affiliateRecovery/mutations.js.map +1 -1
  54. package/dist/component/connect/mutations.d.ts.map +1 -1
  55. package/dist/component/connect/mutations.js +18 -2
  56. package/dist/component/connect/mutations.js.map +1 -1
  57. package/dist/component/connect/queries.d.ts +8 -0
  58. package/dist/component/connect/queries.d.ts.map +1 -1
  59. package/dist/component/connect/reversalClaims.d.ts.map +1 -1
  60. package/dist/component/connect/reversalClaims.js +7 -1
  61. package/dist/component/connect/reversalClaims.js.map +1 -1
  62. package/dist/component/connect/reversalReceipts.d.ts.map +1 -1
  63. package/dist/component/connect/reversalReceipts.js +2 -0
  64. package/dist/component/connect/reversalReceipts.js.map +1 -1
  65. package/dist/component/connect/schema.d.ts +11 -1
  66. package/dist/component/connect/schema.d.ts.map +1 -1
  67. package/dist/component/connect/schema.js +9 -1
  68. package/dist/component/connect/schema.js.map +1 -1
  69. package/dist/component/connect/validators.d.ts +9 -1
  70. package/dist/component/connect/validators.d.ts.map +1 -1
  71. package/dist/component/connect/validators.js +2 -0
  72. package/dist/component/connect/validators.js.map +1 -1
  73. package/dist/component/earnings/pairedAdjustment.d.ts +12 -0
  74. package/dist/component/earnings/pairedAdjustment.d.ts.map +1 -0
  75. package/dist/component/earnings/pairedAdjustment.js +46 -0
  76. package/dist/component/earnings/pairedAdjustment.js.map +1 -0
  77. package/dist/component/earnings/triggers.d.ts +546 -2
  78. package/dist/component/earnings/triggers.d.ts.map +1 -1
  79. package/dist/component/earnings/triggers.js +17 -3
  80. package/dist/component/earnings/triggers.js.map +1 -1
  81. package/dist/component/financialObservations/continuation.d.ts +7 -0
  82. package/dist/component/financialObservations/continuation.d.ts.map +1 -0
  83. package/dist/component/financialObservations/continuation.js +131 -0
  84. package/dist/component/financialObservations/continuation.js.map +1 -0
  85. package/dist/component/financialObservations/generations.d.ts +6 -0
  86. package/dist/component/financialObservations/generations.d.ts.map +1 -0
  87. package/dist/component/financialObservations/generations.js +46 -0
  88. package/dist/component/financialObservations/generations.js.map +1 -0
  89. package/dist/component/financialObservations/mutations.d.ts +62 -0
  90. package/dist/component/financialObservations/mutations.d.ts.map +1 -0
  91. package/dist/component/financialObservations/mutations.js +69 -0
  92. package/dist/component/financialObservations/mutations.js.map +1 -0
  93. package/dist/component/financialObservations/queries.d.ts +307 -0
  94. package/dist/component/financialObservations/queries.d.ts.map +1 -0
  95. package/dist/component/financialObservations/queries.js +219 -0
  96. package/dist/component/financialObservations/queries.js.map +1 -0
  97. package/dist/component/financialObservations/schema.d.ts +182 -0
  98. package/dist/component/financialObservations/schema.d.ts.map +1 -0
  99. package/dist/component/financialObservations/schema.js +53 -0
  100. package/dist/component/financialObservations/schema.js.map +1 -0
  101. package/dist/component/financialObservations/settlement.d.ts +7 -0
  102. package/dist/component/financialObservations/settlement.d.ts.map +1 -0
  103. package/dist/component/financialObservations/settlement.js +118 -0
  104. package/dist/component/financialObservations/settlement.js.map +1 -0
  105. package/dist/component/financialObservations/settlementHelpers.d.ts +46 -0
  106. package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -0
  107. package/dist/component/financialObservations/settlementHelpers.js +70 -0
  108. package/dist/component/financialObservations/settlementHelpers.js.map +1 -0
  109. package/dist/component/financialObservations/transferBatches.d.ts +12 -0
  110. package/dist/component/financialObservations/transferBatches.d.ts.map +1 -0
  111. package/dist/component/financialObservations/transferBatches.js +76 -0
  112. package/dist/component/financialObservations/transferBatches.js.map +1 -0
  113. package/dist/component/financialObservations/transferContinuation.d.ts +5 -0
  114. package/dist/component/financialObservations/transferContinuation.d.ts.map +1 -0
  115. package/dist/component/financialObservations/transferContinuation.js +35 -0
  116. package/dist/component/financialObservations/transferContinuation.js.map +1 -0
  117. package/dist/component/financialObservations/transferContinuationState.d.ts +8 -0
  118. package/dist/component/financialObservations/transferContinuationState.d.ts.map +1 -0
  119. package/dist/component/financialObservations/transferContinuationState.js +69 -0
  120. package/dist/component/financialObservations/transferContinuationState.js.map +1 -0
  121. package/dist/component/financialObservations/transferContinuationSteps.d.ts +5 -0
  122. package/dist/component/financialObservations/transferContinuationSteps.d.ts.map +1 -0
  123. package/dist/component/financialObservations/transferContinuationSteps.js +174 -0
  124. package/dist/component/financialObservations/transferContinuationSteps.js.map +1 -0
  125. package/dist/component/financialObservations/transferHelpers.d.ts +18 -0
  126. package/dist/component/financialObservations/transferHelpers.d.ts.map +1 -0
  127. package/dist/component/financialObservations/transferHelpers.js +37 -0
  128. package/dist/component/financialObservations/transferHelpers.js.map +1 -0
  129. package/dist/component/financialObservations/transferReferenceSchema.d.ts +56 -0
  130. package/dist/component/financialObservations/transferReferenceSchema.d.ts.map +1 -0
  131. package/dist/component/financialObservations/transferReferenceSchema.js +21 -0
  132. package/dist/component/financialObservations/transferReferenceSchema.js.map +1 -0
  133. package/dist/component/financialObservations/transferSchema.d.ts +237 -0
  134. package/dist/component/financialObservations/transferSchema.d.ts.map +1 -0
  135. package/dist/component/financialObservations/transferSchema.js +65 -0
  136. package/dist/component/financialObservations/transferSchema.js.map +1 -0
  137. package/dist/component/financialObservations/transfers.d.ts +7 -0
  138. package/dist/component/financialObservations/transfers.d.ts.map +1 -0
  139. package/dist/component/financialObservations/transfers.js +79 -0
  140. package/dist/component/financialObservations/transfers.js.map +1 -0
  141. package/dist/component/financialOwnership/helpers.d.ts +37 -0
  142. package/dist/component/financialOwnership/helpers.d.ts.map +1 -0
  143. package/dist/component/financialOwnership/helpers.js +76 -0
  144. package/dist/component/financialOwnership/helpers.js.map +1 -0
  145. package/dist/component/financialOwnership/mutations.d.ts +28 -0
  146. package/dist/component/financialOwnership/mutations.d.ts.map +1 -0
  147. package/dist/component/financialOwnership/mutations.js +74 -0
  148. package/dist/component/financialOwnership/mutations.js.map +1 -0
  149. package/dist/component/financialOwnership/queries.d.ts +57 -0
  150. package/dist/component/financialOwnership/queries.d.ts.map +1 -0
  151. package/dist/component/financialOwnership/queries.js +50 -0
  152. package/dist/component/financialOwnership/queries.js.map +1 -0
  153. package/dist/component/financialOwnership/schema.d.ts +140 -0
  154. package/dist/component/financialOwnership/schema.d.ts.map +1 -0
  155. package/dist/component/financialOwnership/schema.js +35 -0
  156. package/dist/component/financialOwnership/schema.js.map +1 -0
  157. package/dist/component/operationEvidence/canonical.d.ts +4 -0
  158. package/dist/component/operationEvidence/canonical.d.ts.map +1 -0
  159. package/dist/component/operationEvidence/canonical.js +8 -0
  160. package/dist/component/operationEvidence/canonical.js.map +1 -0
  161. package/dist/component/operationEvidence/helpers.d.ts +87 -0
  162. package/dist/component/operationEvidence/helpers.d.ts.map +1 -0
  163. package/dist/component/operationEvidence/helpers.js +49 -0
  164. package/dist/component/operationEvidence/helpers.js.map +1 -0
  165. package/dist/component/operationEvidence/maintenance.d.ts +88 -0
  166. package/dist/component/operationEvidence/maintenance.d.ts.map +1 -0
  167. package/dist/component/operationEvidence/maintenance.js +59 -0
  168. package/dist/component/operationEvidence/maintenance.js.map +1 -0
  169. package/dist/component/operationEvidence/mutations.d.ts +97 -0
  170. package/dist/component/operationEvidence/mutations.d.ts.map +1 -0
  171. package/dist/component/operationEvidence/mutations.js +14 -0
  172. package/dist/component/operationEvidence/mutations.js.map +1 -0
  173. package/dist/component/operationEvidence/queries.d.ts +205 -0
  174. package/dist/component/operationEvidence/queries.d.ts.map +1 -0
  175. package/dist/component/operationEvidence/queries.js +75 -0
  176. package/dist/component/operationEvidence/queries.js.map +1 -0
  177. package/dist/component/operationEvidence/schema.d.ts +536 -0
  178. package/dist/component/operationEvidence/schema.d.ts.map +1 -0
  179. package/dist/component/operationEvidence/schema.js +53 -0
  180. package/dist/component/operationEvidence/schema.js.map +1 -0
  181. package/dist/component/refundHistory/commandBinding.d.ts +17 -0
  182. package/dist/component/refundHistory/commandBinding.d.ts.map +1 -0
  183. package/dist/component/refundHistory/commandBinding.js +41 -0
  184. package/dist/component/refundHistory/commandBinding.js.map +1 -0
  185. package/dist/component/refundHistory/commandEvidence.d.ts +50 -0
  186. package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -0
  187. package/dist/component/refundHistory/commandEvidence.js +58 -0
  188. package/dist/component/refundHistory/commandEvidence.js.map +1 -0
  189. package/dist/component/refundHistory/commandEvidenceValidator.d.ts +89 -0
  190. package/dist/component/refundHistory/commandEvidenceValidator.d.ts.map +1 -0
  191. package/dist/component/refundHistory/commandEvidenceValidator.js +8 -0
  192. package/dist/component/refundHistory/commandEvidenceValidator.js.map +1 -0
  193. package/dist/component/refundHistory/commandFields.d.ts +8 -0
  194. package/dist/component/refundHistory/commandFields.d.ts.map +1 -0
  195. package/dist/component/refundHistory/commandFields.js +9 -0
  196. package/dist/component/refundHistory/commandFields.js.map +1 -0
  197. package/dist/component/refundHistory/mutations.d.ts +8 -0
  198. package/dist/component/refundHistory/mutations.d.ts.map +1 -0
  199. package/dist/component/refundHistory/mutations.js +25 -0
  200. package/dist/component/refundHistory/mutations.js.map +1 -0
  201. package/dist/component/refundHistory/originalSeller.d.ts +5 -0
  202. package/dist/component/refundHistory/originalSeller.d.ts.map +1 -0
  203. package/dist/component/refundHistory/originalSeller.js +35 -0
  204. package/dist/component/refundHistory/originalSeller.js.map +1 -0
  205. package/dist/component/refundHistory/queries.d.ts +51 -0
  206. package/dist/component/refundHistory/queries.d.ts.map +1 -1
  207. package/dist/component/refundHistory/queries.js +14 -0
  208. package/dist/component/refundHistory/queries.js.map +1 -1
  209. package/dist/component/schema.d.ts +332 -1
  210. package/dist/component/schema.js +15 -0
  211. package/dist/component/schema.js.map +1 -1
  212. package/dist/component/settlement/mutations.d.ts.map +1 -1
  213. package/dist/component/settlement/mutations.js +5 -1
  214. package/dist/component/settlement/mutations.js.map +1 -1
  215. package/dist/shared/refundCommandScope.d.ts +10 -0
  216. package/dist/shared/refundCommandScope.d.ts.map +1 -0
  217. package/dist/shared/refundCommandScope.js +9 -0
  218. package/dist/shared/refundCommandScope.js.map +1 -0
  219. package/docs/financial-observations.md +244 -0
  220. package/docs/financial-ownership.md +54 -0
  221. package/docs/refund-command-evidence.md +55 -0
  222. package/package.json +5 -2
  223. package/src/client/connect/refundCommandEvidence.ts +41 -0
  224. package/src/client/connect/refundCommandNormalization.ts +28 -0
  225. package/src/client/financialObservations.test.ts +109 -0
  226. package/src/client/financialObservations.ts +106 -0
  227. package/src/client/financialOwnership.test.ts +80 -0
  228. package/src/client/financialOwnership.ts +116 -0
  229. package/src/client/index.ts +2 -2
  230. package/src/client/observationPagination.ts +11 -0
  231. package/src/client/operationEvidence.test.ts +110 -0
  232. package/src/client/operationEvidence.ts +92 -0
  233. package/src/client/publicTypes.ts +45 -0
  234. package/src/client/readContracts.ts +25 -0
  235. package/src/client/refund-command-evidence.test.ts +68 -0
  236. package/src/client/refund-command-normalization.test.ts +61 -0
  237. package/src/client/transferContinuation.test.ts +94 -0
  238. package/src/client/transferObservations.test.ts +98 -0
  239. package/src/client/transferObservations.ts +180 -0
  240. package/src/component/_generated/api.ts +54 -0
  241. package/src/component/_generated/component.ts +797 -0
  242. package/src/component/affiliateRecovery/mutations.ts +10 -1
  243. package/src/component/connect/mutations.ts +29 -2
  244. package/src/component/connect/reversalClaims.ts +19 -1
  245. package/src/component/connect/reversalReceipts.ts +2 -0
  246. package/src/component/connect/schema.ts +9 -1
  247. package/src/component/connect/validators.ts +2 -0
  248. package/src/component/core/reset.test.ts +8 -1
  249. package/src/component/earnings/earnings-totals.test.ts +14 -10
  250. package/src/component/earnings/paired-adjustment.test.ts +258 -0
  251. package/src/component/earnings/pairedAdjustment.ts +77 -0
  252. package/src/component/earnings/triggers.ts +23 -11
  253. package/src/component/financialObservations/continuation.test.ts +445 -0
  254. package/src/component/financialObservations/continuation.ts +159 -0
  255. package/src/component/financialObservations/generations.ts +53 -0
  256. package/src/component/financialObservations/mutations.ts +75 -0
  257. package/src/component/financialObservations/observation-boundaries.test.ts +466 -0
  258. package/src/component/financialObservations/queries.ts +246 -0
  259. package/src/component/financialObservations/schema.ts +68 -0
  260. package/src/component/financialObservations/settlement-observations.test.ts +86 -0
  261. package/src/component/financialObservations/settlement.ts +142 -0
  262. package/src/component/financialObservations/settlementHelpers.ts +92 -0
  263. package/src/component/financialObservations/transfer-batches.test.ts +61 -0
  264. package/src/component/financialObservations/transfer-boundaries.test.ts +116 -0
  265. package/src/component/financialObservations/transfer-continuation-guards.test.ts +428 -0
  266. package/src/component/financialObservations/transfer-continuation.test.ts +154 -0
  267. package/src/component/financialObservations/transfer-observations.test.ts +212 -0
  268. package/src/component/financialObservations/transfer-overflow.test.ts +181 -0
  269. package/src/component/financialObservations/transfer-writers.test.ts +162 -0
  270. package/src/component/financialObservations/transferBatches.ts +96 -0
  271. package/src/component/financialObservations/transferContinuation.ts +53 -0
  272. package/src/component/financialObservations/transferContinuationState.ts +85 -0
  273. package/src/component/financialObservations/transferContinuationSteps.ts +232 -0
  274. package/src/component/financialObservations/transferHelpers.ts +38 -0
  275. package/src/component/financialObservations/transferReferenceSchema.ts +20 -0
  276. package/src/component/financialObservations/transferSchema.ts +74 -0
  277. package/src/component/financialObservations/transfers.ts +99 -0
  278. package/src/component/financialOwnership/financial-ownership.test.ts +102 -0
  279. package/src/component/financialOwnership/helpers.ts +98 -0
  280. package/src/component/financialOwnership/mutations.ts +83 -0
  281. package/src/component/financialOwnership/ownership-boundaries.test.ts +308 -0
  282. package/src/component/financialOwnership/queries.ts +65 -0
  283. package/src/component/financialOwnership/schema.ts +35 -0
  284. package/src/component/operationEvidence/canonical.ts +10 -0
  285. package/src/component/operationEvidence/helpers.ts +65 -0
  286. package/src/component/operationEvidence/integrity.test.ts +257 -0
  287. package/src/component/operationEvidence/maintenance.test.ts +152 -0
  288. package/src/component/operationEvidence/maintenance.ts +89 -0
  289. package/src/component/operationEvidence/mutations.ts +14 -0
  290. package/src/component/operationEvidence/queries.ts +108 -0
  291. package/src/component/operationEvidence/reads.test.ts +140 -0
  292. package/src/component/operationEvidence/schema.ts +62 -0
  293. package/src/component/refundHistory/command-evidence.test.ts +288 -0
  294. package/src/component/refundHistory/command-normalization-resource.test.ts +77 -0
  295. package/src/component/refundHistory/command-normalization.test.ts +229 -0
  296. package/src/component/refundHistory/command-provenance.test.ts +59 -0
  297. package/src/component/refundHistory/commandBinding.ts +54 -0
  298. package/src/component/refundHistory/commandEvidence.ts +76 -0
  299. package/src/component/refundHistory/commandEvidenceValidator.ts +18 -0
  300. package/src/component/refundHistory/commandFields.ts +9 -0
  301. package/src/component/refundHistory/mutations.ts +33 -0
  302. package/src/component/refundHistory/original-seller-boundaries.test.ts +138 -0
  303. package/src/component/refundHistory/original-seller.test.ts +175 -0
  304. package/src/component/refundHistory/originalSeller.ts +48 -0
  305. package/src/component/refundHistory/queries.ts +15 -0
  306. package/src/component/schema.ts +28 -0
  307. package/src/component/settlement/mutations.ts +5 -1
  308. package/src/shared/refundCommandScope.ts +19 -0
@@ -1 +1 @@
1
- {"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,MAAM;yBACT;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
@@ -14,6 +14,327 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
14
14
  export declare function operation(): Promise<Sync>;
15
15
  export declare function setup(scope?: Scope): Promise<{
16
16
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
17
+ operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
+ commissionExposure?: {
19
+ chargeAmount: number;
20
+ disputeId?: string | undefined;
21
+ disputeState?: "lost" | "open" | "won" | undefined;
22
+ finalized: boolean;
23
+ kind: "dispute" | "refund";
24
+ principal: number;
25
+ refundId?: string | undefined;
26
+ refundedPrincipal?: number | undefined;
27
+ } | undefined;
28
+ operationId: string;
29
+ slices: {
30
+ from: number;
31
+ stripeTransferId: string;
32
+ to: number;
33
+ }[];
34
+ sourceChargeId: string;
35
+ }, {
36
+ operationId: import("convex/values").VString<string, "required">;
37
+ sourceChargeId: import("convex/values").VString<string, "required">;
38
+ slices: import("convex/values").VArray<{
39
+ from: number;
40
+ stripeTransferId: string;
41
+ to: number;
42
+ }[], import("convex/values").VObject<{
43
+ from: number;
44
+ stripeTransferId: string;
45
+ to: number;
46
+ }, {
47
+ stripeTransferId: import("convex/values").VString<string, "required">;
48
+ from: import("convex/values").VFloat64<number, "required">;
49
+ to: import("convex/values").VFloat64<number, "required">;
50
+ }, "required", "from" | "stripeTransferId" | "to">, "required">;
51
+ commissionExposure: import("convex/values").VObject<{
52
+ chargeAmount: number;
53
+ disputeId?: string | undefined;
54
+ disputeState?: "lost" | "open" | "won" | undefined;
55
+ finalized: boolean;
56
+ kind: "dispute" | "refund";
57
+ principal: number;
58
+ refundId?: string | undefined;
59
+ refundedPrincipal?: number | undefined;
60
+ } | undefined, {
61
+ kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
62
+ chargeAmount: import("convex/values").VFloat64<number, "required">;
63
+ principal: import("convex/values").VFloat64<number, "required">;
64
+ finalized: import("convex/values").VBoolean<boolean, "required">;
65
+ disputeState: import("convex/values").VUnion<"lost" | "open" | "won" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"lost", "required">, import("convex/values").VLiteral<"won", "required">], "optional", never>;
66
+ disputeId: import("convex/values").VString<string | undefined, "optional">;
67
+ refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
68
+ refundId: import("convex/values").VString<string | undefined, "optional">;
69
+ }, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
70
+ }, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
71
+ operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
72
+ firstObservedAt: number;
73
+ generation: number;
74
+ isContradictory: boolean;
75
+ latestFingerprint: string;
76
+ latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
77
+ operationDigest: string;
78
+ originalFingerprint: string;
79
+ originalIdentityFingerprint: string;
80
+ originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
81
+ producer: "trusted_host_maintenance";
82
+ producerVersion: 1;
83
+ sourceChargeDigest: string;
84
+ sourceCreatedAt: number;
85
+ sourceId: import("convex/values").GenericId<"transferReversalOps">;
86
+ }, {
87
+ sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
88
+ originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
89
+ latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
90
+ producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
91
+ producerVersion: import("convex/values").VLiteral<1, "required">;
92
+ firstObservedAt: import("convex/values").VFloat64<number, "required">;
93
+ sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
94
+ originalFingerprint: import("convex/values").VString<string, "required">;
95
+ latestFingerprint: import("convex/values").VString<string, "required">;
96
+ originalIdentityFingerprint: import("convex/values").VString<string, "required">;
97
+ operationDigest: import("convex/values").VString<string, "required">;
98
+ sourceChargeDigest: import("convex/values").VString<string, "required">;
99
+ generation: import("convex/values").VFloat64<number, "required">;
100
+ isContradictory: import("convex/values").VBoolean<boolean, "required">;
101
+ }, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
102
+ by_operation_digest: ["operationDigest", "_creationTime"];
103
+ by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
104
+ by_source_id: ["sourceId", "_creationTime"];
105
+ }, {}, {}>;
106
+ financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
107
+ bucketKey: string;
108
+ fingerprint: string;
109
+ generation: number;
110
+ isContradictory: boolean;
111
+ observedFingerprint: string;
112
+ orgId?: string | undefined;
113
+ ownershipFingerprint: string;
114
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
115
+ producer: "transfer_fact";
116
+ producerVersion: 1;
117
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
118
+ role?: "affiliate" | "other" | "store" | undefined;
119
+ sourceChargeId?: string | undefined;
120
+ sourceInvoiceId?: string | undefined;
121
+ stripeTransferId: string;
122
+ transferId: import("convex/values").GenericId<"transfers">;
123
+ userId?: string | undefined;
124
+ }, {
125
+ transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
126
+ stripeTransferId: import("convex/values").VString<string, "required">;
127
+ sourceChargeId: import("convex/values").VString<string | undefined, "optional">;
128
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
129
+ bucketKey: import("convex/values").VString<string, "required">;
130
+ role: import("convex/values").VUnion<"affiliate" | "other" | "store" | undefined, [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "optional", never>;
131
+ registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
132
+ userId: import("convex/values").VString<string | undefined, "optional">;
133
+ orgId: import("convex/values").VString<string | undefined, "optional">;
134
+ ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
135
+ producer: import("convex/values").VLiteral<"transfer_fact", "required">;
136
+ producerVersion: import("convex/values").VLiteral<1, "required">;
137
+ fingerprint: import("convex/values").VString<string, "required">;
138
+ observedFingerprint: import("convex/values").VString<string, "required">;
139
+ ownershipFingerprint: import("convex/values").VString<string, "required">;
140
+ generation: import("convex/values").VFloat64<number, "required">;
141
+ isContradictory: import("convex/values").VBoolean<boolean, "required">;
142
+ }, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
143
+ by_bucket_key: ["bucketKey", "_creationTime"];
144
+ by_owner: ["userId", "orgId", "_creationTime"];
145
+ by_transfer_id: ["transferId", "_creationTime"];
146
+ }, {}, {}>;
147
+ financialTransferBatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
148
+ continuation?: {
149
+ nextReference: number;
150
+ producerGeneration: number;
151
+ sourceFingerprint: string;
152
+ state: "complete" | "held" | "indexing" | "validating";
153
+ validatedReferences: number;
154
+ } | undefined;
155
+ fingerprint: string;
156
+ generation: number;
157
+ isContradictory: boolean;
158
+ isOverflow: true;
159
+ observedFingerprint: string;
160
+ operationId: string;
161
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
162
+ producer: "transfer_frontier_claim" | "transfer_frontier_release";
163
+ producerVersion: 1;
164
+ referenceCount: number;
165
+ sourceChargeId: string;
166
+ state: "complete" | "pending";
167
+ transferIds: import("convex/values").GenericId<"transfers">[];
168
+ }, {
169
+ originalOperationId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
170
+ operationId: import("convex/values").VString<string, "required">;
171
+ sourceChargeId: import("convex/values").VString<string, "required">;
172
+ producer: import("convex/values").VUnion<"transfer_frontier_claim" | "transfer_frontier_release", [import("convex/values").VLiteral<"transfer_frontier_release", "required">, import("convex/values").VLiteral<"transfer_frontier_claim", "required">], "required", never>;
173
+ producerVersion: import("convex/values").VLiteral<1, "required">;
174
+ fingerprint: import("convex/values").VString<string, "required">;
175
+ generation: import("convex/values").VFloat64<number, "required">;
176
+ observedFingerprint: import("convex/values").VString<string, "required">;
177
+ isContradictory: import("convex/values").VBoolean<boolean, "required">;
178
+ referenceCount: import("convex/values").VFloat64<number, "required">;
179
+ transferIds: import("convex/values").VArray<import("convex/values").GenericId<"transfers">[], import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">, "required">;
180
+ isOverflow: import("convex/values").VLiteral<true, "required">;
181
+ state: import("convex/values").VUnion<"complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "required", never>;
182
+ continuation: import("convex/values").VObject<{
183
+ nextReference: number;
184
+ producerGeneration: number;
185
+ sourceFingerprint: string;
186
+ state: "complete" | "held" | "indexing" | "validating";
187
+ validatedReferences: number;
188
+ } | undefined, {
189
+ state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
190
+ nextReference: import("convex/values").VFloat64<number, "required">;
191
+ validatedReferences: import("convex/values").VFloat64<number, "required">;
192
+ producerGeneration: import("convex/values").VFloat64<number, "required">;
193
+ sourceFingerprint: import("convex/values").VString<string, "required">;
194
+ }, "optional", "nextReference" | "producerGeneration" | "sourceFingerprint" | "state" | "validatedReferences">;
195
+ }, "required", "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds">, {
196
+ by_operation_id: ["operationId", "_creationTime"];
197
+ by_original_operation_id: ["originalOperationId", "_creationTime"];
198
+ by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
199
+ by_state: ["state", "_creationTime"];
200
+ }, {}, {}>;
201
+ financialTransferBatchReferences: import("convex/server").TableDefinition<import("convex/values").VObject<{
202
+ batchId: import("convex/values").GenericId<"financialTransferBatches">;
203
+ observationGeneration: number;
204
+ observationId: import("convex/values").GenericId<"financialTransferObservations">;
205
+ observedFingerprint: string;
206
+ ownershipFingerprint: string;
207
+ position: number;
208
+ sourceFingerprint: string;
209
+ transferId: import("convex/values").GenericId<"transfers">;
210
+ }, {
211
+ batchId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferBatches">, "required">;
212
+ position: import("convex/values").VFloat64<number, "required">;
213
+ transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
214
+ observationId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferObservations">, "required">;
215
+ observationGeneration: import("convex/values").VFloat64<number, "required">;
216
+ sourceFingerprint: import("convex/values").VString<string, "required">;
217
+ observedFingerprint: import("convex/values").VString<string, "required">;
218
+ ownershipFingerprint: import("convex/values").VString<string, "required">;
219
+ }, "required", "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId">, {
220
+ by_batch_position: ["batchId", "position", "_creationTime"];
221
+ by_batch_transfer: ["batchId", "transferId", "_creationTime"];
222
+ }, {}, {}>;
223
+ financialSourceObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
224
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
225
+ continuation?: {
226
+ nextLeg: number;
227
+ state: "complete" | "held" | "indexing" | "validating";
228
+ validatedLegs: number;
229
+ } | undefined;
230
+ fingerprint: string;
231
+ generation: number;
232
+ indexedLegCount: number;
233
+ isContradictory: boolean;
234
+ isOverflow: boolean;
235
+ legCount: number;
236
+ observedFingerprint: string;
237
+ ownershipFingerprint: string;
238
+ producer: "settlement_allocation";
239
+ producerVersion: 1;
240
+ sourceChargeId: string;
241
+ }, {
242
+ allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
243
+ sourceChargeId: import("convex/values").VString<string, "required">;
244
+ producer: import("convex/values").VLiteral<"settlement_allocation", "required">;
245
+ producerVersion: import("convex/values").VLiteral<1, "required">;
246
+ fingerprint: import("convex/values").VString<string, "required">;
247
+ observedFingerprint: import("convex/values").VString<string, "required">;
248
+ ownershipFingerprint: import("convex/values").VString<string, "required">;
249
+ generation: import("convex/values").VFloat64<number, "required">;
250
+ legCount: import("convex/values").VFloat64<number, "required">;
251
+ indexedLegCount: import("convex/values").VFloat64<number, "required">;
252
+ isOverflow: import("convex/values").VBoolean<boolean, "required">;
253
+ isContradictory: import("convex/values").VBoolean<boolean, "required">;
254
+ continuation: import("convex/values").VObject<{
255
+ nextLeg: number;
256
+ state: "complete" | "held" | "indexing" | "validating";
257
+ validatedLegs: number;
258
+ } | undefined, {
259
+ state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
260
+ nextLeg: import("convex/values").VFloat64<number, "required">;
261
+ validatedLegs: import("convex/values").VFloat64<number, "required">;
262
+ }, "optional", "nextLeg" | "state" | "validatedLegs">;
263
+ }, "required", "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId">, {
264
+ by_allocation_id: ["allocationId", "_creationTime"];
265
+ }, {}, {}>;
266
+ financialSourceLegs: import("convex/server").TableDefinition<import("convex/values").VObject<{
267
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
268
+ bucketKey: string;
269
+ legIndex: number;
270
+ orgId?: string | undefined;
271
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
272
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
273
+ role: "affiliate" | "other" | "store";
274
+ sourceChargeId: string;
275
+ userId?: string | undefined;
276
+ }, {
277
+ allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
278
+ sourceChargeId: import("convex/values").VString<string, "required">;
279
+ legIndex: import("convex/values").VFloat64<number, "required">;
280
+ bucketKey: import("convex/values").VString<string, "required">;
281
+ 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>;
282
+ registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
283
+ userId: import("convex/values").VString<string | undefined, "optional">;
284
+ orgId: import("convex/values").VString<string | undefined, "optional">;
285
+ ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
286
+ }, "required", "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId">, {
287
+ by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
288
+ by_bucket_key: ["bucketKey", "_creationTime"];
289
+ by_owner: ["userId", "orgId", "_creationTime"];
290
+ }, {}, {}>;
291
+ financialObservationGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
292
+ generation: number;
293
+ scopeKey: string;
294
+ }, {
295
+ scopeKey: import("convex/values").VString<string, "required">;
296
+ generation: import("convex/values").VFloat64<number, "required">;
297
+ }, "required", "generation" | "scopeKey">, {
298
+ by_scope_key: ["scopeKey", "_creationTime"];
299
+ }, {}, {}>;
300
+ financialOwnership: import("convex/server").TableDefinition<import("convex/values").VObject<{
301
+ bucketKey: string;
302
+ generation: number;
303
+ kind: "logical" | "stripe_account";
304
+ orgId?: string | undefined;
305
+ source: {
306
+ integration: string;
307
+ recordId: string;
308
+ };
309
+ userId: string;
310
+ }, {
311
+ userId: import("convex/values").VString<string, "required">;
312
+ orgId: import("convex/values").VString<string | undefined, "optional">;
313
+ bucketKey: import("convex/values").VString<string, "required">;
314
+ kind: import("convex/values").VUnion<"logical" | "stripe_account", [import("convex/values").VLiteral<"stripe_account", "required">, import("convex/values").VLiteral<"logical", "required">], "required", never>;
315
+ source: import("convex/values").VObject<{
316
+ integration: string;
317
+ recordId: string;
318
+ }, {
319
+ integration: import("convex/values").VString<string, "required">;
320
+ recordId: import("convex/values").VString<string, "required">;
321
+ }, "required", "integration" | "recordId">;
322
+ generation: import("convex/values").VFloat64<number, "required">;
323
+ }, "required", "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId">, {
324
+ by_bucket_key: ["bucketKey", "_creationTime"];
325
+ by_owner: ["userId", "orgId", "_creationTime"];
326
+ }, {}, {}>;
327
+ financialOwnershipGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
328
+ generation: number;
329
+ orgId?: string | undefined;
330
+ userId: string;
331
+ }, {
332
+ userId: import("convex/values").VString<string, "required">;
333
+ orgId: import("convex/values").VString<string | undefined, "optional">;
334
+ generation: import("convex/values").VFloat64<number, "required">;
335
+ }, "required", "generation" | "orgId" | "userId">, {
336
+ by_owner: ["userId", "orgId", "_creationTime"];
337
+ }, {}, {}>;
17
338
  payoutWorkerJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
339
  accountId: string;
19
340
  cadenceMs: number;
@@ -1555,11 +1876,19 @@ export declare function setup(scope?: Scope): Promise<{
1555
1876
  failureReason?: string | undefined;
1556
1877
  metadata?: any;
1557
1878
  reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
1879
+ refundCommandConflict?: boolean | undefined;
1880
+ refundCommandKey?: string | undefined;
1881
+ refundCommandNormalizationVersion?: 1 | undefined;
1882
+ refundCommandObservedAt?: number | undefined;
1558
1883
  status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
1559
1884
  stripeChargeId?: string | undefined;
1560
1885
  stripePaymentIntentId?: string | undefined;
1561
1886
  stripeRefundId: string;
1562
1887
  }, {
1888
+ refundCommandNormalizationVersion: import("convex/values").VLiteral<1 | undefined, "optional">;
1889
+ refundCommandKey: import("convex/values").VString<string | undefined, "optional">;
1890
+ refundCommandConflict: import("convex/values").VBoolean<boolean | undefined, "optional">;
1891
+ refundCommandObservedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1563
1892
  stripeRefundId: import("convex/values").VString<string, "required">;
1564
1893
  stripePaymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1565
1894
  stripeChargeId: import("convex/values").VString<string | undefined, "optional">;
@@ -1570,12 +1899,14 @@ export declare function setup(scope?: Scope): Promise<{
1570
1899
  reason: import("convex/values").VUnion<"duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined, [import("convex/values").VLiteral<"duplicate", "required">, import("convex/values").VLiteral<"fraudulent", "required">, import("convex/values").VLiteral<"requested_by_customer", "required">, import("convex/values").VLiteral<"expired_uncaptured_charge", "required">], "optional", never>;
1571
1900
  failureReason: import("convex/values").VString<string | undefined, "optional">;
1572
1901
  metadata: import("convex/values").VAny<any, "optional", string>;
1573
- }, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
1902
+ }, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
1574
1903
  by_account_id: ["accountId", "_creationTime"];
1575
1904
  by_account_id_and_status: ["accountId", "status", "_creationTime"];
1576
1905
  by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
1577
1906
  by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
1578
1907
  by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
1908
+ by_refund_command_key: ["refundCommandKey", "_creationTime"];
1909
+ by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
1579
1910
  by_status: ["status", "_creationTime"];
1580
1911
  by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
1581
1912
  by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
@@ -1 +1 @@
1
- {"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,MAAM,MAAM,KAAK,GACf;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAClE,KAAK,IAAI,GAAG,CACV,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,KAC3C,OAAO,CAAC,OAAO,CAAC,CAAC;AACtB,wBAAsB,SAAS,kBAU9B;AACD,wBAAsB,KAAK,CACzB,KAAK,GAAE,KAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC"}
@@ -0,0 +1,14 @@
1
+ import type { Infer } from "convex/values";
2
+ import type { refundCommandEvidenceValidator } from "../../component/refundHistory/commandEvidenceValidator.js";
3
+ import type { Component, RunCtx } from "../helpers.js";
4
+ export type RefundCommandEvidence = Infer<typeof refundCommandEvidenceValidator>;
5
+ export type RefundCommandEvidenceOptions = {
6
+ commandKey: string;
7
+ stripeAccountId: string;
8
+ stripePaymentIntentId: string;
9
+ stripeChargeId: string;
10
+ currency: string;
11
+ };
12
+ /** Host authorization and original command qualification are required before this observation. */
13
+ export declare function getRefundCommandEvidence(component: Component, ctx: RunCtx, input: RefundCommandEvidenceOptions): Promise<RefundCommandEvidence>;
14
+ //# sourceMappingURL=refundCommandEvidence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundCommandEvidence.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundCommandEvidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CACvC,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAWF,kGAAkG;AAClG,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,qBAAqB,CAAC,CAQhC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ import { assertRefundCommandScope } from "../../shared/refundCommandScope.js";
3
+ import { componentRef } from "../webhooks/helpers.js";
4
+ const optionsSchema = z
5
+ .object({
6
+ commandKey: z.string(),
7
+ stripeAccountId: z.string(),
8
+ stripePaymentIntentId: z.string(),
9
+ stripeChargeId: z.string(),
10
+ currency: z.string(),
11
+ })
12
+ .strict();
13
+ /** Host authorization and original command qualification are required before this observation. */
14
+ export async function getRefundCommandEvidence(component, ctx, input) {
15
+ const { stripeAccountId, ...options } = optionsSchema.parse(input);
16
+ const scope = { ...options, accountId: stripeAccountId };
17
+ assertRefundCommandScope(scope);
18
+ return ctx.runQuery(componentRef(component, "refundHistory/queries/getRefundCommandEvidence"), scope);
19
+ }
20
+ //# sourceMappingURL=refundCommandEvidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundCommandEvidence.js","sourceRoot":"","sources":["../../../src/client/connect/refundCommandEvidence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAYtD,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,kGAAkG;AAClG,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,SAAoB,EACpB,GAAW,EACX,KAAmC;IAEnC,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnE,MAAM,KAAK,GAAG,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IACzD,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAChC,OAAO,GAAG,CAAC,QAAQ,CACjB,YAAY,CAAC,SAAS,EAAE,gDAAgD,CAAC,EACzE,KAAK,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type RunCtx, type Component } from "../helpers.js";
2
+ export type RefundCommandNormalizationOptions = {
3
+ limit: number;
4
+ };
5
+ export type RefundCommandNormalizationResult = {
6
+ normalized: number;
7
+ hasMore: boolean;
8
+ };
9
+ /** Trusted-host projection maintenance; a drained component backlog is not complete provider history. */
10
+ export declare function normalizeRefundCommandBindings(component: Component, ctx: RunCtx, opts: RefundCommandNormalizationOptions): Promise<RefundCommandNormalizationResult>;
11
+ //# sourceMappingURL=refundCommandNormalization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundCommandNormalization.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundCommandNormalization.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAEhF,MAAM,MAAM,iCAAiC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAClE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAKF,yGAAyG;AACzG,wBAAsB,8BAA8B,CAClD,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,iCAAiC,GACtC,OAAO,CAAC,gCAAgC,CAAC,CAU3C"}
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ import { runMutationOrThrow } from "../helpers.js";
3
+ import { componentRef } from "../webhooks/helpers.js";
4
+ const optionsSchema = z
5
+ .object({ limit: z.number().int().min(1).max(100) })
6
+ .strict();
7
+ /** Trusted-host projection maintenance; a drained component backlog is not complete provider history. */
8
+ export async function normalizeRefundCommandBindings(component, ctx, opts) {
9
+ const args = optionsSchema.parse(opts);
10
+ return runMutationOrThrow(ctx, componentRef(component, "refundHistory/mutations/normalizeRefundCommandBindings"), args);
11
+ }
12
+ //# sourceMappingURL=refundCommandNormalization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refundCommandNormalization.js","sourceRoot":"","sources":["../../../src/client/connect/refundCommandNormalization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAA+B,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAMtD,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;KACnD,MAAM,EAAE,CAAC;AAEZ,yGAAyG;AACzG,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,SAAoB,EACpB,GAAW,EACX,IAAuC;IAEvC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,kBAAkB,CACvB,GAAG,EACH,YAAY,CACV,SAAS,EACT,wDAAwD,CACzD,EACD,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { TransferObservationsClient } from "./transferObservations.js";
2
+ import type { PaginationOptions, PaginationResult } from "convex/server";
3
+ import type { Infer } from "convex/values";
4
+ import type { legDoc, sourceDoc } from "../component/financialObservations/schema.js";
5
+ import { InvoiceReadClient } from "./invoiceReads.js";
6
+ import type { Component, RunCtx } from "./helpers.js";
7
+ export type FinancialSourceObservation = Infer<typeof sourceDoc>;
8
+ export type FinancialSourceLeg = Infer<typeof legDoc>;
9
+ export type FinancialSourceResult = {
10
+ coverage: "unknown";
11
+ observation: FinancialSourceObservation | null;
12
+ };
13
+ export type FinancialObservationPage = PaginationResult<FinancialSourceLeg> & {
14
+ coverage: "unknown";
15
+ generation: number | null;
16
+ };
17
+ export type FinancialObservationOwner = {
18
+ userId: string;
19
+ orgId?: string;
20
+ };
21
+ /** Trusted host diagnostics only; neither caller selectors nor exhausted pages authorize closure. */
22
+ export declare class FinancialObservationsClient extends TransferObservationsClient {
23
+ constructor(component: Component);
24
+ source(ctx: RunCtx, input: {
25
+ allocationId: string;
26
+ }): Promise<FinancialSourceResult>;
27
+ resume(ctx: RunCtx, input: {
28
+ allocationId: string;
29
+ expectedGeneration: number;
30
+ }): Promise<FinancialSourceResult>;
31
+ bucket(ctx: RunCtx, input: {
32
+ bucketKey: string;
33
+ paginationOpts: PaginationOptions;
34
+ }): Promise<FinancialObservationPage>;
35
+ owner(ctx: RunCtx, input: FinancialObservationOwner & {
36
+ paginationOpts: PaginationOptions;
37
+ }): Promise<FinancialObservationPage>;
38
+ }
39
+ export declare abstract class FinancialObservationsHost extends InvoiceReadClient {
40
+ readonly financialObservations: FinancialObservationsClient;
41
+ }
42
+ //# sourceMappingURL=financialObservations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financialObservations.d.ts","sourceRoot":"","sources":["../../src/client/financialObservations.ts"],"names":[],"mappings":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AO,CAAC,qBAAqB,CAAC,CAiBhC;IACK,MAAM,CACV,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,iBAAiB,CAAA;KAAE,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CAUnC;IACK,KAAK,CACT,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,yBAAyB,GAAG;QAAE,cAAc,EAAE,iBAAiB,CAAA;KAAE,GACvE,OAAO,CAAC,wBAAwB,CAAC,CAcnC;CACF;AACD,8BAAsB,yBAA0B,SAAQ,iBAAiB;IACvE,QAAQ,CAAC,qBAAqB,8BAE5B;CACH"}
@@ -0,0 +1,58 @@
1
+ import { TransferObservationsClient } from "./transferObservations.js";
2
+ import { observationPagination } from "./observationPagination.js";
3
+ import { z } from "zod";
4
+ import { assertOwner, assertSelector, } from "../component/financialOwnership/helpers.js";
5
+ import { InvoiceReadClient } from "./invoiceReads.js";
6
+ import { runMutationOrThrow } from "./helpers.js";
7
+ import { componentRef } from "./webhooks/helpers.js";
8
+ /** Trusted host diagnostics only; neither caller selectors nor exhausted pages authorize closure. */
9
+ export class FinancialObservationsClient extends TransferObservationsClient {
10
+ constructor(component) {
11
+ super(component);
12
+ }
13
+ async source(ctx, input) {
14
+ const args = z
15
+ .object({ allocationId: z.string().min(1).max(256) })
16
+ .strict()
17
+ .parse(input);
18
+ return ctx.runQuery(componentRef(this.component, "financialObservations/queries/source"), args);
19
+ }
20
+ async resume(ctx, input) {
21
+ const args = z
22
+ .object({
23
+ allocationId: z.string().min(1).max(256),
24
+ expectedGeneration: z
25
+ .number()
26
+ .int()
27
+ .min(1)
28
+ .max(Number.MAX_SAFE_INTEGER),
29
+ })
30
+ .strict()
31
+ .parse(input);
32
+ return runMutationOrThrow(ctx, componentRef(this.component, "financialObservations/mutations/resume"), args);
33
+ }
34
+ async bucket(ctx, input) {
35
+ const args = z
36
+ .object({ bucketKey: z.string(), paginationOpts: observationPagination })
37
+ .strict()
38
+ .parse(input);
39
+ assertSelector(args.bucketKey);
40
+ return ctx.runQuery(componentRef(this.component, "financialObservations/queries/bucket"), args);
41
+ }
42
+ async owner(ctx, input) {
43
+ const args = z
44
+ .object({
45
+ userId: z.string(),
46
+ orgId: z.string().optional(),
47
+ paginationOpts: observationPagination,
48
+ })
49
+ .strict()
50
+ .parse(input);
51
+ assertOwner(args);
52
+ return ctx.runQuery(componentRef(this.component, "financialObservations/queries/owner"), args);
53
+ }
54
+ }
55
+ export class FinancialObservationsHost extends InvoiceReadClient {
56
+ financialObservations = new FinancialObservationsClient(this.component);
57
+ }
58
+ //# sourceMappingURL=financialObservations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financialObservations.js","sourceRoot":"","sources":["../../src/client/financialObservations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,cAAc,GACf,MAAM,4CAA4C,CAAC;AAKpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAarD,qGAAqG;AACrG,MAAM,OAAO,2BAA4B,SAAQ,0BAA0B;IACzE,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,CAAC,CAAC;IACnB,CAAC;IACD,KAAK,CAAC,MAAM,CACV,GAAW,EACX,KAA+B;QAE/B,MAAM,IAAI,GAAG,CAAC;aACX,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;aACpD,MAAM,EAAE;aACR,K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