@fantastic.dev/better-stripe 0.91.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 (132) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +6 -0
  4. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/configure/actor.js +46 -56
  6. package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts +3 -0
  8. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
  10. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -1
  12. package/dist/client/billing/renewalAttach/internal/observation/actor.js +25 -4
  13. package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -1
  14. package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/observation/capture.js +3 -2
  16. package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -1
  17. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
  18. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
  20. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +5 -0
  22. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -1
  23. package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -1
  24. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +30 -0
  25. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -0
  26. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +113 -0
  27. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -0
  28. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +562 -0
  29. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  30. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +281 -0
  31. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  32. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +562 -0
  33. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  34. package/dist/client/connect/payoutSyncTestHelpers.d.ts +281 -0
  35. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  36. package/dist/client/index.d.ts +3 -2
  37. package/dist/client/index.d.ts.map +1 -1
  38. package/dist/client/index.js +16 -3
  39. package/dist/client/index.js.map +1 -1
  40. package/dist/component/_generated/api.d.ts +6 -0
  41. package/dist/component/_generated/api.d.ts.map +1 -1
  42. package/dist/component/_generated/api.js.map +1 -1
  43. package/dist/component/_generated/component.d.ts +406 -0
  44. package/dist/component/_generated/component.d.ts.map +1 -1
  45. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  46. package/dist/component/earnings/triggers.d.ts +294 -0
  47. package/dist/component/earnings/triggers.d.ts.map +1 -1
  48. package/dist/component/payoutRelease/queries.d.ts +2 -2
  49. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  50. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  51. package/dist/component/renewalOperations/helpers.d.ts +236 -0
  52. package/dist/component/renewalOperations/helpers.d.ts.map +1 -0
  53. package/dist/component/renewalOperations/helpers.js +457 -0
  54. package/dist/component/renewalOperations/helpers.js.map +1 -0
  55. package/dist/component/renewalOperations/mutations.d.ts +252 -0
  56. package/dist/component/renewalOperations/mutations.d.ts.map +1 -0
  57. package/dist/component/renewalOperations/mutations.js +340 -0
  58. package/dist/component/renewalOperations/mutations.js.map +1 -0
  59. package/dist/component/renewalOperations/queries.d.ts +163 -0
  60. package/dist/component/renewalOperations/queries.d.ts.map +1 -0
  61. package/dist/component/renewalOperations/queries.js +167 -0
  62. package/dist/component/renewalOperations/queries.js.map +1 -0
  63. package/dist/component/renewalOperations/schema.d.ts +1988 -0
  64. package/dist/component/renewalOperations/schema.d.ts.map +1 -0
  65. package/dist/component/renewalOperations/schema.js +227 -0
  66. package/dist/component/renewalOperations/schema.js.map +1 -0
  67. package/dist/component/schema.d.ts +281 -0
  68. package/dist/component/schema.js +5 -0
  69. package/dist/component/schema.js.map +1 -1
  70. package/dist/component/usage/allowance.fixtures.d.ts +281 -0
  71. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  72. package/dist/component/usageCredits/accounting.fixtures.d.ts +281 -0
  73. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  74. package/dist/shared/renewalOperationJournal.d.ts +43 -0
  75. package/dist/shared/renewalOperationJournal.d.ts.map +1 -0
  76. package/dist/shared/renewalOperationJournal.js +294 -0
  77. package/dist/shared/renewalOperationJournal.js.map +1 -0
  78. package/docs/renewal-context-reads.md +152 -0
  79. package/docs/renewal-material-observation.md +32 -11
  80. package/package.json +1 -1
  81. package/src/client/billing/renewalAttach/internal/configure/actor.ts +63 -52
  82. package/src/client/billing/renewalAttach/internal/configure/ownedContinuation.ts +56 -0
  83. package/src/client/billing/renewalAttach/internal/observation/actor.ts +46 -3
  84. package/src/client/billing/renewalAttach/internal/observation/capture.ts +3 -2
  85. package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
  86. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
  87. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
  88. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
  89. package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -0
  90. package/src/client/billing/renewalAttach/internal/observation/types.ts +5 -0
  91. package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +380 -0
  92. package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +155 -0
  93. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +5 -1
  94. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +12 -1
  95. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
  96. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +8 -0
  97. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +10 -23
  98. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
  99. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
  100. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
  101. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
  102. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
  103. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
  104. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
  105. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
  106. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
  107. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
  108. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -0
  109. package/src/client/index.ts +24 -3
  110. package/src/component/_generated/api.ts +6 -0
  111. package/src/component/_generated/component.ts +450 -0
  112. package/src/component/renewalOperations/acknowledgement.fixtures.ts +552 -0
  113. package/src/component/renewalOperations/acknowledgement.test.ts +573 -0
  114. package/src/component/renewalOperations/acknowledgementReads.test.ts +442 -0
  115. package/src/component/renewalOperations/acknowledgementV2.test.ts +493 -0
  116. package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +373 -0
  117. package/src/component/renewalOperations/basisBinding.test.ts +567 -0
  118. package/src/component/renewalOperations/basisLifecycle.test.ts +569 -0
  119. package/src/component/renewalOperations/boundHistory.test.ts +474 -0
  120. package/src/component/renewalOperations/helpers.ts +592 -0
  121. package/src/component/renewalOperations/historyReads.test.ts +595 -0
  122. package/src/component/renewalOperations/initialBasis.test.ts +578 -0
  123. package/src/component/renewalOperations/journal.test.ts +567 -0
  124. package/src/component/renewalOperations/mutations.ts +456 -0
  125. package/src/component/renewalOperations/payload.test.ts +589 -0
  126. package/src/component/renewalOperations/payloadEncoding.test.ts +592 -0
  127. package/src/component/renewalOperations/queries.ts +204 -0
  128. package/src/component/renewalOperations/schema.ts +268 -0
  129. package/src/component/renewalOperations/timingPolicy.fixtures.ts +193 -0
  130. package/src/component/renewalOperations/timingPolicy.test.ts +523 -0
  131. package/src/component/schema.ts +11 -0
  132. package/src/shared/renewalOperationJournal.ts +333 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/renewalOperations/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,gMAAuD,CAAC;AAsB1E,gFAAgF;AAChF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0JAKxB,CAAC;AAaH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;uMAAuC,CAAC;AACzE,eAAO,MAAM,yBAAyB;IACp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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ytBAIvB,CAAC;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;4HAG1B,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0uCAMzB,CAAC;AAEF,eAAO,MAAM,oBAAoB;IAC/B,WAAW;IACX,SAAS;IACT,UAAU;IACV,SAAS;CACV,CAAC;AACF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4NAI9B,CAAC"}
@@ -0,0 +1,227 @@
1
+ import { defineTable } from "convex/server";
2
+ import { v } from "convex/values";
3
+ export const stage = v.union(v.literal("attach"), v.literal("configure"));
4
+ const sequence = v.union(v.literal(1), v.literal(2), v.literal(3));
5
+ const payloadOwner = v.union(v.object({
6
+ kind: v.literal("operation"),
7
+ operationId: v.id("renewalOperations"),
8
+ }), v.object({
9
+ kind: v.literal("event"),
10
+ operationId: v.id("renewalOperations"),
11
+ attemptId: v.id("renewalOperationAttempts"),
12
+ stage,
13
+ sequence,
14
+ }), v.object({
15
+ kind: v.literal("receipt"),
16
+ operationId: v.id("renewalOperations"),
17
+ attemptId: v.id("renewalOperationAttempts"),
18
+ stage,
19
+ }));
20
+ /** Immutable creation, first reservation and bounded append-only stage DATA. */
21
+ export const payloadsTable = defineTable({
22
+ codecVersion: v.literal(1),
23
+ json: v.string(),
24
+ // The operation link is filled before the creation transaction commits.
25
+ owner: v.optional(payloadOwner),
26
+ });
27
+ const knownAcknowledgementFields = {
28
+ schemaVersion: v.literal(1),
29
+ stage: v.literal("attach"),
30
+ attemptId: v.id("renewalOperationAttempts"),
31
+ sourcePayloadId: v.id("renewalOperationPayloads"),
32
+ dispatchEventId: v.id("renewalOperationEvents"),
33
+ dispatchPayloadId: v.id("renewalOperationPayloads"),
34
+ responseEventId: v.id("renewalOperationEvents"),
35
+ responsePayloadId: v.id("renewalOperationPayloads"),
36
+ receiptPayloadId: v.id("renewalOperationPayloads"),
37
+ receiptBinding: v.string(),
38
+ };
39
+ export const knownAcknowledgement = v.object(knownAcknowledgementFields);
40
+ export const retainAcknowledgementArgs = {
41
+ operationId: v.id("renewalOperations"),
42
+ attemptId: v.id("renewalOperationAttempts"),
43
+ expectedSequence: v.union(v.literal(2), v.literal(3)),
44
+ receiptJSON: v.string(),
45
+ };
46
+ export const retentionReceipt = v.object({
47
+ status: v.literal("retained"),
48
+ operationId: v.id("renewalOperations"),
49
+ ...knownAcknowledgementFields,
50
+ });
51
+ /** One complete retained receipt, without duplicating source or history DATA. */
52
+ export const providerAcknowledgementReadResult = v.union(v.null(), v.object({ retention: retentionReceipt, receiptJSON: v.string() }));
53
+ /** Closed unsigned basis DATA; not a clock, Origin or Owner capability. */
54
+ export const initialBasisDescriptor = v.object({
55
+ version: v.literal(1),
56
+ attemptId: v.id("renewalOperationAttempts"),
57
+ sourcePayloadId: v.id("renewalOperationPayloads"),
58
+ stage: v.literal("attach"),
59
+ policyJSON: v.string(),
60
+ basisJSON: v.string(),
61
+ });
62
+ export const operationsTable = defineTable({
63
+ recordVersion: v.optional(v.literal(2)),
64
+ initialBasis: v.optional(initialBasisDescriptor),
65
+ authorizationScope: v.string(),
66
+ authorizationId: v.string(),
67
+ authorizationRevision: v.number(),
68
+ logicalOperationId: v.string(),
69
+ requestBinding: v.string(),
70
+ payloadId: v.id("renewalOperationPayloads"),
71
+ revision: v.union(v.literal(0), v.literal(1)),
72
+ state: v.union(v.literal("PREPARED"), v.literal("RESERVED")),
73
+ activeAttemptId: v.optional(v.id("renewalOperationAttempts")),
74
+ knownAcknowledgement: v.optional(knownAcknowledgement),
75
+ }).index("by_authorizationScope_and_logicalOperationId", [
76
+ "authorizationScope",
77
+ "logicalOperationId",
78
+ ]);
79
+ export const creationArgs = {
80
+ authorizationScope: v.string(),
81
+ logicalOperationId: v.string(),
82
+ authorizationRevision: v.number(),
83
+ recordJSON: v.string(),
84
+ };
85
+ export const creationResult = v.union(v.object({
86
+ status: v.literal("created"),
87
+ operationId: v.id("renewalOperations"),
88
+ }), v.object({
89
+ status: v.literal("existing"),
90
+ operationId: v.id("renewalOperations"),
91
+ }), v.object({
92
+ status: v.literal("conflict"),
93
+ reason: v.literal("identity_changed"),
94
+ }));
95
+ const attemptFields = {
96
+ operationId: v.id("renewalOperations"),
97
+ payloadId: v.id("renewalOperationPayloads"),
98
+ authorizationScope: v.string(),
99
+ authorizationId: v.string(),
100
+ authorizationRevision: v.number(),
101
+ logicalOperationId: v.string(),
102
+ requestBinding: v.string(),
103
+ key: v.string(),
104
+ apiVersion: v.string(),
105
+ accountJSON: v.string(),
106
+ firstDispatchedAt: v.number(),
107
+ ordinal: v.literal(1),
108
+ preparedRevision: v.literal(0),
109
+ committedRevision: v.literal(1),
110
+ };
111
+ const legacyAttemptFields = {
112
+ ...attemptFields,
113
+ stage,
114
+ basisJSON: v.string(),
115
+ };
116
+ const operationalAttemptFields = {
117
+ ...attemptFields,
118
+ recordVersion: v.literal(2),
119
+ stage: v.literal("attach"),
120
+ timingPolicyJSON: v.string(),
121
+ };
122
+ export const attemptsTable = defineTable(v.union(v.object({
123
+ ...legacyAttemptFields,
124
+ lastSequence: v.union(v.literal(0), sequence),
125
+ }), v.object({
126
+ ...operationalAttemptFields,
127
+ lastSequence: v.union(v.literal(0), sequence),
128
+ }))).index("by_operationId", ["operationId"]);
129
+ export const reservationData = v.union(v.object({
130
+ ...legacyAttemptFields,
131
+ attemptId: v.id("renewalOperationAttempts"),
132
+ recordJSON: v.string(),
133
+ }), v.object({
134
+ ...operationalAttemptFields,
135
+ attemptId: v.id("renewalOperationAttempts"),
136
+ recordJSON: v.string(),
137
+ }));
138
+ // Loads return the complete record once, alongside checked attempt DATA.
139
+ const legacyReservationSummary = v.object({
140
+ ...legacyAttemptFields,
141
+ attemptId: v.id("renewalOperationAttempts"),
142
+ });
143
+ const operationalReservationSummary = v.object({
144
+ ...operationalAttemptFields,
145
+ attemptId: v.id("renewalOperationAttempts"),
146
+ });
147
+ export const reservationSummary = v.union(legacyReservationSummary, operationalReservationSummary);
148
+ export const reserveArgs = {
149
+ operationId: v.id("renewalOperations"),
150
+ expectedRevision: v.number(),
151
+ stage,
152
+ expectedRequestBinding: v.string(),
153
+ recordJSON: v.string(),
154
+ };
155
+ export const reserveResult = v.union(v.object({
156
+ disposition: v.literal("acquired"),
157
+ previousRevision: v.literal(0),
158
+ committedRevision: v.literal(1),
159
+ reservation: reservationData,
160
+ }), v.object({
161
+ disposition: v.literal("existing"),
162
+ committedRevision: v.literal(1),
163
+ reservation: reservationData,
164
+ }), v.object({
165
+ disposition: v.literal("conflict"),
166
+ reason: v.literal("identity_changed"),
167
+ }));
168
+ export const loadedResult = v.union(v.null(), v.object({
169
+ recordVersion: v.literal(2),
170
+ operationId: v.id("renewalOperations"),
171
+ recordJSON: v.string(),
172
+ revision: v.literal(0),
173
+ activeAttempt: v.null(),
174
+ initialBasis: v.null(),
175
+ }), v.object({
176
+ recordVersion: v.literal(2),
177
+ operationId: v.id("renewalOperations"),
178
+ recordJSON: v.string(),
179
+ revision: v.literal(1),
180
+ activeAttempt: operationalReservationSummary,
181
+ initialBasis: v.union(v.null(), initialBasisDescriptor),
182
+ }), v.object({
183
+ operationId: v.id("renewalOperations"),
184
+ recordJSON: v.string(),
185
+ revision: v.union(v.literal(0), v.literal(1)),
186
+ activeAttempt: v.union(v.null(), legacyReservationSummary),
187
+ }));
188
+ const eventFields = {
189
+ operationId: v.id("renewalOperations"),
190
+ attemptId: v.id("renewalOperationAttempts"),
191
+ stage,
192
+ sourcePayloadId: v.id("renewalOperationPayloads"),
193
+ sequence,
194
+ binding: v.string(),
195
+ payloadId: v.id("renewalOperationPayloads"),
196
+ };
197
+ export const eventsTable = defineTable(eventFields).index("by_attemptId_and_sequence", ["attemptId", "sequence"]);
198
+ export const appendArgs = {
199
+ reservation: reservationData,
200
+ expectedSequence: v.number(),
201
+ event: v.object({ sequence, binding: v.string(), dataJSON: v.string() }),
202
+ };
203
+ export const eventReceipt = v.object({
204
+ ...eventFields,
205
+ eventId: v.id("renewalOperationEvents"),
206
+ reservation: reservationData,
207
+ });
208
+ export const eventDescriptor = v.object({
209
+ ...eventFields,
210
+ eventId: v.id("renewalOperationEvents"),
211
+ });
212
+ export const attemptResult = v.union(v.null(), v.object({
213
+ reservation: reservationData,
214
+ events: v.array(eventDescriptor),
215
+ }));
216
+ export const bindInitialBasisArgs = {
217
+ operationId: v.id("renewalOperations"),
218
+ attemptId: v.id("renewalOperationAttempts"),
219
+ policyJSON: v.string(),
220
+ basisJSON: v.string(),
221
+ };
222
+ export const basisBindingReceipt = v.object({
223
+ status: v.literal("bound"),
224
+ operationId: v.id("renewalOperations"),
225
+ initialBasis: initialBasisDescriptor,
226
+ });
227
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/renewalOperations/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,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Ae,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,GAAG,WAAW;IACd,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,wBAAwB,CAAC;CACxC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAClC,CAAC,CAAC,IAAI,EAAE,EACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CACjC,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,0BAA0B,CAAC;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC1B,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC;IACtC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC"}
@@ -1,4 +1,285 @@
1
1
  declare const _default: import("convex/server").SchemaDefinition<{
2
+ renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
4
+ authorizationId: string;
5
+ authorizationRevision: number;
6
+ authorizationScope: string;
7
+ initialBasis?: {
8
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
9
+ basisJSON: string;
10
+ policyJSON: string;
11
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
12
+ stage: "attach";
13
+ version: 1;
14
+ } | undefined;
15
+ knownAcknowledgement?: {
16
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
17
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
18
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
19
+ receiptBinding: string;
20
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
21
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
22
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
23
+ schemaVersion: 1;
24
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
25
+ stage: "attach";
26
+ } | undefined;
27
+ logicalOperationId: string;
28
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
29
+ recordVersion?: 2 | undefined;
30
+ requestBinding: string;
31
+ revision: 0 | 1;
32
+ state: "PREPARED" | "RESERVED";
33
+ }, {
34
+ recordVersion: import("convex/values").VLiteral<2 | undefined, "optional">;
35
+ initialBasis: import("convex/values").VObject<{
36
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
37
+ basisJSON: string;
38
+ policyJSON: string;
39
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
40
+ stage: "attach";
41
+ version: 1;
42
+ } | undefined, {
43
+ version: import("convex/values").VLiteral<1, "required">;
44
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
45
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
46
+ stage: import("convex/values").VLiteral<"attach", "required">;
47
+ policyJSON: import("convex/values").VString<string, "required">;
48
+ basisJSON: import("convex/values").VString<string, "required">;
49
+ }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
50
+ authorizationScope: import("convex/values").VString<string, "required">;
51
+ authorizationId: import("convex/values").VString<string, "required">;
52
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
53
+ logicalOperationId: import("convex/values").VString<string, "required">;
54
+ requestBinding: import("convex/values").VString<string, "required">;
55
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
56
+ revision: import("convex/values").VUnion<0 | 1, [import("convex/values").VLiteral<0, "required">, import("convex/values").VLiteral<1, "required">], "required", never>;
57
+ state: import("convex/values").VUnion<"PREPARED" | "RESERVED", [import("convex/values").VLiteral<"PREPARED", "required">, import("convex/values").VLiteral<"RESERVED", "required">], "required", never>;
58
+ activeAttemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts"> | undefined, "optional">;
59
+ knownAcknowledgement: import("convex/values").VObject<{
60
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
61
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
62
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
63
+ receiptBinding: string;
64
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
65
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
66
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
67
+ schemaVersion: 1;
68
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
69
+ stage: "attach";
70
+ } | undefined, {
71
+ schemaVersion: import("convex/values").VLiteral<1, "required">;
72
+ stage: import("convex/values").VLiteral<"attach", "required">;
73
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
74
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
75
+ dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
76
+ dispatchPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
77
+ responseEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
78
+ responsePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
79
+ receiptPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
80
+ receiptBinding: import("convex/values").VString<string, "required">;
81
+ }, "optional", "attemptId" | "dispatchEventId" | "dispatchPayloadId" | "receiptBinding" | "receiptPayloadId" | "responseEventId" | "responsePayloadId" | "schemaVersion" | "sourcePayloadId" | "stage">;
82
+ }, "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">, {
83
+ by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
84
+ }, {}, {}>;
85
+ renewalOperationAttempts: import("convex/server").TableDefinition<import("convex/values").VUnion<{
86
+ accountJSON: string;
87
+ apiVersion: string;
88
+ authorizationId: string;
89
+ authorizationRevision: number;
90
+ authorizationScope: string;
91
+ basisJSON: string;
92
+ committedRevision: 1;
93
+ firstDispatchedAt: number;
94
+ key: string;
95
+ lastSequence: 0 | 1 | 2 | 3;
96
+ logicalOperationId: string;
97
+ operationId: import("convex/values").GenericId<"renewalOperations">;
98
+ ordinal: 1;
99
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
100
+ preparedRevision: 0;
101
+ requestBinding: string;
102
+ stage: "attach" | "configure";
103
+ } | {
104
+ accountJSON: string;
105
+ apiVersion: string;
106
+ authorizationId: string;
107
+ authorizationRevision: number;
108
+ authorizationScope: string;
109
+ committedRevision: 1;
110
+ firstDispatchedAt: number;
111
+ key: string;
112
+ lastSequence: 0 | 1 | 2 | 3;
113
+ logicalOperationId: string;
114
+ operationId: import("convex/values").GenericId<"renewalOperations">;
115
+ ordinal: 1;
116
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
117
+ preparedRevision: 0;
118
+ recordVersion: 2;
119
+ requestBinding: string;
120
+ stage: "attach";
121
+ timingPolicyJSON: string;
122
+ }, [import("convex/values").VObject<{
123
+ accountJSON: string;
124
+ apiVersion: string;
125
+ authorizationId: string;
126
+ authorizationRevision: number;
127
+ authorizationScope: string;
128
+ basisJSON: string;
129
+ committedRevision: 1;
130
+ firstDispatchedAt: number;
131
+ key: string;
132
+ lastSequence: 0 | 1 | 2 | 3;
133
+ logicalOperationId: string;
134
+ operationId: import("convex/values").GenericId<"renewalOperations">;
135
+ ordinal: 1;
136
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
137
+ preparedRevision: 0;
138
+ requestBinding: string;
139
+ stage: "attach" | "configure";
140
+ }, {
141
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
142
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
143
+ authorizationScope: import("convex/values").VString<string, "required">;
144
+ authorizationId: import("convex/values").VString<string, "required">;
145
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
146
+ logicalOperationId: import("convex/values").VString<string, "required">;
147
+ requestBinding: import("convex/values").VString<string, "required">;
148
+ key: import("convex/values").VString<string, "required">;
149
+ apiVersion: import("convex/values").VString<string, "required">;
150
+ accountJSON: import("convex/values").VString<string, "required">;
151
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
152
+ ordinal: import("convex/values").VLiteral<1, "required">;
153
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
154
+ committedRevision: import("convex/values").VLiteral<1, "required">;
155
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
156
+ basisJSON: import("convex/values").VString<string, "required">;
157
+ 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>;
158
+ }, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "requestBinding" | "stage">, import("convex/values").VObject<{
159
+ accountJSON: string;
160
+ apiVersion: string;
161
+ authorizationId: string;
162
+ authorizationRevision: number;
163
+ authorizationScope: string;
164
+ committedRevision: 1;
165
+ firstDispatchedAt: number;
166
+ key: string;
167
+ lastSequence: 0 | 1 | 2 | 3;
168
+ logicalOperationId: string;
169
+ operationId: import("convex/values").GenericId<"renewalOperations">;
170
+ ordinal: 1;
171
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
172
+ preparedRevision: 0;
173
+ recordVersion: 2;
174
+ requestBinding: string;
175
+ stage: "attach";
176
+ timingPolicyJSON: string;
177
+ }, {
178
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
179
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
180
+ authorizationScope: import("convex/values").VString<string, "required">;
181
+ authorizationId: import("convex/values").VString<string, "required">;
182
+ authorizationRevision: import("convex/values").VFloat64<number, "required">;
183
+ logicalOperationId: import("convex/values").VString<string, "required">;
184
+ requestBinding: import("convex/values").VString<string, "required">;
185
+ key: import("convex/values").VString<string, "required">;
186
+ apiVersion: import("convex/values").VString<string, "required">;
187
+ accountJSON: import("convex/values").VString<string, "required">;
188
+ firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
189
+ ordinal: import("convex/values").VLiteral<1, "required">;
190
+ preparedRevision: import("convex/values").VLiteral<0, "required">;
191
+ committedRevision: import("convex/values").VLiteral<1, "required">;
192
+ recordVersion: import("convex/values").VLiteral<2, "required">;
193
+ stage: import("convex/values").VLiteral<"attach", "required">;
194
+ timingPolicyJSON: import("convex/values").VString<string, "required">;
195
+ 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>;
196
+ }, "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">, {
197
+ by_operationId: ["operationId", "_creationTime"];
198
+ }, {}, {}>;
199
+ renewalOperationEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
200
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
201
+ binding: string;
202
+ operationId: import("convex/values").GenericId<"renewalOperations">;
203
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
204
+ sequence: 1 | 2 | 3;
205
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
206
+ stage: "attach" | "configure";
207
+ }, {
208
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
209
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
210
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
211
+ sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
212
+ 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>;
213
+ binding: import("convex/values").VString<string, "required">;
214
+ payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
215
+ }, "required", "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage">, {
216
+ by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
217
+ }, {}, {}>;
218
+ renewalOperationPayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
219
+ codecVersion: 1;
220
+ json: string;
221
+ owner?: {
222
+ kind: "operation";
223
+ operationId: import("convex/values").GenericId<"renewalOperations">;
224
+ } | {
225
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
226
+ kind: "event";
227
+ operationId: import("convex/values").GenericId<"renewalOperations">;
228
+ sequence: 1 | 2 | 3;
229
+ stage: "attach" | "configure";
230
+ } | {
231
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
232
+ kind: "receipt";
233
+ operationId: import("convex/values").GenericId<"renewalOperations">;
234
+ stage: "attach" | "configure";
235
+ } | undefined;
236
+ }, {
237
+ codecVersion: import("convex/values").VLiteral<1, "required">;
238
+ json: import("convex/values").VString<string, "required">;
239
+ owner: import("convex/values").VUnion<{
240
+ kind: "operation";
241
+ operationId: import("convex/values").GenericId<"renewalOperations">;
242
+ } | {
243
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
244
+ kind: "event";
245
+ operationId: import("convex/values").GenericId<"renewalOperations">;
246
+ sequence: 1 | 2 | 3;
247
+ stage: "attach" | "configure";
248
+ } | {
249
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
250
+ kind: "receipt";
251
+ operationId: import("convex/values").GenericId<"renewalOperations">;
252
+ stage: "attach" | "configure";
253
+ } | undefined, [import("convex/values").VObject<{
254
+ kind: "operation";
255
+ operationId: import("convex/values").GenericId<"renewalOperations">;
256
+ }, {
257
+ kind: import("convex/values").VLiteral<"operation", "required">;
258
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
259
+ }, "required", "kind" | "operationId">, import("convex/values").VObject<{
260
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
261
+ kind: "event";
262
+ operationId: import("convex/values").GenericId<"renewalOperations">;
263
+ sequence: 1 | 2 | 3;
264
+ stage: "attach" | "configure";
265
+ }, {
266
+ kind: import("convex/values").VLiteral<"event", "required">;
267
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
268
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
269
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
270
+ 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>;
271
+ }, "required", "attemptId" | "kind" | "operationId" | "sequence" | "stage">, import("convex/values").VObject<{
272
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
273
+ kind: "receipt";
274
+ operationId: import("convex/values").GenericId<"renewalOperations">;
275
+ stage: "attach" | "configure";
276
+ }, {
277
+ kind: import("convex/values").VLiteral<"receipt", "required">;
278
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
279
+ attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
280
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
281
+ }, "required", "attemptId" | "kind" | "operationId" | "stage">], "optional", "attemptId" | "kind" | "operationId" | "sequence" | "stage">;
282
+ }, "required", "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage">, {}, {}, {}>;
2
283
  reversalObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
284
  deleted: boolean;
4
285
  fingerprint: string;
@@ -35,7 +35,12 @@ import { disputesTable, paymentsTable, payoutsTable, pendingFeeRefundsTable, ref
35
35
  import { accountsTable } from "./core/schema";
36
36
  import { pricesTable, productsTable } from "./products/schema";
37
37
  import { webhookEventsTable } from "./webhooks/schema";
38
+ import { eventsTable as renewalOperationEvents, attemptsTable as renewalOperationAttempts, operationsTable as renewalOperations, payloadsTable as renewalOperationPayloads, } from "./renewalOperations/schema.js";
38
39
  export default defineSchema({
40
+ renewalOperations,
41
+ renewalOperationAttempts,
42
+ renewalOperationEvents,
43
+ renewalOperationPayloads,
39
44
  reversalObservations,
40
45
  reversalObservationPayloads,
41
46
  reversalObservationRefs,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,oBAAoB,EACzC,aAAa,IAAI,2BAA2B,EAC5C,SAAS,IAAI,uBAAuB,EACpC,WAAW,IAAI,yBAAyB,GACzC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,SAAS,IAAI,6BAA6B,EAC1C,YAAY,IAAI,mCAAmC,GACpD,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EACL,WAAW,IAAI,qBAAqB,EACpC,eAAe,IAAI,gBAAgB,EACnC,YAAY,IAAI,sBAAsB,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,GACtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,I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