@fantastic.dev/better-stripe 0.89.0 → 0.91.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/array-order.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +61 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +18 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +67 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +1 -0
- 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/raw-acquisition.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +372 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts +55 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js +87 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +131 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js +60 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +126 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +627 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +488 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +214 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +63 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +75 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +145 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +26 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.js +202 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js +117 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js +111 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts +11 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +376 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js +119 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts +30 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.js +74 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.js +175 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.js +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +26 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +42 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +60 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +335 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +122 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +46 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +87 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +35 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +90 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +132 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +16 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +43 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +132 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +200 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +150 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +124 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +69 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +152 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +5 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +243 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +17 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +75 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +173 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +30 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +29 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +33 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +173 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +449 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +9 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +27 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +150 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +503 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +91 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +14 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +41 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +103 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +46 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +73 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +294 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +60 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +58 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +96 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +40 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +454 -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/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/material/capture.d.ts +88 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.js +181 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +522 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js +226 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts +17 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js +95 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +338 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +122 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.js +174 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.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 +362 -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 +215 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.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 +79 -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/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- 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/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +54 -8
- package/docs/renewal-material-observation.md +37 -0
- package/docs/renewal-phase-assembly.md +91 -0
- package/docs/renewal-raw-acquisition.md +78 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +70 -0
- package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +23 -0
- package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +77 -0
- package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +304 -0
- package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +418 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +2 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.ts +110 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +168 -0
- package/src/client/billing/renewalAttach/internal/acquisition/readLifetime.ts +64 -0
- package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +138 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +510 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +64 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +159 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +25 -0
- package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +86 -0
- package/src/client/billing/renewalAttach/internal/c10/appendAck.ts +226 -0
- package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +186 -0
- package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +47 -0
- package/src/client/billing/renewalAttach/internal/c10/attachEvents.ts +144 -0
- package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +443 -0
- package/src/client/billing/renewalAttach/internal/c10/configureEvents.ts +145 -0
- package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +464 -0
- package/src/client/billing/renewalAttach/internal/c10/eventCodec.ts +131 -0
- package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +175 -0
- package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +114 -0
- package/src/client/billing/renewalAttach/internal/c10/ownData.ts +103 -0
- package/src/client/billing/renewalAttach/internal/c10/ownerBinding.ts +2 -0
- package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +283 -0
- package/src/client/billing/renewalAttach/internal/c10/privacy.ts +181 -0
- package/src/client/billing/renewalAttach/internal/c10/publicApi.ts +8 -0
- package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +87 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +3 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +49 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +63 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +160 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +88 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +102 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +20 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +137 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +153 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +85 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +170 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +6 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +295 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +78 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +177 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +8 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +34 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +32 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +177 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +466 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +29 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +165 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +507 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +89 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +38 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +45 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +309 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +58 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +104 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +43 -0
- package/src/client/billing/renewalAttach/internal/configure/actor.ts +575 -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/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/material/capture.ts +243 -0
- package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +510 -0
- package/src/client/billing/renewalAttach/internal/material/classifiers.ts +313 -0
- package/src/client/billing/renewalAttach/internal/material/nodeKernel.ts +118 -0
- package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +176 -0
- package/src/client/billing/renewalAttach/internal/material/requiredJson.ts +183 -0
- package/src/client/billing/renewalAttach/internal/observation/actor.ts +444 -0
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +250 -0
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -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 +102 -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 +533 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +314 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +463 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +600 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -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,183 @@
|
|
|
1
|
+
// Private required-material prerequisite. No operator, PII or typed-field admission.
|
|
2
|
+
const STOP = "REQUIRED_JSON_PRIVACY_STOP";
|
|
3
|
+
const credentialNames = new Set([
|
|
4
|
+
"clientsecret",
|
|
5
|
+
"confirmationsecret",
|
|
6
|
+
"accesstoken",
|
|
7
|
+
"refreshtoken",
|
|
8
|
+
"authorization",
|
|
9
|
+
"apikey",
|
|
10
|
+
"secretkey",
|
|
11
|
+
"adminkey",
|
|
12
|
+
"privatekey",
|
|
13
|
+
"stripesecretkey",
|
|
14
|
+
"cardnumber",
|
|
15
|
+
"creditcardnumber",
|
|
16
|
+
"cvc",
|
|
17
|
+
"cvv",
|
|
18
|
+
"bankaccountnumber",
|
|
19
|
+
"routingnumber",
|
|
20
|
+
"iban",
|
|
21
|
+
"accountnumber",
|
|
22
|
+
]);
|
|
23
|
+
const credentialText =
|
|
24
|
+
/(?:sk|rk)_(?:test|live)_|whsec_|_secret_|\bBearer\s+|\bAuthorization\s*:|-----BEGIN (?:[A-Z]+ )?PRIVATE KEY-----|(?:^|\D)(?:\d[ -]?){12,18}\d(?:$|\D)/i;
|
|
25
|
+
const fail: () => never = () => {
|
|
26
|
+
throw new Error(STOP);
|
|
27
|
+
};
|
|
28
|
+
// Counts JSON escaping without serializing or reading object properties.
|
|
29
|
+
function stringSize(text: string) {
|
|
30
|
+
let bytes = 2,
|
|
31
|
+
characters = 2;
|
|
32
|
+
for (let i = 0; i < text.length; i++) {
|
|
33
|
+
const n = text.charCodeAt(i);
|
|
34
|
+
if (n === 34 || n === 92 || [8, 9, 10, 12, 13].includes(n)) {
|
|
35
|
+
bytes += 2;
|
|
36
|
+
characters += 2;
|
|
37
|
+
} else if (n < 32) {
|
|
38
|
+
bytes += 6;
|
|
39
|
+
characters += 6;
|
|
40
|
+
} else if (
|
|
41
|
+
n >= 0xd800 &&
|
|
42
|
+
n <= 0xdbff &&
|
|
43
|
+
i + 1 < text.length &&
|
|
44
|
+
text.charCodeAt(i + 1) >= 0xdc00 &&
|
|
45
|
+
text.charCodeAt(i + 1) <= 0xdfff
|
|
46
|
+
) {
|
|
47
|
+
bytes += 4;
|
|
48
|
+
characters += 2;
|
|
49
|
+
i++;
|
|
50
|
+
} else if (n >= 0xd800 && n <= 0xdfff) {
|
|
51
|
+
bytes += 6;
|
|
52
|
+
characters += 6;
|
|
53
|
+
} else {
|
|
54
|
+
bytes += n < 128 ? 1 : n < 2048 ? 2 : 3;
|
|
55
|
+
characters++;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return { bytes, characters };
|
|
59
|
+
}
|
|
60
|
+
export function requiredJSONSnapshot(value: unknown): unknown {
|
|
61
|
+
try {
|
|
62
|
+
let nodes = 0,
|
|
63
|
+
rawCharacters = 0,
|
|
64
|
+
jsonCharacters = 0,
|
|
65
|
+
utf8Bytes = 0;
|
|
66
|
+
const active = new Set<object>(),
|
|
67
|
+
captures = new Map<
|
|
68
|
+
object,
|
|
69
|
+
{ array: boolean; entries: [string, unknown][] }
|
|
70
|
+
>();
|
|
71
|
+
function charge(characters: number, bytes: number) {
|
|
72
|
+
jsonCharacters += characters;
|
|
73
|
+
utf8Bytes += bytes;
|
|
74
|
+
if (jsonCharacters > 500000 || utf8Bytes > 500000) fail();
|
|
75
|
+
}
|
|
76
|
+
function string(text: string) {
|
|
77
|
+
if (credentialText.test(text)) fail();
|
|
78
|
+
rawCharacters += text.length;
|
|
79
|
+
if (rawCharacters > 500000) fail();
|
|
80
|
+
const size = stringSize(text);
|
|
81
|
+
charge(size.characters, size.bytes);
|
|
82
|
+
}
|
|
83
|
+
function scan(item: unknown, depth: number) {
|
|
84
|
+
if (++nodes > 10000 || depth > 40) fail();
|
|
85
|
+
if (typeof item === "string") {
|
|
86
|
+
string(item);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (item === null) {
|
|
90
|
+
charge(4, 4);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (typeof item === "boolean") {
|
|
94
|
+
charge(item ? 4 : 5, item ? 4 : 5);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (typeof item === "number") {
|
|
98
|
+
if (
|
|
99
|
+
!Number.isFinite(item) ||
|
|
100
|
+
(Number.isInteger(item) && !Number.isSafeInteger(item))
|
|
101
|
+
)
|
|
102
|
+
fail();
|
|
103
|
+
const size = String(item).length;
|
|
104
|
+
charge(size, size);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (!item || typeof item !== "object" || active.has(item)) fail();
|
|
108
|
+
const array = Array.isArray(item),
|
|
109
|
+
proto = Object.getPrototypeOf(item);
|
|
110
|
+
if (
|
|
111
|
+
array
|
|
112
|
+
? proto !== Array.prototype
|
|
113
|
+
: proto !== Object.prototype && proto !== null
|
|
114
|
+
)
|
|
115
|
+
fail();
|
|
116
|
+
const keys = Reflect.ownKeys(item);
|
|
117
|
+
if (keys.some((key) => typeof key !== "string")) fail();
|
|
118
|
+
const length = array
|
|
119
|
+
? Object.getOwnPropertyDescriptor(item, "length")
|
|
120
|
+
: null;
|
|
121
|
+
if (
|
|
122
|
+
array &&
|
|
123
|
+
(!length ||
|
|
124
|
+
!("value" in length) ||
|
|
125
|
+
!Number.isSafeInteger(length.value) ||
|
|
126
|
+
length.value > 10000)
|
|
127
|
+
)
|
|
128
|
+
fail();
|
|
129
|
+
const entries: [string, unknown][] = [];
|
|
130
|
+
for (const key of keys) {
|
|
131
|
+
if (array && key === "length") continue;
|
|
132
|
+
if (entries.length >= 10000) fail();
|
|
133
|
+
if (
|
|
134
|
+
array &&
|
|
135
|
+
(!/^(0|[1-9][0-9]*)$/.test(key as string) ||
|
|
136
|
+
Number(key) >= length!.value)
|
|
137
|
+
)
|
|
138
|
+
fail();
|
|
139
|
+
// Secret names themselves are not secret values. Non-null values stop.
|
|
140
|
+
const descriptor = Object.getOwnPropertyDescriptor(item, key);
|
|
141
|
+
if (!descriptor || !descriptor.enumerable || !("value" in descriptor))
|
|
142
|
+
fail();
|
|
143
|
+
if (
|
|
144
|
+
credentialNames.has(
|
|
145
|
+
(key as string).replace(/[^A-Za-z0-9]/g, "").toLowerCase(),
|
|
146
|
+
) &&
|
|
147
|
+
descriptor.value !== null
|
|
148
|
+
)
|
|
149
|
+
fail();
|
|
150
|
+
if (!array) string(key as string);
|
|
151
|
+
else {
|
|
152
|
+
rawCharacters += (key as string).length;
|
|
153
|
+
if (rawCharacters > 500000) fail();
|
|
154
|
+
}
|
|
155
|
+
entries.push([key as string, descriptor.value]);
|
|
156
|
+
}
|
|
157
|
+
if (array && entries.length !== length!.value) fail();
|
|
158
|
+
charge(
|
|
159
|
+
2 + Math.max(0, entries.length - 1) + (array ? 0 : entries.length),
|
|
160
|
+
2 + Math.max(0, entries.length - 1) + (array ? 0 : entries.length),
|
|
161
|
+
);
|
|
162
|
+
active.add(item);
|
|
163
|
+
for (const [, child] of entries) scan(child, depth + 1);
|
|
164
|
+
active.delete(item);
|
|
165
|
+
// Internal descriptor capture only. No detached JSON clone exists until all scans pass.
|
|
166
|
+
captures.set(item, { array, entries });
|
|
167
|
+
}
|
|
168
|
+
scan(value, 0);
|
|
169
|
+
function copy(item: unknown): unknown {
|
|
170
|
+
if (!item || typeof item !== "object") return item;
|
|
171
|
+
const { array, entries } = captures.get(item)!;
|
|
172
|
+
if (array) return entries.map(([, child]) => copy(child));
|
|
173
|
+
return Object.fromEntries(
|
|
174
|
+
entries
|
|
175
|
+
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
|
|
176
|
+
.map(([key, child]) => [key, copy(child)]),
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
return copy(value);
|
|
180
|
+
} catch {
|
|
181
|
+
fail();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { OWNER as ORIGINAL_OWNER } from "../originalOwner.js";
|
|
3
|
+
import {
|
|
4
|
+
ORIGINAL_ORIGIN_ASSOCIATION,
|
|
5
|
+
COMPILED_INITIAL_ENTRIES,
|
|
6
|
+
COMPILED_OBSERVATION_ENTRIES,
|
|
7
|
+
loadFixedObservationOperation,
|
|
8
|
+
} from "../operations/sourceOperations.js";
|
|
9
|
+
import {
|
|
10
|
+
projectRenewalConfigurationV2,
|
|
11
|
+
constructRenewalScheduleAttachmentReceiptV2,
|
|
12
|
+
} from "../../../renewalV2/index.js";
|
|
13
|
+
import { inspectRenewalScheduleMaterialV2 } from "../../../renewalV2/observation.js";
|
|
14
|
+
import { captureObservationRecord, verifyObservationRecord } from "./record.js";
|
|
15
|
+
import {
|
|
16
|
+
captureObservationReply,
|
|
17
|
+
captureObservationInput,
|
|
18
|
+
admitObservationOutput,
|
|
19
|
+
safeReadDiagnostics,
|
|
20
|
+
} from "./capture.js";
|
|
21
|
+
import {
|
|
22
|
+
baseReadRows,
|
|
23
|
+
validateBaseRouting,
|
|
24
|
+
observationCouponIds,
|
|
25
|
+
couponReadRow,
|
|
26
|
+
validateCoupon,
|
|
27
|
+
} from "./profile.js";
|
|
28
|
+
import { checkOwnerResult } from "./types.js";
|
|
29
|
+
import type {
|
|
30
|
+
Data,
|
|
31
|
+
SourceMethod,
|
|
32
|
+
ReadFailure,
|
|
33
|
+
Attempt,
|
|
34
|
+
StoredReadFailure,
|
|
35
|
+
ObservationReadRow,
|
|
36
|
+
ObservationReads,
|
|
37
|
+
} from "./types.js";
|
|
38
|
+
const stop = (): never => {
|
|
39
|
+
throw Error("OWNED_OBSERVATION_STOP");
|
|
40
|
+
};
|
|
41
|
+
const need: (value: unknown) => asserts value = (value) => {
|
|
42
|
+
if (!value) stop();
|
|
43
|
+
};
|
|
44
|
+
function object(value: unknown): Data {
|
|
45
|
+
need(
|
|
46
|
+
value !== null &&
|
|
47
|
+
typeof value === "object" &&
|
|
48
|
+
!types.isProxy(value) &&
|
|
49
|
+
!Array.isArray(value),
|
|
50
|
+
);
|
|
51
|
+
const proto = Object.getPrototypeOf(value);
|
|
52
|
+
need(proto === Object.prototype || proto === null);
|
|
53
|
+
return value as Data;
|
|
54
|
+
}
|
|
55
|
+
function field(value: unknown, key: string): unknown {
|
|
56
|
+
object(value);
|
|
57
|
+
const d = Object.getOwnPropertyDescriptor(value, key);
|
|
58
|
+
need(d && d.enumerable && "value" in d);
|
|
59
|
+
return d.value;
|
|
60
|
+
}
|
|
61
|
+
function closed(
|
|
62
|
+
value: unknown,
|
|
63
|
+
required: readonly string[],
|
|
64
|
+
optional: readonly string[] = [],
|
|
65
|
+
): Data {
|
|
66
|
+
object(value);
|
|
67
|
+
const keys = Reflect.ownKeys(value as object);
|
|
68
|
+
need(
|
|
69
|
+
required.every((k) => keys.includes(k)) &&
|
|
70
|
+
keys.every(
|
|
71
|
+
(k) => typeof k === "string" && [...required, ...optional].includes(k),
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
const out: Data = Object.create(null);
|
|
75
|
+
for (const key of keys)
|
|
76
|
+
Object.defineProperty(out, key, {
|
|
77
|
+
value: field(value, key as string),
|
|
78
|
+
enumerable: true,
|
|
79
|
+
});
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
function method(value: unknown, key: string): SourceMethod {
|
|
83
|
+
const fn = field(value, key);
|
|
84
|
+
need(typeof fn === "function" && !types.isProxy(fn));
|
|
85
|
+
return fn as SourceMethod;
|
|
86
|
+
}
|
|
87
|
+
function providerError(failure: ReadFailure) {
|
|
88
|
+
const error = Error("OWNED_OBSERVATION_PROVIDER_REJECTED");
|
|
89
|
+
Object.defineProperty(error, "failure", {
|
|
90
|
+
value: failure,
|
|
91
|
+
enumerable: false,
|
|
92
|
+
writable: false,
|
|
93
|
+
configurable: false,
|
|
94
|
+
});
|
|
95
|
+
return error;
|
|
96
|
+
}
|
|
97
|
+
export function captureOwnedRenewalObservationV2() {
|
|
98
|
+
if (arguments.length !== 0) throw Error("OWNED_OBSERVATION_ARITY");
|
|
99
|
+
let used = false;
|
|
100
|
+
return Object.freeze({
|
|
101
|
+
async invoke() {
|
|
102
|
+
if (arguments.length !== 0 || used) throw Error("OWNED_OBSERVATION_ONCE");
|
|
103
|
+
used = true;
|
|
104
|
+
if (COMPILED_OBSERVATION_ENTRIES.length === 0) {
|
|
105
|
+
return Object.freeze({
|
|
106
|
+
status: "not_dispatched",
|
|
107
|
+
reason: "OWNED_OBSERVATION_SOURCE_UNBOUND",
|
|
108
|
+
operationalAuthority: false,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
// Fixed Source, never an input parameter or selected caller context.
|
|
112
|
+
const OWNER = ORIGINAL_OWNER,
|
|
113
|
+
check = method(OWNER, "check");
|
|
114
|
+
function ownerCheck() {
|
|
115
|
+
const sample: unknown = Reflect.apply(check, OWNER, []);
|
|
116
|
+
checkOwnerResult(sample);
|
|
117
|
+
return sample;
|
|
118
|
+
}
|
|
119
|
+
async function owned<T>(call: () => T | PromiseLike<T>): Promise<T> {
|
|
120
|
+
ownerCheck();
|
|
121
|
+
let value: T;
|
|
122
|
+
try {
|
|
123
|
+
value = await call();
|
|
124
|
+
} catch (error) {
|
|
125
|
+
ownerCheck();
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
ownerCheck();
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
ownerCheck();
|
|
132
|
+
let raw: unknown;
|
|
133
|
+
try {
|
|
134
|
+
raw = loadFixedObservationOperation();
|
|
135
|
+
} catch {
|
|
136
|
+
ownerCheck();
|
|
137
|
+
stop();
|
|
138
|
+
}
|
|
139
|
+
ownerCheck();
|
|
140
|
+
const op = closed(
|
|
141
|
+
raw,
|
|
142
|
+
[
|
|
143
|
+
"owner",
|
|
144
|
+
"originAssociation",
|
|
145
|
+
"originalEntry",
|
|
146
|
+
"observationEntry",
|
|
147
|
+
"record",
|
|
148
|
+
"actualAttachAcknowledgement",
|
|
149
|
+
"readTransport",
|
|
150
|
+
],
|
|
151
|
+
["configureAcknowledgement"],
|
|
152
|
+
);
|
|
153
|
+
need(op.owner === OWNER && OWNER === ORIGINAL_OWNER);
|
|
154
|
+
need(op.originAssociation === ORIGINAL_ORIGIN_ASSOCIATION);
|
|
155
|
+
object(op.originAssociation);
|
|
156
|
+
need(
|
|
157
|
+
COMPILED_INITIAL_ENTRIES.includes(op.originalEntry) &&
|
|
158
|
+
COMPILED_OBSERVATION_ENTRIES.includes(op.observationEntry),
|
|
159
|
+
);
|
|
160
|
+
need(field(op.observationEntry, "originalEntry") === op.originalEntry);
|
|
161
|
+
need(
|
|
162
|
+
!Object.prototype.hasOwnProperty.call(op, "configureAcknowledgement"),
|
|
163
|
+
);
|
|
164
|
+
const coversRetained = method(op.originalEntry, "coversRetained");
|
|
165
|
+
const coversObservation = method(
|
|
166
|
+
op.observationEntry,
|
|
167
|
+
"coversObservation",
|
|
168
|
+
);
|
|
169
|
+
closed(op.record, [
|
|
170
|
+
"configuration",
|
|
171
|
+
"request",
|
|
172
|
+
"attachReceipt",
|
|
173
|
+
"originalBundle",
|
|
174
|
+
]);
|
|
175
|
+
need(
|
|
176
|
+
field(op.record, "attachReceipt") === op.actualAttachAcknowledgement,
|
|
177
|
+
);
|
|
178
|
+
object(op.actualAttachAcknowledgement);
|
|
179
|
+
const delegate = op.readTransport;
|
|
180
|
+
closed(delegate, ["rawRequest"]);
|
|
181
|
+
const send = method(delegate, "rawRequest");
|
|
182
|
+
const captured = captureObservationRecord(op.record),
|
|
183
|
+
record = captured.record;
|
|
184
|
+
ownerCheck();
|
|
185
|
+
let phase = "original-C6";
|
|
186
|
+
let invocation: object | null = null,
|
|
187
|
+
generation: object | null = null,
|
|
188
|
+
tokens: WeakMap<object, StoredReadFailure> | null = null,
|
|
189
|
+
tokenSlot: object | null = null,
|
|
190
|
+
lastRejected: Attempt | null = null;
|
|
191
|
+
let pending: Attempt | null = null;
|
|
192
|
+
let ordinal = 0,
|
|
193
|
+
readerState: string = "unused",
|
|
194
|
+
readState: string = "not_started";
|
|
195
|
+
function consume(token: unknown): ReadFailure | null {
|
|
196
|
+
ownerCheck();
|
|
197
|
+
if (tokens === null || token === null || typeof token !== "object")
|
|
198
|
+
return null;
|
|
199
|
+
const stored = tokens.get(token);
|
|
200
|
+
if (
|
|
201
|
+
!stored ||
|
|
202
|
+
stored.invocation !== invocation ||
|
|
203
|
+
stored.generation !== generation ||
|
|
204
|
+
stored.attempt !== lastRejected ||
|
|
205
|
+
readState !== "actual_rejected" ||
|
|
206
|
+
pending !== null
|
|
207
|
+
)
|
|
208
|
+
return null;
|
|
209
|
+
tokens.delete(token);
|
|
210
|
+
return Object.freeze({
|
|
211
|
+
category: "provider_rejected",
|
|
212
|
+
phase: "read",
|
|
213
|
+
resource: stored.attempt.resource,
|
|
214
|
+
ordinal: stored.attempt.ordinal,
|
|
215
|
+
request: stored.attempt.request,
|
|
216
|
+
diagnostics: stored.diagnostics,
|
|
217
|
+
outcome: "unknown",
|
|
218
|
+
operationalAuthority: false,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function takeReadFailure() {
|
|
222
|
+
ownerCheck();
|
|
223
|
+
const token = tokenSlot;
|
|
224
|
+
if (token === null || tokens === null) return null;
|
|
225
|
+
const stored = tokens.get(token);
|
|
226
|
+
if (
|
|
227
|
+
!stored ||
|
|
228
|
+
stored.invocation !== invocation ||
|
|
229
|
+
stored.generation !== generation ||
|
|
230
|
+
stored.attempt !== lastRejected ||
|
|
231
|
+
readState !== "actual_rejected" ||
|
|
232
|
+
pending !== null
|
|
233
|
+
)
|
|
234
|
+
return null;
|
|
235
|
+
tokenSlot = null;
|
|
236
|
+
return token;
|
|
237
|
+
}
|
|
238
|
+
async function read(row: ObservationReadRow) {
|
|
239
|
+
ownerCheck();
|
|
240
|
+
need(
|
|
241
|
+
readerState === "running" &&
|
|
242
|
+
pending === null &&
|
|
243
|
+
readState !== "actual_rejected" &&
|
|
244
|
+
ordinal < 44,
|
|
245
|
+
);
|
|
246
|
+
need(
|
|
247
|
+
row.ordinal === ordinal + 1 &&
|
|
248
|
+
row.method === "GET" &&
|
|
249
|
+
row.body === undefined &&
|
|
250
|
+
row.options.apiVersion === "2026-09-30.endive" &&
|
|
251
|
+
row.options.maxNetworkRetries === 0,
|
|
252
|
+
);
|
|
253
|
+
const request = Object.freeze({
|
|
254
|
+
method: "GET",
|
|
255
|
+
path: row.path,
|
|
256
|
+
apiVersion: row.options.apiVersion,
|
|
257
|
+
});
|
|
258
|
+
const attempt: Attempt = {
|
|
259
|
+
invocation,
|
|
260
|
+
generation,
|
|
261
|
+
resource: row.resource,
|
|
262
|
+
ordinal: ++ordinal,
|
|
263
|
+
request,
|
|
264
|
+
promise: null,
|
|
265
|
+
};
|
|
266
|
+
pending = attempt;
|
|
267
|
+
readState = "pending";
|
|
268
|
+
let promise: unknown;
|
|
269
|
+
try {
|
|
270
|
+
promise = Reflect.apply(send, delegate, [
|
|
271
|
+
"GET",
|
|
272
|
+
row.path,
|
|
273
|
+
undefined,
|
|
274
|
+
row.options,
|
|
275
|
+
]);
|
|
276
|
+
} catch {
|
|
277
|
+
ownerCheck();
|
|
278
|
+
pending = null;
|
|
279
|
+
readerState = "failed";
|
|
280
|
+
stop();
|
|
281
|
+
}
|
|
282
|
+
attempt.promise = promise;
|
|
283
|
+
Object.freeze(attempt);
|
|
284
|
+
let reply: unknown;
|
|
285
|
+
try {
|
|
286
|
+
reply = await promise;
|
|
287
|
+
} catch (error) {
|
|
288
|
+
ownerCheck();
|
|
289
|
+
need(
|
|
290
|
+
pending === attempt &&
|
|
291
|
+
attempt.invocation === invocation &&
|
|
292
|
+
attempt.generation === generation &&
|
|
293
|
+
attempt.promise === promise,
|
|
294
|
+
);
|
|
295
|
+
readState = "actual_rejected";
|
|
296
|
+
readerState = "failed";
|
|
297
|
+
pending = null;
|
|
298
|
+
lastRejected = attempt;
|
|
299
|
+
const diagnostics = safeReadDiagnostics(error),
|
|
300
|
+
token = Object.freeze(Object.create(null));
|
|
301
|
+
need(tokens !== null);
|
|
302
|
+
tokens.set(
|
|
303
|
+
token,
|
|
304
|
+
Object.freeze({ invocation, generation, attempt, diagnostics }),
|
|
305
|
+
);
|
|
306
|
+
tokenSlot = token;
|
|
307
|
+
const forwarded = takeReadFailure();
|
|
308
|
+
need(forwarded === token);
|
|
309
|
+
throw forwarded;
|
|
310
|
+
}
|
|
311
|
+
ownerCheck();
|
|
312
|
+
need(
|
|
313
|
+
pending === attempt &&
|
|
314
|
+
attempt.invocation === invocation &&
|
|
315
|
+
attempt.generation === generation &&
|
|
316
|
+
attempt.promise === promise,
|
|
317
|
+
);
|
|
318
|
+
pending = null;
|
|
319
|
+
readState = "actual_fulfilled";
|
|
320
|
+
const body = captureObservationReply(reply);
|
|
321
|
+
ownerCheck();
|
|
322
|
+
return body;
|
|
323
|
+
}
|
|
324
|
+
try {
|
|
325
|
+
const desired = await owned(() =>
|
|
326
|
+
projectRenewalConfigurationV2(record.configuration),
|
|
327
|
+
);
|
|
328
|
+
ownerCheck();
|
|
329
|
+
if (desired.status !== "projected_configure_request") return desired;
|
|
330
|
+
phase = "proof";
|
|
331
|
+
const receipt = await owned(() =>
|
|
332
|
+
constructRenewalScheduleAttachmentReceiptV2(
|
|
333
|
+
record.configuration.attachReceipt,
|
|
334
|
+
),
|
|
335
|
+
);
|
|
336
|
+
ownerCheck();
|
|
337
|
+
verifyObservationRecord(captured, desired, receipt);
|
|
338
|
+
ownerCheck();
|
|
339
|
+
const retainedModule = await import("../material/classifiers.js");
|
|
340
|
+
ownerCheck();
|
|
341
|
+
// Fixed internal package code; module exports may be native DATA or SSR accessors.
|
|
342
|
+
const classifyRetained =
|
|
343
|
+
retainedModule.classifyOwnedRetainedInitialAttachment;
|
|
344
|
+
ownerCheck();
|
|
345
|
+
need(
|
|
346
|
+
typeof classifyRetained === "function" &&
|
|
347
|
+
!types.isProxy(classifyRetained),
|
|
348
|
+
);
|
|
349
|
+
const retained = await owned(
|
|
350
|
+
(): ReturnType<
|
|
351
|
+
typeof retainedModule.classifyOwnedRetainedInitialAttachment
|
|
352
|
+
> =>
|
|
353
|
+
Reflect.apply(classifyRetained, retainedModule, [
|
|
354
|
+
{
|
|
355
|
+
attachRequest: record.configuration.attachReceipt.attachRequest,
|
|
356
|
+
originalBundle: record.originalBundle,
|
|
357
|
+
},
|
|
358
|
+
]),
|
|
359
|
+
);
|
|
360
|
+
ownerCheck();
|
|
361
|
+
need(retained.status === "classified");
|
|
362
|
+
const covered = Reflect.apply(coversRetained, op.originalEntry, [
|
|
363
|
+
retained.material,
|
|
364
|
+
record.originalBundle,
|
|
365
|
+
]);
|
|
366
|
+
ownerCheck();
|
|
367
|
+
need(covered === true);
|
|
368
|
+
// New child/channel identity is allocated only after all original proof work.
|
|
369
|
+
invocation = Object.freeze({});
|
|
370
|
+
generation = Object.freeze({});
|
|
371
|
+
tokens = new WeakMap();
|
|
372
|
+
need(readerState === "unused" && ordinal === 0 && pending === null);
|
|
373
|
+
readerState = "running";
|
|
374
|
+
const rows = baseReadRows(record),
|
|
375
|
+
base: unknown[] = [];
|
|
376
|
+
for (const row of rows) {
|
|
377
|
+
const body = await owned(() => read(row));
|
|
378
|
+
ownerCheck();
|
|
379
|
+
base.push(body);
|
|
380
|
+
}
|
|
381
|
+
const reads: ObservationReads = {
|
|
382
|
+
schedule: base[0],
|
|
383
|
+
subscription: base[1],
|
|
384
|
+
targetPrice: base[2],
|
|
385
|
+
billingCustomer: base[3],
|
|
386
|
+
coupons: [],
|
|
387
|
+
};
|
|
388
|
+
validateBaseRouting(record, reads);
|
|
389
|
+
const couponIds = observationCouponIds(record, reads.subscription);
|
|
390
|
+
let finalSample = ownerCheck();
|
|
391
|
+
for (const id of couponIds) {
|
|
392
|
+
const body = await owned(() => read(couponReadRow(id, ordinal + 1)));
|
|
393
|
+
ownerCheck();
|
|
394
|
+
validateCoupon(record, id, body);
|
|
395
|
+
finalSample = ownerCheck();
|
|
396
|
+
reads.coupons.push(body);
|
|
397
|
+
}
|
|
398
|
+
need(
|
|
399
|
+
pending === null && ordinal === 4 + couponIds.length && ordinal <= 44,
|
|
400
|
+
);
|
|
401
|
+
const observedAt = Math.floor(finalSample.wallMs / 1000);
|
|
402
|
+
need(Number.isSafeInteger(observedAt) && observedAt >= 0);
|
|
403
|
+
readerState = "closed";
|
|
404
|
+
readState = "closed";
|
|
405
|
+
const input = captureObservationInput({
|
|
406
|
+
configuration: record.configuration,
|
|
407
|
+
reads,
|
|
408
|
+
});
|
|
409
|
+
phase = "observer";
|
|
410
|
+
const observation = await owned(() =>
|
|
411
|
+
inspectRenewalScheduleMaterialV2(input),
|
|
412
|
+
);
|
|
413
|
+
ownerCheck();
|
|
414
|
+
const complete = Reflect.apply(coversObservation, op.observationEntry, [
|
|
415
|
+
record,
|
|
416
|
+
input,
|
|
417
|
+
observation,
|
|
418
|
+
]);
|
|
419
|
+
ownerCheck();
|
|
420
|
+
need(complete === true);
|
|
421
|
+
const output = admitObservationOutput({
|
|
422
|
+
status: "owned_observation_data",
|
|
423
|
+
observation,
|
|
424
|
+
reads: input.reads,
|
|
425
|
+
observedAt,
|
|
426
|
+
retainedConfigureAcknowledgement: "absent",
|
|
427
|
+
operationalAuthority: false,
|
|
428
|
+
});
|
|
429
|
+
ownerCheck();
|
|
430
|
+
return output;
|
|
431
|
+
} catch (error) {
|
|
432
|
+
ownerCheck();
|
|
433
|
+
if (phase === "original-C6") throw error;
|
|
434
|
+
const failure = consume(error);
|
|
435
|
+
if (failure !== null) {
|
|
436
|
+
const outward = providerError(failure);
|
|
437
|
+
ownerCheck();
|
|
438
|
+
throw outward;
|
|
439
|
+
}
|
|
440
|
+
stop();
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
});
|
|
444
|
+
}
|