@fantastic.dev/better-stripe 0.92.0 → 0.93.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 (84) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +30 -0
  4. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -0
  5. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +113 -0
  6. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -0
  7. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +594 -32
  8. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +281 -0
  10. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  11. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +594 -32
  12. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  13. package/dist/client/connect/payoutSyncTestHelpers.d.ts +281 -0
  14. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  15. package/dist/client/index.d.ts +3 -2
  16. package/dist/client/index.d.ts.map +1 -1
  17. package/dist/client/index.js +16 -3
  18. package/dist/client/index.js.map +1 -1
  19. package/dist/component/_generated/api.d.ts +6 -0
  20. package/dist/component/_generated/api.d.ts.map +1 -1
  21. package/dist/component/_generated/api.js.map +1 -1
  22. package/dist/component/_generated/component.d.ts +406 -0
  23. package/dist/component/_generated/component.d.ts.map +1 -1
  24. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  25. package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
  26. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  27. package/dist/component/earnings/triggers.d.ts +294 -0
  28. package/dist/component/earnings/triggers.d.ts.map +1 -1
  29. package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
  30. package/dist/component/renewalOperations/helpers.d.ts +236 -0
  31. package/dist/component/renewalOperations/helpers.d.ts.map +1 -0
  32. package/dist/component/renewalOperations/helpers.js +457 -0
  33. package/dist/component/renewalOperations/helpers.js.map +1 -0
  34. package/dist/component/renewalOperations/mutations.d.ts +252 -0
  35. package/dist/component/renewalOperations/mutations.d.ts.map +1 -0
  36. package/dist/component/renewalOperations/mutations.js +340 -0
  37. package/dist/component/renewalOperations/mutations.js.map +1 -0
  38. package/dist/component/renewalOperations/queries.d.ts +163 -0
  39. package/dist/component/renewalOperations/queries.d.ts.map +1 -0
  40. package/dist/component/renewalOperations/queries.js +167 -0
  41. package/dist/component/renewalOperations/queries.js.map +1 -0
  42. package/dist/component/renewalOperations/schema.d.ts +1988 -0
  43. package/dist/component/renewalOperations/schema.d.ts.map +1 -0
  44. package/dist/component/renewalOperations/schema.js +227 -0
  45. package/dist/component/renewalOperations/schema.js.map +1 -0
  46. package/dist/component/schema.d.ts +281 -0
  47. package/dist/component/schema.js +5 -0
  48. package/dist/component/schema.js.map +1 -1
  49. package/dist/component/usage/allowance.fixtures.d.ts +281 -0
  50. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  51. package/dist/component/usageCredits/accounting.fixtures.d.ts +297 -16
  52. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  53. package/dist/shared/renewalOperationJournal.d.ts +43 -0
  54. package/dist/shared/renewalOperationJournal.d.ts.map +1 -0
  55. package/dist/shared/renewalOperationJournal.js +294 -0
  56. package/dist/shared/renewalOperationJournal.js.map +1 -0
  57. package/docs/renewal-context-reads.md +152 -0
  58. package/package.json +1 -1
  59. package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +380 -0
  60. package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +155 -0
  61. package/src/client/index.ts +24 -3
  62. package/src/component/_generated/api.ts +6 -0
  63. package/src/component/_generated/component.ts +450 -0
  64. package/src/component/renewalOperations/acknowledgement.fixtures.ts +552 -0
  65. package/src/component/renewalOperations/acknowledgement.test.ts +573 -0
  66. package/src/component/renewalOperations/acknowledgementReads.test.ts +442 -0
  67. package/src/component/renewalOperations/acknowledgementV2.test.ts +493 -0
  68. package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +373 -0
  69. package/src/component/renewalOperations/basisBinding.test.ts +567 -0
  70. package/src/component/renewalOperations/basisLifecycle.test.ts +569 -0
  71. package/src/component/renewalOperations/boundHistory.test.ts +474 -0
  72. package/src/component/renewalOperations/helpers.ts +592 -0
  73. package/src/component/renewalOperations/historyReads.test.ts +595 -0
  74. package/src/component/renewalOperations/initialBasis.test.ts +578 -0
  75. package/src/component/renewalOperations/journal.test.ts +567 -0
  76. package/src/component/renewalOperations/mutations.ts +456 -0
  77. package/src/component/renewalOperations/payload.test.ts +589 -0
  78. package/src/component/renewalOperations/payloadEncoding.test.ts +592 -0
  79. package/src/component/renewalOperations/queries.ts +204 -0
  80. package/src/component/renewalOperations/schema.ts +268 -0
  81. package/src/component/renewalOperations/timingPolicy.fixtures.ts +193 -0
  82. package/src/component/renewalOperations/timingPolicy.test.ts +523 -0
  83. package/src/component/schema.ts +11 -0
  84. package/src/shared/renewalOperationJournal.ts +333 -0
@@ -9,6 +9,287 @@ export declare const scope: {
9
9
  };
10
10
  export declare function setup(amounts?: number[], currency?: string): Promise<{
11
11
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
12
+ renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
14
+ authorizationId: string;
15
+ authorizationRevision: number;
16
+ authorizationScope: string;
17
+ initialBasis?: {
18
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
19
+ basisJSON: string;
20
+ policyJSON: string;
21
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
22
+ stage: "attach";
23
+ version: 1;
24
+ } | undefined;
25
+ knownAcknowledgement?: {
26
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
27
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
28
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
29
+ receiptBinding: string;
30
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
31
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
32
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
33
+ schemaVersion: 1;
34
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
35
+ stage: "attach";
36
+ } | undefined;
37
+ logicalOperationId: string;
38
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
39
+ recordVersion?: 2 | undefined;
40
+ requestBinding: string;
41
+ revision: 0 | 1;
42
+ state: "PREPARED" | "RESERVED";
43
+ }, {
44
+ recordVersion: import("convex/values").VLiteral<2 | undefined, "optional">;
45
+ initialBasis: import("convex/values").VObject<{
46
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
47
+ basisJSON: string;
48
+ policyJSON: string;
49
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
50
+ stage: "attach";
51
+ version: 1;
52
+ } | undefined, {
53
+ version: import("convex/values").VLiteral<1, "required">;
54
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
55
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
56
+ stage: import("convex/values").VLiteral<"attach", "required">;
57
+ policyJSON: import("convex/values").VString<string, "required">;
58
+ basisJSON: import("convex/values").VString<string, "required">;
59
+ }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
60
+ authorizationScope: import("convex/values").VString<string, "required">;
61
+ authorizationId: import("convex/values").VString<string, "required">;
62
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
63
+ logicalOperationId: import("convex/values").VString<string, "required">;
64
+ requestBinding: import("convex/values").VString<string, "required">;
65
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
66
+ revision: import("convex/values").VUnion<0 | 1, [import("convex/values").VLiteral<0, "required">, import("convex/values").VLiteral<1, "required">], "required", never>;
67
+ state: import("convex/values").VUnion<"PREPARED" | "RESERVED", [import("convex/values").VLiteral<"PREPARED", "required">, import("convex/values").VLiteral<"RESERVED", "required">], "required", never>;
68
+ activeAttemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts"> | undefined, "optional">;
69
+ knownAcknowledgement: import("convex/values").VObject<{
70
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
71
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
72
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
73
+ receiptBinding: string;
74
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
75
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
76
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
77
+ schemaVersion: 1;
78
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
79
+ stage: "attach";
80
+ } | undefined, {
81
+ schemaVersion: import("convex/values").VLiteral<1, "required">;
82
+ stage: import("convex/values").VLiteral<"attach", "required">;
83
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
84
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
85
+ dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
86
+ dispatchPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
87
+ responseEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
88
+ responsePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
89
+ receiptPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
90
+ receiptBinding: import("convex/values").VString<string, "required">;
91
+ }, "optional", "attemptId" | "dispatchEventId" | "dispatchPayloadId" | "receiptBinding" | "receiptPayloadId" | "responseEventId" | "responsePayloadId" | "schemaVersion" | "sourcePayloadId" | "stage">;
92
+ }, "required", "activeAttemptId" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "initialBasis" | "initialBasis.attemptId" | "initialBasis.basisJSON" | "initialBasis.policyJSON" | "initialBasis.sourcePayloadId" | "initialBasis.stage" | "initialBasis.version" | "knownAcknowledgement" | "knownAcknowledgement.attemptId" | "knownAcknowledgement.dispatchEventId" | "knownAcknowledgement.dispatchPayloadId" | "knownAcknowledgement.receiptBinding" | "knownAcknowledgement.receiptPayloadId" | "knownAcknowledgement.responseEventId" | "knownAcknowledgement.responsePayloadId" | "knownAcknowledgement.schemaVersion" | "knownAcknowledgement.sourcePayloadId" | "knownAcknowledgement.stage" | "logicalOperationId" | "payloadId" | "recordVersion" | "requestBinding" | "revision" | "state">, {
93
+ by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
94
+ }, {}, {}>;
95
+ renewalOperationAttempts: import("convex/server").TableDefinition<import("convex/values").VUnion<{
96
+ accountJSON: string;
97
+ apiVersion: string;
98
+ authorizationId: string;
99
+ authorizationRevision: number;
100
+ authorizationScope: string;
101
+ basisJSON: string;
102
+ committedRevision: 1;
103
+ firstDispatchedAt: number;
104
+ key: string;
105
+ lastSequence: 0 | 1 | 2 | 3;
106
+ logicalOperationId: string;
107
+ operationId: import("convex/values").GenericId<"renewalOperations">;
108
+ ordinal: 1;
109
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
110
+ preparedRevision: 0;
111
+ requestBinding: string;
112
+ stage: "attach" | "configure";
113
+ } | {
114
+ accountJSON: string;
115
+ apiVersion: string;
116
+ authorizationId: string;
117
+ authorizationRevision: number;
118
+ authorizationScope: string;
119
+ committedRevision: 1;
120
+ firstDispatchedAt: number;
121
+ key: string;
122
+ lastSequence: 0 | 1 | 2 | 3;
123
+ logicalOperationId: string;
124
+ operationId: import("convex/values").GenericId<"renewalOperations">;
125
+ ordinal: 1;
126
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
127
+ preparedRevision: 0;
128
+ recordVersion: 2;
129
+ requestBinding: string;
130
+ stage: "attach";
131
+ timingPolicyJSON: string;
132
+ }, [import("convex/values").VObject<{
133
+ accountJSON: string;
134
+ apiVersion: string;
135
+ authorizationId: string;
136
+ authorizationRevision: number;
137
+ authorizationScope: string;
138
+ basisJSON: string;
139
+ committedRevision: 1;
140
+ firstDispatchedAt: number;
141
+ key: string;
142
+ lastSequence: 0 | 1 | 2 | 3;
143
+ logicalOperationId: string;
144
+ operationId: import("convex/values").GenericId<"renewalOperations">;
145
+ ordinal: 1;
146
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
147
+ preparedRevision: 0;
148
+ requestBinding: string;
149
+ stage: "attach" | "configure";
150
+ }, {
151
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
152
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
153
+ authorizationScope: import("convex/values").VString<string, "required">;
154
+ authorizationId: import("convex/values").VString<string, "required">;
155
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
156
+ logicalOperationId: import("convex/values").VString<string, "required">;
157
+ requestBinding: import("convex/values").VString<string, "required">;
158
+ key: import("convex/values").VString<string, "required">;
159
+ apiVersion: import("convex/values").VString<string, "required">;
160
+ accountJSON: import("convex/values").VString<string, "required">;
161
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
162
+ ordinal: import("convex/values").VLiteral<1, "required">;
163
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
164
+ committedRevision: import("convex/values").VLiteral<1, "required">;
165
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
166
+ basisJSON: import("convex/values").VString<string, "required">;
167
+ lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
168
+ }, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "requestBinding" | "stage">, import("convex/values").VObject<{
169
+ accountJSON: string;
170
+ apiVersion: string;
171
+ authorizationId: string;
172
+ authorizationRevision: number;
173
+ authorizationScope: string;
174
+ committedRevision: 1;
175
+ firstDispatchedAt: number;
176
+ key: string;
177
+ lastSequence: 0 | 1 | 2 | 3;
178
+ logicalOperationId: string;
179
+ operationId: import("convex/values").GenericId<"renewalOperations">;
180
+ ordinal: 1;
181
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
182
+ preparedRevision: 0;
183
+ recordVersion: 2;
184
+ requestBinding: string;
185
+ stage: "attach";
186
+ timingPolicyJSON: string;
187
+ }, {
188
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
189
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
190
+ authorizationScope: import("convex/values").VString<string, "required">;
191
+ authorizationId: import("convex/values").VString<string, "required">;
192
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
193
+ logicalOperationId: import("convex/values").VString<string, "required">;
194
+ requestBinding: import("convex/values").VString<string, "required">;
195
+ key: import("convex/values").VString<string, "required">;
196
+ apiVersion: import("convex/values").VString<string, "required">;
197
+ accountJSON: import("convex/values").VString<string, "required">;
198
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
199
+ ordinal: import("convex/values").VLiteral<1, "required">;
200
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
201
+ committedRevision: import("convex/values").VLiteral<1, "required">;
202
+ recordVersion: import("convex/values").VLiteral<2, "required">;
203
+ stage: import("convex/values").VLiteral<"attach", "required">;
204
+ timingPolicyJSON: import("convex/values").VString<string, "required">;
205
+ lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
206
+ }, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">], "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">, {
207
+ by_operationId: ["operationId", "_creationTime"];
208
+ }, {}, {}>;
209
+ renewalOperationEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
210
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
211
+ binding: string;
212
+ operationId: import("convex/values").GenericId<"renewalOperations">;
213
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
214
+ sequence: 1 | 2 | 3;
215
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
216
+ stage: "attach" | "configure";
217
+ }, {
218
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
219
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
220
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
221
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
222
+ sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
223
+ binding: import("convex/values").VString<string, "required">;
224
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
225
+ }, "required", "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage">, {
226
+ by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
227
+ }, {}, {}>;
228
+ renewalOperationPayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
229
+ codecVersion: 1;
230
+ json: string;
231
+ owner?: {
232
+ kind: "operation";
233
+ operationId: import("convex/values").GenericId<"renewalOperations">;
234
+ } | {
235
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
236
+ kind: "event";
237
+ operationId: import("convex/values").GenericId<"renewalOperations">;
238
+ sequence: 1 | 2 | 3;
239
+ stage: "attach" | "configure";
240
+ } | {
241
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
242
+ kind: "receipt";
243
+ operationId: import("convex/values").GenericId<"renewalOperations">;
244
+ stage: "attach" | "configure";
245
+ } | undefined;
246
+ }, {
247
+ codecVersion: import("convex/values").VLiteral<1, "required">;
248
+ json: import("convex/values").VString<string, "required">;
249
+ owner: import("convex/values").VUnion<{
250
+ kind: "operation";
251
+ operationId: import("convex/values").GenericId<"renewalOperations">;
252
+ } | {
253
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
254
+ kind: "event";
255
+ operationId: import("convex/values").GenericId<"renewalOperations">;
256
+ sequence: 1 | 2 | 3;
257
+ stage: "attach" | "configure";
258
+ } | {
259
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
260
+ kind: "receipt";
261
+ operationId: import("convex/values").GenericId<"renewalOperations">;
262
+ stage: "attach" | "configure";
263
+ } | undefined, [import("convex/values").VObject<{
264
+ kind: "operation";
265
+ operationId: import("convex/values").GenericId<"renewalOperations">;
266
+ }, {
267
+ kind: import("convex/values").VLiteral<"operation", "required">;
268
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
269
+ }, "required", "kind" | "operationId">, import("convex/values").VObject<{
270
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
271
+ kind: "event";
272
+ operationId: import("convex/values").GenericId<"renewalOperations">;
273
+ sequence: 1 | 2 | 3;
274
+ stage: "attach" | "configure";
275
+ }, {
276
+ kind: import("convex/values").VLiteral<"event", "required">;
277
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
278
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
279
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
280
+ sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
281
+ }, "required", "attemptId" | "kind" | "operationId" | "sequence" | "stage">, import("convex/values").VObject<{
282
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
283
+ kind: "receipt";
284
+ operationId: import("convex/values").GenericId<"renewalOperations">;
285
+ stage: "attach" | "configure";
286
+ }, {
287
+ kind: import("convex/values").VLiteral<"receipt", "required">;
288
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
289
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
290
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
291
+ }, "required", "attemptId" | "kind" | "operationId" | "stage">], "optional", "attemptId" | "kind" | "operationId" | "sequence" | "stage">;
292
+ }, "required", "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage">, {}, {}, {}>;
12
293
  reversalObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
294
  deleted: boolean;
14
295
  fingerprint: string;
@@ -2360,6 +2641,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
2360
2641
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2361
2642
  requestKey: string;
2362
2643
  result?: {
2644
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2645
+ retryable: false;
2646
+ status: "conflict";
2647
+ } | {
2648
+ reason: "policy_invalid";
2649
+ retryable: false;
2650
+ status: "rejected";
2651
+ } | {
2363
2652
  operation: {
2364
2653
  accountId: string;
2365
2654
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2370,14 +2659,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
2370
2659
  } | {
2371
2660
  enabled: boolean;
2372
2661
  status: "unchanged";
2373
- } | {
2374
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2375
- retryable: false;
2376
- status: "conflict";
2377
- } | {
2378
- reason: "policy_invalid";
2379
- retryable: false;
2380
- status: "rejected";
2381
2662
  } | {
2382
2663
  reason: "provider_pending";
2383
2664
  retryable: true;
@@ -2388,6 +2669,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
2388
2669
  payload: import("convex/values").VString<string, "required">;
2389
2670
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
2390
2671
  result: import("convex/values").VUnion<{
2672
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2673
+ retryable: false;
2674
+ status: "conflict";
2675
+ } | {
2676
+ reason: "policy_invalid";
2677
+ retryable: false;
2678
+ status: "rejected";
2679
+ } | {
2391
2680
  operation: {
2392
2681
  accountId: string;
2393
2682
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2398,14 +2687,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
2398
2687
  } | {
2399
2688
  enabled: boolean;
2400
2689
  status: "unchanged";
2401
- } | {
2402
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2403
- retryable: false;
2404
- status: "conflict";
2405
- } | {
2406
- reason: "policy_invalid";
2407
- retryable: false;
2408
- status: "rejected";
2409
2690
  } | {
2410
2691
  reason: "provider_pending";
2411
2692
  retryable: true;
@@ -4864,6 +5145,287 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
4864
5145
  }>;
4865
5146
  export declare function historical(currency?: string): Promise<{
4866
5147
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
5148
+ renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
5149
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
5150
+ authorizationId: string;
5151
+ authorizationRevision: number;
5152
+ authorizationScope: string;
5153
+ initialBasis?: {
5154
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5155
+ basisJSON: string;
5156
+ policyJSON: string;
5157
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5158
+ stage: "attach";
5159
+ version: 1;
5160
+ } | undefined;
5161
+ knownAcknowledgement?: {
5162
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5163
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5164
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5165
+ receiptBinding: string;
5166
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5167
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5168
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5169
+ schemaVersion: 1;
5170
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5171
+ stage: "attach";
5172
+ } | undefined;
5173
+ logicalOperationId: string;
5174
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5175
+ recordVersion?: 2 | undefined;
5176
+ requestBinding: string;
5177
+ revision: 0 | 1;
5178
+ state: "PREPARED" | "RESERVED";
5179
+ }, {
5180
+ recordVersion: import("convex/values").VLiteral<2 | undefined, "optional">;
5181
+ initialBasis: import("convex/values").VObject<{
5182
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5183
+ basisJSON: string;
5184
+ policyJSON: string;
5185
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5186
+ stage: "attach";
5187
+ version: 1;
5188
+ } | undefined, {
5189
+ version: import("convex/values").VLiteral<1, "required">;
5190
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
5191
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5192
+ stage: import("convex/values").VLiteral<"attach", "required">;
5193
+ policyJSON: import("convex/values").VString<string, "required">;
5194
+ basisJSON: import("convex/values").VString<string, "required">;
5195
+ }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
5196
+ authorizationScope: import("convex/values").VString<string, "required">;
5197
+ authorizationId: import("convex/values").VString<string, "required">;
5198
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
5199
+ logicalOperationId: import("convex/values").VString<string, "required">;
5200
+ requestBinding: import("convex/values").VString<string, "required">;
5201
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5202
+ revision: import("convex/values").VUnion<0 | 1, [import("convex/values").VLiteral<0, "required">, import("convex/values").VLiteral<1, "required">], "required", never>;
5203
+ state: import("convex/values").VUnion<"PREPARED" | "RESERVED", [import("convex/values").VLiteral<"PREPARED", "required">, import("convex/values").VLiteral<"RESERVED", "required">], "required", never>;
5204
+ activeAttemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts"> | undefined, "optional">;
5205
+ knownAcknowledgement: import("convex/values").VObject<{
5206
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5207
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5208
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5209
+ receiptBinding: string;
5210
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5211
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5212
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5213
+ schemaVersion: 1;
5214
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5215
+ stage: "attach";
5216
+ } | undefined, {
5217
+ schemaVersion: import("convex/values").VLiteral<1, "required">;
5218
+ stage: import("convex/values").VLiteral<"attach", "required">;
5219
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
5220
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5221
+ dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
5222
+ dispatchPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5223
+ responseEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
5224
+ responsePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5225
+ receiptPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5226
+ receiptBinding: import("convex/values").VString<string, "required">;
5227
+ }, "optional", "attemptId" | "dispatchEventId" | "dispatchPayloadId" | "receiptBinding" | "receiptPayloadId" | "responseEventId" | "responsePayloadId" | "schemaVersion" | "sourcePayloadId" | "stage">;
5228
+ }, "required", "activeAttemptId" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "initialBasis" | "initialBasis.attemptId" | "initialBasis.basisJSON" | "initialBasis.policyJSON" | "initialBasis.sourcePayloadId" | "initialBasis.stage" | "initialBasis.version" | "knownAcknowledgement" | "knownAcknowledgement.attemptId" | "knownAcknowledgement.dispatchEventId" | "knownAcknowledgement.dispatchPayloadId" | "knownAcknowledgement.receiptBinding" | "knownAcknowledgement.receiptPayloadId" | "knownAcknowledgement.responseEventId" | "knownAcknowledgement.responsePayloadId" | "knownAcknowledgement.schemaVersion" | "knownAcknowledgement.sourcePayloadId" | "knownAcknowledgement.stage" | "logicalOperationId" | "payloadId" | "recordVersion" | "requestBinding" | "revision" | "state">, {
5229
+ by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
5230
+ }, {}, {}>;
5231
+ renewalOperationAttempts: import("convex/server").TableDefinition<import("convex/values").VUnion<{
5232
+ accountJSON: string;
5233
+ apiVersion: string;
5234
+ authorizationId: string;
5235
+ authorizationRevision: number;
5236
+ authorizationScope: string;
5237
+ basisJSON: string;
5238
+ committedRevision: 1;
5239
+ firstDispatchedAt: number;
5240
+ key: string;
5241
+ lastSequence: 0 | 1 | 2 | 3;
5242
+ logicalOperationId: string;
5243
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5244
+ ordinal: 1;
5245
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5246
+ preparedRevision: 0;
5247
+ requestBinding: string;
5248
+ stage: "attach" | "configure";
5249
+ } | {
5250
+ accountJSON: string;
5251
+ apiVersion: string;
5252
+ authorizationId: string;
5253
+ authorizationRevision: number;
5254
+ authorizationScope: string;
5255
+ committedRevision: 1;
5256
+ firstDispatchedAt: number;
5257
+ key: string;
5258
+ lastSequence: 0 | 1 | 2 | 3;
5259
+ logicalOperationId: string;
5260
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5261
+ ordinal: 1;
5262
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5263
+ preparedRevision: 0;
5264
+ recordVersion: 2;
5265
+ requestBinding: string;
5266
+ stage: "attach";
5267
+ timingPolicyJSON: string;
5268
+ }, [import("convex/values").VObject<{
5269
+ accountJSON: string;
5270
+ apiVersion: string;
5271
+ authorizationId: string;
5272
+ authorizationRevision: number;
5273
+ authorizationScope: string;
5274
+ basisJSON: string;
5275
+ committedRevision: 1;
5276
+ firstDispatchedAt: number;
5277
+ key: string;
5278
+ lastSequence: 0 | 1 | 2 | 3;
5279
+ logicalOperationId: string;
5280
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5281
+ ordinal: 1;
5282
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5283
+ preparedRevision: 0;
5284
+ requestBinding: string;
5285
+ stage: "attach" | "configure";
5286
+ }, {
5287
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5288
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5289
+ authorizationScope: import("convex/values").VString<string, "required">;
5290
+ authorizationId: import("convex/values").VString<string, "required">;
5291
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
5292
+ logicalOperationId: import("convex/values").VString<string, "required">;
5293
+ requestBinding: import("convex/values").VString<string, "required">;
5294
+ key: import("convex/values").VString<string, "required">;
5295
+ apiVersion: import("convex/values").VString<string, "required">;
5296
+ accountJSON: import("convex/values").VString<string, "required">;
5297
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
5298
+ ordinal: import("convex/values").VLiteral<1, "required">;
5299
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
5300
+ committedRevision: import("convex/values").VLiteral<1, "required">;
5301
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
5302
+ basisJSON: import("convex/values").VString<string, "required">;
5303
+ lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
5304
+ }, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "requestBinding" | "stage">, import("convex/values").VObject<{
5305
+ accountJSON: string;
5306
+ apiVersion: string;
5307
+ authorizationId: string;
5308
+ authorizationRevision: number;
5309
+ authorizationScope: string;
5310
+ committedRevision: 1;
5311
+ firstDispatchedAt: number;
5312
+ key: string;
5313
+ lastSequence: 0 | 1 | 2 | 3;
5314
+ logicalOperationId: string;
5315
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5316
+ ordinal: 1;
5317
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5318
+ preparedRevision: 0;
5319
+ recordVersion: 2;
5320
+ requestBinding: string;
5321
+ stage: "attach";
5322
+ timingPolicyJSON: string;
5323
+ }, {
5324
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5325
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5326
+ authorizationScope: import("convex/values").VString<string, "required">;
5327
+ authorizationId: import("convex/values").VString<string, "required">;
5328
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
5329
+ logicalOperationId: import("convex/values").VString<string, "required">;
5330
+ requestBinding: import("convex/values").VString<string, "required">;
5331
+ key: import("convex/values").VString<string, "required">;
5332
+ apiVersion: import("convex/values").VString<string, "required">;
5333
+ accountJSON: import("convex/values").VString<string, "required">;
5334
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
5335
+ ordinal: import("convex/values").VLiteral<1, "required">;
5336
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
5337
+ committedRevision: import("convex/values").VLiteral<1, "required">;
5338
+ recordVersion: import("convex/values").VLiteral<2, "required">;
5339
+ stage: import("convex/values").VLiteral<"attach", "required">;
5340
+ timingPolicyJSON: import("convex/values").VString<string, "required">;
5341
+ lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
5342
+ }, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">], "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">, {
5343
+ by_operationId: ["operationId", "_creationTime"];
5344
+ }, {}, {}>;
5345
+ renewalOperationEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
5346
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5347
+ binding: string;
5348
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5349
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5350
+ sequence: 1 | 2 | 3;
5351
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5352
+ stage: "attach" | "configure";
5353
+ }, {
5354
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5355
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
5356
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
5357
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5358
+ sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
5359
+ binding: import("convex/values").VString<string, "required">;
5360
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
5361
+ }, "required", "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage">, {
5362
+ by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
5363
+ }, {}, {}>;
5364
+ renewalOperationPayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
5365
+ codecVersion: 1;
5366
+ json: string;
5367
+ owner?: {
5368
+ kind: "operation";
5369
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5370
+ } | {
5371
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5372
+ kind: "event";
5373
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5374
+ sequence: 1 | 2 | 3;
5375
+ stage: "attach" | "configure";
5376
+ } | {
5377
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5378
+ kind: "receipt";
5379
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5380
+ stage: "attach" | "configure";
5381
+ } | undefined;
5382
+ }, {
5383
+ codecVersion: import("convex/values").VLiteral<1, "required">;
5384
+ json: import("convex/values").VString<string, "required">;
5385
+ owner: import("convex/values").VUnion<{
5386
+ kind: "operation";
5387
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5388
+ } | {
5389
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5390
+ kind: "event";
5391
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5392
+ sequence: 1 | 2 | 3;
5393
+ stage: "attach" | "configure";
5394
+ } | {
5395
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5396
+ kind: "receipt";
5397
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5398
+ stage: "attach" | "configure";
5399
+ } | undefined, [import("convex/values").VObject<{
5400
+ kind: "operation";
5401
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5402
+ }, {
5403
+ kind: import("convex/values").VLiteral<"operation", "required">;
5404
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5405
+ }, "required", "kind" | "operationId">, import("convex/values").VObject<{
5406
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5407
+ kind: "event";
5408
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5409
+ sequence: 1 | 2 | 3;
5410
+ stage: "attach" | "configure";
5411
+ }, {
5412
+ kind: import("convex/values").VLiteral<"event", "required">;
5413
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5414
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
5415
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
5416
+ sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
5417
+ }, "required", "attemptId" | "kind" | "operationId" | "sequence" | "stage">, import("convex/values").VObject<{
5418
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5419
+ kind: "receipt";
5420
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5421
+ stage: "attach" | "configure";
5422
+ }, {
5423
+ kind: import("convex/values").VLiteral<"receipt", "required">;
5424
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
5425
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
5426
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
5427
+ }, "required", "attemptId" | "kind" | "operationId" | "stage">], "optional", "attemptId" | "kind" | "operationId" | "sequence" | "stage">;
5428
+ }, "required", "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage">, {}, {}, {}>;
4867
5429
  reversalObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
4868
5430
  deleted: boolean;
4869
5431
  fingerprint: string;
@@ -7215,6 +7777,14 @@ export declare function historical(currency?: string): Promise<{
7215
7777
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
7216
7778
  requestKey: string;
7217
7779
  result?: {
7780
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
7781
+ retryable: false;
7782
+ status: "conflict";
7783
+ } | {
7784
+ reason: "policy_invalid";
7785
+ retryable: false;
7786
+ status: "rejected";
7787
+ } | {
7218
7788
  operation: {
7219
7789
  accountId: string;
7220
7790
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -7225,14 +7795,6 @@ export declare function historical(currency?: string): Promise<{
7225
7795
  } | {
7226
7796
  enabled: boolean;
7227
7797
  status: "unchanged";
7228
- } | {
7229
- reason: "identity_changed" | "revision_changed" | "scope_busy";
7230
- retryable: false;
7231
- status: "conflict";
7232
- } | {
7233
- reason: "policy_invalid";
7234
- retryable: false;
7235
- status: "rejected";
7236
7798
  } | {
7237
7799
  reason: "provider_pending";
7238
7800
  retryable: true;
@@ -7243,6 +7805,14 @@ export declare function historical(currency?: string): Promise<{
7243
7805
  payload: import("convex/values").VString<string, "required">;
7244
7806
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
7245
7807
  result: import("convex/values").VUnion<{
7808
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
7809
+ retryable: false;
7810
+ status: "conflict";
7811
+ } | {
7812
+ reason: "policy_invalid";
7813
+ retryable: false;
7814
+ status: "rejected";
7815
+ } | {
7246
7816
  operation: {
7247
7817
  accountId: string;
7248
7818
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -7253,14 +7823,6 @@ export declare function historical(currency?: string): Promise<{
7253
7823
  } | {
7254
7824
  enabled: boolean;
7255
7825
  status: "unchanged";
7256
- } | {
7257
- reason: "identity_changed" | "revision_changed" | "scope_busy";
7258
- retryable: false;
7259
- status: "conflict";
7260
- } | {
7261
- reason: "policy_invalid";
7262
- retryable: false;
7263
- status: "rejected";
7264
7826
  } | {
7265
7827
  reason: "provider_pending";
7266
7828
  retryable: true;