/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; const $nsid = "place.stream.media.finalizeLivestream"; export { $nsid }; export const $params = /*#__PURE__*/ l.params(); export type $Params = l.InferOutput; export const $input = /*#__PURE__*/ l.jsonPayload({"livestream":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"at-uri"})),"livestreams":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), )),"title":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":1000})),"description":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"maxLength":10000})),"publish":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false)),"endLivestream":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false))}); export type $Input = l.InferPayload; export type $InputBody = l.InferPayloadBody; export const $output = /*#__PURE__*/ l.jsonPayload({"uploadId":/*#__PURE__*/ l.string(),"draftUri":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"livestreams":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), )),"objects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),"ended":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), ))}); export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Turn a finished livestream into a VOD. The server concatenates the MUXL segments it recorded for the livestream(s) into a single content blob, derives the playback sidecars, and publishes the place.stream.media.track records. By default it leaves a draft VOD the streamer publishes later via place.stream.vod.publishDraft; with publish set it publishes the place.stream.video record as soon as the VOD is finalized. The caller must be the streamer, or a moderator they have granted livestream.manage; every record is written with the streamer's session. */ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["LivestreamNotFound","NoRecording","NotPermitted"]); export { main }; export const $lxm = $nsid;