@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 36 lines 1010 Bytes
Raw
1 import type {
2 FileLink as StripeFileLink,
3 CreateFileLinkError,
4 CreateFileLinkRequest,
5 } from "@distilled.cloud/stripe/stripe";
6 import * as Binding from "alchemy/Binding";
7 import type { RuntimeContext } from "alchemy/RuntimeContext";
8 import type * as Effect from "effect/Effect";
9
10 /**
11 * Create a Stripe File Link over HTTP. Account-scoped — binds the API key
12 * onto the host, not a specific file link resource.
13 *
14 * ### Creating a File Link at runtime
15 * **Example:** Bind and create
16 * ```typescript
17 * const create = yield* Stripe.CreateFileLink();
18 * const link = yield* create({
19 * file: "file_123",
20 * });
21 * ```
22 *
23 * @binding
24 * @product Files
25 */
26 export interface CreateFileLink extends Binding.Service<
27 CreateFileLink,
28 "Stripe.CreateFileLink",
29 () => Effect.Effect<
30 (
31 request: CreateFileLinkRequest,
32 ) => Effect.Effect<StripeFileLink, CreateFileLinkError, RuntimeContext>
33 >
34 > {}
35
36 export const CreateFileLink = Binding.Service<CreateFileLink>("Stripe.CreateFileLink");