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

main
ts 18 lines 689 Bytes
Raw
1 import * as lexr from "@distilled.cloud/aws/lex-runtime-v2";
2 import * as Layer from "effect/Layer";
3 import { makeLexAliasHttpBinding } from "./BindingHttp.ts";
4 import { PutSession, type PutSessionRequest } from "./PutSession.ts";
5
6 /**
7 * HTTP implementation of {@link PutSession} — calls the `lex-runtime-v2`
8 * `PutSession` operation with the Lambda role's credentials and grants the
9 * host `lex:PutSession` on the alias.
10 */
11 export const PutSessionHttp = Layer.effect(
12 PutSession,
13 makeLexAliasHttpBinding<PutSessionRequest, lexr.PutSessionResponse, lexr.PutSessionError>({
14 capability: "PutSession",
15 iamActions: ["lex:PutSession"],
16 operation: lexr.putSession,
17 }),
18 );