1import * as Layer from "effect/Layer";
2import {
3 makeReadVectorsClient,
4 makeVectorsHttpBinding,
5 readVectorsActions,
6} from "./BindingHttp.ts";
7import { VectorsRead } from "./VectorsRead.ts";
8
9/**
10 * HTTP implementation of {@link VectorsRead} — calls the S3 Vectors data
11 * plane with the host Function's own credentials, granting only the read
12 * actions (`QueryVectors`, `GetVectors`, `ListVectors`) on the bound index.
13 */
14export const VectorsReadHttp = Layer.effect(
15 VectorsRead,
16 makeVectorsHttpBinding({
17 name: "VectorsRead",
18 actions: readVectorsActions,
19 makeClient: makeReadVectorsClient,
20 }),
21);