@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,20 @@
1
+ /** Fixed internal operation associations. No production producer or class is bound. */
2
+ export declare const COMPILED_INITIAL_ENTRIES: readonly unknown[];
3
+ export declare const COMPILED_RECOVERY_ENTRIES: readonly unknown[];
4
+ export declare const COMPILED_PREFLIGHT_ENTRIES: readonly unknown[];
5
+ export declare const COMPILED_CONFIGURE_WRITE_ENTRIES: readonly unknown[];
6
+ export declare const ORIGINAL_ORIGIN_ASSOCIATION: object | null;
7
+ export declare function loadFixedInitialOperation(): unknown;
8
+ export declare function loadFixedExplicitRecoveryOperation(): unknown;
9
+ export declare function loadOwnedTransportSource(): unknown;
10
+ export declare function loadOwnedConfigureOperation(): unknown;
11
+ export declare function loadInitialOwnedTransportSource(): unknown;
12
+ export declare function loadRecoveryOwnedTransportSource(): unknown;
13
+ export declare function loadConfigureOwnedReadTransportSource(): unknown;
14
+ export declare function loadFixedConfigureWriteOperation(): unknown;
15
+ export declare function loadFixedConfigureReplayOperation(): unknown;
16
+ export declare function loadConfigureWriteTransportSource(): unknown;
17
+ export declare function loadConfigureReplayTransportSource(): unknown;
18
+ export declare const COMPILED_OBSERVATION_ENTRIES: readonly unknown[];
19
+ export declare function loadFixedObservationOperation(): unknown;
20
+ //# sourceMappingURL=sourceOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceOperations.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/sourceOperations.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,EAAE,SAAS,OAAO,EAAsB,CAAC;AAC9E,eAAO,MAAM,yBAAyB,EAAE,SAAS,OAAO,EAAsB,CAAC;AAC/E,eAAO,MAAM,0BAA0B,EAAE,SAAS,OAAO,EAAsB,CAAC;AAChF,eAAO,MAAM,gCAAgC,EAAE,SAAS,OAAO,EAC5C,CAAC;AACpB,eAAO,MAAM,2BAA2B,EAAE,MAAM,GAAG,IAAW,CAAC;AAC/D,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD;AACD,wBAAgB,kCAAkC,IAAI,OAAO,CAE5D;AACD,wBAAgB,wBAAwB,IAAI,OAAO,CAElD;AACD,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAED,wBAAgB,+BAA+B,IAAI,OAAO,CAEzD;AACD,wBAAgB,gCAAgC,IAAI,OAAO,CAE1D;AAED,wBAAgB,qCAAqC,IAAI,OAAO,CAE/D;AAED,wBAAgB,gCAAgC,IAAI,OAAO,CAE1D;AACD,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D;AACD,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D;AACD,wBAAgB,kCAAkC,IAAI,OAAO,CAE5D;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,OAAO,EAE1D,CAAC;AACF,wBAAgB,6BAA6B,IAAI,OAAO,CAEvD"}
@@ -0,0 +1,44 @@
1
+ /** Fixed internal operation associations. No production producer or class is bound. */
2
+ export const COMPILED_INITIAL_ENTRIES = Object.freeze([]);
3
+ export const COMPILED_RECOVERY_ENTRIES = Object.freeze([]);
4
+ export const COMPILED_PREFLIGHT_ENTRIES = Object.freeze([]);
5
+ export const COMPILED_CONFIGURE_WRITE_ENTRIES = Object.freeze([]);
6
+ export const ORIGINAL_ORIGIN_ASSOCIATION = null;
7
+ export function loadFixedInitialOperation() {
8
+ throw Error("INITIAL_SOURCE_UNBOUND");
9
+ }
10
+ export function loadFixedExplicitRecoveryOperation() {
11
+ throw Error("RECOVERY_SOURCE_UNBOUND");
12
+ }
13
+ export function loadOwnedTransportSource() {
14
+ throw Error("OWNED_TRANSPORT_SOURCE_UNBOUND");
15
+ }
16
+ export function loadOwnedConfigureOperation() {
17
+ throw Error("CONFIGURE_PREFLIGHT_SOURCE_UNBOUND");
18
+ }
19
+ export function loadInitialOwnedTransportSource() {
20
+ throw Error("INITIAL_TRANSPORT_SOURCE_UNBOUND");
21
+ }
22
+ export function loadRecoveryOwnedTransportSource() {
23
+ throw Error("RECOVERY_TRANSPORT_SOURCE_UNBOUND");
24
+ }
25
+ export function loadConfigureOwnedReadTransportSource() {
26
+ throw Error("CONFIGURE_READ_TRANSPORT_SOURCE_UNBOUND");
27
+ }
28
+ export function loadFixedConfigureWriteOperation() {
29
+ throw Error("CONFIGURE_WRITE_SOURCE_UNBOUND");
30
+ }
31
+ export function loadFixedConfigureReplayOperation() {
32
+ throw Error("CONFIGURE_REPLAY_SOURCE_UNBOUND");
33
+ }
34
+ export function loadConfigureWriteTransportSource() {
35
+ throw Error("CONFIGURE_WRITE_TRANSPORT_SOURCE_UNBOUND");
36
+ }
37
+ export function loadConfigureReplayTransportSource() {
38
+ throw Error("CONFIGURE_REPLAY_TRANSPORT_SOURCE_UNBOUND");
39
+ }
40
+ export const COMPILED_OBSERVATION_ENTRIES = Object.freeze([]);
41
+ export function loadFixedObservationOperation() {
42
+ throw Error("OBSERVATION_SOURCE_UNBOUND");
43
+ }
44
+ //# sourceMappingURL=sourceOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceOperations.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/sourceOperations.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAuB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAuB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAuB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,gCAAgC,GAC3C,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACpB,MAAM,CAAC,MAAM,2BAA2B,GAAkB,IAAI,CAAC;AAC/D,MAAM,UAAU,yBAAyB;IACvC,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;AACxC,CAAC;AACD,MAAM,UAAU,kCAAkC;IAChD,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACzC,CAAC;AACD,MAAM,UAAU,wBAAwB;IACtC,MAAM,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAChD,CAAC;AACD,MAAM,UAAU,2BAA2B;IACzC,MAAM,KAAK,CAAC,oCAAoC,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,+BAA+B;IAC7C,MAAM,KAAK,CAAC,kCAAkC,CAAC,CAAC;AAClD,CAAC;AACD,MAAM,UAAU,gCAAgC;IAC9C,MAAM,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,qCAAqC;IACnD,MAAM,KAAK,CAAC,yCAAyC,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,MAAM,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAChD,CAAC;AACD,MAAM,UAAU,iCAAiC;IAC/C,MAAM,KAAK,CAAC,iCAAiC,CAAC,CAAC;AACjD,CAAC;AACD,MAAM,UAAU,iCAAiC;IAC/C,MAAM,KAAK,CAAC,0CAA0C,CAAC,CAAC;AAC1D,CAAC;AACD,MAAM,UAAU,kCAAkC;IAChD,MAAM,KAAK,CAAC,2CAA2C,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAuB,MAAM,CAAC,MAAM,CAC3E,EAAE,CACH,CAAC;AACF,MAAM,UAAU,6BAA6B;IAC3C,MAAM,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { prepareRenewalScheduleAttachmentV2 } from "../../../renewalV2/index.js";
2
+ export type AttachRequest = Awaited<ReturnType<typeof prepareRenewalScheduleAttachmentV2>>;
3
+ export type ReadResource = "subscription" | "price" | "customer" | "coupon";
4
+ export type ReadOptions = Readonly<{
5
+ apiVersion: string;
6
+ maxNetworkRetries: 0;
7
+ }>;
8
+ export type ReadRow = Readonly<{
9
+ resource: ReadResource;
10
+ ordinal: number;
11
+ method: "GET";
12
+ path: string;
13
+ body: undefined;
14
+ options: ReadOptions;
15
+ id: string;
16
+ }>;
17
+ export type SourceMethod = (...args: unknown[]) => unknown;
18
+ export declare const stop: () => never;
19
+ export declare function need(value: unknown): asserts value;
20
+ export declare function closed(raw: unknown, keys: readonly string[]): Record<string, unknown>;
21
+ export declare function freezeJSON<T>(value: T): T;
22
+ /** Validates DATA only; never selects Owner, delegate, invocation or capability. */
23
+ export declare function captureRequestAndReads(requestRaw: unknown, readPlanRaw: unknown): Readonly<{
24
+ request: import("../../../renewalV2/index.js").PreparedRenewalScheduleAttachmentV2;
25
+ plan: readonly Readonly<{
26
+ resource: ReadResource;
27
+ ordinal: number;
28
+ method: "GET";
29
+ path: string;
30
+ body: undefined;
31
+ options: ReadOptions;
32
+ id: string;
33
+ }>[];
34
+ }>;
35
+ /** Actor continuation surface only; this type grants no Source capability. */
36
+ export type FailureControl = {
37
+ forward(error: unknown): object | null;
38
+ consume(error: unknown): Error | null;
39
+ consumePost(error: unknown): Error | null;
40
+ takePostQuarantine(): object | null;
41
+ };
42
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,UAAU,CAAC,OAAO,kCAAkC,CAAC,CACtD,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,CAAC,CAAC;CACtB,CAAC,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC;IAC7B,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,WAAW,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAC3D,eAAO,MAAM,IAAI,QAAO,KAEvB,CAAC;AACF,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAElD;AAED,wBAAgB,MAAM,CACpB,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,SAAS,MAAM,EAAE,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAMzC;AAgBD,oFAAoF;AACpF,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,OAAO,EACnB,WAAW,EAAE,OAAO;;;kBAnEV,YAAY;iBACb,MAAM;gBACP,KAAK;cACP,MAAM;cACN,SAAS;iBACN,WAAW;YAChB,MAAM;;GAmMX;AAED,8EAA8E;AAC9E,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;IAC1C,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC,CAAC"}
@@ -0,0 +1,158 @@
1
+ import { types } from "node:util";
2
+ import { requiredJSONSnapshot } from "../material/requiredJson.js";
3
+ export const stop = () => {
4
+ throw Error("OWNED_TRANSPORT_STOP");
5
+ };
6
+ export function need(value) {
7
+ if (!value)
8
+ stop();
9
+ }
10
+ export function closed(raw, keys) {
11
+ need(raw &&
12
+ typeof raw === "object" &&
13
+ !types.isProxy(raw) &&
14
+ !Array.isArray(raw));
15
+ const prototype = Object.getPrototypeOf(raw);
16
+ need(prototype === Object.prototype || prototype === null);
17
+ const names = Reflect.ownKeys(raw);
18
+ need(names.length === keys.length && keys.every((key) => names.includes(key)));
19
+ return Object.fromEntries(names.map((key) => {
20
+ need(typeof key === "string");
21
+ const d = Object.getOwnPropertyDescriptor(raw, key);
22
+ need(d && d.enumerable && "value" in d);
23
+ return [key, d.value];
24
+ }));
25
+ }
26
+ export function freezeJSON(value) {
27
+ if (value && typeof value === "object") {
28
+ for (const child of Object.values(value))
29
+ freezeJSON(child);
30
+ Object.freeze(value);
31
+ }
32
+ return value;
33
+ }
34
+ const API = "2026-09-30.endive";
35
+ const resourceID = (value, prefix) => typeof value === "string" &&
36
+ new RegExp("^" + prefix + "_[A-Za-z0-9_]+$").test(value) &&
37
+ value.length <= 255;
38
+ const query = String(new URLSearchParams(["discounts", "items.data.discounts", "items.data.price"].map((v, i) => [
39
+ "expand[" + i + "]",
40
+ v,
41
+ ])));
42
+ /** Validates DATA only; never selects Owner, delegate, invocation or capability. */
43
+ export function captureRequestAndReads(requestRaw, readPlanRaw) {
44
+ const r = closed(requestRaw, [
45
+ "version",
46
+ "stage",
47
+ "scope",
48
+ "apiVersion",
49
+ "method",
50
+ "path",
51
+ "payload",
52
+ "key",
53
+ "firstDispatchedAt",
54
+ "logicalBinding",
55
+ "requestIdentity",
56
+ ]);
57
+ const payload = closed(r.payload, ["from_subscription"]), identity = closed(r.requestIdentity, ["key", "binding"]);
58
+ need(r.version === 2 &&
59
+ r.stage === "attach" &&
60
+ r.scope === "platform" &&
61
+ r.apiVersion === API &&
62
+ r.method === "POST" &&
63
+ r.path === "/v1/subscription_schedules" &&
64
+ resourceID(payload.from_subscription, "sub"));
65
+ need(typeof r.key === "string" &&
66
+ r.key.length > 0 &&
67
+ r.key.length <= 255 &&
68
+ identity.key === r.key &&
69
+ typeof r.firstDispatchedAt === "number" &&
70
+ Number.isSafeInteger(r.firstDispatchedAt) &&
71
+ r.firstDispatchedAt >= 0);
72
+ requiredJSONSnapshot(r.key);
73
+ need(typeof r.logicalBinding === "string" &&
74
+ /^renewal:v2:sha256:[0-9a-f]{64}$/.test(r.logicalBinding) &&
75
+ typeof identity.binding === "string" &&
76
+ /^renewal-attach:v2:sha256:[0-9a-f]{64}$/.test(identity.binding));
77
+ // Every field in this closed C2 view was checked above; this is not proof admission.
78
+ const request = Object.freeze({
79
+ ...r,
80
+ payload: freezeJSON(requiredJSONSnapshot(payload)),
81
+ requestIdentity: Object.freeze(identity),
82
+ });
83
+ need(Array.isArray(readPlanRaw) &&
84
+ !types.isProxy(readPlanRaw) &&
85
+ readPlanRaw.length >= 3 &&
86
+ readPlanRaw.length <= 43);
87
+ const rawPlan = readPlanRaw, plan = [], ids = new Set();
88
+ for (let i = 0; i < rawPlan.length; i++) {
89
+ const row = closed(rawPlan[i], [
90
+ "resource",
91
+ "ordinal",
92
+ "method",
93
+ "path",
94
+ "body",
95
+ "options",
96
+ ]), options = closed(row.options, ["apiVersion", "maxNetworkRetries"]);
97
+ need(row.ordinal === i + 1 &&
98
+ row.method === "GET" &&
99
+ typeof row.path === "string" &&
100
+ row.body === undefined &&
101
+ options.apiVersion === API &&
102
+ options.maxNetworkRetries === 0);
103
+ let id;
104
+ const resource = i === 0
105
+ ? "subscription"
106
+ : i === 1
107
+ ? "price"
108
+ : i === 2
109
+ ? "customer"
110
+ : "coupon";
111
+ if (i === 0) {
112
+ need(row.resource === "subscription" &&
113
+ row.path ===
114
+ "/v1/subscriptions/" + payload.from_subscription + "?" + query);
115
+ id = payload.from_subscription;
116
+ }
117
+ else if (i === 1) {
118
+ need(row.resource === "price" && row.path.startsWith("/v1/prices/"));
119
+ id = row.path.slice(11);
120
+ need(resourceID(id, "price"));
121
+ }
122
+ else if (i === 2) {
123
+ need(row.resource === "customer" && row.path.startsWith("/v1/customers/"));
124
+ id = row.path.slice(14);
125
+ need(resourceID(id, "cus"));
126
+ }
127
+ else {
128
+ need(row.resource === "coupon" && row.path.startsWith("/v1/coupons/"));
129
+ const encoded = row.path.slice(12);
130
+ try {
131
+ id = decodeURIComponent(encoded);
132
+ }
133
+ catch {
134
+ return stop();
135
+ }
136
+ need(id.length > 0 &&
137
+ id.length <= 255 &&
138
+ /\S/.test(id) &&
139
+ id !== "." &&
140
+ id !== ".." &&
141
+ encodeURIComponent(id) === encoded &&
142
+ !ids.has(id));
143
+ ids.add(id);
144
+ }
145
+ plan.push(Object.freeze({
146
+ ...row,
147
+ resource,
148
+ ordinal: i + 1,
149
+ method: "GET",
150
+ path: row.path,
151
+ body: undefined,
152
+ id,
153
+ options: Object.freeze({ apiVersion: API, maxNetworkRetries: 0 }),
154
+ }));
155
+ }
156
+ return Object.freeze({ request, plan: Object.freeze(plan) });
157
+ }
158
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/operations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAqBnE,MAAM,CAAC,MAAM,IAAI,GAAG,GAAU,EAAE;IAC9B,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,UAAU,IAAI,CAAC,KAAc;IACjC,IAAI,CAAC,KAAK;QAAE,IAAI,EAAE,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,MAAM,CACpB,GAAY,EACZ,IAAuB;IAEvB,IAAI,CACF,GAAG;QACD,OAAO,GAAG,KAAK,QAAQ;QACvB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CACtB,CAAC;IACF,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,CACF,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CACzE,CAAC;IACF,OAAO,MAAM,CAAC,WAAW,CACvB,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QAChB,IAAI,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC;QAC9B,MAAM,CAAC,GAAG,MAAM,CAAC,wBAAwB,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AAO,IAAI,EAAE,CAAC;YAChB,CAAC;YACD,IAAI,CACF,EAAE,CAAC,MAAM,GAAG,CAAC;gBACX,EAAE,CAAC,MAAM,IAAI,GAAG;gBAChB,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACb,EAAE,KAAK,GAAG;gBACV,EAAE,KAAK,IAAI;gBACX,kBAAkB,CAAC,EAAE,CAAC,KAAK,OAAO;gBAClC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,CAAC;YACF,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACd,CAAC;QACD,IAAI,CAAC,IAAI,CACP,MAAM,CAAC,MAAM,CAAC;YACZ,GAAG,GAAG;YACN,QAAQ;YACR,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,IAAI,EAAE,SAAS;YACf,EAAE;YACF,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAAC;SAClE,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Internal readonly consistency invocation; detached output grants no write authority. */
2
+ export declare function captureOwnedConfigurePreflightV2(): Readonly<{
3
+ invoke(): Promise<import("./grammar.js").PreflightOutput | import("../../../renewalAggregate/shared.js").Failure>;
4
+ }>;
5
+ //# sourceMappingURL=configurePreflight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurePreflight.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts"],"names":[],"mappings":"AA2GA,2FAA2F;AAC3F,wBAAgB,gCAAgC;;GAqJ/C"}
@@ -0,0 +1,214 @@
1
+ import { types } from "node:util";
2
+ import { OWNER } from "../originalOwner.js";
3
+ import { COMPILED_PREFLIGHT_ENTRIES as ENTRIES, loadOwnedConfigureOperation, ORIGINAL_ORIGIN_ASSOCIATION, } from "../operations/sourceOperations.js";
4
+ import { projectRenewalConfigurationV2, constructRenewalScheduleAttachmentReceiptV2, } from "../../../renewalV2/index.js";
5
+ import { closed, need } from "../operations/types.js";
6
+ import { equal } from "../../../renewalAggregate/shared.js";
7
+ import { capturePreflightRecord } from "./record.js";
8
+ import { verifyPreflightRecord, verifyCurrentPreflight } from "./relations.js";
9
+ import { releasePreflight } from "./output.js";
10
+ import { bindConfigureReadAcquisitionFromSource } from "../acquisition/ownedAcquisition.js";
11
+ import { createConfigureOwnedReadTransport } from "../operations/configureReadTransport.js";
12
+ const stop = () => {
13
+ throw Error("CONFIGURE_PREFLIGHT_STOP");
14
+ };
15
+ let capturedOnce = false;
16
+ function ownMethod(object, name) {
17
+ need(object !== null && typeof object === "object" && !types.isProxy(object));
18
+ const descriptor = Object.getOwnPropertyDescriptor(object, name);
19
+ need(descriptor &&
20
+ descriptor.enumerable &&
21
+ "value" in descriptor &&
22
+ typeof descriptor.value === "function" &&
23
+ !types.isProxy(descriptor.value));
24
+ return descriptor.value;
25
+ }
26
+ function expectedPlan(record) {
27
+ const expected = record.configuration.preparation.expected;
28
+ const customer = record.originalBundle.wireBillingCustomer.id;
29
+ need(typeof customer === "string");
30
+ const query = "?" +
31
+ new URLSearchParams(["discounts", "items.data.discounts", "items.data.price"].map((value, index) => ["expand[" + index + "]", value]));
32
+ const resources = [
33
+ {
34
+ resource: "subscription",
35
+ path: "/v1/subscriptions/" +
36
+ encodeURIComponent(expected.subscriptionId) +
37
+ query,
38
+ },
39
+ {
40
+ resource: "price",
41
+ path: "/v1/prices/" + encodeURIComponent(expected.targetPriceId),
42
+ },
43
+ {
44
+ resource: "customer",
45
+ path: "/v1/customers/" + encodeURIComponent(customer),
46
+ },
47
+ ...record.originalBundle.couponReads.map((row) => {
48
+ need(typeof row.couponId === "string");
49
+ return {
50
+ resource: "coupon",
51
+ path: "/v1/coupons/" + encodeURIComponent(row.couponId),
52
+ };
53
+ }),
54
+ {
55
+ resource: "schedule",
56
+ path: "/v1/subscription_schedules/" +
57
+ encodeURIComponent(record.attachReceipt.scheduleId),
58
+ },
59
+ ];
60
+ return Object.freeze(resources.map((row, index) => Object.freeze({
61
+ ...row,
62
+ ordinal: index + 1,
63
+ method: "GET",
64
+ body: undefined,
65
+ options: Object.freeze({
66
+ apiVersion: "2026-09-30.endive",
67
+ maxNetworkRetries: 0,
68
+ }),
69
+ })));
70
+ }
71
+ /** Complete raw equality to the verified typed baseline, not a schema cast or Source proof. */
72
+ function matchesCurrentBundle(value, record) {
73
+ return equal(value, {
74
+ ...record.originalBundle,
75
+ wireSubscription: record.configuration.freshSubscription,
76
+ });
77
+ }
78
+ /** Internal readonly consistency invocation; detached output grants no write authority. */
79
+ export function captureOwnedConfigurePreflightV2() {
80
+ if (arguments.length !== 0)
81
+ stop();
82
+ need(!types.isProxy(ENTRIES) && Array.isArray(ENTRIES));
83
+ if (ENTRIES.length === 0)
84
+ throw Error("CONFIGURE_PREFLIGHT_SOURCE_UNBOUND");
85
+ if (capturedOnce)
86
+ stop();
87
+ capturedOnce = true;
88
+ OWNER.check();
89
+ const live = loadOwnedConfigureOperation();
90
+ OWNER.check();
91
+ const op = closed(live, [
92
+ "owner",
93
+ "originAssociation",
94
+ "originalEntry",
95
+ "preflightEntry",
96
+ "actualAcknowledgement",
97
+ "record",
98
+ "readTransport",
99
+ ]);
100
+ need(op.owner === OWNER &&
101
+ op.originAssociation !== null &&
102
+ typeof op.originAssociation === "object" &&
103
+ !types.isProxy(op.originAssociation) &&
104
+ op.originAssociation === ORIGINAL_ORIGIN_ASSOCIATION &&
105
+ ENTRIES.includes(op.preflightEntry));
106
+ const coverage = closed(op.preflightEntry, [
107
+ "originalEntry",
108
+ "coversPreflight",
109
+ ]);
110
+ need(op.originalEntry !== null &&
111
+ typeof op.originalEntry === "object" &&
112
+ !types.isProxy(op.originalEntry) &&
113
+ coverage.originalEntry === op.originalEntry);
114
+ const covers = ownMethod(op.preflightEntry, "coversPreflight");
115
+ const rawRecord = closed(op.record, [
116
+ "configuration",
117
+ "request",
118
+ "attachReceipt",
119
+ "originalBundle",
120
+ ]);
121
+ need(rawRecord.attachReceipt === op.actualAcknowledgement);
122
+ const readMethod = ownMethod(op.readTransport, "rawRequest"), retained = capturePreflightRecord(op.record);
123
+ OWNER.check();
124
+ let consumed = false;
125
+ return Object.freeze({
126
+ async invoke() {
127
+ if (arguments.length !== 0 || consumed)
128
+ stop();
129
+ consumed = true;
130
+ OWNER.check();
131
+ let original;
132
+ try {
133
+ original = await projectRenewalConfigurationV2(retained.configuration);
134
+ }
135
+ catch (error) {
136
+ OWNER.check();
137
+ throw error;
138
+ }
139
+ OWNER.check();
140
+ if (original.status !== "projected_configure_request")
141
+ return original;
142
+ let ack;
143
+ try {
144
+ ack = await constructRenewalScheduleAttachmentReceiptV2(retained.configuration.attachReceipt);
145
+ }
146
+ catch (error) {
147
+ OWNER.check();
148
+ throw error;
149
+ }
150
+ OWNER.check();
151
+ const record = verifyPreflightRecord(retained, original, ack);
152
+ OWNER.check();
153
+ const pair = createConfigureOwnedReadTransport();
154
+ OWNER.check();
155
+ need(pair.capability.assertSourceOperationBinding(live, expectedPlan(record), op.readTransport, readMethod));
156
+ OWNER.check();
157
+ need(pair.capability.reserveAcquisition());
158
+ OWNER.check();
159
+ const reader = bindConfigureReadAcquisitionFromSource(OWNER, pair.transport.readTransport, Object.freeze({
160
+ expected: record.configuration.preparation.expected,
161
+ scheduleId: ack.scheduleId,
162
+ }));
163
+ OWNER.check();
164
+ let acquired;
165
+ try {
166
+ acquired = await reader.acquire();
167
+ }
168
+ catch (error) {
169
+ OWNER.check();
170
+ throw error;
171
+ }
172
+ OWNER.check();
173
+ need(acquired.ok);
174
+ need(matchesCurrentBundle(acquired.bundle, record));
175
+ const evidence = Object.freeze({
176
+ bundle: acquired.bundle,
177
+ schedule: acquired.schedule,
178
+ observedAt: acquired.observedAt,
179
+ });
180
+ verifyCurrentPreflight(record, evidence);
181
+ OWNER.check();
182
+ const configuration = {
183
+ ...record.configuration,
184
+ freshSubscription: evidence.bundle.wireSubscription,
185
+ targetPrice: evidence.bundle.wireTargetPrice,
186
+ ...(Object.prototype.hasOwnProperty.call(record.configuration, "billingCustomer")
187
+ ? { billingCustomer: evidence.bundle.wireBillingCustomer }
188
+ : {}),
189
+ schedule: evidence.schedule,
190
+ observedAt: evidence.observedAt,
191
+ };
192
+ OWNER.check();
193
+ let fresh;
194
+ try {
195
+ fresh = await projectRenewalConfigurationV2(configuration);
196
+ }
197
+ catch (error) {
198
+ OWNER.check();
199
+ throw error;
200
+ }
201
+ OWNER.check();
202
+ if (fresh.status !== "projected_configure_request")
203
+ return fresh;
204
+ need(equal(fresh, original) && equal(fresh, record.request));
205
+ need(Reflect.apply(covers, op.preflightEntry, [record, evidence, fresh]) ===
206
+ true);
207
+ OWNER.check();
208
+ const output = releasePreflight(record, evidence, fresh, original, ack);
209
+ OWNER.check();
210
+ return output;
211
+ },
212
+ });
213
+ }
214
+ //# sourceMappingURL=configurePreflight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurePreflight.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,0BAA0B,IAAI,OAAO,EACrC,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,6BAA6B,EAC7B,2CAA2C,GAC5C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO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C,KAAK,EAAE,CAAC;gBACd,MAAM,KAAK,CAAC;YACd,CAAC;YACD,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,IAAI,KAAK,CAAC,MAAM,KAAK,6BAA6B;gBAAE,OAAO,KAAK,CAAC;YACjE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7D,IAAI,CACF,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;gBACjE,IAAI,CACP,CAAC;YACF,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;YACxE,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { AttachRaw, Bundle } from "../material/capture.js";
2
+ import type { ProjectRenewalConfigurationV2Options, ProjectedRenewalConfigurationV2, RenewalScheduleAttachmentReceiptV2 } from "../../../renewalV2/index.js";
3
+ export type Data = Record<string, unknown>;
4
+ export type Configuration = ProjectRenewalConfigurationV2Options & {
5
+ preparation: AttachRaw["preparation"];
6
+ attachReceipt: ProjectRenewalConfigurationV2Options["attachReceipt"] & {
7
+ attachRequest: AttachRaw;
8
+ };
9
+ freshSubscription: Bundle["wireSubscription"];
10
+ };
11
+ /** Detached consistency data, never a Source, dispatch, ownership or acknowledgement capability. */
12
+ export interface PreflightRecord {
13
+ configuration: Configuration;
14
+ request: ProjectedRenewalConfigurationV2;
15
+ attachReceipt: RenewalScheduleAttachmentReceiptV2;
16
+ originalBundle: Bundle;
17
+ }
18
+ export interface CurrentEvidence {
19
+ bundle: Bundle;
20
+ schedule: Data;
21
+ observedAt: number;
22
+ }
23
+ export interface PreflightOutput {
24
+ status: "configure_preflight_consistent";
25
+ originalRecord: PreflightRecord;
26
+ currentEvidence: CurrentEvidence;
27
+ request: ProjectedRenewalConfigurationV2;
28
+ operationalAuthority: false;
29
+ }
30
+ export declare const recordFamilies: Readonly<Record<string, string>>;
31
+ export declare const outputFamilies: Readonly<Record<string, string>>;
32
+ export declare function controls(x: unknown, path: string, output: boolean): void;
33
+ //# sourceMappingURL=grammar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammar.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/preflight/grammar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EACV,oCAAoC,EACpC,+BAA+B,EAC/B,kCAAkC,EACnC,MAAM,6BAA6B,CAAC;AACrC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,oCAAoC,GAAG;IACjE,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACtC,aAAa,EAAE,oCAAoC,CAAC,eAAe,CAAC,GAAG;QACrE,aAAa,EAAE,SAAS,CAAC;KAC1B,CAAC;IACF,iBAAiB,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC;CAC/C,CAAC;AACF,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,+BAA+B,CAAC;IACzC,aAAa,EAAE,kCAAkC,CAAC;IAClD,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,eA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