@pithy-sh/payments 0.1.1 → 0.1.3

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 (402) hide show
  1. package/dist/admin/coverage.d.ts +35 -0
  2. package/dist/admin/coverage.d.ts.map +1 -0
  3. package/dist/admin/coverage.js +56 -0
  4. package/dist/admin/read.d.ts +222 -0
  5. package/dist/admin/read.d.ts.map +1 -0
  6. package/dist/admin/read.js +159 -0
  7. package/dist/audit/actions.d.ts +211 -0
  8. package/dist/audit/actions.d.ts.map +1 -0
  9. package/dist/audit/actions.js +211 -0
  10. package/dist/capability.d.ts +72 -0
  11. package/dist/capability.d.ts.map +1 -0
  12. package/dist/capability.js +228 -0
  13. package/dist/client/api.d.ts +435 -0
  14. package/dist/client/api.d.ts.map +1 -0
  15. package/dist/client/api.js +415 -0
  16. package/dist/client/checkout.d.ts +144 -0
  17. package/dist/client/checkout.d.ts.map +1 -0
  18. package/dist/client/checkout.js +173 -0
  19. package/dist/client/fixtures/price-preview-de.js +89 -0
  20. package/dist/client/fixtures/price-preview-gb.js +89 -0
  21. package/dist/client/fixtures/price-preview-jp-yen.js +89 -0
  22. package/dist/client/fixtures/price-preview-us-country-only.js +89 -0
  23. package/dist/client/fixtures/price-preview-us-new-york.js +89 -0
  24. package/dist/client/fixtures/pricePreview.d.ts +54 -0
  25. package/dist/client/fixtures/pricePreview.d.ts.map +1 -0
  26. package/dist/client/fixtures/pricePreview.js +61 -0
  27. package/dist/client/hooks.d.ts +235 -0
  28. package/dist/client/hooks.d.ts.map +1 -0
  29. package/dist/client/hooks.js +428 -0
  30. package/dist/client/paddle.d.ts +433 -0
  31. package/dist/client/paddle.d.ts.map +1 -0
  32. package/dist/client/paddle.js +391 -0
  33. package/dist/client/paddleCache.d.ts +123 -0
  34. package/dist/client/paddleCache.d.ts.map +1 -0
  35. package/dist/client/paddleCache.js +159 -0
  36. package/dist/client/paddlePrices.d.ts +94 -0
  37. package/dist/client/paddlePrices.d.ts.map +1 -0
  38. package/dist/client/paddlePrices.js +55 -0
  39. package/dist/client/paddlePricesTag.d.ts +127 -0
  40. package/dist/client/paddlePricesTag.d.ts.map +1 -0
  41. package/dist/client/paddlePricesTag.js +207 -0
  42. package/dist/client/projection.d.ts +128 -0
  43. package/dist/client/projection.d.ts.map +1 -0
  44. package/dist/client/projection.js +0 -0
  45. package/dist/client/test-utils/cacheStore.d.ts +18 -0
  46. package/dist/client/test-utils/cacheStore.d.ts.map +1 -0
  47. package/dist/client/test-utils/cacheStore.js +42 -0
  48. package/dist/client/wholeUnits.d.ts +18 -0
  49. package/dist/client/wholeUnits.d.ts.map +1 -0
  50. package/dist/client/wholeUnits.js +120 -0
  51. package/dist/config/config.d.ts +238 -0
  52. package/dist/config/config.d.ts.map +1 -0
  53. package/dist/config/config.js +249 -0
  54. package/dist/data/discount.d.ts +127 -0
  55. package/dist/data/discount.d.ts.map +1 -0
  56. package/dist/data/discount.js +91 -0
  57. package/dist/data/entitlement.d.ts +43 -0
  58. package/dist/data/entitlement.d.ts.map +1 -0
  59. package/dist/data/entitlement.js +43 -0
  60. package/dist/data/money.d.ts +15 -0
  61. package/dist/data/money.d.ts.map +1 -0
  62. package/dist/data/money.js +76 -0
  63. package/dist/data/pause.d.ts +133 -0
  64. package/dist/data/pause.d.ts.map +1 -0
  65. package/dist/data/pause.js +63 -0
  66. package/dist/data/providerAccount.d.ts +40 -0
  67. package/dist/data/providerAccount.d.ts.map +1 -0
  68. package/dist/data/providerAccount.js +34 -0
  69. package/dist/data/purchase.d.ts +107 -0
  70. package/dist/data/purchase.d.ts.map +1 -0
  71. package/dist/data/purchase.js +77 -0
  72. package/dist/data/rail.d.ts +74 -0
  73. package/dist/data/rail.d.ts.map +1 -0
  74. package/dist/data/rail.js +74 -0
  75. package/dist/data/reconcileRun.d.ts +120 -0
  76. package/dist/data/reconcileRun.d.ts.map +1 -0
  77. package/dist/data/reconcileRun.js +120 -0
  78. package/dist/data/renderMoney.d.ts +85 -0
  79. package/dist/data/renderMoney.d.ts.map +1 -0
  80. package/dist/data/renderMoney.js +146 -0
  81. package/dist/data/status.d.ts +58 -0
  82. package/dist/data/status.d.ts.map +1 -0
  83. package/dist/data/status.js +68 -0
  84. package/dist/data/subject.d.ts +111 -0
  85. package/dist/data/subject.d.ts.map +1 -0
  86. package/dist/data/subject.js +125 -0
  87. package/dist/data/subscription.d.ts +624 -0
  88. package/dist/data/subscription.d.ts.map +1 -0
  89. package/dist/data/subscription.js +497 -0
  90. package/dist/data/syncCursor.d.ts +33 -0
  91. package/dist/data/syncCursor.d.ts.map +1 -0
  92. package/dist/data/syncCursor.js +29 -0
  93. package/dist/data/tables.d.ts +37 -0
  94. package/dist/data/tables.d.ts.map +1 -0
  95. package/dist/data/tables.js +44 -0
  96. package/dist/data/webhookEvent.d.ts +134 -0
  97. package/dist/data/webhookEvent.d.ts.map +1 -0
  98. package/dist/data/webhookEvent.js +128 -0
  99. package/dist/entitlement/manual.d.ts +101 -0
  100. package/dist/entitlement/manual.d.ts.map +1 -0
  101. package/dist/entitlement/manual.js +84 -0
  102. package/dist/entitlement/resolver.d.ts +60 -0
  103. package/dist/entitlement/resolver.d.ts.map +1 -0
  104. package/dist/entitlement/resolver.js +101 -0
  105. package/dist/entitlement/subjectSeam.d.ts +102 -0
  106. package/dist/entitlement/subjectSeam.d.ts.map +1 -0
  107. package/dist/entitlement/subjectSeam.js +85 -0
  108. package/dist/error/errors.d.ts +247 -0
  109. package/dist/error/errors.d.ts.map +1 -0
  110. package/dist/error/errors.js +326 -0
  111. package/dist/grants/apply.d.ts +74 -0
  112. package/dist/grants/apply.d.ts.map +1 -0
  113. package/dist/grants/apply.js +148 -0
  114. package/dist/grants/clawback.d.ts +43 -0
  115. package/dist/grants/clawback.d.ts.map +1 -0
  116. package/dist/grants/clawback.js +71 -0
  117. package/dist/grants/ledgerSeam.d.ts +89 -0
  118. package/dist/grants/ledgerSeam.d.ts.map +1 -0
  119. package/dist/grants/ledgerSeam.js +66 -0
  120. package/dist/http/dispatch.d.ts +35 -0
  121. package/dist/http/dispatch.d.ts.map +1 -0
  122. package/dist/http/dispatch.js +40 -0
  123. package/dist/http/guards.d.ts +43 -0
  124. package/dist/http/guards.d.ts.map +1 -0
  125. package/dist/http/guards.js +52 -0
  126. package/dist/http/manifestConfig.d.ts +38 -0
  127. package/dist/http/manifestConfig.d.ts.map +1 -0
  128. package/dist/http/manifestConfig.js +49 -0
  129. package/dist/http/responses.d.ts +1455 -0
  130. package/dist/http/responses.d.ts.map +1 -0
  131. package/dist/http/responses.js +728 -0
  132. package/dist/http/routes.d.ts +315 -0
  133. package/dist/http/routes.d.ts.map +1 -0
  134. package/dist/http/routes.js +1966 -0
  135. package/dist/http/schemas.d.ts +404 -0
  136. package/dist/http/schemas.d.ts.map +1 -0
  137. package/dist/http/schemas.js +359 -0
  138. package/dist/http/scopes.d.ts +160 -0
  139. package/dist/http/scopes.d.ts.map +1 -0
  140. package/dist/http/scopes.js +240 -0
  141. package/dist/http/view.d.ts +96 -0
  142. package/dist/http/view.d.ts.map +1 -0
  143. package/dist/http/view.js +170 -0
  144. package/dist/http/webhookGuard.d.ts +109 -0
  145. package/dist/http/webhookGuard.d.ts.map +1 -0
  146. package/dist/http/webhookGuard.js +206 -0
  147. package/dist/index.d.ts +64 -0
  148. package/dist/index.d.ts.map +1 -0
  149. package/dist/index.js +43 -0
  150. package/dist/migrations/0001_purchases.d.ts +35 -0
  151. package/dist/migrations/0001_purchases.d.ts.map +1 -0
  152. package/dist/migrations/0001_purchases.js +80 -0
  153. package/dist/pricing/location.d.ts +138 -0
  154. package/dist/pricing/location.d.ts.map +1 -0
  155. package/dist/pricing/location.js +81 -0
  156. package/dist/pricing/visitor.d.ts +56 -0
  157. package/dist/pricing/visitor.d.ts.map +1 -0
  158. package/dist/pricing/visitor.js +35 -0
  159. package/dist/projection/event.d.ts +66 -0
  160. package/dist/projection/event.d.ts.map +1 -0
  161. package/dist/projection/event.js +45 -0
  162. package/dist/projection/orphans.d.ts +114 -0
  163. package/dist/projection/orphans.d.ts.map +1 -0
  164. package/dist/projection/orphans.js +162 -0
  165. package/dist/projection/owner.d.ts +121 -0
  166. package/dist/projection/owner.d.ts.map +1 -0
  167. package/dist/projection/owner.js +114 -0
  168. package/dist/projection/resolve.d.ts +30 -0
  169. package/dist/projection/resolve.d.ts.map +1 -0
  170. package/dist/projection/resolve.js +42 -0
  171. package/dist/projection/writer.d.ts +103 -0
  172. package/dist/projection/writer.d.ts.map +1 -0
  173. package/dist/projection/writer.js +280 -0
  174. package/dist/provision/resolvePaymentsConfig.d.ts +48 -0
  175. package/dist/provision/resolvePaymentsConfig.d.ts.map +1 -0
  176. package/dist/provision/resolvePaymentsConfig.js +41 -0
  177. package/dist/rails/apple/certs.d.ts +7 -0
  178. package/dist/rails/apple/certs.d.ts.map +1 -0
  179. package/dist/rails/apple/certs.js +8 -0
  180. package/dist/rails/apple/der.d.ts +107 -0
  181. package/dist/rails/apple/der.d.ts.map +1 -0
  182. package/dist/rails/apple/der.js +217 -0
  183. package/dist/rails/apple/fixtures/chain.d.ts +117 -0
  184. package/dist/rails/apple/fixtures/chain.d.ts.map +1 -0
  185. package/dist/rails/apple/fixtures/chain.js +289 -0
  186. package/dist/rails/apple/http.d.ts +74 -0
  187. package/dist/rails/apple/http.d.ts.map +1 -0
  188. package/dist/rails/apple/http.js +32 -0
  189. package/dist/rails/apple/jws.d.ts +17 -0
  190. package/dist/rails/apple/jws.d.ts.map +1 -0
  191. package/dist/rails/apple/jws.js +75 -0
  192. package/dist/rails/apple/notification.d.ts +116 -0
  193. package/dist/rails/apple/notification.d.ts.map +1 -0
  194. package/dist/rails/apple/notification.js +199 -0
  195. package/dist/rails/apple/rail.d.ts +25 -0
  196. package/dist/rails/apple/rail.d.ts.map +1 -0
  197. package/dist/rails/apple/rail.js +68 -0
  198. package/dist/rails/apple/serverApi.d.ts +120 -0
  199. package/dist/rails/apple/serverApi.d.ts.map +1 -0
  200. package/dist/rails/apple/serverApi.js +244 -0
  201. package/dist/rails/apple/verify.d.ts +36 -0
  202. package/dist/rails/apple/verify.d.ts.map +1 -0
  203. package/dist/rails/apple/verify.js +46 -0
  204. package/dist/rails/apple/x509.d.ts +85 -0
  205. package/dist/rails/apple/x509.d.ts.map +1 -0
  206. package/dist/rails/apple/x509.js +273 -0
  207. package/dist/rails/contract.d.ts +871 -0
  208. package/dist/rails/contract.d.ts.map +1 -0
  209. package/dist/rails/contract.js +60 -0
  210. package/dist/rails/google/fixtures/push.d.ts +71 -0
  211. package/dist/rails/google/fixtures/push.d.ts.map +1 -0
  212. package/dist/rails/google/fixtures/push.js +107 -0
  213. package/dist/rails/google/http.d.ts +77 -0
  214. package/dist/rails/google/http.d.ts.map +1 -0
  215. package/dist/rails/google/http.js +39 -0
  216. package/dist/rails/google/jwt.d.ts +53 -0
  217. package/dist/rails/google/jwt.d.ts.map +1 -0
  218. package/dist/rails/google/jwt.js +94 -0
  219. package/dist/rails/google/oidc.d.ts +112 -0
  220. package/dist/rails/google/oidc.d.ts.map +1 -0
  221. package/dist/rails/google/oidc.js +179 -0
  222. package/dist/rails/google/playApi.d.ts +188 -0
  223. package/dist/rails/google/playApi.d.ts.map +1 -0
  224. package/dist/rails/google/playApi.js +350 -0
  225. package/dist/rails/google/rail.d.ts +57 -0
  226. package/dist/rails/google/rail.d.ts.map +1 -0
  227. package/dist/rails/google/rail.js +70 -0
  228. package/dist/rails/google/rtdn.d.ts +105 -0
  229. package/dist/rails/google/rtdn.d.ts.map +1 -0
  230. package/dist/rails/google/rtdn.js +179 -0
  231. package/dist/rails/google/verify.d.ts +20 -0
  232. package/dist/rails/google/verify.d.ts.map +1 -0
  233. package/dist/rails/google/verify.js +76 -0
  234. package/dist/rails/lemonSqueezy/api.d.ts +92 -0
  235. package/dist/rails/lemonSqueezy/api.d.ts.map +1 -0
  236. package/dist/rails/lemonSqueezy/api.js +121 -0
  237. package/dist/rails/lemonSqueezy/checkout.d.ts +52 -0
  238. package/dist/rails/lemonSqueezy/checkout.d.ts.map +1 -0
  239. package/dist/rails/lemonSqueezy/checkout.js +84 -0
  240. package/dist/rails/lemonSqueezy/discounts.d.ts +50 -0
  241. package/dist/rails/lemonSqueezy/discounts.d.ts.map +1 -0
  242. package/dist/rails/lemonSqueezy/discounts.js +75 -0
  243. package/dist/rails/lemonSqueezy/fixtures/events.d.ts +56 -0
  244. package/dist/rails/lemonSqueezy/fixtures/events.d.ts.map +1 -0
  245. package/dist/rails/lemonSqueezy/fixtures/events.js +144 -0
  246. package/dist/rails/lemonSqueezy/objects.d.ts +229 -0
  247. package/dist/rails/lemonSqueezy/objects.d.ts.map +1 -0
  248. package/dist/rails/lemonSqueezy/objects.js +379 -0
  249. package/dist/rails/lemonSqueezy/portal.d.ts +35 -0
  250. package/dist/rails/lemonSqueezy/portal.d.ts.map +1 -0
  251. package/dist/rails/lemonSqueezy/portal.js +18 -0
  252. package/dist/rails/lemonSqueezy/pricing.d.ts +25 -0
  253. package/dist/rails/lemonSqueezy/pricing.d.ts.map +1 -0
  254. package/dist/rails/lemonSqueezy/pricing.js +54 -0
  255. package/dist/rails/lemonSqueezy/rail.d.ts +41 -0
  256. package/dist/rails/lemonSqueezy/rail.d.ts.map +1 -0
  257. package/dist/rails/lemonSqueezy/rail.js +67 -0
  258. package/dist/rails/lemonSqueezy/read.d.ts +28 -0
  259. package/dist/rails/lemonSqueezy/read.d.ts.map +1 -0
  260. package/dist/rails/lemonSqueezy/read.js +37 -0
  261. package/dist/rails/lemonSqueezy/refresh.d.ts +42 -0
  262. package/dist/rails/lemonSqueezy/refresh.d.ts.map +1 -0
  263. package/dist/rails/lemonSqueezy/refresh.js +40 -0
  264. package/dist/rails/lemonSqueezy/signature.d.ts +56 -0
  265. package/dist/rails/lemonSqueezy/signature.d.ts.map +1 -0
  266. package/dist/rails/lemonSqueezy/signature.js +92 -0
  267. package/dist/rails/lemonSqueezy/verify.d.ts +33 -0
  268. package/dist/rails/lemonSqueezy/verify.d.ts.map +1 -0
  269. package/dist/rails/lemonSqueezy/verify.js +41 -0
  270. package/dist/rails/lemonSqueezy/webhook.d.ts +53 -0
  271. package/dist/rails/lemonSqueezy/webhook.d.ts.map +1 -0
  272. package/dist/rails/lemonSqueezy/webhook.js +179 -0
  273. package/dist/rails/paddle/adjustments.d.ts +60 -0
  274. package/dist/rails/paddle/adjustments.d.ts.map +1 -0
  275. package/dist/rails/paddle/adjustments.js +66 -0
  276. package/dist/rails/paddle/api.d.ts +138 -0
  277. package/dist/rails/paddle/api.d.ts.map +1 -0
  278. package/dist/rails/paddle/api.js +152 -0
  279. package/dist/rails/paddle/checkout.d.ts +69 -0
  280. package/dist/rails/paddle/checkout.d.ts.map +1 -0
  281. package/dist/rails/paddle/checkout.js +100 -0
  282. package/dist/rails/paddle/discounts.d.ts +67 -0
  283. package/dist/rails/paddle/discounts.d.ts.map +1 -0
  284. package/dist/rails/paddle/discounts.js +73 -0
  285. package/dist/rails/paddle/events.d.ts +140 -0
  286. package/dist/rails/paddle/events.d.ts.map +1 -0
  287. package/dist/rails/paddle/events.js +183 -0
  288. package/dist/rails/paddle/fixtures/browserForged.d.ts +42 -0
  289. package/dist/rails/paddle/fixtures/browserForged.d.ts.map +1 -0
  290. package/dist/rails/paddle/fixtures/browserForged.js +52 -0
  291. package/dist/rails/paddle/fixtures/pausedSubscription.d.ts +78 -0
  292. package/dist/rails/paddle/fixtures/pausedSubscription.d.ts.map +1 -0
  293. package/dist/rails/paddle/fixtures/pausedSubscription.js +76 -0
  294. package/dist/rails/paddle/objects.d.ts +519 -0
  295. package/dist/rails/paddle/objects.d.ts.map +1 -0
  296. package/dist/rails/paddle/objects.js +588 -0
  297. package/dist/rails/paddle/portal.d.ts +45 -0
  298. package/dist/rails/paddle/portal.d.ts.map +1 -0
  299. package/dist/rails/paddle/portal.js +42 -0
  300. package/dist/rails/paddle/rail.d.ts +55 -0
  301. package/dist/rails/paddle/rail.d.ts.map +1 -0
  302. package/dist/rails/paddle/rail.js +117 -0
  303. package/dist/rails/paddle/read.d.ts +53 -0
  304. package/dist/rails/paddle/read.d.ts.map +1 -0
  305. package/dist/rails/paddle/read.js +66 -0
  306. package/dist/rails/paddle/recorded.d.ts +49 -0
  307. package/dist/rails/paddle/recorded.d.ts.map +1 -0
  308. package/dist/rails/paddle/recorded.js +79 -0
  309. package/dist/rails/paddle/refresh.d.ts +54 -0
  310. package/dist/rails/paddle/refresh.d.ts.map +1 -0
  311. package/dist/rails/paddle/refresh.js +94 -0
  312. package/dist/rails/paddle/refund.d.ts +82 -0
  313. package/dist/rails/paddle/refund.d.ts.map +1 -0
  314. package/dist/rails/paddle/refund.js +175 -0
  315. package/dist/rails/paddle/signature.d.ts +83 -0
  316. package/dist/rails/paddle/signature.d.ts.map +1 -0
  317. package/dist/rails/paddle/signature.js +163 -0
  318. package/dist/rails/paddle/subscription.d.ts +137 -0
  319. package/dist/rails/paddle/subscription.d.ts.map +1 -0
  320. package/dist/rails/paddle/subscription.js +538 -0
  321. package/dist/rails/paddle/verify.d.ts +46 -0
  322. package/dist/rails/paddle/verify.d.ts.map +1 -0
  323. package/dist/rails/paddle/verify.js +43 -0
  324. package/dist/rails/paddle/webhook.d.ts +98 -0
  325. package/dist/rails/paddle/webhook.d.ts.map +1 -0
  326. package/dist/rails/paddle/webhook.js +181 -0
  327. package/dist/rails/providers.d.ts +73 -0
  328. package/dist/rails/providers.d.ts.map +1 -0
  329. package/dist/rails/providers.js +62 -0
  330. package/dist/rails/stripe/api.d.ts +118 -0
  331. package/dist/rails/stripe/api.d.ts.map +1 -0
  332. package/dist/rails/stripe/api.js +153 -0
  333. package/dist/rails/stripe/checkout.d.ts +60 -0
  334. package/dist/rails/stripe/checkout.d.ts.map +1 -0
  335. package/dist/rails/stripe/checkout.js +86 -0
  336. package/dist/rails/stripe/discounts.d.ts +50 -0
  337. package/dist/rails/stripe/discounts.d.ts.map +1 -0
  338. package/dist/rails/stripe/discounts.js +87 -0
  339. package/dist/rails/stripe/fixtures/events.d.ts +64 -0
  340. package/dist/rails/stripe/fixtures/events.d.ts.map +1 -0
  341. package/dist/rails/stripe/fixtures/events.js +67 -0
  342. package/dist/rails/stripe/objects.d.ts +237 -0
  343. package/dist/rails/stripe/objects.d.ts.map +1 -0
  344. package/dist/rails/stripe/objects.js +389 -0
  345. package/dist/rails/stripe/portal.d.ts +29 -0
  346. package/dist/rails/stripe/portal.d.ts.map +1 -0
  347. package/dist/rails/stripe/portal.js +41 -0
  348. package/dist/rails/stripe/pricing.d.ts +25 -0
  349. package/dist/rails/stripe/pricing.d.ts.map +1 -0
  350. package/dist/rails/stripe/pricing.js +68 -0
  351. package/dist/rails/stripe/rail.d.ts +28 -0
  352. package/dist/rails/stripe/rail.d.ts.map +1 -0
  353. package/dist/rails/stripe/rail.js +81 -0
  354. package/dist/rails/stripe/refresh.d.ts +33 -0
  355. package/dist/rails/stripe/refresh.d.ts.map +1 -0
  356. package/dist/rails/stripe/refresh.js +21 -0
  357. package/dist/rails/stripe/signature.d.ts +71 -0
  358. package/dist/rails/stripe/signature.d.ts.map +1 -0
  359. package/dist/rails/stripe/signature.js +92 -0
  360. package/dist/rails/stripe/verify.d.ts +15 -0
  361. package/dist/rails/stripe/verify.d.ts.map +1 -0
  362. package/dist/rails/stripe/verify.js +63 -0
  363. package/dist/rails/stripe/webhook.d.ts +26 -0
  364. package/dist/rails/stripe/webhook.d.ts.map +1 -0
  365. package/dist/rails/stripe/webhook.js +31 -0
  366. package/dist/secret/registry.d.ts +192 -0
  367. package/dist/secret/registry.d.ts.map +1 -0
  368. package/dist/secret/registry.js +154 -0
  369. package/dist/seeds/example.d.ts +3 -0
  370. package/dist/seeds/example.d.ts.map +1 -0
  371. package/dist/seeds/example.js +171 -0
  372. package/dist/version.generated.d.ts +5 -0
  373. package/dist/version.generated.d.ts.map +1 -0
  374. package/dist/version.generated.js +7 -0
  375. package/dist/workflows/paddleSweep.d.ts +175 -0
  376. package/dist/workflows/paddleSweep.d.ts.map +1 -0
  377. package/dist/workflows/paddleSweep.js +433 -0
  378. package/dist/workflows/railAccess.d.ts +48 -0
  379. package/dist/workflows/railAccess.d.ts.map +1 -0
  380. package/dist/workflows/railAccess.js +36 -0
  381. package/dist/workflows/reconcile.d.ts +161 -0
  382. package/dist/workflows/reconcile.d.ts.map +1 -0
  383. package/dist/workflows/reconcile.js +352 -0
  384. package/dist/workflows/report.d.ts +28 -0
  385. package/dist/workflows/report.d.ts.map +1 -0
  386. package/dist/workflows/report.js +54 -0
  387. package/dist/workflows/retryPolicy.d.ts +29 -0
  388. package/dist/workflows/retryPolicy.d.ts.map +1 -0
  389. package/dist/workflows/retryPolicy.js +37 -0
  390. package/dist/workflows/specs.d.ts +102 -0
  391. package/dist/workflows/specs.d.ts.map +1 -0
  392. package/dist/workflows/specs.js +84 -0
  393. package/dist/workflows/worker.d.ts +62 -0
  394. package/dist/workflows/worker.d.ts.map +1 -0
  395. package/dist/workflows/worker.js +92 -0
  396. package/dist/workflows/workerConfig.d.ts +46 -0
  397. package/dist/workflows/workerConfig.d.ts.map +1 -0
  398. package/dist/workflows/workerConfig.js +38 -0
  399. package/package.json +22 -13
  400. package/pithy.manifest.json +19 -13
  401. package/src/version.generated.ts +1 -1
  402. package/src/client/paddlePrices.iife.ts +0 -43
@@ -0,0 +1,61 @@
1
+ import price_preview_de_default from "./price-preview-de.js";
2
+ import price_preview_gb_default from "./price-preview-gb.js";
3
+ import price_preview_jp_yen_default from "./price-preview-jp-yen.js";
4
+ import price_preview_us_country_only_default from "./price-preview-us-country-only.js";
5
+ import price_preview_us_new_york_default from "./price-preview-us-new-york.js";
6
+ //#region src/client/fixtures/pricePreview.ts
7
+ /**
8
+ * Five real `PricePreview` answers, recorded from the Paddle **sandbox** on 2026-08-13 against one
9
+ * $5.00/month price with no `unit_price_overrides`.
10
+ *
11
+ * They exist because the claim this rail makes — "prices render localized and tax-correct" — is a claim
12
+ * about numbers Paddle chooses, and a test written against numbers *we* chose proves only that our
13
+ * arithmetic agrees with itself. Each of these was fetched, not composed, and each pins a different
14
+ * behavior of Paddle's that the reader has to get right:
15
+ *
16
+ * | Fixture | Subtotal | Tax | Total | What it pins |
17
+ * |---|---|---|---|---|
18
+ * | {@link US_NEW_YORK} | $5.00 | $0.44 | $5.44 | Tax **added** on top of the listed price. |
19
+ * | {@link US_COUNTRY_ONLY} | $5.00 | $0.00 | $5.00 | The same country with no postal code resolves **0% tax**. |
20
+ * | {@link GB} | $4.17 | $0.83 | $5.00 | VAT taken **out of** the listed price. |
21
+ * | {@link DE} | $4.20 | $0.80 | $5.00 | The same convention, a different rate. |
22
+ * | {@link JP_YEN} | ¥725 | ¥73 | ¥798 | A **zero-decimal** currency, and a converted amount. |
23
+ *
24
+ * Two facts these recordings carry that are easy to state wrongly from memory:
25
+ *
26
+ * **Currency is not localized.** Every response but the last is in USD, from a UK, German and Japanese
27
+ * address alike. Currency comes from `unit_price_overrides` in the catalog, and this price has none.
28
+ * What localizes without them is tax and formatting.
29
+ *
30
+ * **A converted amount is not a stable number.** {@link JP_YEN} was fetched twice minutes apart and
31
+ * returned ¥797 then ¥798 — Paddle's FX rate moved between the calls. Nothing may assert an exact
32
+ * converted figure against a live account; that is what a recording is for.
33
+ *
34
+ * **They carry the envelope, because that is what `PricePreview()` resolves.** Each JSON file below
35
+ * holds a recorded `data` payload; the exported value wraps it as `{ data }`, which is the shape the
36
+ * reader is actually handed. That wrapping is not cosmetic and it is the whole of `#416`: these five
37
+ * were originally exported unwrapped, `readPricePreview` was written to match them, and the reader
38
+ * therefore refused every real answer while this suite stayed green. A recording saved at the wrong
39
+ * depth is a gate that cannot fail. The envelope was verified against a live sandbox call on
40
+ * 2026-08-18 — top-level keys `data` and `meta`.
41
+ *
42
+ * `meta` is not recorded here. The live envelope carries `{ requestId: "715c7a82-…" }` — verified, not
43
+ * assumed — and nothing in this package reads it. It is left out because a fixture carrying a field no
44
+ * reader consults is an invitation to start consulting it, and because a per-call id pinned in a
45
+ * checked-in file is a value that was never true twice.
46
+ *
47
+ * Typed `unknown` on purpose. These are the input to {@link readPricePreview}, which is a trust
48
+ * boundary, and handing it a value TypeScript already believes would test the guard against itself.
49
+ */
50
+ /** New York, 10001. 8.875% added on top of a $5.00 listed price. */
51
+ const US_NEW_YORK = { data: price_preview_us_new_york_default };
52
+ /** The United States with no postal code. Tax resolves to zero, and the buyer will still pay $5.44. */
53
+ const US_COUNTRY_ONLY = { data: price_preview_us_country_only_default };
54
+ /** London, SW1A 1AA. 20% VAT taken out of an inclusive $5.00. */
55
+ const GB = { data: price_preview_gb_default };
56
+ /** Berlin, 10115. 19% VAT, same inclusive convention, different rate. */
57
+ const DE = { data: price_preview_de_default };
58
+ /** Tokyo, with `currencyCode: "JPY"` forced. Whole yen — ¥725, not ¥72500. */
59
+ const JP_YEN = { data: price_preview_jp_yen_default };
60
+ //#endregion
61
+ export { DE, GB, JP_YEN, US_COUNTRY_ONLY, US_NEW_YORK };
@@ -0,0 +1,235 @@
1
+ import { type EntitlementView, type PaddleCheckoutHandoff, type PaymentsClientOptions, type PaymentsClientRail, type PaymentsFailure, type PaymentsHostedRail, type PurchaseView } from "./api";
2
+ import { type PaddleCheckoutOptions } from "./checkout";
3
+ import { type PaddleJs, type PaddleOptions, type PaddlePriceQuery, type PaddleSetup, type PricePreview } from "./paddle";
4
+ /** What {@link useEntitlement} gives a screen. */
5
+ export interface UseEntitlement {
6
+ /** Whether the caller holds the key right now. `false` while loading — a paywall fails closed. */
7
+ entitled: boolean;
8
+ /** Whether the first read is still in flight. */
9
+ loading: boolean;
10
+ /**
11
+ * Why the last read could not be made, or null.
12
+ *
13
+ * Distinct from `entitled: false`, which is an answer. This is the absence of one, and a screen that
14
+ * says "you don't have Pro" and one that says "we couldn't check" are different screens. `entitled`
15
+ * still fails closed while this is set — the lock holds, it just admits it is guessing.
16
+ */
17
+ readFailure: PaymentsFailure | null;
18
+ /** Re-read. Call it after a purchase completes. */
19
+ refresh: () => void;
20
+ }
21
+ /**
22
+ * Whether the caller holds `key`.
23
+ *
24
+ * Starts `false`, always. Starting `true` would flash the paid screen to everyone for one frame, which is
25
+ * both a leak and worse to look at than a spinner. An unreachable Worker reads as not entitled for the
26
+ * same reason: the server check is the boundary, so failing closed here costs nothing.
27
+ *
28
+ * The failing-closed happens *here*, visibly, rather than inside {@link getEntitlements} — a lock is a
29
+ * refusal and can carry an escape route on it, which is what `readFailure` is. A caller that names the
30
+ * plan instead of locking it must not inherit this choice; see {@link useSubscription}.
31
+ */
32
+ export declare function useEntitlement(key: string, options?: PaymentsClientOptions): UseEntitlement;
33
+ /** What {@link useSubscription} gives a subscription screen. */
34
+ export interface UseSubscription {
35
+ /** Every entitlement the caller holds, as the server resolved it. */
36
+ entitlements: readonly EntitlementView[];
37
+ /** Whether any entitlement grants right now — the "is this account paid" answer, without naming a key. */
38
+ subscribed: boolean;
39
+ /** Whether the read is in flight. */
40
+ loading: boolean;
41
+ /** Re-read. */
42
+ refresh: () => void;
43
+ /** Open Stripe's Billing Portal for this caller. Resolves once the browser has been sent, or refused. */
44
+ manage: () => Promise<void>;
45
+ /** Send the visitor to a store's own subscription page — the only management a web page can offer there. */
46
+ manageStore: (rail: "apple" | "google") => void;
47
+ /** Whether a portal session is being created. */
48
+ managing: boolean;
49
+ /** The last refusal of something the subscriber *asked for* — opening the portal — or null. */
50
+ failure: PaymentsFailure | null;
51
+ /**
52
+ * Why the entitlements could not be read, or null. Kept apart from `failure` deliberately.
53
+ *
54
+ * This screen names the plan, and free is the floor of every ladder: an empty `entitlements` is a
55
+ * positive claim that the account is on the cheapest tier. Rendering that from a read that never
56
+ * happened tells a paying customer they are on Free and offers to sell them what they have. So a
57
+ * failed read leaves `entitlements` empty *and* says so here, and a screen must consult this before
58
+ * it renders a tier name. Collapsing it into `failure` would let a stale portal refusal mask it.
59
+ */
60
+ readFailure: PaymentsFailure | null;
61
+ }
62
+ /**
63
+ * The caller's standing entitlements, and the one action a subscriber needs.
64
+ *
65
+ * Managing a subscription is the store's job, not Pithy's — Stripe's Billing Portal owns cancellation,
66
+ * card changes and plan moves, under Stripe's own rules and its own compliance. Apple and Google
67
+ * subscriptions are managed in their own apps, which a web screen can only link to.
68
+ */
69
+ export declare function useSubscription(options?: PaymentsClientOptions): UseSubscription;
70
+ /** What {@link useCheckout} gives a paywall's buy button. */
71
+ export interface UseCheckout {
72
+ /**
73
+ * Start checkout for a product.
74
+ *
75
+ * `rail` is only needed for a product sold on **more than one** hosted rail, where the server refuses to
76
+ * choose on the buyer's behalf. A product sold on one needs no argument.
77
+ */
78
+ start: (productId: string, options?: {
79
+ rail?: PaymentsHostedRail;
80
+ discountCode?: string;
81
+ }) => Promise<void>;
82
+ /** Whether a session is being created. Disable the button on it — a double click is a double session. */
83
+ starting: boolean;
84
+ /** The last refusal, or null. Cleared at the start of every attempt. */
85
+ failure: PaymentsFailure | null;
86
+ /**
87
+ * The handoff to open with Paddle.js, or null — set only on a rail with nowhere to navigate to.
88
+ *
89
+ * Null on a redirect rail, because the browser has already left and there is nothing for a screen to
90
+ * hold. Pass it to {@link usePaddleCheckout}, which opens it; a screen that never composes Paddle reads
91
+ * null forever and renders exactly as it did before this field existed.
92
+ */
93
+ handoff: PaddleCheckoutHandoff | null;
94
+ }
95
+ /**
96
+ * The web purchase path: start a checkout, and go wherever that rail goes.
97
+ *
98
+ * Apple and Google purchases happen inside a store SDK before any server hears of them, so there is no
99
+ * session for Pithy to create and no browser flow to start — a web paywall lists those products, it does
100
+ * not sell them. Stripe's and Lemon Squeezy's hosted checkouts need no SDK script and no publishable key
101
+ * in the page: the server mints a session, this navigates to it, and the store owns everything in between.
102
+ *
103
+ * Paddle is the one that does not leave. This hook does the same work for it — the server call, the
104
+ * refusal — and stops at the handoff, because opening it belongs where the container is. That is
105
+ * {@link usePaddleCheckout}.
106
+ */
107
+ export declare function useCheckout(options?: PaymentsClientOptions): UseCheckout;
108
+ /** What {@link usePaddleCheckout} gives the screen that composes Paddle. */
109
+ export interface UsePaddleCheckout {
110
+ /**
111
+ * Whether this handoff needs a container on the page.
112
+ *
113
+ * Read it to render one, and render it unconditionally beside the button rather than deciding for
114
+ * yourself: the mode is `paddle.checkout` in the project's config, resolved by the server, so a project
115
+ * that switches from `overlay` to `inline` must not also have to edit a screen it was given a year ago.
116
+ */
117
+ inline: boolean;
118
+ /** Whether the checkout is being opened — the script may still be loading. */
119
+ opening: boolean;
120
+ /** Why it could not be opened, or null. */
121
+ failure: PaymentsFailure | null;
122
+ }
123
+ /**
124
+ * Open the handoff {@link useCheckout} produced, with Paddle.js, over this page or inside it.
125
+ *
126
+ * **In an effect, and that is the whole reason this is a hook rather than a line in a click handler.**
127
+ * Inline checkout renders into an element the screen provides, and Paddle finds it by class name at the
128
+ * moment `open` is called. Called from the handler that starts the checkout, the container React is about
129
+ * to render does not exist yet — and what Paddle does then is throw `TypeError: Cannot read properties of
130
+ * undefined (reading 'appendChild')` out of the click, which is not a sentence anyone can act on. An
131
+ * effect runs after the commit that revealed the container, so the element is there.
132
+ *
133
+ * One open per handoff. `start` mints a new transaction on every attempt, so the transaction id is what a
134
+ * fresh attempt looks like; a re-render with the same handoff must not open a second checkout over the
135
+ * first — and neither must a second *mount* of the same one. React's `StrictMode` runs every effect,
136
+ * cleans it up and runs it again, and that is the mode `pithy ui add` scaffolds: `client.tsx` wraps the
137
+ * router in it. So the transaction that has been opened is remembered, rather than the effect trusting
138
+ * that it runs once. The remembered id is the last one opened, not a flag — a buyer who closed the
139
+ * overlay and clicked Buy again arrives with a new transaction, and that one must open.
140
+ */
141
+ export declare function usePaddleCheckout(handoff: PaddleCheckoutHandoff | null, options?: PaddleCheckoutOptions): UsePaddleCheckout;
142
+ /** What {@link usePurchase} gives the screen that submits receipts. */
143
+ export interface UsePurchase {
144
+ /** Submit one receipt for verification. */
145
+ submit: (rail: PaymentsClientRail, receipt: string) => Promise<void>;
146
+ /** Submit a store account's whole history on one rail — Restore Purchases. */
147
+ restore: (rail: PaymentsClientRail, receipts: readonly string[]) => Promise<void>;
148
+ /** The purchase the last successful submission projected, or null. */
149
+ purchase: PurchaseView | null;
150
+ /** The caller's entitlements as of the last successful write. */
151
+ entitlements: readonly EntitlementView[];
152
+ /** Whether a submission is in flight. */
153
+ busy: boolean;
154
+ /** The last refusal, or null. */
155
+ failure: PaymentsFailure | null;
156
+ }
157
+ /**
158
+ * Submitting receipts — the path that exists so a buyer sees their entitlement now rather than when the
159
+ * webhook lands.
160
+ *
161
+ * On the web that is the Stripe return: the success URL carries the Checkout Session id, and posting it
162
+ * here projects the purchase at once. On a native client it is the store SDK's transaction, and `restore`
163
+ * is Restore Purchases. Dropping either call costs nothing — the webhook produces the identical row, and
164
+ * the write is idempotent on `(rail, providerTransactionId)`.
165
+ *
166
+ * A refusal leaves `purchase` and `entitlements` exactly as they were. Clearing them would flicker a
167
+ * paywall back over a feature the user already owns, on nothing more than a failed second submission.
168
+ */
169
+ export declare function usePurchase(options?: PaymentsClientOptions): UsePurchase;
170
+ /** What {@link usePaddle} gives a screen that has to talk to Paddle.js directly. */
171
+ export interface UsePaddle {
172
+ /** The initialized Paddle.js, or null while it loads and after it fails. */
173
+ paddle: PaddleJs | null;
174
+ /** Whether the load is in flight. False forever when there is no Paddle rail to load. */
175
+ loading: boolean;
176
+ /** Why it could not load, or null. */
177
+ failure: PaymentsFailure | null;
178
+ }
179
+ /**
180
+ * Paddle.js, loaded once per page.
181
+ *
182
+ * `setup` takes null so a screen never has to guard a hook: `paymentsConfig.paddle` is null when the
183
+ * rail is off, and passing that through reads as "nothing to load" rather than as a failure. A pricing
184
+ * page for a project that does not sell through Paddle renders its own empty state; it does not show an
185
+ * error about a provider it never asked for.
186
+ *
187
+ * Loading is the module's job, not this hook's — mounting two components that both call it produces one
188
+ * script and one `Initialize`, because {@link loadPaddle} remembers the page's one load. This is the
189
+ * React-shaped view of it: a state a screen can render.
190
+ */
191
+ export declare function usePaddle(setup: PaddleSetup | null, options?: PaddleOptions): UsePaddle;
192
+ /** What {@link usePricePreview} gives a pricing screen. */
193
+ export interface UsePricePreview {
194
+ /**
195
+ * What Paddle quoted this visitor, or null.
196
+ *
197
+ * Null while the first quote is in flight and null after a failure — **never a fallback figure.** A
198
+ * hardcoded price behind a failed lookup is the exact defect this hook exists to remove: it is wrong
199
+ * in every country whose tax convention differs from the one it was written in, and it is wrong
200
+ * silently. A page with no price and an honest sentence is worse than a right price and better than a
201
+ * wrong one.
202
+ */
203
+ preview: PricePreview | null;
204
+ /** Whether a quote is in flight. True on the first render, so a screen can hold the space. */
205
+ loading: boolean;
206
+ /** Why the last quote could not be made, or null. */
207
+ failure: PaymentsFailure | null;
208
+ /** Ask again. */
209
+ refresh: () => void;
210
+ }
211
+ /**
212
+ * What this visitor pays, read from Paddle for this visitor.
213
+ *
214
+ * **No price string appears in any screen this kit ships.** That is the whole contract. The figures come
215
+ * from Paddle, rendered by Paddle for the visitor's country — which is the only way one page can quote
216
+ * $5.44 in New York, $5.75 in Chicago, $5.00 in Berlin including €0.80 of VAT, and ¥725 in Tokyo without
217
+ * a table of tax rates aging in somebody's repository.
218
+ *
219
+ * `query` may be written inline. The effect depends on {@link priceQueryKey} rather than on the object,
220
+ * so an object literal re-created on every render re-quotes when the request changed and not before.
221
+ *
222
+ * A failure clears the previous quote rather than leaving it. The other hooks here keep their last good
223
+ * value on a refusal, and this one deliberately does not: a re-quote happens because the *request*
224
+ * changed, so the value it would be keeping is a price for something else.
225
+ *
226
+ * **Only the latest quote is rendered, whichever answers first.** Two previews can be in flight at once —
227
+ * an anonymous visitor's location resolves under the query, or a country picker moves — and the slower
228
+ * one landing last would otherwise win, putting a price for an address the visitor has left on the one
229
+ * screen whose entire job is showing a correct one. Superseded answers are *ignored*, not canceled:
230
+ * Paddle.js's `PricePreview` takes no `AbortSignal` and hands back a bare promise, so there is nothing to
231
+ * cancel and ignoring it is the whole of the fix. A superseded refusal is ignored the same way, which is
232
+ * what stops a dead request blanking a price the visitor is already reading.
233
+ */
234
+ export declare function usePricePreview(setup: PaddleSetup | null, query: PaddlePriceQuery, options?: PaddleOptions): UsePricePreview;
235
+ //# sourceMappingURL=hooks.d.ts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