1import * as retail from "@distilled.cloud/gcp/retail_v2";
2import * as Layer from "effect/Layer";
3import { makeServingConfigHttpBinding } from "./BindingHttp.ts";
4import { Search } from "./Search.ts";
5
6/**
7 * HTTP implementation of {@link Search}.
8 *
9 * @layer
10 * @provides GCP.Retail.Search
11 */
12export const SearchHttp = Layer.effect(
13 Search,
14 makeServingConfigHttpBinding({
15 tag: "GCP.Retail.Search",
16 operation: retail.searchProjectsLocationsCatalogsServingConfigs,
17 iam: { role: "roles/retail.viewer" },
18 }),
19);