| 1 | import * as retail from "@distilled.cloud/gcp/retail_v2"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeServingConfigHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { Search } from "./Search.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link Search}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Retail.Search |
| 11 | */ |
| 12 | export 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 | ); |