@fantastic.dev/better-stripe 0.110.0 → 0.112.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 (134) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts +564 -0
  4. package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/observation/freshActor.js +103 -21
  6. package/dist/client/billing/renewalAttach/internal/observation/freshActor.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts +18 -1
  8. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts.map +1 -1
  9. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js +54 -1
  10. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js.map +1 -1
  11. package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts +4 -0
  12. package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts.map +1 -1
  13. package/dist/client/billing/renewalAttach/internal/observation/invocation.js +1 -0
  14. package/dist/client/billing/renewalAttach/internal/observation/invocation.js.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts +4 -0
  16. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts.map +1 -1
  17. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js +6 -1
  18. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js.map +1 -1
  19. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts +38 -0
  20. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js +172 -0
  22. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js.map +1 -0
  23. package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts +135 -0
  24. package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts.map +1 -0
  25. package/dist/client/billing/renewalAttach/internal/observation/witnessData.js +143 -0
  26. package/dist/client/billing/renewalAttach/internal/observation/witnessData.js.map +1 -0
  27. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts +85 -0
  28. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts.map +1 -0
  29. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js +121 -0
  30. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js.map +1 -0
  31. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts +44 -0
  32. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts.map +1 -0
  33. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js +4 -0
  34. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js.map +1 -0
  35. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.d.ts +1 -1
  36. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts +21 -21
  37. package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.d.ts +3 -3
  38. package/dist/client/billing/renewalAttach/internal/producer/operationFactory.d.ts +1 -1
  39. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +84 -32
  40. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  41. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +26 -0
  42. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  43. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +84 -32
  44. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  45. package/dist/client/connect/payoutSyncTestHelpers.d.ts +26 -0
  46. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  47. package/dist/component/_generated/api.d.ts +24 -0
  48. package/dist/component/_generated/api.d.ts.map +1 -1
  49. package/dist/component/_generated/api.js.map +1 -1
  50. package/dist/component/_generated/component.d.ts +94 -10
  51. package/dist/component/_generated/component.d.ts.map +1 -1
  52. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  53. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  54. package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
  55. package/dist/component/balanceFunding/queries.d.ts +1 -1
  56. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  57. package/dist/component/earnings/triggers.d.ts +44 -0
  58. package/dist/component/earnings/triggers.d.ts.map +1 -1
  59. package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
  60. package/dist/component/renewalWitnesses/eligibility.d.ts +36 -0
  61. package/dist/component/renewalWitnesses/eligibility.d.ts.map +1 -0
  62. package/dist/component/renewalWitnesses/eligibility.js +60 -0
  63. package/dist/component/renewalWitnesses/eligibility.js.map +1 -0
  64. package/dist/component/renewalWitnesses/mutations.d.ts +45 -0
  65. package/dist/component/renewalWitnesses/mutations.d.ts.map +1 -0
  66. package/dist/component/renewalWitnesses/mutations.js +14 -0
  67. package/dist/component/renewalWitnesses/mutations.js.map +1 -0
  68. package/dist/component/renewalWitnesses/protocol.d.ts +75 -0
  69. package/dist/component/renewalWitnesses/protocol.d.ts.map +1 -0
  70. package/dist/component/renewalWitnesses/protocol.js +82 -0
  71. package/dist/component/renewalWitnesses/protocol.js.map +1 -0
  72. package/dist/component/renewalWitnesses/queries.d.ts +39 -0
  73. package/dist/component/renewalWitnesses/queries.d.ts.map +1 -0
  74. package/dist/component/renewalWitnesses/queries.js +11 -0
  75. package/dist/component/renewalWitnesses/queries.js.map +1 -0
  76. package/dist/component/renewalWitnesses/schema.d.ts +99 -0
  77. package/dist/component/renewalWitnesses/schema.d.ts.map +1 -0
  78. package/dist/component/renewalWitnesses/schema.js +36 -0
  79. package/dist/component/renewalWitnesses/schema.js.map +1 -0
  80. package/dist/component/renewalWitnesses/source.d.ts +22 -0
  81. package/dist/component/renewalWitnesses/source.d.ts.map +1 -0
  82. package/dist/component/renewalWitnesses/source.js +108 -0
  83. package/dist/component/renewalWitnesses/source.js.map +1 -0
  84. package/dist/component/schema.d.ts +42 -16
  85. package/dist/component/schema.js +2 -0
  86. package/dist/component/schema.js.map +1 -1
  87. package/dist/component/usage/allowance.fixtures.d.ts +42 -16
  88. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  89. package/dist/component/usageCredits/accounting.fixtures.d.ts +26 -0
  90. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  91. package/dist/shared/renewalWitness.d.ts +51 -0
  92. package/dist/shared/renewalWitness.d.ts.map +1 -0
  93. package/dist/shared/renewalWitness.js +127 -0
  94. package/dist/shared/renewalWitness.js.map +1 -0
  95. package/docs/renewal-witness-protocol.md +139 -0
  96. package/package.json +1 -1
  97. package/src/client/billing/renewalAttach/internal/observation/freshActor.ts +142 -19
  98. package/src/client/billing/renewalAttach/internal/observation/freshTransport.ts +90 -1
  99. package/src/client/billing/renewalAttach/internal/observation/invocation.ts +2 -0
  100. package/src/client/billing/renewalAttach/internal/observation/readerAuthorization.ts +6 -1
  101. package/src/client/billing/renewalAttach/internal/observation/witnessAcquisition.integration.test.ts +348 -0
  102. package/src/client/billing/renewalAttach/internal/observation/witnessActor.integration.test.ts +204 -0
  103. package/src/client/billing/renewalAttach/internal/observation/witnessAuthorization.ts +239 -0
  104. package/src/client/billing/renewalAttach/internal/observation/witnessCapabilities.integration.test.ts +231 -0
  105. package/src/client/billing/renewalAttach/internal/observation/witnessData.ts +189 -0
  106. package/src/client/billing/renewalAttach/internal/observation/witnessHistorical.integration.test.ts +98 -0
  107. package/src/client/billing/renewalAttach/internal/observation/witnessImmutable.integration.test.ts +78 -0
  108. package/src/client/billing/renewalAttach/internal/observation/witnessInvoice.integration.test.ts +85 -0
  109. package/src/client/billing/renewalAttach/internal/observation/witnessLifecycle.integration.test.ts +264 -0
  110. package/src/client/billing/renewalAttach/internal/observation/witnessOperation.ts +205 -0
  111. package/src/client/billing/renewalAttach/internal/observation/witnessProfile.integration.test.ts +93 -0
  112. package/src/client/billing/renewalAttach/internal/observation/witnessRPCControls.integration.test.ts +256 -0
  113. package/src/client/billing/renewalAttach/internal/operations/witnessProfiles.ts +58 -0
  114. package/src/client/billing/renewalAttach/internal/test-fixtures/invoiceObservation.ts +3 -1
  115. package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +8 -0
  116. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +18 -7
  117. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessHistory.ts +70 -0
  118. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessObservation.ts +353 -0
  119. package/src/component/_generated/api.ts +24 -0
  120. package/src/component/_generated/component.ts +98 -10
  121. package/src/component/renewalOperations/configureJournal.fixtures.ts +25 -3
  122. package/src/component/renewalWitnesses/bounds.test.ts +204 -0
  123. package/src/component/renewalWitnesses/codec.test.ts +84 -0
  124. package/src/component/renewalWitnesses/controls.test.ts +250 -0
  125. package/src/component/renewalWitnesses/eligibility.ts +78 -0
  126. package/src/component/renewalWitnesses/mutations.ts +17 -0
  127. package/src/component/renewalWitnesses/protocol.test.ts +63 -0
  128. package/src/component/renewalWitnesses/protocol.ts +103 -0
  129. package/src/component/renewalWitnesses/queries.ts +11 -0
  130. package/src/component/renewalWitnesses/routes.test.ts +154 -0
  131. package/src/component/renewalWitnesses/schema.ts +36 -0
  132. package/src/component/renewalWitnesses/source.ts +157 -0
  133. package/src/component/schema.ts +2 -0
  134. package/src/shared/renewalWitness.ts +179 -0
@@ -0,0 +1,39 @@
1
+ /** Trusted host component API. A fresh host read grant must precede any external release. */
2
+ export declare const readAuthorizedWitness: import("convex/server").RegisteredQuery<"public", {
3
+ identity: {
4
+ componentScope: string;
5
+ operationId: import("convex/values").GenericId<"renewalOperations">;
6
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
7
+ witnessId: string;
8
+ };
9
+ }, Promise<{
10
+ descriptor: {
11
+ version: 1;
12
+ identity: {
13
+ componentScope: string;
14
+ witnessId: string;
15
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
16
+ operationId: import("convex/values").GenericId<"renewalOperations">;
17
+ };
18
+ capturedSubject: string;
19
+ observedAtMs: number;
20
+ customerAccountId: string;
21
+ customerId: string;
22
+ livemode: boolean;
23
+ subscriptionId: string;
24
+ scheduleId: string;
25
+ observedItemId: string;
26
+ nativePeriod: Readonly<{
27
+ start: number;
28
+ end: number;
29
+ }>;
30
+ operationalAuthority: false;
31
+ authenticationEstablished: false;
32
+ publicDeliveryEstablished: false;
33
+ providerQualificationRequired: true;
34
+ payloadBinding: string;
35
+ witnessRowId: import("convex/values").GenericId<"renewalObservationWitnesses">;
36
+ };
37
+ payloadJSON: string;
38
+ } | null>>;
39
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/renewalWitnesses/queries.ts"],"names":[],"mappings":"AAKA,6FAA6F;AAC7F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIhC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { v } from "convex/values";
2
+ import { query } from "../_generated/server.js";
3
+ import { descriptor, identity } from "./schema.js";
4
+ import { readWitness } from "./protocol.js";
5
+ /** Trusted host component API. A fresh host read grant must precede any external release. */
6
+ export const readAuthorizedWitness = query({
7
+ args: { identity },
8
+ returns: v.union(v.null(), v.object({ descriptor, payloadJSON: v.string() })),
9
+ handler: (ctx, args) => readWitness(ctx, args.identity),
10
+ });
11
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/component/renewalWitnesses/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,6FAA6F;AAC7F,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;IACzC,IAAI,EAAE,EAAE,QAAQ,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC7E,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC;CACxD,CAAC,CAAC"}
@@ -0,0 +1,99 @@
1
+ export declare const identity: import("convex/values").VObject<{
2
+ componentScope: string;
3
+ operationId: import("convex/values").GenericId<"renewalOperations">;
4
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
5
+ witnessId: string;
6
+ }, {
7
+ componentScope: import("convex/values").VString<string, "required">;
8
+ witnessId: import("convex/values").VString<string, "required">;
9
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
10
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
11
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
12
+ export declare const descriptor: import("convex/values").VObject<{
13
+ authenticationEstablished: false;
14
+ capturedSubject: string;
15
+ customerAccountId: string;
16
+ customerId: string;
17
+ identity: {
18
+ componentScope: string;
19
+ operationId: import("convex/values").GenericId<"renewalOperations">;
20
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
21
+ witnessId: string;
22
+ };
23
+ livemode: boolean;
24
+ nativePeriod: {
25
+ end: number;
26
+ start: number;
27
+ };
28
+ observedAtMs: number;
29
+ observedItemId: string;
30
+ operationalAuthority: false;
31
+ payloadBinding: string;
32
+ providerQualificationRequired: true;
33
+ publicDeliveryEstablished: false;
34
+ scheduleId: string;
35
+ subscriptionId: string;
36
+ version: 1;
37
+ witnessRowId: import("convex/values").GenericId<"renewalObservationWitnesses">;
38
+ }, {
39
+ version: import("convex/values").VLiteral<1, "required">;
40
+ witnessRowId: import("convex/values").VId<import("convex/values").GenericId<"renewalObservationWitnesses">, "required">;
41
+ identity: import("convex/values").VObject<{
42
+ componentScope: string;
43
+ operationId: import("convex/values").GenericId<"renewalOperations">;
44
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
45
+ witnessId: string;
46
+ }, {
47
+ componentScope: import("convex/values").VString<string, "required">;
48
+ witnessId: import("convex/values").VString<string, "required">;
49
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
50
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
51
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
52
+ payloadBinding: import("convex/values").VString<string, "required">;
53
+ capturedSubject: import("convex/values").VString<string, "required">;
54
+ observedAtMs: import("convex/values").VFloat64<number, "required">;
55
+ customerAccountId: import("convex/values").VString<string, "required">;
56
+ customerId: import("convex/values").VString<string, "required">;
57
+ livemode: import("convex/values").VBoolean<boolean, "required">;
58
+ subscriptionId: import("convex/values").VString<string, "required">;
59
+ scheduleId: import("convex/values").VString<string, "required">;
60
+ observedItemId: import("convex/values").VString<string, "required">;
61
+ nativePeriod: import("convex/values").VObject<{
62
+ end: number;
63
+ start: number;
64
+ }, {
65
+ start: import("convex/values").VFloat64<number, "required">;
66
+ end: import("convex/values").VFloat64<number, "required">;
67
+ }, "required", "end" | "start">;
68
+ operationalAuthority: import("convex/values").VLiteral<false, "required">;
69
+ authenticationEstablished: import("convex/values").VLiteral<false, "required">;
70
+ publicDeliveryEstablished: import("convex/values").VLiteral<false, "required">;
71
+ providerQualificationRequired: import("convex/values").VLiteral<true, "required">;
72
+ }, "required", "authenticationEstablished" | "capturedSubject" | "customerAccountId" | "customerId" | "identity" | "identity.componentScope" | "identity.operationId" | "identity.parentOperationId" | "identity.witnessId" | "livemode" | "nativePeriod" | "nativePeriod.end" | "nativePeriod.start" | "observedAtMs" | "observedItemId" | "operationalAuthority" | "payloadBinding" | "providerQualificationRequired" | "publicDeliveryEstablished" | "scheduleId" | "subscriptionId" | "version" | "witnessRowId">;
73
+ export declare const witnessesTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
74
+ identity: {
75
+ componentScope: string;
76
+ operationId: import("convex/values").GenericId<"renewalOperations">;
77
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
78
+ witnessId: string;
79
+ };
80
+ payloadBinding: string;
81
+ payloadJSON: string;
82
+ }, {
83
+ identity: import("convex/values").VObject<{
84
+ componentScope: string;
85
+ operationId: import("convex/values").GenericId<"renewalOperations">;
86
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
87
+ witnessId: string;
88
+ }, {
89
+ componentScope: import("convex/values").VString<string, "required">;
90
+ witnessId: import("convex/values").VString<string, "required">;
91
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
92
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
93
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
94
+ payloadJSON: import("convex/values").VString<string, "required">;
95
+ payloadBinding: import("convex/values").VString<string, "required">;
96
+ }, "required", "identity" | "identity.componentScope" | "identity.operationId" | "identity.parentOperationId" | "identity.witnessId" | "payloadBinding" | "payloadJSON">, {
97
+ by_componentScope_and_witnessId: ["identity.componentScope", "identity.witnessId", "_creationTime"];
98
+ }, {}, {}>;
99
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/renewalWitnesses/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;oFAKnB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qfAkBrB,CAAC;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;UAOzB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { defineTable } from "convex/server";
2
+ import { v } from "convex/values";
3
+ export const identity = v.object({
4
+ componentScope: v.string(),
5
+ witnessId: v.string(),
6
+ parentOperationId: v.id("renewalOperations"),
7
+ operationId: v.id("renewalOperations"),
8
+ });
9
+ export const descriptor = v.object({
10
+ version: v.literal(1),
11
+ witnessRowId: v.id("renewalObservationWitnesses"),
12
+ identity,
13
+ payloadBinding: v.string(),
14
+ capturedSubject: v.string(),
15
+ observedAtMs: v.number(),
16
+ customerAccountId: v.string(),
17
+ customerId: v.string(),
18
+ livemode: v.boolean(),
19
+ subscriptionId: v.string(),
20
+ scheduleId: v.string(),
21
+ observedItemId: v.string(),
22
+ nativePeriod: v.object({ start: v.number(), end: v.number() }),
23
+ operationalAuthority: v.literal(false),
24
+ authenticationEstablished: v.literal(false),
25
+ publicDeliveryEstablished: v.literal(false),
26
+ providerQualificationRequired: v.literal(true),
27
+ });
28
+ export const witnessesTable = defineTable({
29
+ identity,
30
+ payloadJSON: v.string(),
31
+ payloadBinding: v.string(),
32
+ }).index("by_componentScope_and_witnessId", [
33
+ "identity.componentScope",
34
+ "identity.witnessId",
35
+ ]);
36
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/renewalWitnesses/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EA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,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC,KAAK,CAAC,iCAAiC,EAAE;IAC1C,yBAAyB;IACzB,oBAAoB;CACrB,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { QueryCtx } from "../_generated/server.js";
2
+ import { type WitnessIdentity, type WitnessPayload } from "../../shared/renewalWitness.js";
3
+ type Reader = Pick<QueryCtx, "db">;
4
+ export declare function normalizedWitnessIdentity(ctx: Reader, raw: WitnessIdentity): {
5
+ componentScope: string;
6
+ witnessId: string;
7
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
8
+ operationId: import("convex/values").GenericId<"renewalOperations">;
9
+ };
10
+ /** Reload complete actual chains/owners on every boundary; never trust stored flags. */
11
+ export declare function validateWitnessSource(ctx: Reader, value: WitnessPayload): Promise<{
12
+ identity: {
13
+ componentScope: string;
14
+ witnessId: string;
15
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
16
+ operationId: import("convex/values").GenericId<"renewalOperations">;
17
+ };
18
+ configuration: unknown;
19
+ dispatch: unknown;
20
+ }>;
21
+ export {};
22
+ //# sourceMappingURL=source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/component/renewalWitnesses/source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAWxD,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAExC,KAAK,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACnC,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe;;;;;EAY1E;AAwFD,wFAAwF;AACxF,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,cAAc;;;;;;;;;GAgCtB"}
@@ -0,0 +1,108 @@
1
+ import { readCheckedOperation } from "../renewalOperations/operationContext.js";
2
+ import { currentReservation, eventChain, validateV2KnownAcknowledgement, } from "../renewalOperations/helpers.js";
3
+ import { sameJSON } from "../renewalOperations/attachValidation.js";
4
+ import { validateConfigureAcknowledgement } from "../renewalOperations/configureAcknowledgement.js";
5
+ import { constructRenewalConfigurationReceiptV2 } from "../../client/billing/renewalV2/index.js";
6
+ import { witnessIdentity, witnessNeed as need, witnessObject as object, witnessClosed as closed, } from "../../shared/renewalWitness.js";
7
+ export function normalizedWitnessIdentity(ctx, raw) {
8
+ const value = witnessIdentity(raw);
9
+ const parentOperationId = ctx.db.normalizeId("renewalOperations", value.parentOperationId);
10
+ const operationId = ctx.db.normalizeId("renewalOperations", value.operationId);
11
+ need(parentOperationId && operationId);
12
+ return { ...value, parentOperationId, operationId };
13
+ }
14
+ async function checkedStage(ctx, operationId, stage) {
15
+ const row = await ctx.db.get("renewalOperations", operationId);
16
+ need(row && row.recordVersion === 2);
17
+ const full = await readCheckedOperation(ctx, row);
18
+ const reservation = await currentReservation(ctx, row, full);
19
+ need(reservation &&
20
+ "recordVersion" in reservation &&
21
+ reservation.stage === stage);
22
+ const events = await eventChain(ctx, reservation);
23
+ const known = await validateV2KnownAcknowledgement(ctx, row, full, reservation, events);
24
+ if (stage === "configure" && events.length > 0) {
25
+ const original = object(JSON.parse(full.json));
26
+ const request = object(original.configureRecord).request;
27
+ need(sameJSON(JSON.parse(events[0].dataJSON), {
28
+ event: "dispatch",
29
+ stage: "configure",
30
+ request,
31
+ }));
32
+ if (events.length === 3)
33
+ need(known);
34
+ if (events.length >= 2 && !known) {
35
+ const response = closed(JSON.parse(events[1].dataJSON), [
36
+ "event",
37
+ "stage",
38
+ "request",
39
+ "body",
40
+ "transport",
41
+ ]);
42
+ need(response.event === "response" &&
43
+ response.stage === "configure" &&
44
+ sameJSON(response.request, request));
45
+ const receipt = await constructRenewalConfigurationReceiptV2({
46
+ configuration: object(original.configureRecord)
47
+ .configuration,
48
+ actualDispatch: original.dispatch,
49
+ providerSnapshot: object(response.body),
50
+ transport: object(response.transport),
51
+ });
52
+ await validateConfigureAcknowledgement(full, reservation, events, JSON.stringify(receipt));
53
+ }
54
+ }
55
+ if (stage === "attach")
56
+ need(events.length === 3 && known && row.initialBasis);
57
+ const { recordJSON: _recordJSON, ...summary } = reservation;
58
+ void _recordJSON;
59
+ const acknowledgement = known === null
60
+ ? null
61
+ : {
62
+ retention: {
63
+ status: "retained",
64
+ operationId,
65
+ ...known.retained,
66
+ },
67
+ receipt: JSON.parse(known.admitted.receiptJSON),
68
+ };
69
+ return {
70
+ record: JSON.parse(full.json),
71
+ reservation: summary,
72
+ acknowledgement,
73
+ initialBasis: row.initialBasis,
74
+ };
75
+ }
76
+ /** Reload complete actual chains/owners on every boundary; never trust stored flags. */
77
+ export async function validateWitnessSource(ctx, value) {
78
+ const identity = normalizedWitnessIdentity(ctx, value.identity);
79
+ const parent = await checkedStage(ctx, identity.parentOperationId, "attach");
80
+ const child = await checkedStage(ctx, identity.operationId, "configure");
81
+ need(object(child.record.parentAttachment).operationId ===
82
+ identity.parentOperationId);
83
+ need(parent.initialBasis && parent.acknowledgement);
84
+ const includeC9 = value.source.configure.acknowledgement !== null;
85
+ if (includeC9)
86
+ need(child.acknowledgement);
87
+ const expected = {
88
+ parent: {
89
+ record: parent.record,
90
+ reservation: parent.reservation,
91
+ initialBasis: parent.initialBasis,
92
+ acknowledgement: parent.acknowledgement,
93
+ },
94
+ configure: {
95
+ record: child.record,
96
+ reservation: child.reservation,
97
+ acknowledgement: includeC9 ? child.acknowledgement : null,
98
+ },
99
+ };
100
+ need(sameJSON(value.source, expected));
101
+ // A later valid C9 is checked above but cannot be injected into captured-null DATA.
102
+ return {
103
+ identity,
104
+ configuration: object(child.record.configureRecord).configuration,
105
+ dispatch: child.record.dispatch,
106
+ };
107
+ }
108
+ //# sourceMappingURL=source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../src/component/renewalWit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CAAC;AACJ,CAAC"}
@@ -1,4 +1,30 @@
1
1
  declare const _default: import("convex/server").SchemaDefinition<{
2
+ renewalObservationWitnesses: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
+ identity: {
4
+ componentScope: string;
5
+ operationId: import("convex/values").GenericId<"renewalOperations">;
6
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
7
+ witnessId: string;
8
+ };
9
+ payloadBinding: string;
10
+ payloadJSON: string;
11
+ }, {
12
+ identity: import("convex/values").VObject<{
13
+ componentScope: string;
14
+ operationId: import("convex/values").GenericId<"renewalOperations">;
15
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
16
+ witnessId: string;
17
+ }, {
18
+ componentScope: import("convex/values").VString<string, "required">;
19
+ witnessId: import("convex/values").VString<string, "required">;
20
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
21
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
22
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
23
+ payloadJSON: import("convex/values").VString<string, "required">;
24
+ payloadBinding: import("convex/values").VString<string, "required">;
25
+ }, "required", "identity" | "identity.componentScope" | "identity.operationId" | "identity.parentOperationId" | "identity.witnessId" | "payloadBinding" | "payloadJSON">, {
26
+ by_componentScope_and_witnessId: ["identity.componentScope", "identity.witnessId", "_creationTime"];
27
+ }, {}, {}>;
2
28
  renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
29
  activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
4
30
  authorizationId: string;
@@ -2631,6 +2657,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
2631
2657
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2632
2658
  requestKey: string;
2633
2659
  result?: {
2660
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2661
+ retryable: false;
2662
+ status: "conflict";
2663
+ } | {
2664
+ reason: "policy_invalid";
2665
+ retryable: false;
2666
+ status: "rejected";
2667
+ } | {
2634
2668
  operation: {
2635
2669
  accountId: string;
2636
2670
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2641,14 +2675,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
2641
2675
  } | {
2642
2676
  enabled: boolean;
2643
2677
  status: "unchanged";
2644
- } | {
2645
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2646
- retryable: false;
2647
- status: "conflict";
2648
- } | {
2649
- reason: "policy_invalid";
2650
- retryable: false;
2651
- status: "rejected";
2652
2678
  } | {
2653
2679
  reason: "provider_pending";
2654
2680
  retryable: true;
@@ -2659,6 +2685,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
2659
2685
  payload: import("convex/values").VString<string, "required">;
2660
2686
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
2661
2687
  result: import("convex/values").VUnion<{
2688
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2689
+ retryable: false;
2690
+ status: "conflict";
2691
+ } | {
2692
+ reason: "policy_invalid";
2693
+ retryable: false;
2694
+ status: "rejected";
2695
+ } | {
2662
2696
  operation: {
2663
2697
  accountId: string;
2664
2698
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2669,14 +2703,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
2669
2703
  } | {
2670
2704
  enabled: boolean;
2671
2705
  status: "unchanged";
2672
- } | {
2673
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2674
- retryable: false;
2675
- status: "conflict";
2676
- } | {
2677
- reason: "policy_invalid";
2678
- retryable: false;
2679
- status: "rejected";
2680
2706
  } | {
2681
2707
  reason: "provider_pending";
2682
2708
  retryable: true;
@@ -36,7 +36,9 @@ import { accountsTable } from "./core/schema";
36
36
  import { pricesTable, productsTable } from "./products/schema";
37
37
  import { webhookEventsTable } from "./webhooks/schema";
38
38
  import { eventsTable as renewalOperationEvents, attemptsTable as renewalOperationAttempts, operationsTable as renewalOperations, payloadsTable as renewalOperationPayloads, } from "./renewalOperations/schema.js";
39
+ import { witnessesTable as renewalObservationWitnesses } from "./renewalWitnesses/schema.js";
39
40
  export default defineSchema({
41
+ renewalObservationWitnesses,
40
42
  renewalOperations,
41
43
  renewalOperationAttempts,
42
44
  renewalOperationEvents,
@@ -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,IAAI,mBAAmB,EACpC,cAAc,IAAI,oBAAoB,EACtC,WAAW,IAAI,iBAAiB,EAChC,YAAY,IAAI,kBAAkB,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,IAAI,yBAAyB,EAC1C,YAAY,IAAI,wBAAwB,EACxC,UAAU,IAAI,sBAAsB,EACpC,YAAY,IAAI,wBAAwB,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,YAAY,IAAI,oBAAoB,EACpC,iBAAiB,IAAI,yBAAyB,GAC/C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB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B;IACrC,mBAAmB,EAAE,wBAAwB;IAC7C,OAAO;IACP,QAAQ,EAAE,aAAa;IACvB,eAAe,EAAE,oBAAoB;IAErC,WAAW;IACX,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IAEnB,UAAU;IACV,aAAa,EAAE,kBAAkB;IACjC,gBAAgB,EAAE,qBAAqB;IACvC,QAAQ,EAAE,aAAa;IAEvB,UAAU;IACV,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,YAAY;IACrB,iBAAiB,EAAE,sBAAsB;IACzC,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,cAAc;IACzB,mBAAmB,EAAE,wBAAwB;IAE7C,WAAW;IACX,aAAa,EAAE,kBAAkB;CAClC,CAAC,CAAC"}
@@ -1,5 +1,31 @@
1
1
  export declare function setupAllowance(): Promise<{
2
2
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3
+ renewalObservationWitnesses: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
+ identity: {
5
+ componentScope: string;
6
+ operationId: import("convex/values").GenericId<"renewalOperations">;
7
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
8
+ witnessId: string;
9
+ };
10
+ payloadBinding: string;
11
+ payloadJSON: string;
12
+ }, {
13
+ identity: import("convex/values").VObject<{
14
+ componentScope: string;
15
+ operationId: import("convex/values").GenericId<"renewalOperations">;
16
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
17
+ witnessId: string;
18
+ }, {
19
+ componentScope: import("convex/values").VString<string, "required">;
20
+ witnessId: import("convex/values").VString<string, "required">;
21
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
22
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
23
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
24
+ payloadJSON: import("convex/values").VString<string, "required">;
25
+ payloadBinding: import("convex/values").VString<string, "required">;
26
+ }, "required", "identity" | "identity.componentScope" | "identity.operationId" | "identity.parentOperationId" | "identity.witnessId" | "payloadBinding" | "payloadJSON">, {
27
+ by_componentScope_and_witnessId: ["identity.componentScope", "identity.witnessId", "_creationTime"];
28
+ }, {}, {}>;
3
29
  renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
30
  activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
5
31
  authorizationId: string;
@@ -2632,6 +2658,14 @@ export declare function setupAllowance(): Promise<{
2632
2658
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2633
2659
  requestKey: string;
2634
2660
  result?: {
2661
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2662
+ retryable: false;
2663
+ status: "conflict";
2664
+ } | {
2665
+ reason: "policy_invalid";
2666
+ retryable: false;
2667
+ status: "rejected";
2668
+ } | {
2635
2669
  operation: {
2636
2670
  accountId: string;
2637
2671
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2642,14 +2676,6 @@ export declare function setupAllowance(): Promise<{
2642
2676
  } | {
2643
2677
  enabled: boolean;
2644
2678
  status: "unchanged";
2645
- } | {
2646
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2647
- retryable: false;
2648
- status: "conflict";
2649
- } | {
2650
- reason: "policy_invalid";
2651
- retryable: false;
2652
- status: "rejected";
2653
2679
  } | {
2654
2680
  reason: "provider_pending";
2655
2681
  retryable: true;
@@ -2660,6 +2686,14 @@ export declare function setupAllowance(): Promise<{
2660
2686
  payload: import("convex/values").VString<string, "required">;
2661
2687
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
2662
2688
  result: import("convex/values").VUnion<{
2689
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2690
+ retryable: false;
2691
+ status: "conflict";
2692
+ } | {
2693
+ reason: "policy_invalid";
2694
+ retryable: false;
2695
+ status: "rejected";
2696
+ } | {
2663
2697
  operation: {
2664
2698
  accountId: string;
2665
2699
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2670,14 +2704,6 @@ export declare function setupAllowance(): Promise<{
2670
2704
  } | {
2671
2705
  enabled: boolean;
2672
2706
  status: "unchanged";
2673
- } | {
2674
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2675
- retryable: false;
2676
- status: "conflict";
2677
- } | {
2678
- reason: "policy_invalid";
2679
- retryable: false;
2680
- status: "rejected";
2681
2707
  } | {
2682
2708
  reason: "provider_pending";
2683
2709
  retryable: true;
@@ -1 +1 @@
1
- {"version":3,"file":"allowance.fixtures.d.ts","sourceRoot":"","sources":["../../../src/component/usage/allowance.fixtures.ts"],"names":[],"mappings":"AAiBA,wBAAsB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAS5B,GAAG;gBACH,OAAO;gBACP,KAAK;gBACL,IAAI;oBAAI,IAAI;oBAAU,SAAS;;gBAC/B,IAAI;oBAAI,QAAQ;oBAAS,iBAAiB;;gBAC1C,gBAAgB;gBAChB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuBC,KAAK;YAAO,GAAG;;;;;;;;;;;;;;;YAxClB,IAAI;YAAU,QAAQ;;;GA6DhC"}
@@ -1,5 +1,31 @@
1
1
  export declare function setupCredits(): Promise<{
2
2
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
3
+ renewalObservationWitnesses: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
+ identity: {
5
+ componentScope: string;
6
+ operationId: import("convex/values").GenericId<"renewalOperations">;
7
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
8
+ witnessId: string;
9
+ };
10
+ payloadBinding: string;
11
+ payloadJSON: string;
12
+ }, {
13
+ identity: import("convex/values").VObject<{
14
+ componentScope: string;
15
+ operationId: import("convex/values").GenericId<"renewalOperations">;
16
+ parentOperationId: import("convex/values").GenericId<"renewalOperations">;
17
+ witnessId: string;
18
+ }, {
19
+ componentScope: import("convex/values").VString<string, "required">;
20
+ witnessId: import("convex/values").VString<string, "required">;
21
+ parentOperationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
22
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
23
+ }, "required", "componentScope" | "operationId" | "parentOperationId" | "witnessId">;
24
+ payloadJSON: import("convex/values").VString<string, "required">;
25
+ payloadBinding: import("convex/values").VString<string, "required">;
26
+ }, "required", "identity" | "identity.componentScope" | "identity.operationId" | "identity.parentOperationId" | "identity.witnessId" | "payloadBinding" | "payloadJSON">, {
27
+ by_componentScope_and_witnessId: ["identity.componentScope", "identity.witnessId", "_creationTime"];
28
+ }, {}, {}>;
3
29
  renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
4
30
  activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
5
31
  authorizationId: string;