import type * as ivs from "@distilled.cloud/aws/ivs"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Channel } from "./Channel.ts"; export interface PutMetadataRequest extends Omit { } /** * Runtime binding for `ivs:PutMetadata`. * * Inserts timed metadata (max 1 KB) into the bound {@link Channel}'s * active stream — the payload is embedded in the video and surfaced to * players in sync with playback. Fails with the typed * `ChannelNotBroadcasting` tag when the channel is not live. At most 5 * requests per second per channel. The channel ARN is injected from the * binding. Provide the implementation with * `Effect.provide(AWS.IVS.PutMetadataHttp)`. * ### Embedding Timed Metadata * **Example:** Push a Poll Question to Viewers * ```typescript * // init — bind the operation to the channel * const putMetadata = yield* AWS.IVS.PutMetadata(channel); * * // runtime * yield* putMetadata({ * metadata: JSON.stringify({ question: "Who wins?", options: ["A", "B"] }), * }); * ``` * * @binding */ export interface PutMetadata extends Binding.Service Effect.Effect<(request: PutMetadataRequest) => Effect.Effect>> { } export declare const PutMetadata: PutMetadata; //# sourceMappingURL=PutMetadata.d.ts.map