@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 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 { GetSession, type GetSessionRequest } from "./GetSession.ts";
5
6 /**
7 * HTTP implementation of {@link GetSession} — calls the `lex-runtime-v2`
8 * `GetSession` operation with the Lambda role's credentials and grants the
9 * host `lex:GetSession` on the alias.
10 */
11 export const GetSessionHttp = Layer.effect(
12 GetSession,
13 makeLexAliasHttpBinding<GetSessionRequest, lexr.GetSessionResponse, lexr.GetSessionError>({
14 capability: "GetSession",
15 iamActions: ["lex:GetSession"],
16 operation: lexr.getSession,
17 }),
18 );