@fantastic.dev/better-stripe 0.101.0 → 0.102.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 (48) 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 +2 -0
  4. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +16 -0
  6. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.d.ts +7 -0
  8. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.js +117 -0
  10. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.d.ts +53 -0
  12. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.d.ts.map +1 -0
  13. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.js +198 -0
  14. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.js.map +1 -0
  15. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts +959 -0
  16. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts.map +1 -0
  17. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.js +115 -0
  18. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.js.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +2 -0
  20. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
  21. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +4 -0
  22. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
  23. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts +1 -0
  24. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts.map +1 -1
  25. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js +1 -0
  26. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js.map +1 -1
  27. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
  28. package/dist/client/connect/payoutSyncTestHelpers.d.ts +16 -16
  29. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  30. package/dist/component/balanceFunding/queries.d.ts +1 -1
  31. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  32. package/dist/component/earnings/triggers.d.ts +16 -16
  33. package/dist/component/payoutRelease/queries.d.ts +2 -2
  34. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  35. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  36. package/dist/component/usage/allowance.fixtures.d.ts +16 -16
  37. package/docs/renewal-context-reads.md +45 -3
  38. package/package.json +1 -1
  39. package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +21 -0
  40. package/src/client/billing/renewalAttach/internal/producer/configureAdmission.ts +179 -0
  41. package/src/client/billing/renewalAttach/internal/producer/configureJournalData.ts +248 -0
  42. package/src/client/billing/renewalAttach/internal/producer/configureLineage.ts +166 -0
  43. package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +13 -0
  44. package/src/client/billing/renewalAttach/internal/producer/lineageAuthority.ts +2 -0
  45. package/src/client/billing/renewalAttach/internal/producer/producerConfigureAdmission.integration.test.ts +203 -0
  46. package/src/client/billing/renewalAttach/internal/producer/producerConfigureControls.integration.test.ts +566 -0
  47. package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +316 -0
  48. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +61 -3
@@ -0,0 +1,959 @@
1
+ import { consumeInitialClassReservation } from "../operationJournal.js";
2
+ import { readInitialLineage } from "./lineageAuthority.js";
3
+ import { readAttachAcknowledgementForLineage } from "./attachAcknowledgement.js";
4
+ import { ownerForInitialLineage } from "./ownerFactory.js";
5
+ import { captureConfigureSource } from "../c10/eventCapture.js";
6
+ import { captureOperationalReservation } from "./configureJournalData.js";
7
+ type Parent = ReturnType<typeof readInitialLineage>;
8
+ export type ConfigureAdmission = Readonly<{
9
+ owner: ReturnType<typeof ownerForInitialLineage>;
10
+ basisJSON: string;
11
+ operationalAuthority: false;
12
+ }>;
13
+ type State = {
14
+ phase: "pending" | "ready" | "failed";
15
+ parentToken: object;
16
+ parent: Parent;
17
+ owner: ConfigureAdmission["owner"];
18
+ acknowledgement: ReturnType<typeof readAttachAcknowledgementForLineage>;
19
+ consumed: ReturnType<typeof consumeInitialClassReservation>;
20
+ reservation: ReturnType<typeof captureOperationalReservation>;
21
+ parentReservation: ReturnType<typeof captureOperationalReservation>;
22
+ configuration: ReturnType<typeof captureConfigureSource>;
23
+ source: Record<string, unknown>;
24
+ original: Record<string, unknown>;
25
+ receiptJSON: string;
26
+ receiptBinding: string;
27
+ };
28
+ /** Original fresh CAS custody is spent before admission reflection or awaits. */
29
+ export declare function consumeConfigureLineage(parentToken: object, call: unknown, journal: unknown, arity: number): ConfigureAdmission;
30
+ /** Identity checks do not select a client, create an Owner or capture an origin. */
31
+ export declare function checkConfigureLineage(token: object): State;
32
+ export declare function finishConfigureLineage(token: ConfigureAdmission): ConfigureAdmission;
33
+ export declare function closeConfigureLineage(token: object): void;
34
+ /** Trusted private consumers can only read a fully admitted original token. */
35
+ export declare function readConfigureLineage(token: object): Readonly<{
36
+ parentToken: object;
37
+ owner: Readonly<{
38
+ basis: Readonly<import("../originalOwner.js").OriginalBasis>;
39
+ check(): Readonly<import("../originalOwner.js").OriginalSample>;
40
+ sample(): Readonly<import("../originalOwner.js").OriginalSample>;
41
+ subscribe(fn: () => void): () => void;
42
+ retire(): void;
43
+ }>;
44
+ parent: Readonly<{
45
+ originAssociation: object;
46
+ binding: object;
47
+ journal: ReturnType<typeof consumeInitialClassReservation>["journal"];
48
+ reservation: ReturnType<typeof consumeInitialClassReservation>["reservation"];
49
+ selection: ReturnType<typeof import("./classOwnedActionRoot.js").captureInitialJournalSelection>;
50
+ client: import("stripe").Stripe;
51
+ method: import("stripe").Stripe["rawRequest"];
52
+ basis: Readonly<{
53
+ startWallMs: number;
54
+ startNs: bigint;
55
+ workEndWallMs: number;
56
+ workEndNs: bigint;
57
+ endWallMs: number;
58
+ endNs: bigint;
59
+ }>;
60
+ basisJSON: string;
61
+ initialHighNs: bigint;
62
+ policy: Readonly<{
63
+ firstDispatchedAt: number;
64
+ periodStart: number;
65
+ periodEnd: number;
66
+ }>;
67
+ wall: () => number;
68
+ monotonic: () => bigint;
69
+ }>;
70
+ reservation: Readonly<{
71
+ key: string;
72
+ apiVersion: string;
73
+ firstDispatchedAt: number;
74
+ accountJSON: string;
75
+ recordVersion: 2;
76
+ timingPolicyJSON: string;
77
+ operationId: string;
78
+ attemptId: string;
79
+ payloadId: string;
80
+ authorizationScope: string;
81
+ authorizationId: string;
82
+ authorizationRevision: number;
83
+ logicalOperationId: string;
84
+ requestBinding: string;
85
+ ordinal: 1;
86
+ preparedRevision: 0;
87
+ committedRevision: 1;
88
+ recordJSON: string;
89
+ stage: "attach" | "configure";
90
+ }>;
91
+ originalReservation: Readonly<{
92
+ accountJSON: string;
93
+ apiVersion: string;
94
+ attemptId: string;
95
+ authorizationId: string;
96
+ authorizationRevision: number;
97
+ authorizationScope: string;
98
+ basisJSON: string;
99
+ committedRevision: 1;
100
+ firstDispatchedAt: number;
101
+ key: string;
102
+ logicalOperationId: string;
103
+ operationId: string;
104
+ ordinal: 1;
105
+ payloadId: string;
106
+ preparedRevision: 0;
107
+ recordJSON: string;
108
+ requestBinding: string;
109
+ stage: "attach" | "configure";
110
+ } | {
111
+ accountJSON: string;
112
+ apiVersion: string;
113
+ attemptId: string;
114
+ authorizationId: string;
115
+ authorizationRevision: number;
116
+ authorizationScope: string;
117
+ committedRevision: 1;
118
+ firstDispatchedAt: number;
119
+ key: string;
120
+ logicalOperationId: string;
121
+ operationId: string;
122
+ ordinal: 1;
123
+ payloadId: string;
124
+ preparedRevision: 0;
125
+ recordJSON: string;
126
+ recordVersion: 2;
127
+ requestBinding: string;
128
+ stage: "attach";
129
+ timingPolicyJSON: string;
130
+ }>;
131
+ journal: Readonly<{
132
+ createC10Send(actualReservation: {
133
+ accountJSON: string;
134
+ apiVersion: string;
135
+ attemptId: string;
136
+ authorizationId: string;
137
+ authorizationRevision: number;
138
+ authorizationScope: string;
139
+ basisJSON: string;
140
+ committedRevision: 1;
141
+ firstDispatchedAt: number;
142
+ key: string;
143
+ logicalOperationId: string;
144
+ operationId: string;
145
+ ordinal: 1;
146
+ payloadId: string;
147
+ preparedRevision: 0;
148
+ recordJSON: string;
149
+ requestBinding: string;
150
+ stage: "attach" | "configure";
151
+ } | {
152
+ accountJSON: string;
153
+ apiVersion: string;
154
+ attemptId: string;
155
+ authorizationId: string;
156
+ authorizationRevision: number;
157
+ authorizationScope: string;
158
+ committedRevision: 1;
159
+ firstDispatchedAt: number;
160
+ key: string;
161
+ logicalOperationId: string;
162
+ operationId: string;
163
+ ordinal: 1;
164
+ payloadId: string;
165
+ preparedRevision: 0;
166
+ recordJSON: string;
167
+ recordVersion: 2;
168
+ requestBinding: string;
169
+ stage: "attach";
170
+ timingPolicyJSON: string;
171
+ }): (record: Readonly<import("../c10/ownData.js").EventRecord>, ack: (value: unknown) => void) => Promise<void>;
172
+ loadAuthorizedOperation(): Promise<{
173
+ activeAttempt: null;
174
+ initialBasis: null;
175
+ operationId: string;
176
+ recordJSON: string;
177
+ recordVersion: 2;
178
+ revision: 0;
179
+ } | {
180
+ activeAttempt: {
181
+ accountJSON: string;
182
+ apiVersion: string;
183
+ attemptId: string;
184
+ authorizationId: string;
185
+ authorizationRevision: number;
186
+ authorizationScope: string;
187
+ committedRevision: 1;
188
+ firstDispatchedAt: number;
189
+ key: string;
190
+ logicalOperationId: string;
191
+ operationId: string;
192
+ ordinal: 1;
193
+ payloadId: string;
194
+ preparedRevision: 0;
195
+ recordVersion: 2;
196
+ requestBinding: string;
197
+ stage: "attach";
198
+ timingPolicyJSON: string;
199
+ };
200
+ initialBasis: null | {
201
+ attemptId: string;
202
+ basisJSON: string;
203
+ policyJSON: string;
204
+ sourcePayloadId: string;
205
+ stage: "attach";
206
+ version: 1;
207
+ };
208
+ operationId: string;
209
+ recordJSON: string;
210
+ recordVersion: 2;
211
+ revision: 1;
212
+ } | {
213
+ activeAttempt: null | {
214
+ accountJSON: string;
215
+ apiVersion: string;
216
+ attemptId: string;
217
+ authorizationId: string;
218
+ authorizationRevision: number;
219
+ authorizationScope: string;
220
+ basisJSON: string;
221
+ committedRevision: 1;
222
+ firstDispatchedAt: number;
223
+ key: string;
224
+ logicalOperationId: string;
225
+ operationId: string;
226
+ ordinal: 1;
227
+ payloadId: string;
228
+ preparedRevision: 0;
229
+ requestBinding: string;
230
+ stage: "attach" | "configure";
231
+ };
232
+ operationId: string;
233
+ recordJSON: string;
234
+ revision: 0 | 1;
235
+ } | null>;
236
+ reserveAttempt(args: Omit<import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"mutation", "internal", {
237
+ expectedRequestBinding: string;
238
+ expectedRevision: number;
239
+ operationId: string;
240
+ recordJSON: string;
241
+ stage: "attach" | "configure";
242
+ }, {
243
+ committedRevision: 1;
244
+ disposition: "acquired";
245
+ previousRevision: 0;
246
+ reservation: {
247
+ accountJSON: string;
248
+ apiVersion: string;
249
+ attemptId: string;
250
+ authorizationId: string;
251
+ authorizationRevision: number;
252
+ authorizationScope: string;
253
+ basisJSON: string;
254
+ committedRevision: 1;
255
+ firstDispatchedAt: number;
256
+ key: string;
257
+ logicalOperationId: string;
258
+ operationId: string;
259
+ ordinal: 1;
260
+ payloadId: string;
261
+ preparedRevision: 0;
262
+ recordJSON: string;
263
+ requestBinding: string;
264
+ stage: "attach" | "configure";
265
+ } | {
266
+ accountJSON: string;
267
+ apiVersion: string;
268
+ attemptId: string;
269
+ authorizationId: string;
270
+ authorizationRevision: number;
271
+ authorizationScope: string;
272
+ committedRevision: 1;
273
+ firstDispatchedAt: number;
274
+ key: string;
275
+ logicalOperationId: string;
276
+ operationId: string;
277
+ ordinal: 1;
278
+ payloadId: string;
279
+ preparedRevision: 0;
280
+ recordJSON: string;
281
+ recordVersion: 2;
282
+ requestBinding: string;
283
+ stage: "attach";
284
+ timingPolicyJSON: string;
285
+ };
286
+ } | {
287
+ committedRevision: 1;
288
+ disposition: "existing";
289
+ reservation: {
290
+ accountJSON: string;
291
+ apiVersion: string;
292
+ attemptId: string;
293
+ authorizationId: string;
294
+ authorizationRevision: number;
295
+ authorizationScope: string;
296
+ basisJSON: string;
297
+ committedRevision: 1;
298
+ firstDispatchedAt: number;
299
+ key: string;
300
+ logicalOperationId: string;
301
+ operationId: string;
302
+ ordinal: 1;
303
+ payloadId: string;
304
+ preparedRevision: 0;
305
+ recordJSON: string;
306
+ requestBinding: string;
307
+ stage: "attach" | "configure";
308
+ } | {
309
+ accountJSON: string;
310
+ apiVersion: string;
311
+ attemptId: string;
312
+ authorizationId: string;
313
+ authorizationRevision: number;
314
+ authorizationScope: string;
315
+ committedRevision: 1;
316
+ firstDispatchedAt: number;
317
+ key: string;
318
+ logicalOperationId: string;
319
+ operationId: string;
320
+ ordinal: 1;
321
+ payloadId: string;
322
+ preparedRevision: 0;
323
+ recordJSON: string;
324
+ recordVersion: 2;
325
+ requestBinding: string;
326
+ stage: "attach";
327
+ timingPolicyJSON: string;
328
+ };
329
+ } | {
330
+ disposition: "conflict";
331
+ reason: "identity_changed";
332
+ }, string | undefined>>, "operationId">): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"mutation", "internal", {
333
+ expectedRequestBinding: string;
334
+ expectedRevision: number;
335
+ operationId: string;
336
+ recordJSON: string;
337
+ stage: "attach" | "configure";
338
+ }, {
339
+ committedRevision: 1;
340
+ disposition: "acquired";
341
+ previousRevision: 0;
342
+ reservation: {
343
+ accountJSON: string;
344
+ apiVersion: string;
345
+ attemptId: string;
346
+ authorizationId: string;
347
+ authorizationRevision: number;
348
+ authorizationScope: string;
349
+ basisJSON: string;
350
+ committedRevision: 1;
351
+ firstDispatchedAt: number;
352
+ key: string;
353
+ logicalOperationId: string;
354
+ operationId: string;
355
+ ordinal: 1;
356
+ payloadId: string;
357
+ preparedRevision: 0;
358
+ recordJSON: string;
359
+ requestBinding: string;
360
+ stage: "attach" | "configure";
361
+ } | {
362
+ accountJSON: string;
363
+ apiVersion: string;
364
+ attemptId: string;
365
+ authorizationId: string;
366
+ authorizationRevision: number;
367
+ authorizationScope: string;
368
+ committedRevision: 1;
369
+ firstDispatchedAt: number;
370
+ key: string;
371
+ logicalOperationId: string;
372
+ operationId: string;
373
+ ordinal: 1;
374
+ payloadId: string;
375
+ preparedRevision: 0;
376
+ recordJSON: string;
377
+ recordVersion: 2;
378
+ requestBinding: string;
379
+ stage: "attach";
380
+ timingPolicyJSON: string;
381
+ };
382
+ } | {
383
+ committedRevision: 1;
384
+ disposition: "existing";
385
+ reservation: {
386
+ accountJSON: string;
387
+ apiVersion: string;
388
+ attemptId: string;
389
+ authorizationId: string;
390
+ authorizationRevision: number;
391
+ authorizationScope: string;
392
+ basisJSON: string;
393
+ committedRevision: 1;
394
+ firstDispatchedAt: number;
395
+ key: string;
396
+ logicalOperationId: string;
397
+ operationId: string;
398
+ ordinal: 1;
399
+ payloadId: string;
400
+ preparedRevision: 0;
401
+ recordJSON: string;
402
+ requestBinding: string;
403
+ stage: "attach" | "configure";
404
+ } | {
405
+ accountJSON: string;
406
+ apiVersion: string;
407
+ attemptId: string;
408
+ authorizationId: string;
409
+ authorizationRevision: number;
410
+ authorizationScope: string;
411
+ committedRevision: 1;
412
+ firstDispatchedAt: number;
413
+ key: string;
414
+ logicalOperationId: string;
415
+ operationId: string;
416
+ ordinal: 1;
417
+ payloadId: string;
418
+ preparedRevision: 0;
419
+ recordJSON: string;
420
+ recordVersion: 2;
421
+ requestBinding: string;
422
+ stage: "attach";
423
+ timingPolicyJSON: string;
424
+ };
425
+ } | {
426
+ disposition: "conflict";
427
+ reason: "identity_changed";
428
+ }, string | undefined>>>;
429
+ bindInitialBasis(args: Omit<import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"mutation", "internal", {
430
+ attemptId: string;
431
+ basisJSON: string;
432
+ operationId: string;
433
+ policyJSON: string;
434
+ }, {
435
+ initialBasis: {
436
+ attemptId: string;
437
+ basisJSON: string;
438
+ policyJSON: string;
439
+ sourcePayloadId: string;
440
+ stage: "attach";
441
+ version: 1;
442
+ };
443
+ operationId: string;
444
+ status: "bound";
445
+ }, string | undefined>>, "operationId">): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"mutation", "internal", {
446
+ attemptId: string;
447
+ basisJSON: string;
448
+ operationId: string;
449
+ policyJSON: string;
450
+ }, {
451
+ initialBasis: {
452
+ attemptId: string;
453
+ basisJSON: string;
454
+ policyJSON: string;
455
+ sourcePayloadId: string;
456
+ stage: "attach";
457
+ version: 1;
458
+ };
459
+ operationId: string;
460
+ status: "bound";
461
+ }, string | undefined>>>;
462
+ appendStageEvent(args: import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"mutation", "internal", {
463
+ event: {
464
+ binding: string;
465
+ dataJSON: string;
466
+ sequence: 1 | 2 | 3;
467
+ };
468
+ expectedSequence: number;
469
+ reservation: {
470
+ accountJSON: string;
471
+ apiVersion: string;
472
+ attemptId: string;
473
+ authorizationId: string;
474
+ authorizationRevision: number;
475
+ authorizationScope: string;
476
+ basisJSON: string;
477
+ committedRevision: 1;
478
+ firstDispatchedAt: number;
479
+ key: string;
480
+ logicalOperationId: string;
481
+ operationId: string;
482
+ ordinal: 1;
483
+ payloadId: string;
484
+ preparedRevision: 0;
485
+ recordJSON: string;
486
+ requestBinding: string;
487
+ stage: "attach" | "configure";
488
+ } | {
489
+ accountJSON: string;
490
+ apiVersion: string;
491
+ attemptId: string;
492
+ authorizationId: string;
493
+ authorizationRevision: number;
494
+ authorizationScope: string;
495
+ committedRevision: 1;
496
+ firstDispatchedAt: number;
497
+ key: string;
498
+ logicalOperationId: string;
499
+ operationId: string;
500
+ ordinal: 1;
501
+ payloadId: string;
502
+ preparedRevision: 0;
503
+ recordJSON: string;
504
+ recordVersion: 2;
505
+ requestBinding: string;
506
+ stage: "attach";
507
+ timingPolicyJSON: string;
508
+ };
509
+ }, {
510
+ attemptId: string;
511
+ binding: string;
512
+ eventId: string;
513
+ operationId: string;
514
+ payloadId: string;
515
+ reservation: {
516
+ accountJSON: string;
517
+ apiVersion: string;
518
+ attemptId: string;
519
+ authorizationId: string;
520
+ authorizationRevision: number;
521
+ authorizationScope: string;
522
+ basisJSON: string;
523
+ committedRevision: 1;
524
+ firstDispatchedAt: number;
525
+ key: string;
526
+ logicalOperationId: string;
527
+ operationId: string;
528
+ ordinal: 1;
529
+ payloadId: string;
530
+ preparedRevision: 0;
531
+ recordJSON: string;
532
+ requestBinding: string;
533
+ stage: "attach" | "configure";
534
+ } | {
535
+ accountJSON: string;
536
+ apiVersion: string;
537
+ attemptId: string;
538
+ authorizationId: string;
539
+ authorizationRevision: number;
540
+ authorizationScope: string;
541
+ committedRevision: 1;
542
+ firstDispatchedAt: number;
543
+ key: string;
544
+ logicalOperationId: string;
545
+ operationId: string;
546
+ ordinal: 1;
547
+ payloadId: string;
548
+ preparedRevision: 0;
549
+ recordJSON: string;
550
+ recordVersion: 2;
551
+ requestBinding: string;
552
+ stage: "attach";
553
+ timingPolicyJSON: string;
554
+ };
555
+ sequence: 1 | 2 | 3;
556
+ sourcePayloadId: string;
557
+ stage: "attach" | "configure";
558
+ }, string | undefined>>): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"mutation", "internal", {
559
+ event: {
560
+ binding: string;
561
+ dataJSON: string;
562
+ sequence: 1 | 2 | 3;
563
+ };
564
+ expectedSequence: number;
565
+ reservation: {
566
+ accountJSON: string;
567
+ apiVersion: string;
568
+ attemptId: string;
569
+ authorizationId: string;
570
+ authorizationRevision: number;
571
+ authorizationScope: string;
572
+ basisJSON: string;
573
+ committedRevision: 1;
574
+ firstDispatchedAt: number;
575
+ key: string;
576
+ logicalOperationId: string;
577
+ operationId: string;
578
+ ordinal: 1;
579
+ payloadId: string;
580
+ preparedRevision: 0;
581
+ recordJSON: string;
582
+ requestBinding: string;
583
+ stage: "attach" | "configure";
584
+ } | {
585
+ accountJSON: string;
586
+ apiVersion: string;
587
+ attemptId: string;
588
+ authorizationId: string;
589
+ authorizationRevision: number;
590
+ authorizationScope: string;
591
+ committedRevision: 1;
592
+ firstDispatchedAt: number;
593
+ key: string;
594
+ logicalOperationId: string;
595
+ operationId: string;
596
+ ordinal: 1;
597
+ payloadId: string;
598
+ preparedRevision: 0;
599
+ recordJSON: string;
600
+ recordVersion: 2;
601
+ requestBinding: string;
602
+ stage: "attach";
603
+ timingPolicyJSON: string;
604
+ };
605
+ }, {
606
+ attemptId: string;
607
+ binding: string;
608
+ eventId: string;
609
+ operationId: string;
610
+ payloadId: string;
611
+ reservation: {
612
+ accountJSON: string;
613
+ apiVersion: string;
614
+ attemptId: string;
615
+ authorizationId: string;
616
+ authorizationRevision: number;
617
+ authorizationScope: string;
618
+ basisJSON: string;
619
+ committedRevision: 1;
620
+ firstDispatchedAt: number;
621
+ key: string;
622
+ logicalOperationId: string;
623
+ operationId: string;
624
+ ordinal: 1;
625
+ payloadId: string;
626
+ preparedRevision: 0;
627
+ recordJSON: string;
628
+ requestBinding: string;
629
+ stage: "attach" | "configure";
630
+ } | {
631
+ accountJSON: string;
632
+ apiVersion: string;
633
+ attemptId: string;
634
+ authorizationId: string;
635
+ authorizationRevision: number;
636
+ authorizationScope: string;
637
+ committedRevision: 1;
638
+ firstDispatchedAt: number;
639
+ key: string;
640
+ logicalOperationId: string;
641
+ operationId: string;
642
+ ordinal: 1;
643
+ payloadId: string;
644
+ preparedRevision: 0;
645
+ recordJSON: string;
646
+ recordVersion: 2;
647
+ requestBinding: string;
648
+ stage: "attach";
649
+ timingPolicyJSON: string;
650
+ };
651
+ sequence: 1 | 2 | 3;
652
+ sourcePayloadId: string;
653
+ stage: "attach" | "configure";
654
+ }, string | undefined>>>;
655
+ readAttempt(args: Omit<import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"query", "internal", {
656
+ attemptId: string;
657
+ operationId: string;
658
+ }, {
659
+ events: Array<{
660
+ attemptId: string;
661
+ binding: string;
662
+ eventId: string;
663
+ operationId: string;
664
+ payloadId: string;
665
+ sequence: 1 | 2 | 3;
666
+ sourcePayloadId: string;
667
+ stage: "attach" | "configure";
668
+ }>;
669
+ reservation: {
670
+ accountJSON: string;
671
+ apiVersion: string;
672
+ attemptId: string;
673
+ authorizationId: string;
674
+ authorizationRevision: number;
675
+ authorizationScope: string;
676
+ basisJSON: string;
677
+ committedRevision: 1;
678
+ firstDispatchedAt: number;
679
+ key: string;
680
+ logicalOperationId: string;
681
+ operationId: string;
682
+ ordinal: 1;
683
+ payloadId: string;
684
+ preparedRevision: 0;
685
+ recordJSON: string;
686
+ requestBinding: string;
687
+ stage: "attach" | "configure";
688
+ } | {
689
+ accountJSON: string;
690
+ apiVersion: string;
691
+ attemptId: string;
692
+ authorizationId: string;
693
+ authorizationRevision: number;
694
+ authorizationScope: string;
695
+ committedRevision: 1;
696
+ firstDispatchedAt: number;
697
+ key: string;
698
+ logicalOperationId: string;
699
+ operationId: string;
700
+ ordinal: 1;
701
+ payloadId: string;
702
+ preparedRevision: 0;
703
+ recordJSON: string;
704
+ recordVersion: 2;
705
+ requestBinding: string;
706
+ stage: "attach";
707
+ timingPolicyJSON: string;
708
+ };
709
+ } | null, string | undefined>>, "operationId">): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"query", "internal", {
710
+ attemptId: string;
711
+ operationId: string;
712
+ }, {
713
+ events: Array<{
714
+ attemptId: string;
715
+ binding: string;
716
+ eventId: string;
717
+ operationId: string;
718
+ payloadId: string;
719
+ sequence: 1 | 2 | 3;
720
+ sourcePayloadId: string;
721
+ stage: "attach" | "configure";
722
+ }>;
723
+ reservation: {
724
+ accountJSON: string;
725
+ apiVersion: string;
726
+ attemptId: string;
727
+ authorizationId: string;
728
+ authorizationRevision: number;
729
+ authorizationScope: string;
730
+ basisJSON: string;
731
+ committedRevision: 1;
732
+ firstDispatchedAt: number;
733
+ key: string;
734
+ logicalOperationId: string;
735
+ operationId: string;
736
+ ordinal: 1;
737
+ payloadId: string;
738
+ preparedRevision: 0;
739
+ recordJSON: string;
740
+ requestBinding: string;
741
+ stage: "attach" | "configure";
742
+ } | {
743
+ accountJSON: string;
744
+ apiVersion: string;
745
+ attemptId: string;
746
+ authorizationId: string;
747
+ authorizationRevision: number;
748
+ authorizationScope: string;
749
+ committedRevision: 1;
750
+ firstDispatchedAt: number;
751
+ key: string;
752
+ logicalOperationId: string;
753
+ operationId: string;
754
+ ordinal: 1;
755
+ payloadId: string;
756
+ preparedRevision: 0;
757
+ recordJSON: string;
758
+ recordVersion: 2;
759
+ requestBinding: string;
760
+ stage: "attach";
761
+ timingPolicyJSON: string;
762
+ };
763
+ } | null, string | undefined>>>;
764
+ readStageEvent(args: Omit<import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"query", "internal", {
765
+ attemptId: string;
766
+ operationId: string;
767
+ sequence: 1 | 2 | 3;
768
+ }, {
769
+ attemptId: string;
770
+ binding: string;
771
+ dataJSON: string;
772
+ eventId: string;
773
+ operationId: string;
774
+ payloadId: string;
775
+ sequence: 1 | 2 | 3;
776
+ sourcePayloadId: string;
777
+ stage: "attach" | "configure";
778
+ } | null, string | undefined>>, "operationId">): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"query", "internal", {
779
+ attemptId: string;
780
+ operationId: string;
781
+ sequence: 1 | 2 | 3;
782
+ }, {
783
+ attemptId: string;
784
+ binding: string;
785
+ dataJSON: string;
786
+ eventId: string;
787
+ operationId: string;
788
+ payloadId: string;
789
+ sequence: 1 | 2 | 3;
790
+ sourcePayloadId: string;
791
+ stage: "attach" | "configure";
792
+ } | null, string | undefined>>>;
793
+ retainProviderAcknowledgement(args: Omit<import("convex/server").FunctionArgs<import("convex/server").FunctionReference<"mutation", "internal", {
794
+ attemptId: string;
795
+ expectedSequence: 2 | 3;
796
+ operationId: string;
797
+ receiptJSON: string;
798
+ }, {
799
+ attemptId: string;
800
+ dispatchEventId: string;
801
+ dispatchPayloadId: string;
802
+ operationId: string;
803
+ receiptBinding: string;
804
+ receiptPayloadId: string;
805
+ responseEventId: string;
806
+ responsePayloadId: string;
807
+ schemaVersion: 1;
808
+ sourcePayloadId: string;
809
+ stage: "attach";
810
+ status: "retained";
811
+ }, string | undefined>>, "operationId">): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"mutation", "internal", {
812
+ attemptId: string;
813
+ expectedSequence: 2 | 3;
814
+ operationId: string;
815
+ receiptJSON: string;
816
+ }, {
817
+ attemptId: string;
818
+ dispatchEventId: string;
819
+ dispatchPayloadId: string;
820
+ operationId: string;
821
+ receiptBinding: string;
822
+ receiptPayloadId: string;
823
+ responseEventId: string;
824
+ responsePayloadId: string;
825
+ schemaVersion: 1;
826
+ sourcePayloadId: string;
827
+ stage: "attach";
828
+ status: "retained";
829
+ }, string | undefined>>>;
830
+ readProviderAcknowledgement(): Promise<import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"query", "internal", {
831
+ operationId: string;
832
+ }, {
833
+ receiptJSON: string;
834
+ retention: {
835
+ attemptId: string;
836
+ dispatchEventId: string;
837
+ dispatchPayloadId: string;
838
+ operationId: string;
839
+ receiptBinding: string;
840
+ receiptPayloadId: string;
841
+ responseEventId: string;
842
+ responsePayloadId: string;
843
+ schemaVersion: 1;
844
+ sourcePayloadId: string;
845
+ stage: "attach";
846
+ status: "retained";
847
+ };
848
+ } | null, string | undefined>>>;
849
+ }> & Readonly<{
850
+ reserveFreshAttempt(args: {
851
+ expectedRequestBinding: string;
852
+ expectedRevision: number;
853
+ recordJSON: string;
854
+ stage: "attach" | "configure";
855
+ }): Promise<Readonly<{
856
+ result: import("convex/server").FunctionReturnType<import("convex/server").FunctionReference<"mutation", "internal", {
857
+ expectedRequestBinding: string;
858
+ expectedRevision: number;
859
+ operationId: string;
860
+ recordJSON: string;
861
+ stage: "attach" | "configure";
862
+ }, {
863
+ committedRevision: 1;
864
+ disposition: "acquired";
865
+ previousRevision: 0;
866
+ reservation: {
867
+ accountJSON: string;
868
+ apiVersion: string;
869
+ attemptId: string;
870
+ authorizationId: string;
871
+ authorizationRevision: number;
872
+ authorizationScope: string;
873
+ basisJSON: string;
874
+ committedRevision: 1;
875
+ firstDispatchedAt: number;
876
+ key: string;
877
+ logicalOperationId: string;
878
+ operationId: string;
879
+ ordinal: 1;
880
+ payloadId: string;
881
+ preparedRevision: 0;
882
+ recordJSON: string;
883
+ requestBinding: string;
884
+ stage: "attach" | "configure";
885
+ } | {
886
+ accountJSON: string;
887
+ apiVersion: string;
888
+ attemptId: string;
889
+ authorizationId: string;
890
+ authorizationRevision: number;
891
+ authorizationScope: string;
892
+ committedRevision: 1;
893
+ firstDispatchedAt: number;
894
+ key: string;
895
+ logicalOperationId: string;
896
+ operationId: string;
897
+ ordinal: 1;
898
+ payloadId: string;
899
+ preparedRevision: 0;
900
+ recordJSON: string;
901
+ recordVersion: 2;
902
+ requestBinding: string;
903
+ stage: "attach";
904
+ timingPolicyJSON: string;
905
+ };
906
+ } | {
907
+ committedRevision: 1;
908
+ disposition: "existing";
909
+ reservation: {
910
+ accountJSON: string;
911
+ apiVersion: string;
912
+ attemptId: string;
913
+ authorizationId: string;
914
+ authorizationRevision: number;
915
+ authorizationScope: string;
916
+ basisJSON: string;
917
+ committedRevision: 1;
918
+ firstDispatchedAt: number;
919
+ key: string;
920
+ logicalOperationId: string;
921
+ operationId: string;
922
+ ordinal: 1;
923
+ payloadId: string;
924
+ preparedRevision: 0;
925
+ recordJSON: string;
926
+ requestBinding: string;
927
+ stage: "attach" | "configure";
928
+ } | {
929
+ accountJSON: string;
930
+ apiVersion: string;
931
+ attemptId: string;
932
+ authorizationId: string;
933
+ authorizationRevision: number;
934
+ authorizationScope: string;
935
+ committedRevision: 1;
936
+ firstDispatchedAt: number;
937
+ key: string;
938
+ logicalOperationId: string;
939
+ operationId: string;
940
+ ordinal: 1;
941
+ payloadId: string;
942
+ preparedRevision: 0;
943
+ recordJSON: string;
944
+ recordVersion: 2;
945
+ requestBinding: string;
946
+ stage: "attach";
947
+ timingPolicyJSON: string;
948
+ };
949
+ } | {
950
+ disposition: "conflict";
951
+ reason: "identity_changed";
952
+ }, string | undefined>>;
953
+ call: object | null;
954
+ }>>;
955
+ }>;
956
+ configuration: import("../../../renewalV2/index.js").ProjectRenewalConfigurationV2Options;
957
+ }>;
958
+ export {};
959
+ //# sourceMappingURL=configureLineage.d.ts.map