@pithy-sh/payments 0.6.1 → 0.7.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 (87) hide show
  1. package/README.md +6 -1
  2. package/dist/admin/coverage.d.ts.map +1 -1
  3. package/dist/admin/coverage.js +13 -7
  4. package/dist/admin/read.d.ts +60 -0
  5. package/dist/admin/read.d.ts.map +1 -1
  6. package/dist/admin/read.js +86 -2
  7. package/dist/audit/actions.d.ts +5 -0
  8. package/dist/audit/actions.d.ts.map +1 -1
  9. package/dist/audit/actions.js +6 -1
  10. package/dist/capability.d.ts +3 -3
  11. package/dist/capability.d.ts.map +1 -1
  12. package/dist/capability.js +14 -7
  13. package/dist/client/api.d.ts +25 -9
  14. package/dist/client/api.d.ts.map +1 -1
  15. package/dist/client/api.js +68 -12
  16. package/dist/client/hooks.d.ts +27 -39
  17. package/dist/client/hooks.d.ts.map +1 -1
  18. package/dist/client/hooks.js +166 -315
  19. package/dist/client/projection.d.ts +25 -18
  20. package/dist/client/projection.d.ts.map +1 -1
  21. package/dist/client/railChoice.d.ts +46 -0
  22. package/dist/client/railChoice.d.ts.map +1 -0
  23. package/dist/client/railChoice.js +48 -0
  24. package/dist/data/webhookEvent.d.ts +67 -0
  25. package/dist/data/webhookEvent.d.ts.map +1 -1
  26. package/dist/data/webhookEvent.js +76 -1
  27. package/dist/http/responses.d.ts +64 -0
  28. package/dist/http/responses.d.ts.map +1 -1
  29. package/dist/http/responses.js +34 -1
  30. package/dist/http/routes.d.ts +1 -0
  31. package/dist/http/routes.d.ts.map +1 -1
  32. package/dist/http/routes.js +64 -11
  33. package/dist/http/schemas.d.ts +19 -0
  34. package/dist/http/schemas.d.ts.map +1 -1
  35. package/dist/http/schemas.js +18 -1
  36. package/dist/http/scopes.d.ts +15 -6
  37. package/dist/http/scopes.d.ts.map +1 -1
  38. package/dist/http/scopes.js +55 -5
  39. package/dist/http/view.d.ts +9 -2
  40. package/dist/http/view.d.ts.map +1 -1
  41. package/dist/http/view.js +29 -1
  42. package/dist/http/webhookGuard.d.ts +7 -1
  43. package/dist/http/webhookGuard.d.ts.map +1 -1
  44. package/dist/http/webhookGuard.js +3 -2
  45. package/dist/migrations/0003_webhook_targets.d.ts +19 -0
  46. package/dist/migrations/0003_webhook_targets.d.ts.map +1 -0
  47. package/dist/migrations/0003_webhook_targets.js +29 -0
  48. package/dist/processing/activities.d.ts +9 -0
  49. package/dist/processing/activities.d.ts.map +1 -0
  50. package/dist/processing/activities.js +30 -0
  51. package/dist/projection/orphans.d.ts.map +1 -1
  52. package/dist/projection/orphans.js +15 -6
  53. package/dist/projection/targets.d.ts +50 -0
  54. package/dist/projection/targets.d.ts.map +1 -0
  55. package/dist/projection/targets.js +50 -0
  56. package/dist/purge/contribution.d.ts +32 -0
  57. package/dist/purge/contribution.d.ts.map +1 -0
  58. package/dist/purge/contribution.js +120 -0
  59. package/dist/version.generated.d.ts +1 -1
  60. package/dist/version.generated.js +1 -1
  61. package/dist/workflows/paddleSweep.d.ts.map +1 -1
  62. package/dist/workflows/paddleSweep.js +20 -9
  63. package/docs/lemon-squeezy.md +1 -1
  64. package/docs/paddle.md +2 -0
  65. package/package.json +6 -4
  66. package/src/admin/coverage.ts +13 -9
  67. package/src/admin/read.ts +135 -0
  68. package/src/audit/actions.ts +5 -0
  69. package/src/capability.ts +25 -15
  70. package/src/client/api.ts +74 -11
  71. package/src/client/hooks.ts +206 -301
  72. package/src/client/projection.ts +25 -18
  73. package/src/client/railChoice.ts +72 -0
  74. package/src/data/webhookEvent.ts +115 -0
  75. package/src/http/responses.ts +66 -0
  76. package/src/http/routes.ts +73 -11
  77. package/src/http/schemas.ts +26 -0
  78. package/src/http/scopes.ts +58 -6
  79. package/src/http/view.ts +31 -1
  80. package/src/http/webhookGuard.ts +23 -3
  81. package/src/migrations/0003_webhook_targets.ts +34 -0
  82. package/src/processing/activities.ts +34 -0
  83. package/src/projection/orphans.ts +28 -11
  84. package/src/projection/targets.ts +66 -0
  85. package/src/purge/contribution.ts +135 -0
  86. package/src/version.generated.ts +1 -1
  87. package/src/workflows/paddleSweep.ts +39 -14
@@ -7,11 +7,10 @@
7
7
  * catalog of one product infers one product's shape, and every branch the next product would have taken
8
8
  * — an empty `entitlements`, a SKU on a rail the first product does not sell — is simply not in it.
9
9
  *
10
- * **It is annotated on the `.map` callback, not on the array it builds.** Measured, and the difference
11
- * matters: `const products: PaymentsClientProduct[] = …map(…)` type-checks the *result*, by which point
12
- * the element literals are no longer fresh, so a product that grew an `apple` SKU passed silently. On the
13
- * callback's own return type the literal is checked where it is written, and the store-only field is a
14
- * compile error at the line that added it.
10
+ * **It is annotated on the `.map` callback, not on the array it builds.** `const products:
11
+ * PaymentsClientProduct[] = …map(…)` type-checks the *result*, by which point the element literals are no
12
+ * longer fresh, so an extra field passes silently. On the callback's own return type the literal is
13
+ * checked where it is written, and an undeclared field is a compile error at the line that added it.
15
14
  */
16
15
  export type PaymentsClientProduct = {
17
16
  /** The logical product id — what `/payments/checkout` is asked for. */
@@ -23,13 +22,21 @@ export type PaymentsClientProduct = {
23
22
  /** The display name a paywall renders. */
24
23
  name: string;
25
24
  /**
26
- * This product's SKU on each web rail, or null where it is not sold. Keyed by rail rather than one
27
- * field per rail, so a screen asks `skus[rail]` and a new rail cannot leave a `purchasable()` check
28
- * silently out of date. Every id here is publishable by design — each is what a checkout names.
29
- *
30
- * Apple's and Google's product ids are deliberately absent: a browser cannot open either store.
25
+ * This product's SKU on each rail, or null where it is not sold. Keyed by rail rather than one field per
26
+ * rail, so a screen asks `skus[rail]` and a new rail cannot leave a `purchasable()` check silently out of
27
+ * date. Every id here is publishable by design — each is what a checkout or a store purchase names.
31
28
  */
32
29
  skus: {
30
+ /**
31
+ * The App Store product id a native app buys with StoreKit. Optional: a Worker on an older kit does
32
+ * not project it, and absent reads the same as null.
33
+ */
34
+ apple?: string | null;
35
+ /**
36
+ * The Play product id a native app buys with Play Billing. Optional: a Worker on an older kit does not
37
+ * project it, and absent reads the same as null.
38
+ */
39
+ google?: string | null;
33
40
  /** The Stripe price id. */
34
41
  stripe: string | null;
35
42
  /** The Lemon Squeezy variant id. */
@@ -67,8 +74,8 @@ export type PaymentsClientEntitlement = {
67
74
  * Nothing sensitive is in reach of the producer to begin with: Apple's issuer key, Google's service
68
75
  * account, and Stripe's secret and signing keys live in the secrets store behind
69
76
  * `paymentsSecretsRegistry`, not in the config the closure can see. What this type covers is the rest of
70
- * the catalog — the `grants` block and the store-only SKUs, which are omissions of judgment rather than
71
- * of reach, and so are the ones worth writing down.
77
+ * the catalog — the `grants` block, an omission of judgment rather than of reach, and so the one worth
78
+ * writing down.
72
79
  *
73
80
  * **`billingSubject` is a third omission of judgment, and it is deliberate.** The subject *id* obviously
74
81
  * never crosses — it is a fact about one caller, and this projection is inlined into a bundle every caller
@@ -100,12 +107,12 @@ export type PaymentsClientProjection = {
100
107
  /**
101
108
  * Which rails this project sells through. Apple and Google are display-only on the web — a
102
109
  * paywall shows such a product as owned-elsewhere rather than offering a buy button nothing on
103
- * the web can honor.
110
+ * the web can honor. A native app buys on them.
104
111
  */
105
112
  rails: {
106
- /** Whether the App Store rail is on. Display-only in a browser. */
113
+ /** Whether the App Store rail is on. Display-only in a browser; a native app buys on it. */
107
114
  apple: boolean;
108
- /** Whether the Play Store rail is on. Display-only in a browser. */
115
+ /** Whether the Play Store rail is on. Display-only in a browser; a native app buys on it. */
109
116
  google: boolean;
110
117
  /** Whether the Stripe rail is on. */
111
118
  stripe: boolean;
@@ -137,9 +144,9 @@ export type PaymentsClientProjection = {
137
144
  /** Where the payments routes mount, e.g. `/payments`. */
138
145
  basePath: string;
139
146
  /**
140
- * The catalog, browser-safe, in the order the adopter wrote it. A web rail's price id is
141
- * publishable by design — a checkout names one. Apple's and Google's SKUs, and anything a
142
- * purchase fulfills beyond its entitlements, stay server-side.
147
+ * The catalog, client-safe, in the order the adopter wrote it. Every rail's SKU is publishable by
148
+ * design — a checkout or a store purchase names one. Anything a purchase fulfills beyond its
149
+ * entitlements stays server-side.
143
150
  */
144
151
  products: PaymentsClientProduct[];
145
152
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/client/projection.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,uEAAuE;IACvE,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,YAAY,GAAG,gBAAgB,GAAG,cAAc,CAAC;IACvD,kFAAkF;IAClF,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,IAAI,EAAE;QACJ,2BAA2B;QAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,oCAAoC;QACpC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,2BAA2B;QAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,iEAAiE;AACjE,MAAM,MAAM,wBAAwB,GAAG;IACrC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,yBAAyB,GAAG;IACtC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,wBAAwB,GAChC;IACE;;;;OAIG;IACH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AO,CAAC;QAChB,4CAA4C;QAC5C,YAAY,EAAE,OAAO,CAAC;QACtB,qCAAqC;QACrC,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;IACF;;;;OAIG;IACH,MAAM,EAAE;QACN,+DAA+D;QAC/D,WAAW,EAAE,MAAM,CAAC;QACpB,iDAAiD;QACjD,WAAW,EAAE,SAAS,GAAG,YAAY,CAAC;QACtC;;;;;;;WAOG;QACH,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;KAC3C,GAAG,IAAI,CAAC;IACT,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,qBAAqB,EAAE,CAAC;IAClC;;;;;;OAMG;IACH,YAAY,EAAE;QACZ,oCAAoC;QACpC,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC;KAC1C,CAAC;IACF,0FAA0F;IAC1F,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC3C,CAAC"}
@@ -0,0 +1,46 @@
1
+ // SPDX-FileCopyrightText: 2026 Pithy
2
+ // SPDX-License-Identifier: MIT
3
+ import type { PaymentsClientRail, PaymentsHostedRail } from "./api";
4
+ import type { PaymentsClientProduct } from "./projection";
5
+ /** The platform a screen renders on, as React Native's `Platform.OS` names the three it supports. */
6
+ export type PaymentsPlatform = "ios" | "android" | "web";
7
+ /** The rail a platform sells through, or `none` for a consumption-only build: plan shown, nothing sold. */
8
+ export type PaymentsRailChoice = PaymentsClientRail | "none";
9
+ /** One rail per platform, as a native app's `pithy-config` names them. */
10
+ export type PaymentsPlatformRails = Readonly<Record<PaymentsPlatform, PaymentsRailChoice>>;
11
+ /**
12
+ * How a screen sells one product on this platform.
13
+ *
14
+ * `store` buys in the app through StoreKit or Play Billing, with the store's own product id. `hosted` asks
15
+ * the Worker for a checkout on that rail and opens it — in the browser on native. `none` is the
16
+ * consumption-only build: no price, no button, no link. `unavailable` is a product this platform cannot sell:
17
+ * its rail is off on the backend, the product has no SKU there, or the rail is a store this platform does
18
+ * not run.
19
+ */
20
+ export type PaymentsPurchasePath = {
21
+ kind: "store";
22
+ rail: "apple" | "google";
23
+ sku: string;
24
+ } | {
25
+ kind: "hosted";
26
+ rail: PaymentsHostedRail;
27
+ } | {
28
+ kind: "none";
29
+ } | {
30
+ kind: "unavailable";
31
+ };
32
+ /** The rails a platform defaults to: its own store on iOS and Android, and the project's web rail on the web. */
33
+ export declare function defaultPlatformRails(web: PaymentsRailChoice): PaymentsPlatformRails;
34
+ /**
35
+ * How to sell `product` on `platform`, given the rail each platform is set to and the rails the backend has on.
36
+ *
37
+ * Pure, so a screen calls it while rendering and a test states every case. The backend's refusal is still the
38
+ * boundary: this only decides what a screen offers.
39
+ */
40
+ export declare function purchasePathFor(input: {
41
+ platform: PaymentsPlatform;
42
+ rails: PaymentsPlatformRails;
43
+ enabled: Readonly<Record<PaymentsClientRail, boolean>>;
44
+ product: Pick<PaymentsClientProduct, "skus">;
45
+ }): PaymentsPurchasePath;
46
+ //# sourceMappingURL=railChoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"railChoice.d.ts","sourceRoot":"","sources":["../../src/client/railChoice.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,qGAAqG;AACrG,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAAC;AAEzD,2GAA2G;AAC3G,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,MAAM,CAAC;AAE7D,0EAA0E;AAC1E,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAE3F;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAS5B,iHAAiH;AACjH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,kBAAkB,GAAG,qBAAqB,CAEnF;AAOD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;IACvD,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;CAC9C,GAAG,oBAAoB,CAavB"}
@@ -0,0 +1,48 @@
1
+ // SPDX-FileCopyrightText: 2026 Pithy
2
+ // SPDX-License-Identifier: MIT
3
+ //#region src/client/railChoice.ts
4
+ /** The store each platform runs. The web runs neither. */
5
+ const PLATFORM_STORE = {
6
+ ios: "apple",
7
+ android: "google",
8
+ web: null
9
+ };
10
+ /** The rails a platform defaults to: its own store on iOS and Android, and the project's web rail on the web. */
11
+ function defaultPlatformRails(web) {
12
+ return {
13
+ ios: "apple",
14
+ android: "google",
15
+ web
16
+ };
17
+ }
18
+ /** A SKU worth buying with: a non-empty string. Absent, null and empty all mean not sold there. */
19
+ function skuOf(value) {
20
+ return typeof value === "string" && value !== "" ? value : null;
21
+ }
22
+ /**
23
+ * How to sell `product` on `platform`, given the rail each platform is set to and the rails the backend has on.
24
+ *
25
+ * Pure, so a screen calls it while rendering and a test states every case. The backend's refusal is still the
26
+ * boundary: this only decides what a screen offers.
27
+ */
28
+ function purchasePathFor(input) {
29
+ const { platform, rails, enabled, product } = input;
30
+ const rail = rails[platform];
31
+ if (rail === "none") return { kind: "none" };
32
+ if (!enabled[rail]) return { kind: "unavailable" };
33
+ if (rail === "apple" || rail === "google") {
34
+ if (PLATFORM_STORE[platform] !== rail) return { kind: "unavailable" };
35
+ const sku = skuOf(product.skus[rail]);
36
+ return sku === null ? { kind: "unavailable" } : {
37
+ kind: "store",
38
+ rail,
39
+ sku
40
+ };
41
+ }
42
+ return skuOf(product.skus[rail]) === null ? { kind: "unavailable" } : {
43
+ kind: "hosted",
44
+ rail
45
+ };
46
+ }
47
+ //#endregion
48
+ export { defaultPlatformRails, purchasePathFor };
@@ -2,6 +2,33 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  import { SQLiteDate } from "@pithy-sh/core/src/data/codecs";
4
4
  import { z } from "zod";
5
+ /**
6
+ * What one event changed when it projected — every purchase row it wrote, split by whether the row renews.
7
+ *
8
+ * **A list, because one notification can touch several rows.** Lemon Squeezy's refund writes the invoice row
9
+ * and the subscription's standing row from one delivery, and a list of one would have to pick. Split the way
10
+ * the management reads split — `payments:purchases:read` and `payments:subscriptions:read` — so a client
11
+ * holding only the narrower grant can still follow the ids it is allowed to open. Disjoint: a subscription
12
+ * row's id is in `subscriptionIds` and nowhere else.
13
+ *
14
+ * A row the projection read and left alone — an exact replay, an event older than the row — is not a row
15
+ * this event changed, so it is not listed. Two empty lists is a real answer: the event finished and changed
16
+ * nothing. That is a different fact from the column being null, which is an event finished before #830
17
+ * recorded anything.
18
+ */
19
+ export declare const PaymentsWebhookEventTargets: z.ZodObject<{
20
+ purchaseIds: z.ZodArray<z.ZodString>;
21
+ subscriptionIds: z.ZodArray<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ export type PaymentsWebhookEventTargets = z.output<typeof PaymentsWebhookEventTargets>;
24
+ /**
25
+ * The column value a finishing writer stores. One encoder for the three writers that finish an event — the
26
+ * webhook, the Paddle sweep, the orphan repair — so they cannot write the JSON three ways, and it goes
27
+ * through the codec the row schema reads it back with.
28
+ */
29
+ export declare function encodeWebhookEventTargets(targets: PaymentsWebhookEventTargets): string;
30
+ /** The answer for an event that finished and changed nothing — recorded, and empty. */
31
+ export declare const NO_WEBHOOK_EVENT_TARGETS: PaymentsWebhookEventTargets;
5
32
  /**
6
33
  * One received provider notification — the row in `pithy_payments_webhook_events`, keyed
7
34
  * `UNIQUE (rail, providerEventId)`.
@@ -51,6 +78,10 @@ export declare const PaymentsWebhookEvent: z.ZodObject<{
51
78
  abandonedAt: z.ZodOptional<z.ZodNullable<z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>>>;
52
79
  error: z.ZodNullable<z.ZodString>;
53
80
  attempts: z.ZodOptional<z.ZodNumber>;
81
+ projectedTargets: z.ZodOptional<z.ZodNullable<import("@pithy-sh/core/src/data/codecs").SqliteJson<z.ZodObject<{
82
+ purchaseIds: z.ZodArray<z.ZodString>;
83
+ subscriptionIds: z.ZodArray<z.ZodString>;
84
+ }, z.core.$strip>>>>;
54
85
  createdAt: z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>;
55
86
  }, z.core.$strip>;
56
87
  export type PaymentsWebhookEvent = z.output<typeof PaymentsWebhookEvent>;
@@ -88,6 +119,20 @@ export interface PaymentsWebhookEventProgress {
88
119
  * record of how close that purchase came to being lost.
89
120
  */
90
121
  export declare function webhookEventState(row: PaymentsWebhookEventProgress): PaymentsWebhookEventState;
122
+ /**
123
+ * What a management read says a recorded delivery became (#830). **Three answers**, the ones a client acts on:
124
+ *
125
+ * - `projected` — finished: it became a purchase, or there was nothing in it to become one. What it changed is
126
+ * in `projectedTargets`.
127
+ * - `pending` — arrived and not finished, whether or not it has been tried. `attempts` says how often.
128
+ * - `abandoned` — a repair pass gave up on it. Still repairable by a delivery, and the reason is on the row.
129
+ *
130
+ * `failed` and `pending` are one answer here because the difference between them is a repair pass's
131
+ * bookkeeping, and the count beside the state already carries it.
132
+ */
133
+ export type PaymentsWebhookEventReadState = "projected" | "pending" | "abandoned";
134
+ /** Classify one recorded delivery for a management read. Derived from {@link webhookEventState}, never stored. */
135
+ export declare function webhookEventReadState(row: PaymentsWebhookEventProgress): PaymentsWebhookEventReadState;
91
136
  /**
92
137
  * May a redelivery be answered as a duplicate without running anything?
93
138
  *
@@ -112,6 +157,28 @@ export declare function isWebhookEventFinished(state: PaymentsWebhookEventState)
112
157
  * See {@link webhookEventAwaitsOwner} for the reader, and `projection/orphans.ts` for what it is read by.
113
158
  */
114
159
  export declare const WEBHOOK_EVENT_ORPHANED = "orphaned:";
160
+ /**
161
+ * The word the Paddle sweep writes at the head of `error` when it gives up on an event after a bounded number
162
+ * of attempts. Here beside {@link WEBHOOK_EVENT_ORPHANED} rather than private to the sweep, because a reader —
163
+ * {@link webhookEventErrorCode} — names it, and a writer and a reader spelling one word twice drift.
164
+ */
165
+ export declare const WEBHOOK_EVENT_QUARANTINED = "quarantined";
166
+ /**
167
+ * What a management read may say about a stored `error`: **its code, never its sentence**. (#830)
168
+ *
169
+ * The column is operator text, and the sentence after the code is throw-site context — a store's
170
+ * transaction ids, an amount, a SKU — which is exactly what `clientError` strips from every other surface.
171
+ * So the read publishes a classification and nothing more:
172
+ *
173
+ * - the kit error code a projection failure was recorded under (`payments/product_not_found`), and only
174
+ * when the prefix is one the kit's own union defines — so text that merely *looks* like a code is not
175
+ * promoted onto the wire by its shape;
176
+ * - `orphaned` or `quarantined`, the two markers this package writes for itself;
177
+ * - `unclassified` for everything else — a rail's note, prose from an older build.
178
+ *
179
+ * Null when there is no error at all.
180
+ */
181
+ export declare function webhookEventErrorCode(error: string | null | undefined): string | null;
115
182
  /**
116
183
  * Is this event outstanding for want of an owner, rather than for want of anything else?
117
184
  *
@@ -1 +1 @@
1
- {"version":3,"file":"webhookEvent.d.ts","sourceRoot":"","sources":["../../src/data/webhookEvent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAc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AC,GAAG,EAAE,4BAA4B,GAAG,yBAAyB,CAK9F;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,6BAA6B,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;AAElF,kHAAkH;AAClH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,4BAA4B,GAAG,6BAA6B,CAWtG;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAShF;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AAOvD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAOrF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,4BAA4B,GAAG,OAAO,CAGlF;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CASnF"}
@@ -3,10 +3,44 @@
3
3
  import { PaymentsRail } from "./rail.js";
4
4
  import { z } from "zod";
5
5
  import { SQLiteDate, sqliteJson } from "@pithy-sh/core/src/data/codecs";
6
+ import { KitErrorPayload } from "@pithy-sh/core/src/error/payload";
6
7
  //#region src/data/webhookEvent.ts
7
8
  /** A received notification body, as the rail delivered it. Only the envelope is fixed; shapes differ. */
8
9
  const NotificationPayload = z.record(z.string(), z.unknown()).describe("The notification body as received, before any rail-specific interpretation.");
9
10
  /**
11
+ * What one event changed when it projected — every purchase row it wrote, split by whether the row renews.
12
+ *
13
+ * **A list, because one notification can touch several rows.** Lemon Squeezy's refund writes the invoice row
14
+ * and the subscription's standing row from one delivery, and a list of one would have to pick. Split the way
15
+ * the management reads split — `payments:purchases:read` and `payments:subscriptions:read` — so a client
16
+ * holding only the narrower grant can still follow the ids it is allowed to open. Disjoint: a subscription
17
+ * row's id is in `subscriptionIds` and nowhere else.
18
+ *
19
+ * A row the projection read and left alone — an exact replay, an event older than the row — is not a row
20
+ * this event changed, so it is not listed. Two empty lists is a real answer: the event finished and changed
21
+ * nothing. That is a different fact from the column being null, which is an event finished before #830
22
+ * recorded anything.
23
+ */
24
+ const PaymentsWebhookEventTargets = z.object({
25
+ purchaseIds: z.array(z.string()).describe("The purchase rows this event created or moved that do not renew — their own UUIDs."),
26
+ subscriptionIds: z.array(z.string()).describe("The purchase rows this event created or moved that renew — the ids the subscription read lists.")
27
+ }).describe("Every purchase and subscription row one event changed when it projected.");
28
+ /** The `projected_targets` column: the targets as JSON text, Zod-validated on write and on read. */
29
+ const WebhookEventTargetsColumn = sqliteJson(PaymentsWebhookEventTargets);
30
+ /**
31
+ * The column value a finishing writer stores. One encoder for the three writers that finish an event — the
32
+ * webhook, the Paddle sweep, the orphan repair — so they cannot write the JSON three ways, and it goes
33
+ * through the codec the row schema reads it back with.
34
+ */
35
+ function encodeWebhookEventTargets(targets) {
36
+ return WebhookEventTargetsColumn.encode(targets);
37
+ }
38
+ /** The answer for an event that finished and changed nothing — recorded, and empty. */
39
+ const NO_WEBHOOK_EVENT_TARGETS = Object.freeze({
40
+ purchaseIds: [],
41
+ subscriptionIds: []
42
+ });
43
+ /**
10
44
  * One received provider notification — the row in `pithy_payments_webhook_events`, keyed
11
45
  * `UNIQUE (rail, providerEventId)`.
12
46
  *
@@ -49,6 +83,7 @@ const PaymentsWebhookEvent = z.object({
49
83
  abandonedAt: SQLiteDate.nullable().optional().describe("When a repair pass gave up on this event so its stream could advance, or null. Separate from `processedAt` because abandoning is that pass's decision about its own progress and must never answer for a webhook: a later delivery of the same event has to be reprocessed, and fixing the cause has to be able to repair it. Optional because the webhook path never abandons anything and the column defaults to null for it."),
50
84
  error: z.string().nullable().describe("Why this delivery did not project — or, beside a set `processedAt`, why there was never anything to project. Internal text: it is read by an operator and never rendered to a client. Its presence is not the state; the two timestamps are, because an explanation must not be able to change one."),
51
85
  attempts: z.number().int().nonnegative().optional().describe("How many times a repair pass has tried this event and failed. Optional because the webhook path neither retries nor counts, and the column defaults to 0 for it; the sweep uses it to bound how long one unprojectable event may hold the stream up before it is quarantined."),
86
+ projectedTargets: WebhookEventTargetsColumn.nullable().optional().describe("What this event changed when it finished — every purchase and subscription row it wrote — or null when nothing was recorded: an event not finished yet, or one finished before `payments_0003_webhook_targets` added the column. Written by every finishing path, so it is the join from a notification to the rows it explains."),
52
87
  createdAt: SQLiteDate.describe("When this row was written.")
53
88
  }).describe("One received provider notification — the row in `pithy_payments_webhook_events`, the replay source.");
54
89
  /**
@@ -64,6 +99,15 @@ function webhookEventState(row) {
64
99
  if (row.error !== null && row.error !== void 0) return "failed";
65
100
  return "pending";
66
101
  }
102
+ /** Classify one recorded delivery for a management read. Derived from {@link webhookEventState}, never stored. */
103
+ function webhookEventReadState(row) {
104
+ switch (webhookEventState(row)) {
105
+ case "finished": return "projected";
106
+ case "pending":
107
+ case "failed": return "pending";
108
+ case "abandoned": return "abandoned";
109
+ }
110
+ }
67
111
  /**
68
112
  * May a redelivery be answered as a duplicate without running anything?
69
113
  *
@@ -96,6 +140,37 @@ function isWebhookEventFinished(state) {
96
140
  */
97
141
  const WEBHOOK_EVENT_ORPHANED = "orphaned:";
98
142
  /**
143
+ * The word the Paddle sweep writes at the head of `error` when it gives up on an event after a bounded number
144
+ * of attempts. Here beside {@link WEBHOOK_EVENT_ORPHANED} rather than private to the sweep, because a reader —
145
+ * {@link webhookEventErrorCode} — names it, and a writer and a reader spelling one word twice drift.
146
+ */
147
+ const WEBHOOK_EVENT_QUARANTINED = "quarantined";
148
+ /** Every code the kit defines. A prefix is published only when it is one of these. */
149
+ const KIT_ERROR_CODES = new Set(KitErrorPayload.options.map((member) => member.shape.code.value));
150
+ /**
151
+ * What a management read may say about a stored `error`: **its code, never its sentence**. (#830)
152
+ *
153
+ * The column is operator text, and the sentence after the code is throw-site context — a store's
154
+ * transaction ids, an amount, a SKU — which is exactly what `clientError` strips from every other surface.
155
+ * So the read publishes a classification and nothing more:
156
+ *
157
+ * - the kit error code a projection failure was recorded under (`payments/product_not_found`), and only
158
+ * when the prefix is one the kit's own union defines — so text that merely *looks* like a code is not
159
+ * promoted onto the wire by its shape;
160
+ * - `orphaned` or `quarantined`, the two markers this package writes for itself;
161
+ * - `unclassified` for everything else — a rail's note, prose from an older build.
162
+ *
163
+ * Null when there is no error at all.
164
+ */
165
+ function webhookEventErrorCode(error) {
166
+ if (error === null || error === void 0) return null;
167
+ if (error.startsWith("orphaned:")) return "orphaned";
168
+ if (error.startsWith(`quarantined:`)) return "quarantined";
169
+ const colon = error.indexOf(":");
170
+ const head = colon === -1 ? error : error.slice(0, colon);
171
+ return KIT_ERROR_CODES.has(head) ? head : "unclassified";
172
+ }
173
+ /**
99
174
  * Is this event outstanding for want of an owner, rather than for want of anything else?
100
175
  *
101
176
  * The question the relink repair asks, and it is deliberately narrower than "not finished". A quarantined
@@ -127,4 +202,4 @@ function isWebhookEventOutstanding(state) {
127
202
  }
128
203
  }
129
204
  //#endregion
130
- export { PaymentsWebhookEvent, WEBHOOK_EVENT_ORPHANED, isWebhookEventFinished, isWebhookEventOutstanding, webhookEventAwaitsOwner, webhookEventState };
205
+ export { NO_WEBHOOK_EVENT_TARGETS, PaymentsWebhookEvent, PaymentsWebhookEventTargets, WEBHOOK_EVENT_ORPHANED, WEBHOOK_EVENT_QUARANTINED, encodeWebhookEventTargets, isWebhookEventFinished, isWebhookEventOutstanding, webhookEventAwaitsOwner, webhookEventErrorCode, webhookEventReadState, webhookEventState };
@@ -1627,6 +1627,70 @@ export declare const PaymentsAdminUsageRunsResponse: z.ZodObject<{
1627
1627
  nextCursor: z.ZodNullable<z.ZodString>;
1628
1628
  }, z.core.$strip>;
1629
1629
  export type PaymentsAdminUsageRunsResponse = z.output<typeof PaymentsAdminUsageRunsResponse>;
1630
+ /**
1631
+ * One recorded notification, as a management client sees it (#830).
1632
+ *
1633
+ * **What crosses is a classification, never a document.** The provider's payload carries the customer's
1634
+ * details and is not selected; the event's type is read out of it by the database and published only in the
1635
+ * shape of an event name. The stored `error` is the store's or the throw site's sentence, so it crosses as its
1636
+ * code alone — the way a refund refused by the store crosses with no reason.
1637
+ *
1638
+ * New in #830, so every field is required: no Worker answered this route before it existed.
1639
+ */
1640
+ export declare const PaymentsAdminWebhookEventView: z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ rail: z.ZodEnum<{
1643
+ apple: "apple";
1644
+ google: "google";
1645
+ lemonSqueezy: "lemonSqueezy";
1646
+ paddle: "paddle";
1647
+ stripe: "stripe";
1648
+ }>;
1649
+ providerEventId: z.ZodString;
1650
+ eventType: z.ZodNullable<z.ZodString>;
1651
+ receivedAt: z.ZodISODateTime;
1652
+ state: z.ZodEnum<{
1653
+ abandoned: "abandoned";
1654
+ pending: "pending";
1655
+ projected: "projected";
1656
+ }>;
1657
+ attempts: z.ZodNumber;
1658
+ errorCode: z.ZodNullable<z.ZodString>;
1659
+ targets: z.ZodNullable<z.ZodObject<{
1660
+ purchaseIds: z.ZodArray<z.ZodString>;
1661
+ subscriptionIds: z.ZodArray<z.ZodString>;
1662
+ }, z.core.$strip>>;
1663
+ }, z.core.$strip>;
1664
+ export type PaymentsAdminWebhookEventView = z.output<typeof PaymentsAdminWebhookEventView>;
1665
+ /** `GET {base}/admin/webhook-events`. */
1666
+ export declare const PaymentsAdminWebhookEventsResponse: z.ZodObject<{
1667
+ events: z.ZodArray<z.ZodObject<{
1668
+ id: z.ZodString;
1669
+ rail: z.ZodEnum<{
1670
+ apple: "apple";
1671
+ google: "google";
1672
+ lemonSqueezy: "lemonSqueezy";
1673
+ paddle: "paddle";
1674
+ stripe: "stripe";
1675
+ }>;
1676
+ providerEventId: z.ZodString;
1677
+ eventType: z.ZodNullable<z.ZodString>;
1678
+ receivedAt: z.ZodISODateTime;
1679
+ state: z.ZodEnum<{
1680
+ abandoned: "abandoned";
1681
+ pending: "pending";
1682
+ projected: "projected";
1683
+ }>;
1684
+ attempts: z.ZodNumber;
1685
+ errorCode: z.ZodNullable<z.ZodString>;
1686
+ targets: z.ZodNullable<z.ZodObject<{
1687
+ purchaseIds: z.ZodArray<z.ZodString>;
1688
+ subscriptionIds: z.ZodArray<z.ZodString>;
1689
+ }, z.core.$strip>>;
1690
+ }, z.core.$strip>>;
1691
+ nextCursor: z.ZodNullable<z.ZodString>;
1692
+ }, z.core.$strip>;
1693
+ export type PaymentsAdminWebhookEventsResponse = z.output<typeof PaymentsAdminWebhookEventsResponse>;
1630
1694
  /** `GET {base}/admin/purchases`. */
1631
1695
  export declare const PaymentsAdminPurchasesResponse: z.ZodObject<{
1632
1696
  purchases: z.ZodArray<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/http/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;iBAMqD,CAAC;AAC1F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,0GAA0G;AAC1G,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBoE,CAAC;AACtG,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEzE,+BAA+B;AAC/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK+B,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF,2DAA2D;AAC3D,eAAO,MAAM,4BAA4B;;;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CAAC;AAChD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAErG,oCAAoC;AACpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKD,CAAC;AAC3C,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE7F,yFAAyF;AACzF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOG,CAAC;AACnD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAErG,uCAAuC;AACvC,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;iBAKuB,CAAC;AACtE,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAEnG;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BG,CAAC;AACzD,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
@@ -846,6 +846,39 @@ const PaymentsAdminUsageRunsResponse = z.object({
846
846
  runs: z.array(PaymentsAdminUsageRunView).describe("The page, most recently started first."),
847
847
  nextCursor: NextCursor
848
848
  }).describe("A page of the usage-reporting run log.");
849
+ /**
850
+ * One recorded notification, as a management client sees it (#830).
851
+ *
852
+ * **What crosses is a classification, never a document.** The provider's payload carries the customer's
853
+ * details and is not selected; the event's type is read out of it by the database and published only in the
854
+ * shape of an event name. The stored `error` is the store's or the throw site's sentence, so it crosses as its
855
+ * code alone — the way a refund refused by the store crosses with no reason.
856
+ *
857
+ * New in #830, so every field is required: no Worker answered this route before it existed.
858
+ */
859
+ const PaymentsAdminWebhookEventView = z.object({
860
+ id: z.string().describe("The event row's UUID."),
861
+ rail: PaymentsRail.describe("Which store sent the notification."),
862
+ providerEventId: z.string().describe("The store's own id for the notification — what an operator searches the store's dashboard for."),
863
+ eventType: z.string().nullable().describe("The store's name for what happened — `customer.subscription.updated`, `DID_RENEW`, `subscription.4` — or null when the notification names none in that shape."),
864
+ receivedAt: z.iso.datetime().describe("When the notification reached this Worker, ISO-8601."),
865
+ state: z.enum([
866
+ "projected",
867
+ "pending",
868
+ "abandoned"
869
+ ]).describe("`projected` — finished: it became a purchase, or there was nothing in it to become one. `pending` — arrived and not finished; `attempts` says how often it was tried. `abandoned` — a repair pass gave up on it; a later delivery can still project it."),
870
+ attempts: z.number().int().nonnegative().describe("How many times a repair pass tried it and failed. 0 for a delivery nothing retried."),
871
+ errorCode: z.string().nullable().describe("Why it did not project, as a code: a kit error code (`payments/product_not_found`), `orphaned` for a notification nobody could be resolved for, `quarantined` for one a repair pass gave up on, or `unclassified`. Null when nothing went wrong. Never the sentence behind it."),
872
+ targets: z.object({
873
+ purchaseIds: z.array(z.string()).describe("The purchase rows it created or moved that do not renew — ids `payments:purchases:read` lists."),
874
+ subscriptionIds: z.array(z.string()).describe("The rows it created or moved that renew — ids `payments:subscriptions:read` lists.")
875
+ }).nullable().describe("What it changed when it finished. Two empty lists: it finished and changed nothing. Null: nothing recorded — not finished, or finished before the Worker recorded targets.")
876
+ }).describe("One notification a store sent, and what became of it. Never the payload, never an error's sentence.");
877
+ /** `GET {base}/admin/webhook-events`. */
878
+ const PaymentsAdminWebhookEventsResponse = z.object({
879
+ events: z.array(PaymentsAdminWebhookEventView).describe("The page, most recently received first."),
880
+ nextCursor: NextCursor
881
+ }).describe("A page of the webhook-event log.");
849
882
  /** `GET {base}/admin/purchases`. */
850
883
  const PaymentsAdminPurchasesResponse = z.object({
851
884
  purchases: z.array(PaymentsAdminPurchaseView).describe("The page, most recently purchased first."),
@@ -883,4 +916,4 @@ const PaymentsAdminSubjectEntitlementsResponse = z.object({
883
916
  allowances: PaymentsAdminAllowancesView.optional().describe("Every declared quota and feature, resolved for this subject now — effective, provenance, inherited. Absent from a Worker that predates declarations.")
884
917
  }).describe("One subject's entitlements, resolved now.");
885
918
  //#endregion
886
- export { PaymentsAdminAllowancesView, PaymentsAdminCatalogDefaults, PaymentsAdminCatalogEntitlement, PaymentsAdminCatalogProduct, PaymentsAdminCatalogResponse, PaymentsAdminDiscountsResponse, PaymentsAdminEntitlementView, PaymentsAdminEntitlementsResponse, PaymentsAdminFeatureView, PaymentsAdminOverrideListItem, PaymentsAdminOverrideView, PaymentsAdminOverridesResponse, PaymentsAdminPurchaseView, PaymentsAdminPurchasesResponse, PaymentsAdminQuotaView, PaymentsAdminReconcileRunStarted, PaymentsAdminReconcileRunView, PaymentsAdminReconcileRunsResponse, PaymentsAdminSubjectEntitlementsResponse, PaymentsAdminSubscriptionsResponse, PaymentsAdminUsageFindingView, PaymentsAdminUsageRunView, PaymentsAdminUsageRunsResponse, PaymentsAllowanceSource, PaymentsCheckoutHandoffResponse, PaymentsDeferredSubscriptionSettlement, PaymentsDiscountResponse, PaymentsEntitlementResponse, PaymentsEntitlementView, PaymentsEntitlementsResponse, PaymentsOverrideResponse, PaymentsPortalHandoffResponse, PaymentsPricingEnvelope, PaymentsPricingResponse, PaymentsPurchaseResponse, PaymentsPurchaseView, PaymentsQuotedFrom, PaymentsQuotedMoney, PaymentsRefundOutcome, PaymentsRefundRequest, PaymentsRefundRequestStatus, PaymentsRefundResponse, PaymentsRestoreResponse, PaymentsSubscriptionNextEvent, PaymentsSubscriptionQuote, PaymentsSubscriptionQuoteResponse, PaymentsSubscriptionResponse, PaymentsSubscriptionScheduledChange, PaymentsSubscriptionSettlement, PaymentsSubscriptionStandingResponse, PaymentsSubscriptionView, PaymentsWebhookAck };
919
+ export { PaymentsAdminAllowancesView, PaymentsAdminCatalogDefaults, PaymentsAdminCatalogEntitlement, PaymentsAdminCatalogProduct, PaymentsAdminCatalogResponse, PaymentsAdminDiscountsResponse, PaymentsAdminEntitlementView, PaymentsAdminEntitlementsResponse, PaymentsAdminFeatureView, PaymentsAdminOverrideListItem, PaymentsAdminOverrideView, PaymentsAdminOverridesResponse, PaymentsAdminPurchaseView, PaymentsAdminPurchasesResponse, PaymentsAdminQuotaView, PaymentsAdminReconcileRunStarted, PaymentsAdminReconcileRunView, PaymentsAdminReconcileRunsResponse, PaymentsAdminSubjectEntitlementsResponse, PaymentsAdminSubscriptionsResponse, PaymentsAdminUsageFindingView, PaymentsAdminUsageRunView, PaymentsAdminUsageRunsResponse, PaymentsAdminWebhookEventView, PaymentsAdminWebhookEventsResponse, PaymentsAllowanceSource, PaymentsCheckoutHandoffResponse, PaymentsDeferredSubscriptionSettlement, PaymentsDiscountResponse, PaymentsEntitlementResponse, PaymentsEntitlementView, PaymentsEntitlementsResponse, PaymentsOverrideResponse, PaymentsPortalHandoffResponse, PaymentsPricingEnvelope, PaymentsPricingResponse, PaymentsPurchaseResponse, PaymentsPurchaseView, PaymentsQuotedFrom, PaymentsQuotedMoney, PaymentsRefundOutcome, PaymentsRefundRequest, PaymentsRefundRequestStatus, PaymentsRefundResponse, PaymentsRestoreResponse, PaymentsSubscriptionNextEvent, PaymentsSubscriptionQuote, PaymentsSubscriptionQuoteResponse, PaymentsSubscriptionResponse, PaymentsSubscriptionScheduledChange, PaymentsSubscriptionSettlement, PaymentsSubscriptionStandingResponse, PaymentsSubscriptionView, PaymentsWebhookAck };
@@ -52,6 +52,7 @@ import { type RailTrustOptions } from "../rails/providers";
52
52
  * GET /payments/admin/entitlements/:subjectType/:subjectId
53
53
  * → one subject's entitlements (control-plane: payments:entitlements:read) param: AdminSubjectParam
54
54
  * GET /payments/admin/reconcile-runs → the reconciliation run log (control-plane: payments:reconcile:read) query: AdminReconcileRunsQuery
55
+ * GET /payments/admin/webhook-events → every store notification (control-plane: payments:webhooks:read) query: AdminWebhookEventsQuery
55
56
  * GET /payments/admin/discounts → the codes this project issued (control-plane: payments:discounts:read) query: AdminDiscountsQuery
56
57
  * POST /payments/admin/discounts → mint one at a store (control-plane: payments:discounts:create) json: DiscountCreateRequest
57
58
  *
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/http/routes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAY7E,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAa1C,OAAO,EAEL,KAAK,cAAc,EAKpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAGL,KAAK,eAAe,EAGrB,MAAM,iBAAiB,CAAC;AAsBzB,OAAO,EAAE,KAAK,mBAAmB,EAAkD,MAAM,4BAA4B,CAAC;AAUtH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAiB/D,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,oBAAoB,CAAC;AA6FhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AACH,MAAM,WAAW,qBAAqB;IACpC,4BAA4B;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oGAAoG;IACpG,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH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