@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
|
@@ -122,3 +122,40 @@ about whole-process memory or other SDK methods. Invalid raw capture rejects wit
|
|
|
122
122
|
a fixed error; safe but insufficient material returns `unknown` or `conflict`
|
|
123
123
|
with a fixed reason. No raw provider error is logged or returned. The host remains
|
|
124
124
|
responsible for retaining its immutable request and response data when reads fail.
|
|
125
|
+
|
|
126
|
+
## Internal owned observation without a configure acknowledgement
|
|
127
|
+
|
|
128
|
+
`captureOwnedRenewalObservationV2` is internal; each captured handle permits one
|
|
129
|
+
invocation. Its fixed Source must bind the original Owner and origin, original
|
|
130
|
+
attachment entry and actual acknowledged attachment receipt identity to a distinct
|
|
131
|
+
observation entry. Reconstructing equal receipt data cannot establish that
|
|
132
|
+
association. The normal registry is empty and its loader unbound. There is no
|
|
133
|
+
public execution export or caller-supplied Owner, client or Source context.
|
|
134
|
+
|
|
135
|
+
After bounded record capture, the original configuration projection runs first.
|
|
136
|
+
A supported Failure returns the same object before the actor's explicit receipt
|
|
137
|
+
proof, classification or reads. Success requires the complete retained record and
|
|
138
|
+
attachment proof, original entry coverage and a live original Owner.
|
|
139
|
+
|
|
140
|
+
The read order is Schedule, expanded Subscription, target Price, billing Customer,
|
|
141
|
+
then unique Coupon IDs across the original and current subscription and item
|
|
142
|
+
discounts. Two distinct Coupon IDs give six GETs; the union permits at most 40
|
|
143
|
+
Coupons and 44 GETs. Complete bare response bodies and ordinary unknown fields are
|
|
144
|
+
retained. This invocation makes no POST, calls no configure-receipt constructor
|
|
145
|
+
and appends no C10 events.
|
|
146
|
+
|
|
147
|
+
`owned_observation_data` contains `observation`, `reads`, the final read's
|
|
148
|
+
`observedAt`, `retainedConfigureAcknowledgement: "absent"` and
|
|
149
|
+
`operationalAuthority: false`. The complete pure-helper result is preserved.
|
|
150
|
+
Record, observer input and result each remain within 500000 serialized characters
|
|
151
|
+
and UTF-8 bytes, 10000 nodes counting repeated occurrences, and depth 40. The
|
|
152
|
+
result is detached and frozen before its final Owner check. Owner checks guard
|
|
153
|
+
settled continuations; they do not promise immediate cancellation of pending HTTP.
|
|
154
|
+
|
|
155
|
+
This branch requires `configureAcknowledgement` to be absent. The public pure
|
|
156
|
+
helper's optional `configureReceipt` remains a separate input. The internal branch
|
|
157
|
+
does not widen the helper's absent-response pending/effective classes or
|
|
158
|
+
invoice-pointer limitation. Historical configure-response custody, successor
|
|
159
|
+
invoice evidence, genuine Source binding and provider qualification remain
|
|
160
|
+
separate requirements. These sequential reads do not atomically exclude other
|
|
161
|
+
provider writers or establish payment, authentication or entitlement.
|
|
@@ -331,3 +331,94 @@ recovery and observation remain separate gates. Snapshot equality is not atomic
|
|
|
331
331
|
provider compare-and-swap; host serialization cannot exclude Dashboard or other
|
|
332
332
|
provider writers. Required consumer contexts outside this finite profile remain
|
|
333
333
|
open instead of being replaced by a provenance flag or hidden fallback.
|
|
334
|
+
|
|
335
|
+
## Internal owned configure preflight
|
|
336
|
+
|
|
337
|
+
The internal `captureOwnedConfigurePreflightV2` captures one fixed Source
|
|
338
|
+
operation and permits one invocation. Its normal registry is empty and its
|
|
339
|
+
Source bindings remain unbound. It has no package export or caller-supplied
|
|
340
|
+
owner, client or qualification context.
|
|
341
|
+
|
|
342
|
+
The Source association must retain the actual initial attachment's acknowledged
|
|
343
|
+
receipt identity. Reconstructing an equal receipt with the public constructor
|
|
344
|
+
does not establish that association. After bounded record capture, the original
|
|
345
|
+
public configuration projection runs first. A supported projection Failure
|
|
346
|
+
returns unchanged before the actor's explicit receipt reconstruction, reads or
|
|
347
|
+
coverage checks.
|
|
348
|
+
|
|
349
|
+
On success, a separate read-only transport admits at most 44 GETs. The Schedule
|
|
350
|
+
is read before the same acquisition lifetime finishes. Complete current raw
|
|
351
|
+
Subscription, Price, Customer, Coupon and Schedule material must match the
|
|
352
|
+
retained preconfigure baseline, including unknown fields and counters. A fresh
|
|
353
|
+
projection must equal the entire retained request. The result retains the final
|
|
354
|
+
Schedule read's timestamp even when later owner checks sample a newer time.
|
|
355
|
+
|
|
356
|
+
`configure_preflight_consistent` contains `originalRecord`, `currentEvidence`,
|
|
357
|
+
`request` and `operationalAuthority: false`. The complete result is detached,
|
|
358
|
+
bounded and frozen before its final owner check. It grants no write authority
|
|
359
|
+
and makes no POST. These sequential snapshots provide no atomic exclusion of
|
|
360
|
+
concurrent provider changes.
|
|
361
|
+
|
|
362
|
+
## Internal configure dispatch and explicit replay
|
|
363
|
+
|
|
364
|
+
The internal configure writer uses distinct fixed Source operations for an
|
|
365
|
+
initial invocation and an explicit replay. Each captured handle is single-use.
|
|
366
|
+
Its normal registry remains empty and its loaders unbound; these internal
|
|
367
|
+
operations have no package export or caller-supplied qualification context.
|
|
368
|
+
|
|
369
|
+
Each invocation performs its own preflight within a new transport that permits
|
|
370
|
+
at most 44 GETs followed by one configure POST. The detached read-only preflight
|
|
371
|
+
result cannot authorize that POST. The writer requires the original attachment
|
|
372
|
+
receipt association, complete retained request and current raw baseline, plus a
|
|
373
|
+
separate configure coverage relation. A supported original projection Failure
|
|
374
|
+
returns unchanged before receipt proof, reads or reservation.
|
|
375
|
+
|
|
376
|
+
Before mutation, the dispatch event must both finish sending and receive its
|
|
377
|
+
matching acknowledgement. A safe provider response is likewise sent and
|
|
378
|
+
acknowledged before the public receipt constructor runs. Complete acknowledged
|
|
379
|
+
output must fit the JSON limits before the receipt event is sent and
|
|
380
|
+
acknowledged. A later refusal preserves earlier retained events. An acknowledged
|
|
381
|
+
configure receipt establishes neither pending nor effective state.
|
|
382
|
+
|
|
383
|
+
Explicit replay requires an actual earlier terminal unknown POST from the same
|
|
384
|
+
internal operation lineage. An unknown return value alone grants no replay;
|
|
385
|
+
an ambiguous delegate start without a settled POST fact remains non-replayable.
|
|
386
|
+
Replay retains the original request, payload, key, first-dispatch time, Owner
|
|
387
|
+
and preconfigure baseline. It also requires a live original Owner
|
|
388
|
+
and a nonnegative elapsed interval strictly below 24 hours. Owner expiry can
|
|
389
|
+
prevent replay much earlier. An already-applied two-phase schedule or any other
|
|
390
|
+
baseline drift prevents another POST and requires observation. Once the writer
|
|
391
|
+
constructs a valid receipt from its actual acknowledged response, the older
|
|
392
|
+
unknown attempts in that lineage close. A later output-limit or
|
|
393
|
+
receipt-publication failure cannot reopen them; the known receipt remains
|
|
394
|
+
retained. Calling the pure receipt constructor alone establishes no response
|
|
395
|
+
provenance or custody.
|
|
396
|
+
|
|
397
|
+
There is no automatic replay, key rotation, unkeyed fallback or rollback. The
|
|
398
|
+
internal history is process-local. It does not provide durable storage,
|
|
399
|
+
authority rehydration after a restart or permanent provider replay. A qualified
|
|
400
|
+
host integration must separately retain original request and receipt custody.
|
|
401
|
+
Native/provider and genuine Source qualification remain acceptance requirements.
|
|
402
|
+
|
|
403
|
+
## Internal event continuations
|
|
404
|
+
|
|
405
|
+
The internal C10 compilers reconstruct each attach or configure event from its
|
|
406
|
+
complete captured raw inputs and the public V2 constructors. Each stage has its
|
|
407
|
+
own dispatch, response and receipt channel, numbered 1–3. A safe response is
|
|
408
|
+
retained before receipt identity validation, so a later identity refusal does
|
|
409
|
+
not erase the response event. This is separate from a combined producer journal.
|
|
410
|
+
|
|
411
|
+
Every asynchronous continuation uses the same original-operation owner. Owner
|
|
412
|
+
retirement closes the stage and any pending append permanently; completing a
|
|
413
|
+
hash or send later cannot resume it. Sending requires a live check immediately
|
|
414
|
+
before the actual send callback. Append completion requires both the matching
|
|
415
|
+
acknowledgement and successful send settlement. The append timeout is at most
|
|
416
|
+
five seconds and is also capped by the remaining original work and end bounds;
|
|
417
|
+
it never resets those bounds. A second pending append is refused, while a
|
|
418
|
+
duplicate or late acknowledgement closes the channel.
|
|
419
|
+
|
|
420
|
+
These modules have no package or client export and no active Source binding.
|
|
421
|
+
The default owner remains unbound. The internal port does not dispatch provider
|
|
422
|
+
requests, authenticate acknowledgements, establish custody or enable recovery.
|
|
423
|
+
The historical classifier fixture used by its tests is a frozen test dependency,
|
|
424
|
+
not an operational configure classifier or a new material-adapter integration.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Internal raw renewal acquisition
|
|
2
|
+
|
|
3
|
+
The internal reader keeps the complete Subscription, target Price and billing
|
|
4
|
+
Customer JSON bodies separate from reconstructed Coupon joins. It does not
|
|
5
|
+
change `readRenewalPriceReplacementContext` or any public package export.
|
|
6
|
+
|
|
7
|
+
`createSourceRawAcquisition` takes no arguments. Its private dependencies are the
|
|
8
|
+
same original-operation Owner and the fixed stock Stripe delegate. The compiled
|
|
9
|
+
registry is empty and Source loaders remain unbound, so normal package use cannot
|
|
10
|
+
start this reader or make a request through it. There is no caller-supplied
|
|
11
|
+
client, clock, qualification flag or replacement deadline. Internal operation
|
|
12
|
+
composition can bind the same reader to an already selected transport pair.
|
|
13
|
+
That binding returns unsigned read data and grants no operation authority.
|
|
14
|
+
|
|
15
|
+
## Read sequence and data
|
|
16
|
+
|
|
17
|
+
The fixed sequence reads the Subscription with `discounts`,
|
|
18
|
+
`items.data.discounts` and `items.data.price` expansions, the target Price, then
|
|
19
|
+
the billing Customer. Subscription and item discounts each have at most 20
|
|
20
|
+
entries. Coupon reads follow first appearance across those lists, deduplicated
|
|
21
|
+
by ID, for at most 40 Coupon reads and 43 direct helper GET calls altogether.
|
|
22
|
+
Expanded Coupon equality is checked immediately after its read, before another
|
|
23
|
+
Coupon request can start.
|
|
24
|
+
|
|
25
|
+
A successful result contains `wireSubscription`, `wireTargetPrice`,
|
|
26
|
+
`wireBillingCustomer`, `couponReads` and `derivedCouponJoins` inside `bundle`.
|
|
27
|
+
The joins retain each discount's source index, original Coupon reference and
|
|
28
|
+
read index. They do not replace the discounts in the raw Subscription. Unknown
|
|
29
|
+
JSON fields, counters, decimal strings and own `__proto__` data survive the
|
|
30
|
+
bounded copy. A non-null Schedule association remains an observation; the reader
|
|
31
|
+
does not create an attachment receipt or fetch a Schedule in the attach profile.
|
|
32
|
+
|
|
33
|
+
The separate internal configure-read profile captures an expected subscription
|
|
34
|
+
and Schedule ID once. It follows the same Subscription, Price, Customer and
|
|
35
|
+
Coupon sequence, then reads that exact Schedule before the same child lifetime
|
|
36
|
+
finishes. The Subscription's Schedule reference must match the captured ID.
|
|
37
|
+
This profile allows at most 44 GETs and has no POST. Its result adds the complete
|
|
38
|
+
raw `schedule` alongside `bundle`; it preserves unknown Schedule fields rather
|
|
39
|
+
than reconstructing a Schedule from selected properties. The complete wrapper
|
|
40
|
+
must fit the same JSON limits. These reads do not establish receipt custody or
|
|
41
|
+
permission to configure the Schedule.
|
|
42
|
+
|
|
43
|
+
Every original identity, account, mode and paid-period predicate still applies.
|
|
44
|
+
Each body and the complete result must fit 500,000 JSON characters and UTF-8
|
|
45
|
+
bytes, 10,000 visited nodes and depth 40. Duplicate occurrences count again.
|
|
46
|
+
Credential-bearing fields and text, getters, symbols, cycles and Proxies are
|
|
47
|
+
unsupported. Only the own nonenumerable `lastResponse` transport augmentation is
|
|
48
|
+
removed from an otherwise fully retained JSON body.
|
|
49
|
+
|
|
50
|
+
## Lifetime and transport
|
|
51
|
+
|
|
52
|
+
The first action after every raw request settles is a check against the same
|
|
53
|
+
original Owner. The reader checks before reflecting on the reply or metadata,
|
|
54
|
+
before another request, and before returning a detached, frozen result. Its
|
|
55
|
+
single-use child lifetime closes after completion without retiring the outer
|
|
56
|
+
Owner. It cannot renew the original wall or monotonic bounds.
|
|
57
|
+
|
|
58
|
+
A reply needs consistent 2xx transport status. Plain Node own-data metadata and
|
|
59
|
+
the captured builtin status getter on the exact native Fetch `Response`
|
|
60
|
+
prototype are supported. Arbitrary metadata getters, subclasses, cross-realm
|
|
61
|
+
responses and contradictory status fields are refused.
|
|
62
|
+
|
|
63
|
+
Each request fixes API version `2026-09-30.endive` and
|
|
64
|
+
`maxNetworkRetries: 0`. A future Source client binding must also select the
|
|
65
|
+
maintained `getStripeClient` SingleAttempt policy, whose HTTP client rejects
|
|
66
|
+
redirects and guards the SDK closed-connection retry. Per-request options alone
|
|
67
|
+
do not establish that client configuration. The current Source binding is
|
|
68
|
+
unbound.
|
|
69
|
+
|
|
70
|
+
Failure returns the fixed content-free `RAW_ACQUISITION_STOP` result; partial
|
|
71
|
+
bodies and raw errors are not exposed. `observedAt` comes from the accepted
|
|
72
|
+
original Owner sample after the final read. A later liveness check does not
|
|
73
|
+
replace that timestamp. Success labels explicitly leave source fulfillment,
|
|
74
|
+
clock provenance and operator readiness false. The 43-call attach bound and
|
|
75
|
+
44-call configure-read bound count helper invocations, not a network trace.
|
|
76
|
+
These internal mechanics do not establish
|
|
77
|
+
provider execution, custody, an authenticated clock, attachment dispatch or a
|
|
78
|
+
qualified operational profile.
|
package/package.json
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Independent one-run Source/data probe. No real provider/native/owner operation.
|
|
2
|
+
import { test } from "vitest";
|
|
3
|
+
import assert from "node:assert/strict";
|
|
4
|
+
import { createTestOnlyRawAcquisition } from "./test-fixtures/sourcePort.mjs";
|
|
5
|
+
import {
|
|
6
|
+
scenario,
|
|
7
|
+
wire,
|
|
8
|
+
fakeOwner,
|
|
9
|
+
fakeTransport,
|
|
10
|
+
} from "./test-fixtures/scenario.mjs";
|
|
11
|
+
async function run(permuted) {
|
|
12
|
+
const s = scenario();
|
|
13
|
+
s.subscription.fullRawArray = [{ sourceIndex: 0 }, { sourceIndex: 1 }];
|
|
14
|
+
const owner = fakeOwner(s),
|
|
15
|
+
http = fakeTransport(s, owner);
|
|
16
|
+
let target;
|
|
17
|
+
if (permuted)
|
|
18
|
+
http.override((n, v) => {
|
|
19
|
+
if (n !== 1) return null;
|
|
20
|
+
const reply = wire(v);
|
|
21
|
+
target = reply.fullRawArray;
|
|
22
|
+
reply.fullRawArray = new Proxy(target, {
|
|
23
|
+
ownKeys() {
|
|
24
|
+
return ["1", "0", "length"];
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return reply;
|
|
28
|
+
});
|
|
29
|
+
const reader = createTestOnlyRawAcquisition({
|
|
30
|
+
owner,
|
|
31
|
+
transport: http.transport,
|
|
32
|
+
});
|
|
33
|
+
return { result: await reader.acquire(s.expected), http, target };
|
|
34
|
+
}
|
|
35
|
+
test("complete raw numeric array order is retained or STOP, never silently permuted", async () => {
|
|
36
|
+
const baseline = await run(false);
|
|
37
|
+
assert.equal(baseline.result.ok, true);
|
|
38
|
+
assert.deepEqual(baseline.result.bundle.wireSubscription.fullRawArray, [
|
|
39
|
+
{ sourceIndex: 0 },
|
|
40
|
+
{ sourceIndex: 1 },
|
|
41
|
+
]);
|
|
42
|
+
assert.equal(baseline.http.calls.length, 5);
|
|
43
|
+
const permuted = await run(true);
|
|
44
|
+
console.log(
|
|
45
|
+
"SYNTHETIC_ARRAY_ORDER",
|
|
46
|
+
JSON.stringify({
|
|
47
|
+
baselineOK: baseline.result.ok,
|
|
48
|
+
permutedOK: permuted.result.ok,
|
|
49
|
+
sourceIndices: permuted.target.map((x) => x.sourceIndex),
|
|
50
|
+
retainedIndices: permuted.result.ok
|
|
51
|
+
? permuted.result.bundle.wireSubscription.fullRawArray.map(
|
|
52
|
+
(x) => x.sourceIndex,
|
|
53
|
+
)
|
|
54
|
+
: null,
|
|
55
|
+
directGETs: permuted.http.calls.length,
|
|
56
|
+
actualProviderCalls: 0,
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
if (permuted.result.ok)
|
|
60
|
+
assert.deepEqual(permuted.result.bundle.wireSubscription.fullRawArray, [
|
|
61
|
+
{ sourceIndex: 0 },
|
|
62
|
+
{ sourceIndex: 1 },
|
|
63
|
+
]);
|
|
64
|
+
else
|
|
65
|
+
assert.deepEqual(permuted.result, {
|
|
66
|
+
ok: false,
|
|
67
|
+
complete: false,
|
|
68
|
+
code: "RAW_ACQUISITION_STOP",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// NEW20th controlled counter drift; original19 Source bodies remain unchanged.
|
|
2
|
+
import { test } from "vitest";
|
|
3
|
+
import assert from "node:assert/strict";
|
|
4
|
+
import { createTestOnlyRawAcquisition } from "./test-fixtures/sourcePort.mjs";
|
|
5
|
+
import {
|
|
6
|
+
scenario,
|
|
7
|
+
fakeOwner,
|
|
8
|
+
fakeTransport,
|
|
9
|
+
} from "./test-fixtures/scenario.mjs";
|
|
10
|
+
test("first expanded Coupon drift stops before issuing any successor Coupon GET", async () => {
|
|
11
|
+
const s = scenario();
|
|
12
|
+
s.coupons.get("subscription-offer-0").times_redeemed = 8;
|
|
13
|
+
const owner = fakeOwner(s),
|
|
14
|
+
http = fakeTransport(s, owner),
|
|
15
|
+
reader = createTestOnlyRawAcquisition({ owner, transport: http.transport });
|
|
16
|
+
assert.deepEqual(await reader.acquire(s.expected), {
|
|
17
|
+
ok: false,
|
|
18
|
+
complete: false,
|
|
19
|
+
code: "RAW_ACQUISITION_STOP",
|
|
20
|
+
});
|
|
21
|
+
assert.equal(http.calls.length, 4);
|
|
22
|
+
assert.equal(http.calls[3].path, "/v1/coupons/subscription-offer-0");
|
|
23
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Controlled native Fetch Response metadata only: no fetch/network call or provider proof.
|
|
2
|
+
import { test } from "vitest";
|
|
3
|
+
import assert from "node:assert/strict";
|
|
4
|
+
import { createTestOnlyRawAcquisition } from "./test-fixtures/sourcePort.mjs";
|
|
5
|
+
import {
|
|
6
|
+
scenario,
|
|
7
|
+
wire,
|
|
8
|
+
fakeOwner,
|
|
9
|
+
fakeTransport,
|
|
10
|
+
} from "./test-fixtures/scenario.mjs";
|
|
11
|
+
function setup(metadata) {
|
|
12
|
+
const s = scenario(),
|
|
13
|
+
owner = fakeOwner(s),
|
|
14
|
+
http = fakeTransport(s, owner);
|
|
15
|
+
http.override((n, v) => wire(v, metadata()));
|
|
16
|
+
return {
|
|
17
|
+
owner,
|
|
18
|
+
http,
|
|
19
|
+
reader: createTestOnlyRawAcquisition({ owner, transport: http.transport }),
|
|
20
|
+
expected: s.expected,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
test("maintained native Fetch Response status works without arbitrary metadata getters or shadow contradictions", async () => {
|
|
24
|
+
const good = setup(() => new Response(null, { status: 200 })),
|
|
25
|
+
result = await good.reader.acquire(good.expected);
|
|
26
|
+
assert.equal(result.ok, true);
|
|
27
|
+
assert.equal(good.http.calls.length, 5);
|
|
28
|
+
assert.equal(result.sourceFulfillmentEstablished, false);
|
|
29
|
+
let getterCalls = 0;
|
|
30
|
+
for (const make of [
|
|
31
|
+
() =>
|
|
32
|
+
Object.defineProperty({}, "status", {
|
|
33
|
+
get() {
|
|
34
|
+
getterCalls++;
|
|
35
|
+
throw Error("UNSAFE_STATUS_GETTER");
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
() => Object.create(Response.prototype),
|
|
39
|
+
() => {
|
|
40
|
+
const r = new Response(null, { status: 500 });
|
|
41
|
+
Object.defineProperty(r, "status", { value: 200 });
|
|
42
|
+
return r;
|
|
43
|
+
},
|
|
44
|
+
() => {
|
|
45
|
+
const r = new Response(null, { status: 200 });
|
|
46
|
+
Object.defineProperty(r, "statusCode", { value: 500 });
|
|
47
|
+
return r;
|
|
48
|
+
},
|
|
49
|
+
() => {
|
|
50
|
+
const r = new Response(null, { status: 200 });
|
|
51
|
+
Object.defineProperty(r, "status", {
|
|
52
|
+
get() {
|
|
53
|
+
getterCalls++;
|
|
54
|
+
return 200;
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
return r;
|
|
58
|
+
},
|
|
59
|
+
() =>
|
|
60
|
+
new Proxy(new Response(null, { status: 200 }), {
|
|
61
|
+
get(t, k, r) {
|
|
62
|
+
getterCalls++;
|
|
63
|
+
return Reflect.get(t, k, r);
|
|
64
|
+
},
|
|
65
|
+
}),
|
|
66
|
+
]) {
|
|
67
|
+
const h = setup(make),
|
|
68
|
+
r = await h.reader.acquire(h.expected);
|
|
69
|
+
assert.deepEqual(r, {
|
|
70
|
+
ok: false,
|
|
71
|
+
complete: false,
|
|
72
|
+
code: "RAW_ACQUISITION_STOP",
|
|
73
|
+
});
|
|
74
|
+
assert.equal(h.http.calls.length, 1);
|
|
75
|
+
}
|
|
76
|
+
assert.equal(getterCalls, 0);
|
|
77
|
+
});
|