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

main
ts 22 lines 633 Bytes
Raw
1 import { UpdateAccount as updateAccountOp } from "@distilled.cloud/stripe/stripe";
2 import * as Layer from "effect/Layer";
3 import { makeHttpStripeIdBinding } from "./StripeHttp.ts";
4 import { UpdateAccount } from "./UpdateAccount.ts";
5
6 /**
7 * HTTP implementation of {@link UpdateAccount}. Provide it on the
8 * Function or Worker Effect.
9 *
10 * @layer
11 * @product Account
12 * @provides Stripe.UpdateAccount
13 */
14 export const UpdateAccountHttp = Layer.effect(
15 UpdateAccount,
16 makeHttpStripeIdBinding({
17 tag: "Stripe.UpdateAccount",
18 operation: updateAccountOp,
19 idField: "account",
20 permissions: ["accounts_write"],
21 }),
22 );