| 1 | import { CreateFileLink as createFileLinkOp } from "@distilled.cloud/stripe/stripe"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { CreateFileLink } from "./CreateFileLink.ts"; |
| 4 | import { makeHttpStripeAccountBinding } from "./StripeHttp.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link CreateFileLink}. Provide it on the |
| 8 | * Function or Worker Effect. |
| 9 | * |
| 10 | * @layer |
| 11 | * @product Files |
| 12 | * @provides Stripe.CreateFileLink |
| 13 | */ |
| 14 | export const CreateFileLinkHttp = Layer.effect( |
| 15 | CreateFileLink, |
| 16 | makeHttpStripeAccountBinding({ |
| 17 | tag: "Stripe.CreateFileLink", |
| 18 | operation: createFileLinkOp, |
| 19 | permissions: ["files_write"], |
| 20 | }), |
| 21 | ); |