@fantastic.dev/better-stripe 0.93.0 → 0.94.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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts +41 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js +378 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +19 -5
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +142 -4
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/mutations.d.ts +43 -43
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/docs/renewal-context-reads.md +33 -5
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/operationJournal.acknowledgement.integration.test.ts +500 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.c10.integration.test.ts +560 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.controls.integration.test.ts +356 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +181 -1
- package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +534 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.ts +561 -0
- package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +187 -8
- package/src/client/billing/renewalAttach/internal/producer/producerGuards.integration.test.ts +323 -0
- package/src/client/billing/renewalAttach/internal/producer/producerInitial.integration.test.ts +301 -0
- package/src/client/billing/renewalAttach/internal/producer/producerIsolation.integration.test.ts +531 -0
|
@@ -97,7 +97,7 @@ export function finishClassRoot(actualRoot, raw) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
/** EMPTY profiles refuse before entry,
|
|
100
|
+
/** Operational EMPTY profiles refuse before entry, selector or Action reflection. */
|
|
101
101
|
export async function captureMaintainedActionSelection(actualRoot, _input) {
|
|
102
102
|
const cell = roots.get(actualRoot);
|
|
103
103
|
if (!cell ||
|
|
@@ -106,8 +106,146 @@ export async function captureMaintainedActionSelection(actualRoot, _input) {
|
|
|
106
106
|
rootUnbound();
|
|
107
107
|
throw Error("CLASS_ACTION_PROFILE_UNBOUND");
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
const pendingJournalEntries = new WeakMap();
|
|
110
|
+
const journalBindings = new WeakMap();
|
|
111
|
+
const closedJournalBindings = new WeakSet();
|
|
112
|
+
function journalUnbound() {
|
|
113
|
+
throw Error("CLASS_ACTION_JOURNAL_UNBOUND");
|
|
114
|
+
}
|
|
115
|
+
function journalPointersMatch(state) {
|
|
116
|
+
const { root, cell, rpc } = state;
|
|
117
|
+
return (roots.get(root) === cell &&
|
|
118
|
+
Object.getPrototypeOf(root) === cell.bootstrap.prototype &&
|
|
119
|
+
rpc.receiver.meta === rpc.metaReceiver &&
|
|
120
|
+
rpc.metaReceiver.getFunctionMetadata === rpc.getMetadata &&
|
|
121
|
+
rpc.receiver.runQuery === rpc.runQuery &&
|
|
122
|
+
rpc.receiver.runMutation === rpc.runMutation);
|
|
123
|
+
}
|
|
124
|
+
/** Checked private bookkeeping identity only; never an operational selection. */
|
|
125
|
+
export function readCheckedJournalActionRPC(binding) {
|
|
126
|
+
if (typeof binding !== "object" || binding === null)
|
|
127
|
+
journalUnbound();
|
|
128
|
+
const state = journalBindings.get(binding);
|
|
129
|
+
if (!state || closedJournalBindings.has(binding))
|
|
130
|
+
journalUnbound();
|
|
131
|
+
try {
|
|
132
|
+
if (!journalPointersMatch(state))
|
|
133
|
+
journalUnbound();
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
closedJournalBindings.add(binding);
|
|
137
|
+
journalUnbound();
|
|
138
|
+
}
|
|
139
|
+
return state.rpc;
|
|
140
|
+
}
|
|
141
|
+
/** Fixed class entry for journal DATA, independent of operational qualification. */
|
|
142
|
+
export async function captureMaintainedJournalBinding(actualRoot, input) {
|
|
143
|
+
const cell = roots.get(actualRoot);
|
|
144
|
+
if (!cell ||
|
|
145
|
+
cell.phase !== "ready" ||
|
|
146
|
+
Object.getPrototypeOf(actualRoot) !== cell.bootstrap.prototype)
|
|
147
|
+
rootUnbound();
|
|
148
|
+
const keys = Reflect.ownKeys(input);
|
|
149
|
+
const context = Object.getOwnPropertyDescriptor(input, "actualActionCtx");
|
|
150
|
+
const operation = Object.getOwnPropertyDescriptor(input, "operationId");
|
|
151
|
+
if (keys.length !== 2 ||
|
|
152
|
+
!keys.every((key) => key === "actualActionCtx" || key === "operationId") ||
|
|
153
|
+
!context ||
|
|
154
|
+
!("value" in context) ||
|
|
155
|
+
!context.enumerable ||
|
|
156
|
+
!operation ||
|
|
157
|
+
!("value" in operation) ||
|
|
158
|
+
!operation.enumerable ||
|
|
159
|
+
typeof operation.value !== "string" ||
|
|
160
|
+
operation.value.length === 0)
|
|
161
|
+
journalUnbound();
|
|
162
|
+
const entryInput = Object.freeze({
|
|
163
|
+
actualActionCtx: context.value,
|
|
164
|
+
operationId: operation.value,
|
|
165
|
+
});
|
|
166
|
+
const entry = {
|
|
167
|
+
root: actualRoot,
|
|
168
|
+
cell,
|
|
169
|
+
input: entryInput,
|
|
170
|
+
entered: false,
|
|
171
|
+
binding: null,
|
|
172
|
+
};
|
|
173
|
+
pendingJournalEntries.set(entryInput, entry);
|
|
174
|
+
try {
|
|
175
|
+
const result = await Reflect.apply(cell.bootstrap.enter, actualRoot, [entryInput]);
|
|
176
|
+
if (typeof result !== "object" ||
|
|
177
|
+
result === null ||
|
|
178
|
+
result !== entry.binding ||
|
|
179
|
+
pendingJournalEntries.get(entryInput) !== entry ||
|
|
180
|
+
!entry.entered)
|
|
181
|
+
journalUnbound();
|
|
182
|
+
const state = journalBindings.get(result);
|
|
183
|
+
if (!state ||
|
|
184
|
+
state.root !== actualRoot ||
|
|
185
|
+
state.cell !== cell ||
|
|
186
|
+
state.rpc.operationId !== entryInput.operationId)
|
|
187
|
+
journalUnbound();
|
|
188
|
+
readCheckedJournalActionRPC(result);
|
|
189
|
+
return result;
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
if (entry.binding)
|
|
193
|
+
closedJournalBindings.add(entry.binding);
|
|
194
|
+
throw error;
|
|
195
|
+
}
|
|
196
|
+
finally {
|
|
197
|
+
pendingJournalEntries.delete(entryInput);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Only the actual constructor-captured private entry can complete pending DATA. */
|
|
201
|
+
export async function beginClassAction(actualRoot, input) {
|
|
202
|
+
const entry = pendingJournalEntries.get(input);
|
|
203
|
+
if (!entry ||
|
|
204
|
+
entry.root !== actualRoot ||
|
|
205
|
+
entry.input !== input ||
|
|
206
|
+
entry.entered ||
|
|
207
|
+
roots.get(actualRoot) !== entry.cell)
|
|
208
|
+
return rootUnbound();
|
|
209
|
+
entry.entered = true;
|
|
210
|
+
const receiver = input.actualActionCtx;
|
|
211
|
+
if (typeof receiver !== "object" || receiver === null)
|
|
212
|
+
journalUnbound();
|
|
213
|
+
const metaReceiver = receiver.meta;
|
|
214
|
+
const getMetadata = metaReceiver?.getFunctionMetadata;
|
|
215
|
+
const runQuery = receiver.runQuery;
|
|
216
|
+
const runMutation = receiver.runMutation;
|
|
217
|
+
if (typeof getMetadata !== "function" ||
|
|
218
|
+
typeof runQuery !== "function" ||
|
|
219
|
+
typeof runMutation !== "function")
|
|
220
|
+
journalUnbound();
|
|
221
|
+
const rpc = Object.freeze({
|
|
222
|
+
receiver,
|
|
223
|
+
component: entry.cell.component,
|
|
224
|
+
operationId: input.operationId,
|
|
225
|
+
metaReceiver,
|
|
226
|
+
getMetadata,
|
|
227
|
+
runQuery,
|
|
228
|
+
runMutation,
|
|
229
|
+
tag: Object.freeze({}),
|
|
230
|
+
});
|
|
231
|
+
const metadata = await getMetadata.call(metaReceiver);
|
|
232
|
+
const state = Object.freeze({
|
|
233
|
+
root: actualRoot,
|
|
234
|
+
cell: entry.cell,
|
|
235
|
+
rpc,
|
|
236
|
+
});
|
|
237
|
+
if (metadata.type !== "action" ||
|
|
238
|
+
typeof metadata.name !== "string" ||
|
|
239
|
+
metadata.name.length === 0 ||
|
|
240
|
+
typeof metadata.componentPath !== "string" ||
|
|
241
|
+
(metadata.visibility !== "public" && metadata.visibility !== "internal") ||
|
|
242
|
+
pendingJournalEntries.get(input) !== entry ||
|
|
243
|
+
entry.binding !== null ||
|
|
244
|
+
!journalPointersMatch(state))
|
|
245
|
+
journalUnbound();
|
|
246
|
+
const binding = Object.freeze({});
|
|
247
|
+
journalBindings.set(binding, state);
|
|
248
|
+
entry.binding = binding;
|
|
249
|
+
return binding;
|
|
112
250
|
}
|
|
113
251
|
//# sourceMappingURL=classOwnedActionRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classOwnedActionRoot.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"classOwnedActionRoot.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAe3E,MAAM,KAAK,GAAG,IAAI,OAAO,EAAoB,CAAC;AAC9C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAqB,CAAC;AACjD,MAAM,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AACxC,MAAM,eA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C,MAAM,CAAC;QACpC,QAAQ;QACR,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,YAAY;QACZ,WAAW;QACX,QAAQ;QACR,WAAW;QACX,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;KACvB,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtD,MAAM,KAAK,GAAiB,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,GAAG;KACJ,CAAC,CAAC;IACH,IACE,QAAQ,CAAC,IAAI,KAAK,QAAQ;QAC1B,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ;QACjC,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC;QAC1B,OAAO,QAAQ,CAAC,aAAa,KAAK,QAAQ;QAC1C,CAAC,QAAQ,CAAC,UAAU,KAAK,QAAQ,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,CAAC;QACxE,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK;QAC1C,KAAK,CAAC,OAAO,KAAK,IAAI;QACtB,CAAC,oBAAoB,CAAC,KAAK,CAAC;QAE5B,cAAc,EAAE,CAAC;IACnB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClC,eAAe,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -2641,14 +2641,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2641
2641
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2642
2642
|
requestKey: string;
|
|
2643
2643
|
result?: {
|
|
2644
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2645
|
-
retryable: false;
|
|
2646
|
-
status: "conflict";
|
|
2647
|
-
} | {
|
|
2648
|
-
reason: "policy_invalid";
|
|
2649
|
-
retryable: false;
|
|
2650
|
-
status: "rejected";
|
|
2651
|
-
} | {
|
|
2652
2644
|
operation: {
|
|
2653
2645
|
accountId: string;
|
|
2654
2646
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2659,6 +2651,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2659
2651
|
} | {
|
|
2660
2652
|
enabled: boolean;
|
|
2661
2653
|
status: "unchanged";
|
|
2654
|
+
} | {
|
|
2655
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2656
|
+
retryable: false;
|
|
2657
|
+
status: "conflict";
|
|
2658
|
+
} | {
|
|
2659
|
+
reason: "policy_invalid";
|
|
2660
|
+
retryable: false;
|
|
2661
|
+
status: "rejected";
|
|
2662
2662
|
} | {
|
|
2663
2663
|
reason: "provider_pending";
|
|
2664
2664
|
retryable: true;
|
|
@@ -2669,14 +2669,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2669
2669
|
payload: import("convex/values").VString<string, "required">;
|
|
2670
2670
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2671
2671
|
result: import("convex/values").VUnion<{
|
|
2672
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2673
|
-
retryable: false;
|
|
2674
|
-
status: "conflict";
|
|
2675
|
-
} | {
|
|
2676
|
-
reason: "policy_invalid";
|
|
2677
|
-
retryable: false;
|
|
2678
|
-
status: "rejected";
|
|
2679
|
-
} | {
|
|
2680
2672
|
operation: {
|
|
2681
2673
|
accountId: string;
|
|
2682
2674
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2687,6 +2679,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2687
2679
|
} | {
|
|
2688
2680
|
enabled: boolean;
|
|
2689
2681
|
status: "unchanged";
|
|
2682
|
+
} | {
|
|
2683
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2684
|
+
retryable: false;
|
|
2685
|
+
status: "conflict";
|
|
2686
|
+
} | {
|
|
2687
|
+
reason: "policy_invalid";
|
|
2688
|
+
retryable: false;
|
|
2689
|
+
status: "rejected";
|
|
2690
2690
|
} | {
|
|
2691
2691
|
reason: "provider_pending";
|
|
2692
2692
|
retryable: true;
|
|
@@ -7777,14 +7777,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7777
7777
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7778
7778
|
requestKey: string;
|
|
7779
7779
|
result?: {
|
|
7780
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7781
|
-
retryable: false;
|
|
7782
|
-
status: "conflict";
|
|
7783
|
-
} | {
|
|
7784
|
-
reason: "policy_invalid";
|
|
7785
|
-
retryable: false;
|
|
7786
|
-
status: "rejected";
|
|
7787
|
-
} | {
|
|
7788
7780
|
operation: {
|
|
7789
7781
|
accountId: string;
|
|
7790
7782
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7795,6 +7787,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7795
7787
|
} | {
|
|
7796
7788
|
enabled: boolean;
|
|
7797
7789
|
status: "unchanged";
|
|
7790
|
+
} | {
|
|
7791
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7792
|
+
retryable: false;
|
|
7793
|
+
status: "conflict";
|
|
7794
|
+
} | {
|
|
7795
|
+
reason: "policy_invalid";
|
|
7796
|
+
retryable: false;
|
|
7797
|
+
status: "rejected";
|
|
7798
7798
|
} | {
|
|
7799
7799
|
reason: "provider_pending";
|
|
7800
7800
|
retryable: true;
|
|
@@ -7805,14 +7805,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7805
7805
|
payload: import("convex/values").VString<string, "required">;
|
|
7806
7806
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7807
7807
|
result: import("convex/values").VUnion<{
|
|
7808
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7809
|
-
retryable: false;
|
|
7810
|
-
status: "conflict";
|
|
7811
|
-
} | {
|
|
7812
|
-
reason: "policy_invalid";
|
|
7813
|
-
retryable: false;
|
|
7814
|
-
status: "rejected";
|
|
7815
|
-
} | {
|
|
7816
7808
|
operation: {
|
|
7817
7809
|
accountId: string;
|
|
7818
7810
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7823,6 +7815,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7823
7815
|
} | {
|
|
7824
7816
|
enabled: boolean;
|
|
7825
7817
|
status: "unchanged";
|
|
7818
|
+
} | {
|
|
7819
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7820
|
+
retryable: false;
|
|
7821
|
+
status: "conflict";
|
|
7822
|
+
} | {
|
|
7823
|
+
reason: "policy_invalid";
|
|
7824
|
+
retryable: false;
|
|
7825
|
+
status: "rejected";
|
|
7826
7826
|
} | {
|
|
7827
7827
|
reason: "provider_pending";
|
|
7828
7828
|
retryable: true;
|
|
@@ -2632,6 +2632,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2632
2632
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2633
2633
|
requestKey: string;
|
|
2634
2634
|
result?: {
|
|
2635
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2636
|
+
retryable: false;
|
|
2637
|
+
status: "conflict";
|
|
2638
|
+
} | {
|
|
2639
|
+
reason: "policy_invalid";
|
|
2640
|
+
retryable: false;
|
|
2641
|
+
status: "rejected";
|
|
2642
|
+
} | {
|
|
2635
2643
|
operation: {
|
|
2636
2644
|
accountId: string;
|
|
2637
2645
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2642,14 +2650,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2642
2650
|
} | {
|
|
2643
2651
|
enabled: boolean;
|
|
2644
2652
|
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
2653
|
} | {
|
|
2654
2654
|
reason: "provider_pending";
|
|
2655
2655
|
retryable: true;
|
|
@@ -2660,6 +2660,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2660
2660
|
payload: import("convex/values").VString<string, "required">;
|
|
2661
2661
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2662
2662
|
result: import("convex/values").VUnion<{
|
|
2663
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2664
|
+
retryable: false;
|
|
2665
|
+
status: "conflict";
|
|
2666
|
+
} | {
|
|
2667
|
+
reason: "policy_invalid";
|
|
2668
|
+
retryable: false;
|
|
2669
|
+
status: "rejected";
|
|
2670
|
+
} | {
|
|
2663
2671
|
operation: {
|
|
2664
2672
|
accountId: string;
|
|
2665
2673
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2670,14 +2678,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2670
2678
|
} | {
|
|
2671
2679
|
enabled: boolean;
|
|
2672
2680
|
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
2681
|
} | {
|
|
2682
2682
|
reason: "provider_pending";
|
|
2683
2683
|
retryable: true;
|
|
@@ -7769,6 +7769,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7769
7769
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7770
7770
|
requestKey: string;
|
|
7771
7771
|
result?: {
|
|
7772
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7773
|
+
retryable: false;
|
|
7774
|
+
status: "conflict";
|
|
7775
|
+
} | {
|
|
7776
|
+
reason: "policy_invalid";
|
|
7777
|
+
retryable: false;
|
|
7778
|
+
status: "rejected";
|
|
7779
|
+
} | {
|
|
7772
7780
|
operation: {
|
|
7773
7781
|
accountId: string;
|
|
7774
7782
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7779,14 +7787,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7779
7787
|
} | {
|
|
7780
7788
|
enabled: boolean;
|
|
7781
7789
|
status: "unchanged";
|
|
7782
|
-
} | {
|
|
7783
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7784
|
-
retryable: false;
|
|
7785
|
-
status: "conflict";
|
|
7786
|
-
} | {
|
|
7787
|
-
reason: "policy_invalid";
|
|
7788
|
-
retryable: false;
|
|
7789
|
-
status: "rejected";
|
|
7790
7790
|
} | {
|
|
7791
7791
|
reason: "provider_pending";
|
|
7792
7792
|
retryable: true;
|
|
@@ -7797,6 +7797,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7797
7797
|
payload: import("convex/values").VString<string, "required">;
|
|
7798
7798
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7799
7799
|
result: import("convex/values").VUnion<{
|
|
7800
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7801
|
+
retryable: false;
|
|
7802
|
+
status: "conflict";
|
|
7803
|
+
} | {
|
|
7804
|
+
reason: "policy_invalid";
|
|
7805
|
+
retryable: false;
|
|
7806
|
+
status: "rejected";
|
|
7807
|
+
} | {
|
|
7800
7808
|
operation: {
|
|
7801
7809
|
accountId: string;
|
|
7802
7810
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7807,14 +7815,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7807
7815
|
} | {
|
|
7808
7816
|
enabled: boolean;
|
|
7809
7817
|
status: "unchanged";
|
|
7810
|
-
} | {
|
|
7811
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7812
|
-
retryable: false;
|
|
7813
|
-
status: "conflict";
|
|
7814
|
-
} | {
|
|
7815
|
-
reason: "policy_invalid";
|
|
7816
|
-
retryable: false;
|
|
7817
|
-
status: "rejected";
|
|
7818
7818
|
} | {
|
|
7819
7819
|
reason: "provider_pending";
|
|
7820
7820
|
retryable: true;
|
|
@@ -22,14 +22,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
-
retryable: false;
|
|
27
|
-
status: "conflict";
|
|
28
|
-
} | {
|
|
29
|
-
reason: "policy_invalid";
|
|
30
|
-
retryable: false;
|
|
31
|
-
status: "rejected";
|
|
32
|
-
} | {
|
|
33
25
|
operation: {
|
|
34
26
|
accountId: string;
|
|
35
27
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -40,6 +32,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
40
32
|
} | {
|
|
41
33
|
enabled: boolean;
|
|
42
34
|
status: "unchanged";
|
|
35
|
+
} | {
|
|
36
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
+
retryable: false;
|
|
38
|
+
status: "conflict";
|
|
39
|
+
} | {
|
|
40
|
+
reason: "policy_invalid";
|
|
41
|
+
retryable: false;
|
|
42
|
+
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -395,14 +395,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
395
395
|
requestKey: string;
|
|
396
396
|
scopeKey: string;
|
|
397
397
|
}, Promise<{
|
|
398
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
399
|
-
retryable: false;
|
|
400
|
-
status: "conflict";
|
|
401
|
-
} | {
|
|
402
|
-
reason: "policy_invalid";
|
|
403
|
-
retryable: false;
|
|
404
|
-
status: "rejected";
|
|
405
|
-
} | {
|
|
406
398
|
operation: {
|
|
407
399
|
accountId: string;
|
|
408
400
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -413,6 +405,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
413
405
|
} | {
|
|
414
406
|
enabled: boolean;
|
|
415
407
|
status: "unchanged";
|
|
408
|
+
} | {
|
|
409
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
+
retryable: false;
|
|
411
|
+
status: "conflict";
|
|
412
|
+
} | {
|
|
413
|
+
reason: "policy_invalid";
|
|
414
|
+
retryable: false;
|
|
415
|
+
status: "rejected";
|
|
416
416
|
} | {
|
|
417
417
|
reason: "provider_pending";
|
|
418
418
|
retryable: true;
|
|
@@ -595,22 +595,6 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
595
595
|
} & {
|
|
596
596
|
providerAction: string;
|
|
597
597
|
}, Promise<{
|
|
598
|
-
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
599
|
-
retryable: false;
|
|
600
|
-
status: "unknown";
|
|
601
|
-
} | {
|
|
602
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
603
|
-
retryable: false;
|
|
604
|
-
status: "conflict";
|
|
605
|
-
} | {
|
|
606
|
-
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
607
|
-
retryable: false;
|
|
608
|
-
status: "rejected";
|
|
609
|
-
} | {
|
|
610
|
-
reason: "provider_pending";
|
|
611
|
-
retryable: true;
|
|
612
|
-
status: "not_ready";
|
|
613
|
-
} | {
|
|
614
598
|
operation: {
|
|
615
599
|
accountId: string;
|
|
616
600
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -627,16 +611,7 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
627
611
|
version: number;
|
|
628
612
|
};
|
|
629
613
|
status: "canceled";
|
|
630
|
-
}
|
|
631
|
-
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
-
accountId: string;
|
|
633
|
-
definitionVersion: string;
|
|
634
|
-
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
-
providerApiVersion: string;
|
|
636
|
-
scopeKey: string;
|
|
637
|
-
stripeSubscriptionId: string;
|
|
638
|
-
version: number;
|
|
639
|
-
}, Promise<{
|
|
614
|
+
} | {
|
|
640
615
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
641
616
|
retryable: false;
|
|
642
617
|
status: "unknown";
|
|
@@ -652,7 +627,16 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
652
627
|
reason: "provider_pending";
|
|
653
628
|
retryable: true;
|
|
654
629
|
status: "not_ready";
|
|
655
|
-
}
|
|
630
|
+
}>>;
|
|
631
|
+
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
+
accountId: string;
|
|
633
|
+
definitionVersion: string;
|
|
634
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
+
providerApiVersion: string;
|
|
636
|
+
scopeKey: string;
|
|
637
|
+
stripeSubscriptionId: string;
|
|
638
|
+
version: number;
|
|
639
|
+
}, Promise<{
|
|
656
640
|
operation: {
|
|
657
641
|
accountId: string;
|
|
658
642
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -669,6 +653,22 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
669
653
|
version: number;
|
|
670
654
|
};
|
|
671
655
|
status: "canceled";
|
|
656
|
+
} | {
|
|
657
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
658
|
+
retryable: false;
|
|
659
|
+
status: "unknown";
|
|
660
|
+
} | {
|
|
661
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
662
|
+
retryable: false;
|
|
663
|
+
status: "conflict";
|
|
664
|
+
} | {
|
|
665
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
666
|
+
retryable: false;
|
|
667
|
+
status: "rejected";
|
|
668
|
+
} | {
|
|
669
|
+
reason: "provider_pending";
|
|
670
|
+
retryable: true;
|
|
671
|
+
status: "not_ready";
|
|
672
672
|
}>>;
|
|
673
673
|
export declare const cancelWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
674
674
|
accountId: string;
|
|
@@ -2,14 +2,6 @@ import type { Infer } from "convex/values";
|
|
|
2
2
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
3
|
import { prepareArgs, finishPreparationArgs } from "./mutationValidators.js";
|
|
4
4
|
export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prepareArgs>): Promise<{
|
|
5
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6
|
-
retryable: false;
|
|
7
|
-
status: "conflict";
|
|
8
|
-
} | {
|
|
9
|
-
reason: "policy_invalid";
|
|
10
|
-
retryable: false;
|
|
11
|
-
status: "rejected";
|
|
12
|
-
} | {
|
|
13
5
|
operation: {
|
|
14
6
|
accountId: string;
|
|
15
7
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -20,6 +12,14 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
20
12
|
} | {
|
|
21
13
|
enabled: boolean;
|
|
22
14
|
status: "unchanged";
|
|
15
|
+
} | {
|
|
16
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
17
|
+
retryable: false;
|
|
18
|
+
status: "conflict";
|
|
19
|
+
} | {
|
|
20
|
+
reason: "policy_invalid";
|
|
21
|
+
retryable: false;
|
|
22
|
+
status: "rejected";
|
|
23
23
|
} | {
|
|
24
24
|
reason: "provider_pending";
|
|
25
25
|
retryable: true;
|
|
@@ -180,11 +180,11 @@ export declare const findPreparationOperation: import("convex/server").Registere
|
|
|
180
180
|
retryable: false;
|
|
181
181
|
} | {
|
|
182
182
|
reason?: undefined;
|
|
183
|
-
retryable?: undefined;
|
|
184
183
|
accountId: string;
|
|
185
184
|
scopeKey: string;
|
|
186
185
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
187
186
|
version: number;
|
|
187
|
+
retryable?: undefined;
|
|
188
188
|
status?: undefined;
|
|
189
189
|
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
190
190
|
cancelRequested: boolean;
|
|
@@ -71,11 +71,22 @@ Node-only mechanics establish no provider custody or native qualification and
|
|
|
71
71
|
expose no caller-supplied clock, client or qualification API. The public
|
|
72
72
|
preparation and receipt constructors are unchanged.
|
|
73
73
|
|
|
74
|
-
The maintained SDK constructor
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
The maintained SDK constructor records an inert identity for its private renewal
|
|
75
|
+
bridge. A fixed internal journal entry can bind an actual registered Action and
|
|
76
|
+
an operation ID to that SDK instance and its component. This binding supports
|
|
77
|
+
unsigned journal DATA: it does not select a Stripe client, create a clock or
|
|
78
|
+
Owner, or qualify provider execution. The separate operational entry continues
|
|
79
|
+
to refuse while execution profiles are unqualified. Normal construction and
|
|
80
|
+
context reads remain available; no public schedule writer is added.
|
|
81
|
+
|
|
82
|
+
Only the class-bound journal facade can retain a process-local identity for its
|
|
83
|
+
original fulfilled `acquired` reservation call. Existing or conflicting replies,
|
|
84
|
+
queries and generic DATA facades create no such identity. Consuming a valid call
|
|
85
|
+
spends it before checking the expected class journal, so a wrong journal or
|
|
86
|
+
failed check cannot make it reusable. The returned reservation and local tag
|
|
87
|
+
remain unsigned bookkeeping DATA; copies cannot create or revive a call, a live
|
|
88
|
+
Owner or provider authority. A handle lost across an Action return, restart or
|
|
89
|
+
reply loss is not reconstructed from stored records or retried with a new key.
|
|
79
90
|
|
|
80
91
|
## Component operation journal
|
|
81
92
|
|
|
@@ -223,6 +234,23 @@ schedule writer. Host policy, actual runtime ownership, provider qualification
|
|
|
223
234
|
and restart recovery require their own integration. Stored DATA never revives an
|
|
224
235
|
old owner, resets a deadline or establishes delivery to a disconnected caller.
|
|
225
236
|
|
|
237
|
+
The private Action journal adapter binds one operation ID and captures eight
|
|
238
|
+
fixed generated references with the original Action methods and receiver. It
|
|
239
|
+
forwards complete component results, checks captured method identities before
|
|
240
|
+
each call, and rejects attempts to supply another operation ID or append a
|
|
241
|
+
foreign reservation. Host-authorized creation remains a separate component
|
|
242
|
+
operation. The adapter has no public package export, provider transport, live
|
|
243
|
+
owner or fresh execution handle. An acquired or existing reservation returned
|
|
244
|
+
through it is still storage DATA.
|
|
245
|
+
|
|
246
|
+
Its private C10 sender requires the unchanged reservation object returned by
|
|
247
|
+
that same adapter's actual reservation call. It canonicalizes the event, awaits
|
|
248
|
+
the fixed append, and validates the complete matching commit reply before
|
|
249
|
+
invoking the original acknowledgement callback once. Failure closes the sender
|
|
250
|
+
without retry or fallback. A committed event survives a later parent Action
|
|
251
|
+
failure; neither the callback nor the retained reply establishes live ownership,
|
|
252
|
+
provider provenance or delivery to the caller.
|
|
253
|
+
|
|
226
254
|
## Internal initial material consistency
|
|
227
255
|
|
|
228
256
|
The internal `renewalAttach/internal/material` classifiers compare complete
|
package/package.json
CHANGED