@nodaro/sdk 2.76.0 → 2.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HUYI5G3D.js → chunk-3NG4HPM5.js} +2 -2
- package/dist/{chunk-HUYI5G3D.js.map → chunk-3NG4HPM5.js.map} +1 -1
- package/dist/chunk-5QNCWXKG.cjs +22 -0
- package/dist/chunk-5QNCWXKG.cjs.map +1 -0
- package/dist/{chunk-IO7NEEZZ.cjs → chunk-6BPQYCUG.cjs} +54 -3
- package/dist/chunk-6BPQYCUG.cjs.map +1 -0
- package/dist/{chunk-TZFZDEWI.js → chunk-6ZKW7767.js} +54 -3
- package/dist/chunk-6ZKW7767.js.map +1 -0
- package/dist/{chunk-7PMOXQEO.cjs → chunk-7WVQZPUW.cjs} +51 -8
- package/dist/chunk-7WVQZPUW.cjs.map +1 -0
- package/dist/{chunk-GIQDM2MH.js → chunk-C3H3V5PN.js} +2 -2
- package/dist/{chunk-GIQDM2MH.js.map → chunk-C3H3V5PN.js.map} +1 -1
- package/dist/{chunk-CSNYBGHP.js → chunk-D45ATYCE.js} +2 -2
- package/dist/chunk-D45ATYCE.js.map +1 -0
- package/dist/{chunk-A3XA6UNM.cjs → chunk-FQHMDWSP.cjs} +2 -2
- package/dist/{chunk-A3XA6UNM.cjs.map → chunk-FQHMDWSP.cjs.map} +1 -1
- package/dist/{chunk-SGVTZ2J5.cjs → chunk-G6ASA5RQ.cjs} +18 -18
- package/dist/{chunk-SGVTZ2J5.cjs.map → chunk-G6ASA5RQ.cjs.map} +1 -1
- package/dist/{chunk-UPWAODYT.cjs → chunk-H6ZB7WYE.cjs} +26 -2
- package/dist/chunk-H6ZB7WYE.cjs.map +1 -0
- package/dist/{chunk-SGVJUVFD.cjs → chunk-HEJE6L3E.cjs} +3 -3
- package/dist/{chunk-SGVJUVFD.cjs.map → chunk-HEJE6L3E.cjs.map} +1 -1
- package/dist/{chunk-FOC4VPGK.js → chunk-IAHNPMIX.js} +3 -3
- package/dist/{chunk-FOC4VPGK.js.map → chunk-IAHNPMIX.js.map} +1 -1
- package/dist/{chunk-U2F6IHHY.js → chunk-JCLJRCMR.js} +10 -10
- package/dist/{chunk-U2F6IHHY.js.map → chunk-JCLJRCMR.js.map} +1 -1
- package/dist/{chunk-KNBZFWVO.cjs → chunk-JIFGF6PA.cjs} +13 -2
- package/dist/chunk-JIFGF6PA.cjs.map +1 -0
- package/dist/chunk-NDX4QUTI.js +3 -0
- package/dist/{chunk-CHZBONJJ.js.map → chunk-NDX4QUTI.js.map} +1 -1
- package/dist/{chunk-GWL4O3J2.js → chunk-PNTVCJZV.js} +13 -2
- package/dist/chunk-PNTVCJZV.js.map +1 -0
- package/dist/{chunk-AOHDYZSZ.js → chunk-QV4QD6XI.js} +26 -2
- package/dist/chunk-QV4QD6XI.js.map +1 -0
- package/dist/{chunk-6NIKAVI3.cjs → chunk-STKXUHEM.cjs} +2 -2
- package/dist/chunk-STKXUHEM.cjs.map +1 -0
- package/dist/{chunk-57GANTLV.cjs → chunk-USBDYHSO.cjs} +2 -2
- package/dist/{chunk-57GANTLV.cjs.map → chunk-USBDYHSO.cjs.map} +1 -1
- package/dist/{chunk-OO4AKYUN.js → chunk-VPBPVDKY.js} +52 -10
- package/dist/chunk-VPBPVDKY.js.map +1 -0
- package/dist/{chunk-D3F2BWD6.cjs → chunk-VZCCECKW.cjs} +2 -2
- package/dist/{chunk-D3F2BWD6.cjs.map → chunk-VZCCECKW.cjs.map} +1 -1
- package/dist/chunk-YPZCTRFB.js +12 -0
- package/dist/chunk-YPZCTRFB.js.map +1 -0
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +1 -1
- package/dist/entries/cast-swap.d.ts +1 -1
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/characters.d.cts +2 -1
- package/dist/entries/characters.d.ts +2 -1
- package/dist/entries/client.cjs +14 -14
- package/dist/entries/client.d.cts +2 -2
- package/dist/entries/client.d.ts +2 -2
- package/dist/entries/client.js +9 -9
- package/dist/entries/core.cjs +5 -5
- package/dist/entries/core.js +1 -1
- package/dist/entries/creatures.cjs +6 -6
- package/dist/entries/creatures.d.cts +2 -3
- package/dist/entries/creatures.d.ts +2 -3
- package/dist/entries/creatures.js +1 -1
- package/dist/entries/edit.cjs +12 -8
- package/dist/entries/edit.d.cts +272 -71
- package/dist/entries/edit.d.ts +272 -71
- package/dist/entries/edit.js +2 -2
- package/dist/entries/locations.d.cts +2 -1
- package/dist/entries/locations.d.ts +2 -1
- package/dist/entries/media.cjs +2 -2
- package/dist/entries/media.d.cts +68 -2
- package/dist/entries/media.d.ts +68 -2
- package/dist/entries/media.js +1 -1
- package/dist/entries/nodes.cjs +9 -5
- package/dist/entries/nodes.d.cts +3 -2
- package/dist/entries/nodes.d.ts +3 -2
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/objects.cjs +6 -6
- package/dist/entries/objects.d.cts +2 -3
- package/dist/entries/objects.d.ts +2 -3
- package/dist/entries/objects.js +1 -1
- package/dist/entries/scene3d.d.cts +3 -2
- package/dist/entries/scene3d.d.ts +3 -2
- package/dist/entries/trends.cjs +2 -2
- package/dist/entries/trends.d.cts +36 -17
- package/dist/entries/trends.d.ts +36 -17
- package/dist/entries/trends.js +1 -1
- package/dist/entries/video-remake.cjs +2 -2
- package/dist/entries/video-remake.d.cts +1 -1
- package/dist/entries/video-remake.d.ts +1 -1
- package/dist/entries/video-remake.js +1 -1
- package/dist/index.cjs +48 -40
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -11
- package/dist/{nodes-BaRqRB2Z.d.ts → nodes-C6e2wign.d.ts} +86 -8
- package/dist/{nodes-BHtjh6gl.d.cts → nodes-D71Ec9b5.d.cts} +86 -8
- package/dist/{video-remake-C-KR7YtT.d.ts → video-remake-CnnJMGwj.d.ts} +166 -5
- package/dist/{video-remake-DTuCyhd9.d.cts → video-remake-EHwCWlUW.d.cts} +166 -5
- package/package.json +3 -3
- package/dist/chunk-6NIKAVI3.cjs.map +0 -1
- package/dist/chunk-7PMOXQEO.cjs.map +0 -1
- package/dist/chunk-AOHDYZSZ.js.map +0 -1
- package/dist/chunk-CHZBONJJ.js +0 -3
- package/dist/chunk-CSNYBGHP.js.map +0 -1
- package/dist/chunk-GWL4O3J2.js.map +0 -1
- package/dist/chunk-IO7NEEZZ.cjs.map +0 -1
- package/dist/chunk-KNBZFWVO.cjs.map +0 -1
- package/dist/chunk-OO4AKYUN.js.map +0 -1
- package/dist/chunk-RKYZY6NA.cjs +0 -16
- package/dist/chunk-RKYZY6NA.cjs.map +0 -1
- package/dist/chunk-TZFZDEWI.js.map +0 -1
- package/dist/chunk-UPWAODYT.cjs.map +0 -1
- package/dist/chunk-WFFVCGNU.js +0 -3
- package/dist/chunk-WFFVCGNU.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/edit-use-case-inputs.ts","../src/resources/edit-podcast-pack.ts","../src/resources/edit.ts"],"names":["USE_CASE_NODE_TYPES"],"mappings":";;;;;;AAwIO,IAAM,eAAA,GAAkB,CAAC,MAAA,EAAQ,KAAA,EAAO,OAAO,MAAM;AA4BrD,IAAM,wBAAA,GAA2B;AACjC,IAAM,wBAAA,GAA2B;AA4GjC,SAAS,eAAiD,KAAA,EAAmC;AAClG,EAAA,MAAM,EAAE,QAAA,EAAU,SAAA,EAAW,gBAAgB,OAAA,EAAS,GAAG,MAAK,GAAI,KAAA;AAClE,EAAA,IAAI,aAAa,MAAA,IAAa,SAAA,KAAc,QAAW,MAAM,IAAI,UAAU,sCAAsC,CAAA;AACjH,EAAA,MAAM,aAAa,SAAA,KAAc,QAAA,KAAa,MAAA,GAAY,CAAC,QAAQ,CAAA,GAAI,MAAA,CAAA;AACvE,EAAA,IAAI,CAAC,UAAA,EAAY,MAAM,IAAI,UAAU,4BAA4B,CAAA;AACjE,EAAA,OAAO;AAAA,IACL,SAAA,EAAW,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AA,QAC1D,GAAI,MAAM,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,KAAA,CAAM,SAAA,EAAU,GAAI,EAAC;AAAA,QACtE,GAAI,MAAM,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,KAAA,CAAM,SAAA,EAAU,GAAI,EAAC;AAAA,QACtE,GAAI,MAAM,WAAA,KAAgB,MAAA,GAAY,EAAE,WAAA,EAAa,KAAA,CAAM,WAAA,EAAY,GAAI,EAAC;AAAA,QAC5E,GAAI,MAAM,UAAA,KAAe,MAAA,GAAY,EAAE,UAAA,EAAY,KAAA,CAAM,UAAA,EAAW,GAAI;AAAC;AAC3E,KACD,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,eAAA,CAAgB,KAAU,UAAA,EAAoC;AAC5D,IAAA,OAAO,yBAAA,CAA0B,KAAK,UAAU,CAAA;AAAA,EAClD;AACF","file":"chunk-VPBPVDKY.js","sourcesContent":["/**\n * The inputs of the podcast use-case runs on the `edit` resource (Tighten\n * Episode, Chapters, Trailer, Clip Pack, Speaker Layout) and the request body each one sends.\n * Split from `edit.ts`, which holds the methods, the type list and the\n * continue routes; every name here is re-exported from there.\n */\nimport type { EditPlanTier, EdlTargetAspect, SpeakerEmphasisStyle, SpeakerSwitchId } from \"@nodaro/shared/edl\"\nimport type { CaptionStyle } from \"@nodaro/shared/captions\"\n\n/**\n * The recordings of a use-case run: one (`mediaUrl`), or the recordings of one\n * conversation (`mediaUrls`, in order — the cameras; one may be sound only),\n * an optional Master audio and the Cameras settings. Pass `mediaUrl` or\n * `mediaUrls`, not both.\n *\n * Several recordings or a Master audio need Speaker Map, which tells who is on\n * which camera: where it is not available to you the\n * request is refused `403 node_not_available` — send one recording.\n */\nexport interface UseCaseRecordingsInput {\n /** The recording — a video or audio URL, up to 3 hours. */\n mediaUrl?: string\n /**\n * Instead of `mediaUrl`: the recordings of one conversation, in order — up\n * to six in all with the Master audio; without one, two or more cameras keep\n * a place for the sound, so up to five. With two or more the run lines them\n * up, works out who is on which camera and cuts to whoever is talking.\n */\n mediaUrls?: string[]\n /** The mixer or recorder track: the episode's sound and the clock the recordings are lined up to. */\n masterAudioUrl?: string\n /** With several recordings or a Master audio: the Cameras settings (ignored with one recording and no Master audio). */\n cameras?: {\n /** Which recording (1-based) is the wide shot, shown when a speaker has no camera of their own; `null` for none. */\n wide?: number | null\n /** The recordings already share one clock: skip lining them up. */\n synced?: boolean\n /** Who is on which camera: speaker number (`\"1\"` = the first voice heard) → recording number, 0 = the wide shot. Overrides the automatic map. */\n speakerCameras?: Record<string, number>\n }\n}\n\n/**\n * Input for {@link EditResource.tightenEpisode} and\n * {@link EditResource.estimateTightenEpisode}: the recording (or the\n * recordings of one conversation, see {@link UseCaseRecordingsInput}) in, the\n * tightened episode out. Only the recording is required; every other field\n * left out takes the node's default.\n */\nexport interface TightenEpisodeInput extends UseCaseRecordingsInput {\n /** Optional music bed, ducked under the voice and ending with the episode. */\n musicUrl?: string\n /** `\"video\"` or `\"audio\"`; an audio recording always makes an audio episode. */\n output?: \"video\" | \"audio\"\n /**\n * Frame a video episode with Speaker View: an output aspect and a layout,\n * over automatic boxes on the speakers on screen. A layout the aspect does\n * not draw is snapped to one it does. `null` or absent: no framing.\n */\n framing?: {\n aspect: EdlTargetAspect\n layout: \"auto\" | \"single\" | \"side-by-side\" | \"stacked\" | \"grid\" | \"pip\"\n } | null\n /**\n * With a framing, how it follows the speakers: `\"static\"` (the default)\n * splits the frame evenly by speaker; `\"tracking\"` follows faces with\n * Speaker Frames (charged per started block of 1,000 sampled frames; a\n * camera shared by several speakers keeps the even split until faces are\n * named; refused 403 where Speaker Frames is not available to the caller);\n * `\"auto\"` follows faces while Speaker Frames is available to the caller,\n * else the even split. Ignored without a framing.\n */\n framingSource?: \"auto\" | \"static\" | \"tracking\"\n /** Captions on a video episode (on by default). */\n captions?: boolean\n /** The captions' look. */\n captionStyle?: CaptionStyle\n /**\n * Stop at a quick preview for a person to review; render the full-quality\n * episode afterwards with {@link EditResource.continueUseCase}\n * (`mode: \"render-final\"`).\n */\n reviewBeforeRender?: boolean\n /** The planner's tier. */\n planTier?: EditPlanTier\n /** Editing instructions for the planner (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n /** How far the music dips under the voice, 0–100 (default 75). */\n musicDuckAmount?: number\n /**\n * How tightly the pauses are cut. `\"light\"` shortens pauses over 600 ms to\n * 350 ms, `\"standard\"` (the default) pauses over 350 ms to 220 ms, and\n * `\"tight\"` pauses over 250 ms to 150 ms. A pause is never cut away whole,\n * and a shorter one is left as it is.\n */\n tightness?: \"light\" | \"standard\" | \"tight\"\n /** See {@link UseCaseSpeakerNamesInput.speakerNames}. */\n speakerNames?: UseCaseSpeakerNamesInput[\"speakerNames\"]\n}\n\n/**\n * The speakers' names a Tighten Episode or Speaker Layout run reports back.\n */\nexport interface UseCaseSpeakerNamesInput {\n /**\n * Speaker label (as the run's transcript names them, e.g. `\"speaker_0\"`) →\n * the name to show (up to 80 characters; at most 32 speakers). The job keeps\n * them and the finished job's `output_data.speakers[].name` carries them\n * (`TightenEpisodeOutputData`, `SpeakerLayoutOutputData`); the\n * run itself never reads them, so nothing is renamed in the captions, the\n * transcript or the edit. A name is trimmed and a blank one dropped; a\n * label nobody in the recording has is ignored. A continuation keeps them.\n */\n speakerNames?: Record<string, string>\n}\n\n/**\n * Input for {@link EditResource.episodeChapters} and\n * {@link EditResource.estimateEpisodeChapters}: one recording in, its chapters\n * out. Only `mediaUrl` is required; every other field left out takes the\n * node's default.\n */\nexport interface EpisodeChaptersInput {\n /** The recording — a video or audio URL, up to 3 hours. */\n mediaUrl: string\n /** The planner's tier (default `\"economy\"`). */\n planTier?: EditPlanTier\n /** Instructions for the chapters, e.g. \"5 to 8 chapters\" (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the chapter titles (up to 4 000 characters). */\n styleGuide?: string\n}\n\n/** The formats a Trailer is delivered in, in delivery order (16:9 is a 1920×1080 landscape). */\nexport const TRAILER_FORMATS = [\"9:16\", \"1:1\", \"4:5\", \"16:9\"] as const\n/** One Trailer format (see {@link TRAILER_FORMATS}). */\nexport type TrailerFormat = (typeof TRAILER_FORMATS)[number]\n\n/**\n * Input for {@link EditResource.episodeTrailer} and\n * {@link EditResource.estimateEpisodeTrailer}: one video recording (or the\n * recordings of one conversation, see {@link UseCaseRecordingsInput}) in, a\n * 20–40 s trailer out in each chosen format. Only the recording is required.\n */\nexport interface EpisodeTrailerInput extends UseCaseRecordingsInput {\n /** The recording — a video URL, up to 3 hours (a run with no picture is refused). Or `mediaUrls`. */\n mediaUrl?: string\n /** An optional intro card: a short video (15 s at most) played before the trailer. */\n introCardUrl?: string\n /** The formats to deliver, padded, never cropped (default `[\"9:16\", \"1:1\", \"4:5\"]`; an empty list, or one that names a format twice, is refused `400 validation_error`). */\n formats?: TrailerFormat[]\n /** Stop at a preview of the trailer; render every format with {@link EditResource.continueUseCase} (`mode: \"render-final\"`). */\n reviewBeforeRender?: boolean\n /** The planner's tier (default `\"standard\"`). */\n planTier?: EditPlanTier\n /** Instructions for the trailer (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n}\n\n/** The shortest and longest clip a Clip Pack asks the plan for, in seconds. */\nexport const CLIP_PACK_MIN_TARGET_SEC = 5\nexport const CLIP_PACK_MAX_TARGET_SEC = 180\n\n/**\n * A Clip Pack emphasis: `\"none\"`, or one or more of `\"scale\"`, `\"border\"` and\n * `\"dim\"` joined with `\"+\"` (each once — the route refuses a repeat).\n */\nexport type ClipPackEmphasis = SpeakerEmphasisStyle | `${Exclude<SpeakerEmphasisStyle, \"none\">}+${string}`\n\n/**\n * Input for {@link EditResource.clipPack} and\n * {@link EditResource.estimateClipPack}: the recording (or the recordings of\n * one conversation, see {@link UseCaseRecordingsInput} — each clip then cuts\n * to whoever is talking) in, a pack of short clips out. An audio recording\n * makes audio clips (no framing, no captions). Only the recording is\n * required; every other field left out takes the node's default.\n */\nexport interface ClipPackInput extends UseCaseRecordingsInput {\n /** How many clips to find, 1–50 (default 8). The plan may find fewer. */\n count?: number\n /** Each clip's target length in seconds, {@link CLIP_PACK_MIN_TARGET_SEC}–{@link CLIP_PACK_MAX_TARGET_SEC} (default 60). */\n targetDurationSec?: number\n /**\n * Frame each video clip with Speaker View on automatic boxes over the\n * episode's speakers: the shape, and optionally the layout (default\n * `\"stacked\"`; one the shape does not draw is snapped), the switch at each\n * speaker change (default `\"pan\"`) and the emphasis (default `\"scale\"`;\n * `\"none\"`, or `\"scale\"`, `\"border\"` and `\"dim\"` joined with `\"+\"`). Left\n * out: 9:16, stacked, pan, scale. `null`: no framing (the recording's shape).\n */\n framing?: {\n aspect: EdlTargetAspect\n layout?: \"auto\" | \"single\" | \"side-by-side\" | \"stacked\" | \"grid\" | \"pip\"\n switchType?: SpeakerSwitchId\n emphasisStyle?: ClipPackEmphasis\n } | null\n /**\n * With a framing, how it follows the speakers: `\"static\"` splits the frame\n * evenly by speaker (what a request that leaves this out gets); `\"tracking\"`\n * runs Speaker Frames once over the whole pack to follow faces (charged per\n * started block of 1,000 sampled frames; refused 403 where Speaker Frames is\n * not available to the caller); `\"auto\"` follows faces while Speaker Frames\n * is available to the caller, else the even split. Ignored without a framing.\n */\n framingSource?: \"auto\" | \"static\" | \"tracking\"\n /** Caption each video clip (on by default). */\n captions?: boolean\n /** The captions' look (default `\"karaoke\"`). */\n captionStyle?: CaptionStyle\n /**\n * Stop at quick previews of the clips for a person to review; render the\n * kept clips at full quality with {@link EditResource.continueUseCase}\n * (`mode: \"render-final\"`, an `editedEdl` that keeps or drops clips).\n */\n reviewBeforeRender?: boolean\n /** The planner's tier (default `\"standard\"`). */\n planTier?: EditPlanTier\n /** Instructions for picking the clips (up to 4 000 characters). */\n instructions?: string\n /** A style guide for the planner (up to 4 000 characters). */\n styleGuide?: string\n}\n\n/**\n * Input for {@link EditResource.speakerLayout} and\n * {@link EditResource.estimateSpeakerLayout}: one video recording (or the\n * recordings of one conversation, see {@link UseCaseRecordingsInput}) in, the\n * whole recording framed by speaker out — the same length, nothing cut. Only\n * the recording is required; every other field left out takes the node's\n * default.\n */\nexport interface SpeakerLayoutInput extends UseCaseRecordingsInput {\n /** The recording — a video URL, up to 3 hours (an audio-only recording is refused). Or `mediaUrls`. */\n mediaUrl?: string\n /** The video's shape (default `\"9:16\"`). With one recording, a video already as narrow as the shape (or narrower) is refused `400 media_shape`. */\n targetAspect?: EdlTargetAspect\n /** How the speakers are laid out (default `\"stacked\"`; one the shape does not draw is snapped to one it does). */\n layout?: \"auto\" | \"single\" | \"side-by-side\" | \"stacked\" | \"grid\" | \"pip\"\n /** The switch at each speaker change (default `\"cut\"`). */\n switchType?: SpeakerSwitchId\n /** How the speaker talking is emphasised (default `\"scale\"`): `\"none\"`, or `\"scale\"`, `\"border\"` and `\"dim\"` joined with `\"+\"`. */\n emphasisStyle?: ClipPackEmphasis\n /**\n * How the speakers are followed: `\"auto\"` (the default) follows faces with\n * Speaker Frames while it is available to the caller, else splits the frame\n * evenly; `\"static\"` splits the frame evenly by speaker; `\"tracking\"`\n * follows faces (charged per started block of 1,000 sampled frames;\n * refused 403 where Speaker Frames is not available to the caller). Faces\n * aren't named after a speaker yet, so a camera shared by several speakers\n * keeps the even split.\n */\n framingSource?: \"auto\" | \"static\" | \"tracking\"\n /**\n * Stop at a quick preview for a person to review; render it at full\n * quality with {@link EditResource.continueUseCase}\n * (`mode: \"render-final\"`, no `editedEdl`: the layout has no cut to change).\n */\n reviewBeforeRender?: boolean\n /** See {@link UseCaseSpeakerNamesInput.speakerNames}. */\n speakerNames?: UseCaseSpeakerNamesInput[\"speakerNames\"]\n}\n\n/**\n * The body's recordings (`mediaUrls`, then `masterAudioUrl` and `cameras` when\n * given), and the rest of the input as it came: the one mapper every use-case\n * body goes through (the podcast pack's too, edit-podcast-pack.ts). Throws\n * before any request when the input names both `mediaUrl` and `mediaUrls`, or\n * neither.\n */\nexport function withRecordings<T extends UseCaseRecordingsInput>(input: T): Record<string, unknown> {\n const { mediaUrl, mediaUrls, masterAudioUrl, cameras, ...rest } = input\n if (mediaUrl !== undefined && mediaUrls !== undefined) throw new TypeError(\"pass mediaUrl or mediaUrls, not both\")\n const recordings = mediaUrls ?? (mediaUrl !== undefined ? [mediaUrl] : undefined)\n if (!recordings) throw new TypeError(\"pass mediaUrl or mediaUrls\")\n return {\n mediaUrls: [...recordings],\n ...(masterAudioUrl !== undefined ? { masterAudioUrl } : {}),\n ...(cameras !== undefined ? { cameras } : {}),\n ...Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== undefined)),\n }\n}\n\n/**\n * Sends `send` the body `build` makes, or rejects (never throws) with the\n * error of an input the body cannot take — before any request, as every input\n * check of the `edit` resource rejects.\n */\nexport function withUseCaseBody<T>(build: () => Record<string, unknown>, send: (body: Record<string, unknown>) => Promise<T>): Promise<T> {\n let body: Record<string, unknown>\n try {\n body = build()\n } catch (err) {\n return Promise.reject(err)\n }\n return send(body)\n}\n\nexport function tightenBody(input: TightenEpisodeInput): Record<string, unknown> {\n return withRecordings(input)\n}\n\nexport function chaptersBody(input: EpisodeChaptersInput): Record<string, unknown> {\n return withRecordings({\n mediaUrl: input.mediaUrl,\n ...(input.planTier !== undefined ? { planTier: input.planTier } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n })\n}\n\nexport function trailerBody(input: EpisodeTrailerInput): Record<string, unknown> {\n return withRecordings({\n mediaUrl: input.mediaUrl,\n mediaUrls: input.mediaUrls,\n masterAudioUrl: input.masterAudioUrl,\n cameras: input.cameras,\n ...(input.introCardUrl !== undefined ? { introCardUrl: input.introCardUrl } : {}),\n // An empty list is sent as is: the route refuses it (at least one format).\n ...(input.formats !== undefined ? { formats: input.formats } : {}),\n ...(input.reviewBeforeRender !== undefined ? { reviewBeforeRender: input.reviewBeforeRender } : {}),\n ...(input.planTier !== undefined ? { planTier: input.planTier } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n })\n}\n\n/** Clip Pack's body: what the caller set, `framing: null` included (no framing). */\nexport function clipPackBody(input: ClipPackInput): Record<string, unknown> {\n return withRecordings(input)\n}\n\n/** Speaker Layout's body: the recordings, then what the caller set. */\nexport function speakerLayoutBody(input: SpeakerLayoutInput): Record<string, unknown> {\n return withRecordings(input)\n}\n","/**\n * The podcast pack on the `edit` resource (`POST /v1/podcast-pack`): several\n * podcast tools on one recording, for one price. Its input (the recording\n * once, and each tool's own settings), the body it sends and what it answers.\n * Split from `edit.ts`, which holds the methods; every name here is\n * re-exported from there.\n */\nimport { USE_CASE_NODE_TYPES, type UseCaseNodeType } from \"@nodaro/shared/nodes\"\nimport type { EditJobResult, EditResource } from \"./edit.js\"\nimport {\n withRecordings,\n type UseCaseRecordingsInput,\n type UseCaseSpeakerNamesInput,\n} from \"./edit-use-case-inputs.js\"\n\n/** The tools a podcast pack can run, in the order the pack starts them. */\nexport const PODCAST_PACK_TOOLS: readonly UseCaseNodeType[] = USE_CASE_NODE_TYPES\n\n/** One tool a podcast pack can run (see {@link PODCAST_PACK_TOOLS}). */\nexport type PodcastPackTool = (typeof PODCAST_PACK_TOOLS)[number]\n\n/**\n * The fields a tool's settings leave out in a pack: the recording and the\n * speakers' names belong to the pack, sent once for every tool.\n */\nexport type PodcastPackRecordingField = keyof UseCaseRecordingsInput | keyof UseCaseSpeakerNamesInput\n\n/** A tool's type spelled as its method's name: `tighten-episode` → `tightenEpisode`. */\ntype MethodNameOf<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<MethodNameOf<Tail>>}` : S\n\n/**\n * Each tool's settings in a pack: what its own method takes (`tightenEpisode`,\n * `episodeChapters`, …), without the recording fields — read from the method\n * itself, so a tool and its settings never drift (a tool with no method of its\n * own fails to type here).\n */\nexport type PodcastPackToolSettings = EveryPackToolHasAMethod extends true\n ? { [T in PodcastPackTool]: Omit<ToolInputOf<T>, PodcastPackRecordingField> }\n : never\n\n/** What a tool's own method takes as its input. */\ntype ToolInputOf<T extends PodcastPackTool> = EditResource[MethodNameOf<T> & keyof EditResource] extends (input: infer I, ...rest: never[]) => unknown ? I : never\n\n/** Every tool has a method of its own: a type with none fails to compile here. */\ntype AssertTrue<T extends true> = T\ntype EveryPackToolHasAMethod = AssertTrue<{ [T in PodcastPackTool]: MethodNameOf<T> extends keyof EditResource ? true : false }[PodcastPackTool]>\n\n/** The tools a pack runs, each with its settings (`{}` takes the tool's defaults). */\nexport type PodcastPackTools = { [T in PodcastPackTool]?: PodcastPackToolSettings[T] }\n\n/**\n * Input for {@link EditResource.podcastPack} and\n * {@link EditResource.estimatePodcastPack}: the recording (or the recordings\n * of one conversation, see {@link UseCaseRecordingsInput}) once, and the tools\n * to run on it. Each tool refuses in a pack what it refuses on its own (Chapters\n * takes one recording, Trailer and Speaker Layout need a picture).\n */\nexport interface PodcastPackInput extends UseCaseRecordingsInput {\n /**\n * The tools to run, at least one (an empty object is refused `400\n * validation_error`). A tool's settings are what its own method takes,\n * without the recording.\n */\n tools: PodcastPackTools\n /**\n * Speaker label → the name to show (see\n * {@link UseCaseSpeakerNamesInput.speakerNames}); passed only to the tools\n * that take it (Tighten Episode, Speaker Layout).\n */\n speakerNames?: UseCaseSpeakerNamesInput[\"speakerNames\"]\n /** A workflow (its id) to tie the pack's job and its tools' runs to. */\n workflowId?: string\n /** With `workflowId`: the node on it. */\n nodeId?: string\n}\n\n/** One tool of a pack that started: its own run, followed by its own job. */\nexport interface PodcastPackToolRun {\n tool: PodcastPackTool\n /** The tool's job: the same job its own method answers. Follow it with `client.jobs.getStatus(jobId)`. */\n jobId: string\n /** The tool's run. */\n executionId: string | null\n}\n\n/** One tool of a pack that did not start, and why. */\nexport interface PodcastPackNotStarted {\n tool: PodcastPackTool\n error: { code: string; message: string; tool?: PodcastPackTool }\n}\n\n/**\n * What a pack's job holds once its tools have started (its `output_data`),\n * and what {@link EditResource.podcastPack} answers beside the pack's `jobId`.\n */\nexport interface PodcastPackOutputData {\n /** The tools that started, in the pack's order. */\n tools: PodcastPackToolRun[]\n /** The tools that did not start (absent when every tool started). */\n notStarted?: PodcastPackNotStarted[]\n /** The recording's length, in seconds. */\n durationSec: number\n /** The units the pack is charged: every started 15 seconds of the recording. */\n units: number\n}\n\n/** A pack started by this request: its job, and each tool's. */\nexport interface PodcastPackStarted extends EditJobResult, PodcastPackOutputData {\n deduped?: false\n}\n\n/**\n * An `Idempotency-Key` retry that found the pack already started: `jobId` is\n * that pack's job, whose `output_data` lists its tools\n * ({@link PodcastPackOutputData}).\n */\nexport interface PodcastPackDeduped extends EditJobResult {\n deduped: true\n}\n\n/** What {@link EditResource.podcastPack} answers (`202`). */\nexport type PodcastPackJobResult = PodcastPackStarted | PodcastPackDeduped\n\n/** What {@link EditResource.startPodcastPackTool} answers (`202`): the tool's run, followed like any run. */\nexport interface PodcastPackToolStarted {\n /** The tool's run: its job, to follow with `jobs.get` (and to continue free if it fails). */\n jobId: string\n /** The run's execution, when it started one. */\n executionId: string | null\n tool: PodcastPackTool\n}\n\n/** What a pack is estimated at (`data`). Nothing is created or charged. */\nexport interface PodcastPackEstimate {\n /** The tools the pack would run, in the pack's order. */\n tools: PodcastPackTool[]\n /** The recording's length, in seconds. */\n durationSec: number\n /** Every started 15 seconds of the recording. */\n units: number\n /** The pack's price, every tool included: 0 on an edition without credits, `null` when this server has no price for it. */\n credits: number | null\n}\n\n/** The pack's body: the recordings once, then the tools and the rest as given. */\nexport function podcastPackBody(input: PodcastPackInput): Record<string, unknown> {\n return withRecordings(input)\n}\n","import type { NodaroClientCore } from \"../core.js\"\nimport { ForbiddenError, NodaroError } from \"../errors.js\"\nimport {\n remapTranscriptThroughEdl,\n unwrapEditPlanOutput,\n resolveEditPlanSources,\n describeAudioSyncOffsetIssue,\n transcriptSpeakerLabels,\n cameraSwitchSpeakerMap, speakerMapResultOf, type SpeakerMapResult,\n type Edl,\n type Transcript,\n type EditPlanMode,\n type EditPlanTier,\n type EdlClipSet,\n type ChapterSet,\n type EdlTargetAspect\n} from \"@nodaro/shared/edl\"\nimport { USE_CASE_NODE_TYPES, isUseCaseNodeType, type UseCaseNodeType } from \"@nodaro/shared/nodes\"\nimport type { SpeakerMapInput } from \"./speaker-map-inputs.js\"\nimport {\n chaptersBody,\n clipPackBody,\n speakerLayoutBody,\n tightenBody,\n trailerBody,\n withUseCaseBody,\n type ClipPackInput,\n type EpisodeChaptersInput,\n type EpisodeTrailerInput,\n type SpeakerLayoutInput,\n type TightenEpisodeInput,\n} from \"./edit-use-case-inputs.js\"\n\nexport { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, TRAILER_FORMATS } from \"./edit-use-case-inputs.js\"\nexport type { ClipPackEmphasis, ClipPackInput, EpisodeChaptersInput, EpisodeTrailerInput, SpeakerLayoutInput, TightenEpisodeInput, TrailerFormat, UseCaseRecordingsInput, UseCaseSpeakerNamesInput } from \"./edit-use-case-inputs.js\"\nimport type {\n TightenEpisodeEstimate,\n TightenEpisodeJobResult,\n UseCaseContinueInput,\n UseCaseEstimate,\n UseCaseJobResult,\n UseCaseRequestOptions,\n} from \"./edit-use-case-results.js\"\nexport type { TightenEpisodeEstimate, TightenEpisodeJobResult, UseCaseContinueInput, UseCaseEstimate, UseCaseJobResult, UseCaseRequestOptions }\nimport { podcastPackBody, type PodcastPackEstimate, type PodcastPackInput, type PodcastPackJobResult, type PodcastPackTool, type PodcastPackToolStarted } from \"./edit-podcast-pack.js\"\nexport { PODCAST_PACK_TOOLS } from \"./edit-podcast-pack.js\"\nexport type { PodcastPackDeduped, PodcastPackEstimate, PodcastPackInput, PodcastPackJobResult, PodcastPackNotStarted, PodcastPackOutputData, PodcastPackRecordingField, PodcastPackStarted, PodcastPackTool, PodcastPackToolRun, PodcastPackToolSettings, PodcastPackToolStarted, PodcastPackTools } from \"./edit-podcast-pack.js\"\n\n// Re-export the canonical EDL / transcript vocabulary from `@nodaro/shared`\n// (single source of truth — the shapes live at `packages/shared/src/edl.ts`).\n// `@nodaro/shared` is already a hard dep of this package, so there is no\n// bundle-size cost to importing from it, and an integration builds requests and\n// reads results with one dependency. `EdlClipSet` / `ChapterSet` are the raw\n// `output_data` shapes of the `clips` / `chapters` modes, and\n// `unwrapEditPlanOutput` is the sanctioned way to normalize any edit-plan job's\n// `output_data` (it also strips the relay's `viaNodaroCloud` marker).\nexport type { Edl, Transcript, EditPlanMode, EditPlanTier, EdlClipSet, ChapterSet }\nexport { unwrapEditPlanOutput }\n\n/**\n * A silence-detect job's `output_data.json` — the value to pass as\n * {@link EditPlanInput.silence}. It is NOT what {@link EditResource.silenceDetect}\n * returns (that is `{ jobId }`); fetch the finished job and read its\n * `output_data.json`. The planner reads the `ranges` array — an input without\n * one is silently ignored, so pass this whole object.\n */\nexport interface SilenceRanges {\n /** Wire version of the payload. */\n version?: number\n /** Silence spans on the source clock, in ms. */\n ranges: ReadonlyArray<{ startMs: number; endMs: number }>\n /** Total source duration, in ms. */\n durationMs?: number\n}\n\n/** Every editorial route answers with the queued job to poll. */\nexport interface EditJobResult {\n /** The queued job id — follow it via `client.jobs.getStatus(jobId)`. */\n jobId: string\n}\n\nexport interface SilenceDetectInput {\n /**\n * An audio OR video source. A single ffmpeg `silencedetect` pass runs over the\n * source's audio proxy either way — no provider key required.\n */\n audioUrl: string\n /** dBFS threshold, always ≤ 0. Default -35 (a good podcast default). */\n thresholdDb?: number\n /** Minimum silence length to report, in ms. Default 700. */\n minSilenceMs?: number\n /** Padding kept around speech, in ms — shrinks each reported range inward. Default 120. */\n padMs?: number\n /**\n * Optionally associate this run with a workflow execution (display only — it\n * ties the standalone job back to a workflow for the execution history).\n */\n workflowId?: string\n}\n\n/** One recording for {@link EditResource.audioSync}. */\nexport interface AudioSyncSource {\n /**\n * Your id for this recording (1–200 chars, unique within the request) —\n * echoed back as its offset's `sourceId`. Use the id your EDL gives the same\n * recording (`EdlSource.id`) and the result folds straight into it.\n */\n id: string\n /** An audio OR video URL — the audio track is read either way. */\n url: string\n}\n\nexport interface AudioSyncInput {\n /** The 2–6 recordings of one conversation to line up (camera files and/or a master mic). */\n sources: AudioSyncSource[]\n /**\n * The id of the source every offset is measured against (its own offset is\n * 0). Must be one of `sources`' ids; default: the first source.\n */\n reference?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/** One recording's measured clock offset in an {@link AudioSyncResult}. */\nexport interface AudioSyncOffset {\n /** The recording's `id` from the request. */\n sourceId: string\n /**\n * Where this recording sits on the reference's clock, in integer ms:\n * `referenceMs = sourceMs + offsetMs` (the EDL's D19 sign — the value\n * `EdlSource.offsetMs` takes when the reference is the master).\n */\n offsetMs: number\n /** 0–1. Below 0.5 a `notes` line asks for a check by ear. */\n confidence: number\n /**\n * Measured clock drift against the reference, in ms gained per hour; `null`\n * when the shared stretch was too short to measure it. Drift is reported,\n * never corrected — the offset is taken at the middle of the overlap.\n */\n driftMsPerHour: number | null\n}\n\n/**\n * An audio-sync job's `output_data.json`. It is NOT what\n * {@link EditResource.audioSync} returns (that is `{ jobId }`); fetch the\n * finished job and read its `output_data.json`.\n */\nexport interface AudioSyncResult {\n /** Wire version of the payload. */\n version: number\n /** The source every offset is measured against (its own offset is 0). */\n reference: string\n offsets: AudioSyncOffset[]\n /** Human-readable warnings: low confidence, measured drift, no shared sound. */\n notes: string[]\n}\n\nexport interface ApplyEdlInput {\n /** The edit decision list to render. Media resolves from each `edl.sources[i].url`. */\n edl: Edl\n /**\n * Optional media-URL overrides for `edl.sources[i].url`, POSITIONAL in this\n * array's order. Each URL is SSRF-guarded server-side like any media the\n * platform fetches.\n */\n sources?: string[]\n /**\n * Optional transcript to remap through the cut. The rendered job returns the\n * remapped transcript on its `json` output. A word-level multi-hour transcript\n * is several MB — if you only need the re-timed transcript (not a render), use\n * {@link EditResource.remapTranscript} locally instead of sending it here.\n */\n transcript?: Transcript\n /** Render a full video (default) or an audio-only cut. */\n output?: \"video\" | \"audio\"\n /** Fast proxy draft or the final render. Default \"final\". */\n quality?: \"proxy\" | \"final\"\n /**\n * Default crossfade (ms) on boundaries with no explicit transition; 0 = hard\n * cuts. Per-boundary clamped to the ffmpeg-xfade limit server-side. Default 0.\n */\n crossfadeMs?: number\n /**\n * The plan clip this render cuts — `edlSpanKey(clip)` from `@nodaro/shared`\n * (`\"<first inMs>-<last outMs>\"`). The job's result carries it back as\n * `output_data.clipKey`, so renders of a clip set can be matched to their\n * clips. Omit for a render of no plan clip.\n */\n clipKey?: string\n /**\n * The plan value this render cuts — `renderReadBasis(value)` from\n * `@nodaro/shared` (16 lowercase hex digits), where `value` is the Edit\n * Plan's Tighten EDL with any review applied, or the clip this render cuts.\n * The job's result carries it back as `output_data.planBasis`, so a take can\n * be told apart from one cut from an earlier plan. Send it only when the EDL\n * you send IS that value (not one an intermediate step re-cut from an older\n * plan); omit it otherwise. The result's `output_data.renderBasis` (the\n * render's own settings and sources) is stamped by the server.\n */\n planBasis?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/**\n * One media source for an edit-plan run. Mirrors the shape the workflow engine\n * sends: a stable `id` (adopted verbatim as the plan's `EdlSource` id), the\n * media `url`, and the `kind`, plus optional per-source annotations the planner\n * honors.\n */\nexport interface EditPlanSource {\n /** Stable id for this source — becomes the `EdlSource` id in the returned plan. */\n id: string\n /** The source's media URL (SSRF-guarded server-side). */\n url: string\n /** This source's medium. */\n kind: \"video\" | \"audio\"\n /** Role annotation. `\"master-audio\"` marks the clock the plan is reserved on. */\n role?: \"master-audio\" | \"camera\" | \"wide\" | \"screen\"\n /** Speaker labels present in this source. */\n speakers?: string[]\n /**\n * This source's origin on the master clock (masterMs = sourceMs + offsetMs).\n * Set by hand, it wins over a measured offset from `offsets`.\n */\n offsetMs?: number\n}\n\nexport interface EditPlanInput {\n /**\n * Planning mode. The finished job's `output_data` carries the plan — read it\n * with {@link unwrapEditPlanOutput}, which also strips the relay's\n * `viaNodaroCloud` marker:\n * - `\"tighten\"` → an `Edl`.\n * - `\"clips\"` → an {@link EdlClipSet} (`{ version, clips: Edl[] }`);\n * `unwrapEditPlanOutput` returns the bare `Edl[]`.\n * - `\"chapters\"` → a {@link ChapterSet} (`{ version, chapters: [...] }`).\n * - `\"trailer\"` → an `Edl` (one short teaser cut from the strongest moments).\n */\n mode: EditPlanMode\n /** Reasoning tier — affects plan quality AND the credit bucket. */\n planTier: EditPlanTier\n /** The timed transcript driving the plan. */\n transcript: Transcript\n /**\n * Optional detected silence ranges. Pass the silence-detect JOB'S RESULT —\n * `getStatus(jobId).data.output_data.json` (a {@link SilenceRanges} object),\n * NOT the `{ jobId }` that {@link EditResource.silenceDetect} returns. The\n * planner reads the `ranges` array; an input without one is silently ignored.\n */\n silence?: SilenceRanges\n /** The recording's media sources (1–6). */\n sources: EditPlanSource[]\n /**\n * Multicam: an {@link AudioSyncResult} (the audio-sync job's\n * `output_data.json`) measured over these same source ids. Each source's\n * measured offset is written onto its `offsetMs` BEFORE the request, on the\n * master's clock (the `master-audio` source, else the first) — a source's\n * own `offsetMs` wins. `editPlan` rejects with a {@link NodaroError}\n * (`code: \"edit_plan_sources\"`), before any request or charge, when a\n * source was not measured or matched weakly (confidence < 0.5 — set its\n * `offsetMs` by hand), or the master was not measured.\n */\n offsets?: AudioSyncResult | string\n /**\n * The id of the source the transcript was made from, when you know it. The\n * plan follows the master's clock, so a transcript made from a source that\n * is off it is rejected the same way.\n */\n transcriptSourceId?: string\n /** Free-text editing steer. */\n instructions?: string\n /** Style-guide text applied to the plan. */\n styleGuide?: string\n /** `\"clips\"` mode only: how many clips to cut. */\n count?: number\n /** `\"clips\"` mode only: target duration per clip, in seconds. */\n targetDurationSec?: number\n /** Target aspect for cut clips (`\"clips\"`) or the teaser (`\"trailer\"`). */\n targetAspect?: \"16:9\" | \"9:16\" | \"1:1\" | \"4:5\"\n /** Target platform hint (e.g. a social platform name). */\n platform?: string\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/**\n * What {@link EditResource.editPlanCapabilities} answers: the Edit Plan modes\n * this server can plan, who answered, and how Edit Plan is priced here.\n */\nexport interface EditPlanCapabilities {\n /**\n * The modes this server plans. `tighten`, `clips` and `chapters` are always\n * listed; `trailer` once the server can plan a trailer. A mode not listed is\n * refused before anything is charged (`400 mode_not_available`).\n */\n modes: EditPlanMode[]\n /**\n * Who answered: `\"server\"` (nodaro.ai, or a self-hosted install that is not\n * connected), `\"nodaro.ai\"` (a connected self-hosted install, with\n * nodaro.ai's answer), or `\"nodaro.ai-unreachable\"` (a connected self-hosted\n * install that could not reach nodaro.ai; only the three original modes are\n * listed then). A newer server may add a value.\n */\n source: \"server\" | \"nodaro.ai\" | \"nodaro.ai-unreachable\" | (string & {})\n /**\n * `true` when Edit Plan is charged per started minute of the recording,\n * `false` when at the 15/30/60/90/120/180-minute step its length rounds up to.\n */\n perMinute: boolean\n}\n\n/** Input for {@link EditResource.cameraSwitch} (podcast B5). */\nexport interface CameraSwitchInput {\n /** One EDL — an `editPlan` result (`unwrapEditPlanOutput`), not a clip set. */\n edl: Edl\n /** The word transcript WITH speaker labels (transcribe with speaker detection). */\n transcript: Transcript\n /** Speaker label → the EDL source id of that speaker's camera. A speaker\n * left out shows the source whose `speakers` list names them, else the\n * `wide` camera, else any camera that filmed them. */\n speakerMap?: Record<string, string>\n /** A {@link EditResource.speakerMap} job's `output_data.json`: a label in `speakerMap`\n * wins, then this result, then the n-th speaker heard gets the n-th camera. */\n speakerMapResult?: SpeakerMapResult | string\n /** Speaker label → display name (on the segments and the returned transcript). */\n speakerNames?: Record<string, string>\n /** The shortest shot in ms (default 2 500): a shorter turn holds the shot. */\n minShotMs?: number\n /** Cut this long before the new speaker starts, ms (default 200). */\n leadMs?: number\n /** Delay each cut by this long, ms (0–5 000, default 0): `leadMs`'s counterpart. */\n lagMs?: number\n /** With a `wide` source: break to it after this long on one camera, ms (default 20 000). */\n maxShotMs?: number\n /** With a `wide` source: every N-th cut goes to the wide (default 0 = off). */\n wideEvery?: number\n /** Overlapping speech → a layout hint (default false; Apply EDL renders cut-only edits). */\n layoutHints?: boolean\n /** Optionally associate this run with a workflow execution (display only). */\n workflowId?: string\n}\n\n/**\n * The podcast use-case node types, each one a route (`POST /v1/<type>`, and\n * `POST /v1/<type>/continue` to continue one of its runs).\n */\nexport { USE_CASE_NODE_TYPES, type UseCaseNodeType }\n\n/** The route that continues a run of `type`. */\nconst continuePathOf = (type: UseCaseNodeType): `/v1/${UseCaseNodeType}/continue` => `/v1/${type}/continue`\n\nfunction idempotencyHeaders(options?: UseCaseRequestOptions): { headers?: Record<string, string> } {\n return options?.idempotencyKey ? { headers: { \"Idempotency-Key\": options.idempotencyKey } } : {}\n}\n\n/**\n * Editorial primitives for podcast / long-form video editing, single-camera\n * and multicam: measure the cameras' offsets ({@link audioSync}), plan the cut\n * ({@link editPlan}), put each cut on the speaker's camera\n * ({@link cameraSwitch}), render a Preview to review (`applyEdl` with\n * `quality: \"proxy\"`), then the final (`quality: \"final\"`).\n *\n * - {@link silenceDetect}, {@link audioSync} and {@link applyEdl} are core nodes\n * available on every edition.\n * - {@link editPlan} and {@link cameraSwitch} run on nodaro.ai; a self-hosted\n * install relays them once it is connected (a 503\n * `code: \"nodaro_connection_required\"` otherwise).\n * - {@link tightenEpisode} runs the whole chain (transcribe, plan, render, and\n * optionally captions, music and framing) in one call. It is core, but a\n * self-hosted install needs a nodaro.ai connection for the steps that run\n * there (a 503 `code: \"nodaro_connection_required\"` otherwise).\n * {@link continueUseCase} continues one of its runs.\n * - {@link episodeChapters} lists a recording's chapters (transcribe, then the\n * plan in chapters mode) in one call; nothing renders. Like\n * {@link tightenEpisode}, a self-hosted install needs a nodaro.ai connection.\n * - {@link episodeTrailer} cuts a 20–40 s trailer of a recording and delivers\n * it in each chosen format in one call; the same connection applies.\n * - {@link clipPack} cuts a recording into a pack of short clips (framed and\n * captioned by default) in one call; the same connection applies.\n * - {@link speakerLayout} frames a whole recording by speaker (the same\n * length, nothing cut) in one call; the same connection applies.\n * - {@link podcastPack} runs several of those tools on one recording, for one\n * price by its length; each tool runs as its own run, with its own job.\n * - {@link remapTranscript} is a PURE local transform (no request) — the same\n * remap `applyEdl` performs on its `transcript`, exposed for callers that hold\n * an EDL and a transcript and only want the re-timed transcript.\n *\n * Every request method except the estimates ({@link estimateTightenEpisode},\n * {@link estimateEpisodeChapters}, {@link estimateEpisodeTrailer},\n * {@link estimateClipPack}, {@link estimateSpeakerLayout},\n * {@link estimatePodcastPack}: a quote, `{ data }`)\n * and {@link editPlanCapabilities} (a read: {@link EditPlanCapabilities}) returns\n * {@link EditJobResult} (the use-case runs a {@link UseCaseJobResult}, the\n * pack a {@link PodcastPackJobResult}); poll the `jobId` with\n * `client.jobs.getStatus(jobId)`.\n */\nexport class EditResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Detect silence ranges in an audio/video source (`POST /v1/silence-detect`).\n * Keyless — one ffmpeg pass over the source's audio proxy.\n */\n silenceDetect(input: SilenceDetectInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/silence-detect\", {\n body: {\n audioUrl: input.audioUrl,\n ...(input.thresholdDb !== undefined ? { thresholdDb: input.thresholdDb } : {}),\n ...(input.minSilenceMs !== undefined ? { minSilenceMs: input.minSilenceMs } : {}),\n ...(input.padMs !== undefined ? { padMs: input.padMs } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Measure how far apart the clocks of 2–6 recordings of one conversation are\n * (`POST /v1/audio-sync`), by cross-correlating their audio — keyless, one\n * ffmpeg decode per source. The finished job's `output_data.json` is an\n * {@link AudioSyncResult}. A malformed request (fewer than 2 or more than 6\n * sources, a repeated id, a `reference` that is not one of the ids) throws a\n * typed `NodaroError` (400, `code: \"validation_error\"`) before any credits\n * are reserved.\n */\n audioSync(input: AudioSyncInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/audio-sync\", {\n body: {\n sources: input.sources.map((s) => ({ id: s.id, url: s.url })),\n ...(input.reference !== undefined ? { reference: input.reference } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Which camera each speaker is on, from the cameras' own microphones (`POST\n * /v1/speaker-map`), keyless. `output_data.json` is a `SpeakerMapResult`: pass\n * it to {@link cameraSwitch} as `speakerMapResult`. A malformed request throws\n * a `NodaroError` (400 `validation_error`; 422 `no_speakers` for a transcript\n * with no speaker labels) before any credits are reserved.\n */\n speakerMap(input: SpeakerMapInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/speaker-map\", {\n body: {\n sources: input.sources.map((s) => ({ id: s.id, url: s.url, ...(s.kind ? { kind: s.kind } : {}) })),\n transcript: input.transcript,\n ...(input.offsets !== undefined ? { offsets: input.offsets } : {}),\n ...(input.masterSourceId !== undefined ? { masterSourceId: input.masterSourceId } : {}),\n ...(input.wideSourceId !== undefined ? { wideSourceId: input.wideSourceId } : {}),\n ...(input.marginDb !== undefined ? { marginDb: input.marginDb } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Render an edit decision list into a video or audio cut (`POST /v1/apply-edl`).\n * The EDL is validated at ingress — an unresolvable source or a picture-less\n * segment on a video edit throws a typed `NodaroError` (400, `code:\n * \"invalid_edl\"`) before any credits are reserved.\n */\n applyEdl(input: ApplyEdlInput): Promise<EditJobResult> {\n return this.client.request(\"POST\", \"/v1/apply-edl\", {\n body: {\n edl: input.edl,\n ...(input.sources !== undefined ? { sources: input.sources } : {}),\n ...(input.transcript !== undefined ? { transcript: input.transcript } : {}),\n ...(input.output !== undefined ? { output: input.output } : {}),\n ...(input.quality !== undefined ? { quality: input.quality } : {}),\n ...(input.crossfadeMs !== undefined ? { crossfadeMs: input.crossfadeMs } : {}),\n ...(input.clipKey !== undefined ? { clipKey: input.clipKey } : {}),\n ...(input.planBasis !== undefined ? { planBasis: input.planBasis } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Tighten Episode (`POST /v1/tighten-episode`): tighten a podcast recording\n * in one call — transcribe, cut the silences and filler, render, with\n * optional captions, music and framing. Answers the run's job to poll; its\n * `output_data` holds the episode, and `output_data.speakers` each speaker's\n * label, the name `speakerNames` gave it and how long they talk across the\n * recording (`{ label, name?, talkMs }[]`, `TightenEpisodeOutputData`).\n * The run is priced as its steps at their own\n * rates plus the listed per-run fee. Quote it first with\n * {@link estimateTightenEpisode}.\n */\n tightenEpisode(input: TightenEpisodeInput, options?: UseCaseRequestOptions): Promise<TightenEpisodeJobResult> {\n return withUseCaseBody(() => tightenBody(input), (body) => this.client.request(\"POST\", \"/v1/tighten-episode\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a Tighten Episode run is estimated at (`POST /v1/tighten-episode/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. The estimate leans high: the render is priced at the recording's\n * full length, while the charge follows the minutes actually rendered.\n */\n estimateTightenEpisode(input: TightenEpisodeInput): Promise<{ data: TightenEpisodeEstimate }> {\n return withUseCaseBody(() => tightenBody(input), (body) => this.client.request(\"POST\", \"/v1/tighten-episode/estimate\", { body }))\n }\n\n /**\n * Chapters (`POST /v1/episode-chapters`): transcribe a recording and list its\n * chapters in one call. Answers the run's job to poll; the finished job's\n * `output_data.text` is the list as show notes (one `0:00 Title` line per\n * chapter; once a chapter starts at 1:00:00 or later, every line is\n * `H:MM:SS`), `output_data.json` the list itself (`{ startMs, title }[]`, the\n * same rows; the first starts at 0). A run that finds no chapters fails,\n * and its fee is refunded. Priced as its steps at their own rates plus the\n * listed per-run fee; quote it first with {@link estimateEpisodeChapters}.\n */\n episodeChapters(input: EpisodeChaptersInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return withUseCaseBody(() => chaptersBody(input), (body) => this.client.request(\"POST\", \"/v1/episode-chapters\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a Chapters run is estimated at (`POST /v1/episode-chapters/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. A recording whose length cannot be read is estimated at the\n * 180-minute ceiling.\n */\n estimateEpisodeChapters(input: EpisodeChaptersInput): Promise<{ data: UseCaseEstimate }> {\n return withUseCaseBody(() => chaptersBody(input), (body) => this.client.request(\"POST\", \"/v1/episode-chapters/estimate\", { body }))\n }\n\n /**\n * Trailer (`POST /v1/episode-trailer`): cut a 20–40 s trailer of a recording\n * and deliver it in each chosen format (padded, never cropped), optionally\n * after an intro card, in one call. The finished job's `output_data.formats`\n * is `{ format, url }[]` in format order, the first also `output_data.videoUrl`;\n * a format that failed is named in `output_data.failedFormats` (the run keeps\n * the others). With `reviewBeforeRender` the run stops at a preview\n * (`videoUrl`, no formats yet). Priced as its steps at their own rates plus\n * the listed per-run fee; quote it first with {@link estimateEpisodeTrailer}.\n */\n episodeTrailer(input: EpisodeTrailerInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return withUseCaseBody(() => trailerBody(input), (body) => this.client.request(\"POST\", \"/v1/episode-trailer\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a Trailer run is estimated at (`POST /v1/episode-trailer/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. The trailer is quoted at 40 seconds, the longest trailer the\n * plan cuts; a Render final is quoted on the trailer the run cut (with the\n * review's edits), plus the intro card.\n */\n estimateEpisodeTrailer(input: EpisodeTrailerInput): Promise<{ data: UseCaseEstimate }> {\n return withUseCaseBody(() => trailerBody(input), (body) => this.client.request(\"POST\", \"/v1/episode-trailer/estimate\", { body }))\n }\n\n /**\n * Clip Pack (`POST /v1/clip-pack`): cut a recording into a pack of short\n * clips in one call — the plan finds the best moments (`count`, default 8,\n * of about `targetDurationSec`, default 60), each is rendered (framed 9:16\n * with the speakers stacked by default; `framing: null` keeps the\n * recording's shape) and captioned. An audio recording makes audio clips.\n * The finished job's `output_data.clips` is `{ url, title?, hook?, clipKey,\n * thumbnailUrl?, captionsFailed?, sourceStartMs?, sourceEndMs?,\n * sourceSpans? }[]` in plan order (`ClipPackClip`: where each clip is\n * in the recording, on its clock), the first also\n * `output_data.videoUrl` (`audioUrl` for audio clips). Every clip is tried:\n * one that cannot be rendered is skipped, not charged, counted on\n * `failedClips` and named on `failedClipList` (the pack keeps the others and its fee); a clip whose\n * captions failed comes uncaptioned (`captionsFailed`, counted on\n * `failedCaptions`). When no clip renders the run fails and its fee is\n * refunded. With `reviewBeforeRender` the run stops at previews; Render\n * final ({@link continueUseCase}) renders only the clips the edit keeps.\n * Priced as its steps at their own rates plus the listed per-run fee;\n * quote it first with {@link estimateClipPack}.\n */\n clipPack(input: ClipPackInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return withUseCaseBody(() => clipPackBody(input), (body) => this.client.request(\"POST\", \"/v1/clip-pack\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a Clip Pack run is estimated at (`POST /v1/clip-pack/estimate`): its\n * steps at their own rates plus its per-run fee. Nothing is created or\n * charged. Each clip is quoted at twice the target length (the plan may cut\n * a clip longer than asked); the charge follows each clip's real length.\n */\n estimateClipPack(input: ClipPackInput): Promise<{ data: UseCaseEstimate }> {\n return withUseCaseBody(() => clipPackBody(input), (body) => this.client.request(\"POST\", \"/v1/clip-pack/estimate\", { body }))\n }\n\n /**\n * Speaker Layout (`POST /v1/speaker-layout`): frame a whole recording by\n * speaker in one call — the same length, nothing cut. One recording: each\n * speaker framed in turn; several recordings of one conversation: lined up,\n * each speaker shown on their own camera. The finished job's\n * `output_data.videoUrl` is the framed video, `output_data.json` the edit\n * Speaker View drew, and `output_data.speakers` each speaker's label, the\n * name `speakerNames` gave it and how long they talk (`{ label, name?,\n * talkMs }[]`, `SpeakerLayoutOutputData`). With `reviewBeforeRender` the run stops at a preview;\n * {@link continueUseCase} (`mode: \"render-final\"`, no `editedEdl`) renders\n * it at full quality. Priced as its steps at their own rates plus the listed\n * per-run fee; quote it first with {@link estimateSpeakerLayout}.\n */\n speakerLayout(input: SpeakerLayoutInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n return withUseCaseBody(() => speakerLayoutBody(input), (body) => this.client.request(\"POST\", \"/v1/speaker-layout\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a Speaker Layout run is estimated at (`POST /v1/speaker-layout/estimate`):\n * its steps at their own rates plus its per-run fee. Nothing is created or\n * charged. A recording whose length cannot be read is estimated at the\n * 180-minute ceiling.\n */\n estimateSpeakerLayout(input: SpeakerLayoutInput): Promise<{ data: UseCaseEstimate }> {\n return withUseCaseBody(() => speakerLayoutBody(input), (body) => this.client.request(\"POST\", \"/v1/speaker-layout/estimate\", { body }))\n }\n\n /**\n * Podcast pack (`POST /v1/podcast-pack`): run several of the podcast tools\n * on one recording for one price, every started 15 seconds of the\n * recording with every chosen tool included. Every tool's own refusals come\n * first (a refusal's `details.tool` names the tool), before anything is\n * charged. Answers the pack's job and each tool's (`tools`: the same job\n * its own method answers), plus the tools that did not start. A tool that\n * fails is continued free with {@link continueUseCase} (`\"from-failed\"`).\n * Quote it first with {@link estimatePodcastPack}.\n */\n podcastPack(input: PodcastPackInput, options?: UseCaseRequestOptions): Promise<PodcastPackJobResult> {\n return withUseCaseBody(() => podcastPackBody(input), (body) => this.client.request(\"POST\", \"/v1/podcast-pack\", { body, ...idempotencyHeaders(options) }))\n }\n\n /**\n * What a podcast pack is charged (`POST /v1/podcast-pack/estimate`): the\n * same refusals, then the recording's length, its units and the price.\n * Nothing is created or charged.\n */\n estimatePodcastPack(input: PodcastPackInput): Promise<{ data: PodcastPackEstimate }> {\n return withUseCaseBody(() => podcastPackBody(input), (body) => this.client.request(\"POST\", \"/v1/podcast-pack/estimate\", { body }))\n }\n\n /**\n * Start, free, a tool a podcast pack paid for that did not start (`POST\n * /v1/podcast-pack/:id/start`, the pack's `notStarted`): on the recording and\n * the settings the pack kept. Once per tool — a tool that already has a run\n * in its pack is refused (a failed run is continued with `continueUseCase`,\n * free too); a pack held for review is refused (`pack_under_review`).\n */\n startPodcastPackTool(packJobId: string, tool: PodcastPackTool): Promise<PodcastPackToolStarted> {\n return this.client.request(\"POST\", `/v1/podcast-pack/${encodeURIComponent(packJobId)}/start`, { body: { tool } })\n }\n\n /**\n * Continue a use-case run as a new job (`POST /v1/<type>/continue`, the\n * run's own type: `input.nodeType`, else the type the job records, read with\n * `GET /v1/jobs/:id`; when that read cannot tell, this rejects with a\n * `NodaroError` coded `use_case_type_unknown` — pass `nodeType` then):\n * `\"from-failed\"` keeps the steps that finished and runs the rest (the fee\n * is held again; the failed run's was refunded);\n * `\"render-final\"` renders the full-quality result after a review-on preview,\n * with the preview's settings and no fee. A refusal that names another job\n * (`already_running`, `continuation_superseded`,\n * `render_final_already_rendered`) throws a `ContinuationRefusedError`\n * carrying that `jobId`.\n */\n async continueUseCase(input: UseCaseContinueInput, options?: UseCaseRequestOptions): Promise<UseCaseJobResult> {\n if (input.nodeType !== undefined && !isUseCaseNodeType(input.nodeType)) {\n throw new NodaroError(\n `continueUseCase: nodeType \"${String(input.nodeType)}\" is not a use-case node type (${USE_CASE_NODE_TYPES.join(\", \")})`,\n \"invalid_node_type\",\n 400,\n )\n }\n const type = input.nodeType ?? (await this.runTypeOf(input.jobId))\n return this.client.request(\"POST\", continuePathOf(type), {\n body: { jobId: input.jobId, mode: input.mode, ...(input.editedEdl !== undefined ? { editedEdl: input.editedEdl } : {}) },\n ...idempotencyHeaders(options),\n })\n }\n\n /**\n * The use-case type a run records (`input_data.type`, else its `job_type`).\n * When the key lacks the `jobs:read` scope (403 naming that scope) or the job\n * names no use-case type, the type cannot be read: this rejects with a\n * `NodaroError` (`use_case_type_unknown`, 400) asking for `nodeType`, and\n * nothing is posted (decided 2026-10-18: no route is guessed for the run).\n * Any other failure of the read, any other 403 included, is thrown as is.\n */\n private async runTypeOf(jobId: string): Promise<UseCaseNodeType> {\n const unknown = () =>\n new NodaroError(\"continueUseCase: the run's node type cannot be read — pass nodeType\", \"use_case_type_unknown\", 400)\n let row: { job_type?: unknown; input_data?: unknown } | undefined\n try {\n row = (await this.client.request<{ data?: { job_type?: unknown; input_data?: unknown } }>(\"GET\", `/v1/jobs/${encodeURIComponent(jobId)}`)).data\n } catch (err) {\n if (err instanceof ForbiddenError && err.missingScope === \"jobs:read\") throw unknown()\n throw err\n }\n const input = row?.input_data\n const recorded = input && typeof input === \"object\" && !Array.isArray(input) ? (input as { type?: unknown }).type : undefined\n const type = typeof recorded === \"string\" && recorded.length > 0 ? recorded : row?.job_type\n if (!isUseCaseNodeType(type)) throw unknown()\n return type\n }\n\n /**\n * Plan a transcript-driven cut (`POST /v1/edit-plan`). Reads a timed\n * transcript (plus optional silence ranges) and the media sources, and plans\n * the edit. The finished job's `output_data` holds the plan: an `Edl`\n * (`\"tighten\"` or `\"trailer\"`), an {@link EdlClipSet} (`\"clips\"`), or a\n * {@link ChapterSet} (`\"chapters\"`) — normalize it with {@link unwrapEditPlanOutput}.\n *\n * On a self-hosted install the request relays to nodaro.ai and needs the\n * install connected (a 503 `code: \"nodaro_connection_required\"` otherwise);\n * on nodaro.ai it runs directly.\n */\n editPlan(input: EditPlanInput): Promise<EditJobResult> {\n // The same pre-dispatch check the canvas and MCP run (B4): the server never\n // sees `offsets` — they are written onto the sources here.\n const planned = resolveEditPlanSources(input.sources, {\n offsets: input.offsets,\n transcriptSourceId: input.transcriptSourceId,\n })\n if (!planned.ok) {\n const message = planned.issues.map((issue) => describeAudioSyncOffsetIssue(issue)).join(\"; \")\n return Promise.reject(new NodaroError(`editPlan: ${message}`, \"edit_plan_sources\", 400))\n }\n const transcript = planned.transcriptSourceId\n ? { ...input.transcript, sourceId: planned.transcriptSourceId }\n : input.transcript\n return this.client.request(\"POST\", \"/v1/edit-plan\", {\n body: {\n mode: input.mode,\n planTier: input.planTier,\n transcript,\n sources: planned.sources,\n ...(input.silence !== undefined ? { silence: input.silence } : {}),\n ...(input.instructions !== undefined ? { instructions: input.instructions } : {}),\n ...(input.styleGuide !== undefined ? { styleGuide: input.styleGuide } : {}),\n ...(input.count !== undefined ? { count: input.count } : {}),\n ...(input.targetDurationSec !== undefined ? { targetDurationSec: input.targetDurationSec } : {}),\n ...(input.targetAspect !== undefined ? { targetAspect: input.targetAspect } : {}),\n ...(input.platform !== undefined ? { platform: input.platform } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * The Edit Plan modes this server can plan (`GET /v1/edit-plan/capabilities`),\n * who answered, and whether Edit Plan is charged per started minute. Ask it\n * before offering a mode: one it does not list is refused by\n * {@link editPlan} before anything is charged. Nothing is created or charged.\n */\n editPlanCapabilities(): Promise<EditPlanCapabilities> {\n return this.client.request<EditPlanCapabilities>(\"GET\", \"/v1/edit-plan/capabilities\")\n }\n\n /**\n * Camera Switch (podcast B5): choose which camera shows each cut of `edl`\n * by who is speaking — the sound never changes. Runs on nodaro.ai (a\n * connected self-hosted install relays it); a flat price. The finished job's `output_data.json` is the switched EDL (feed it\n * to {@link applyEdl}) and `output_data.transcript` the transcript with\n * `speakerNames` applied. A transcript with no speaker labels rejects with\n * a {@link NodaroError} (`code: \"no_speakers\"`) before any request or charge.\n */\n cameraSwitch(input: CameraSwitchInput): Promise<EditJobResult> {\n if (transcriptSpeakerLabels(input.transcript).length === 0) {\n return Promise.reject(new NodaroError(\n \"cameraSwitch: the transcript has no speaker labels — transcribe with speaker detection on\",\n \"no_speakers\",\n 422,\n ))\n }\n const result = input.speakerMapResult\n if (result !== undefined && !speakerMapResultOf(result)) return Promise.reject(new NodaroError(\"cameraSwitch: speakerMapResult is not a Speaker Map result — pass that job's output_data.json\", \"not_a_speaker_map\", 400))\n const speakerMap = result !== undefined ? cameraSwitchSpeakerMap({ speakerMap: input.speakerMap }, input.edl, input.transcript, { speakerMap: result }) : input.speakerMap\n return this.client.request(\"POST\", \"/v1/camera-switch\", {\n body: {\n edl: input.edl,\n transcript: input.transcript,\n ...(speakerMap !== undefined ? { speakerMap } : {}),\n ...(input.speakerNames !== undefined ? { speakerNames: input.speakerNames } : {}),\n ...(input.minShotMs !== undefined ? { minShotMs: input.minShotMs } : {}),\n ...(input.leadMs !== undefined ? { leadMs: input.leadMs } : {}),\n ...(input.lagMs !== undefined ? { lagMs: input.lagMs } : {}),\n ...(input.maxShotMs !== undefined ? { maxShotMs: input.maxShotMs } : {}),\n ...(input.wideEvery !== undefined ? { wideEvery: input.wideEvery } : {}),\n ...(input.layoutHints !== undefined ? { layoutHints: input.layoutHints } : {}),\n ...(input.workflowId !== undefined ? { workflowId: input.workflowId } : {}),\n },\n })\n }\n\n /**\n * Remap a transcript through an EDL — a PURE client-side transform (NO\n * request). Returns a new transcript whose word (and segment) timings are on\n * the EDL's rendered output clock, dropping words that fall in cut regions and\n * clipping straddlers. Runs `@nodaro/shared`'s canonical\n * `remapTranscriptThroughEdl`, the same remap `applyEdl` performs server-side.\n */\n remapTranscript(edl: Edl, transcript: Transcript): Transcript {\n return remapTranscriptThroughEdl(edl, transcript)\n }\n}\n"]}
|
|
@@ -8,5 +8,5 @@ Object.defineProperty(exports, "unwrapEditPlanOutput", {
|
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () { return edl.unwrapEditPlanOutput; }
|
|
10
10
|
});
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-VZCCECKW.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-VZCCECKW.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-VZCCECKW.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY } from '@nodaro/shared/nodes';
|
|
2
|
+
|
|
3
|
+
// src/entries/nodes.ts
|
|
4
|
+
|
|
5
|
+
// src/resources/nodes-video-params.ts
|
|
6
|
+
function isVideoToVideoRemakeQuote(result) {
|
|
7
|
+
return !!result && typeof result === "object" && result.quoteOnly === true && "videoRemake" in result;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { isVideoToVideoRemakeQuote };
|
|
11
|
+
//# sourceMappingURL=chunk-YPZCTRFB.js.map
|
|
12
|
+
//# sourceMappingURL=chunk-YPZCTRFB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/nodes-video-params.ts"],"names":[],"mappings":";;;;;AAyIO,SAAS,0BAA0B,MAAA,EAAoD;AAC5F,EAAA,OAAO,CAAC,CAAC,MAAA,IAAU,OAAO,WAAW,QAAA,IAAa,MAAA,CAAmC,SAAA,KAAc,IAAA,IAAQ,aAAA,IAAiB,MAAA;AAC9H","file":"chunk-YPZCTRFB.js","sourcesContent":["import type { VideoToVideoNodeProvider } from \"@nodaro/shared/models\"\nimport type { GenerationSessionParams } from \"./nodes.js\"\nimport type { VideoRemakeEngine, VideoRemakeEstimate, VideoRemakeParams } from \"./cast-swap.js\"\n\n/**\n * Typed request body for `nodes.run(\"video-to-video\", …)` / `runAndWait` /\n * `quote` — `POST /v1/video-to-video`: edit an existing clip by instruction.\n * Video Remake (`client.videoRemake`, Nodaro Cloud) is the recommended way to\n * edit, modify, restyle or transfer the motion of a clip: it keeps the clip's\n * motion, camera and timing and changes what you ask. Its two engines are\n * named choices here too ({@link VideoToVideoRemakeParams}), which answer its\n * quote and start nothing. Mirrors the route's body; fields a model does not\n * use are ignored by that model.\n */\nexport interface VideoToVideoParams extends GenerationSessionParams {\n /** The clip to change. */\n videoUrl: string\n /** What to change. On `seedance-2-5` it is an edit instruction (\"make it\n * black and white\"); the platform frames it as an edit of the clip. */\n prompt?: string\n /** The person's own words, kept for the record when `prompt` was rewritten. */\n userPrompt?: string\n /** Default `\"seedance-2-5\"`, which edits the whole clip by instruction (it\n * needs a `prompt` and a 4–30 s clip) and is priced by the clip's length\n * (see `nodes.quote`). `wan` / `wan-flash` do not edit the clip: they make a\n * new clip featuring its subject. The platform tells Seedance the run is\n * an edit when every clip (`videoUrl` and `referenceVideoUrls`) is 4–30 s\n * long (a draft included), so this lane takes no `referenceTaskType` of its own. */\n provider?: VideoToVideoNodeProvider\n /** Wan / Wan Flash. A Seedance edit ignores it: the result keeps the source\n * clip's own length. */\n duration?: \"5\" | \"10\"\n /** `480p` is Seedance only. A request naming neither a `provider` nor a\n * `resolution` renders at 480p; one naming `seedance-2-5` and no resolution\n * renders at 720p. */\n resolution?: \"480p\" | \"720p\" | \"1080p\"\n /** Native audio: Wan Flash's audio track, Seedance's generated sound. */\n audio?: boolean\n /** Wan Flash multi-shot. */\n multiShots?: boolean\n /** Runway Aleph output ratio. */\n aspectRatio?: \"16:9\" | \"9:16\" | \"4:3\" | \"3:4\" | \"1:1\" | \"21:9\"\n seed?: number\n /** One image the edit can refer to (Seedance: `@image_1`). */\n referenceImageUrl?: string\n negativePrompt?: string\n /** Wan Video Edit: seconds of the source to edit (`\"0\"` = the whole clip). */\n videoEditDuration?: \"0\" | \"5\" | \"10\"\n /** Wan Video Edit: keep the source audio (`\"origin\"`) or let the model decide. */\n audioSetting?: \"auto\" | \"origin\"\n promptExtend?: boolean\n /** Seedance 2.5 only: a 480p draft, finalized later with `video-upscale`. */\n draft?: boolean\n /**\n * Seedance edit only (refused on other models): more images the edit can use.\n * They follow `referenceImageUrl` when it is sent, so with it they are\n * `{image:2}`, `{image:3}`, …, without it `{image:1}`, `{image:2}`, ….\n * The model's cap applies (30 images on `seedance-2-5`, 10 on `seedance-2-5-flash`, where a request over the cap is refused).\n */\n referenceImageUrls?: string[]\n /**\n * Seedance edit only (refused on other models): extra clips the edit can use.\n * Do not repeat `videoUrl` here: the source clip is `{video:1}`, these are\n * `{video:2}`, `{video:3}`, …. The source counts toward the model's cap\n * (10 clips on `seedance-2-5`, 5 on `seedance-2-5-flash`), and every clip's length is priced.\n */\n referenceVideoUrls?: string[]\n /**\n * Seedance edit only (refused on other models): audio the edit can use,\n * `{audio:1}`, `{audio:2}`, …. The model's cap applies (10 on `seedance-2-5`, 5 on `seedance-2-5-flash`).\n */\n referenceAudioUrls?: string[]\n [k: string]: unknown\n}\n\n/**\n * `nodes.run(\"video-to-video\", …)` / `nodes.quote` with a Video Remake engine\n * as the `provider` (`\"nodaro-prism\"`, `\"nodaro-pulse\"`; Nodaro Cloud). The\n * route starts NOTHING for these two: `run` resolves a\n * {@link VideoToVideoRemakeQuote}, Video Remake's price for the clip and the\n * instruction, with the request that runs it on `client.videoRemake.run`.\n *\n * Video Remake reads `videoUrl`, `prompt` (its instruction, the run's\n * `postPrompt`), `resolution` and `draft`. Every other Video to Video lever\n * (`duration`, `aspectRatio`, `seed`, `audio`, `multiShots`, …) does not apply\n * and is dropped; a reference list (`referenceImageUrl`, `referenceImageUrls`,\n * `referenceVideoUrls`, `referenceAudioUrls`) is refused with a 400: Video\n * Remake takes pictures as roles and fixed references on its own route.\n * Refusals: 404 `not_available` (a deployment without Video Remake), 403\n * `node_not_available` / `model_not_available`, 503 `engine_unavailable`, and\n * Video Remake's own (a clip outside 4–30 s, and the rest of its estimate's).\n */\nexport interface VideoToVideoRemakeParams {\n /** The clip to change, 4–30 seconds. */\n videoUrl: string\n /** What to change, in your own words. Required. */\n prompt: string\n /** The Video Remake engine, by its public id. */\n provider: VideoRemakeEngine\n /** Nodaro Prism: 480p (its default), 720p or 1080p. Nodaro Pulse: 720p (its default) or 1080p. */\n resolution?: \"480p\" | \"720p\" | \"1080p\"\n /** Nodaro Prism only: a 480p draft that Full Quality can finish at 1080p. */\n draft?: boolean\n [k: string]: unknown\n}\n\n/** The `client.videoRemake.run` body that runs a {@link VideoToVideoRemakeQuote}: the clip, the instruction, no role. */\nexport type VideoToVideoRemakeRun = Pick<VideoRemakeParams, \"videoUrl\" | \"roles\" | \"postPrompt\" | \"resolution\" | \"draft\"> & {\n roles: []\n postPrompt: string\n engine: VideoRemakeEngine\n}\n\n/**\n * What `POST /v1/video-to-video` answers for a Video Remake engine: a QUOTE,\n * never a started job. There is no `jobId`; `quoteOnly` is always `true`.\n * Nothing was held or charged. To run it:\n * `client.videoRemake.run(result.videoRemake.run.body)`.\n */\nexport interface VideoToVideoRemakeQuote {\n readonly quoteOnly: true\n /** The same, in words. */\n readonly message: string\n readonly videoRemake: {\n /** Video Remake's quote for this clip and instruction: `totalCredits` is the hold, `expectedCredits` the expected charge. */\n readonly quote: Omit<VideoRemakeEstimate, \"engine\" | \"maskingCredits\"> & {\n readonly engine: VideoRemakeEngine\n /** The engine's name, as people read it (\"Nodaro Prism\", \"Nodaro Pulse\"). */\n readonly engineName: string\n }\n /** The request that runs it. */\n readonly run: { readonly method: \"POST\"; readonly path: \"/v1/video-remake\"; readonly body: VideoToVideoRemakeRun }\n }\n readonly jobId?: never\n}\n\n/** Whether a `nodes.run(\"video-to-video\", …)` answer is a Video Remake quote (nothing started) rather than a job. */\nexport function isVideoToVideoRemakeQuote(result: unknown): result is VideoToVideoRemakeQuote {\n return !!result && typeof result === \"object\" && (result as { quoteOnly?: unknown }).quoteOnly === true && \"videoRemake\" in result\n}\n\n/** One way the platform shaped the price — shown so a client can explain it. */\nexport interface QuoteAdjustment {\n /** Stable code, e.g. `ref_video_length`, `extra_reference_images`,\n * `loop_trim_addon`, `voiced_audio_addon`, `params_adjusted`,\n * `output_size` (priced by the output's size), `max_images` (priced as the\n * most images the run can return). */\n readonly code: string\n readonly message: string\n /** Credits this adjustment adds to `reserve`, when it is a separate amount. */\n readonly credits?: number\n}\n\n/** Something the caller should know before running. */\nexport interface QuoteWarning {\n /** Stable code, e.g. `ref_video_unmeasured`, `image_size_unmeasured`,\n * `settles_to_actual` (`reserve` is the most the run can cost: it is\n * charged for what it delivers and the rest is refunded). */\n readonly code: string\n readonly message: string\n}\n\n/**\n * The price of a run before it starts — `POST /v1/quote`. Computed by the same\n * code the run route reserves with, on the same body: nothing is started and\n * nothing is charged.\n */\nexport interface NodeQuote {\n /** The price id the run is charged under. */\n readonly identifier: string\n /** Credits the run reserves when it starts. */\n readonly reserve: number\n /**\n * Credits the run is expected to cost, when that differs from `reserve` and\n * can be worked out from the measured inputs (a Seedance edit renders the\n * source clip's length, not the longest tier). The run settles to what was\n * actually generated and never above `reserve`.\n */\n readonly expected?: number\n readonly adjustments: readonly QuoteAdjustment[]\n readonly warnings: readonly QuoteWarning[]\n}\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-RQSGS7ZK.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk6BPQYCUG_cjs = require('../chunk-6BPQYCUG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CastSwapResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk6BPQYCUG_cjs.CastSwapResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
13
13
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CastSwapEngine, a as CastSwapEngineLegacyId, b as CastSwapEstimate, c as CastSwapFaceMasking, d as CastSwapFaceMaskingZone, e as CastSwapFullQualityEstimate, f as CastSwapFullQualityKind, g as CastSwapFullQualityParams, h as CastSwapFullQualityRefusalCode, i as CastSwapFullQualityResult, j as CastSwapKlingLength, k as CastSwapLocationRole, l as CastSwapMotionLength, m as CastSwapParams, n as CastSwapPersonRole, o as CastSwapPetRole, p as CastSwapProductRole, q as CastSwapReference, r as CastSwapResource, s as CastSwapRole, t as CastSwapRolePreviewSettings, u as CastSwapRunOptions, v as CastSwapStyle, w as CastSwapStyleChoice, x as CastSwapStyleChoiceOption, y as CastSwapTraitSource } from '../video-remake-
|
|
1
|
+
export { C as CastSwapEngine, a as CastSwapEngineLegacyId, b as CastSwapEstimate, c as CastSwapFaceMasking, d as CastSwapFaceMaskingZone, e as CastSwapFullQualityEstimate, f as CastSwapFullQualityKind, g as CastSwapFullQualityParams, h as CastSwapFullQualityRefusalCode, i as CastSwapFullQualityResult, j as CastSwapKlingLength, k as CastSwapLocationRole, l as CastSwapMotionLength, m as CastSwapParams, n as CastSwapPersonRole, o as CastSwapPetRole, p as CastSwapProductRole, q as CastSwapReference, r as CastSwapResource, s as CastSwapRole, t as CastSwapRolePreviewSettings, u as CastSwapRunOptions, v as CastSwapStyle, w as CastSwapStyleChoice, x as CastSwapStyleChoiceOption, y as CastSwapTraitSource } from '../video-remake-EHwCWlUW.cjs';
|
|
2
2
|
import '../developer-apps-D59GfAnO.cjs';
|
|
3
3
|
import '@nodaro/shared/apps';
|
|
4
4
|
import '@nodaro/shared/organizations';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CastSwapEngine, a as CastSwapEngineLegacyId, b as CastSwapEstimate, c as CastSwapFaceMasking, d as CastSwapFaceMaskingZone, e as CastSwapFullQualityEstimate, f as CastSwapFullQualityKind, g as CastSwapFullQualityParams, h as CastSwapFullQualityRefusalCode, i as CastSwapFullQualityResult, j as CastSwapKlingLength, k as CastSwapLocationRole, l as CastSwapMotionLength, m as CastSwapParams, n as CastSwapPersonRole, o as CastSwapPetRole, p as CastSwapProductRole, q as CastSwapReference, r as CastSwapResource, s as CastSwapRole, t as CastSwapRolePreviewSettings, u as CastSwapRunOptions, v as CastSwapStyle, w as CastSwapStyleChoice, x as CastSwapStyleChoiceOption, y as CastSwapTraitSource } from '../video-remake-
|
|
1
|
+
export { C as CastSwapEngine, a as CastSwapEngineLegacyId, b as CastSwapEstimate, c as CastSwapFaceMasking, d as CastSwapFaceMaskingZone, e as CastSwapFullQualityEstimate, f as CastSwapFullQualityKind, g as CastSwapFullQualityParams, h as CastSwapFullQualityRefusalCode, i as CastSwapFullQualityResult, j as CastSwapKlingLength, k as CastSwapLocationRole, l as CastSwapMotionLength, m as CastSwapParams, n as CastSwapPersonRole, o as CastSwapPetRole, p as CastSwapProductRole, q as CastSwapReference, r as CastSwapResource, s as CastSwapRole, t as CastSwapRolePreviewSettings, u as CastSwapRunOptions, v as CastSwapStyle, w as CastSwapStyleChoice, x as CastSwapStyleChoiceOption, y as CastSwapTraitSource } from '../video-remake-CnnJMGwj.js';
|
|
2
2
|
import '../developer-apps-D59GfAnO.js';
|
|
3
3
|
import '@nodaro/shared/apps';
|
|
4
4
|
import '@nodaro/shared/organizations';
|
|
@@ -4,7 +4,7 @@ import { EntityStyle, CharacterAspectRatio, CharacterAttachColumn } from '@nodar
|
|
|
4
4
|
export { CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, CharacterAspectRatio, EntityStyle } from '@nodaro/shared/entities';
|
|
5
5
|
import { TtsProvider } from '@nodaro/shared/models';
|
|
6
6
|
import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.cjs';
|
|
7
|
-
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-
|
|
7
|
+
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-D71Ec9b5.cjs';
|
|
8
8
|
import { SetKeeperCatalogInput, SetKeeperCatalogResult } from './keepers.cjs';
|
|
9
9
|
import '@nodaro/shared/apps';
|
|
10
10
|
import '@nodaro/shared/organizations';
|
|
@@ -15,6 +15,7 @@ import '@nodaro/shared/social';
|
|
|
15
15
|
import '@nodaro/shared/media';
|
|
16
16
|
import '@nodaro/shared/scene3d';
|
|
17
17
|
import '@nodaro/shared/credits';
|
|
18
|
+
import '../video-remake-EHwCWlUW.cjs';
|
|
18
19
|
import '@nodaro/shared/llm-models';
|
|
19
20
|
import './jobs.cjs';
|
|
20
21
|
import './errors.cjs';
|
|
@@ -4,7 +4,7 @@ import { EntityStyle, CharacterAspectRatio, CharacterAttachColumn } from '@nodar
|
|
|
4
4
|
export { CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, CharacterAspectRatio, EntityStyle } from '@nodaro/shared/entities';
|
|
5
5
|
import { TtsProvider } from '@nodaro/shared/models';
|
|
6
6
|
import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.js';
|
|
7
|
-
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-
|
|
7
|
+
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-C6e2wign.js';
|
|
8
8
|
import { SetKeeperCatalogInput, SetKeeperCatalogResult } from './keepers.js';
|
|
9
9
|
import '@nodaro/shared/apps';
|
|
10
10
|
import '@nodaro/shared/organizations';
|
|
@@ -15,6 +15,7 @@ import '@nodaro/shared/social';
|
|
|
15
15
|
import '@nodaro/shared/media';
|
|
16
16
|
import '@nodaro/shared/scene3d';
|
|
17
17
|
import '@nodaro/shared/credits';
|
|
18
|
+
import '../video-remake-CnnJMGwj.js';
|
|
18
19
|
import '@nodaro/shared/llm-models';
|
|
19
20
|
import './jobs.js';
|
|
20
21
|
import './errors.js';
|
package/dist/entries/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG6ASA5RQ_cjs = require('../chunk-G6ASA5RQ.cjs');
|
|
4
4
|
require('../chunk-WKNWJDF6.cjs');
|
|
5
5
|
require('../chunk-3B47IHB3.cjs');
|
|
6
6
|
require('../chunk-WUM6CWTE.cjs');
|
|
@@ -8,7 +8,7 @@ require('../chunk-LKH5M44B.cjs');
|
|
|
8
8
|
require('../chunk-UIBYZNDR.cjs');
|
|
9
9
|
require('../chunk-LTZKNAXM.cjs');
|
|
10
10
|
require('../chunk-RKW3N463.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-STKXUHEM.cjs');
|
|
12
12
|
require('../chunk-KMNSPC72.cjs');
|
|
13
13
|
require('../chunk-6YWXKDAY.cjs');
|
|
14
14
|
require('../chunk-REXFEDKI.cjs');
|
|
@@ -22,7 +22,7 @@ require('../chunk-MBFUMWI5.cjs');
|
|
|
22
22
|
require('../chunk-7XKVBFKM.cjs');
|
|
23
23
|
require('../chunk-H7Q7D4CT.cjs');
|
|
24
24
|
require('../chunk-GVIFLUYZ.cjs');
|
|
25
|
-
require('../chunk-
|
|
25
|
+
require('../chunk-USBDYHSO.cjs');
|
|
26
26
|
require('../chunk-J5LGGCAS.cjs');
|
|
27
27
|
require('../chunk-NBVARNVA.cjs');
|
|
28
28
|
require('../chunk-NECPBLEM.cjs');
|
|
@@ -32,14 +32,14 @@ require('../chunk-TCLNSVYA.cjs');
|
|
|
32
32
|
require('../chunk-OI4RCW2J.cjs');
|
|
33
33
|
require('../chunk-ITQB5ADE.cjs');
|
|
34
34
|
require('../chunk-MIXRL6I2.cjs');
|
|
35
|
-
require('../chunk-
|
|
35
|
+
require('../chunk-H6ZB7WYE.cjs');
|
|
36
36
|
require('../chunk-K7G4OYDH.cjs');
|
|
37
37
|
require('../chunk-ZCWKX4V6.cjs');
|
|
38
38
|
require('../chunk-DUE24QGQ.cjs');
|
|
39
|
-
require('../chunk-
|
|
39
|
+
require('../chunk-JIFGF6PA.cjs');
|
|
40
40
|
require('../chunk-A3S55XGF.cjs');
|
|
41
41
|
require('../chunk-KKH7QQAR.cjs');
|
|
42
|
-
require('../chunk-
|
|
42
|
+
require('../chunk-7WVQZPUW.cjs');
|
|
43
43
|
require('../chunk-VUTNNRDW.cjs');
|
|
44
44
|
require('../chunk-W63ZKKYT.cjs');
|
|
45
45
|
require('../chunk-UKITRPXF.cjs');
|
|
@@ -50,14 +50,14 @@ require('../chunk-YFS2LMG4.cjs');
|
|
|
50
50
|
require('../chunk-4DCXJ77J.cjs');
|
|
51
51
|
require('../chunk-ZJM5YBXY.cjs');
|
|
52
52
|
require('../chunk-XWPYN2VX.cjs');
|
|
53
|
-
var
|
|
53
|
+
var chunkHEJE6L3E_cjs = require('../chunk-HEJE6L3E.cjs');
|
|
54
54
|
require('../chunk-E2NMFQNY.cjs');
|
|
55
|
-
require('../chunk-
|
|
55
|
+
require('../chunk-FQHMDWSP.cjs');
|
|
56
56
|
require('../chunk-IKZIXM5C.cjs');
|
|
57
57
|
require('../chunk-7BMKQ36V.cjs');
|
|
58
58
|
require('../chunk-CAM74LQ2.cjs');
|
|
59
59
|
require('../chunk-VMV5JH4U.cjs');
|
|
60
|
-
require('../chunk-
|
|
60
|
+
require('../chunk-6BPQYCUG.cjs');
|
|
61
61
|
require('../chunk-7OLINQTA.cjs');
|
|
62
62
|
require('../chunk-XZQ6Z4T6.cjs');
|
|
63
63
|
|
|
@@ -65,23 +65,23 @@ require('../chunk-XZQ6Z4T6.cjs');
|
|
|
65
65
|
|
|
66
66
|
Object.defineProperty(exports, "NodaroClient", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkG6ASA5RQ_cjs.NodaroClient; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "createClient", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkG6ASA5RQ_cjs.createClient; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkHEJE6L3E_cjs.CallbackAuth; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkHEJE6L3E_cjs.StaticTokenAuth; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkHEJE6L3E_cjs.supabaseAuth; }
|
|
85
85
|
});
|
|
86
86
|
//# sourceMappingURL=client.cjs.map
|
|
87
87
|
//# sourceMappingURL=client.cjs.map
|
|
@@ -5,7 +5,7 @@ import { TrashResource } from './trash.cjs';
|
|
|
5
5
|
import { JobsResource } from './jobs.cjs';
|
|
6
6
|
import { VideoProResource } from './video-pro.cjs';
|
|
7
7
|
import { ExecutionsResource } from './executions.cjs';
|
|
8
|
-
import { t as NodesResource } from '../nodes-
|
|
8
|
+
import { t as NodesResource } from '../nodes-D71Ec9b5.cjs';
|
|
9
9
|
import { Scene3DResource } from './scene3d.cjs';
|
|
10
10
|
import { N as NodaroClientCore, h as DeveloperAppsResource, a as ClientOptions } from '../developer-apps-D59GfAnO.cjs';
|
|
11
11
|
export { A as Auth, C as CallbackAuth, b as ConnectedApp, S as StaticTokenAuth, i as UserIdentity, s as supabaseAuth } from '../developer-apps-D59GfAnO.cjs';
|
|
@@ -44,7 +44,7 @@ import { CatalogsResource } from './catalogs.cjs';
|
|
|
44
44
|
import { ModelsResource } from './models.cjs';
|
|
45
45
|
import { ShotsResource } from './shots.cjs';
|
|
46
46
|
import { RecastResource } from './recast.cjs';
|
|
47
|
-
import {
|
|
47
|
+
import { Y as VideoRemakeResource } from '../video-remake-EHwCWlUW.cjs';
|
|
48
48
|
import { TrendsResource } from './trends.cjs';
|
|
49
49
|
import { TrendRadarResource } from './trend-radar.cjs';
|
|
50
50
|
import { StudioResource } from './studio.cjs';
|
package/dist/entries/client.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { TrashResource } from './trash.js';
|
|
|
5
5
|
import { JobsResource } from './jobs.js';
|
|
6
6
|
import { VideoProResource } from './video-pro.js';
|
|
7
7
|
import { ExecutionsResource } from './executions.js';
|
|
8
|
-
import { t as NodesResource } from '../nodes-
|
|
8
|
+
import { t as NodesResource } from '../nodes-C6e2wign.js';
|
|
9
9
|
import { Scene3DResource } from './scene3d.js';
|
|
10
10
|
import { N as NodaroClientCore, h as DeveloperAppsResource, a as ClientOptions } from '../developer-apps-D59GfAnO.js';
|
|
11
11
|
export { A as Auth, C as CallbackAuth, b as ConnectedApp, S as StaticTokenAuth, i as UserIdentity, s as supabaseAuth } from '../developer-apps-D59GfAnO.js';
|
|
@@ -44,7 +44,7 @@ import { CatalogsResource } from './catalogs.js';
|
|
|
44
44
|
import { ModelsResource } from './models.js';
|
|
45
45
|
import { ShotsResource } from './shots.js';
|
|
46
46
|
import { RecastResource } from './recast.js';
|
|
47
|
-
import {
|
|
47
|
+
import { Y as VideoRemakeResource } from '../video-remake-CnnJMGwj.js';
|
|
48
48
|
import { TrendsResource } from './trends.js';
|
|
49
49
|
import { TrendRadarResource } from './trend-radar.js';
|
|
50
50
|
import { StudioResource } from './studio.js';
|
package/dist/entries/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { NodaroClient, createClient } from '../chunk-
|
|
1
|
+
export { NodaroClient, createClient } from '../chunk-JCLJRCMR.js';
|
|
2
2
|
import '../chunk-S5V37WYY.js';
|
|
3
3
|
import '../chunk-YN6CBIIB.js';
|
|
4
4
|
import '../chunk-33HT46A3.js';
|
|
@@ -6,7 +6,7 @@ import '../chunk-Z5GLY4R3.js';
|
|
|
6
6
|
import '../chunk-M7VSFZMV.js';
|
|
7
7
|
import '../chunk-2SQ7V6EX.js';
|
|
8
8
|
import '../chunk-TLTPIS2A.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-D45ATYCE.js';
|
|
10
10
|
import '../chunk-HPXE3NZW.js';
|
|
11
11
|
import '../chunk-K53JD2ZC.js';
|
|
12
12
|
import '../chunk-J3Y56MYU.js';
|
|
@@ -20,7 +20,7 @@ import '../chunk-WVFAQBS7.js';
|
|
|
20
20
|
import '../chunk-6TR7QXSX.js';
|
|
21
21
|
import '../chunk-T6CKK47P.js';
|
|
22
22
|
import '../chunk-Z7LGWNI7.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-C3H3V5PN.js';
|
|
24
24
|
import '../chunk-ALSLZG3U.js';
|
|
25
25
|
import '../chunk-WEQWU2IC.js';
|
|
26
26
|
import '../chunk-3GF4VPK4.js';
|
|
@@ -30,14 +30,14 @@ import '../chunk-OIPPTBW4.js';
|
|
|
30
30
|
import '../chunk-GG7DOKTH.js';
|
|
31
31
|
import '../chunk-CNST37UF.js';
|
|
32
32
|
import '../chunk-XZPSJG2X.js';
|
|
33
|
-
import '../chunk-
|
|
33
|
+
import '../chunk-QV4QD6XI.js';
|
|
34
34
|
import '../chunk-54NGEY45.js';
|
|
35
35
|
import '../chunk-YVU2M7MI.js';
|
|
36
36
|
import '../chunk-H77BJMV2.js';
|
|
37
|
-
import '../chunk-
|
|
37
|
+
import '../chunk-PNTVCJZV.js';
|
|
38
38
|
import '../chunk-65E3JBFZ.js';
|
|
39
39
|
import '../chunk-D5X3NKSI.js';
|
|
40
|
-
import '../chunk-
|
|
40
|
+
import '../chunk-VPBPVDKY.js';
|
|
41
41
|
import '../chunk-22XXTB2R.js';
|
|
42
42
|
import '../chunk-MC77SD42.js';
|
|
43
43
|
import '../chunk-WY5QIOO4.js';
|
|
@@ -48,14 +48,14 @@ import '../chunk-BU5A6K4C.js';
|
|
|
48
48
|
import '../chunk-HAS6PMQN.js';
|
|
49
49
|
import '../chunk-SA7VTT7C.js';
|
|
50
50
|
import '../chunk-YQ2Q4OM3.js';
|
|
51
|
-
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-
|
|
51
|
+
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-IAHNPMIX.js';
|
|
52
52
|
import '../chunk-4Q3XZE5O.js';
|
|
53
|
-
import '../chunk-
|
|
53
|
+
import '../chunk-3NG4HPM5.js';
|
|
54
54
|
import '../chunk-NEGNTQLF.js';
|
|
55
55
|
import '../chunk-OJHJBNJZ.js';
|
|
56
56
|
import '../chunk-JAGTW35C.js';
|
|
57
57
|
import '../chunk-66IQZPPW.js';
|
|
58
|
-
import '../chunk-
|
|
58
|
+
import '../chunk-6ZKW7767.js';
|
|
59
59
|
import '../chunk-AZMUM5WG.js';
|
|
60
60
|
import '../chunk-CBDUHYTR.js';
|
|
61
61
|
//# sourceMappingURL=client.js.map
|
package/dist/entries/core.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-X7XP5WBP.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkHEJE6L3E_cjs = require('../chunk-HEJE6L3E.cjs');
|
|
5
5
|
require('../chunk-E2NMFQNY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkHEJE6L3E_cjs.CallbackAuth; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "NodaroClientCore", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkHEJE6L3E_cjs.NodaroClientCore; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkHEJE6L3E_cjs.StaticTokenAuth; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkHEJE6L3E_cjs.supabaseAuth; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=core.cjs.map
|
|
26
26
|
//# sourceMappingURL=core.cjs.map
|
package/dist/entries/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-AUDHV3OE.js';
|
|
2
|
-
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-
|
|
2
|
+
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-IAHNPMIX.js';
|
|
3
3
|
import '../chunk-4Q3XZE5O.js';
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
|
5
5
|
//# sourceMappingURL=core.js.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-4WWSHV5G.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkFQHMDWSP_cjs = require('../chunk-FQHMDWSP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CREATURE_ASPECT_DEFAULTS", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkFQHMDWSP_cjs.OBJECT_ASPECT_DEFAULTS; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CREATURE_ASPECT_OPTIONS", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkFQHMDWSP_cjs.OBJECT_ASPECT_OPTIONS; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CREATURE_ASSET_TYPES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkFQHMDWSP_cjs.CREATURE_ASSET_TYPES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "CREATURE_ATTACH_COLUMNS", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkFQHMDWSP_cjs.CREATURE_ATTACH_COLUMNS; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "CreaturesResource", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkFQHMDWSP_cjs.CreaturesResource; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=creatures.cjs.map
|
|
29
29
|
//# sourceMappingURL=creatures.cjs.map
|
|
@@ -2,7 +2,7 @@ import { CreatureAttachColumn, ObjectAspectRatio } from '@nodaro/shared/entities
|
|
|
2
2
|
export { OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ATTACH_COLUMNS, ObjectAspectRatio as CreatureAspectRatio, CreatureAttachColumn } from '@nodaro/shared/entities';
|
|
3
3
|
import { TtsProvider } from '@nodaro/shared/models';
|
|
4
4
|
import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.cjs';
|
|
5
|
-
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-
|
|
5
|
+
import { l as GenerationSessionParams, a4 as Subject } from '../nodes-D71Ec9b5.cjs';
|
|
6
6
|
import { SetKeeperCatalogInput, SetKeeperCatalogResult } from './keepers.cjs';
|
|
7
7
|
import '@nodaro/shared/apps';
|
|
8
8
|
import '@nodaro/shared/organizations';
|
|
@@ -13,6 +13,7 @@ import '@nodaro/shared/social';
|
|
|
13
13
|
import '@nodaro/shared/media';
|
|
14
14
|
import '@nodaro/shared/scene3d';
|
|
15
15
|
import '@nodaro/shared/credits';
|
|
16
|
+
import '../video-remake-EHwCWlUW.cjs';
|
|
16
17
|
import '@nodaro/shared/llm-models';
|
|
17
18
|
import './jobs.cjs';
|
|
18
19
|
import './errors.cjs';
|
|
@@ -421,8 +422,6 @@ interface GenerateCreatureMotionInput extends GenerationSessionParams {
|
|
|
421
422
|
sourceImageUrl: string;
|
|
422
423
|
provider?: string;
|
|
423
424
|
name: string;
|
|
424
|
-
/** Source clip URL — when set, worker routes to video-to-video refine. */
|
|
425
|
-
refineFromVideoUrl?: string;
|
|
426
425
|
category?: string;
|
|
427
426
|
style?: "realistic" | "anime" | "3d-pixar" | "illustration";
|
|
428
427
|
canonicalDescription?: string;
|