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

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