@fantastic.dev/better-stripe 0.108.0 → 0.109.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/observation/freshActor.d.ts +31 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.js +112 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts +17 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js +191 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts +29 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.js +205 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/profile.js +5 -1
- package/dist/client/billing/renewalAttach/internal/observation/profile.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/reader.d.ts +4 -58
- package/dist/client/billing/renewalAttach/internal/observation/reader.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/reader.js +12 -152
- package/dist/client/billing/renewalAttach/internal/observation/reader.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +16 -16
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/earnings/triggers.d.ts +16 -16
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +16 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +55 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/observation/freshActor.integration.test.ts +360 -0
- package/src/client/billing/renewalAttach/internal/observation/freshActor.ts +175 -0
- package/src/client/billing/renewalAttach/internal/observation/freshActorControls.integration.test.ts +442 -0
- package/src/client/billing/renewalAttach/internal/observation/freshTransport.ts +252 -0
- package/src/client/billing/renewalAttach/internal/observation/invocation.ts +299 -0
- package/src/client/billing/renewalAttach/internal/observation/profile.ts +9 -1
- package/src/client/billing/renewalAttach/internal/observation/reader.ts +15 -221
- package/src/client/billing/renewalAttach/internal/operations/sourceOperations.ts +8 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/freshObservation.ts +94 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/historySnapshot.ts +5 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationReader.ts +2 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +32 -4
|
@@ -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,6 +2,14 @@ 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
|
+
} | {
|
|
5
13
|
operation: {
|
|
6
14
|
accountId: string;
|
|
7
15
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -12,14 +20,6 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
12
20
|
} | {
|
|
13
21
|
enabled: boolean;
|
|
14
22
|
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;
|
|
@@ -5,14 +5,6 @@ export declare function savePreparationHandler(ctx: MutationCtx, args: Infer<typ
|
|
|
5
5
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
6
6
|
}>;
|
|
7
7
|
export declare function beginHandler(ctx: MutationCtx, args: Infer<typeof beginArgs>): Promise<{
|
|
8
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
9
|
-
retryable: false;
|
|
10
|
-
status: "conflict";
|
|
11
|
-
} | {
|
|
12
|
-
reason: "policy_invalid";
|
|
13
|
-
retryable: false;
|
|
14
|
-
status: "rejected";
|
|
15
|
-
} | {
|
|
16
8
|
operation: {
|
|
17
9
|
accountId: string;
|
|
18
10
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -23,6 +15,14 @@ export declare function beginHandler(ctx: MutationCtx, args: Infer<typeof beginA
|
|
|
23
15
|
} | {
|
|
24
16
|
enabled: boolean;
|
|
25
17
|
status: "unchanged";
|
|
18
|
+
} | {
|
|
19
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
20
|
+
retryable: false;
|
|
21
|
+
status: "conflict";
|
|
22
|
+
} | {
|
|
23
|
+
reason: "policy_invalid";
|
|
24
|
+
retryable: false;
|
|
25
|
+
status: "rejected";
|
|
26
26
|
} | {
|
|
27
27
|
reason: "provider_pending";
|
|
28
28
|
retryable: true;
|
|
@@ -372,14 +372,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
372
372
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
373
373
|
requestKey: string;
|
|
374
374
|
result?: {
|
|
375
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
376
|
-
retryable: false;
|
|
377
|
-
status: "conflict";
|
|
378
|
-
} | {
|
|
379
|
-
reason: "policy_invalid";
|
|
380
|
-
retryable: false;
|
|
381
|
-
status: "rejected";
|
|
382
|
-
} | {
|
|
383
375
|
operation: {
|
|
384
376
|
accountId: string;
|
|
385
377
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -390,6 +382,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
390
382
|
} | {
|
|
391
383
|
enabled: boolean;
|
|
392
384
|
status: "unchanged";
|
|
385
|
+
} | {
|
|
386
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
387
|
+
retryable: false;
|
|
388
|
+
status: "conflict";
|
|
389
|
+
} | {
|
|
390
|
+
reason: "policy_invalid";
|
|
391
|
+
retryable: false;
|
|
392
|
+
status: "rejected";
|
|
393
393
|
} | {
|
|
394
394
|
reason: "provider_pending";
|
|
395
395
|
retryable: true;
|
|
@@ -3417,14 +3417,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
3417
3417
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
3418
3418
|
requestKey: string;
|
|
3419
3419
|
result?: {
|
|
3420
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
3421
|
-
retryable: false;
|
|
3422
|
-
status: "conflict";
|
|
3423
|
-
} | {
|
|
3424
|
-
reason: "policy_invalid";
|
|
3425
|
-
retryable: false;
|
|
3426
|
-
status: "rejected";
|
|
3427
|
-
} | {
|
|
3428
3420
|
operation: {
|
|
3429
3421
|
accountId: string;
|
|
3430
3422
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -3435,6 +3427,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
3435
3427
|
} | {
|
|
3436
3428
|
enabled: boolean;
|
|
3437
3429
|
status: "unchanged";
|
|
3430
|
+
} | {
|
|
3431
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
3432
|
+
retryable: false;
|
|
3433
|
+
status: "conflict";
|
|
3434
|
+
} | {
|
|
3435
|
+
reason: "policy_invalid";
|
|
3436
|
+
retryable: false;
|
|
3437
|
+
status: "rejected";
|
|
3438
3438
|
} | {
|
|
3439
3439
|
reason: "provider_pending";
|
|
3440
3440
|
retryable: true;
|
|
@@ -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
|
|
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
|
-
|
|
17
|
+
retryable?: undefined;
|
|
18
18
|
readonly status: "ready";
|
|
19
19
|
readonly bindFunding: boolean;
|
|
20
20
|
}>;
|
|
@@ -2632,14 +2632,6 @@ export declare function setupAllowance(): 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
|
-
} | {
|
|
2643
2635
|
operation: {
|
|
2644
2636
|
accountId: string;
|
|
2645
2637
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2650,6 +2642,14 @@ export declare function setupAllowance(): Promise<{
|
|
|
2650
2642
|
} | {
|
|
2651
2643
|
enabled: boolean;
|
|
2652
2644
|
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,14 +2660,6 @@ export declare function setupAllowance(): 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
|
-
} | {
|
|
2671
2663
|
operation: {
|
|
2672
2664
|
accountId: string;
|
|
2673
2665
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2678,6 +2670,14 @@ export declare function setupAllowance(): Promise<{
|
|
|
2678
2670
|
} | {
|
|
2679
2671
|
enabled: boolean;
|
|
2680
2672
|
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;
|
|
@@ -2632,6 +2632,14 @@ export declare function setupCredits(): 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 setupCredits(): 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 setupCredits(): 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 setupCredits(): 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;
|
|
@@ -994,3 +994,58 @@ contradictory history rejects without automatic refetch. A synthetic registered
|
|
|
994
994
|
host query in controlled tests does not bind a real installation policy. Fresh
|
|
995
995
|
GET acquisition, provider lifecycle/invoice/history evidence, genuine generation
|
|
996
996
|
and deployed compatibility remain outstanding.
|
|
997
|
+
|
|
998
|
+
### Private fresh provider observer
|
|
999
|
+
|
|
1000
|
+
The private fresh observer shares one invocation with the authorized history
|
|
1001
|
+
reader. The invocation is minted into a private identity table and retains the
|
|
1002
|
+
actual class/Action binding, authorization and complete history. Returned reader
|
|
1003
|
+
DATA and copied tokens cannot create an observer. The reader closes the
|
|
1004
|
+
invocation after its DATA result; the observer keeps the same original 30-second
|
|
1005
|
+
budget through acquisition and final release. No timer is reset or nested.
|
|
1006
|
+
|
|
1007
|
+
Provider reads need a separate compiled observer profile. Production entries are
|
|
1008
|
+
empty. An entry must bind the exact history entry, fixed
|
|
1009
|
+
`endive-schedule-first-44-v1` profile and an immutable, non-proxy qualifier returning
|
|
1010
|
+
literal true before client selection. Profile membership and qualifier identity
|
|
1011
|
+
remain guarded around awaits. The client comes from the maintained constructor's
|
|
1012
|
+
actual selection method at the pinned Endive API. It may be cached; the observer
|
|
1013
|
+
requires a fresh authorized selection, not a newly allocated instance or an old
|
|
1014
|
+
parent lineage.
|
|
1015
|
+
|
|
1016
|
+
The transport captures the actual SDK `rawRequest` method and receiver. It
|
|
1017
|
+
permits only sequential schedule-first GET rows, undefined bodies, zero retries
|
|
1018
|
+
and at most 44 calls. Four base replies precede at most forty distinct coupon
|
|
1019
|
+
reads. It reauthenticates and requires the unchanged authorization snapshot before
|
|
1020
|
+
each GET and before output release. Method, receiver and root configuration drift
|
|
1021
|
+
refuse. Every result retains operational authority false.
|
|
1022
|
+
|
|
1023
|
+
Only settlement of the actual returned SDK promise can produce provider-rejection
|
|
1024
|
+
DATA. A private capsule binds that promise and attempt before any diagnostic
|
|
1025
|
+
release. The captured native Promise method avoids a poisoned public `.then`.
|
|
1026
|
+
Final authorization is still required after an asynchronous rejection; timeout,
|
|
1027
|
+
authorization, synchronous dispatch and post-fulfillment decoder failures cannot
|
|
1028
|
+
masquerade as that rejection. Late settlement after expiry cannot resume reads or
|
|
1029
|
+
authorize output. The retained component receipt is never deleted on read failure.
|
|
1030
|
+
|
|
1031
|
+
The observer passes exactly the seven-input evidence contract, with invoice and
|
|
1032
|
+
historical inputs null, and preserves the analyzer's twelve-key result and false
|
|
1033
|
+
authority flags. If analysis cannot be admitted, it returns an explicit
|
|
1034
|
+
`analysis_not_admitted` marker rather than inventing evidence. Monthly future
|
|
1035
|
+
duration can remain unknown even with retained C9 when the independent duration
|
|
1036
|
+
predicate is unqualified. The controlled weekly pending profile has no trial or
|
|
1037
|
+
anchor reset; active successor matching uses the actual native item/period and
|
|
1038
|
+
does not assume that the old item ID survives.
|
|
1039
|
+
|
|
1040
|
+
Identity routing is checked separately from coupon eligibility. Multiple items or
|
|
1041
|
+
unsupported/overflowing coupon inventory stop after four base reads, with an
|
|
1042
|
+
explicit incomplete-inventory marker and the full authorized base DATA. Terminal
|
|
1043
|
+
facts from the analyzer are preserved, including unknown completion where proof
|
|
1044
|
+
is insufficient. An empty coupon array in this result does not assert a complete
|
|
1045
|
+
inventory. Foreign base identity returns conflict without adopting its material.
|
|
1046
|
+
|
|
1047
|
+
Sequential resources are not an atomic snapshot, and initial/per-read/final
|
|
1048
|
+
authorization does not prove uninterrupted permission or exclusive provider
|
|
1049
|
+
causality. Invoice selection and full line pagination, authenticated immutable
|
|
1050
|
+
historical witnesses, a public installation binding, genuine generation/deployed
|
|
1051
|
+
compatibility, provider qualification and final Dojo acceptance remain required.
|
package/package.json
CHANGED