/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; import * as StreamVideo from "../video.defs.js"; const $nsid = "place.stream.media.publishVideo"; export { $nsid }; export const $params = /*#__PURE__*/ l.params(); export type $Params = l.InferOutput; export const $input = /*#__PURE__*/ l.jsonPayload({"uploadId":/*#__PURE__*/ l.string(),"record":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => StreamVideo.main) as any)),"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}))}); export type $Input = l.InferPayload; export type $InputBody = l.InferPayloadBody; export const $output = /*#__PURE__*/ l.jsonPayload({"uri":/*#__PURE__*/ l.string({"format":"at-uri"}),"cid":/*#__PURE__*/ l.string({"format":"cid"})}); export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Publish a place.stream.video record for a finished upload, server-side. The caller supplies the record it would otherwise putRecord itself; the server overrides the fields it is authoritative about (source tracks and durationMs, taken from the processed upload) and, if the record carries no thumb, generates one from the video and attaches it. The record is written to the authenticated user's repo. The caller must own the upload, or hold livestream.manage from its owner; the record is written with the owner's session. Without a record, one is built from the upload's livestream(s) (title, tags, activity, connections) and the given title and description. */ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["UploadNotFound","UploadNotReady"]); export { main }; export const $lxm = $nsid;