RTCForge API Reference v1.1.1
    Preparing search index...

    Variable SfuRequestSchemaConst

    SfuRequestSchema: ZodDiscriminatedUnion<
        [
            ZodObject<{ type: ZodLiteral<"sfu-caps"> }, $strip>,
            ZodObject<
                {
                    direction: ZodEnum<{ recv: "recv"; send: "send" }>;
                    type: ZodLiteral<"sfu-create-transport">;
                },
                $strip,
            >,
            ZodObject<
                {
                    dtlsParameters: ZodRecord<ZodString, ZodUnknown>;
                    transportId: ZodString;
                    type: ZodLiteral<"sfu-connect-transport">;
                },
                $strip,
            >,
            ZodObject<
                {
                    kind: ZodEnum<{ audio: "audio"; video: "video" }>;
                    rtpParameters: ZodRecord<ZodString, ZodUnknown>;
                    transportId: ZodString;
                    type: ZodLiteral<"sfu-produce">;
                },
                $strip,
            >,
            ZodObject<
                {
                    producerId: ZodString;
                    rtpCapabilities: ZodRecord<ZodString, ZodUnknown>;
                    transportId: ZodString;
                    type: ZodLiteral<"sfu-consume">;
                },
                $strip,
            >,
            ZodObject<
                { consumerId: ZodString; type: ZodLiteral<"sfu-resume-consumer"> },
                $strip,
            >,
        ],
        "type",
    > = ...

    zod schema validating the envelope of every inbound SFU request.