1import * as kvws from "@distilled.cloud/aws/kinesis-video-webrtc-storage";
2import * as Layer from "effect/Layer";
3import { makeChannelSignalingHttpBinding } from "./BindingHttp.ts";
4import { JoinStorageSession } from "./JoinStorageSession.ts";
5
6export const JoinStorageSessionHttp = Layer.effect(
7 JoinStorageSession,
8 makeChannelSignalingHttpBinding({
9 tag: "AWS.KinesisVideo.JoinStorageSession",
10 // served by the channel's WEBRTC storage endpoint (only available once
11 // media storage is configured for the channel)
12 protocol: "WEBRTC",
13 role: "MASTER",
14 actions: ["kinesisvideo:JoinStorageSession"],
15 key: "channelArn",
16 operation: kvws.joinStorageSession,
17 }),
18);