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.

699 B
Raw Blame
import * as iotw from "@distilled.cloud/aws/iot-wireless";
import * as Layer from "effect/Layer";
import { makeIotWirelessDeviceHttpBinding } from "./BindingHttp.ts";
import {
  SendDataToWirelessDevice,
  type SendDataToWirelessDeviceRequest,
} from "./SendDataToWirelessDevice.ts";

export const SendDataToWirelessDeviceHttp = Layer.effect(
  SendDataToWirelessDevice,
  makeIotWirelessDeviceHttpBinding({
    capability: "SendDataToWirelessDevice",
    iamActions: ["iotwireless:SendDataToWirelessDevice"],
    operation: iotw.sendDataToWirelessDevice,
    prepare: (request: SendDataToWirelessDeviceRequest, wirelessDeviceId) => ({
      ...request,
      Id: wirelessDeviceId,
    }),
  }),
);