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