@fantastic.dev/better-stripe 0.88.1 → 0.90.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.
Files changed (335) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts +2 -0
  4. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +1 -0
  5. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +61 -0
  6. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +1 -0
  7. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +2 -0
  8. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +18 -0
  10. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +2 -0
  12. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +1 -0
  13. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +67 -0
  14. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +1 -0
  15. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts +2 -0
  16. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +1 -0
  17. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +372 -0
  18. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +24 -0
  20. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +113 -0
  22. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -0
  23. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts +55 -0
  24. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts.map +1 -0
  25. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js +87 -0
  26. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js.map +1 -0
  27. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +7 -0
  28. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -0
  29. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +130 -0
  30. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -0
  31. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts +14 -0
  32. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts.map +1 -0
  33. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js +60 -0
  34. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js.map +1 -0
  35. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +2 -0
  36. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +1 -0
  37. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +126 -0
  38. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +1 -0
  39. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +627 -0
  40. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +1 -0
  41. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +488 -0
  42. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +1 -0
  43. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +214 -0
  44. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +1 -0
  45. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +63 -0
  46. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +1 -0
  47. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +75 -0
  48. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +1 -0
  49. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +145 -0
  50. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +1 -0
  51. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +7 -0
  52. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +1 -0
  53. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +26 -0
  54. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +1 -0
  55. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts +14 -0
  56. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts.map +1 -0
  57. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js +202 -0
  58. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js.map +1 -0
  59. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts +23 -0
  60. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts.map +1 -0
  61. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js +117 -0
  62. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js.map +1 -0
  63. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts +23 -0
  64. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts.map +1 -0
  65. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js +111 -0
  66. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js.map +1 -0
  67. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts +11 -0
  68. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts.map +1 -0
  69. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +376 -0
  70. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -0
  71. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts +16 -0
  72. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts.map +1 -0
  73. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js +119 -0
  74. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js.map +1 -0
  75. package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts +30 -0
  76. package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts.map +1 -0
  77. package/dist/client/billing/renewalAttach/internal/c10/ownData.js +74 -0
  78. package/dist/client/billing/renewalAttach/internal/c10/ownData.js.map +1 -0
  79. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts +3 -0
  80. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts.map +1 -0
  81. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js +3 -0
  82. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js.map +1 -0
  83. package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts +2 -0
  84. package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts.map +1 -0
  85. package/dist/client/billing/renewalAttach/internal/c10/privacy.js +175 -0
  86. package/dist/client/billing/renewalAttach/internal/c10/privacy.js.map +1 -0
  87. package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts +3 -0
  88. package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts.map +1 -0
  89. package/dist/client/billing/renewalAttach/internal/c10/publicApi.js +3 -0
  90. package/dist/client/billing/renewalAttach/internal/c10/publicApi.js.map +1 -0
  91. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +3 -0
  92. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +1 -0
  93. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +4 -0
  94. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +1 -0
  95. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +26 -0
  96. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +1 -0
  97. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +42 -0
  98. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +1 -0
  99. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +7 -0
  100. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +1 -0
  101. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +60 -0
  102. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +1 -0
  103. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +335 -0
  104. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +1 -0
  105. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +122 -0
  106. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +1 -0
  107. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +46 -0
  108. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +1 -0
  109. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +87 -0
  110. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +1 -0
  111. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +35 -0
  112. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +1 -0
  113. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +90 -0
  114. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +1 -0
  115. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +132 -0
  116. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +1 -0
  117. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
  118. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +1 -0
  119. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +4 -0
  120. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +1 -0
  121. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +23 -0
  122. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +1 -0
  123. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +16 -0
  124. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +1 -0
  125. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
  126. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +1 -0
  127. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +43 -0
  128. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +1 -0
  129. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +132 -0
  130. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +1 -0
  131. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +200 -0
  132. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +1 -0
  133. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +150 -0
  134. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +1 -0
  135. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +124 -0
  136. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +1 -0
  137. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
  138. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +1 -0
  139. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +3 -0
  140. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +1 -0
  141. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +69 -0
  142. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +1 -0
  143. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +2 -0
  144. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +1 -0
  145. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +152 -0
  146. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +1 -0
  147. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +2 -0
  148. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +1 -0
  149. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +2 -0
  150. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +1 -0
  151. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +5 -0
  152. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +1 -0
  153. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +243 -0
  154. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +1 -0
  155. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +17 -0
  156. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +1 -0
  157. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +75 -0
  158. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +1 -0
  159. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +2 -0
  160. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +1 -0
  161. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +173 -0
  162. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +1 -0
  163. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +4 -0
  164. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +1 -0
  165. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +4 -0
  166. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +1 -0
  167. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +7 -0
  168. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +1 -0
  169. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +30 -0
  170. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +1 -0
  171. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +29 -0
  172. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +1 -0
  173. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +33 -0
  174. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +1 -0
  175. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
  176. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +2 -0
  177. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +1 -0
  178. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +173 -0
  179. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +1 -0
  180. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +2 -0
  181. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +1 -0
  182. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +449 -0
  183. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +1 -0
  184. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +9 -0
  185. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +1 -0
  186. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +27 -0
  187. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +1 -0
  188. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +7 -0
  189. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +1 -0
  190. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +150 -0
  191. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +1 -0
  192. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +3 -0
  193. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +1 -0
  194. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +503 -0
  195. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +1 -0
  196. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +2 -0
  197. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +1 -0
  198. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +91 -0
  199. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +1 -0
  200. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +14 -0
  201. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +1 -0
  202. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +41 -0
  203. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +1 -0
  204. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +103 -0
  205. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +1 -0
  206. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +46 -0
  207. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +1 -0
  208. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +73 -0
  209. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +1 -0
  210. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +294 -0
  211. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +1 -0
  212. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +2 -0
  213. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +1 -0
  214. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +60 -0
  215. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +1 -0
  216. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +58 -0
  217. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +1 -0
  218. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +96 -0
  219. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +1 -0
  220. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +2 -0
  221. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +1 -0
  222. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +40 -0
  223. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +1 -0
  224. package/dist/client/billing/renewalAttach/internal/material/capture.d.ts +88 -0
  225. package/dist/client/billing/renewalAttach/internal/material/capture.d.ts.map +1 -0
  226. package/dist/client/billing/renewalAttach/internal/material/capture.js +181 -0
  227. package/dist/client/billing/renewalAttach/internal/material/capture.js.map +1 -0
  228. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +522 -0
  229. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -0
  230. package/dist/client/billing/renewalAttach/internal/material/classifiers.js +226 -0
  231. package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -0
  232. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts +17 -0
  233. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts.map +1 -0
  234. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js +95 -0
  235. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js.map +1 -0
  236. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +338 -0
  237. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -0
  238. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +122 -0
  239. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -0
  240. package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts +2 -0
  241. package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts.map +1 -0
  242. package/dist/client/billing/renewalAttach/internal/material/requiredJson.js +174 -0
  243. package/dist/client/billing/renewalAttach/internal/material/requiredJson.js.map +1 -0
  244. package/dist/client/billing/renewalAttach/internal/originalOwner.d.ts +27 -0
  245. package/dist/client/billing/renewalAttach/internal/originalOwner.d.ts.map +1 -0
  246. package/dist/client/billing/renewalAttach/internal/originalOwner.js +236 -0
  247. package/dist/client/billing/renewalAttach/internal/originalOwner.js.map +1 -0
  248. package/dist/client/billing/renewalAttach/internal/sourceBindings.d.ts +5 -0
  249. package/dist/client/billing/renewalAttach/internal/sourceBindings.d.ts.map +1 -0
  250. package/dist/client/billing/renewalAttach/internal/sourceBindings.js +9 -0
  251. package/dist/client/billing/renewalAttach/internal/sourceBindings.js.map +1 -0
  252. package/dist/client/billing/renewalAttach/internal/stockRawDelegate.d.ts +6 -0
  253. package/dist/client/billing/renewalAttach/internal/stockRawDelegate.d.ts.map +1 -0
  254. package/dist/client/billing/renewalAttach/internal/stockRawDelegate.js +35 -0
  255. package/dist/client/billing/renewalAttach/internal/stockRawDelegate.js.map +1 -0
  256. package/docs/renewal-context-reads.md +43 -0
  257. package/docs/renewal-phase-assembly.md +23 -0
  258. package/docs/renewal-raw-acquisition.md +64 -0
  259. package/package.json +1 -1
  260. package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +70 -0
  261. package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +23 -0
  262. package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +77 -0
  263. package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +418 -0
  264. package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +160 -0
  265. package/src/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.ts +110 -0
  266. package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +156 -0
  267. package/src/client/billing/renewalAttach/internal/acquisition/readLifetime.ts +64 -0
  268. package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +138 -0
  269. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +510 -0
  270. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +64 -0
  271. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +159 -0
  272. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +25 -0
  273. package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +86 -0
  274. package/src/client/billing/renewalAttach/internal/c10/appendAck.ts +226 -0
  275. package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +186 -0
  276. package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +47 -0
  277. package/src/client/billing/renewalAttach/internal/c10/attachEvents.ts +144 -0
  278. package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +443 -0
  279. package/src/client/billing/renewalAttach/internal/c10/configureEvents.ts +145 -0
  280. package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +464 -0
  281. package/src/client/billing/renewalAttach/internal/c10/eventCodec.ts +131 -0
  282. package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +175 -0
  283. package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +114 -0
  284. package/src/client/billing/renewalAttach/internal/c10/ownData.ts +103 -0
  285. package/src/client/billing/renewalAttach/internal/c10/ownerBinding.ts +2 -0
  286. package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +283 -0
  287. package/src/client/billing/renewalAttach/internal/c10/privacy.ts +181 -0
  288. package/src/client/billing/renewalAttach/internal/c10/publicApi.ts +8 -0
  289. package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +87 -0
  290. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +3 -0
  291. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +49 -0
  292. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +63 -0
  293. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +160 -0
  294. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +88 -0
  295. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +102 -0
  296. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
  297. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +20 -0
  298. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
  299. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +137 -0
  300. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +153 -0
  301. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
  302. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +85 -0
  303. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +170 -0
  304. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +6 -0
  305. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +295 -0
  306. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +78 -0
  307. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +177 -0
  308. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +8 -0
  309. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +34 -0
  310. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +32 -0
  311. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
  312. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +177 -0
  313. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +466 -0
  314. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +29 -0
  315. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +165 -0
  316. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +507 -0
  317. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +89 -0
  318. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +38 -0
  319. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +45 -0
  320. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +309 -0
  321. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +58 -0
  322. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +104 -0
  323. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +43 -0
  324. package/src/client/billing/renewalAttach/internal/material/capture.ts +243 -0
  325. package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +510 -0
  326. package/src/client/billing/renewalAttach/internal/material/classifiers.ts +313 -0
  327. package/src/client/billing/renewalAttach/internal/material/nodeKernel.ts +118 -0
  328. package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +176 -0
  329. package/src/client/billing/renewalAttach/internal/material/requiredJson.ts +183 -0
  330. package/src/client/billing/renewalAttach/internal/originalOwner.test.ts +258 -0
  331. package/src/client/billing/renewalAttach/internal/originalOwner.ts +280 -0
  332. package/src/client/billing/renewalAttach/internal/sourceBindings.test.ts +13 -0
  333. package/src/client/billing/renewalAttach/internal/sourceBindings.ts +8 -0
  334. package/src/client/billing/renewalAttach/internal/stockRawDelegate.test.ts +156 -0
  335. package/src/client/billing/renewalAttach/internal/stockRawDelegate.ts +43 -0
@@ -0,0 +1,27 @@
1
+ export interface OriginalBasis {
2
+ readonly startWallMs: number;
3
+ readonly startNs: bigint;
4
+ readonly workEndWallMs: number;
5
+ readonly workEndNs: bigint;
6
+ readonly endWallMs: number;
7
+ readonly endNs: bigint;
8
+ }
9
+ export interface OriginalSample {
10
+ readonly wallMs: number;
11
+ readonly ns: bigint;
12
+ readonly nowSeconds: number;
13
+ readonly retired: false;
14
+ }
15
+ declare function close(): void;
16
+ declare function check(): Readonly<OriginalSample>;
17
+ declare function subscribe(fn: () => void): () => void;
18
+ /** Stable internal identity. Importing it neither loads a Source nor samples a clock. */
19
+ export declare const OWNER: Readonly<{
20
+ readonly basis: Readonly<OriginalBasis>;
21
+ check: typeof check;
22
+ sample: typeof check;
23
+ subscribe: typeof subscribe;
24
+ retire: typeof close;
25
+ }>;
26
+ export {};
27
+ //# sourceMappingURL=originalOwner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"originalOwner.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/originalOwner.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;CACzB;AA+ED,iBAAS,KAAK,SAWb;AAuFD,iBAAS,KAAK,IAAI,QAAQ,CAAC,cAAc,CAAC,CAkDzC;AACD,iBAAS,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAwB7C;AACD,yFAAyF;AACzF,eAAO,MAAM,KAAK;;;;;;EAQhB,CAAC"}
@@ -0,0 +1,236 @@
1
+ /** Internal owner mechanics; Source origin and production bindings remain unbound. */
2
+ import { types } from "node:util";
3
+ import { loadOwnedOriginalSource } from "./sourceBindings.js";
4
+ function stop() {
5
+ throw new Error("ORIGINAL_OWNER_STOP");
6
+ }
7
+ function need(value) {
8
+ if (!value)
9
+ stop();
10
+ }
11
+ const isProxy = types.isProxy;
12
+ const u64 = 18446744073709551615n;
13
+ const ms = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
14
+ const ns = (value) => typeof value === "bigint" && value >= 0n && value <= u64;
15
+ function own(value, names) {
16
+ need(!isProxy(value));
17
+ need(value !== null && typeof value === "object" && !Array.isArray(value));
18
+ const prototype = Object.getPrototypeOf(value);
19
+ need(prototype === Object.prototype || prototype === null);
20
+ const keys = Reflect.ownKeys(value);
21
+ need(keys.length === names.length &&
22
+ keys.every((key) => typeof key === "string" && names.includes(key)));
23
+ const result = Object.create(null);
24
+ for (const key of names) {
25
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
26
+ need(descriptor &&
27
+ descriptor.enumerable &&
28
+ Object.prototype.hasOwnProperty.call(descriptor, "value"));
29
+ Object.defineProperty(result, key, {
30
+ value: descriptor.value,
31
+ enumerable: true,
32
+ });
33
+ }
34
+ return result;
35
+ }
36
+ let state = "unused";
37
+ let context = null;
38
+ let checking = false;
39
+ let last = null;
40
+ let detachClock = null;
41
+ let detached = false;
42
+ const waiters = new Set();
43
+ // Source registration can synchronously reenter and close the latch.
44
+ const isClosed = () => state === "closed";
45
+ function detach() {
46
+ if (!detached && detachClock) {
47
+ detached = true;
48
+ try {
49
+ Reflect.apply(detachClock, undefined, []);
50
+ }
51
+ catch {
52
+ /* Closing remains irreversible. */
53
+ }
54
+ }
55
+ }
56
+ function notify(fn) {
57
+ try {
58
+ Reflect.apply(fn, undefined, []);
59
+ }
60
+ catch {
61
+ /* One waiter cannot prevent retirement. */
62
+ }
63
+ }
64
+ function close() {
65
+ if (state === "closed")
66
+ return;
67
+ state = "closed";
68
+ detach();
69
+ const active = [...waiters];
70
+ waiters.clear();
71
+ for (const record of active)
72
+ if (record.active) {
73
+ record.active = false;
74
+ notify(record.fn);
75
+ }
76
+ }
77
+ function initialize() {
78
+ if (state === "closed")
79
+ stop();
80
+ if (state === "loading") {
81
+ close();
82
+ stop();
83
+ }
84
+ if (state === "live") {
85
+ need(context);
86
+ return context;
87
+ }
88
+ state = "loading";
89
+ try {
90
+ const loaded = loadOwnedOriginalSource();
91
+ need(state === "loading");
92
+ const source = own(loaded, [
93
+ "clock",
94
+ "originalPolicy",
95
+ "originAssociation",
96
+ ]);
97
+ const clock = own(source.clock, ["basis", "sample", "subscribeRetirement"]);
98
+ const basis = own(clock.basis, [
99
+ "startWallMs",
100
+ "startNs",
101
+ "workEndWallMs",
102
+ "workEndNs",
103
+ "endWallMs",
104
+ "endNs",
105
+ ]);
106
+ need(ms(basis.startWallMs) &&
107
+ ms(basis.workEndWallMs) &&
108
+ ms(basis.endWallMs) &&
109
+ ns(basis.startNs) &&
110
+ ns(basis.workEndNs) &&
111
+ ns(basis.endNs) &&
112
+ basis.startWallMs < basis.workEndWallMs &&
113
+ basis.workEndWallMs <= basis.endWallMs &&
114
+ basis.startNs < basis.workEndNs &&
115
+ basis.workEndNs <= basis.endNs);
116
+ const policy = own(source.originalPolicy, [
117
+ "firstDispatchedAt",
118
+ "periodStart",
119
+ "periodEnd",
120
+ ]);
121
+ need(ms(policy.firstDispatchedAt) &&
122
+ ms(policy.periodStart) &&
123
+ ms(policy.periodEnd) &&
124
+ policy.periodStart < policy.periodEnd);
125
+ need(source.originAssociation !== null &&
126
+ typeof source.originAssociation === "object" &&
127
+ !isProxy(source.originAssociation));
128
+ need(typeof clock.sample === "function" &&
129
+ !isProxy(clock.sample) &&
130
+ typeof clock.subscribeRetirement === "function" &&
131
+ !isProxy(clock.subscribeRetirement));
132
+ // These assertions follow complete own-data validation above. Nothing is taken from a caller API.
133
+ context = Object.freeze({
134
+ basis: Object.freeze({ ...basis }),
135
+ policy: Object.freeze({ ...policy }),
136
+ sample: clock.sample,
137
+ clock: source.clock,
138
+ originAssociation: source.originAssociation,
139
+ });
140
+ const unsubscribe = Reflect.apply(clock.subscribeRetirement, source.clock, [close]);
141
+ need(typeof unsubscribe === "function" && !isProxy(unsubscribe));
142
+ detachClock = unsubscribe;
143
+ if (isClosed())
144
+ detach();
145
+ need(state === "loading");
146
+ state = "live";
147
+ return context;
148
+ }
149
+ catch {
150
+ close();
151
+ stop();
152
+ }
153
+ }
154
+ function check() {
155
+ if (state === "closed" || checking) {
156
+ close();
157
+ stop();
158
+ }
159
+ checking = true;
160
+ try {
161
+ const current = initialize();
162
+ need(state === "live");
163
+ const raw = Reflect.apply(current.sample, current.clock, []);
164
+ need(state === "live");
165
+ const value = own(raw, ["wallMs", "ns"]), basis = current.basis, policy = current.policy;
166
+ need(ms(value.wallMs) &&
167
+ ns(value.ns) &&
168
+ value.wallMs >= basis.startWallMs &&
169
+ value.ns >= basis.startNs &&
170
+ value.wallMs < basis.workEndWallMs &&
171
+ value.ns < basis.workEndNs &&
172
+ value.wallMs < basis.endWallMs &&
173
+ value.ns < basis.endNs &&
174
+ (!last || (value.wallMs >= last.wallMs && value.ns >= last.ns)));
175
+ const nowSeconds = Math.floor(value.wallMs / 1000), lastSeconds = last ? last.nowSeconds : policy.firstDispatchedAt;
176
+ need(Number.isSafeInteger(nowSeconds) &&
177
+ nowSeconds >= lastSeconds &&
178
+ nowSeconds >= policy.firstDispatchedAt &&
179
+ nowSeconds - policy.firstDispatchedAt < 86400 &&
180
+ nowSeconds >= policy.periodStart &&
181
+ nowSeconds < policy.periodEnd);
182
+ need(state === "live");
183
+ const accepted = Object.freeze({
184
+ wallMs: value.wallMs,
185
+ ns: value.ns,
186
+ nowSeconds,
187
+ retired: false,
188
+ });
189
+ last = accepted;
190
+ return accepted;
191
+ }
192
+ catch {
193
+ close();
194
+ stop();
195
+ }
196
+ finally {
197
+ checking = false;
198
+ }
199
+ }
200
+ function subscribe(fn) {
201
+ if (typeof fn !== "function" || isProxy(fn)) {
202
+ close();
203
+ stop();
204
+ }
205
+ if (state !== "closed") {
206
+ try {
207
+ initialize();
208
+ }
209
+ catch {
210
+ /* Closed listeners are notified below. */
211
+ }
212
+ }
213
+ if (state === "closed") {
214
+ notify(fn);
215
+ return () => { };
216
+ }
217
+ const record = { fn, active: true };
218
+ waiters.add(record);
219
+ return () => {
220
+ if (record.active) {
221
+ record.active = false;
222
+ waiters.delete(record);
223
+ }
224
+ };
225
+ }
226
+ /** Stable internal identity. Importing it neither loads a Source nor samples a clock. */
227
+ export const OWNER = Object.freeze({
228
+ get basis() {
229
+ return initialize().basis;
230
+ },
231
+ check,
232
+ sample: check,
233
+ subscribe,
234
+ retire: close,
235
+ });
236
+ //# sourceMappingURL=originalOwner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"originalOwner.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/originalOwner.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAiB9D,SAAS,IAAI;IACX,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC;AACD,SAAS,IAAI,CAAC,KAAc;IAC1B,IAAI,CAAC,KAAK;QAAE,IA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OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,CAAC;IACT,CAAC;YAAS,CAAC;QACT,QAAQ,GAAG,KAAK,CAAC;IACnB,CAAC;AACH,CAAC;AACD,SAAS,SAAS,CAAC,EAAc;IAC/B,IAAI,OAAO,EAAE,KAAK,UAAU,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,CAAC;IACT,CAAC;IACD,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvB,IAAI,CAAC;YACH,UAAU,EAAE,CAAC;QACf,CAAC;QAAC,MAAM,CAAC;YACP,0CAA0C;QAC5C,CAAC;IACH,CAAC;IACD,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvB,MAAM,CAAC,EAAE,CAAC,CAAC;QACX,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,OAAO,GAAG,EAAE;QACV,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC;YACtB,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AACD,yFAAyF;AACzF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,IAAI,KAAK;QACP,OAAO,UAAU,EAAE,CAAC,KAAK,CAAC;IAC5B,CAAC;IACD,KAAK;IACL,MAAM,EAAE,KAAK;IACb,SAAS;IACT,MAAM,EAAE,KAAK;CACd,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Internal adoption defaults. No production Source capability is bound. */
2
+ export declare const COMPILED_ENTRIES: readonly never[];
3
+ export declare function loadOwnedOriginalSource(): unknown;
4
+ export declare function loadFixedStockClient(): unknown;
5
+ //# sourceMappingURL=sourceBindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceBindings.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/sourceBindings.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,EAAE,SAAS,KAAK,EAAsB,CAAC;AACpE,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AACD,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C"}
@@ -0,0 +1,9 @@
1
+ /** Internal adoption defaults. No production Source capability is bound. */
2
+ export const COMPILED_ENTRIES = Object.freeze([]);
3
+ export function loadOwnedOriginalSource() {
4
+ throw new Error("ORIGINAL_OWNER_UNBOUND");
5
+ }
6
+ export function loadFixedStockClient() {
7
+ throw new Error("STOCK_CLIENT_UNBOUND");
8
+ }
9
+ //# sourceMappingURL=sourceBindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceBindings.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/sourceBindings.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAqB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACpE,MAAM,UAAU,uBAAuB;IACrC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC5C,CAAC;AACD,MAAM,UAAU,oBAAoB;IAClC,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import Stripe from "stripe";
2
+ /** Internal fixed Source facade, not a public client or qualification selector. */
3
+ export declare function createSourceStockRawDelegate(): Readonly<{
4
+ rawRequest: Stripe["rawRequest"];
5
+ }>;
6
+ //# sourceMappingURL=stockRawDelegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stockRawDelegate.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/stockRawDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAS5B,mFAAmF;AACnF,wBAAgB,4BAA4B,IAAI,QAAQ,CAAC;IACvD,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;CAClC,CAAC,CA8BD"}
@@ -0,0 +1,35 @@
1
+ import Stripe from "stripe";
2
+ import { types } from "node:util";
3
+ import { OWNER } from "./originalOwner.js";
4
+ import { loadFixedStockClient } from "./sourceBindings.js";
5
+ function stop() {
6
+ throw new Error("STOCK_SOURCE_DELEGATE_UNBOUND");
7
+ }
8
+ const apply = Reflect.apply;
9
+ /** Internal fixed Source facade, not a public client or qualification selector. */
10
+ export function createSourceStockRawDelegate() {
11
+ if (arguments.length !== 0)
12
+ stop();
13
+ OWNER.check();
14
+ const client = loadFixedStockClient();
15
+ OWNER.check();
16
+ if (!client ||
17
+ typeof client !== "object" ||
18
+ types.isProxy(client) ||
19
+ Object.getPrototypeOf(client) !== Stripe.prototype ||
20
+ Object.prototype.hasOwnProperty.call(client, "rawRequest"))
21
+ stop();
22
+ const descriptor = Object.getOwnPropertyDescriptor(Stripe.prototype, "rawRequest");
23
+ if (!descriptor ||
24
+ !Object.prototype.hasOwnProperty.call(descriptor, "value") ||
25
+ typeof descriptor.value !== "function")
26
+ stop();
27
+ const method = descriptor.value;
28
+ OWNER.check();
29
+ return Object.freeze({
30
+ rawRequest(...args) {
31
+ return apply(method, client, args);
32
+ },
33
+ });
34
+ }
35
+ //# sourceMappingURL=stockRawDelegate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stockRawDelegate.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/stockRawDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM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,CAAC,CAAC;AACL,CAAC"}
@@ -41,6 +41,49 @@ Older snapshots that already omitted a field cannot recover it or establish
41
41
  retroactive full-record provenance. Reconstructing a changed full record does
42
42
  not migrate its old binding or authorize a retry.
43
43
 
44
+ ## Internal ownership and transport groundwork
45
+
46
+ The internal `renewalAttach/internal` modules keep one original owner identity
47
+ and adapt the stock Stripe client's inherited `rawRequest` method without
48
+ changing its receiver, arguments, result or thrown value. The owner checks the
49
+ same original wall and monotonic time bounds and closes permanently on expiry,
50
+ regression or retirement. These modules do not read a clock at import time.
51
+
52
+ The compiled entry registry remains empty, and the original Source and stock
53
+ client bindings remain unbound. There is no package export or operational
54
+ attachment actor in this increment. It does not authorize reads, dispatch a
55
+ request, enable recovery or establish provider custody or native qualification.
56
+ The internal Node-only mechanics are not a caller-supplied clock, client or
57
+ qualification API. The public preparation and receipt constructors are unchanged.
58
+
59
+ ## Internal initial material consistency
60
+
61
+ The internal `renewalAttach/internal/material` classifiers compare complete
62
+ retained raw Subscription, target Price, billing Customer and Coupon evidence.
63
+ The retained classifier requires historical Coupon bodies. The fresh classifier
64
+ also requires the complete current bundle. Current reads cannot replace missing
65
+ historical evidence, and counter, unknown-field, array-order or reference-form
66
+ drift refuses classification.
67
+
68
+ Coupon joins are separate semantic values. The classifiers reconstruct each
69
+ Coupon association and supply only the two derived Discount arrays to the
70
+ existing eligibility predicates. They preserve the original raw bodies and
71
+ reference forms for comparison; an enriched Subscription is not relabeled as a
72
+ wire response. Hosts must retain those raw bundles separately. The existing
73
+ 21-field material result does not add a durable raw-evidence storage guarantee.
74
+
75
+ Both classifiers use the same internal original owner before capture, around
76
+ constructor awaits and immediately before publishing the bounded result. The
77
+ three generated binding positions are checked against locally reconstructed
78
+ C1/C2 values. Other material remains subject to the private bounded-JSON policy;
79
+ this does not change the public preparation constructors' metadata policy.
80
+
81
+ These internal functions establish unsigned initial-material consistency only.
82
+ They have no package-root export, caller-supplied owner or proof input, registry
83
+ admission, provider call, recovery path or operational attachment entry. The
84
+ Source bindings remain unbound and the registry remains empty. A material result
85
+ is not an acknowledgement, custody record or provider/native qualification.
86
+
44
87
  ## Fixed acquisition profile
45
88
 
46
89
  The initial profile supports platform requests using the configured
@@ -331,3 +331,26 @@ 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 event continuations
336
+
337
+ The internal C10 compilers reconstruct each attach or configure event from its
338
+ complete captured raw inputs and the public V2 constructors. Each stage has its
339
+ own dispatch, response and receipt channel, numbered 1–3. A safe response is
340
+ retained before receipt identity validation, so a later identity refusal does
341
+ not erase the response event. This is separate from a combined producer journal.
342
+
343
+ Every asynchronous continuation uses the same original-operation owner. Owner
344
+ retirement closes the stage and any pending append permanently; completing a
345
+ hash or send later cannot resume it. Sending requires a live check immediately
346
+ before the actual send callback. Append completion requires both the matching
347
+ acknowledgement and successful send settlement. The append timeout is at most
348
+ five seconds and is also capped by the remaining original work and end bounds;
349
+ it never resets those bounds. A second pending append is refused, while a
350
+ duplicate or late acknowledgement closes the channel.
351
+
352
+ These modules have no package or client export and no active Source binding.
353
+ The default owner remains unbound. The internal port does not dispatch provider
354
+ requests, authenticate acknowledgements, establish custody or enable recovery.
355
+ The historical classifier fixture used by its tests is a frozen test dependency,
356
+ not an operational configure classifier or a new material-adapter integration.
@@ -0,0 +1,64 @@
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.
12
+
13
+ ## Read sequence and data
14
+
15
+ The fixed sequence reads the Subscription with `discounts`,
16
+ `items.data.discounts` and `items.data.price` expansions, the target Price, then
17
+ the billing Customer. Subscription and item discounts each have at most 20
18
+ entries. Coupon reads follow first appearance across those lists, deduplicated
19
+ by ID, for at most 40 Coupon reads and 43 direct helper GET calls altogether.
20
+ Expanded Coupon equality is checked immediately after its read, before another
21
+ Coupon request can start.
22
+
23
+ A successful result contains `wireSubscription`, `wireTargetPrice`,
24
+ `wireBillingCustomer`, `couponReads` and `derivedCouponJoins` inside `bundle`.
25
+ The joins retain each discount's source index, original Coupon reference and
26
+ read index. They do not replace the discounts in the raw Subscription. Unknown
27
+ JSON fields, counters, decimal strings and own `__proto__` data survive the
28
+ bounded copy. A non-null Schedule association remains an observation; the reader
29
+ does not create an attachment receipt or fetch a Schedule.
30
+
31
+ Every original identity, account, mode and paid-period predicate still applies.
32
+ Each body and the complete result must fit 500,000 JSON characters and UTF-8
33
+ bytes, 10,000 visited nodes and depth 40. Duplicate occurrences count again.
34
+ Credential-bearing fields and text, getters, symbols, cycles and Proxies are
35
+ unsupported. Only the own nonenumerable `lastResponse` transport augmentation is
36
+ removed from an otherwise fully retained JSON body.
37
+
38
+ ## Lifetime and transport
39
+
40
+ The first action after every raw request settles is a check against the same
41
+ original Owner. The reader checks before reflecting on the reply or metadata,
42
+ before another request, and before returning a detached, frozen result. Its
43
+ single-use child lifetime closes after completion without retiring the outer
44
+ Owner. It cannot renew the original wall or monotonic bounds.
45
+
46
+ A reply needs consistent 2xx transport status. Plain Node own-data metadata and
47
+ the captured builtin status getter on the exact native Fetch `Response`
48
+ prototype are supported. Arbitrary metadata getters, subclasses, cross-realm
49
+ responses and contradictory status fields are refused.
50
+
51
+ Each request fixes API version `2026-09-30.endive` and
52
+ `maxNetworkRetries: 0`. A future Source client binding must also select the
53
+ maintained `getStripeClient` SingleAttempt policy, whose HTTP client rejects
54
+ redirects and guards the SDK closed-connection retry. Per-request options alone
55
+ do not establish that client configuration. The current Source binding is
56
+ unbound.
57
+
58
+ Failure returns the fixed content-free `RAW_ACQUISITION_STOP` result; partial
59
+ bodies and raw errors are not exposed. `observedAt` comes from the accepted
60
+ original Owner sample. Success labels explicitly leave source fulfillment,
61
+ clock provenance and operator readiness false. The 43-call bound counts helper
62
+ invocations, not a network trace. These internal mechanics do not establish
63
+ provider execution, custody, an authenticated clock, attachment dispatch or a
64
+ qualified operational profile.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fantastic.dev/better-stripe",
3
- "version": "0.88.1",
3
+ "version": "0.90.0",
4
4
  "description": "Convex component for Stripe Accounts v2, subscriptions, metered billing and Connect marketplaces, with React workflows.",
5
5
  "keywords": [
6
6
  "stripe",
@@ -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
+ });