@fantastic.dev/better-stripe 0.90.0 → 0.92.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 +12 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts +41 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js +187 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +2 -23
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +1 -112
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +8 -3
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +444 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js +99 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js +274 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js +9 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts +39 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js +245 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts +88 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js +289 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js +383 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts +9 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js +216 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js +190 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js +317 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +84 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js +27 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts +18 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +229 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts +163 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js +443 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +467 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js +59 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts +10 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js +48 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts +20 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js +44 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts +42 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js +158 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js +214 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts +33 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +208 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js +25 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js +93 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js +153 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts +22 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js +221 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js +101 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js +186 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +498 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts +21 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js +119 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js.map +1 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- 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 +26 -8
- package/docs/renewal-material-observation.md +58 -0
- package/docs/renewal-phase-assembly.md +68 -0
- package/docs/renewal-raw-acquisition.md +19 -5
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +304 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +2 -160
- package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +15 -3
- package/src/client/billing/renewalAttach/internal/configure/actor.ts +586 -0
- package/src/client/billing/renewalAttach/internal/configure/capture.ts +117 -0
- package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +32 -0
- package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +510 -0
- package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +207 -0
- package/src/client/billing/renewalAttach/internal/configure/output.ts +372 -0
- package/src/client/billing/renewalAttach/internal/configure/ownedContinuation.ts +56 -0
- package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +148 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +173 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.ts +13 -0
- package/src/client/billing/renewalAttach/internal/configure/request.ts +312 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +507 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.ts +348 -0
- package/src/client/billing/renewalAttach/internal/observation/actor.ts +487 -0
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +251 -0
- package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +60 -0
- package/src/client/billing/renewalAttach/internal/observation/profile.ts +264 -0
- package/src/client/billing/renewalAttach/internal/observation/record.ts +408 -0
- package/src/client/billing/renewalAttach/internal/observation/types.ts +107 -0
- package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +285 -0
- package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +69 -0
- package/src/client/billing/renewalAttach/internal/operations/fixedTransport.ts +574 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +535 -0
- package/src/client/billing/renewalAttach/internal/operations/ownedAwait.ts +63 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +61 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.ts +66 -0
- package/src/client/billing/renewalAttach/internal/operations/sourceOperations.ts +50 -0
- package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +116 -0
- package/src/client/billing/renewalAttach/internal/operations/types.ts +223 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +285 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts +258 -0
- package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +139 -0
- package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +257 -0
- package/src/client/billing/renewalAttach/internal/preflight/output.ts +42 -0
- package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +82 -0
- package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +354 -0
- package/src/client/billing/renewalAttach/internal/preflight/record.ts +127 -0
- package/src/client/billing/renewalAttach/internal/preflight/relations.ts +209 -0
- package/src/client/billing/renewalAttach/internal/recovery/material.ts +311 -0
- package/src/client/billing/renewalAttach/internal/recovery/output.ts +136 -0
- package/src/client/billing/renewalAttach/internal/recovery/record.ts +230 -0
- package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +463 -0
- package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +599 -0
- package/src/client/billing/renewalAttach/internal/recovery/relation.ts +175 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +217 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +226 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +556 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +180 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +144 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +122 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +330 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +139 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +513 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +344 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +278 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +17 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +537 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +325 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +471 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +587 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +192 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +197 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +269 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +262 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +319 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +94 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +16 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +21 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { owned } from "./ownedContinuation.js";
|
|
3
|
+
import { renewalSnapshot } from "../../../renewalReplacementSnapshot.js";
|
|
4
|
+
import { freeze } from "../material/nodeKernel.js";
|
|
5
|
+
import { OWNER } from "../originalOwner.js";
|
|
6
|
+
import { COMPILED_CONFIGURE_WRITE_ENTRIES as ENTRIES, COMPILED_INITIAL_ENTRIES, ORIGINAL_ORIGIN_ASSOCIATION, loadFixedConfigureWriteOperation, loadFixedConfigureReplayOperation, } from "../operations/sourceOperations.js";
|
|
7
|
+
import { closed } from "../operations/types.js";
|
|
8
|
+
import { projectRenewalConfigurationV2 as c6, constructRenewalScheduleAttachmentReceiptV2 as c3, constructRenewalConfigurationReceiptV2 as c9, } from "../../../renewalV2/index.js";
|
|
9
|
+
import { equal } from "../../../renewalAggregate/shared.js";
|
|
10
|
+
import { capturePreflightRecord } from "../preflight/record.js";
|
|
11
|
+
import { verifyPreflightRecord, verifyCurrentPreflight, } from "../preflight/relations.js";
|
|
12
|
+
import { releasePreflight } from "../preflight/output.js";
|
|
13
|
+
import { classifyOwnedRetainedInitialAttachment } from "../material/classifiers.js";
|
|
14
|
+
import { bindConfigureReadAcquisitionFromSource } from "../acquisition/ownedAcquisition.js";
|
|
15
|
+
import { createConfigureEventCompiler } from "../c10/configureEvents.js";
|
|
16
|
+
import { createConfigureWriteTransport, createConfigureReplayTransport, } from "./transport.js";
|
|
17
|
+
import { ownMethod, need, stop, expectedPlan, seven } from "./request.js";
|
|
18
|
+
import { admitConfigureACK, admitConfigureFailure, configureControl, } from "./output.js";
|
|
19
|
+
import { withinConfigureRetention } from "./replay.js";
|
|
20
|
+
// Local actual Source identities only. JSON and public preflight output never enter this map.
|
|
21
|
+
const attempts = new WeakMap(), reserved = new WeakSet();
|
|
22
|
+
function historyFor(value) {
|
|
23
|
+
return value !== null && typeof value === "object" && !types.isProxy(value)
|
|
24
|
+
? attempts.get(value)
|
|
25
|
+
: undefined;
|
|
26
|
+
}
|
|
27
|
+
function isCurrentBundle(value, record) {
|
|
28
|
+
return equal(value, {
|
|
29
|
+
...record.originalBundle,
|
|
30
|
+
wireSubscription: record.configuration.freshSubscription,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Checked process-local custody only; neither a caller context nor write authority. */
|
|
34
|
+
export function readOwnedConfigureAcknowledgement(operation, acknowledgement, record, actualAttachAcknowledgement, origin, originalEntry) {
|
|
35
|
+
OWNER.check();
|
|
36
|
+
need(arguments.length === 6);
|
|
37
|
+
const row = historyFor(operation);
|
|
38
|
+
need(row && row.owner === OWNER && row.basis === OWNER.basis);
|
|
39
|
+
need(row.origin === ORIGINAL_ORIGIN_ASSOCIATION &&
|
|
40
|
+
row.origin === origin &&
|
|
41
|
+
row.entry === originalEntry &&
|
|
42
|
+
!types.isProxy(COMPILED_INITIAL_ENTRIES) &&
|
|
43
|
+
Array.isArray(COMPILED_INITIAL_ENTRIES) &&
|
|
44
|
+
COMPILED_INITIAL_ENTRIES.includes(row.entry) &&
|
|
45
|
+
!types.isProxy(ENTRIES) &&
|
|
46
|
+
Array.isArray(ENTRIES) &&
|
|
47
|
+
ENTRIES.includes(row.configureEntry));
|
|
48
|
+
const entry = closed(row.configureEntry, [
|
|
49
|
+
"originalEntry",
|
|
50
|
+
"coversConfigure",
|
|
51
|
+
]);
|
|
52
|
+
need(entry.originalEntry === row.entry);
|
|
53
|
+
need(row.actualAttachAcknowledgement === actualAttachAcknowledgement &&
|
|
54
|
+
equal(row.record, record) &&
|
|
55
|
+
row.lineage.receiptKnown &&
|
|
56
|
+
row.state === "receipt_recorded" &&
|
|
57
|
+
row.returned === true &&
|
|
58
|
+
row.output === acknowledgement &&
|
|
59
|
+
row.rawReceipt &&
|
|
60
|
+
row.receipt);
|
|
61
|
+
// Re-admit the whole18/19 wrapper, then return detached immutable DATA only.
|
|
62
|
+
const admitted = closed(admitConfigureACK(row.record, row.rawReceipt, row.receipt), [
|
|
63
|
+
"status",
|
|
64
|
+
"originalRecord",
|
|
65
|
+
"rawReceipt",
|
|
66
|
+
"receipt",
|
|
67
|
+
"operationalAuthority",
|
|
68
|
+
]);
|
|
69
|
+
const result = Object.freeze({
|
|
70
|
+
rawReceipt: freeze(renewalSnapshot(row.rawReceipt)),
|
|
71
|
+
receipt: admitted.receipt,
|
|
72
|
+
});
|
|
73
|
+
OWNER.check();
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
function capture(replay) {
|
|
77
|
+
let consumed = false;
|
|
78
|
+
return Object.freeze({
|
|
79
|
+
async invoke() {
|
|
80
|
+
need(arguments.length === 0 && !consumed);
|
|
81
|
+
consumed = true;
|
|
82
|
+
need(!types.isProxy(ENTRIES) && Array.isArray(ENTRIES));
|
|
83
|
+
if (ENTRIES.length === 0)
|
|
84
|
+
return configureControl("not_dispatched", "no_qualified_configure_class");
|
|
85
|
+
let pair = null, row = null, actualError = null, dispatchEntered = false, structuralError, hasStructuralError = false;
|
|
86
|
+
const control = (status, reason) => {
|
|
87
|
+
if (row)
|
|
88
|
+
row.lineage.busy = false;
|
|
89
|
+
return configureControl(status, reason);
|
|
90
|
+
};
|
|
91
|
+
try {
|
|
92
|
+
OWNER.check();
|
|
93
|
+
const live = replay
|
|
94
|
+
? loadFixedConfigureReplayOperation()
|
|
95
|
+
: loadFixedConfigureWriteOperation();
|
|
96
|
+
OWNER.check();
|
|
97
|
+
need(live !== null && typeof live === "object" && !types.isProxy(live));
|
|
98
|
+
const op = closed(live, replay
|
|
99
|
+
? [
|
|
100
|
+
"owner",
|
|
101
|
+
"originAssociation",
|
|
102
|
+
"originalEntry",
|
|
103
|
+
"configureEntry",
|
|
104
|
+
"previousOperation",
|
|
105
|
+
"readPlan",
|
|
106
|
+
"delegate",
|
|
107
|
+
"sink",
|
|
108
|
+
"reserve",
|
|
109
|
+
]
|
|
110
|
+
: [
|
|
111
|
+
"owner",
|
|
112
|
+
"originAssociation",
|
|
113
|
+
"originalEntry",
|
|
114
|
+
"configureEntry",
|
|
115
|
+
"originalRecord",
|
|
116
|
+
"actualAttachAcknowledgement",
|
|
117
|
+
"readPlan",
|
|
118
|
+
"delegate",
|
|
119
|
+
"sink",
|
|
120
|
+
"reserve",
|
|
121
|
+
]);
|
|
122
|
+
need(op.owner === OWNER &&
|
|
123
|
+
op.originAssociation !== null &&
|
|
124
|
+
typeof op.originAssociation === "object" &&
|
|
125
|
+
!types.isProxy(op.originAssociation) &&
|
|
126
|
+
op.originAssociation === ORIGINAL_ORIGIN_ASSOCIATION);
|
|
127
|
+
need(!types.isProxy(COMPILED_INITIAL_ENTRIES) &&
|
|
128
|
+
Array.isArray(COMPILED_INITIAL_ENTRIES) &&
|
|
129
|
+
COMPILED_INITIAL_ENTRIES.includes(op.originalEntry));
|
|
130
|
+
need(ENTRIES.includes(op.configureEntry) &&
|
|
131
|
+
!types.isProxy(op.configureEntry));
|
|
132
|
+
const coverage = closed(op.configureEntry, [
|
|
133
|
+
"originalEntry",
|
|
134
|
+
"coversConfigure",
|
|
135
|
+
]);
|
|
136
|
+
need(coverage.originalEntry === op.originalEntry);
|
|
137
|
+
const covers = ownMethod(op.configureEntry, "coversConfigure"), retainedPredicate = ownMethod(op.originalEntry, "coversRetained"), rawMethod = ownMethod(op.delegate, "rawRequest"), reserve = ownMethod(live, "reserve"), send = ownMethod(op.sink, "send");
|
|
138
|
+
const prior = replay ? historyFor(op.previousOperation) : undefined;
|
|
139
|
+
if (replay && !prior)
|
|
140
|
+
return control("not_dispatched", "prior_attempt_unavailable");
|
|
141
|
+
const sourceRecord = prior ? prior.record : op.originalRecord;
|
|
142
|
+
need(!types.isProxy(sourceRecord));
|
|
143
|
+
const raw = closed(sourceRecord, [
|
|
144
|
+
"configuration",
|
|
145
|
+
"request",
|
|
146
|
+
"attachReceipt",
|
|
147
|
+
"originalBundle",
|
|
148
|
+
]);
|
|
149
|
+
const actualAttachAcknowledgement = prior
|
|
150
|
+
? prior.actualAttachAcknowledgement
|
|
151
|
+
: op.actualAttachAcknowledgement;
|
|
152
|
+
// Detached prior record was originally proved against this actual pointer; it is not rehydrated.
|
|
153
|
+
if (!prior)
|
|
154
|
+
need(raw.attachReceipt === actualAttachAcknowledgement);
|
|
155
|
+
const retained = capturePreflightRecord(sourceRecord);
|
|
156
|
+
OWNER.check();
|
|
157
|
+
let original;
|
|
158
|
+
try {
|
|
159
|
+
original = await owned(() => c6(retained.configuration));
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
OWNER.check();
|
|
163
|
+
structuralError = error;
|
|
164
|
+
hasStructuralError = true;
|
|
165
|
+
throw error;
|
|
166
|
+
}
|
|
167
|
+
OWNER.check();
|
|
168
|
+
if (original.status !== "projected_configure_request")
|
|
169
|
+
return original;
|
|
170
|
+
const ack = await owned(() => c3(retained.configuration.attachReceipt));
|
|
171
|
+
OWNER.check();
|
|
172
|
+
const record = verifyPreflightRecord(retained, original, ack);
|
|
173
|
+
const classification = await owned(() => classifyOwnedRetainedInitialAttachment({
|
|
174
|
+
attachRequest: record.configuration.attachReceipt.attachRequest,
|
|
175
|
+
originalBundle: record.originalBundle,
|
|
176
|
+
}));
|
|
177
|
+
OWNER.check();
|
|
178
|
+
need(classification.status === "classified");
|
|
179
|
+
need(Reflect.apply(retainedPredicate, op.originalEntry, [
|
|
180
|
+
classification.material,
|
|
181
|
+
record.originalBundle,
|
|
182
|
+
]) === true);
|
|
183
|
+
OWNER.check();
|
|
184
|
+
const basis = OWNER.basis;
|
|
185
|
+
if (prior) {
|
|
186
|
+
need(prior.owner === OWNER &&
|
|
187
|
+
prior.basis === basis &&
|
|
188
|
+
prior.origin === op.originAssociation &&
|
|
189
|
+
prior.entry === op.originalEntry &&
|
|
190
|
+
prior.configureEntry === op.configureEntry &&
|
|
191
|
+
equal(prior.record, record));
|
|
192
|
+
if (prior.state !== "post_unknown" ||
|
|
193
|
+
prior.lineage.receiptKnown ||
|
|
194
|
+
prior.lineage.receiptPending ||
|
|
195
|
+
prior.lineage.busy)
|
|
196
|
+
return control("not_dispatched", "prior_attempt_not_replayable");
|
|
197
|
+
if (!withinConfigureRetention(OWNER.check().nowSeconds, record.request.firstDispatchedAt))
|
|
198
|
+
return control("not_dispatched", "retention_expired");
|
|
199
|
+
}
|
|
200
|
+
need(!reserved.has(live));
|
|
201
|
+
OWNER.check();
|
|
202
|
+
need(Reflect.apply(reserve, live, []) === true);
|
|
203
|
+
OWNER.check();
|
|
204
|
+
reserved.add(live);
|
|
205
|
+
pair = replay
|
|
206
|
+
? createConfigureReplayTransport()
|
|
207
|
+
: createConfigureWriteTransport();
|
|
208
|
+
OWNER.check();
|
|
209
|
+
need(pair.capability.assertSourceOperationBinding(live, original, op.readPlan, op.delegate, rawMethod, expectedPlan(record)));
|
|
210
|
+
OWNER.check();
|
|
211
|
+
need(pair.capability.reserveAcquisition());
|
|
212
|
+
OWNER.check();
|
|
213
|
+
const lineage = prior
|
|
214
|
+
? prior.lineage
|
|
215
|
+
: { receiptKnown: false, receiptPending: false, busy: false };
|
|
216
|
+
need(!lineage.busy && !lineage.receiptKnown && !lineage.receiptPending);
|
|
217
|
+
lineage.busy = true;
|
|
218
|
+
row = {
|
|
219
|
+
record,
|
|
220
|
+
owner: OWNER,
|
|
221
|
+
basis,
|
|
222
|
+
origin: op.originAssociation,
|
|
223
|
+
entry: op.originalEntry,
|
|
224
|
+
configureEntry: op.configureEntry,
|
|
225
|
+
actualAttachAcknowledgement,
|
|
226
|
+
lineage,
|
|
227
|
+
state: "not_started",
|
|
228
|
+
returned: false,
|
|
229
|
+
pair,
|
|
230
|
+
};
|
|
231
|
+
attempts.set(live, row);
|
|
232
|
+
const reader = bindConfigureReadAcquisitionFromSource(OWNER, pair.transport.readTransport, Object.freeze({
|
|
233
|
+
expected: record.configuration.preparation.expected,
|
|
234
|
+
scheduleId: ack.scheduleId,
|
|
235
|
+
}));
|
|
236
|
+
OWNER.check();
|
|
237
|
+
let acquired;
|
|
238
|
+
try {
|
|
239
|
+
acquired = await owned(() => reader.acquire());
|
|
240
|
+
}
|
|
241
|
+
catch {
|
|
242
|
+
OWNER.check();
|
|
243
|
+
const fact = pair.capability.consumeReadCatch();
|
|
244
|
+
if (fact) {
|
|
245
|
+
const failure = admitConfigureFailure(fact.phase, fact.resource, fact.ordinal, original, fact.diagnostics);
|
|
246
|
+
actualError = Error("OWNED_CONFIGURE_PROVIDER_REJECTED");
|
|
247
|
+
Object.defineProperty(actualError, "failure", {
|
|
248
|
+
value: failure,
|
|
249
|
+
enumerable: false,
|
|
250
|
+
writable: false,
|
|
251
|
+
configurable: false,
|
|
252
|
+
});
|
|
253
|
+
throw actualError;
|
|
254
|
+
}
|
|
255
|
+
return stop();
|
|
256
|
+
}
|
|
257
|
+
OWNER.check();
|
|
258
|
+
if (!acquired.ok) {
|
|
259
|
+
const fact = pair.capability.consumeReadCatch();
|
|
260
|
+
if (fact) {
|
|
261
|
+
const failure = admitConfigureFailure(fact.phase, fact.resource, fact.ordinal, original, fact.diagnostics);
|
|
262
|
+
actualError = Error("OWNED_CONFIGURE_PROVIDER_REJECTED");
|
|
263
|
+
Object.defineProperty(actualError, "failure", {
|
|
264
|
+
value: failure,
|
|
265
|
+
enumerable: false,
|
|
266
|
+
writable: false,
|
|
267
|
+
configurable: false,
|
|
268
|
+
});
|
|
269
|
+
throw actualError;
|
|
270
|
+
}
|
|
271
|
+
return stop();
|
|
272
|
+
}
|
|
273
|
+
if (!isCurrentBundle(acquired.bundle, record))
|
|
274
|
+
return control("not_dispatched", "preconfigure_baseline_changed");
|
|
275
|
+
const evidence = Object.freeze({
|
|
276
|
+
bundle: acquired.bundle,
|
|
277
|
+
schedule: acquired.schedule,
|
|
278
|
+
observedAt: acquired.observedAt,
|
|
279
|
+
});
|
|
280
|
+
try {
|
|
281
|
+
verifyCurrentPreflight(record, evidence);
|
|
282
|
+
}
|
|
283
|
+
catch {
|
|
284
|
+
OWNER.check();
|
|
285
|
+
return control("not_dispatched", "preconfigure_baseline_changed");
|
|
286
|
+
}
|
|
287
|
+
OWNER.check();
|
|
288
|
+
const configuration = {
|
|
289
|
+
...record.configuration,
|
|
290
|
+
freshSubscription: evidence.bundle.wireSubscription,
|
|
291
|
+
targetPrice: evidence.bundle.wireTargetPrice,
|
|
292
|
+
...(Object.prototype.hasOwnProperty.call(record.configuration, "billingCustomer")
|
|
293
|
+
? { billingCustomer: evidence.bundle.wireBillingCustomer }
|
|
294
|
+
: {}),
|
|
295
|
+
schedule: evidence.schedule,
|
|
296
|
+
observedAt: evidence.observedAt,
|
|
297
|
+
};
|
|
298
|
+
const fresh = await owned(() => c6(configuration));
|
|
299
|
+
OWNER.check();
|
|
300
|
+
if (fresh.status !== "projected_configure_request") {
|
|
301
|
+
row.lineage.busy = false;
|
|
302
|
+
return fresh;
|
|
303
|
+
}
|
|
304
|
+
need(equal(fresh, original) && equal(fresh, record.request));
|
|
305
|
+
need(Reflect.apply(covers, op.configureEntry, [
|
|
306
|
+
record,
|
|
307
|
+
evidence,
|
|
308
|
+
fresh,
|
|
309
|
+
]) === true);
|
|
310
|
+
OWNER.check();
|
|
311
|
+
releasePreflight(record, evidence, fresh, original, ack);
|
|
312
|
+
OWNER.check();
|
|
313
|
+
const compiler = createConfigureEventCompiler(record.configuration, {
|
|
314
|
+
timeoutMs: 5000,
|
|
315
|
+
send(event, acknowledge) {
|
|
316
|
+
OWNER.check();
|
|
317
|
+
return Reflect.apply(send, op.sink, [event, acknowledge]);
|
|
318
|
+
},
|
|
319
|
+
});
|
|
320
|
+
OWNER.check();
|
|
321
|
+
dispatchEntered = true;
|
|
322
|
+
await owned(() => compiler.dispatch({
|
|
323
|
+
event: "dispatch",
|
|
324
|
+
stage: "configure",
|
|
325
|
+
request: original,
|
|
326
|
+
}));
|
|
327
|
+
OWNER.check();
|
|
328
|
+
row.state = "post_pending";
|
|
329
|
+
const activePair = pair;
|
|
330
|
+
const reply = await owned(() => activePair.transport.postConfigure());
|
|
331
|
+
OWNER.check();
|
|
332
|
+
if (activePair.capability.consumeNotStarted(reply)) {
|
|
333
|
+
row.state = "not_started";
|
|
334
|
+
return control("not_dispatched", "post_not_started");
|
|
335
|
+
}
|
|
336
|
+
const disposition = activePair.transport.postDisposition();
|
|
337
|
+
if (disposition !== "REJECTED" &&
|
|
338
|
+
disposition !== "FULFILLED_UNVERIFIED" &&
|
|
339
|
+
disposition !== "FULFILLED_SAFE")
|
|
340
|
+
return control("configure_unknown", "post_unverified");
|
|
341
|
+
row.state = "post_unknown";
|
|
342
|
+
const fact = activePair.capability.consumePostCatch(reply);
|
|
343
|
+
OWNER.check();
|
|
344
|
+
if (fact) {
|
|
345
|
+
const failure = admitConfigureFailure(fact.phase, fact.resource, fact.ordinal, original, fact.diagnostics);
|
|
346
|
+
actualError = Error("OWNED_CONFIGURE_PROVIDER_REJECTED");
|
|
347
|
+
Object.defineProperty(actualError, "failure", {
|
|
348
|
+
value: failure,
|
|
349
|
+
enumerable: false,
|
|
350
|
+
writable: false,
|
|
351
|
+
configurable: false,
|
|
352
|
+
});
|
|
353
|
+
throw actualError;
|
|
354
|
+
}
|
|
355
|
+
if (reply.outcome !== "fulfilled_safe")
|
|
356
|
+
return control("configure_unknown", "post_unverified");
|
|
357
|
+
await owned(() => compiler.response({
|
|
358
|
+
event: "response",
|
|
359
|
+
stage: "configure",
|
|
360
|
+
request: original,
|
|
361
|
+
body: reply.body,
|
|
362
|
+
transport: reply.transport,
|
|
363
|
+
}));
|
|
364
|
+
OWNER.check();
|
|
365
|
+
const rawReceipt = Object.freeze({
|
|
366
|
+
configuration: record.configuration,
|
|
367
|
+
actualDispatch: seven(original),
|
|
368
|
+
providerSnapshot: reply.body,
|
|
369
|
+
transport: reply.transport,
|
|
370
|
+
});
|
|
371
|
+
const receipt = await owned(() => c9(rawReceipt));
|
|
372
|
+
OWNER.check();
|
|
373
|
+
// Actual C9 success is retained before output admission or receipt-event publication.
|
|
374
|
+
// This closes the whole lineage even if either later admission/publication fails.
|
|
375
|
+
row.rawReceipt = rawReceipt;
|
|
376
|
+
row.receipt = receipt;
|
|
377
|
+
row.state = "receipt_prepared";
|
|
378
|
+
lineage.receiptKnown = true;
|
|
379
|
+
const output = admitConfigureACK(record, rawReceipt, receipt);
|
|
380
|
+
OWNER.check();
|
|
381
|
+
row.output = output;
|
|
382
|
+
lineage.receiptPending = true;
|
|
383
|
+
await owned(() => compiler.receipt({
|
|
384
|
+
event: "receipt",
|
|
385
|
+
stage: "configure",
|
|
386
|
+
request: original,
|
|
387
|
+
receipt,
|
|
388
|
+
}));
|
|
389
|
+
row.state = "receipt_recorded";
|
|
390
|
+
lineage.busy = false;
|
|
391
|
+
OWNER.check();
|
|
392
|
+
activePair.capability.discardFulfilledQuarantine();
|
|
393
|
+
row.returned = true;
|
|
394
|
+
return output;
|
|
395
|
+
}
|
|
396
|
+
catch (error) {
|
|
397
|
+
let live = false;
|
|
398
|
+
try {
|
|
399
|
+
OWNER.check();
|
|
400
|
+
live = true;
|
|
401
|
+
}
|
|
402
|
+
catch {
|
|
403
|
+
/* Closed Owner permits no provider reflection. */
|
|
404
|
+
}
|
|
405
|
+
if (row) {
|
|
406
|
+
row.lineage.busy = false;
|
|
407
|
+
if (live && !row.lineage.receiptKnown)
|
|
408
|
+
row.lineage.receiptPending = false;
|
|
409
|
+
}
|
|
410
|
+
if (live && hasStructuralError && error === structuralError)
|
|
411
|
+
throw error;
|
|
412
|
+
if (live && actualError !== null && error === actualError)
|
|
413
|
+
throw error;
|
|
414
|
+
if (pair && dispatchEntered) {
|
|
415
|
+
const disposition = pair.transport.postDisposition();
|
|
416
|
+
if (disposition === "NOT_STARTED") {
|
|
417
|
+
if (!live)
|
|
418
|
+
return stop();
|
|
419
|
+
if (row)
|
|
420
|
+
row.state = "not_started";
|
|
421
|
+
return control("not_dispatched", "post_not_started");
|
|
422
|
+
}
|
|
423
|
+
if (row &&
|
|
424
|
+
disposition !== "PENDING" &&
|
|
425
|
+
row.state !== "receipt_prepared" &&
|
|
426
|
+
row.state !== "receipt_recorded")
|
|
427
|
+
row.state = "post_unknown";
|
|
428
|
+
return control("configure_unknown", live ? "post_unverified" : "owner_closed_after_post");
|
|
429
|
+
}
|
|
430
|
+
return stop();
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/** Internal fixed zeroarg entrypoints. Normal Source registries stay EMPTY. */
|
|
436
|
+
export function captureOwnedConfigureV2() {
|
|
437
|
+
need(arguments.length === 0);
|
|
438
|
+
return capture(false);
|
|
439
|
+
}
|
|
440
|
+
export function captureOwnedConfigureReplayV2() {
|
|
441
|
+
need(arguments.length === 0);
|
|
442
|
+
return capture(true);
|
|
443
|
+
}
|
|
444
|
+
//# sourceMappingURL=actor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/actor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,gCAAgC,IAAI,OAAO,EAC3C,wBAAwB,EACxB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACL,6BAA6B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
+
import type { Diagnostics } from "../operations/providerFailure.js";
|
|
2
|
+
/** Owner gating is supplied by the actual pair before this DATA capture. */
|
|
3
|
+
export declare function captureConfigureReply(raw: unknown): {
|
|
4
|
+
body: Record<string, unknown>;
|
|
5
|
+
transport: {
|
|
6
|
+
status: number;
|
|
7
|
+
requestId?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/** Read own DATA only after actual live catch. Unsafe optional diagnostics are omitted. */
|
|
11
|
+
export declare function configureDiagnostics(raw: unknown): Diagnostics;
|
|
12
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/capture.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAOpE,4EAA4E;AAC5E,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO;UA+DhC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;EAGxC;AACD,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAmC9D"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { rejectProxyJSON } from "../acquisition/rawWireSource.js";
|
|
3
|
+
import { requiredJSONSnapshot } from "../material/requiredJson.js";
|
|
4
|
+
import { freeze } from "../material/nodeKernel.js";
|
|
5
|
+
import { need } from "./request.js";
|
|
6
|
+
const responsePrototype = Response.prototype;
|
|
7
|
+
const statusGetter = Object.getOwnPropertyDescriptor(responsePrototype, "status").get;
|
|
8
|
+
/** Owner gating is supplied by the actual pair before this DATA capture. */
|
|
9
|
+
export function captureConfigureReply(raw) {
|
|
10
|
+
rejectProxyJSON(raw, true);
|
|
11
|
+
need(raw !== null && typeof raw === "object" && !Array.isArray(raw));
|
|
12
|
+
const proto = Object.getPrototypeOf(raw);
|
|
13
|
+
need(proto === Object.prototype || proto === null);
|
|
14
|
+
const descriptor = Object.getOwnPropertyDescriptor(raw, "lastResponse");
|
|
15
|
+
need(descriptor &&
|
|
16
|
+
!descriptor.enumerable &&
|
|
17
|
+
"value" in descriptor &&
|
|
18
|
+
descriptor.value !== null &&
|
|
19
|
+
typeof descriptor.value === "object" &&
|
|
20
|
+
!types.isProxy(descriptor.value));
|
|
21
|
+
const meta = descriptor.value, codes = [];
|
|
22
|
+
for (const key of ["status", "statusCode"]) {
|
|
23
|
+
const d = Object.getOwnPropertyDescriptor(meta, key);
|
|
24
|
+
if (d) {
|
|
25
|
+
need("value" in d);
|
|
26
|
+
if (d.value !== undefined)
|
|
27
|
+
codes.push(d.value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (Object.getPrototypeOf(meta) === responsePrototype)
|
|
31
|
+
codes.push(Reflect.apply(statusGetter, meta, []));
|
|
32
|
+
need(codes.length > 0 &&
|
|
33
|
+
codes.every((x) => typeof x === "number" &&
|
|
34
|
+
Number.isInteger(x) &&
|
|
35
|
+
x >= 200 &&
|
|
36
|
+
x < 300 &&
|
|
37
|
+
x === codes[0]));
|
|
38
|
+
const status = codes[0];
|
|
39
|
+
need(typeof status === "number");
|
|
40
|
+
const entries = [];
|
|
41
|
+
for (const key of Reflect.ownKeys(raw)) {
|
|
42
|
+
need(typeof key === "string");
|
|
43
|
+
if (key === "lastResponse")
|
|
44
|
+
continue;
|
|
45
|
+
const d = Object.getOwnPropertyDescriptor(raw, key);
|
|
46
|
+
need(d && d.enumerable && "value" in d);
|
|
47
|
+
entries.push([key, d.value]);
|
|
48
|
+
}
|
|
49
|
+
const body = requiredJSONSnapshot(Object.fromEntries(entries));
|
|
50
|
+
need(body !== null && typeof body === "object" && !Array.isArray(body));
|
|
51
|
+
const d = Object.getOwnPropertyDescriptor(meta, "requestId");
|
|
52
|
+
let requestId;
|
|
53
|
+
if (d) {
|
|
54
|
+
need("value" in d);
|
|
55
|
+
if (d.value !== undefined) {
|
|
56
|
+
need(typeof d.value === "string" &&
|
|
57
|
+
d.value.length >= 1 &&
|
|
58
|
+
d.value.length <= 255);
|
|
59
|
+
requiredJSONSnapshot(d.value);
|
|
60
|
+
requestId = d.value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return freeze({
|
|
64
|
+
body: body,
|
|
65
|
+
transport: { status, ...(requestId === undefined ? {} : { requestId }) },
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** Read own DATA only after actual live catch. Unsafe optional diagnostics are omitted. */
|
|
69
|
+
export function configureDiagnostics(raw) {
|
|
70
|
+
const result = {};
|
|
71
|
+
if (raw === null || typeof raw !== "object" || types.isProxy(raw))
|
|
72
|
+
return Object.freeze(result);
|
|
73
|
+
for (const key of ["type", "code", "statusCode", "requestId"]) {
|
|
74
|
+
const d = Object.getOwnPropertyDescriptor(raw, key);
|
|
75
|
+
if (!d || !("value" in d))
|
|
76
|
+
continue;
|
|
77
|
+
const value = d.value;
|
|
78
|
+
if (key === "statusCode") {
|
|
79
|
+
if (typeof value === "number" &&
|
|
80
|
+
Number.isInteger(value) &&
|
|
81
|
+
value >= 100 &&
|
|
82
|
+
value <= 599)
|
|
83
|
+
result[key] = value;
|
|
84
|
+
}
|
|
85
|
+
else if (typeof value === "string" &&
|
|
86
|
+
value.length >= 1 &&
|
|
87
|
+
value.length <= 255) {
|
|
88
|
+
try {
|
|
89
|
+
requiredJSONSnapshot(value);
|
|
90
|
+
result[key] = value;
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
/* Unsafe diagnostics do not change actual catch identity. */
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return Object.freeze(result);
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=capture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/intern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AAC,GAAG,CAAC;QAC/D,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,CAAU,EAAE,CAAC;QACvE,MAAM,CAAC,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACpD,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC;YAAE,SAAS;QACpC,MAAM,KAAK,GAAY,CAAC,CAAC,KAAK,CAAC;QAC/B,IAAI,GAAG,KAAK,YAAY,EAAE,CAAC;YACzB,IACE,OAAO,KAAK,KAAK,QAAQ;gBACzB,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;gBACvB,KAAK,IAAI,GAAG;gBACZ,KAAK,IAAI,GAAG;gBAEZ,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACxB,CAAC;aAAM,IACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,CAAC,MAAM,IAAI,CAAC;YACjB,KAAK,CAAC,MAAM,IAAI,GAAG,EACnB,CAAC;YACD,IAAI,CAAC;gBACH,oBAAoB,CAAC,KAAK,CAAC,CAAC;gBAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACtB,CAAC;YAAC,MAAM,CAAC;gBACP,6DAA6D;YAC/D,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PreflightRecord } from "../preflight/grammar.js";
|
|
2
|
+
import type { ProjectedRenewalConfigurationV2, RenewalConfigurationReceiptV2, ConstructRenewalConfigurationReceiptV2Options } from "../../../renewalV2/index.js";
|
|
3
|
+
import type { Diagnostics } from "../operations/providerFailure.js";
|
|
4
|
+
export declare function captureConfigureRequest(raw: unknown): ProjectedRenewalConfigurationV2;
|
|
5
|
+
declare function failure(phase: "read" | "post", resource: string, ordinal: number, request: ProjectedRenewalConfigurationV2, diagnostics: Diagnostics): unknown;
|
|
6
|
+
declare function ack(originalRecord: PreflightRecord, rawReceipt: ConstructRenewalConfigurationReceiptV2Options, actualReceipt: RenewalConfigurationReceiptV2): unknown;
|
|
7
|
+
/** Fixed control output has no raw values and no operational capability. */
|
|
8
|
+
export declare function configureControl(status: "not_dispatched" | "configure_unknown", reason: string): Readonly<{
|
|
9
|
+
status: "configure_unknown" | "not_dispatched";
|
|
10
|
+
reason: string;
|
|
11
|
+
operationalAuthority: false;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function admitConfigureFailure(...args: Parameters<typeof failure>): unknown;
|
|
14
|
+
export declare function admitConfigureACK(...args: Parameters<typeof ack>): unknown;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/output.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,+BAA+B,EAC/B,6BAA6B,EAC7B,6CAA6C,EAC9C,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAiGpE,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,OAAO,GACX,+BAA+B,CAQjC;AACD,iBAAS,OAAO,CACd,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,+BAA+B,EACxC,WAAW,EAAE,WAAW,WAuDzB;AACD,iBAAS,GAAG,CACV,cAAc,EAAE,eAAe,EAC/B,UAAU,EAAE,6CAA6C,EACzD,aAAa,EAAE,6BAA6B,WA2J7C;AACD,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,gBAAgB,GAAG,mBAAmB,EAC9C,MAAM,EAAE,MAAM;;;;GAGf;AAED,wBAAgB,qBAAqB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,WAMxE;AACD,wBAAgB,iBAAiB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,WAMhE"}
|