@fantastic.dev/better-stripe 0.99.0 → 0.101.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 (111) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +8 -0
  4. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +27 -1
  6. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.d.ts +10 -0
  8. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js +49 -0
  10. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +2 -0
  12. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
  13. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +6 -0
  14. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.d.ts +9 -0
  16. package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.d.ts.map +1 -1
  17. package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.js +22 -0
  18. package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.js.map +1 -1
  19. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +9 -0
  20. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -1
  21. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +27 -0
  22. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -1
  23. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +18 -18
  24. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +9 -9
  25. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +50 -50
  26. package/dist/client/connect/payoutSyncTestHelpers.d.ts +25 -25
  27. package/dist/component/balanceFunding/queries.d.ts +1 -1
  28. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  29. package/dist/component/earnings/triggers.d.ts +22 -22
  30. package/dist/component/payoutRelease/queries.d.ts +2 -2
  31. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  32. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  33. package/dist/component/renewalOperations/attachValidation.d.ts +19 -0
  34. package/dist/component/renewalOperations/attachValidation.d.ts.map +1 -0
  35. package/dist/component/renewalOperations/attachValidation.js +167 -0
  36. package/dist/component/renewalOperations/attachValidation.js.map +1 -0
  37. package/dist/component/renewalOperations/configureAcknowledgement.d.ts +13 -0
  38. package/dist/component/renewalOperations/configureAcknowledgement.d.ts.map +1 -0
  39. package/dist/component/renewalOperations/configureAcknowledgement.js +108 -0
  40. package/dist/component/renewalOperations/configureAcknowledgement.js.map +1 -0
  41. package/dist/component/renewalOperations/configureParent.d.ts +10 -0
  42. package/dist/component/renewalOperations/configureParent.d.ts.map +1 -0
  43. package/dist/component/renewalOperations/configureParent.js +62 -0
  44. package/dist/component/renewalOperations/configureParent.js.map +1 -0
  45. package/dist/component/renewalOperations/configureValidation.d.ts +12 -0
  46. package/dist/component/renewalOperations/configureValidation.d.ts.map +1 -0
  47. package/dist/component/renewalOperations/configureValidation.js +64 -0
  48. package/dist/component/renewalOperations/configureValidation.js.map +1 -0
  49. package/dist/component/renewalOperations/helpers.d.ts +16 -21
  50. package/dist/component/renewalOperations/helpers.d.ts.map +1 -1
  51. package/dist/component/renewalOperations/helpers.js +13 -169
  52. package/dist/component/renewalOperations/helpers.js.map +1 -1
  53. package/dist/component/renewalOperations/mutations.d.ts +6 -6
  54. package/dist/component/renewalOperations/mutations.d.ts.map +1 -1
  55. package/dist/component/renewalOperations/mutations.js +14 -7
  56. package/dist/component/renewalOperations/mutations.js.map +1 -1
  57. package/dist/component/renewalOperations/operationContext.d.ts +12 -0
  58. package/dist/component/renewalOperations/operationContext.d.ts.map +1 -0
  59. package/dist/component/renewalOperations/operationContext.js +14 -0
  60. package/dist/component/renewalOperations/operationContext.js.map +1 -0
  61. package/dist/component/renewalOperations/queries.d.ts +4 -4
  62. package/dist/component/renewalOperations/queries.js +2 -1
  63. package/dist/component/renewalOperations/queries.js.map +1 -1
  64. package/dist/component/renewalOperations/schema.d.ts +59 -59
  65. package/dist/component/renewalOperations/schema.js +3 -3
  66. package/dist/component/renewalOperations/schema.js.map +1 -1
  67. package/dist/component/renewalOperations/stageAcknowledgement.d.ts +15 -0
  68. package/dist/component/renewalOperations/stageAcknowledgement.d.ts.map +1 -0
  69. package/dist/component/renewalOperations/stageAcknowledgement.js +20 -0
  70. package/dist/component/renewalOperations/stageAcknowledgement.js.map +1 -0
  71. package/dist/component/renewalOperations/validationTypes.d.ts +9 -0
  72. package/dist/component/renewalOperations/validationTypes.d.ts.map +1 -0
  73. package/dist/component/renewalOperations/validationTypes.js +2 -0
  74. package/dist/component/renewalOperations/validationTypes.js.map +1 -0
  75. package/dist/component/schema.d.ts +9 -9
  76. package/dist/component/usage/allowance.fixtures.d.ts +9 -9
  77. package/dist/component/usageCredits/accounting.fixtures.d.ts +9 -9
  78. package/dist/shared/renewalOperationJournal.d.ts +1 -1
  79. package/dist/shared/renewalOperationJournal.d.ts.map +1 -1
  80. package/dist/shared/renewalOperationJournal.js +41 -9
  81. package/dist/shared/renewalOperationJournal.js.map +1 -1
  82. package/docs/renewal-context-reads.md +59 -8
  83. package/package.json +1 -1
  84. package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +28 -1
  85. package/src/client/billing/renewalAttach/internal/producer/attachAcknowledgement.ts +65 -0
  86. package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +8 -0
  87. package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgement.integration.test.ts +320 -0
  88. package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgementControls.integration.test.ts +411 -0
  89. package/src/client/billing/renewalAttach/internal/producer/recoveryEntry.ts +35 -1
  90. package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +39 -0
  91. package/src/component/renewalOperations/attachValidation.ts +203 -0
  92. package/src/component/renewalOperations/configureAcknowledgement.test.ts +30 -0
  93. package/src/component/renewalOperations/configureAcknowledgement.ts +182 -0
  94. package/src/component/renewalOperations/configureAcknowledgementControls.test.ts +96 -0
  95. package/src/component/renewalOperations/configureBasis.test.ts +77 -0
  96. package/src/component/renewalOperations/configureCreation.test.ts +75 -0
  97. package/src/component/renewalOperations/configureJournal.fixtures.ts +385 -0
  98. package/src/component/renewalOperations/configureParent.ts +71 -0
  99. package/src/component/renewalOperations/configurePolicy.test.ts +105 -0
  100. package/src/component/renewalOperations/configurePublication.test.ts +85 -0
  101. package/src/component/renewalOperations/configureReceiptBounds.test.ts +39 -0
  102. package/src/component/renewalOperations/configureSourceControls.test.ts +65 -0
  103. package/src/component/renewalOperations/configureValidation.ts +70 -0
  104. package/src/component/renewalOperations/helpers.ts +21 -204
  105. package/src/component/renewalOperations/mutations.ts +16 -7
  106. package/src/component/renewalOperations/operationContext.ts +21 -0
  107. package/src/component/renewalOperations/queries.ts +1 -1
  108. package/src/component/renewalOperations/schema.ts +3 -3
  109. package/src/component/renewalOperations/stageAcknowledgement.ts +45 -0
  110. package/src/component/renewalOperations/validationTypes.ts +9 -0
  111. package/src/shared/renewalOperationJournal.ts +49 -8
@@ -0,0 +1,9 @@
1
+ import type { Infer } from "convex/values";
2
+ import type { QueryCtx } from "../_generated/server.js";
3
+ import type { reservationData, eventDescriptor } from "./schema.js";
4
+ export type JournalReader = Pick<QueryCtx, "db">;
5
+ export type Reservation = Infer<typeof reservationData>;
6
+ export type CheckedEvents = readonly (Infer<typeof eventDescriptor> & {
7
+ dataJSON: string;
8
+ })[];
9
+ //# sourceMappingURL=validationTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validationTypes.d.ts","sourceRoot":"","sources":["../../../src/component/renewalOperations/validationTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IACpE,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=validationTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validationTypes.js","sourceRoot":"","sources":["../../../src/component/renewalOperations/validationTypes.ts"],"names":[],"mappings":""}
@@ -9,7 +9,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
9
9
  basisJSON: string;
10
10
  policyJSON: string;
11
11
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
12
- stage: "attach";
12
+ stage: "attach" | "configure";
13
13
  version: 1;
14
14
  } | undefined;
15
15
  knownAcknowledgement?: {
@@ -22,7 +22,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
22
22
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
23
23
  schemaVersion: 1;
24
24
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
25
- stage: "attach";
25
+ stage: "attach" | "configure";
26
26
  } | undefined;
27
27
  logicalOperationId: string;
28
28
  payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
@@ -37,13 +37,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
37
37
  basisJSON: string;
38
38
  policyJSON: string;
39
39
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
40
- stage: "attach";
40
+ stage: "attach" | "configure";
41
41
  version: 1;
42
42
  } | undefined, {
43
43
  version: import("convex/values").VLiteral<1, "required">;
44
44
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
45
45
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
46
- stage: import("convex/values").VLiteral<"attach", "required">;
46
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
47
47
  policyJSON: import("convex/values").VString<string, "required">;
48
48
  basisJSON: import("convex/values").VString<string, "required">;
49
49
  }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
@@ -66,10 +66,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
66
66
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
67
67
  schemaVersion: 1;
68
68
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
69
- stage: "attach";
69
+ stage: "attach" | "configure";
70
70
  } | undefined, {
71
71
  schemaVersion: import("convex/values").VLiteral<1, "required">;
72
- stage: import("convex/values").VLiteral<"attach", "required">;
72
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
73
73
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
74
74
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
75
75
  dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
@@ -117,7 +117,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
117
117
  preparedRevision: 0;
118
118
  recordVersion: 2;
119
119
  requestBinding: string;
120
- stage: "attach";
120
+ stage: "attach" | "configure";
121
121
  timingPolicyJSON: string;
122
122
  }, [import("convex/values").VObject<{
123
123
  accountJSON: string;
@@ -172,7 +172,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
172
172
  preparedRevision: 0;
173
173
  recordVersion: 2;
174
174
  requestBinding: string;
175
- stage: "attach";
175
+ stage: "attach" | "configure";
176
176
  timingPolicyJSON: string;
177
177
  }, {
178
178
  operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
@@ -190,7 +190,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
190
190
  preparedRevision: import("convex/values").VLiteral<0, "required">;
191
191
  committedRevision: import("convex/values").VLiteral<1, "required">;
192
192
  recordVersion: import("convex/values").VLiteral<2, "required">;
193
- stage: import("convex/values").VLiteral<"attach", "required">;
193
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
194
194
  timingPolicyJSON: import("convex/values").VString<string, "required">;
195
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
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">, {
@@ -10,7 +10,7 @@ export declare function setupAllowance(): Promise<{
10
10
  basisJSON: string;
11
11
  policyJSON: string;
12
12
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
13
- stage: "attach";
13
+ stage: "attach" | "configure";
14
14
  version: 1;
15
15
  } | undefined;
16
16
  knownAcknowledgement?: {
@@ -23,7 +23,7 @@ export declare function setupAllowance(): Promise<{
23
23
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
24
24
  schemaVersion: 1;
25
25
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
26
- stage: "attach";
26
+ stage: "attach" | "configure";
27
27
  } | undefined;
28
28
  logicalOperationId: string;
29
29
  payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
@@ -38,13 +38,13 @@ export declare function setupAllowance(): Promise<{
38
38
  basisJSON: string;
39
39
  policyJSON: string;
40
40
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
41
- stage: "attach";
41
+ stage: "attach" | "configure";
42
42
  version: 1;
43
43
  } | undefined, {
44
44
  version: import("convex/values").VLiteral<1, "required">;
45
45
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
46
46
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
47
- stage: import("convex/values").VLiteral<"attach", "required">;
47
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
48
48
  policyJSON: import("convex/values").VString<string, "required">;
49
49
  basisJSON: import("convex/values").VString<string, "required">;
50
50
  }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
@@ -67,10 +67,10 @@ export declare function setupAllowance(): Promise<{
67
67
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
68
68
  schemaVersion: 1;
69
69
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
70
- stage: "attach";
70
+ stage: "attach" | "configure";
71
71
  } | undefined, {
72
72
  schemaVersion: import("convex/values").VLiteral<1, "required">;
73
- stage: import("convex/values").VLiteral<"attach", "required">;
73
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
74
74
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
75
75
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
76
76
  dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
@@ -118,7 +118,7 @@ export declare function setupAllowance(): Promise<{
118
118
  preparedRevision: 0;
119
119
  recordVersion: 2;
120
120
  requestBinding: string;
121
- stage: "attach";
121
+ stage: "attach" | "configure";
122
122
  timingPolicyJSON: string;
123
123
  }, [import("convex/values").VObject<{
124
124
  accountJSON: string;
@@ -173,7 +173,7 @@ export declare function setupAllowance(): Promise<{
173
173
  preparedRevision: 0;
174
174
  recordVersion: 2;
175
175
  requestBinding: string;
176
- stage: "attach";
176
+ stage: "attach" | "configure";
177
177
  timingPolicyJSON: string;
178
178
  }, {
179
179
  operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
@@ -191,7 +191,7 @@ export declare function setupAllowance(): Promise<{
191
191
  preparedRevision: import("convex/values").VLiteral<0, "required">;
192
192
  committedRevision: import("convex/values").VLiteral<1, "required">;
193
193
  recordVersion: import("convex/values").VLiteral<2, "required">;
194
- stage: import("convex/values").VLiteral<"attach", "required">;
194
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
195
195
  timingPolicyJSON: import("convex/values").VString<string, "required">;
196
196
  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>;
197
197
  }, "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">, {
@@ -10,7 +10,7 @@ export declare function setupCredits(): Promise<{
10
10
  basisJSON: string;
11
11
  policyJSON: string;
12
12
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
13
- stage: "attach";
13
+ stage: "attach" | "configure";
14
14
  version: 1;
15
15
  } | undefined;
16
16
  knownAcknowledgement?: {
@@ -23,7 +23,7 @@ export declare function setupCredits(): Promise<{
23
23
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
24
24
  schemaVersion: 1;
25
25
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
26
- stage: "attach";
26
+ stage: "attach" | "configure";
27
27
  } | undefined;
28
28
  logicalOperationId: string;
29
29
  payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
@@ -38,13 +38,13 @@ export declare function setupCredits(): Promise<{
38
38
  basisJSON: string;
39
39
  policyJSON: string;
40
40
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
41
- stage: "attach";
41
+ stage: "attach" | "configure";
42
42
  version: 1;
43
43
  } | undefined, {
44
44
  version: import("convex/values").VLiteral<1, "required">;
45
45
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
46
46
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
47
- stage: import("convex/values").VLiteral<"attach", "required">;
47
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
48
48
  policyJSON: import("convex/values").VString<string, "required">;
49
49
  basisJSON: import("convex/values").VString<string, "required">;
50
50
  }, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
@@ -67,10 +67,10 @@ export declare function setupCredits(): Promise<{
67
67
  responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
68
68
  schemaVersion: 1;
69
69
  sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
70
- stage: "attach";
70
+ stage: "attach" | "configure";
71
71
  } | undefined, {
72
72
  schemaVersion: import("convex/values").VLiteral<1, "required">;
73
- stage: import("convex/values").VLiteral<"attach", "required">;
73
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
74
74
  attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
75
75
  sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
76
76
  dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
@@ -118,7 +118,7 @@ export declare function setupCredits(): Promise<{
118
118
  preparedRevision: 0;
119
119
  recordVersion: 2;
120
120
  requestBinding: string;
121
- stage: "attach";
121
+ stage: "attach" | "configure";
122
122
  timingPolicyJSON: string;
123
123
  }, [import("convex/values").VObject<{
124
124
  accountJSON: string;
@@ -173,7 +173,7 @@ export declare function setupCredits(): Promise<{
173
173
  preparedRevision: 0;
174
174
  recordVersion: 2;
175
175
  requestBinding: string;
176
- stage: "attach";
176
+ stage: "attach" | "configure";
177
177
  timingPolicyJSON: string;
178
178
  }, {
179
179
  operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
@@ -191,7 +191,7 @@ export declare function setupCredits(): Promise<{
191
191
  preparedRevision: import("convex/values").VLiteral<0, "required">;
192
192
  committedRevision: import("convex/values").VLiteral<1, "required">;
193
193
  recordVersion: import("convex/values").VLiteral<2, "required">;
194
- stage: import("convex/values").VLiteral<"attach", "required">;
194
+ stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
195
195
  timingPolicyJSON: import("convex/values").VString<string, "required">;
196
196
  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>;
197
197
  }, "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">, {
@@ -10,11 +10,11 @@ export declare function canonicalJournalRecord(raw: string): Readonly<{
10
10
  }>;
11
11
  /** Complete immutable reservation DATA. This does not validate a live Owner. */
12
12
  export declare function journalReservationMaterial(full: ReturnType<typeof canonicalJournalRecord>): Readonly<{
13
+ stage: "attach" | "configure";
13
14
  key: string;
14
15
  apiVersion: string;
15
16
  firstDispatchedAt: number;
16
17
  accountJSON: string;
17
- stage: "attach";
18
18
  recordVersion: 2;
19
19
  timingPolicyJSON: string;
20
20
  }> | Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"renewalOperationJournal.d.ts","sourceRoot":"","sources":["../../src/shared/renewalOperationJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AA4E1D,mFAAmF;AACnF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM;;;;;;;GAwCjD;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC;;;;;WA0CpC,QAAQ;mBACA,CAAC;;;;;;;;;GAQrB;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;GA4F1E;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;IAoCxE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAMpD;AAED,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAcnE"}
1
+ {"version":3,"file":"renewalOperationJournal.d.ts","sourceRoot":"","sources":["../../src/shared/renewalOperationJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAuH1D,mFAAmF;AACnF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM;;;;;;;GAwCjD;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC;;;;;;mBAyC5B,CAAC;;;;;;;;;GAQrB;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;GA4F1E;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;IAoCxE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAMpD;AAED,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAcnE"}
@@ -10,12 +10,17 @@ function record(value) {
10
10
  function text(value) {
11
11
  return typeof value === "string" && value.length > 0;
12
12
  }
13
- /** Intrinsic V2 policy DATA only; full C1/C2 validation is an async boundary. */
14
- function validateAttachTimingPolicy(value) {
13
+ /** Intrinsic V2 policy DATA only; complete stage reconstruction is async. */
14
+ function validateStageTimingPolicy(value) {
15
15
  const policy = value.timingPolicy;
16
16
  const dispatch = value.dispatch;
17
- const source = value.attachRequest;
18
- if (value.stage !== "attach" ||
17
+ const configure = value.configureRecord;
18
+ const source = value.stage === "attach"
19
+ ? value.attachRequest
20
+ : record(configure)
21
+ ? configure.configuration
22
+ : null;
23
+ if ((value.stage !== "attach" && value.stage !== "configure") ||
19
24
  Object.prototype.hasOwnProperty.call(value, "basis") ||
20
25
  !Object.prototype.hasOwnProperty.call(value, "timingPolicy") ||
21
26
  !record(policy) ||
@@ -24,6 +29,36 @@ function validateAttachTimingPolicy(value) {
24
29
  !record(source.preparation) ||
25
30
  !record(source.preparation.expected))
26
31
  stop();
32
+ if (value.stage === "configure") {
33
+ const parent = value.parentAttachment;
34
+ if (!record(parent) ||
35
+ !record(configure) ||
36
+ !record(configure.attachReceipt) ||
37
+ !record(configure.request) ||
38
+ !record(configure.request.requestIdentity))
39
+ stop();
40
+ const parentKeys = [
41
+ "operationId",
42
+ "attemptId",
43
+ "sourcePayloadId",
44
+ "receiptBinding",
45
+ ];
46
+ if (Object.keys(parent).length !== parentKeys.length ||
47
+ Object.keys(parent).some((key) => !parentKeys.includes(key)))
48
+ stop();
49
+ for (const key of parentKeys) {
50
+ const field = parent[key];
51
+ if (!text(field) || field.length > 255)
52
+ stop();
53
+ }
54
+ if (typeof parent.receiptBinding !== "string" ||
55
+ !/^renewal-attach-receipt:v2:sha256:[0-9a-f]{64}$/.test(parent.receiptBinding) ||
56
+ parent.receiptBinding !== configure.attachReceipt.binding ||
57
+ configure.request.stage !== "configure" ||
58
+ configure.request.requestIdentity.binding !== value.requestBinding ||
59
+ configure.request.firstDispatchedAt !== source.firstDispatchedAt)
60
+ stop();
61
+ }
27
62
  const fields = [
28
63
  "version",
29
64
  "firstDispatchedAt",
@@ -65,7 +100,7 @@ export function canonicalJournalRecord(raw) {
65
100
  (value.schemaVersion !== 1 && value.schemaVersion !== 2))
66
101
  stop();
67
102
  if (value.schemaVersion === 2)
68
- validateAttachTimingPolicy(value);
103
+ validateStageTimingPolicy(value);
69
104
  const authorization = value.authorization;
70
105
  if (!record(authorization) ||
71
106
  !text(authorization.scope) ||
@@ -132,12 +167,9 @@ export function journalReservationMaterial(full) {
132
167
  accountJSON: JSON.stringify(renewalSnapshot(account)),
133
168
  });
134
169
  if (value.schemaVersion === 2) {
135
- if (value.stage !== "attach")
136
- stop();
137
- validateAttachTimingPolicy(value);
170
+ validateStageTimingPolicy(value);
138
171
  return Object.freeze({
139
172
  ...common,
140
- stage: "attach",
141
173
  recordVersion: 2,
142
174
  timingPolicyJSON: JSON.stringify(renewalSnapshot(value.timingPolicy)),
143
175
  });
@@ -1 +1 @@
1
- {"version":3,"file":"renewalOperationJournal.js","sourceRoot":"","sources":["../../src/shared/renewalOperationJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,UAAU,EACV,UAAU,GAEX,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF,SAAS,IAAI;IACX,MAAM,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC3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,KAAK,EAAE,EAAE,CAAC;YAClD,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACrC,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;gBACrC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBACzC,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC;oBACrC,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC1C,KAAK,EAAE,CAAC;YACV,CAAC;iBAAM,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;gBAC5C,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -202,6 +202,29 @@ ordinary Node and Convex-test mechanics with controlled HTTP, not native or
202
202
  provider qualification. Cross-process recovery cannot revive this Owner or
203
203
  reconstruct actual live response custody from stored DATA.
204
204
 
205
+ The core's private `attachAcknowledgement()` reader retains the exact admitted
206
+ output and receipt identities from one successful initial attachment, explicit
207
+ replay or no-POST acknowledgement resumption. Each completion pipeline records
208
+ its own return privately. The reader accepts no replacement receipt or context,
209
+ checks the original Owner and entry predicates on every successful read, and
210
+ returns one canonical process-local view with `operationalAuthority: false`.
211
+ Serializing that view discards its process-local custody identity.
212
+
213
+ Committed receipt DATA and even a complete receipt3 event can exist while the
214
+ actual pipeline is still awaiting a journal reply. The reader refuses until the
215
+ pipeline completes its successful internal return. An absent completion is not
216
+ cached and does not construct an Owner, sample clocks or allocate a timer. A
217
+ later successful read uses the existing original Owner and budget. Retirement,
218
+ changed predicates, removed class eligibility, copied DATA or unknown lineage
219
+ identities refuse. The same checks apply to cached views, and separate SDK roots
220
+ retain distinct output and receipt identities.
221
+
222
+ This reader supports future configure-source binding to the actual attachment
223
+ receipt. Configure still needs its separately authorized stage operation,
224
+ request/key, journal protocol and runtime factories. The internal return record
225
+ does not establish delivery to a disconnected caller, qualify a provider profile
226
+ or create a public scheduling entrypoint.
227
+
205
228
  ## Component operation journal
206
229
 
207
230
  The component's `renewalOperations` functions retain host-authorized operation
@@ -219,15 +242,15 @@ The finite JSON model preserves unknown nested fields, array order and own
219
242
  properties, including absent versus null values. Original record JSON must fit
220
243
  500,000 characters and UTF-8 bytes, 10,000 nodes and depth 40.
221
244
 
222
- Legacy `schemaVersion: 1` records retain their existing shape. Attachment-only
223
- `schemaVersion: 2` records instead declare a closed `timingPolicy` with `version: 1`,
245
+ Legacy `schemaVersion: 1` records retain their existing shape. Attachment and
246
+ configure `schemaVersion: 2` records instead declare a closed `timingPolicy` with `version: 1`,
224
247
  `firstDispatchedAt`, `periodStart`, `periodEnd`, `workEndWallMs` and `endWallMs`.
225
248
  First-dispatch and period fields use epoch seconds; wall cutoff fields use epoch
226
249
  milliseconds. They have no root `basis`; a policy does not establish a live
227
250
  execution origin.
228
251
 
229
- Before V2 creation, a successful creation duplicate or a stored-source read,
230
- the component reconstructs the actual pure C1 preparation from the complete
252
+ Before V2 attachment creation, a successful creation duplicate or a stored-source
253
+ read, the component reconstructs the actual pure C1 preparation from the complete
231
254
  `attachRequest.preparation`, then reconstructs C2. The entire seven-field
232
255
  dispatch, account, API version, request binding and policy must match the
233
256
  retained source. A stored preparation flag or matching period fields alone
@@ -236,6 +259,28 @@ host-authorized DATA: no layout or equality to the preparation is inferred.
236
259
  Changing it still changes the immutable full record. Existing V1 records are
237
260
  not migrated or supplied with a new basis.
238
261
 
262
+ A V2 configure record uses a separate logical operation identity, reservation,
263
+ request binding and C7 key. Its closed `configureRecord` contains `configuration`,
264
+ `request`, `attachReceipt` and the complete opaque `originalBundle`. Its closed
265
+ `parentAttachment` contains `operationId`, `attemptId`, `sourcePayloadId` and
266
+ `receiptBinding`. The host must authorize the exact parent and child pair. The
267
+ component does not impose equality on their host authorization scope strings.
268
+
269
+ Configure admission reconstructs C3, C6 and C7 and compares the complete dispatch,
270
+ account, API version, request and timing policy. A keyed parent lookup requires a
271
+ V2 attachment with its actual current attempt, bound basis, complete retained C3
272
+ and published receipt event 3. The child must match that complete C3, raw attachment
273
+ request and opaque original bundle. Its period and both wall cutoffs equal the
274
+ parent's policy. Binding the child requires exactly the parent's canonical basis
275
+ JSON, including the original wall and monotonic origins. Stored-source reads and
276
+ duplicate operations recheck these links and refuse corrupt DATA without repair.
277
+
278
+ This parent link establishes DATA consistency. Runtime configure admission still
279
+ requires a fresh winning child reservation, the actual live parent owner and its
280
+ actual returned attachment acknowledgement custody. Stored rows and equal basis
281
+ JSON cannot reconstruct those capabilities. Source tests use an isolated component;
282
+ genuine Convex generation, deployment and provider execution remain unverified.
283
+
239
284
  `reserveAttempt` performs the first PREPARED-to-RESERVED transaction. Exactly one
240
285
  winning invocation receives `acquired`; an identical later request receives
241
286
  `existing` with the retained reservation. The result is DATA. Copying or loading
@@ -279,14 +324,20 @@ V2 event writes require the checked bound basis for that same operation and
279
324
  attempt. Events or a known receipt without a bound basis are corruption; they
280
325
  cannot be adopted as a fresh binding.
281
326
 
282
- `retainProviderAcknowledgement` reconstructs the complete attachment receipt
283
- from the original raw preparation, dispatch and stored response. It compares
327
+ `retainProviderAcknowledgement` reconstructs the complete attachment C3 or V2
328
+ configure C9 receipt from the checked source, dispatch and stored response. It compares
284
329
  the full receipt and applies the existing whole-output JSON and privacy rules.
330
+ Configure C9 retention preserves the complete provider snapshot, transport,
331
+ C7 request and consistency bindings, including absent versus null default settings.
332
+ It means `configure_acknowledged`; it does not establish pending or effective
333
+ replacement. V1 configure records retain their previous acknowledgement behavior.
285
334
  The transaction stores one owned receipt payload and a stable
286
335
  `knownAcknowledgement` reference. It does not append receipt event 3.
287
336
 
288
337
  A first retention must name the current history head, 2 or 3. When event 3
289
- exists, its complete request and receipt must match. An identical retry returns
338
+ exists, its complete request and receipt must match. Retention at head 2 does
339
+ not model or impose the size of a prospective receipt event 3; an actual event 3
340
+ must independently satisfy the event JSON bounds. An identical retry returns
290
341
  the original retention descriptor without writes. A caller that retained at
291
342
  head 2 can repeat that same request after matching event 3 is appended. A
292
343
  request for a future head refuses. Once a receipt is retained, event 3 must
@@ -303,7 +354,7 @@ hash. They never infer or repair ownership from its contents.
303
354
  For V2, complete owned history and any known receipt are also checked before
304
355
  successful create-existing, reserve-existing and bind-duplicate returns, append
305
356
  returns or writes, and all four queries below. These checks reconstruct the full
306
- C3 receipt and validate every retained source/event/receipt reference, payload
357
+ stage-specific C3 or C9 receipt and validate every retained source/event/receipt reference, payload
307
358
  owner and complete canonical receipt JSON. An absent sequence or an identical
308
359
  old event does not bypass corrupt known DATA. The acknowledgement getter reuses
309
360
  that validated receipt; it does not treat a matching binding alone as sufficient.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fantastic.dev/better-stripe",
3
- "version": "0.99.0",
3
+ "version": "0.101.0",
4
4
  "description": "Convex component for Stripe Accounts v2, subscriptions, metered billing and Connect marketplaces, with React workflows.",
5
5
  "keywords": [
6
6
  "stripe",
@@ -55,9 +55,33 @@ type AttemptCustody = {
55
55
  response: Readonly<{ body: unknown; status: number }> | null;
56
56
  settled: boolean;
57
57
  returnedACK: boolean;
58
+ returnedOutput?: unknown;
58
59
  reserved: boolean;
59
60
  };
60
61
  const attempts = new WeakMap<object, AttemptCustody>();
62
+ /** Exact successful return only; retained journal DATA never populates this reader. */
63
+ export function readInitialAttachAcknowledgement(token: object) {
64
+ need(arguments.length === 1);
65
+ readInitialLineage(token);
66
+ const attempt = attempts.get(token);
67
+ if (!attempt?.returnedACK || !attempt.settled) return null;
68
+ const owner = ownerForInitialLineage(token);
69
+ owner.check();
70
+ const output = attempt.returnedOutput;
71
+ const receipt = closed(output, [
72
+ "status",
73
+ "operationalAuthority",
74
+ "receipt",
75
+ ]).receipt;
76
+ owner.check();
77
+ return Object.freeze({
78
+ originalEntry: attempt.entry,
79
+ retainedPredicate: attempt.retainedPredicate,
80
+ freshPredicate: attempt.freshPredicate,
81
+ output,
82
+ receipt,
83
+ });
84
+ }
61
85
  /** Consumes only actual settled attempt custody; stored DATA cannot register it. */
62
86
  export function takeInitialRecoveryRecord(token: object) {
63
87
  need(arguments.length === 1);
@@ -457,7 +481,10 @@ function initialKernel(token: object | null) {
457
481
  const result = admitInitialOutput(receipt, prepared, request);
458
482
  OWNER.check();
459
483
  control.takePostQuarantine();
460
- if (attempt) attempt.returnedACK = true;
484
+ if (attempt) {
485
+ attempt.returnedOutput = result;
486
+ attempt.returnedACK = true;
487
+ }
461
488
  return result;
462
489
  } catch (error) {
463
490
  let live = false;