@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,250 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { requiredJSONSnapshot } from "../material/requiredJson.js";
|
|
3
|
+
import type { Data, Diagnostics } from "./types.js";
|
|
4
|
+
const stop = (): never => {
|
|
5
|
+
throw Error("OWNED_OBSERVATION_STOP");
|
|
6
|
+
};
|
|
7
|
+
const need: (x: unknown) => asserts x = (x) => {
|
|
8
|
+
if (!x) stop();
|
|
9
|
+
};
|
|
10
|
+
const nativeResponsePrototype = Response.prototype;
|
|
11
|
+
const nativeStatusGetter = Object.getOwnPropertyDescriptor(
|
|
12
|
+
nativeResponsePrototype,
|
|
13
|
+
"status",
|
|
14
|
+
)!.get!;
|
|
15
|
+
const apply = Reflect.apply,
|
|
16
|
+
isProxy = types.isProxy;
|
|
17
|
+
function closed(
|
|
18
|
+
value: unknown,
|
|
19
|
+
required: readonly string[],
|
|
20
|
+
optional: readonly string[] = [],
|
|
21
|
+
): Data {
|
|
22
|
+
need(
|
|
23
|
+
value !== null &&
|
|
24
|
+
typeof value === "object" &&
|
|
25
|
+
!isProxy(value) &&
|
|
26
|
+
!Array.isArray(value),
|
|
27
|
+
);
|
|
28
|
+
const proto = Object.getPrototypeOf(value);
|
|
29
|
+
need(proto === Object.prototype || proto === null);
|
|
30
|
+
const keys = Reflect.ownKeys(value);
|
|
31
|
+
need(
|
|
32
|
+
required.every((k) => keys.includes(k)) &&
|
|
33
|
+
keys.every(
|
|
34
|
+
(k) => typeof k === "string" && [...required, ...optional].includes(k),
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
for (const key of keys) {
|
|
38
|
+
const d = Object.getOwnPropertyDescriptor(value, key);
|
|
39
|
+
need(d && d.enumerable && "value" in d);
|
|
40
|
+
}
|
|
41
|
+
return value as Data;
|
|
42
|
+
}
|
|
43
|
+
// Proxy-first complete traversal before ordinary privacy copying. Repeated ordinary
|
|
44
|
+
// references are charged per occurrence; only active-path cycles are rejected.
|
|
45
|
+
export function rejectProxyJSON(value: unknown, transportRoot = false) {
|
|
46
|
+
const active = new Set<object>();
|
|
47
|
+
let nodes = 0;
|
|
48
|
+
function walk(x: unknown, depth: number, isRoot: boolean) {
|
|
49
|
+
need(++nodes <= 10000 && depth <= 40);
|
|
50
|
+
need(!isProxy(x));
|
|
51
|
+
if (x === null || typeof x !== "object") return;
|
|
52
|
+
need(!active.has(x));
|
|
53
|
+
active.add(x);
|
|
54
|
+
const array = Array.isArray(x),
|
|
55
|
+
keys = Reflect.ownKeys(x);
|
|
56
|
+
need(keys.length <= 10001);
|
|
57
|
+
for (const key of keys) {
|
|
58
|
+
need(typeof key === "string");
|
|
59
|
+
const d = Object.getOwnPropertyDescriptor(x, key);
|
|
60
|
+
need(d && "value" in d);
|
|
61
|
+
if (isRoot && transportRoot && key === "lastResponse" && !d.enumerable)
|
|
62
|
+
continue;
|
|
63
|
+
if (array && key === "length") continue;
|
|
64
|
+
need(d.enumerable);
|
|
65
|
+
walk(d.value, depth + 1, false);
|
|
66
|
+
}
|
|
67
|
+
active.delete(x);
|
|
68
|
+
}
|
|
69
|
+
walk(value, 0, true);
|
|
70
|
+
}
|
|
71
|
+
function freeze<T>(value: T): T {
|
|
72
|
+
if (value && typeof value === "object") {
|
|
73
|
+
for (const d of Object.values(Object.getOwnPropertyDescriptors(value)))
|
|
74
|
+
if ("value" in d) freeze(d.value);
|
|
75
|
+
Object.freeze(value);
|
|
76
|
+
}
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
function ordinary<T>(value: T): T {
|
|
80
|
+
rejectProxyJSON(value);
|
|
81
|
+
return freeze(requiredJSONSnapshot(value)) as T;
|
|
82
|
+
}
|
|
83
|
+
export function captureObservationReply(reply: unknown) {
|
|
84
|
+
rejectProxyJSON(reply, true);
|
|
85
|
+
need(reply !== null && typeof reply === "object" && !Array.isArray(reply));
|
|
86
|
+
const proto = Object.getPrototypeOf(reply);
|
|
87
|
+
need(proto === Object.prototype || proto === null);
|
|
88
|
+
const meta = Object.getOwnPropertyDescriptor(reply, "lastResponse");
|
|
89
|
+
need(
|
|
90
|
+
meta &&
|
|
91
|
+
!meta.enumerable &&
|
|
92
|
+
"value" in meta &&
|
|
93
|
+
meta.value !== null &&
|
|
94
|
+
typeof meta.value === "object",
|
|
95
|
+
);
|
|
96
|
+
const metadata = meta.value as object;
|
|
97
|
+
need(!isProxy(metadata));
|
|
98
|
+
const codes: unknown[] = [];
|
|
99
|
+
for (const key of ["status", "statusCode"]) {
|
|
100
|
+
const d = Object.getOwnPropertyDescriptor(metadata, key);
|
|
101
|
+
if (!d) continue;
|
|
102
|
+
need("value" in d);
|
|
103
|
+
if (d.value !== undefined) codes.push(d.value);
|
|
104
|
+
}
|
|
105
|
+
if (Object.getPrototypeOf(metadata) === nativeResponsePrototype)
|
|
106
|
+
codes.push(apply(nativeStatusGetter, metadata, []));
|
|
107
|
+
need(
|
|
108
|
+
codes.length > 0 &&
|
|
109
|
+
codes.every(
|
|
110
|
+
(x) =>
|
|
111
|
+
typeof x === "number" &&
|
|
112
|
+
Number.isInteger(x) &&
|
|
113
|
+
x >= 200 &&
|
|
114
|
+
x < 300 &&
|
|
115
|
+
x === codes[0],
|
|
116
|
+
),
|
|
117
|
+
);
|
|
118
|
+
const entries: [string, unknown][] = [];
|
|
119
|
+
for (const key of Reflect.ownKeys(reply)) {
|
|
120
|
+
need(typeof key === "string");
|
|
121
|
+
if (key === "lastResponse") continue;
|
|
122
|
+
const d = Object.getOwnPropertyDescriptor(reply, key);
|
|
123
|
+
need(d && d.enumerable && "value" in d);
|
|
124
|
+
entries.push([key, d.value]);
|
|
125
|
+
}
|
|
126
|
+
return ordinary(Object.fromEntries(entries));
|
|
127
|
+
}
|
|
128
|
+
export function captureObservationInput<T>(value: T): T {
|
|
129
|
+
const root = closed(value, ["configuration", "reads"]);
|
|
130
|
+
const reads = closed(root.reads, [
|
|
131
|
+
"schedule",
|
|
132
|
+
"subscription",
|
|
133
|
+
"targetPrice",
|
|
134
|
+
"billingCustomer",
|
|
135
|
+
"coupons",
|
|
136
|
+
]);
|
|
137
|
+
need(Array.isArray(reads.coupons));
|
|
138
|
+
return ordinary(value);
|
|
139
|
+
}
|
|
140
|
+
export function admitObservationOutput<T>(value: T): T {
|
|
141
|
+
const root = closed(value, [
|
|
142
|
+
"status",
|
|
143
|
+
"observation",
|
|
144
|
+
"reads",
|
|
145
|
+
"observedAt",
|
|
146
|
+
"retainedConfigureAcknowledgement",
|
|
147
|
+
"operationalAuthority",
|
|
148
|
+
]);
|
|
149
|
+
need(
|
|
150
|
+
root.status === "owned_observation_data" &&
|
|
151
|
+
root.operationalAuthority === false &&
|
|
152
|
+
root.retainedConfigureAcknowledgement === "absent",
|
|
153
|
+
);
|
|
154
|
+
need(
|
|
155
|
+
typeof root.observedAt === "number" &&
|
|
156
|
+
Number.isSafeInteger(root.observedAt) &&
|
|
157
|
+
root.observedAt >= 0,
|
|
158
|
+
);
|
|
159
|
+
const reads = closed(root.reads, [
|
|
160
|
+
"schedule",
|
|
161
|
+
"subscription",
|
|
162
|
+
"targetPrice",
|
|
163
|
+
"billingCustomer",
|
|
164
|
+
"coupons",
|
|
165
|
+
]);
|
|
166
|
+
need(Array.isArray(reads.coupons));
|
|
167
|
+
const r = closed(
|
|
168
|
+
root.observation,
|
|
169
|
+
[
|
|
170
|
+
"acknowledgementEstablished",
|
|
171
|
+
"authenticationEstablished",
|
|
172
|
+
"providerQualificationRequired",
|
|
173
|
+
"predicate",
|
|
174
|
+
],
|
|
175
|
+
[
|
|
176
|
+
"reason",
|
|
177
|
+
"observedItemId",
|
|
178
|
+
"nativePeriod",
|
|
179
|
+
"providerStatus",
|
|
180
|
+
"effectiveness",
|
|
181
|
+
],
|
|
182
|
+
);
|
|
183
|
+
need(
|
|
184
|
+
r.acknowledgementEstablished === false &&
|
|
185
|
+
r.authenticationEstablished === false &&
|
|
186
|
+
r.providerQualificationRequired === true,
|
|
187
|
+
);
|
|
188
|
+
need(
|
|
189
|
+
typeof r.predicate === "string" &&
|
|
190
|
+
[
|
|
191
|
+
"pending_material_match",
|
|
192
|
+
"current_target_material_match",
|
|
193
|
+
"attached_unconfigured_match",
|
|
194
|
+
"terminal_facts_only",
|
|
195
|
+
"unknown",
|
|
196
|
+
"conflict",
|
|
197
|
+
].includes(r.predicate),
|
|
198
|
+
);
|
|
199
|
+
for (const key of [
|
|
200
|
+
"reason",
|
|
201
|
+
"observedItemId",
|
|
202
|
+
"providerStatus",
|
|
203
|
+
"effectiveness",
|
|
204
|
+
])
|
|
205
|
+
if (Object.prototype.hasOwnProperty.call(r, key))
|
|
206
|
+
need(typeof r[key] === "string");
|
|
207
|
+
if (Object.prototype.hasOwnProperty.call(r, "nativePeriod")) {
|
|
208
|
+
const period = closed(r.nativePeriod, ["start", "end"]);
|
|
209
|
+
need(
|
|
210
|
+
Number.isSafeInteger(period.start) && Number.isSafeInteger(period.end),
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
return ordinary(value);
|
|
214
|
+
}
|
|
215
|
+
// Only bounded own DATA is admitted. Diagnostics never authorize a failure.
|
|
216
|
+
export function safeReadDiagnostics(error: unknown): Diagnostics {
|
|
217
|
+
const out: {
|
|
218
|
+
type?: string;
|
|
219
|
+
code?: string;
|
|
220
|
+
statusCode?: number;
|
|
221
|
+
requestId?: string;
|
|
222
|
+
} = {};
|
|
223
|
+
if (error === null || typeof error !== "object" || isProxy(error))
|
|
224
|
+
return Object.freeze(out);
|
|
225
|
+
for (const key of ["type", "code", "statusCode", "requestId"] as const) {
|
|
226
|
+
const d = Object.getOwnPropertyDescriptor(error, key);
|
|
227
|
+
if (!d || !("value" in d)) continue;
|
|
228
|
+
const value: unknown = d.value;
|
|
229
|
+
if (key === "statusCode") {
|
|
230
|
+
if (
|
|
231
|
+
typeof value === "number" &&
|
|
232
|
+
Number.isInteger(value) &&
|
|
233
|
+
value >= 100 &&
|
|
234
|
+
value <= 599
|
|
235
|
+
)
|
|
236
|
+
out[key] = value;
|
|
237
|
+
} else if (
|
|
238
|
+
typeof value === "string" &&
|
|
239
|
+
value.length >= 1 &&
|
|
240
|
+
value.length <= 255
|
|
241
|
+
) {
|
|
242
|
+
try {
|
|
243
|
+
out[key] = requiredJSONSnapshot(value) as string;
|
|
244
|
+
} catch {
|
|
245
|
+
/* Unsupported diagnostics are omitted. */
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return Object.freeze(out);
|
|
250
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { it } from "vitest";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import {
|
|
4
|
+
observationFixture,
|
|
5
|
+
type ObservationFixture,
|
|
6
|
+
} from "../test-fixtures/observationOperation.js";
|
|
7
|
+
import {
|
|
8
|
+
assertObservationOutput,
|
|
9
|
+
assertNoObservationReads,
|
|
10
|
+
assertPrivateObservationError,
|
|
11
|
+
observationOutcome,
|
|
12
|
+
} from "../test-fixtures/observationAssertions.js";
|
|
13
|
+
import {
|
|
14
|
+
sourceControlCases,
|
|
15
|
+
publicFailureCases,
|
|
16
|
+
trustedExportCases,
|
|
17
|
+
type ObservationControl,
|
|
18
|
+
} from "../test-fixtures/observationDeclarations.js";
|
|
19
|
+
import {
|
|
20
|
+
assertEmptyObservation,
|
|
21
|
+
logObservationFailureFrontier,
|
|
22
|
+
} from "../test-fixtures/observationProbe.js";
|
|
23
|
+
import { data } from "../test-fixtures/configurePreflightControls.js";
|
|
24
|
+
|
|
25
|
+
async function runControl(
|
|
26
|
+
mode: ObservationControl,
|
|
27
|
+
check: (h: ObservationFixture) => Promise<void>,
|
|
28
|
+
) {
|
|
29
|
+
const h = await observationFixture(mode);
|
|
30
|
+
try {
|
|
31
|
+
await check(h);
|
|
32
|
+
} catch (originalError) {
|
|
33
|
+
try {
|
|
34
|
+
await logObservationFailureFrontier(h);
|
|
35
|
+
} finally {
|
|
36
|
+
throw originalError;
|
|
37
|
+
}
|
|
38
|
+
} finally {
|
|
39
|
+
await h.cleanup();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
it("repository owned observation returns complete absent-ACK evidence", async () => {
|
|
43
|
+
await runControl("positive", async (h) =>
|
|
44
|
+
assertObservationOutput(h, await h.capture().invoke()),
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
it("repository observation G02 EMPTY refuses before all declared effects", async () => {
|
|
48
|
+
await assertEmptyObservation();
|
|
49
|
+
});
|
|
50
|
+
for (const mode of sourceControlCases)
|
|
51
|
+
it("repository observation Source control " + mode, async () => {
|
|
52
|
+
await runControl(mode, async (h) => {
|
|
53
|
+
if (mode === "G02-arity") {
|
|
54
|
+
assert.throws(() => h.capture({}), {
|
|
55
|
+
name: "Error",
|
|
56
|
+
message: "OWNED_OBSERVATION_ARITY",
|
|
57
|
+
});
|
|
58
|
+
const handle = h.capture();
|
|
59
|
+
const outcome = await observationOutcome(handle.invoke({}));
|
|
60
|
+
assert.equal(outcome.ok, false);
|
|
61
|
+
if (!outcome.ok)
|
|
62
|
+
assertPrivateObservationError(
|
|
63
|
+
outcome.error,
|
|
64
|
+
"OWNED_OBSERVATION_ONCE",
|
|
65
|
+
);
|
|
66
|
+
assert.equal(h.state.sourceLoads, 0);
|
|
67
|
+
assert.equal(h.state.ownedC6, 0);
|
|
68
|
+
assertNoObservationReads(h);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (mode === "G02-once") {
|
|
72
|
+
const handle = h.capture();
|
|
73
|
+
assertObservationOutput(h, await handle.invoke());
|
|
74
|
+
const counts = [
|
|
75
|
+
h.http.calls.length,
|
|
76
|
+
h.state.sourceLoads,
|
|
77
|
+
h.state.ownedC6,
|
|
78
|
+
h.state.ownedC3,
|
|
79
|
+
h.state.ownedObserver,
|
|
80
|
+
];
|
|
81
|
+
const outcome = await observationOutcome(handle.invoke());
|
|
82
|
+
assert.equal(outcome.ok, false);
|
|
83
|
+
if (!outcome.ok)
|
|
84
|
+
assertPrivateObservationError(
|
|
85
|
+
outcome.error,
|
|
86
|
+
"OWNED_OBSERVATION_ONCE",
|
|
87
|
+
);
|
|
88
|
+
assert.deepEqual(
|
|
89
|
+
[
|
|
90
|
+
h.http.calls.length,
|
|
91
|
+
h.state.sourceLoads,
|
|
92
|
+
h.state.ownedC6,
|
|
93
|
+
h.state.ownedC3,
|
|
94
|
+
h.state.ownedObserver,
|
|
95
|
+
],
|
|
96
|
+
counts,
|
|
97
|
+
);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const outcome = await observationOutcome(h.capture().invoke());
|
|
101
|
+
assert.equal(outcome.ok, false);
|
|
102
|
+
if (!outcome.ok) assertPrivateObservationError(outcome.error);
|
|
103
|
+
assert.equal(h.state.sourceLoads, 1);
|
|
104
|
+
assert.equal(h.state.ownedC6, 0);
|
|
105
|
+
assert.equal(h.state.ownedC3, 0);
|
|
106
|
+
assert.equal(h.state.recordVerificationEntered, 0);
|
|
107
|
+
assert.equal(h.state.tupleTraps, 0);
|
|
108
|
+
assert.equal(h.state.methodGetterCalls, 0);
|
|
109
|
+
assertNoObservationReads(h);
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
for (const mode of publicFailureCases)
|
|
113
|
+
it("repository observation public Failure control " + mode, async () => {
|
|
114
|
+
await runControl(mode, async (h) => {
|
|
115
|
+
if (mode === "G03-structural") {
|
|
116
|
+
const rejected = await observationOutcome(
|
|
117
|
+
Reflect.apply(h.actual.projectRenewalConfigurationV2, h.actual, [
|
|
118
|
+
{},
|
|
119
|
+
]) as ReturnType<typeof h.actual.projectRenewalConfigurationV2>,
|
|
120
|
+
);
|
|
121
|
+
assert.equal(rejected.ok, false);
|
|
122
|
+
const outcome = await observationOutcome(h.capture().invoke());
|
|
123
|
+
assert.equal(outcome.ok, false);
|
|
124
|
+
if (!outcome.ok)
|
|
125
|
+
assertPrivateObservationError(
|
|
126
|
+
outcome.error,
|
|
127
|
+
"MATERIAL_V2_UNSUPPORTED",
|
|
128
|
+
);
|
|
129
|
+
assert.equal(
|
|
130
|
+
h.state.ownedC6,
|
|
131
|
+
0,
|
|
132
|
+
"private capture rejects earlier; not target-C6 throw proof",
|
|
133
|
+
);
|
|
134
|
+
} else {
|
|
135
|
+
const config = data(data(h.sourceOperation).record).configuration;
|
|
136
|
+
const oracle = (await Reflect.apply(
|
|
137
|
+
h.actual.projectRenewalConfigurationV2,
|
|
138
|
+
h.actual,
|
|
139
|
+
[config],
|
|
140
|
+
)) as Awaited<
|
|
141
|
+
ReturnType<typeof h.actual.projectRenewalConfigurationV2>
|
|
142
|
+
>;
|
|
143
|
+
h.OWNER.check();
|
|
144
|
+
assert.notEqual(oracle.status, "projected_configure_request");
|
|
145
|
+
const outcome = await observationOutcome(h.capture().invoke());
|
|
146
|
+
if (mode === "G03-retire") {
|
|
147
|
+
assert.equal(outcome.ok, false);
|
|
148
|
+
if (!outcome.ok) {
|
|
149
|
+
assertPrivateObservationError(outcome.error, "ORIGINAL_OWNER_STOP");
|
|
150
|
+
assert(outcome.error instanceof Error);
|
|
151
|
+
assert.equal(outcome.error.message, "ORIGINAL_OWNER_STOP");
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
assert.equal(outcome.ok, true);
|
|
155
|
+
if (outcome.ok) {
|
|
156
|
+
assert.equal(
|
|
157
|
+
outcome.value,
|
|
158
|
+
h.state.lastC6,
|
|
159
|
+
"same actual C6 Failure object",
|
|
160
|
+
);
|
|
161
|
+
assert.deepEqual(outcome.value, oracle);
|
|
162
|
+
}
|
|
163
|
+
assert.equal(h.state.exportReads, 0);
|
|
164
|
+
assert.equal(h.state.exportCalls, 0);
|
|
165
|
+
assert.equal(h.state.exportFactoryLoads, 0);
|
|
166
|
+
}
|
|
167
|
+
assert.equal(h.state.ownedC6, 1);
|
|
168
|
+
}
|
|
169
|
+
assert.equal(h.state.ownedC3, 0);
|
|
170
|
+
assert.equal(h.state.recordVerificationEntered, 0);
|
|
171
|
+
assert.equal(h.state.recordVerificationCompleted, 0);
|
|
172
|
+
assertNoObservationReads(h);
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
for (const mode of trustedExportCases)
|
|
176
|
+
it("repository observation trusted export ABI " + mode, async () => {
|
|
177
|
+
await runControl(mode, async (h) => {
|
|
178
|
+
const outcome = await observationOutcome(h.capture().invoke());
|
|
179
|
+
const positive = mode === "ABI-data-export" || mode === "ABI-getter-once";
|
|
180
|
+
if (positive) {
|
|
181
|
+
assert.equal(outcome.ok, true);
|
|
182
|
+
if (outcome.ok) assertObservationOutput(h, outcome.value);
|
|
183
|
+
assert.equal(h.state.exportCalls, 1);
|
|
184
|
+
} else {
|
|
185
|
+
assert.equal(outcome.ok, false);
|
|
186
|
+
if (!outcome.ok) {
|
|
187
|
+
assertPrivateObservationError(
|
|
188
|
+
outcome.error,
|
|
189
|
+
mode === "ABI-getter-retire"
|
|
190
|
+
? "ORIGINAL_OWNER_STOP"
|
|
191
|
+
: "OWNED_OBSERVATION_STOP",
|
|
192
|
+
);
|
|
193
|
+
assert(outcome.error instanceof Error);
|
|
194
|
+
assert.equal(
|
|
195
|
+
outcome.error.message,
|
|
196
|
+
mode === "ABI-getter-retire"
|
|
197
|
+
? "ORIGINAL_OWNER_STOP"
|
|
198
|
+
: "OWNED_OBSERVATION_STOP",
|
|
199
|
+
);
|
|
200
|
+
assert.notEqual(outcome.error.message, h.declaration.exportThrow);
|
|
201
|
+
}
|
|
202
|
+
assert.equal(h.state.exportCalls, 0);
|
|
203
|
+
assertNoObservationReads(h);
|
|
204
|
+
}
|
|
205
|
+
const getter = [
|
|
206
|
+
"ABI-getter-once",
|
|
207
|
+
"ABI-getter-retire",
|
|
208
|
+
"ABI-getter-throws",
|
|
209
|
+
].includes(mode);
|
|
210
|
+
assert.equal(h.state.exportReads, getter ? 1 : 0);
|
|
211
|
+
assert.equal(h.state.exportDescriptorGetter, getter);
|
|
212
|
+
assert.equal(h.state.exportDescriptorData, !getter);
|
|
213
|
+
assert.equal(h.state.exportFactoryLoads, 1);
|
|
214
|
+
assert.equal(h.state.exportProxyApplies, 0);
|
|
215
|
+
assert.equal(h.state.ownedC6, 1);
|
|
216
|
+
assert.equal(h.state.ownedC3, 1);
|
|
217
|
+
assert.equal(h.state.C3Fulfilled, 1);
|
|
218
|
+
assert.equal(h.state.recordVerificationCompleted, 1);
|
|
219
|
+
});
|
|
220
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { it } from "vitest";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import { observationFixture } from "../test-fixtures/observationOperation.js";
|
|
4
|
+
import { transportControlCases } from "../test-fixtures/observationDeclarations.js";
|
|
5
|
+
import {
|
|
6
|
+
observationOutcome,
|
|
7
|
+
assertPrivateObservationError,
|
|
8
|
+
assertObservationReadPrefix,
|
|
9
|
+
assertObservationProviderFailure,
|
|
10
|
+
} from "../test-fixtures/observationAssertions.js";
|
|
11
|
+
import {
|
|
12
|
+
retireObservationHeld,
|
|
13
|
+
logObservationFailureFrontier,
|
|
14
|
+
} from "../test-fixtures/observationProbe.js";
|
|
15
|
+
|
|
16
|
+
for (const mode of transportControlCases)
|
|
17
|
+
it("repository observation transport control " + mode, async () => {
|
|
18
|
+
const h = await observationFixture(mode);
|
|
19
|
+
try {
|
|
20
|
+
const original = h.capture().invoke();
|
|
21
|
+
const outcome = h.declaration.transport.held
|
|
22
|
+
? await retireObservationHeld(h, original)
|
|
23
|
+
: await observationOutcome(original);
|
|
24
|
+
assert.equal(outcome.ok, false);
|
|
25
|
+
if (!outcome.ok) {
|
|
26
|
+
if (h.declaration.expectedOwner === "retired")
|
|
27
|
+
assertPrivateObservationError(outcome.error, "ORIGINAL_OWNER_STOP");
|
|
28
|
+
else assertObservationProviderFailure(h, outcome.error);
|
|
29
|
+
}
|
|
30
|
+
assert.equal(h.state.targetCalls, 1);
|
|
31
|
+
assertObservationReadPrefix(h, h.declaration.transport.ordinal);
|
|
32
|
+
assert.equal(
|
|
33
|
+
h.http.traps(),
|
|
34
|
+
0,
|
|
35
|
+
"named late reply sentinel not reflected by owned continuation",
|
|
36
|
+
);
|
|
37
|
+
assert.equal(
|
|
38
|
+
h.http.diagnosticGetterCalls(),
|
|
39
|
+
0,
|
|
40
|
+
"named late error/unsafe diagnostic getter never invoked",
|
|
41
|
+
);
|
|
42
|
+
if (h.declaration.transport.reject) {
|
|
43
|
+
assert(h.http.actualError() instanceof Error);
|
|
44
|
+
assert.equal(h.http.actualError(), h.http.transformedError());
|
|
45
|
+
assert.equal(h.http.errorConfigurationVerified(), 1);
|
|
46
|
+
} else {
|
|
47
|
+
assert.equal(h.http.actualError(), null);
|
|
48
|
+
assert.equal(h.http.errorConfigurationVerified(), 0);
|
|
49
|
+
}
|
|
50
|
+
} catch (originalError) {
|
|
51
|
+
try {
|
|
52
|
+
await logObservationFailureFrontier(h);
|
|
53
|
+
} finally {
|
|
54
|
+
throw originalError;
|
|
55
|
+
}
|
|
56
|
+
} finally {
|
|
57
|
+
h.http.hold.release.resolve();
|
|
58
|
+
await h.cleanup();
|
|
59
|
+
}
|
|
60
|
+
});
|