@fantastic.dev/better-stripe 0.91.0 → 0.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +6 -0
  4. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/configure/actor.js +46 -56
  6. package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts +3 -0
  8. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
  10. package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -1
  12. package/dist/client/billing/renewalAttach/internal/observation/actor.js +25 -4
  13. package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -1
  14. package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/observation/capture.js +3 -2
  16. package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -1
  17. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
  18. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
  20. package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +5 -0
  22. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -1
  23. package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -1
  24. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +30 -0
  25. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -0
  26. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +113 -0
  27. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -0
  28. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +562 -0
  29. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  30. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +281 -0
  31. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  32. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +562 -0
  33. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  34. package/dist/client/connect/payoutSyncTestHelpers.d.ts +281 -0
  35. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  36. package/dist/client/index.d.ts +3 -2
  37. package/dist/client/index.d.ts.map +1 -1
  38. package/dist/client/index.js +16 -3
  39. package/dist/client/index.js.map +1 -1
  40. package/dist/component/_generated/api.d.ts +6 -0
  41. package/dist/component/_generated/api.d.ts.map +1 -1
  42. package/dist/component/_generated/api.js.map +1 -1
  43. package/dist/component/_generated/component.d.ts +406 -0
  44. package/dist/component/_generated/component.d.ts.map +1 -1
  45. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  46. package/dist/component/earnings/triggers.d.ts +294 -0
  47. package/dist/component/earnings/triggers.d.ts.map +1 -1
  48. package/dist/component/payoutRelease/queries.d.ts +2 -2
  49. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  50. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  51. package/dist/component/renewalOperations/helpers.d.ts +236 -0
  52. package/dist/component/renewalOperations/helpers.d.ts.map +1 -0
  53. package/dist/component/renewalOperations/helpers.js +457 -0
  54. package/dist/component/renewalOperations/helpers.js.map +1 -0
  55. package/dist/component/renewalOperations/mutations.d.ts +252 -0
  56. package/dist/component/renewalOperations/mutations.d.ts.map +1 -0
  57. package/dist/component/renewalOperations/mutations.js +340 -0
  58. package/dist/component/renewalOperations/mutations.js.map +1 -0
  59. package/dist/component/renewalOperations/queries.d.ts +163 -0
  60. package/dist/component/renewalOperations/queries.d.ts.map +1 -0
  61. package/dist/component/renewalOperations/queries.js +167 -0
  62. package/dist/component/renewalOperations/queries.js.map +1 -0
  63. package/dist/component/renewalOperations/schema.d.ts +1988 -0
  64. package/dist/component/renewalOperations/schema.d.ts.map +1 -0
  65. package/dist/component/renewalOperations/schema.js +227 -0
  66. package/dist/component/renewalOperations/schema.js.map +1 -0
  67. package/dist/component/schema.d.ts +281 -0
  68. package/dist/component/schema.js +5 -0
  69. package/dist/component/schema.js.map +1 -1
  70. package/dist/component/usage/allowance.fixtures.d.ts +281 -0
  71. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  72. package/dist/component/usageCredits/accounting.fixtures.d.ts +281 -0
  73. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  74. package/dist/shared/renewalOperationJournal.d.ts +43 -0
  75. package/dist/shared/renewalOperationJournal.d.ts.map +1 -0
  76. package/dist/shared/renewalOperationJournal.js +294 -0
  77. package/dist/shared/renewalOperationJournal.js.map +1 -0
  78. package/docs/renewal-context-reads.md +152 -0
  79. package/docs/renewal-material-observation.md +32 -11
  80. package/package.json +1 -1
  81. package/src/client/billing/renewalAttach/internal/configure/actor.ts +63 -52
  82. package/src/client/billing/renewalAttach/internal/configure/ownedContinuation.ts +56 -0
  83. package/src/client/billing/renewalAttach/internal/observation/actor.ts +46 -3
  84. package/src/client/billing/renewalAttach/internal/observation/capture.ts +3 -2
  85. package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
  86. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
  87. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
  88. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
  89. package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -0
  90. package/src/client/billing/renewalAttach/internal/observation/types.ts +5 -0
  91. package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +380 -0
  92. package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +155 -0
  93. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +5 -1
  94. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +12 -1
  95. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
  96. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +8 -0
  97. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +10 -23
  98. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
  99. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
  100. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
  101. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
  102. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
  103. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
  104. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
  105. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
  106. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
  107. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
  108. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -0
  109. package/src/client/index.ts +24 -3
  110. package/src/component/_generated/api.ts +6 -0
  111. package/src/component/_generated/component.ts +450 -0
  112. package/src/component/renewalOperations/acknowledgement.fixtures.ts +552 -0
  113. package/src/component/renewalOperations/acknowledgement.test.ts +573 -0
  114. package/src/component/renewalOperations/acknowledgementReads.test.ts +442 -0
  115. package/src/component/renewalOperations/acknowledgementV2.test.ts +493 -0
  116. package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +373 -0
  117. package/src/component/renewalOperations/basisBinding.test.ts +567 -0
  118. package/src/component/renewalOperations/basisLifecycle.test.ts +569 -0
  119. package/src/component/renewalOperations/boundHistory.test.ts +474 -0
  120. package/src/component/renewalOperations/helpers.ts +592 -0
  121. package/src/component/renewalOperations/historyReads.test.ts +595 -0
  122. package/src/component/renewalOperations/initialBasis.test.ts +578 -0
  123. package/src/component/renewalOperations/journal.test.ts +567 -0
  124. package/src/component/renewalOperations/mutations.ts +456 -0
  125. package/src/component/renewalOperations/payload.test.ts +589 -0
  126. package/src/component/renewalOperations/payloadEncoding.test.ts +592 -0
  127. package/src/component/renewalOperations/queries.ts +204 -0
  128. package/src/component/renewalOperations/schema.ts +268 -0
  129. package/src/component/renewalOperations/timingPolicy.fixtures.ts +193 -0
  130. package/src/component/renewalOperations/timingPolicy.test.ts +523 -0
  131. package/src/component/schema.ts +11 -0
  132. package/src/shared/renewalOperationJournal.ts +333 -0
@@ -60,6 +60,22 @@ export declare const phaseRef: import("convex/values").VObject<{
60
60
  }, "required", "accountId" | "definitionVersion" | "operationId" | "phase" | "providerApiVersion" | "providerKey" | "scopeKey" | "stripeSubscriptionId" | "version">;
61
61
  export type FundingPhaseRef = Infer<typeof phaseRef>;
62
62
  export declare const workflowStartResult: import("convex/values").VUnion<{
63
+ reason: "history_incomplete" | "provider_outcome_unknown";
64
+ retryable: false;
65
+ status: "unknown";
66
+ } | {
67
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
68
+ retryable: false;
69
+ status: "conflict";
70
+ } | {
71
+ reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
72
+ retryable: false;
73
+ status: "rejected";
74
+ } | {
75
+ reason: "provider_pending";
76
+ retryable: true;
77
+ status: "not_ready";
78
+ } | {
63
79
  operation: {
64
80
  accountId: string;
65
81
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -76,22 +92,6 @@ export declare const workflowStartResult: import("convex/values").VUnion<{
76
92
  version: number;
77
93
  };
78
94
  status: "canceled";
79
- } | {
80
- reason: "history_incomplete" | "provider_outcome_unknown";
81
- retryable: false;
82
- status: "unknown";
83
- } | {
84
- reason: "identity_changed" | "revision_changed" | "scope_busy";
85
- retryable: false;
86
- status: "conflict";
87
- } | {
88
- reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
89
- retryable: false;
90
- status: "rejected";
91
- } | {
92
- reason: "provider_pending";
93
- retryable: true;
94
- status: "not_ready";
95
95
  }, [import("convex/values").VObject<{
96
96
  operation: {
97
97
  accountId: string;
@@ -2005,6 +2005,153 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
2005
2005
  searchIndexes: {};
2006
2006
  vectorIndexes: {};
2007
2007
  };
2008
+ renewalOperationAttempts: {
2009
+ document: {
2010
+ _creationTime: number;
2011
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
2012
+ accountJSON: string;
2013
+ apiVersion: string;
2014
+ authorizationId: string;
2015
+ authorizationRevision: number;
2016
+ authorizationScope: string;
2017
+ basisJSON: string;
2018
+ committedRevision: 1;
2019
+ firstDispatchedAt: number;
2020
+ key: string;
2021
+ lastSequence: 0 | 1 | 2 | 3;
2022
+ logicalOperationId: string;
2023
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2024
+ ordinal: 1;
2025
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2026
+ preparedRevision: 0;
2027
+ requestBinding: string;
2028
+ stage: "attach" | "configure";
2029
+ } | {
2030
+ _creationTime: number;
2031
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
2032
+ accountJSON: string;
2033
+ apiVersion: string;
2034
+ authorizationId: string;
2035
+ authorizationRevision: number;
2036
+ authorizationScope: string;
2037
+ committedRevision: 1;
2038
+ firstDispatchedAt: number;
2039
+ key: string;
2040
+ lastSequence: 0 | 1 | 2 | 3;
2041
+ logicalOperationId: string;
2042
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2043
+ ordinal: 1;
2044
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2045
+ preparedRevision: 0;
2046
+ recordVersion: 2;
2047
+ requestBinding: string;
2048
+ stage: "attach";
2049
+ timingPolicyJSON: string;
2050
+ };
2051
+ fieldPaths: "_id" | ("_creationTime" | "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON");
2052
+ indexes: {
2053
+ by_id: ["_id"];
2054
+ by_creation_time: ["_creationTime"];
2055
+ by_operationId: ["operationId", "_creationTime"];
2056
+ };
2057
+ searchIndexes: {};
2058
+ vectorIndexes: {};
2059
+ };
2060
+ renewalOperationEvents: {
2061
+ document: {
2062
+ _creationTime: number;
2063
+ _id: import("convex/values").GenericId<"renewalOperationEvents">;
2064
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
2065
+ binding: string;
2066
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2067
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2068
+ sequence: 1 | 2 | 3;
2069
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2070
+ stage: "attach" | "configure";
2071
+ };
2072
+ fieldPaths: "_id" | ("_creationTime" | "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage");
2073
+ indexes: {
2074
+ by_id: ["_id"];
2075
+ by_creation_time: ["_creationTime"];
2076
+ by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
2077
+ };
2078
+ searchIndexes: {};
2079
+ vectorIndexes: {};
2080
+ };
2081
+ renewalOperationPayloads: {
2082
+ document: {
2083
+ _creationTime: number;
2084
+ _id: import("convex/values").GenericId<"renewalOperationPayloads">;
2085
+ codecVersion: 1;
2086
+ json: string;
2087
+ owner?: {
2088
+ kind: "operation";
2089
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2090
+ } | {
2091
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
2092
+ kind: "event";
2093
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2094
+ sequence: 1 | 2 | 3;
2095
+ stage: "attach" | "configure";
2096
+ } | {
2097
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
2098
+ kind: "receipt";
2099
+ operationId: import("convex/values").GenericId<"renewalOperations">;
2100
+ stage: "attach" | "configure";
2101
+ } | undefined;
2102
+ };
2103
+ fieldPaths: "_id" | ("_creationTime" | "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage");
2104
+ indexes: {
2105
+ by_id: ["_id"];
2106
+ by_creation_time: ["_creationTime"];
2107
+ };
2108
+ searchIndexes: {};
2109
+ vectorIndexes: {};
2110
+ };
2111
+ renewalOperations: {
2112
+ document: {
2113
+ _creationTime: number;
2114
+ _id: import("convex/values").GenericId<"renewalOperations">;
2115
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
2116
+ authorizationId: string;
2117
+ authorizationRevision: number;
2118
+ authorizationScope: string;
2119
+ initialBasis?: {
2120
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
2121
+ basisJSON: string;
2122
+ policyJSON: string;
2123
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2124
+ stage: "attach";
2125
+ version: 1;
2126
+ } | undefined;
2127
+ knownAcknowledgement?: {
2128
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
2129
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
2130
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2131
+ receiptBinding: string;
2132
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2133
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
2134
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2135
+ schemaVersion: 1;
2136
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2137
+ stage: "attach";
2138
+ } | undefined;
2139
+ logicalOperationId: string;
2140
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
2141
+ recordVersion?: 2 | undefined;
2142
+ requestBinding: string;
2143
+ revision: 0 | 1;
2144
+ state: "PREPARED" | "RESERVED";
2145
+ };
2146
+ fieldPaths: "_id" | ("_creationTime" | "activeAttemptId" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "initialBasis" | "initialBasis.attemptId" | "initialBasis.basisJSON" | "initialBasis.policyJSON" | "initialBasis.sourcePayloadId" | "initialBasis.stage" | "initialBasis.version" | "knownAcknowledgement" | "knownAcknowledgement.attemptId" | "knownAcknowledgement.dispatchEventId" | "knownAcknowledgement.dispatchPayloadId" | "knownAcknowledgement.receiptBinding" | "knownAcknowledgement.receiptPayloadId" | "knownAcknowledgement.responseEventId" | "knownAcknowledgement.responsePayloadId" | "knownAcknowledgement.schemaVersion" | "knownAcknowledgement.sourcePayloadId" | "knownAcknowledgement.stage" | "logicalOperationId" | "payloadId" | "recordVersion" | "requestBinding" | "revision" | "state");
2147
+ indexes: {
2148
+ by_id: ["_id"];
2149
+ by_creation_time: ["_creationTime"];
2150
+ by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
2151
+ };
2152
+ searchIndexes: {};
2153
+ vectorIndexes: {};
2154
+ };
2008
2155
  reversalObservationPayloads: {
2009
2156
  document: {
2010
2157
  _creationTime: number;
@@ -4903,6 +5050,153 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4903
5050
  searchIndexes: {};
4904
5051
  vectorIndexes: {};
4905
5052
  };
5053
+ renewalOperationAttempts: {
5054
+ document: {
5055
+ _creationTime: number;
5056
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
5057
+ accountJSON: string;
5058
+ apiVersion: string;
5059
+ authorizationId: string;
5060
+ authorizationRevision: number;
5061
+ authorizationScope: string;
5062
+ basisJSON: string;
5063
+ committedRevision: 1;
5064
+ firstDispatchedAt: number;
5065
+ key: string;
5066
+ lastSequence: 0 | 1 | 2 | 3;
5067
+ logicalOperationId: string;
5068
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5069
+ ordinal: 1;
5070
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5071
+ preparedRevision: 0;
5072
+ requestBinding: string;
5073
+ stage: "attach" | "configure";
5074
+ } | {
5075
+ _creationTime: number;
5076
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
5077
+ accountJSON: string;
5078
+ apiVersion: string;
5079
+ authorizationId: string;
5080
+ authorizationRevision: number;
5081
+ authorizationScope: string;
5082
+ committedRevision: 1;
5083
+ firstDispatchedAt: number;
5084
+ key: string;
5085
+ lastSequence: 0 | 1 | 2 | 3;
5086
+ logicalOperationId: string;
5087
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5088
+ ordinal: 1;
5089
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5090
+ preparedRevision: 0;
5091
+ recordVersion: 2;
5092
+ requestBinding: string;
5093
+ stage: "attach";
5094
+ timingPolicyJSON: string;
5095
+ };
5096
+ fieldPaths: "_id" | ("_creationTime" | "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON");
5097
+ indexes: {
5098
+ by_id: ["_id"];
5099
+ by_creation_time: ["_creationTime"];
5100
+ by_operationId: ["operationId", "_creationTime"];
5101
+ };
5102
+ searchIndexes: {};
5103
+ vectorIndexes: {};
5104
+ };
5105
+ renewalOperationEvents: {
5106
+ document: {
5107
+ _creationTime: number;
5108
+ _id: import("convex/values").GenericId<"renewalOperationEvents">;
5109
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5110
+ binding: string;
5111
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5112
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5113
+ sequence: 1 | 2 | 3;
5114
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5115
+ stage: "attach" | "configure";
5116
+ };
5117
+ fieldPaths: "_id" | ("_creationTime" | "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage");
5118
+ indexes: {
5119
+ by_id: ["_id"];
5120
+ by_creation_time: ["_creationTime"];
5121
+ by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
5122
+ };
5123
+ searchIndexes: {};
5124
+ vectorIndexes: {};
5125
+ };
5126
+ renewalOperationPayloads: {
5127
+ document: {
5128
+ _creationTime: number;
5129
+ _id: import("convex/values").GenericId<"renewalOperationPayloads">;
5130
+ codecVersion: 1;
5131
+ json: string;
5132
+ owner?: {
5133
+ kind: "operation";
5134
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5135
+ } | {
5136
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5137
+ kind: "event";
5138
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5139
+ sequence: 1 | 2 | 3;
5140
+ stage: "attach" | "configure";
5141
+ } | {
5142
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5143
+ kind: "receipt";
5144
+ operationId: import("convex/values").GenericId<"renewalOperations">;
5145
+ stage: "attach" | "configure";
5146
+ } | undefined;
5147
+ };
5148
+ fieldPaths: "_id" | ("_creationTime" | "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage");
5149
+ indexes: {
5150
+ by_id: ["_id"];
5151
+ by_creation_time: ["_creationTime"];
5152
+ };
5153
+ searchIndexes: {};
5154
+ vectorIndexes: {};
5155
+ };
5156
+ renewalOperations: {
5157
+ document: {
5158
+ _creationTime: number;
5159
+ _id: import("convex/values").GenericId<"renewalOperations">;
5160
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
5161
+ authorizationId: string;
5162
+ authorizationRevision: number;
5163
+ authorizationScope: string;
5164
+ initialBasis?: {
5165
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5166
+ basisJSON: string;
5167
+ policyJSON: string;
5168
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5169
+ stage: "attach";
5170
+ version: 1;
5171
+ } | undefined;
5172
+ knownAcknowledgement?: {
5173
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
5174
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5175
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5176
+ receiptBinding: string;
5177
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5178
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
5179
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5180
+ schemaVersion: 1;
5181
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5182
+ stage: "attach";
5183
+ } | undefined;
5184
+ logicalOperationId: string;
5185
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
5186
+ recordVersion?: 2 | undefined;
5187
+ requestBinding: string;
5188
+ revision: 0 | 1;
5189
+ state: "PREPARED" | "RESERVED";
5190
+ };
5191
+ fieldPaths: "_id" | ("_creationTime" | "activeAttemptId" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "initialBasis" | "initialBasis.attemptId" | "initialBasis.basisJSON" | "initialBasis.policyJSON" | "initialBasis.sourcePayloadId" | "initialBasis.stage" | "initialBasis.version" | "knownAcknowledgement" | "knownAcknowledgement.attemptId" | "knownAcknowledgement.dispatchEventId" | "knownAcknowledgement.dispatchPayloadId" | "knownAcknowledgement.receiptBinding" | "knownAcknowledgement.receiptPayloadId" | "knownAcknowledgement.responseEventId" | "knownAcknowledgement.responsePayloadId" | "knownAcknowledgement.schemaVersion" | "knownAcknowledgement.sourcePayloadId" | "knownAcknowledgement.stage" | "logicalOperationId" | "payloadId" | "recordVersion" | "requestBinding" | "revision" | "state");
5192
+ indexes: {
5193
+ by_id: ["_id"];
5194
+ by_creation_time: ["_creationTime"];
5195
+ by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
5196
+ };
5197
+ searchIndexes: {};
5198
+ vectorIndexes: {};
5199
+ };
4906
5200
  reversalObservationPayloads: {
4907
5201
  document: {
4908
5202
  _creationTime: number;
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
@@ -163,10 +163,10 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
163
163
  accountId: string;
164
164
  ownerKey: string;
165
165
  }, Promise<{
166
- status: "held";
167
- reason: "snapshot_limit";
168
166
  transfers?: undefined;
169
167
  claims?: undefined;
168
+ status: "held";
169
+ reason: "snapshot_limit";
170
170
  } | {
171
171
  reason?: undefined;
172
172
  status: "ready";
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
@@ -14,7 +14,7 @@ export declare function checkRollback(ctx: MutationCtx, op: Doc<"processingCostR
14
14
  readonly bindFunding?: undefined;
15
15
  } | {
16
16
  reason?: undefined;
17
- readonly retryable?: undefined;
17
+ retryable?: undefined;
18
18
  readonly status: "ready";
19
19
  readonly bindFunding: boolean;
20
20
  }>;
@@ -0,0 +1,236 @@
1
+ import { constructRenewalScheduleAttachmentReceiptV2 } from "../../client/billing/renewalV2/index.js";
2
+ import type { Doc } from "../_generated/dataModel.js";
3
+ import type { QueryCtx } from "../_generated/server.js";
4
+ import { canonicalJournalRecord } from "../../shared/renewalOperationJournal.js";
5
+ type Reader = Pick<QueryCtx, "db">;
6
+ export declare function findOperation(ctx: Reader, authorizationScope: string, logicalOperationId: string): Promise<{
7
+ _creationTime: number;
8
+ _id: import("convex/values").GenericId<"renewalOperations">;
9
+ activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
10
+ authorizationId: string;
11
+ authorizationRevision: number;
12
+ authorizationScope: string;
13
+ initialBasis?: {
14
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
15
+ basisJSON: string;
16
+ policyJSON: string;
17
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
18
+ stage: "attach";
19
+ version: 1;
20
+ } | undefined;
21
+ knownAcknowledgement?: {
22
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
23
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
24
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
25
+ receiptBinding: string;
26
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
27
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
28
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
29
+ schemaVersion: 1;
30
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
31
+ stage: "attach";
32
+ } | undefined;
33
+ logicalOperationId: string;
34
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
35
+ recordVersion?: 2 | undefined;
36
+ requestBinding: string;
37
+ revision: 0 | 1;
38
+ state: "PREPARED" | "RESERVED";
39
+ }>;
40
+ export declare function originalRecord(ctx: Reader, row: Doc<"renewalOperations">): Promise<Readonly<{
41
+ json: string;
42
+ authorizationScope: string;
43
+ authorizationId: string;
44
+ authorizationRevision: number;
45
+ logicalOperationId: string;
46
+ requestBinding: string;
47
+ }>>;
48
+ /** V2 unsigned full C1/C2 consistency, never operational qualification. */
49
+ export declare function validateOperationalAttachSource(full: ReturnType<typeof canonicalJournalRecord>): Promise<void>;
50
+ export declare function reservationFields(row: Doc<"renewalOperations">, full: ReturnType<typeof canonicalJournalRecord>): {
51
+ key: string;
52
+ apiVersion: string;
53
+ firstDispatchedAt: number;
54
+ accountJSON: string;
55
+ stage: "attach";
56
+ recordVersion: 2;
57
+ timingPolicyJSON: string;
58
+ operationId: import("convex/values").GenericId<"renewalOperations">;
59
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
60
+ authorizationScope: string;
61
+ authorizationId: string;
62
+ authorizationRevision: number;
63
+ logicalOperationId: string;
64
+ requestBinding: string;
65
+ ordinal: 1;
66
+ preparedRevision: 0;
67
+ committedRevision: 1;
68
+ } | {
69
+ stage: "attach" | "configure";
70
+ key: string;
71
+ apiVersion: string;
72
+ firstDispatchedAt: number;
73
+ accountJSON: string;
74
+ basisJSON: string;
75
+ operationId: import("convex/values").GenericId<"renewalOperations">;
76
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
77
+ authorizationScope: string;
78
+ authorizationId: string;
79
+ authorizationRevision: number;
80
+ logicalOperationId: string;
81
+ requestBinding: string;
82
+ ordinal: 1;
83
+ preparedRevision: 0;
84
+ committedRevision: 1;
85
+ };
86
+ /** Validate retained DATA without recreating a local clock or Owner. */
87
+ export declare function checkedInitialBasis(row: Doc<"renewalOperations">, attemptId: Doc<"renewalOperationAttempts">["_id"], fields: ReturnType<typeof reservationFields>): {
88
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
89
+ basisJSON: string;
90
+ policyJSON: string;
91
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
92
+ stage: "attach";
93
+ version: 1;
94
+ } | null;
95
+ export declare function attemptRows(ctx: Reader, operationId: Doc<"renewalOperations">["_id"]): Promise<({
96
+ _creationTime: number;
97
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
98
+ accountJSON: string;
99
+ apiVersion: string;
100
+ authorizationId: string;
101
+ authorizationRevision: number;
102
+ authorizationScope: string;
103
+ basisJSON: string;
104
+ committedRevision: 1;
105
+ firstDispatchedAt: number;
106
+ key: string;
107
+ lastSequence: 0 | 1 | 2 | 3;
108
+ logicalOperationId: string;
109
+ operationId: import("convex/values").GenericId<"renewalOperations">;
110
+ ordinal: 1;
111
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
112
+ preparedRevision: 0;
113
+ requestBinding: string;
114
+ stage: "attach" | "configure";
115
+ } | {
116
+ _creationTime: number;
117
+ _id: import("convex/values").GenericId<"renewalOperationAttempts">;
118
+ accountJSON: string;
119
+ apiVersion: string;
120
+ authorizationId: string;
121
+ authorizationRevision: number;
122
+ authorizationScope: string;
123
+ committedRevision: 1;
124
+ firstDispatchedAt: number;
125
+ key: string;
126
+ lastSequence: 0 | 1 | 2 | 3;
127
+ logicalOperationId: string;
128
+ operationId: import("convex/values").GenericId<"renewalOperations">;
129
+ ordinal: 1;
130
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
131
+ preparedRevision: 0;
132
+ recordVersion: 2;
133
+ requestBinding: string;
134
+ stage: "attach";
135
+ timingPolicyJSON: string;
136
+ })[]>;
137
+ export declare function currentReservation(ctx: Reader, row: Doc<"renewalOperations">, full: ReturnType<typeof canonicalJournalRecord>): Promise<{
138
+ key: string;
139
+ apiVersion: string;
140
+ firstDispatchedAt: number;
141
+ accountJSON: string;
142
+ stage: "attach";
143
+ recordVersion: 2;
144
+ timingPolicyJSON: string;
145
+ operationId: import("convex/values").GenericId<"renewalOperations">;
146
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
147
+ authorizationScope: string;
148
+ authorizationId: string;
149
+ authorizationRevision: number;
150
+ logicalOperationId: string;
151
+ requestBinding: string;
152
+ ordinal: 1;
153
+ preparedRevision: 0;
154
+ committedRevision: 1;
155
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
156
+ recordJSON: string;
157
+ } | {
158
+ stage: "attach" | "configure";
159
+ key: string;
160
+ apiVersion: string;
161
+ firstDispatchedAt: number;
162
+ accountJSON: string;
163
+ basisJSON: string;
164
+ operationId: import("convex/values").GenericId<"renewalOperations">;
165
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
166
+ authorizationScope: string;
167
+ authorizationId: string;
168
+ authorizationRevision: number;
169
+ logicalOperationId: string;
170
+ requestBinding: string;
171
+ ordinal: 1;
172
+ preparedRevision: 0;
173
+ committedRevision: 1;
174
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
175
+ recordJSON: string;
176
+ } | null>;
177
+ type Reservation = NonNullable<Awaited<ReturnType<typeof currentReservation>>>;
178
+ /** All reservation fields are closed scalar DATA, including complete JSON text. */
179
+ export declare function reservationMatches(actual: Reservation, supplied: Reservation): boolean;
180
+ export declare function eventChain(ctx: Reader, reservation: Reservation): Promise<{
181
+ operationId: import("convex/values").GenericId<"renewalOperations">;
182
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
183
+ stage: "attach" | "configure";
184
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
185
+ sequence: 1 | 2 | 3;
186
+ binding: string;
187
+ payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
188
+ eventId: import("convex/values").GenericId<"renewalOperationEvents">;
189
+ dataJSON: string;
190
+ }[]>;
191
+ type AttachReceipt = Awaited<ReturnType<typeof constructRenewalScheduleAttachmentReceiptV2>>;
192
+ /** Parsed JSON DATA admission only; no caller-object or provider provenance. */
193
+ export declare function admitAttachReceiptOutputDATA(receiptJSON: string, rebuilt: AttachReceipt): string;
194
+ /** Full stored-source/event/C3 consistency; these are unsigned DATA checks. */
195
+ export declare function validateAttachAcknowledgement(full: ReturnType<typeof canonicalJournalRecord>, reservation: Reservation, events: Awaited<ReturnType<typeof eventChain>>, receiptJSON: string): Promise<{
196
+ receiptJSON: string;
197
+ receiptBinding: string;
198
+ receipt: import("../../client/renewal.js").RenewalScheduleAttachmentReceiptV2;
199
+ }>;
200
+ /** Whole typed C10 DATA and full request/receipt equality, never ACK authority. */
201
+ export declare function validateAttachReceiptEventDATA(raw: string, receipt: AttachReceipt): void;
202
+ /** Optional stored known DATA; every reference, owner and full JSON is checked. */
203
+ export declare function validateKnownAcknowledgement(ctx: Reader, row: Doc<"renewalOperations">, reservation: Reservation, events: Awaited<ReturnType<typeof eventChain>>, admitted: Pick<Awaited<ReturnType<typeof validateAttachAcknowledgement>>, "receiptJSON" | "receiptBinding">): Promise<{
204
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
205
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
206
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
207
+ receiptBinding: string;
208
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
209
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
210
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
211
+ schemaVersion: 1;
212
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
213
+ stage: "attach";
214
+ } | null>;
215
+ /** Leaf over an already checked chain; never creates lineage or reloads history. */
216
+ export declare function validateV2KnownAcknowledgement(ctx: Reader, row: Doc<"renewalOperations">, full: ReturnType<typeof canonicalJournalRecord>, reservation: Reservation, events: Awaited<ReturnType<typeof eventChain>>): Promise<{
217
+ retained: {
218
+ attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
219
+ dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
220
+ dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
221
+ receiptBinding: string;
222
+ receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
223
+ responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
224
+ responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
225
+ schemaVersion: 1;
226
+ sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
227
+ stage: "attach";
228
+ };
229
+ admitted: {
230
+ receiptJSON: string;
231
+ receiptBinding: string;
232
+ receipt: import("../../client/renewal.js").RenewalScheduleAttachmentReceiptV2;
233
+ };
234
+ } | null>;
235
+ export {};
236
+ //# sourceMappingURL=helpers.d.ts.map