Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

694 B
Raw Blame
import * as sitewise from "@distilled.cloud/aws/iotsitewise";
import * as Layer from "effect/Layer";
import { makeSiteWiseAssetHttpBinding } from "./BindingHttp.ts";
import {
  GetAssetPropertyAggregates,
  type GetAssetPropertyAggregatesRequest,
} from "./GetAssetPropertyAggregates.ts";

export const GetAssetPropertyAggregatesHttp = Layer.effect(
  GetAssetPropertyAggregates,
  makeSiteWiseAssetHttpBinding({
    capability: "GetAssetPropertyAggregates",
    iamActions: ["iotsitewise:GetAssetPropertyAggregates"],
    operation: sitewise.getAssetPropertyAggregates,
    prepare: (request: GetAssetPropertyAggregatesRequest, assetId) => ({
      ...request,
      assetId,
    }),
  }),
);