The best way to control Claude Code, Codex and more from any computer or phone

main
ts 21 lines 568 Bytes
Raw
1 import { GetBillingAlert } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { RetrieveAlert } from "./RetrieveAlert.ts";
4 import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
5
6 /**
7 * HTTP implementation of {@link RetrieveAlert}.
8 *
9 * @layer
10 * @product Billing
11 * @provides Stripe.RetrieveAlert
12 */
13 export const RetrieveAlertHttp = Layer.effect(
14 RetrieveAlert,
15 makeHttpStripeIdBinding({
16 tag: "Stripe.RetrieveAlert",
17 operation: GetBillingAlert,
18 idField: "id",
19 permissions: ["billing_meters_read"],
20 }),
21 );