@fantastic.dev/better-stripe 0.39.0 → 0.41.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 (137) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +442 -0
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +221 -0
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +442 -0
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +221 -0
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/costRecovery-invoices.d.ts +2 -2
  12. package/dist/client/costRecovery-invoices.d.ts.map +1 -1
  13. package/dist/client/costRecovery-invoices.js +7 -6
  14. package/dist/client/costRecovery-invoices.js.map +1 -1
  15. package/dist/client/costRecovery.d.ts +5 -2
  16. package/dist/client/costRecovery.d.ts.map +1 -1
  17. package/dist/client/costRecovery.js +3 -1
  18. package/dist/client/costRecovery.js.map +1 -1
  19. package/dist/client/index.d.ts +3 -2
  20. package/dist/client/index.d.ts.map +1 -1
  21. package/dist/client/index.js +2 -2
  22. package/dist/client/index.js.map +1 -1
  23. package/dist/client/paymentSource/client.d.ts +21 -0
  24. package/dist/client/paymentSource/client.d.ts.map +1 -0
  25. package/dist/client/paymentSource/client.js +8 -0
  26. package/dist/client/paymentSource/client.js.map +1 -0
  27. package/dist/client/paymentSource/contracts.d.ts +30 -0
  28. package/dist/client/paymentSource/contracts.d.ts.map +1 -0
  29. package/dist/client/paymentSource/contracts.js +16 -0
  30. package/dist/client/paymentSource/contracts.js.map +1 -0
  31. package/dist/client/paymentSource/economics.d.ts +12 -0
  32. package/dist/client/paymentSource/economics.d.ts.map +1 -0
  33. package/dist/client/paymentSource/economics.js +13 -0
  34. package/dist/client/paymentSource/economics.js.map +1 -0
  35. package/dist/client/paymentSource/funding.d.ts +10 -0
  36. package/dist/client/paymentSource/funding.d.ts.map +1 -0
  37. package/dist/client/paymentSource/funding.js +12 -0
  38. package/dist/client/paymentSource/funding.js.map +1 -0
  39. package/dist/client/paymentSource/history.d.ts +13 -0
  40. package/dist/client/paymentSource/history.d.ts.map +1 -0
  41. package/dist/client/paymentSource/history.js +41 -0
  42. package/dist/client/paymentSource/history.js.map +1 -0
  43. package/dist/client/paymentSource/resolver.d.ts +6 -0
  44. package/dist/client/paymentSource/resolver.d.ts.map +1 -0
  45. package/dist/client/paymentSource/resolver.js +222 -0
  46. package/dist/client/paymentSource/resolver.js.map +1 -0
  47. package/dist/client/recoveryWorkflow/client.d.ts +14 -0
  48. package/dist/client/recoveryWorkflow/client.d.ts.map +1 -0
  49. package/dist/client/recoveryWorkflow/client.js +34 -0
  50. package/dist/client/recoveryWorkflow/client.js.map +1 -0
  51. package/dist/client/recoveryWorkflow/contracts.d.ts +63 -0
  52. package/dist/client/recoveryWorkflow/contracts.d.ts.map +1 -0
  53. package/dist/client/recoveryWorkflow/contracts.js +11 -0
  54. package/dist/client/recoveryWorkflow/contracts.js.map +1 -0
  55. package/dist/client/recoveryWorkflow/provider.d.ts +10 -0
  56. package/dist/client/recoveryWorkflow/provider.d.ts.map +1 -0
  57. package/dist/client/recoveryWorkflow/provider.js +80 -0
  58. package/dist/client/recoveryWorkflow/provider.js.map +1 -0
  59. package/dist/client/recoveryWorkflow/settlement.d.ts +6 -0
  60. package/dist/client/recoveryWorkflow/settlement.d.ts.map +1 -0
  61. package/dist/client/recoveryWorkflow/settlement.js +43 -0
  62. package/dist/client/recoveryWorkflow/settlement.js.map +1 -0
  63. package/dist/client/settlement/verifiedSale.d.ts.map +1 -1
  64. package/dist/client/settlement/verifiedSale.js +4 -6
  65. package/dist/client/settlement/verifiedSale.js.map +1 -1
  66. package/dist/component/_generated/api.d.ts +12 -0
  67. package/dist/component/_generated/api.d.ts.map +1 -1
  68. package/dist/component/_generated/api.js.map +1 -1
  69. package/dist/component/_generated/component.d.ts +164 -0
  70. package/dist/component/_generated/component.d.ts.map +1 -1
  71. package/dist/component/earnings/triggers.d.ts +194 -0
  72. package/dist/component/earnings/triggers.d.ts.map +1 -1
  73. package/dist/component/payoutRelease/queries.d.ts +2 -2
  74. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  75. package/dist/component/recoveryWorkflow/bridge.d.ts +21 -0
  76. package/dist/component/recoveryWorkflow/bridge.d.ts.map +1 -0
  77. package/dist/component/recoveryWorkflow/bridge.js +52 -0
  78. package/dist/component/recoveryWorkflow/bridge.js.map +1 -0
  79. package/dist/component/recoveryWorkflow/helpers.d.ts +83 -0
  80. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -0
  81. package/dist/component/recoveryWorkflow/helpers.js +48 -0
  82. package/dist/component/recoveryWorkflow/helpers.js.map +1 -0
  83. package/dist/component/recoveryWorkflow/mutations.d.ts +91 -0
  84. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -0
  85. package/dist/component/recoveryWorkflow/mutations.js +177 -0
  86. package/dist/component/recoveryWorkflow/mutations.js.map +1 -0
  87. package/dist/component/recoveryWorkflow/queries.d.ts +118 -0
  88. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -0
  89. package/dist/component/recoveryWorkflow/queries.js +20 -0
  90. package/dist/component/recoveryWorkflow/queries.js.map +1 -0
  91. package/dist/component/recoveryWorkflow/schema.d.ts +653 -0
  92. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -0
  93. package/dist/component/recoveryWorkflow/schema.js +81 -0
  94. package/dist/component/recoveryWorkflow/schema.js.map +1 -0
  95. package/dist/component/recoveryWorkflow/steps.d.ts +70 -0
  96. package/dist/component/recoveryWorkflow/steps.d.ts.map +1 -0
  97. package/dist/component/recoveryWorkflow/steps.js +94 -0
  98. package/dist/component/recoveryWorkflow/steps.js.map +1 -0
  99. package/dist/component/recoveryWorkflow/workflow.d.ts +22 -0
  100. package/dist/component/recoveryWorkflow/workflow.d.ts.map +1 -0
  101. package/dist/component/recoveryWorkflow/workflow.js +56 -0
  102. package/dist/component/recoveryWorkflow/workflow.js.map +1 -0
  103. package/dist/component/schema.d.ts +221 -0
  104. package/dist/component/schema.js +3 -0
  105. package/dist/component/schema.js.map +1 -1
  106. package/docs/settlement.md +48 -0
  107. package/package.json +1 -1
  108. package/src/client/costRecovery-invoices.ts +9 -7
  109. package/src/client/costRecovery.ts +8 -3
  110. package/src/client/index.ts +6 -2
  111. package/src/client/paymentSource/client.ts +13 -0
  112. package/src/client/paymentSource/contracts.ts +33 -0
  113. package/src/client/paymentSource/economics.ts +20 -0
  114. package/src/client/paymentSource/funding.ts +23 -0
  115. package/src/client/paymentSource/history.ts +48 -0
  116. package/src/client/paymentSource/resolver.test.ts +582 -0
  117. package/src/client/paymentSource/resolver.ts +350 -0
  118. package/src/client/recoveryWorkflow/client.test.ts +37 -0
  119. package/src/client/recoveryWorkflow/client.ts +76 -0
  120. package/src/client/recoveryWorkflow/contracts.ts +72 -0
  121. package/src/client/recoveryWorkflow/provider.test.ts +424 -0
  122. package/src/client/recoveryWorkflow/provider.ts +119 -0
  123. package/src/client/recoveryWorkflow/settlement.ts +67 -0
  124. package/src/client/settlement/verifiedSale.ts +4 -10
  125. package/src/component/_generated/api.ts +12 -0
  126. package/src/component/_generated/component.ts +222 -0
  127. package/src/component/recoveryWorkflow/bridge.test.ts +481 -0
  128. package/src/component/recoveryWorkflow/bridge.ts +66 -0
  129. package/src/component/recoveryWorkflow/helpers.ts +58 -0
  130. package/src/component/recoveryWorkflow/journal.test.ts +104 -0
  131. package/src/component/recoveryWorkflow/mutations.ts +224 -0
  132. package/src/component/recoveryWorkflow/queries.ts +19 -0
  133. package/src/component/recoveryWorkflow/schema.ts +92 -0
  134. package/src/component/recoveryWorkflow/state.test.ts +191 -0
  135. package/src/component/recoveryWorkflow/steps.ts +97 -0
  136. package/src/component/recoveryWorkflow/workflow.ts +73 -0
  137. package/src/component/schema.ts +6 -0
@@ -0,0 +1,653 @@
1
+ export declare const bindingFields: {
2
+ accountId: import("convex/values").VString<string, "required">;
3
+ scopeKey: import("convex/values").VString<string, "required">;
4
+ currency: import("convex/values").VString<string, "required">;
5
+ groupKey: import("convex/values").VString<string, "required">;
6
+ provider: import("convex/values").VString<string, "required">;
7
+ completion: import("convex/values").VString<string | undefined, "optional">;
8
+ providerApiVersion: import("convex/values").VString<string, "required">;
9
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
10
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
11
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
12
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
13
+ allocation: import("convex/values").VObject<{
14
+ adjustmentAmount?: number | undefined;
15
+ currency: string;
16
+ gross: number;
17
+ paymentId?: string | undefined;
18
+ paymentIntentId?: string | undefined;
19
+ platformNet: number;
20
+ processingFee: number;
21
+ sourceChargeId: string;
22
+ sourceInvoiceId?: string | undefined;
23
+ transfers: {
24
+ amount: number;
25
+ destinationAccountId: string;
26
+ role: "affiliate" | "other" | "store";
27
+ }[];
28
+ } | undefined, {
29
+ sourceChargeId: import("convex/values").VString<string, "required">;
30
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
31
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
32
+ gross: import("convex/values").VFloat64<number, "required">;
33
+ currency: import("convex/values").VString<string, "required">;
34
+ processingFee: import("convex/values").VFloat64<number, "required">;
35
+ platformNet: import("convex/values").VFloat64<number, "required">;
36
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
37
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
38
+ transfers: import("convex/values").VArray<{
39
+ amount: number;
40
+ destinationAccountId: string;
41
+ role: "affiliate" | "other" | "store";
42
+ }[], import("convex/values").VObject<{
43
+ amount: number;
44
+ destinationAccountId: string;
45
+ role: "affiliate" | "other" | "store";
46
+ }, {
47
+ destinationAccountId: import("convex/values").VString<string, "required">;
48
+ 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>;
49
+ amount: import("convex/values").VFloat64<number, "required">;
50
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
51
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
52
+ };
53
+ export declare const startFields: {
54
+ accountId: import("convex/values").VString<string, "required">;
55
+ scopeKey: import("convex/values").VString<string, "required">;
56
+ currency: import("convex/values").VString<string, "required">;
57
+ groupKey: import("convex/values").VString<string, "required">;
58
+ provider: import("convex/values").VString<string, "required">;
59
+ completion: import("convex/values").VString<string | undefined, "optional">;
60
+ providerApiVersion: import("convex/values").VString<string, "required">;
61
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
62
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
63
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
64
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
65
+ allocation: import("convex/values").VObject<{
66
+ adjustmentAmount?: number | undefined;
67
+ currency: string;
68
+ gross: number;
69
+ paymentId?: string | undefined;
70
+ paymentIntentId?: string | undefined;
71
+ platformNet: number;
72
+ processingFee: number;
73
+ sourceChargeId: string;
74
+ sourceInvoiceId?: string | undefined;
75
+ transfers: {
76
+ amount: number;
77
+ destinationAccountId: string;
78
+ role: "affiliate" | "other" | "store";
79
+ }[];
80
+ } | undefined, {
81
+ sourceChargeId: import("convex/values").VString<string, "required">;
82
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
83
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
84
+ gross: import("convex/values").VFloat64<number, "required">;
85
+ currency: import("convex/values").VString<string, "required">;
86
+ processingFee: import("convex/values").VFloat64<number, "required">;
87
+ platformNet: import("convex/values").VFloat64<number, "required">;
88
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
89
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
90
+ transfers: import("convex/values").VArray<{
91
+ amount: number;
92
+ destinationAccountId: string;
93
+ role: "affiliate" | "other" | "store";
94
+ }[], import("convex/values").VObject<{
95
+ amount: number;
96
+ destinationAccountId: string;
97
+ role: "affiliate" | "other" | "store";
98
+ }, {
99
+ destinationAccountId: import("convex/values").VString<string, "required">;
100
+ 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>;
101
+ amount: import("convex/values").VFloat64<number, "required">;
102
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
103
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
104
+ requestKey: import("convex/values").VString<string, "required">;
105
+ };
106
+ export declare const refFields: {
107
+ accountId: import("convex/values").VString<string, "required">;
108
+ scopeKey: import("convex/values").VString<string, "required">;
109
+ currency: import("convex/values").VString<string, "required">;
110
+ groupKey: import("convex/values").VString<string, "required">;
111
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
112
+ version: import("convex/values").VFloat64<number, "required">;
113
+ };
114
+ export declare const phase: import("convex/values").VUnion<"execute" | "reconcile", [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "required", never>;
115
+ export declare const operationFields: {
116
+ accountId: import("convex/values").VString<string, "required">;
117
+ scopeKey: import("convex/values").VString<string, "required">;
118
+ currency: import("convex/values").VString<string, "required">;
119
+ groupKey: import("convex/values").VString<string, "required">;
120
+ provider: import("convex/values").VString<string, "required">;
121
+ completion: import("convex/values").VString<string | undefined, "optional">;
122
+ providerApiVersion: import("convex/values").VString<string, "required">;
123
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
124
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
125
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
126
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
127
+ allocation: import("convex/values").VObject<{
128
+ adjustmentAmount?: number | undefined;
129
+ currency: string;
130
+ gross: number;
131
+ paymentId?: string | undefined;
132
+ paymentIntentId?: string | undefined;
133
+ platformNet: number;
134
+ processingFee: number;
135
+ sourceChargeId: string;
136
+ sourceInvoiceId?: string | undefined;
137
+ transfers: {
138
+ amount: number;
139
+ destinationAccountId: string;
140
+ role: "affiliate" | "other" | "store";
141
+ }[];
142
+ } | undefined, {
143
+ sourceChargeId: import("convex/values").VString<string, "required">;
144
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
145
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
146
+ gross: import("convex/values").VFloat64<number, "required">;
147
+ currency: import("convex/values").VString<string, "required">;
148
+ processingFee: import("convex/values").VFloat64<number, "required">;
149
+ platformNet: import("convex/values").VFloat64<number, "required">;
150
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
151
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
152
+ transfers: import("convex/values").VArray<{
153
+ amount: number;
154
+ destinationAccountId: string;
155
+ role: "affiliate" | "other" | "store";
156
+ }[], import("convex/values").VObject<{
157
+ amount: number;
158
+ destinationAccountId: string;
159
+ role: "affiliate" | "other" | "store";
160
+ }, {
161
+ destinationAccountId: import("convex/values").VString<string, "required">;
162
+ 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>;
163
+ amount: import("convex/values").VFloat64<number, "required">;
164
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
165
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
166
+ version: import("convex/values").VFloat64<number, "required">;
167
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
168
+ sourceId: import("convex/values").VString<string, "required">;
169
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
170
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
171
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
172
+ providerStarted: import("convex/values").VBoolean<boolean, "required">;
173
+ activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
174
+ resumeQueued: import("convex/values").VBoolean<boolean, "required">;
175
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
176
+ };
177
+ export declare const operationsTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
178
+ accountId: string;
179
+ activePhase?: "execute" | "reconcile" | undefined;
180
+ allocation?: {
181
+ adjustmentAmount?: number | undefined;
182
+ currency: string;
183
+ gross: number;
184
+ paymentId?: string | undefined;
185
+ paymentIntentId?: string | undefined;
186
+ platformNet: number;
187
+ processingFee: number;
188
+ sourceChargeId: string;
189
+ sourceInvoiceId?: string | undefined;
190
+ transfers: {
191
+ amount: number;
192
+ destinationAccountId: string;
193
+ role: "affiliate" | "other" | "store";
194
+ }[];
195
+ } | undefined;
196
+ cancelRequested: boolean;
197
+ completion?: string | undefined;
198
+ currency: string;
199
+ definitionVersion: number;
200
+ groupKey: string;
201
+ maxAttempts: number;
202
+ outcome?: "collect" | "release" | undefined;
203
+ provider: string;
204
+ providerApiVersion: string;
205
+ providerStarted: boolean;
206
+ releaseUncollectible: boolean;
207
+ resumeQueued: boolean;
208
+ retryDelayMs: number;
209
+ scopeKey: string;
210
+ sourceId: string;
211
+ sourceKind: "invoice" | "settlement";
212
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
213
+ version: number;
214
+ workflowId?: string | undefined;
215
+ }, {
216
+ accountId: import("convex/values").VString<string, "required">;
217
+ scopeKey: import("convex/values").VString<string, "required">;
218
+ currency: import("convex/values").VString<string, "required">;
219
+ groupKey: import("convex/values").VString<string, "required">;
220
+ provider: import("convex/values").VString<string, "required">;
221
+ completion: import("convex/values").VString<string | undefined, "optional">;
222
+ providerApiVersion: import("convex/values").VString<string, "required">;
223
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
224
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
225
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
226
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
227
+ allocation: import("convex/values").VObject<{
228
+ adjustmentAmount?: number | undefined;
229
+ currency: string;
230
+ gross: number;
231
+ paymentId?: string | undefined;
232
+ paymentIntentId?: string | undefined;
233
+ platformNet: number;
234
+ processingFee: number;
235
+ sourceChargeId: string;
236
+ sourceInvoiceId?: string | undefined;
237
+ transfers: {
238
+ amount: number;
239
+ destinationAccountId: string;
240
+ role: "affiliate" | "other" | "store";
241
+ }[];
242
+ } | undefined, {
243
+ sourceChargeId: import("convex/values").VString<string, "required">;
244
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
245
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
246
+ gross: import("convex/values").VFloat64<number, "required">;
247
+ currency: import("convex/values").VString<string, "required">;
248
+ processingFee: import("convex/values").VFloat64<number, "required">;
249
+ platformNet: import("convex/values").VFloat64<number, "required">;
250
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
251
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
252
+ transfers: import("convex/values").VArray<{
253
+ amount: number;
254
+ destinationAccountId: string;
255
+ role: "affiliate" | "other" | "store";
256
+ }[], import("convex/values").VObject<{
257
+ amount: number;
258
+ destinationAccountId: string;
259
+ role: "affiliate" | "other" | "store";
260
+ }, {
261
+ destinationAccountId: import("convex/values").VString<string, "required">;
262
+ 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>;
263
+ amount: import("convex/values").VFloat64<number, "required">;
264
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
265
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
266
+ version: import("convex/values").VFloat64<number, "required">;
267
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
268
+ sourceId: import("convex/values").VString<string, "required">;
269
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
270
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
271
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
272
+ providerStarted: import("convex/values").VBoolean<boolean, "required">;
273
+ activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
274
+ resumeQueued: import("convex/values").VBoolean<boolean, "required">;
275
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
276
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
277
+ by_group: ["groupKey", "_creationTime"];
278
+ by_source: ["sourceKind", "sourceId", "_creationTime"];
279
+ }, {}, {}>;
280
+ export declare const requestsTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
281
+ binding: {
282
+ accountId: string;
283
+ allocation?: {
284
+ adjustmentAmount?: number | undefined;
285
+ currency: string;
286
+ gross: number;
287
+ paymentId?: string | undefined;
288
+ paymentIntentId?: string | undefined;
289
+ platformNet: number;
290
+ processingFee: number;
291
+ sourceChargeId: string;
292
+ sourceInvoiceId?: string | undefined;
293
+ transfers: {
294
+ amount: number;
295
+ destinationAccountId: string;
296
+ role: "affiliate" | "other" | "store";
297
+ }[];
298
+ } | undefined;
299
+ completion?: string | undefined;
300
+ currency: string;
301
+ definitionVersion: number;
302
+ groupKey: string;
303
+ maxAttempts: number;
304
+ provider: string;
305
+ providerApiVersion: string;
306
+ releaseUncollectible: boolean;
307
+ retryDelayMs: number;
308
+ scopeKey: string;
309
+ };
310
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
311
+ requestKey: string;
312
+ }, {
313
+ requestKey: import("convex/values").VString<string, "required">;
314
+ binding: import("convex/values").VObject<{
315
+ accountId: string;
316
+ allocation?: {
317
+ adjustmentAmount?: number | undefined;
318
+ currency: string;
319
+ gross: number;
320
+ paymentId?: string | undefined;
321
+ paymentIntentId?: string | undefined;
322
+ platformNet: number;
323
+ processingFee: number;
324
+ sourceChargeId: string;
325
+ sourceInvoiceId?: string | undefined;
326
+ transfers: {
327
+ amount: number;
328
+ destinationAccountId: string;
329
+ role: "affiliate" | "other" | "store";
330
+ }[];
331
+ } | undefined;
332
+ completion?: string | undefined;
333
+ currency: string;
334
+ definitionVersion: number;
335
+ groupKey: string;
336
+ maxAttempts: number;
337
+ provider: string;
338
+ providerApiVersion: string;
339
+ releaseUncollectible: boolean;
340
+ retryDelayMs: number;
341
+ scopeKey: string;
342
+ }, {
343
+ accountId: import("convex/values").VString<string, "required">;
344
+ scopeKey: import("convex/values").VString<string, "required">;
345
+ currency: import("convex/values").VString<string, "required">;
346
+ groupKey: import("convex/values").VString<string, "required">;
347
+ provider: import("convex/values").VString<string, "required">;
348
+ completion: import("convex/values").VString<string | undefined, "optional">;
349
+ providerApiVersion: import("convex/values").VString<string, "required">;
350
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
351
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
352
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
353
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
354
+ allocation: import("convex/values").VObject<{
355
+ adjustmentAmount?: number | undefined;
356
+ currency: string;
357
+ gross: number;
358
+ paymentId?: string | undefined;
359
+ paymentIntentId?: string | undefined;
360
+ platformNet: number;
361
+ processingFee: number;
362
+ sourceChargeId: string;
363
+ sourceInvoiceId?: string | undefined;
364
+ transfers: {
365
+ amount: number;
366
+ destinationAccountId: string;
367
+ role: "affiliate" | "other" | "store";
368
+ }[];
369
+ } | undefined, {
370
+ sourceChargeId: import("convex/values").VString<string, "required">;
371
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
372
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
373
+ gross: import("convex/values").VFloat64<number, "required">;
374
+ currency: import("convex/values").VString<string, "required">;
375
+ processingFee: import("convex/values").VFloat64<number, "required">;
376
+ platformNet: import("convex/values").VFloat64<number, "required">;
377
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
378
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
379
+ transfers: import("convex/values").VArray<{
380
+ amount: number;
381
+ destinationAccountId: string;
382
+ role: "affiliate" | "other" | "store";
383
+ }[], import("convex/values").VObject<{
384
+ amount: number;
385
+ destinationAccountId: string;
386
+ role: "affiliate" | "other" | "store";
387
+ }, {
388
+ destinationAccountId: import("convex/values").VString<string, "required">;
389
+ 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>;
390
+ amount: import("convex/values").VFloat64<number, "required">;
391
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
392
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
393
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
394
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
395
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
396
+ by_key: ["requestKey", "_creationTime"];
397
+ }, {}, {}>;
398
+ export declare const operationDoc: import("convex/values").VObject<{
399
+ _creationTime: number;
400
+ _id: import("convex/values").GenericId<"recoveryWorkflowOperations">;
401
+ accountId: string;
402
+ activePhase?: "execute" | "reconcile" | undefined;
403
+ allocation?: {
404
+ adjustmentAmount?: number | undefined;
405
+ currency: string;
406
+ gross: number;
407
+ paymentId?: string | undefined;
408
+ paymentIntentId?: string | undefined;
409
+ platformNet: number;
410
+ processingFee: number;
411
+ sourceChargeId: string;
412
+ sourceInvoiceId?: string | undefined;
413
+ transfers: {
414
+ amount: number;
415
+ destinationAccountId: string;
416
+ role: "affiliate" | "other" | "store";
417
+ }[];
418
+ } | undefined;
419
+ cancelRequested: boolean;
420
+ completion?: string | undefined;
421
+ currency: string;
422
+ definitionVersion: number;
423
+ groupKey: string;
424
+ maxAttempts: number;
425
+ outcome?: "collect" | "release" | undefined;
426
+ provider: string;
427
+ providerApiVersion: string;
428
+ providerStarted: boolean;
429
+ releaseUncollectible: boolean;
430
+ resumeQueued: boolean;
431
+ retryDelayMs: number;
432
+ scopeKey: string;
433
+ sourceId: string;
434
+ sourceKind: "invoice" | "settlement";
435
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
436
+ version: number;
437
+ workflowId?: string | undefined;
438
+ }, {
439
+ accountId: import("convex/values").VString<string, "required">;
440
+ scopeKey: import("convex/values").VString<string, "required">;
441
+ currency: import("convex/values").VString<string, "required">;
442
+ groupKey: import("convex/values").VString<string, "required">;
443
+ provider: import("convex/values").VString<string, "required">;
444
+ completion: import("convex/values").VString<string | undefined, "optional">;
445
+ providerApiVersion: import("convex/values").VString<string, "required">;
446
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
447
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
448
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
449
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
450
+ allocation: import("convex/values").VObject<{
451
+ adjustmentAmount?: number | undefined;
452
+ currency: string;
453
+ gross: number;
454
+ paymentId?: string | undefined;
455
+ paymentIntentId?: string | undefined;
456
+ platformNet: number;
457
+ processingFee: number;
458
+ sourceChargeId: string;
459
+ sourceInvoiceId?: string | undefined;
460
+ transfers: {
461
+ amount: number;
462
+ destinationAccountId: string;
463
+ role: "affiliate" | "other" | "store";
464
+ }[];
465
+ } | undefined, {
466
+ sourceChargeId: import("convex/values").VString<string, "required">;
467
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
468
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
469
+ gross: import("convex/values").VFloat64<number, "required">;
470
+ currency: import("convex/values").VString<string, "required">;
471
+ processingFee: import("convex/values").VFloat64<number, "required">;
472
+ platformNet: import("convex/values").VFloat64<number, "required">;
473
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
474
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
475
+ transfers: import("convex/values").VArray<{
476
+ amount: number;
477
+ destinationAccountId: string;
478
+ role: "affiliate" | "other" | "store";
479
+ }[], import("convex/values").VObject<{
480
+ amount: number;
481
+ destinationAccountId: string;
482
+ role: "affiliate" | "other" | "store";
483
+ }, {
484
+ destinationAccountId: import("convex/values").VString<string, "required">;
485
+ 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>;
486
+ amount: import("convex/values").VFloat64<number, "required">;
487
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
488
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
489
+ version: import("convex/values").VFloat64<number, "required">;
490
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
491
+ sourceId: import("convex/values").VString<string, "required">;
492
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
493
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
494
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
495
+ providerStarted: import("convex/values").VBoolean<boolean, "required">;
496
+ activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
497
+ resumeQueued: import("convex/values").VBoolean<boolean, "required">;
498
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
499
+ _id: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
500
+ _creationTime: import("convex/values").VFloat64<number, "required">;
501
+ }, "required", "_creationTime" | "_id" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">;
502
+ export declare const statusFields: {
503
+ accountId: import("convex/values").VString<string, "required">;
504
+ scopeKey: import("convex/values").VString<string, "required">;
505
+ currency: import("convex/values").VString<string, "required">;
506
+ groupKey: import("convex/values").VString<string, "required">;
507
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
508
+ version: import("convex/values").VFloat64<number, "required">;
509
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
510
+ sourceId: import("convex/values").VString<string, "required">;
511
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
512
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
513
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
514
+ };
515
+ export declare const safeStatus: import("convex/values").VObject<{
516
+ accountId: string;
517
+ cancelRequested: boolean;
518
+ currency: string;
519
+ groupKey: string;
520
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
521
+ outcome?: "collect" | "release" | undefined;
522
+ scopeKey: string;
523
+ sourceId: string;
524
+ sourceKind: "invoice" | "settlement";
525
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
526
+ version: number;
527
+ }, {
528
+ accountId: import("convex/values").VString<string, "required">;
529
+ scopeKey: import("convex/values").VString<string, "required">;
530
+ currency: import("convex/values").VString<string, "required">;
531
+ groupKey: import("convex/values").VString<string, "required">;
532
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
533
+ version: import("convex/values").VFloat64<number, "required">;
534
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
535
+ sourceId: import("convex/values").VString<string, "required">;
536
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
537
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
538
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
539
+ }, "required", "accountId" | "cancelRequested" | "currency" | "groupKey" | "operationId" | "outcome" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version">;
540
+ export declare const conflict: import("convex/values").VObject<{
541
+ reason: "identity_changed";
542
+ retryable: false;
543
+ status: "conflict";
544
+ }, {
545
+ status: import("convex/values").VLiteral<"conflict", "required">;
546
+ reason: import("convex/values").VLiteral<"identity_changed", "required">;
547
+ retryable: import("convex/values").VLiteral<false, "required">;
548
+ }, "required", "reason" | "retryable" | "status">;
549
+ export declare const unavailable: import("convex/values").VObject<{
550
+ reason: "history_incomplete";
551
+ retryable: true;
552
+ status: "not_ready";
553
+ }, {
554
+ status: import("convex/values").VLiteral<"not_ready", "required">;
555
+ reason: import("convex/values").VLiteral<"history_incomplete", "required">;
556
+ retryable: import("convex/values").VLiteral<true, "required">;
557
+ }, "required", "reason" | "retryable" | "status">;
558
+ export declare const startResult: import("convex/values").VUnion<{
559
+ accountId: string;
560
+ cancelRequested: boolean;
561
+ currency: string;
562
+ groupKey: string;
563
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
564
+ outcome?: "collect" | "release" | undefined;
565
+ scopeKey: string;
566
+ sourceId: string;
567
+ sourceKind: "invoice" | "settlement";
568
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
569
+ version: number;
570
+ } | {
571
+ reason: "identity_changed";
572
+ retryable: false;
573
+ status: "conflict";
574
+ } | {
575
+ reason: "history_incomplete";
576
+ retryable: true;
577
+ status: "not_ready";
578
+ }, [import("convex/values").VObject<{
579
+ accountId: string;
580
+ cancelRequested: boolean;
581
+ currency: string;
582
+ groupKey: string;
583
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
584
+ outcome?: "collect" | "release" | undefined;
585
+ scopeKey: string;
586
+ sourceId: string;
587
+ sourceKind: "invoice" | "settlement";
588
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
589
+ version: number;
590
+ }, {
591
+ accountId: import("convex/values").VString<string, "required">;
592
+ scopeKey: import("convex/values").VString<string, "required">;
593
+ currency: import("convex/values").VString<string, "required">;
594
+ groupKey: import("convex/values").VString<string, "required">;
595
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
596
+ version: import("convex/values").VFloat64<number, "required">;
597
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
598
+ sourceId: import("convex/values").VString<string, "required">;
599
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
600
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
601
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
602
+ }, "required", "accountId" | "cancelRequested" | "currency" | "groupKey" | "operationId" | "outcome" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version">, import("convex/values").VObject<{
603
+ reason: "identity_changed";
604
+ retryable: false;
605
+ status: "conflict";
606
+ }, {
607
+ status: import("convex/values").VLiteral<"conflict", "required">;
608
+ reason: import("convex/values").VLiteral<"identity_changed", "required">;
609
+ retryable: import("convex/values").VLiteral<false, "required">;
610
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
611
+ reason: "history_incomplete";
612
+ retryable: true;
613
+ status: "not_ready";
614
+ }, {
615
+ status: import("convex/values").VLiteral<"not_ready", "required">;
616
+ reason: import("convex/values").VLiteral<"history_incomplete", "required">;
617
+ retryable: import("convex/values").VLiteral<true, "required">;
618
+ }, "required", "reason" | "retryable" | "status">], "required", "accountId" | "cancelRequested" | "currency" | "groupKey" | "operationId" | "outcome" | "reason" | "retryable" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version">;
619
+ export declare const receipt: import("convex/values").VUnion<{
620
+ outcome: "collect" | "release";
621
+ status: "ready";
622
+ } | {
623
+ reason: "provider_pending";
624
+ status: "not_ready";
625
+ } | {
626
+ reason: "provider_outcome_unknown";
627
+ status: "unknown";
628
+ } | {
629
+ status: "canceled";
630
+ }, [import("convex/values").VObject<{
631
+ outcome: "collect" | "release";
632
+ status: "ready";
633
+ }, {
634
+ status: import("convex/values").VLiteral<"ready", "required">;
635
+ outcome: import("convex/values").VUnion<"collect" | "release", [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "required", never>;
636
+ }, "required", "outcome" | "status">, import("convex/values").VObject<{
637
+ reason: "provider_pending";
638
+ status: "not_ready";
639
+ }, {
640
+ status: import("convex/values").VLiteral<"not_ready", "required">;
641
+ reason: import("convex/values").VLiteral<"provider_pending", "required">;
642
+ }, "required", "reason" | "status">, import("convex/values").VObject<{
643
+ reason: "provider_outcome_unknown";
644
+ status: "unknown";
645
+ }, {
646
+ status: import("convex/values").VLiteral<"unknown", "required">;
647
+ reason: import("convex/values").VLiteral<"provider_outcome_unknown", "required">;
648
+ }, "required", "reason" | "status">, import("convex/values").VObject<{
649
+ status: "canceled";
650
+ }, {
651
+ status: import("convex/values").VLiteral<"canceled", "required">;
652
+ }, "required", "status">], "required", "outcome" | "reason" | "status">;
653
+ //# sourceMappingURL=schema.d.ts.map