@fantastic.dev/better-stripe 0.90.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.
Files changed (216) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts +41 -0
  4. package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts.map +1 -0
  5. package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js +187 -0
  6. package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js.map +1 -0
  7. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +2 -23
  8. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -1
  9. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +1 -112
  10. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -1
  11. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +8 -3
  12. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -1
  13. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +1 -0
  14. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +1 -1
  16. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +8 -0
  17. package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
  18. package/dist/client/billing/renewalAttach/internal/configure/actor.js +454 -0
  19. package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -0
  20. package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts +12 -0
  21. package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts.map +1 -0
  22. package/dist/client/billing/renewalAttach/internal/configure/capture.js +99 -0
  23. package/dist/client/billing/renewalAttach/internal/configure/capture.js.map +1 -0
  24. package/dist/client/billing/renewalAttach/internal/configure/output.d.ts +16 -0
  25. package/dist/client/billing/renewalAttach/internal/configure/output.d.ts.map +1 -0
  26. package/dist/client/billing/renewalAttach/internal/configure/output.js +274 -0
  27. package/dist/client/billing/renewalAttach/internal/configure/output.js.map +1 -0
  28. package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts +3 -0
  29. package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts.map +1 -0
  30. package/dist/client/billing/renewalAttach/internal/configure/replay.js +9 -0
  31. package/dist/client/billing/renewalAttach/internal/configure/replay.js.map +1 -0
  32. package/dist/client/billing/renewalAttach/internal/configure/request.d.ts +39 -0
  33. package/dist/client/billing/renewalAttach/internal/configure/request.d.ts.map +1 -0
  34. package/dist/client/billing/renewalAttach/internal/configure/request.js +245 -0
  35. package/dist/client/billing/renewalAttach/internal/configure/request.js.map +1 -0
  36. package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts +88 -0
  37. package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts.map +1 -0
  38. package/dist/client/billing/renewalAttach/internal/configure/transport.js +289 -0
  39. package/dist/client/billing/renewalAttach/internal/configure/transport.js.map +1 -0
  40. package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts +16 -0
  41. package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -0
  42. package/dist/client/billing/renewalAttach/internal/observation/actor.js +362 -0
  43. package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -0
  44. package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts +9 -0
  45. package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -0
  46. package/dist/client/billing/renewalAttach/internal/observation/capture.js +215 -0
  47. package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -0
  48. package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts +7 -0
  49. package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts.map +1 -0
  50. package/dist/client/billing/renewalAttach/internal/observation/profile.js +190 -0
  51. package/dist/client/billing/renewalAttach/internal/observation/profile.js.map +1 -0
  52. package/dist/client/billing/renewalAttach/internal/observation/record.d.ts +5 -0
  53. package/dist/client/billing/renewalAttach/internal/observation/record.d.ts.map +1 -0
  54. package/dist/client/billing/renewalAttach/internal/observation/record.js +317 -0
  55. package/dist/client/billing/renewalAttach/internal/observation/record.js.map +1 -0
  56. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +79 -0
  57. package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -0
  58. package/dist/client/billing/renewalAttach/internal/observation/types.js +27 -0
  59. package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -0
  60. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts +18 -0
  61. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -0
  62. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +229 -0
  63. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -0
  64. package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts +163 -0
  65. package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts.map +1 -0
  66. package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js +443 -0
  67. package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js.map +1 -0
  68. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +8 -0
  69. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -0
  70. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +467 -0
  71. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -0
  72. package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts +6 -0
  73. package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts.map +1 -0
  74. package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js +59 -0
  75. package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js.map +1 -0
  76. package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts +10 -0
  77. package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts.map +1 -0
  78. package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js +48 -0
  79. package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js.map +1 -0
  80. package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts +20 -0
  81. package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts.map +1 -0
  82. package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js +44 -0
  83. package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js.map +1 -0
  84. package/dist/client/billing/renewalAttach/internal/operations/types.d.ts +42 -0
  85. package/dist/client/billing/renewalAttach/internal/operations/types.d.ts.map +1 -0
  86. package/dist/client/billing/renewalAttach/internal/operations/types.js +158 -0
  87. package/dist/client/billing/renewalAttach/internal/operations/types.js.map +1 -0
  88. package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts +5 -0
  89. package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts.map +1 -0
  90. package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js +214 -0
  91. package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js.map +1 -0
  92. package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts +33 -0
  93. package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts.map +1 -0
  94. package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +208 -0
  95. package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -0
  96. package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts +4 -0
  97. package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts.map +1 -0
  98. package/dist/client/billing/renewalAttach/internal/preflight/output.js +25 -0
  99. package/dist/client/billing/renewalAttach/internal/preflight/output.js.map +1 -0
  100. package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts +16 -0
  101. package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts.map +1 -0
  102. package/dist/client/billing/renewalAttach/internal/preflight/record.js +93 -0
  103. package/dist/client/billing/renewalAttach/internal/preflight/record.js.map +1 -0
  104. package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts +7 -0
  105. package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts.map +1 -0
  106. package/dist/client/billing/renewalAttach/internal/preflight/relations.js +153 -0
  107. package/dist/client/billing/renewalAttach/internal/preflight/relations.js.map +1 -0
  108. package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts +22 -0
  109. package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts.map +1 -0
  110. package/dist/client/billing/renewalAttach/internal/recovery/material.js +221 -0
  111. package/dist/client/billing/renewalAttach/internal/recovery/material.js.map +1 -0
  112. package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts +8 -0
  113. package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts.map +1 -0
  114. package/dist/client/billing/renewalAttach/internal/recovery/output.js +101 -0
  115. package/dist/client/billing/renewalAttach/internal/recovery/output.js.map +1 -0
  116. package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts +12 -0
  117. package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts.map +1 -0
  118. package/dist/client/billing/renewalAttach/internal/recovery/record.js +186 -0
  119. package/dist/client/billing/renewalAttach/internal/recovery/record.js.map +1 -0
  120. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +5 -0
  121. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -0
  122. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +498 -0
  123. package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -0
  124. package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts +21 -0
  125. package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts.map +1 -0
  126. package/dist/client/billing/renewalAttach/internal/recovery/relation.js +119 -0
  127. package/dist/client/billing/renewalAttach/internal/recovery/relation.js.map +1 -0
  128. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
  129. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
  130. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  131. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  132. package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
  133. package/dist/component/payoutRelease/queries.d.ts +2 -2
  134. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  135. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  136. package/dist/component/usage/allowance.fixtures.d.ts +16 -16
  137. package/docs/renewal-context-reads.md +26 -8
  138. package/docs/renewal-material-observation.md +37 -0
  139. package/docs/renewal-phase-assembly.md +68 -0
  140. package/docs/renewal-raw-acquisition.md +19 -5
  141. package/package.json +1 -1
  142. package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +304 -0
  143. package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +2 -160
  144. package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +15 -3
  145. package/src/client/billing/renewalAttach/internal/configure/actor.ts +575 -0
  146. package/src/client/billing/renewalAttach/internal/configure/capture.ts +117 -0
  147. package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +32 -0
  148. package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +510 -0
  149. package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +207 -0
  150. package/src/client/billing/renewalAttach/internal/configure/output.ts +372 -0
  151. package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +148 -0
  152. package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +173 -0
  153. package/src/client/billing/renewalAttach/internal/configure/replay.ts +13 -0
  154. package/src/client/billing/renewalAttach/internal/configure/request.ts +312 -0
  155. package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +507 -0
  156. package/src/client/billing/renewalAttach/internal/configure/transport.ts +348 -0
  157. package/src/client/billing/renewalAttach/internal/observation/actor.ts +444 -0
  158. package/src/client/billing/renewalAttach/internal/observation/capture.ts +250 -0
  159. package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -0
  160. package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +60 -0
  161. package/src/client/billing/renewalAttach/internal/observation/profile.ts +264 -0
  162. package/src/client/billing/renewalAttach/internal/observation/record.ts +408 -0
  163. package/src/client/billing/renewalAttach/internal/observation/types.ts +102 -0
  164. package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +285 -0
  165. package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +69 -0
  166. package/src/client/billing/renewalAttach/internal/operations/fixedTransport.ts +574 -0
  167. package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +34 -0
  168. package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +535 -0
  169. package/src/client/billing/renewalAttach/internal/operations/ownedAwait.ts +63 -0
  170. package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +61 -0
  171. package/src/client/billing/renewalAttach/internal/operations/providerFailure.ts +66 -0
  172. package/src/client/billing/renewalAttach/internal/operations/sourceOperations.ts +50 -0
  173. package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +116 -0
  174. package/src/client/billing/renewalAttach/internal/operations/types.ts +223 -0
  175. package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +285 -0
  176. package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts +258 -0
  177. package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +139 -0
  178. package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +257 -0
  179. package/src/client/billing/renewalAttach/internal/preflight/output.ts +42 -0
  180. package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +82 -0
  181. package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +354 -0
  182. package/src/client/billing/renewalAttach/internal/preflight/record.ts +127 -0
  183. package/src/client/billing/renewalAttach/internal/preflight/relations.ts +209 -0
  184. package/src/client/billing/renewalAttach/internal/recovery/material.ts +311 -0
  185. package/src/client/billing/renewalAttach/internal/recovery/output.ts +136 -0
  186. package/src/client/billing/renewalAttach/internal/recovery/record.ts +230 -0
  187. package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +463 -0
  188. package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +599 -0
  189. package/src/client/billing/renewalAttach/internal/recovery/relation.ts +175 -0
  190. package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +217 -0
  191. package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +226 -0
  192. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +556 -0
  193. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +180 -0
  194. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +144 -0
  195. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +122 -0
  196. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +330 -0
  197. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +139 -0
  198. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +513 -0
  199. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +344 -0
  200. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +278 -0
  201. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +17 -0
  202. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +533 -0
  203. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
  204. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +314 -0
  205. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +463 -0
  206. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
  207. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +600 -0
  208. package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -0
  209. package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +192 -0
  210. package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +197 -0
  211. package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +269 -0
  212. package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +262 -0
  213. package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +319 -0
  214. package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +94 -0
  215. package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +16 -0
  216. package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +21 -0
@@ -0,0 +1,27 @@
1
+ import { types } from "node:util";
2
+ import { closed, need } from "../operations/types.js";
3
+ /** DATA-only validation, never a Source capability or Owner selector. */
4
+ export function checkOwnerResult(value) {
5
+ const x = closed(value, ["wallMs", "ns", "nowSeconds", "retired"]);
6
+ need(typeof x.wallMs === "number" &&
7
+ Number.isSafeInteger(x.wallMs) &&
8
+ x.wallMs >= 0 &&
9
+ typeof x.ns === "bigint" &&
10
+ x.ns >= 0n &&
11
+ x.ns <= 18446744073709551615n &&
12
+ typeof x.nowSeconds === "number" &&
13
+ Number.isSafeInteger(x.nowSeconds) &&
14
+ x.nowSeconds === Math.floor(x.wallMs / 1000) &&
15
+ x.retired === false);
16
+ }
17
+ /** Only a raw DATA view after object guards; no pruning, schema or authority admission. */
18
+ export function observationData(value) {
19
+ need(value !== null &&
20
+ typeof value === "object" &&
21
+ !types.isProxy(value) &&
22
+ !Array.isArray(value));
23
+ const prototype = Object.getPrototypeOf(value);
24
+ need(prototype === Object.prototype || prototype === null);
25
+ return value;
26
+ }
27
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/observation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAyEtD,yEAAyE;AACzE,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IACnE,IAAI,CACF,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ;QAC1B,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B,CAAC,CAAC,MAAM,IAAI,CAAC;QACb,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ;QACxB,CAAC,CAAC,EAAE,IAAI,EAAE;QACV,CAAC,CAAC,EAAE,IAAI,qBAAqB;QAC7B,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ;QAChC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC;QAClC,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;QAC5C,CAAC,CAAC,OAAO,KAAK,KAAK,CACtB,CAAC;AACJ,CAAC;AACD,2FAA2F;AAC3F,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,CACF,KAAK,KAAK,IAAI;QACZ,OAAO,KAAK,KAAK,QAAQ;QACzB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CACxB,CAAC;IACF,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC,CAAC;IAC3D,OAAO,KAAa,CAAC;AACvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare const API = "2026-09-30.endive";
2
+ /** Separate fixed readonly operation pair. No POST or caller binding factory exists. */
3
+ export declare function createConfigureOwnedReadTransport(): Readonly<{
4
+ transport: Readonly<{
5
+ readTransport: Readonly<{
6
+ rawRequest(methodName: "GET", path: string, body: undefined, options: Readonly<{
7
+ apiVersion: typeof API;
8
+ maxNetworkRetries: 0;
9
+ }>): Promise<unknown>;
10
+ }>;
11
+ }>;
12
+ capability: Readonly<{
13
+ assertSourceOperationBinding(actualOperation: unknown, expectedPlan: unknown, actualDelegate: unknown, originalMethod: unknown): boolean;
14
+ reserveAcquisition(): boolean;
15
+ }>;
16
+ }>;
17
+ export {};
18
+ //# sourceMappingURL=configureReadTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configureReadTransport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,GAAG,sBAAsB,CAAC;AAoJhC,wFAAwF;AACxF,wBAAgB,iCAAiC;;;mCAkF/B,KAAK,QACX,MAAM,QACN,SAAS,WACN,QAAQ,CAAC;gBAAE,UAAU,EAAE,OAAO,GAAG,CAAC;gBAAC,iBAAiB,EAAE,CAAC,CAAA;aAAE,CAAC,GAClE,OAAO,CAAC,OAAO,CAAC;;;;sDAlDA,OAAO,gBACV,OAAO,kBACL,OAAO,kBACP,OAAO;;;GAyF5B"}
@@ -0,0 +1,229 @@
1
+ import { types } from "node:util";
2
+ import { OWNER } from "../originalOwner.js";
3
+ import { closed, need, stop } from "./types.js";
4
+ import { requiredJSONSnapshot } from "../material/requiredJson.js";
5
+ import { resourceId } from "../../../renewalAggregate/shared.js";
6
+ import { loadConfigureOwnedReadTransportSource } from "./sourceOperations.js";
7
+ const API = "2026-09-30.endive";
8
+ const query = "?" +
9
+ new URLSearchParams(["discounts", "items.data.discounts", "items.data.price"].map((value, index) => ["expand[" + index + "]", value]));
10
+ const plural = Object.freeze({
11
+ subscription: "subscriptions",
12
+ price: "prices",
13
+ customer: "customers",
14
+ coupon: "coupons",
15
+ schedule: "subscription_schedules",
16
+ });
17
+ const prefix = Object.freeze({
18
+ subscription: "sub",
19
+ price: "price",
20
+ customer: "cus",
21
+ schedule: "sub_sched",
22
+ });
23
+ function selectedID(resource, path) {
24
+ const root = "/v1/" + plural[resource] + "/";
25
+ need(path.startsWith(root));
26
+ const encoded = path.slice(root.length, resource === "subscription" ? -query.length : undefined);
27
+ if (resource === "subscription")
28
+ need(path.endsWith(query));
29
+ if (resource !== "coupon") {
30
+ const parsed = resourceId(prefix[resource]).safeParse(encoded);
31
+ need(parsed.success);
32
+ const id = parsed.data;
33
+ need(encodeURIComponent(id) === encoded);
34
+ return id;
35
+ }
36
+ let id;
37
+ try {
38
+ id = decodeURIComponent(encoded);
39
+ }
40
+ catch {
41
+ return stop();
42
+ }
43
+ need(id.length >= 1 &&
44
+ id.length <= 255 &&
45
+ /\S/.test(id) &&
46
+ id !== "." &&
47
+ id !== ".." &&
48
+ encodeURIComponent(id) === encoded);
49
+ return id;
50
+ }
51
+ /** Fixed DATA profile only. Undefined bodies remain explicit, never JSON-compared. */
52
+ function capturePlan(raw) {
53
+ need(!types.isProxy(raw) && Array.isArray(raw));
54
+ need(Object.getPrototypeOf(raw) === Array.prototype);
55
+ const length = Object.getOwnPropertyDescriptor(raw, "length"), count = length?.value;
56
+ need(length &&
57
+ "value" in length &&
58
+ typeof count === "number" &&
59
+ Number.isSafeInteger(count) &&
60
+ count >= 4 &&
61
+ count <= 44);
62
+ const keys = Reflect.ownKeys(raw);
63
+ need(keys.length === count + 1 && keys.every((key) => typeof key === "string"));
64
+ const rows = [], coupons = new Set();
65
+ for (let index = 0; index < count; index++) {
66
+ const descriptor = Object.getOwnPropertyDescriptor(raw, String(index));
67
+ need(descriptor && descriptor.enumerable && "value" in descriptor);
68
+ const row = closed(descriptor.value, [
69
+ "resource",
70
+ "ordinal",
71
+ "method",
72
+ "path",
73
+ "body",
74
+ "options",
75
+ ]), options = closed(row.options, ["apiVersion", "maxNetworkRetries"]);
76
+ const resource = index === 0
77
+ ? "subscription"
78
+ : index === 1
79
+ ? "price"
80
+ : index === 2
81
+ ? "customer"
82
+ : index === count - 1
83
+ ? "schedule"
84
+ : "coupon";
85
+ need(row.resource === resource &&
86
+ row.ordinal === index + 1 &&
87
+ row.method === "GET" &&
88
+ typeof row.path === "string" &&
89
+ row.body === undefined &&
90
+ options.apiVersion === API &&
91
+ options.maxNetworkRetries === 0);
92
+ const id = selectedID(resource, row.path);
93
+ requiredJSONSnapshot(row.path);
94
+ if (resource === "coupon") {
95
+ need(!coupons.has(id));
96
+ coupons.add(id);
97
+ }
98
+ rows.push(Object.freeze({
99
+ resource,
100
+ ordinal: index + 1,
101
+ method: "GET",
102
+ path: row.path,
103
+ body: undefined,
104
+ id,
105
+ options: Object.freeze({ apiVersion: API, maxNetworkRetries: 0 }),
106
+ }));
107
+ }
108
+ need(coupons.size <= 40);
109
+ return Object.freeze(rows);
110
+ }
111
+ function sourceMethod(delegate) {
112
+ need(delegate !== null &&
113
+ typeof delegate === "object" &&
114
+ !types.isProxy(delegate));
115
+ const value = closed(delegate, ["rawRequest"]).rawRequest;
116
+ need(typeof value === "function" && !types.isProxy(value));
117
+ return value;
118
+ }
119
+ /** Separate fixed readonly operation pair. No POST or caller binding factory exists. */
120
+ export function createConfigureOwnedReadTransport() {
121
+ need(arguments.length === 0);
122
+ OWNER.check();
123
+ const source = loadConfigureOwnedReadTransportSource();
124
+ OWNER.check();
125
+ const frame = closed(source, ["owner", "operation", "readPlan", "delegate"]);
126
+ need(frame.owner === OWNER);
127
+ const operation = frame.operation, delegate = frame.delegate, readPlanReference = frame.readPlan, plan = capturePlan(readPlanReference), method = sourceMethod(delegate), generation = Object.freeze({});
128
+ let phase = "unused", index = 0, closedOwner = false, checking = false;
129
+ let pending = null;
130
+ function gate() {
131
+ if (closedOwner || checking) {
132
+ closedOwner = true;
133
+ stop();
134
+ }
135
+ checking = true;
136
+ try {
137
+ OWNER.check();
138
+ if (closedOwner)
139
+ stop();
140
+ }
141
+ catch {
142
+ closedOwner = true;
143
+ stop();
144
+ }
145
+ finally {
146
+ checking = false;
147
+ }
148
+ }
149
+ const capability = Object.freeze({
150
+ assertSourceOperationBinding(actualOperation, expectedPlan, actualDelegate, originalMethod) {
151
+ need(arguments.length === 4);
152
+ gate();
153
+ if (phase !== "unused" ||
154
+ operation !== actualOperation ||
155
+ delegate !== actualDelegate ||
156
+ method !== originalMethod) {
157
+ phase = "invalid";
158
+ return false;
159
+ }
160
+ const expected = capturePlan(expectedPlan);
161
+ const matches = expected.length === plan.length &&
162
+ expected.every((row, ordinal) => {
163
+ const fixed = plan[ordinal];
164
+ return (row.resource === fixed.resource &&
165
+ row.ordinal === fixed.ordinal &&
166
+ row.method === fixed.method &&
167
+ row.path === fixed.path &&
168
+ row.body === fixed.body &&
169
+ row.id === fixed.id &&
170
+ row.options.apiVersion === fixed.options.apiVersion &&
171
+ row.options.maxNetworkRetries === fixed.options.maxNetworkRetries);
172
+ });
173
+ gate();
174
+ phase = matches ? "bound" : "invalid";
175
+ return matches;
176
+ },
177
+ reserveAcquisition() {
178
+ need(arguments.length === 0);
179
+ gate();
180
+ if (phase !== "bound" || index !== 0 || pending !== null)
181
+ return false;
182
+ phase = "reserved";
183
+ return true;
184
+ },
185
+ });
186
+ const readTransport = Object.freeze({
187
+ async rawRequest(methodName, path, body, options) {
188
+ need(arguments.length === 4);
189
+ gate();
190
+ need(phase === "reserved" && pending === null && index < plan.length);
191
+ const row = plan[index], actualOptions = closed(options, ["apiVersion", "maxNetworkRetries"]);
192
+ need(methodName === row.method &&
193
+ path === row.path &&
194
+ body === row.body &&
195
+ actualOptions.apiVersion === API &&
196
+ actualOptions.maxNetworkRetries === 0);
197
+ const attempt = Object.freeze({ generation, ordinal: index + 1 });
198
+ need(attempt.ordinal <= 44);
199
+ pending = attempt;
200
+ let reply;
201
+ try {
202
+ reply = await Reflect.apply(method, delegate, [
203
+ methodName,
204
+ path,
205
+ body,
206
+ row.options,
207
+ ]);
208
+ }
209
+ catch {
210
+ gate();
211
+ phase = "failed";
212
+ pending = null;
213
+ return stop();
214
+ }
215
+ gate();
216
+ need(pending === attempt && attempt.generation === generation);
217
+ pending = null;
218
+ index++;
219
+ if (index === plan.length)
220
+ phase = "readclosed";
221
+ return reply;
222
+ },
223
+ });
224
+ return Object.freeze({
225
+ transport: Object.freeze({ readTransport }),
226
+ capability,
227
+ });
228
+ }
229
+ //# sourceMappingURL=configureReadTransport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configureReadTransport.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAqB,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAE9E,MAAM,GAAG,GAAG,mBAAmB,CAAC;AAWhC,MAAM,KAAK,GACT,GAAG;IACH,IAAI,eAAe,CACjB,CAAC,WAAW,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAC3D,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,GAAG,EAAE,KAAK,CAAC,CACnD,CACF,CAAC;AACJ,MAAM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jB,OAAO,GAAG,IAAI,CAAC;gBACf,OAAO,IAAI,EAAE,CAAC;YAChB,CAAC;YACD,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,OAAO,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;YAC/D,OAAO,GAAG,IAAI,CAAC;YACf,KAAK,EAAE,CAAC;YACR,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM;gBAAE,KAAK,GAAG,YAAY,CAAC;YAChD,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;QAC3C,UAAU;KACX,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,163 @@
1
+ import { type Diagnostics } from "./providerFailure.js";
2
+ export type PostDisposition = "NOT_STARTED" | "PENDING" | "REJECTED" | "FULFILLED_UNVERIFIED" | "FULFILLED_SAFE";
3
+ export type Quarantine = Readonly<object>;
4
+ export declare function createOwnedTransportWithAttemptCapability(): Readonly<{
5
+ transport: Readonly<{
6
+ readTransport: Readonly<{
7
+ rawRequest: (method: unknown, path: unknown, body: unknown, options: unknown) => Promise<unknown>;
8
+ }>;
9
+ postAttach: (...args: unknown[]) => Promise<Readonly<{
10
+ outcome: "not_started";
11
+ reason: string;
12
+ }> | Readonly<{
13
+ readonly outcome: "provider_rejected";
14
+ readonly phase: "post";
15
+ readonly ordinal: number;
16
+ readonly diagnostics: Readonly<{}>;
17
+ }> | Readonly<{
18
+ outcome: "fulfilled_safe";
19
+ body: unknown;
20
+ statusCode: number;
21
+ }> | Readonly<{
22
+ outcome: "fulfilled_unverified";
23
+ }>>;
24
+ takeReadRejection(...args: unknown[]): Readonly<{
25
+ phase: "read";
26
+ ordinal: number;
27
+ diagnostics: Diagnostics;
28
+ }> | null;
29
+ postDisposition(...args: unknown[]): PostDisposition;
30
+ }>;
31
+ capability: Readonly<{
32
+ assertSourceOperationBinding(operation: unknown, request: unknown, readPlan: unknown, delegate: unknown): boolean;
33
+ takeFulfilledQuarantine(...args: unknown[]): object | null;
34
+ assertVirginAcquisition(...args: unknown[]): boolean;
35
+ consumeReadCatch(...args: unknown[]): Readonly<{
36
+ phase: "read";
37
+ ordinal: number;
38
+ diagnostics: Readonly<{
39
+ statusCode?: number;
40
+ code?: string;
41
+ requestId?: string;
42
+ type?: string;
43
+ }>;
44
+ }> | null;
45
+ consumePostCatch(actualReply: unknown): Readonly<{
46
+ phase: "post";
47
+ ordinal: number;
48
+ diagnostics: Readonly<{
49
+ statusCode?: number;
50
+ code?: string;
51
+ requestId?: string;
52
+ type?: string;
53
+ }>;
54
+ }> | null;
55
+ }>;
56
+ }>;
57
+ export declare function createInitialOwnedTransportWithAttemptCapability(): Readonly<{
58
+ transport: Readonly<{
59
+ readTransport: Readonly<{
60
+ rawRequest: (method: unknown, path: unknown, body: unknown, options: unknown) => Promise<unknown>;
61
+ }>;
62
+ postAttach: (...args: unknown[]) => Promise<Readonly<{
63
+ outcome: "not_started";
64
+ reason: string;
65
+ }> | Readonly<{
66
+ readonly outcome: "provider_rejected";
67
+ readonly phase: "post";
68
+ readonly ordinal: number;
69
+ readonly diagnostics: Readonly<{}>;
70
+ }> | Readonly<{
71
+ outcome: "fulfilled_safe";
72
+ body: unknown;
73
+ statusCode: number;
74
+ }> | Readonly<{
75
+ outcome: "fulfilled_unverified";
76
+ }>>;
77
+ takeReadRejection(...args: unknown[]): Readonly<{
78
+ phase: "read";
79
+ ordinal: number;
80
+ diagnostics: Diagnostics;
81
+ }> | null;
82
+ postDisposition(...args: unknown[]): PostDisposition;
83
+ }>;
84
+ capability: Readonly<{
85
+ assertSourceOperationBinding(operation: unknown, request: unknown, readPlan: unknown, delegate: unknown): boolean;
86
+ takeFulfilledQuarantine(...args: unknown[]): object | null;
87
+ assertVirginAcquisition(...args: unknown[]): boolean;
88
+ consumeReadCatch(...args: unknown[]): Readonly<{
89
+ phase: "read";
90
+ ordinal: number;
91
+ diagnostics: Readonly<{
92
+ statusCode?: number;
93
+ code?: string;
94
+ requestId?: string;
95
+ type?: string;
96
+ }>;
97
+ }> | null;
98
+ consumePostCatch(actualReply: unknown): Readonly<{
99
+ phase: "post";
100
+ ordinal: number;
101
+ diagnostics: Readonly<{
102
+ statusCode?: number;
103
+ code?: string;
104
+ requestId?: string;
105
+ type?: string;
106
+ }>;
107
+ }> | null;
108
+ }>;
109
+ }>;
110
+ export declare function createRecoveryOwnedTransportWithAttemptCapability(): Readonly<{
111
+ transport: Readonly<{
112
+ readTransport: Readonly<{
113
+ rawRequest: (method: unknown, path: unknown, body: unknown, options: unknown) => Promise<unknown>;
114
+ }>;
115
+ postAttach: (...args: unknown[]) => Promise<Readonly<{
116
+ outcome: "not_started";
117
+ reason: string;
118
+ }> | Readonly<{
119
+ readonly outcome: "provider_rejected";
120
+ readonly phase: "post";
121
+ readonly ordinal: number;
122
+ readonly diagnostics: Readonly<{}>;
123
+ }> | Readonly<{
124
+ outcome: "fulfilled_safe";
125
+ body: unknown;
126
+ statusCode: number;
127
+ }> | Readonly<{
128
+ outcome: "fulfilled_unverified";
129
+ }>>;
130
+ takeReadRejection(...args: unknown[]): Readonly<{
131
+ phase: "read";
132
+ ordinal: number;
133
+ diagnostics: Diagnostics;
134
+ }> | null;
135
+ postDisposition(...args: unknown[]): PostDisposition;
136
+ }>;
137
+ capability: Readonly<{
138
+ assertSourceOperationBinding(operation: unknown, request: unknown, readPlan: unknown, delegate: unknown): boolean;
139
+ takeFulfilledQuarantine(...args: unknown[]): object | null;
140
+ assertVirginAcquisition(...args: unknown[]): boolean;
141
+ consumeReadCatch(...args: unknown[]): Readonly<{
142
+ phase: "read";
143
+ ordinal: number;
144
+ diagnostics: Readonly<{
145
+ statusCode?: number;
146
+ code?: string;
147
+ requestId?: string;
148
+ type?: string;
149
+ }>;
150
+ }> | null;
151
+ consumePostCatch(actualReply: unknown): Readonly<{
152
+ phase: "post";
153
+ ordinal: number;
154
+ diagnostics: Readonly<{
155
+ statusCode?: number;
156
+ code?: string;
157
+ requestId?: string;
158
+ type?: string;
159
+ }>;
160
+ }> | null;
161
+ }>;
162
+ }>;
163
+ //# sourceMappingURL=fixedTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixedTransport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/fixedTransport.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAoE9B,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,SAAS,GACT,UAAU,GACV,sBAAsB,GACtB,gBAAgB,CAAC;AAUrB,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAwb1C,wBAAgB,yCAAyC;;;iCAtT7C,OAAO,QACT,OAAO,QACP,OAAO,WACJ,OAAO,KACf,OAAO,CAAC,OAAO,CAAC;;8BAsDgB,OAAO,EAAE;qBArLnB,aAAa;;;8BAkOrB,mBAAmB;4BACrB,MAAM;;;;qBAmCN,gBAAgB;;;;qBAOd,sBAAsB;;mCASV,OAAO,EAAE;mBA3R/B,MAAM;qBACJ,MAAM;yBACF,WAAW;;iCAsSG,OAAO,EAAE,GAAG,eAAe;;;gDAOvC,OAAO,WACT,OAAO,YACN,OAAO,YACP,OAAO;yCA8Bc,OAAO,EAAE;yCAiBT,OAAO,EAAE;kCAyBhB,OAAO,EAAE;mBAqBxB,MAAM;;;;;;;;;sCAKa,OAAO;mBAyB1B,MAAM;;;;;;;;;;GAepB;AAoBD,wBAAgB,gDAAgD;;;iCAhVpD,OAAO,QACT,OAAO,QACP,OAAO,WACJ,OAAO,KACf,OAAO,CAAC,OAAO,CAAC;;8BAsDgB,OAAO,EAAE;qBArLnB,aAAa;;;8BAkOrB,mBAAmB;4BACrB,MAAM;;;;qBAmCN,gBAAgB;;;;qBAOd,sBAAsB;;mCASV,OAAO,EAAE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