@nodaro/sdk 2.76.0 → 2.77.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.
Files changed (70) hide show
  1. package/dist/{chunk-OO4AKYUN.js → chunk-3M7AHJG5.js} +52 -10
  2. package/dist/chunk-3M7AHJG5.js.map +1 -0
  3. package/dist/{chunk-SGVJUVFD.cjs → chunk-4VKV3HW3.cjs} +3 -3
  4. package/dist/{chunk-SGVJUVFD.cjs.map → chunk-4VKV3HW3.cjs.map} +1 -1
  5. package/dist/{chunk-CSNYBGHP.js → chunk-D45ATYCE.js} +2 -2
  6. package/dist/chunk-D45ATYCE.js.map +1 -0
  7. package/dist/{chunk-U2F6IHHY.js → chunk-EKVE3DBA.js} +7 -7
  8. package/dist/{chunk-U2F6IHHY.js.map → chunk-EKVE3DBA.js.map} +1 -1
  9. package/dist/{chunk-UPWAODYT.cjs → chunk-H6ZB7WYE.cjs} +26 -2
  10. package/dist/chunk-H6ZB7WYE.cjs.map +1 -0
  11. package/dist/{chunk-FOC4VPGK.js → chunk-M5ZXVXZL.js} +3 -3
  12. package/dist/{chunk-FOC4VPGK.js.map → chunk-M5ZXVXZL.js.map} +1 -1
  13. package/dist/{chunk-IO7NEEZZ.cjs → chunk-MGVK4PJF.cjs} +15 -2
  14. package/dist/chunk-MGVK4PJF.cjs.map +1 -0
  15. package/dist/chunk-NDX4QUTI.js +3 -0
  16. package/dist/{chunk-WFFVCGNU.js.map → chunk-NDX4QUTI.js.map} +1 -1
  17. package/dist/{chunk-AOHDYZSZ.js → chunk-QV4QD6XI.js} +26 -2
  18. package/dist/chunk-QV4QD6XI.js.map +1 -0
  19. package/dist/{chunk-6NIKAVI3.cjs → chunk-STKXUHEM.cjs} +2 -2
  20. package/dist/chunk-STKXUHEM.cjs.map +1 -0
  21. package/dist/{chunk-7PMOXQEO.cjs → chunk-VKEFUXQJ.cjs} +51 -8
  22. package/dist/chunk-VKEFUXQJ.cjs.map +1 -0
  23. package/dist/{chunk-D3F2BWD6.cjs → chunk-VZCCECKW.cjs} +2 -2
  24. package/dist/{chunk-D3F2BWD6.cjs.map → chunk-VZCCECKW.cjs.map} +1 -1
  25. package/dist/{chunk-TZFZDEWI.js → chunk-WSOLDULF.js} +15 -2
  26. package/dist/chunk-WSOLDULF.js.map +1 -0
  27. package/dist/{chunk-SGVTZ2J5.cjs → chunk-XF7IDNMR.cjs} +12 -12
  28. package/dist/{chunk-SGVTZ2J5.cjs.map → chunk-XF7IDNMR.cjs.map} +1 -1
  29. package/dist/entries/cast-swap.cjs +2 -2
  30. package/dist/entries/cast-swap.d.cts +1 -1
  31. package/dist/entries/cast-swap.d.ts +1 -1
  32. package/dist/entries/cast-swap.js +1 -1
  33. package/dist/entries/client.cjs +11 -11
  34. package/dist/entries/client.d.cts +1 -1
  35. package/dist/entries/client.d.ts +1 -1
  36. package/dist/entries/client.js +6 -6
  37. package/dist/entries/core.cjs +5 -5
  38. package/dist/entries/core.js +1 -1
  39. package/dist/entries/edit.cjs +12 -8
  40. package/dist/entries/edit.d.cts +265 -71
  41. package/dist/entries/edit.d.ts +265 -71
  42. package/dist/entries/edit.js +2 -2
  43. package/dist/entries/media.cjs +2 -2
  44. package/dist/entries/media.d.cts +66 -1
  45. package/dist/entries/media.d.ts +66 -1
  46. package/dist/entries/media.js +1 -1
  47. package/dist/entries/trends.cjs +2 -2
  48. package/dist/entries/trends.d.cts +36 -17
  49. package/dist/entries/trends.d.ts +36 -17
  50. package/dist/entries/trends.js +1 -1
  51. package/dist/entries/video-remake.cjs +2 -2
  52. package/dist/entries/video-remake.d.cts +1 -1
  53. package/dist/entries/video-remake.d.ts +1 -1
  54. package/dist/entries/video-remake.js +1 -1
  55. package/dist/index.cjs +27 -23
  56. package/dist/index.d.cts +4 -4
  57. package/dist/index.d.ts +4 -4
  58. package/dist/index.js +7 -7
  59. package/dist/{video-remake-C-KR7YtT.d.ts → video-remake-BEBbUmlY.d.ts} +24 -1
  60. package/dist/{video-remake-DTuCyhd9.d.cts → video-remake-LrhEaona.d.cts} +24 -1
  61. package/package.json +3 -3
  62. package/dist/chunk-6NIKAVI3.cjs.map +0 -1
  63. package/dist/chunk-7PMOXQEO.cjs.map +0 -1
  64. package/dist/chunk-AOHDYZSZ.js.map +0 -1
  65. package/dist/chunk-CSNYBGHP.js.map +0 -1
  66. package/dist/chunk-IO7NEEZZ.cjs.map +0 -1
  67. package/dist/chunk-OO4AKYUN.js.map +0 -1
  68. package/dist/chunk-TZFZDEWI.js.map +0 -1
  69. package/dist/chunk-UPWAODYT.cjs.map +0 -1
  70. package/dist/chunk-WFFVCGNU.js +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/cast-swap.ts"],"names":[],"mappings":";;;AA0mBO,IAAM,sBAAN,MAA0B;AAAA,EAC/B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASpB,GAAA,CAAI,QAA2B,OAAA,EAAgF;AAC7G,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,MAAA,EAAQ,kBAAA,EAAoB;AAAA,MACrD,IAAA,EAAM,MAAA;AAAA,MACN,GAAI,OAAA,EAAS,cAAA,GAAiB,EAAE,OAAA,EAAS,EAAE,iBAAA,EAAmB,OAAA,CAAQ,cAAA,EAAe,EAAE,GAAI;AAAC,KAC7F,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,WAAA,GAA+C;AAC7C,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,KAAA,EAAO,+BAA+B,CAAA;AAAA,EACnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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":["import { nodaroMotionEngineFrom } from \"@nodaro/shared/models\"\nimport type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Video Remake (the `videoRemake` resource; routes `/v1/video-remake`) — replace\n * the people, pets, products and/or the location in a short video with your\n * own references, keeping its motion, framing, timing and sound (the clip's\n * audio is kept, and the result is the clip's length).\n *\n * Before the video, each person, pet and product role's photos are turned\n * into one clean reference picture by an image model. This costs extra\n * credits (`breakdown.references` in the estimate), charged when it runs, even\n * if the video then fails; it adds about a minute, falls back to your own\n * photos if it fails, and is turned off with `prepareReferences: false`.\n * Locations are not prepared.\n *\n * Engines: a run is made on Nodaro Prism (`engine` left out, or\n * `\"nodaro-prism\"`) or Nodaro Pulse (`\"nodaro-pulse\"`). Prism renders\n * 480p (the default; plain unless `draft: true`), 720p or 1080p. Pulse renders\n * 720p (its default) or 1080p and makes a new take guided by the clip and\n * pictures; it has no draft, so no Full Quality: run it again at 1080p instead.\n *\n * How the clip is prepared for the video model (for one, whether faces are\n * hidden first, and whether a refused clip is retried) is set by Nodaro for\n * each engine; a run cannot change it. `faceMasking` is no longer read\n * (deprecated: accepted and ignored).\n *\n * Cloud edition only: `/v1/video-remake` is served by the cloud plugin and 404s\n * on self-hosted installs. `run()` answers 202 with a job id; follow it with\n * `client.jobs.get(jobId)` / `client.jobs.getStatus(jobId)` like any other job.\n *\n * Repeats: pass `{ idempotencyKey }` to `run()` and it is sent as the\n * `Idempotency-Key` header. A repeat with the same key within the credit\n * guard's dedup window (about 10 s) answers 200 `{ jobId, deduped: true }` with\n * an `X-Dedup-Hit` header; a later one answers 202 with the first run's\n * `jobId`. Nothing new is started or charged.\n *\n * Refusals (thrown as a `NodaroError` subclass; body `{ error: { code, message } }`), before\n * anything is charged: 400 `validation_error` (the body: no role with images,\n * no reference, no `prePrompt` or `postPrompt` and no art style (Flex on\n * Nodaro Prism), more roles of a kind\n * than allowed, more than 30 images in all, `draft: true` above 480p, a\n * `prePrompt` or `postPrompt` over 4,000 characters); on Nodaro Pulse,\n * `draft_unsupported` (`draft: true`), `resolution_unsupported` (480p),\n * `output_format_unsupported` (a MOV edit output) and `too_many_images` (more\n * than 10 images in the run, across every role and fixed reference);\n * `raw_reference_token` (also in a reference's `line`),\n * `invalid_role_mention` (also any `{role:N}` in a reference's `line`),\n * `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),\n * `preview_out_of_range`, `unnamed_role_needs_picture` (a role with no name\n * and no image), `no_roles_in_preview` (a preview that would change nothing,\n * judged on what it sends: no role kept in it with images, no fixed\n * reference, no `prePrompt` or `postPrompt` and no art style), `prompt_too_long`\n * (the prompt would build too long: a `{role:N}` reads as the role's name when\n * it sends no images; Nodaro Pulse's cap is 8,000 characters); 401; 402 `insufficient_credits` (`run()` only); 404\n * (a `sessionId` you may not use, `run()` only); 422 `job_blocked` (`run()`\n * only); 503 `host_too_old` (both); 503 `estimate_unavailable` (`estimate()`\n * only).\n */\n\n/**\n * The engine a Video Remake run is made on, by its public id. Left out =\n * `\"nodaro-prism\"`.\n *\n * - `\"nodaro-prism\"` (Nodaro Prism): 480p (the default; plain unless\n * `draft: true`), 720p or 1080p; Full Quality finishes a draft's own take at\n * 1080p.\n * - `\"nodaro-pulse\"` (Nodaro Pulse): 720p (the default) or 1080p, never a\n * draft (`draft: true` answers 400 `draft_unsupported`), so no Full Quality:\n * run it again at 1080p instead. A preview is still 4 s from `previewStart`.\n */\nexport type VideoRemakeEngine = \"nodaro-prism\" | \"nodaro-pulse\"\n\n/**\n * The engine ids an older client sent: the earlier public ids\n * (`\"motion-prism\"` and `\"motion-pro\"` = `\"nodaro-prism\"`, `\"motion-pulse\"`\n * and `\"motion-lite\"` = `\"nodaro-pulse\"`) and the internal ones\n * (`\"seedance-2-5\"`, `\"kling-4\"`). Still accepted in a request; never\n * returned.\n * @deprecated use {@link VideoRemakeEngine}.\n */\nexport type VideoRemakeEngineLegacyId = \"motion-prism\" | \"motion-pulse\" | \"motion-pro\" | \"motion-lite\" | \"seedance-2-5\" | \"kling-4\"\n\n/**\n * How a run follows its clip. Left out = `\"precise\"`.\n *\n * - `\"precise\"`: follows the clip exactly.\n * - `\"motion\"`: follows the clip's movement and takes the looks from your\n * photos, more freely than `\"precise\"`. Its price may differ from\n * `\"precise\"`'s: the estimate shows the exact price.\n */\nexport type VideoRemakeStyle = \"precise\" | \"motion\"\n\n/**\n * Where a Nodaro Pulse run cuts the clip to whole seconds (Pulse renders\n * whole seconds; asked for more than the clip, it would stretch the motion):\n * - `\"cut-end\"` (the default): drop the fraction of a second at its end;\n * - `\"cut-start\"`: drop it at its start.\n */\nexport type VideoRemakeMotionLength = \"cut-end\" | \"cut-start\"\n\n\n/** Whether a swapped subject takes this trait from the references (`\"new\"`) or keeps the video's (`\"original\"`). */\nexport type VideoRemakeTraitSource = \"new\" | \"original\"\n\n/**\n * Preview-only settings, on every role kind; a full run (`preview` not `true`)\n * ignores both.\n */\nexport interface VideoRemakeRolePreviewSettings {\n /** The name used instead of `name` in a preview. Same rules as `name` (1–200 characters). */\n previewName?: string\n /**\n * `false` leaves this role out of the preview: its reference images are not\n * sent, not prepared and not charged, and a `{role:N}` naming it reads as its\n * `previewName`, else its `name`. Default `true`. A preview that would\n * change nothing (no role kept in it with images, no fixed reference, no pre\n * or post prompt and no art style) answers 400 `no_roles_in_preview`.\n */\n inPreview?: boolean\n}\n\n/** A person in the video to recast. */\nexport interface VideoRemakePersonRole extends VideoRemakeRolePreviewSettings {\n kind: \"person\"\n /** How the person is told apart in the video, e.g. `\"the woman that attacks\"`.\n *\n * Direct runs only: omit it (or leave it empty) and the role is named by its\n * first picture — matched to the subject in the video it fits best; such a\n * role needs at least one image (else 400 `unnamed_role_needs_picture`). A\n * trend run's roles are always named (400 `role_name_required`).\n */\n name?: string\n /** 0–3 images of ONE person. Empty or `null` keeps the original person. */\n images: string[] | null\n /** Body from the references or the video. Default `\"new\"`. */\n body?: VideoRemakeTraitSource\n /** Outfit from the references or the video. Default `\"new\"`. */\n outfit?: VideoRemakeTraitSource\n /** Hairstyle and haircut from the references or the video. Default `\"new\"`. */\n hair?: VideoRemakeTraitSource\n}\n\n/** The place the video happens in. */\nexport interface VideoRemakeLocationRole extends VideoRemakeRolePreviewSettings {\n kind: \"location\"\n /** How the place is named. Default `\"the setting\"`. */\n name?: string\n /** 0–3 images of ONE place. Empty or `null` keeps the original place. */\n images: string[] | null\n}\n\n/** An animal in the video to recast. */\nexport interface VideoRemakePetRole extends VideoRemakeRolePreviewSettings {\n kind: \"pet\"\n /** How the animal is told apart in the video, e.g. `\"the dog\"`.\n *\n * Direct runs only: omit it (or leave it empty) and the role is named by its\n * first picture — matched to the subject in the video it fits best; such a\n * role needs at least one image (else 400 `unnamed_role_needs_picture`). A\n * trend run's roles are always named (400 `role_name_required`).\n */\n name?: string\n /** 0–3 images of ONE animal. Empty or `null` keeps the original animal. */\n images: string[] | null\n /** Body (shape, size and build) from the references or the video. Default `\"new\"`. */\n body?: VideoRemakeTraitSource\n /** Coat (fur, colors and markings) from the references or the video. Default `\"new\"`. */\n coat?: VideoRemakeTraitSource\n}\n\n/** An object in the video to recast. */\nexport interface VideoRemakeProductRole extends VideoRemakeRolePreviewSettings {\n kind: \"product\"\n /** How the object is told apart in the video, e.g. `\"the can\"`.\n *\n * Direct runs only: omit it (or leave it empty) and the role is named by its\n * first picture — matched to the subject in the video it fits best; such a\n * role needs at least one image (else 400 `unnamed_role_needs_picture`). A\n * trend run's roles are always named (400 `role_name_required`).\n */\n name?: string\n /** 0–3 images of ONE product. Empty or `null` keeps the original object. */\n images: string[] | null\n /** Shape and proportions from the references or the video. Default `\"new\"`. */\n shape?: VideoRemakeTraitSource\n /** Finish (colors, materials, label and markings) from the references or the video. Default `\"new\"`. */\n finish?: VideoRemakeTraitSource\n}\n\nexport type VideoRemakeRole = VideoRemakePersonRole | VideoRemakeLocationRole | VideoRemakePetRole | VideoRemakeProductRole\n\n/**\n * A fixed reference: 1–3 images of ONE thing that no role replaces, and the\n * line that says what it is (`\"the glass she drinks from\"`). Sent as given,\n * never prepared; its images count toward the 30.\n */\nexport interface VideoRemakeReference {\n /** 1–3 http(s) image URLs of one thing. */\n images: string[]\n /**\n * What it is, 1–500 characters. `{image}` in the line stands for this\n * reference's first image (`\"Use {image} for the sky\"`); a line without it\n * gets it appended. A `{role:N}` or a raw `{image:` / `{video:` / `{audio:`\n * token answers 400.\n */\n line: string\n}\n\n/**\n * @deprecated Nodaro sets this per engine; a run's `faceMasking` is ignored.\n */\nexport interface VideoRemakeFaceMaskingZone {\n leftPct?: number\n rightPct?: number\n topPct?: number\n bottomPct?: number\n}\n\n/**\n * @deprecated Nodaro sets how the clip is prepared for the video model, per\n * engine; a run cannot change it. A `faceMasking` sent is accepted and\n * ignored (no error), so older code keeps working unchanged.\n */\nexport interface VideoRemakeFaceMasking {\n mode: \"off\" | \"always\" | \"auto\"\n fill?: \"blur\" | \"depth\"\n minFaceHeightPct?: number\n maxFaceHeightPct?: number\n zone?: VideoRemakeFaceMaskingZone | null\n blurStrengthPct?: number\n threshold?: number\n}\n\n/** The body of `POST /v1/video-remake` and `POST /v1/video-remake/estimate`. */\nexport interface VideoRemakeParams {\n /** The source clip, 4–30 seconds. */\n videoUrl: string\n /**\n * Who and what to swap: at most 6 person roles, 1 location role, 3 pet roles\n * and 3 product roles, with at most 30 images in all. A role with no images\n * is skipped (that subject or place stays as in the video). At least one role\n * with images, a fixed reference, a `prePrompt` or `postPrompt`, or an art\n * style (`direction`, Flex on Nodaro Prism) is required. With an art\n * style and nothing to swap, a run restyles the whole clip (see `direction`).\n */\n roles: VideoRemakeRole[]\n /**\n * Fixed references (at most 5): things the video should show that no role\n * replaces, each with the line that names it. Their images count toward the\n * 30. A reference alone is enough for a run (no role needs images).\n */\n references?: VideoRemakeReference[]\n /**\n * Your own words placed at the start of the prompt, before the role\n * instructions; at most 4,000 characters. Mention a role as `{role:N}`, as in\n * `postPrompt`; the same 400 refusals apply (an N outside 1..`roles.length`,\n * a raw `{image:` / `{video:` / `{audio:` token).\n */\n prePrompt?: string\n /**\n * Extra instructions in your own words, at most 4,000 characters. Mention a\n * role as `{role:N}`, where N is its 1-based position in `roles`\n * (`{role:1}` is `roles[0]`; empty roles count).\n *\n * The route answers 400, before charging, for an N outside 1..`roles.length`,\n * for a raw `{image:` / `{video:` / `{audio:` token in the pre or post prompt\n * or a role's `name`, for a clip outside 4–30 s, and for a preview past the clip's\n * end (`previewStart + 4` > its length).\n */\n postPrompt?: string\n /** `true` runs on 4 seconds of the clip, starting at `previewStart`: a cheap check of the roles and choices. */\n preview?: boolean\n /** Where the preview starts, in seconds. Default 0. */\n previewStart?: number\n /**\n * The engine (see {@link VideoRemakeEngine}). Default `\"nodaro-prism\"`. The job\n * records it in `input_data.engine`, and a completed job's output in its\n * `engine`. The ids an older client sent ({@link VideoRemakeEngineLegacyId})\n * are still accepted.\n */\n engine?: VideoRemakeEngine | VideoRemakeEngineLegacyId\n /**\n * How the run follows the clip (see {@link VideoRemakeStyle}). Default\n * `\"precise\"`; the job records it in `input_data.style`.\n */\n style?: VideoRemakeStyle\n /**\n * A direct run on Nodaro Prism: an art style that restyles the whole\n * video, as a `direction.style` id of the platform's `style` picker catalog\n * (the same ids an image's `direction.style` takes); the platform words it.\n * A Flex run (`style: \"motion\"`) takes one, and so does a Precise run where\n * {@link VideoRemakeResource.styleChoice} answers `preciseArtStyle` true for the\n * engine. Nodaro may make such a Precise request the way a Flex run is made\n * (its engine does by default, unless Nodaro turns that off): its estimate,\n * price and Full Quality are then a Flex run's, while the job still records\n * the style sent (`input_data.style` absent, or `\"precise\"`; jobs made so\n * before the style was kept record `\"motion\"`). Otherwise it is Precise's edit\n * of the clip, drawn in the art style. Refused with\n * 400 `unknown_art_style` (not in the catalog), `art_style_not_supported` (a\n * saved moodboard, `moodboard:…`) or `art_style_needs_flex` (a trend run, a\n * Flex run whose prompt is made Precise by Nodaro's setting for how Flex\n * runs are prepared, or a Precise request on an engine from before Precise\n * runs took one), and on Nodaro Pulse with `art_style_needs_prism`.\n * The estimate (sent with the same `direction`) shows the price: it changes\n * only where Nodaro's setting for such runs first redraws the role pictures\n * in the art style.\n *\n * Style only: with no role with images and no fixed reference, the art style\n * alone is the run's change (a pre or post prompt is still added). It\n * restyles the whole clip, keeping the people, places, motion and sound, and\n * is charged for what it runs (the estimate shows it; no clip-preparation\n * `privacy` part). By default a black-and-white art style comes out\n * monochrome. Nodaro may run it the way other art-style runs run instead,\n * priced as those are and not made monochrome.\n * A preview takes its full run's path. Runs this way only on a Flex run, and\n * only where {@link VideoRemakeResource.styleChoice} answers `styleOnly` true\n * for the engine; elsewhere on Nodaro Prism an art style alone is\n * refused (on a Precise run that stays Precise too, unless\n * {@link VideoRemakeResource.styleChoice} answers `preciseArtStyleAlone` true for\n * the engine, where it is that run's change), and one with a pre or post prompt\n * runs as any other art-style run. The job records it in\n * `input_data.direction`.\n */\n direction?: { style: string }\n /**\n * Nodaro Pulse only (Prism ignores it): which end of the clip is cut to\n * whole seconds (see {@link VideoRemakeMotionLength}). Default `\"cut-end\"`.\n */\n motionLength?: VideoRemakeMotionLength\n /** @deprecated use {@link motionLength} (still accepted). */\n klingLength?: VideoRemakeMotionLength\n /**\n * The output resolution. Nodaro Prism: `\"480p\"` (default), `\"720p\"` or\n * `\"1080p\"`. Nodaro Pulse: `\"720p\"` (default) or `\"1080p\"`; `\"480p\"`\n * answers 400.\n */\n resolution?: \"480p\" | \"720p\" | \"1080p\"\n /**\n * `true` makes a draft: a 480p run whose same take Full Quality can finish\n * at 1080p (Nodaro Prism only). Default `false`: a plain run, at 480p\n * too, which Full Quality cannot finish. `true` with `\"720p\"` or `\"1080p\"`\n * answers 400 (draft is 480p only). Nodaro Pulse has no draft: `true`\n * answers 400 `draft_unsupported`.\n */\n draft?: boolean\n /**\n * Turn each person, pet and product role's photos into one clean reference\n * picture before the video (extra credits, shown in `breakdown.references`;\n * about a minute longer; falls back to your own photos if it fails).\n * Default `true`.\n */\n prepareReferences?: boolean\n /**\n * Ignored: Nodaro sets how the clip is prepared, per engine. Accepted (no\n * error) so older code keeps working.\n * @deprecated leave it out.\n */\n faceMasking?: VideoRemakeFaceMasking\n /**\n * `\"draft\"` means 480p draft.\n * @deprecated use `resolution` + `draft`.\n */\n quality?: \"draft\"\n /** A generation session to file the result in. */\n sessionId?: string\n /** The client app that sent the run (stored on the job as `input_data.origin`). */\n origin?: string\n}\n\n/** What a run would cost, in credits. */\nexport interface VideoRemakeEstimate {\n /**\n * The engine the run would use, by its public id (absent from an older\n * server = `\"nodaro-prism\"`). An id an older server answers is read as the\n * public id it names.\n */\n engine?: VideoRemakeEngine\n /**\n * What is held when the run starts. The run is charged what it actually\n * costs, which is expected to be `expectedCredits`.\n */\n totalCredits: number\n /**\n * The charge the run is expected to come to. Never above `totalCredits`\n * (on Nodaro Pulse it equals it: Pulse renders exactly the length\n * asked for, so the hold is what it settles at). Absent from an older\n * server: read `totalCredits` then.\n */\n expectedCredits?: number\n /**\n * The parts of the quote, by name, for display only:\n * - `base`: the run itself (its base fee). An older server\n * names it `castSwap` instead: read `base`, else `castSwap`;\n * - `references`: preparing the reference pictures (0 when\n * `prepareReferences` is off or there is nothing to prepare);\n * - `motion`: what the video holds (on Nodaro Pulse, what it costs);\n * - `motionExpected`: what the video is expected to be charged, never above\n * `motion` (Nodaro Prism);\n * - `privacy`: preparing the clip, when the engine's setting does. In both\n * totals when it always runs; outside both when it is the retry\n * (`privacyCredits`).\n * - `prompt`: the prompt written for the run by a language model, when\n * Nodaro's setting for the engine does so (absent otherwise).\n * - `referenceAudio`: preparing the clip's sound for the video model, when\n * Nodaro's setting for the engine runs that step (absent otherwise).\n *\n * `motion` and `motionExpected` are alternatives, so the parts sum to more\n * than either total: read `totalCredits` and `expectedCredits`, never the\n * sum. Other parts may appear.\n */\n breakdown: {\n base?: number\n /** @deprecated read {@link base} (an older server answered this name for the same part). */\n castSwap?: number\n references: number\n motion?: number\n motionExpected?: number\n privacy?: number\n prompt?: number\n referenceAudio?: number\n } & Record<string, number>\n /**\n * The extra credits charged only if the video model refuses the clip and\n * the run is retried (Nodaro's setting for the engine decides whether it\n * does). Not in `totalCredits` or `expectedCredits`; `run()` needs credits\n * for both the hold and this (else 402).\n */\n privacyCredits?: number\n /** @deprecated read {@link privacyCredits} (an older server answered this name). */\n maskingCredits?: number\n /**\n * `true` when the video is made at Auto length (every Nodaro Prism\n * run): the final charge is expected to come out lower than `totalCredits`,\n * at about `expectedCredits`. `false` on Nodaro Pulse.\n */\n settlesLower: boolean\n}\n\n/** Per-call options for {@link VideoRemakeResource.run}. */\nexport interface VideoRemakeRunOptions {\n /**\n * Sent as the `Idempotency-Key` header, unchanged (the SDK checks nothing;\n * an empty string sends no header, like no key).\n * The server takes 8–200 characters and answers 400 for any other length.\n * Reuse the same value when retrying the same run: within about 10 s the\n * repeat answers 200 `{ jobId, deduped: true }`, later 202 with the first\n * run's `jobId`. Nothing new is started or charged.\n */\n idempotencyKey?: string\n}\n\n/**\n * What a Full Quality version would be: `\"same-take\"` finishes a Nodaro\n * Prism draft's own take at 1080p, and the draft stays. `\"new-take\"` was a new\n * Nodaro Pulse take at 1080p from a 720p run's inputs; Pulse no longer\n * has Full Quality, so a quote no longer answers it (kept so code that reads\n * it still compiles).\n */\nexport type VideoRemakeFullQualityKind = \"same-take\" | \"new-take\"\n\n/**\n * What a Full Quality version of a run would cost\n * (`POST /v1/video-remake/:jobId/full-quality/estimate`): a Nodaro Prism\n * draft (a 480p run made with `draft: true`).\n */\nexport interface VideoRemakeFullQualityEstimate {\n /**\n * Which Full Quality this is ({@link VideoRemakeFullQualityKind}), so it can\n * be worded right. Absent from an older server: `\"same-take\"`.\n */\n kind?: VideoRemakeFullQualityKind\n /** The quote in credits: `breakdown.base` plus the 1080p render (same take) or the new take. */\n totalCredits: number\n /**\n * The parts of the quote, by name, for display only: `base` (the Full\n * Quality job's own steps; an older server names it\n * `castSwap` instead: read `base`, else `castSwap`), and `motionHd` (a same\n * take: the 1080p render, 0 when an earlier try of this draft already\n * finished that render, which is then reused) or `motion` (a new take).\n */\n breakdown: {\n base?: number\n /** @deprecated read {@link base} (an older server answered this name for the same part). */\n castSwap?: number\n motionHd?: number\n motion?: number\n } & Record<string, number>\n /** ISO time until which the run can be finished at Full Quality (7 days after it completed). */\n availableUntil: string\n}\n\n/** Options for {@link VideoRemakeResource.fullQuality}. */\nexport interface VideoRemakeFullQualityParams {\n /** A generation session to file the Full Quality result in. */\n sessionId?: string\n}\n\n/** The Full Quality job (`POST /v1/video-remake/:jobId/full-quality`). */\nexport interface VideoRemakeFullQualityResult {\n jobId: string\n /** `true` when this run's Full Quality was already running or done: that job is answered, nothing new is started or charged. */\n existing?: boolean\n}\n\n/**\n * The `code` of a Full Quality refusal (`NodaroError.code`), all before\n * anything is charged:\n * - `unauthorized` (401): no authenticated user;\n * - `not_found` (404): not your job, or not a Video Remake run; also a\n * `sessionId` you may not use;\n * - `not_completed` (409): the run has not finished;\n * - `not_a_draft` (409): the run is not a Nodaro Prism draft: a plain\n * run (480p made without `draft: true` included; make a draft with\n * `draft: true`), or any Nodaro Pulse run (Pulse makes no drafts: run\n * it again at 1080p);\n * - `draft_expired` (410): more than 7 days after the draft completed, or\n * the draft can no longer be finished at Full Quality;\n * - `full_quality_pending` (409, `details.retryable: true`): not final — an\n * earlier try's 1080p render of this draft is being reviewed, or has not\n * started yet; try again later (once the review ends). The only refusal\n * that ends on its own;\n * - `full_quality_unavailable` (409): final — nothing kept to re-render, no\n * readable completion time, or the 1080p finalize refuses this draft; on\n * the start only, also \"failed too many times\" (every try failed) or no\n * try can be started for this run;\n * - `insufficient_credits` (402), or in a workspace `budget_exceeded`,\n * `member_cap_exceeded` or `user_allowance_exceeded`;\n * - `job_blocked` (422): the request was blocked by the job policy;\n * - `job_read_failed` (503, retryable), `estimate_unavailable` (503, try\n * again shortly), `host_too_old` (503).\n *\n * Open-ended: a code not listed here may still arrive.\n */\nexport type VideoRemakeFullQualityRefusalCode =\n | \"unauthorized\"\n | \"not_found\"\n | \"not_completed\"\n | \"not_a_draft\"\n | \"draft_expired\"\n | \"full_quality_pending\"\n | \"full_quality_unavailable\"\n | \"insufficient_credits\"\n | \"budget_exceeded\"\n | \"member_cap_exceeded\"\n | \"user_allowance_exceeded\"\n | \"job_blocked\"\n | \"job_read_failed\"\n | \"estimate_unavailable\"\n | \"host_too_old\"\n | (string & {})\n\n/**\n * Who decides a direct run's style on one engine:\n * - `\"user\"`: the person (the request's `style`, left out = `\"precise\"`);\n * show a Style control;\n * - `\"precise\"`: Nodaro's own apps run Precise on that engine and show no\n * Style control; it changes no request: a direct run and quote take the\n * request's `style`, as on `\"user\"`;\n * - `\"flex\"`: an admin forced it — every direct run and quote of that engine\n * runs Flex (`style: \"motion\"`) whatever the request's `style` says; show\n * no Style control.\n *\n * A trend run keeps its own trend's style.\n */\nexport type VideoRemakeStyleChoiceOption = \"user\" | \"precise\" | \"flex\"\n\n/** What {@link VideoRemakeResource.styleChoice} answers: every engine's choice, by its public id. */\nexport interface VideoRemakeStyleChoice {\n engines: Record<VideoRemakeEngine, VideoRemakeStyleChoiceOption>\n /**\n * Per engine, whether the engine takes style-only runs: a Flex run\n * (`style: \"motion\"`) with an art style (`direction`) and nothing to swap\n * (no role with images, no fixed reference). It follows the engine alone, so\n * read it with {@link engines}: an engine answered `\"flex\"` makes a Precise\n * request Flex too, and one answered `\"precise\"` changes no request, so a\n * Flex request there runs as on `\"user\"`. Nodaro Pulse is always\n * `false` (it takes no art style). Absent from an older server, and\n * an engine missing from it: `false`.\n */\n styleOnly?: Partial<Record<VideoRemakeEngine, boolean>>\n /**\n * Per engine, whether a Precise run (no `style`, or `\"precise\"`) takes an\n * art style (`direction`), as a Flex run does. Nodaro may run such a request as\n * a Flex run (see {@link VideoRemakeParams}'s `direction`), which this does not\n * say; otherwise it is Precise's edit of the clip, drawn in the art style, and,\n * where {@link VideoRemakeStyleChoice.preciseArtStyleAlone} is not true for the\n * engine, not on its own: a Precise run with nothing else to change is then refused.\n * Nodaro Pulse is always `false` (it takes no art style). Absent from\n * an older server, and an engine missing from it: `false` (offer an art style\n * on Flex runs alone).\n */\n preciseArtStyle?: Partial<Record<VideoRemakeEngine, boolean>>\n /**\n * Per engine, whether an art style (`direction`) alone is a Precise run's\n * change there, so the run needs no role, reference or prompt. Nodaro may run\n * such a request as a Flex run (see {@link VideoRemakeParams}'s `direction`), which\n * this does not say. It answers\n * `false` until the engine takes such runs. Nodaro Pulse is always\n * `false` (it takes no art style). Absent from an older server, and an engine\n * missing from it: `false`.\n */\n preciseArtStyleAlone?: Partial<Record<VideoRemakeEngine, boolean>>\n}\n\n/**\n * What {@link VideoRemakeResource.advanced} answers: whether the Video Remake\n * page shows its Advanced options.\n */\nexport interface VideoRemakeAdvanced {\n /**\n * Whether the Video Remake page shows `prepareReferences` and `prePrompt`\n * under its Advanced options: `false` until Nodaro turns them on, one\n * setting for the whole page, the same for every engine.\n */\n show: boolean\n}\n\nexport class VideoRemakeResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Start a Video Remake run (`POST /v1/video-remake`, 202 `{ jobId }`). Returns the\n * job to follow. With `options.idempotencyKey` (sent as the\n * `Idempotency-Key` header; 8–200 characters, else 400) a repeat with the\n * same key within about 10 s answers 200 `{ jobId, deduped: true }`, a later\n * one 202 with the first run's `jobId`; nothing new starts.\n */\n run(params: VideoRemakeParams, options?: VideoRemakeRunOptions): Promise<{ jobId: string; deduped?: boolean }> {\n return this.client.request(\"POST\", \"/v1/video-remake\", {\n body: params,\n ...(options?.idempotencyKey ? { headers: { \"Idempotency-Key\": options.idempotencyKey } } : {}),\n })\n }\n\n /**\n * Whether people choose a direct run's style, per engine\n * (`GET /v1/video-remake/style-choice`): `\"user\"` = show a Style control;\n * `\"precise\"` = Nodaro's own apps run Precise on that engine and hide the\n * control, while a run's `style` is still taken as sent; `\"flex\"` = an admin\n * forced Flex for the engine, so a run's `style` is overridden and the\n * control is best hidden. Its\n * `styleOnly` says, per engine, whether a Flex run with an art style and\n * nothing to swap restyles the whole clip there. Where it is not `true`\n * (absent, or an engine missing from it, included) on Nodaro Prism, an\n * art style alone is refused, and one with a pre or post prompt runs as any\n * other art-style run. Its `preciseArtStyle` says, per engine, whether a\n * Precise run takes an art style there too, and its `preciseArtStyleAlone`\n * whether that art style alone is the run's change.\n * Public (no sign-in needed); the answer may be up to a minute old.\n */\n styleChoice(): Promise<VideoRemakeStyleChoice> {\n return this.client.request(\"GET\", \"/v1/video-remake/style-choice\")\n }\n\n /**\n * Whether the Video Remake page shows its Advanced options\n * (`GET /v1/video-remake/advanced`): `show` is `true` where the page offers\n * `prepareReferences` and `prePrompt`, and `false` until Nodaro turns them\n * on. One answer for the whole page, whatever the engine, so an app built\n * on the SDK can show or hide the same options. It describes the page only:\n * {@link run} and {@link estimate} take both fields as sent, whatever it\n * answers.\n * Public (no sign-in needed); the answer may be up to a minute old.\n */\n advanced(): Promise<VideoRemakeAdvanced> {\n return this.client.request(\"GET\", \"/v1/video-remake/advanced\")\n }\n\n /** Quote a run before starting it (`POST /v1/video-remake/estimate`); spends nothing. */\n async estimate(params: VideoRemakeParams): Promise<VideoRemakeEstimate> {\n const quote = await this.client.request<VideoRemakeEstimate>(\"POST\", \"/v1/video-remake/estimate\", { body: params })\n // An older server names the engine by an earlier id: answered as the public id it names.\n const engine = nodaroMotionEngineFrom(quote?.engine)\n return engine && engine !== quote.engine ? { ...quote, engine } : quote\n }\n\n /**\n * Quote finishing a run at Full Quality (`POST\n * /v1/video-remake/:jobId/full-quality/estimate`); spends nothing. `jobId` is a\n * finished Nodaro Prism DRAFT run (a Video Remake or trend run made\n * with `draft: true`), whose same take Full Quality finishes at 1080p. The\n * quote does not look for a Full Quality already running: when one is,\n * {@link fullQuality} answers it (`existing: true`) and charges nothing.\n * Refusals: {@link VideoRemakeFullQualityRefusalCode}.\n */\n fullQualityEstimate(jobId: string): Promise<VideoRemakeFullQualityEstimate> {\n return this.client.request(\"POST\", `/v1/video-remake/${encodeURIComponent(jobId)}/full-quality/estimate`, { body: {} })\n }\n\n /**\n * Finish a run at Full Quality (`POST /v1/video-remake/:jobId/full-quality`):\n * at 1080p, with the clip's audio, as a new job linked to the run — a\n * Nodaro Prism draft's own take re-rendered. SPENDS CREDITS: quote it first with\n * {@link fullQualityEstimate}. Answers 202 `{ jobId }`, or 200\n * `{ jobId, existing: true }` when this run's Full Quality is already\n * running or done (one per run; a failed one may be asked again). Follow\n * the job with `client.jobs.get(jobId)`. No `Idempotency-Key` is taken: the\n * server keys the job by the draft. The new job keeps the draft's origin.\n * Refusals: {@link VideoRemakeFullQualityRefusalCode}.\n */\n fullQuality(jobId: string, params: VideoRemakeFullQualityParams = {}): Promise<VideoRemakeFullQualityResult> {\n const body = params.sessionId !== undefined ? { sessionId: params.sessionId } : {}\n return this.client.request(\"POST\", `/v1/video-remake/${encodeURIComponent(jobId)}/full-quality`, { body })\n }\n}\n\n// ---------------------------------------------------------------------------\n// The names this resource had before (`client.castSwap`, `CastSwap*`): the\n// same resource and the same types, kept so code written against them still\n// builds.\n// ---------------------------------------------------------------------------\n\n/** @deprecated use {@link VideoRemakeResource} (`client.videoRemake`). */\nexport const CastSwapResource = VideoRemakeResource\n/** @deprecated use {@link VideoRemakeResource} (`client.videoRemake`). */\nexport type CastSwapResource = VideoRemakeResource\n/** @deprecated use {@link VideoRemakeEngine}. */\nexport type CastSwapEngine = VideoRemakeEngine\n/** @deprecated use {@link VideoRemakeEngine}. */\nexport type CastSwapEngineLegacyId = VideoRemakeEngineLegacyId\n/** @deprecated use {@link VideoRemakeStyle}. */\nexport type CastSwapStyle = VideoRemakeStyle\n/** @deprecated use {@link VideoRemakeMotionLength}. */\nexport type CastSwapMotionLength = VideoRemakeMotionLength\n/** @deprecated use {@link VideoRemakeMotionLength}. */\nexport type CastSwapKlingLength = VideoRemakeMotionLength\n/** @deprecated use {@link VideoRemakeTraitSource}. */\nexport type CastSwapTraitSource = VideoRemakeTraitSource\n/** @deprecated use {@link VideoRemakeRolePreviewSettings}. */\nexport type CastSwapRolePreviewSettings = VideoRemakeRolePreviewSettings\n/** @deprecated use {@link VideoRemakePersonRole}. */\nexport type CastSwapPersonRole = VideoRemakePersonRole\n/** @deprecated use {@link VideoRemakeLocationRole}. */\nexport type CastSwapLocationRole = VideoRemakeLocationRole\n/** @deprecated use {@link VideoRemakePetRole}. */\nexport type CastSwapPetRole = VideoRemakePetRole\n/** @deprecated use {@link VideoRemakeProductRole}. */\nexport type CastSwapProductRole = VideoRemakeProductRole\n/** @deprecated use {@link VideoRemakeRole}. */\nexport type CastSwapRole = VideoRemakeRole\n/** @deprecated use {@link VideoRemakeReference}. */\nexport type CastSwapReference = VideoRemakeReference\n/** @deprecated use {@link VideoRemakeFaceMaskingZone}. */\nexport type CastSwapFaceMaskingZone = VideoRemakeFaceMaskingZone\n/** @deprecated use {@link VideoRemakeFaceMasking}. */\nexport type CastSwapFaceMasking = VideoRemakeFaceMasking\n/** @deprecated use {@link VideoRemakeParams}. */\nexport type CastSwapParams = VideoRemakeParams\n/** @deprecated use {@link VideoRemakeEstimate}. */\nexport type CastSwapEstimate = VideoRemakeEstimate\n/** @deprecated use {@link VideoRemakeRunOptions}. */\nexport type CastSwapRunOptions = VideoRemakeRunOptions\n/** @deprecated use {@link VideoRemakeFullQualityKind}. */\nexport type CastSwapFullQualityKind = VideoRemakeFullQualityKind\n/** @deprecated use {@link VideoRemakeFullQualityEstimate}. */\nexport type CastSwapFullQualityEstimate = VideoRemakeFullQualityEstimate\n/** @deprecated use {@link VideoRemakeFullQualityParams}. */\nexport type CastSwapFullQualityParams = VideoRemakeFullQualityParams\n/** @deprecated use {@link VideoRemakeFullQualityResult}. */\nexport type CastSwapFullQualityResult = VideoRemakeFullQualityResult\n/** @deprecated use {@link VideoRemakeFullQualityRefusalCode}. */\nexport type CastSwapFullQualityRefusalCode = VideoRemakeFullQualityRefusalCode\n/** @deprecated use {@link VideoRemakeStyleChoiceOption}. */\nexport type CastSwapStyleChoiceOption = VideoRemakeStyleChoiceOption\n/** @deprecated use {@link VideoRemakeStyleChoice}. */\nexport type CastSwapStyleChoice = VideoRemakeStyleChoice\n"]}
@@ -7,7 +7,7 @@ var chunkLKH5M44B_cjs = require('./chunk-LKH5M44B.cjs');
7
7
  var chunkUIBYZNDR_cjs = require('./chunk-UIBYZNDR.cjs');
8
8
  var chunkLTZKNAXM_cjs = require('./chunk-LTZKNAXM.cjs');
9
9
  var chunkRKW3N463_cjs = require('./chunk-RKW3N463.cjs');
10
- var chunk6NIKAVI3_cjs = require('./chunk-6NIKAVI3.cjs');
10
+ var chunkSTKXUHEM_cjs = require('./chunk-STKXUHEM.cjs');
11
11
  var chunkKMNSPC72_cjs = require('./chunk-KMNSPC72.cjs');
12
12
  var chunk6YWXKDAY_cjs = require('./chunk-6YWXKDAY.cjs');
13
13
  var chunkREXFEDKI_cjs = require('./chunk-REXFEDKI.cjs');
@@ -31,14 +31,14 @@ var chunkTCLNSVYA_cjs = require('./chunk-TCLNSVYA.cjs');
31
31
  var chunkOI4RCW2J_cjs = require('./chunk-OI4RCW2J.cjs');
32
32
  var chunkITQB5ADE_cjs = require('./chunk-ITQB5ADE.cjs');
33
33
  var chunkMIXRL6I2_cjs = require('./chunk-MIXRL6I2.cjs');
34
- var chunkUPWAODYT_cjs = require('./chunk-UPWAODYT.cjs');
34
+ var chunkH6ZB7WYE_cjs = require('./chunk-H6ZB7WYE.cjs');
35
35
  var chunkK7G4OYDH_cjs = require('./chunk-K7G4OYDH.cjs');
36
36
  var chunkZCWKX4V6_cjs = require('./chunk-ZCWKX4V6.cjs');
37
37
  var chunkDUE24QGQ_cjs = require('./chunk-DUE24QGQ.cjs');
38
38
  var chunkKNBZFWVO_cjs = require('./chunk-KNBZFWVO.cjs');
39
39
  var chunkA3S55XGF_cjs = require('./chunk-A3S55XGF.cjs');
40
40
  var chunkKKH7QQAR_cjs = require('./chunk-KKH7QQAR.cjs');
41
- var chunk7PMOXQEO_cjs = require('./chunk-7PMOXQEO.cjs');
41
+ var chunkVKEFUXQJ_cjs = require('./chunk-VKEFUXQJ.cjs');
42
42
  var chunkVUTNNRDW_cjs = require('./chunk-VUTNNRDW.cjs');
43
43
  var chunkW63ZKKYT_cjs = require('./chunk-W63ZKKYT.cjs');
44
44
  var chunkUKITRPXF_cjs = require('./chunk-UKITRPXF.cjs');
@@ -48,18 +48,18 @@ var chunk43FVH6LJ_cjs = require('./chunk-43FVH6LJ.cjs');
48
48
  var chunkYFS2LMG4_cjs = require('./chunk-YFS2LMG4.cjs');
49
49
  var chunk4DCXJ77J_cjs = require('./chunk-4DCXJ77J.cjs');
50
50
  var chunkZJM5YBXY_cjs = require('./chunk-ZJM5YBXY.cjs');
51
- var chunkSGVJUVFD_cjs = require('./chunk-SGVJUVFD.cjs');
51
+ var chunk4VKV3HW3_cjs = require('./chunk-4VKV3HW3.cjs');
52
52
  var chunkA3XA6UNM_cjs = require('./chunk-A3XA6UNM.cjs');
53
53
  var chunkIKZIXM5C_cjs = require('./chunk-IKZIXM5C.cjs');
54
54
  var chunk7BMKQ36V_cjs = require('./chunk-7BMKQ36V.cjs');
55
55
  var chunkCAM74LQ2_cjs = require('./chunk-CAM74LQ2.cjs');
56
56
  var chunkVMV5JH4U_cjs = require('./chunk-VMV5JH4U.cjs');
57
- var chunkIO7NEEZZ_cjs = require('./chunk-IO7NEEZZ.cjs');
57
+ var chunkMGVK4PJF_cjs = require('./chunk-MGVK4PJF.cjs');
58
58
  var chunk7OLINQTA_cjs = require('./chunk-7OLINQTA.cjs');
59
59
  var chunkXZQ6Z4T6_cjs = require('./chunk-XZQ6Z4T6.cjs');
60
60
 
61
61
  // src/client.ts
62
- var NodaroClient = class _NodaroClient extends chunkSGVJUVFD_cjs.NodaroClientCore {
62
+ var NodaroClient = class _NodaroClient extends chunk4VKV3HW3_cjs.NodaroClientCore {
63
63
  workflows;
64
64
  projects;
65
65
  /** Generation sessions inside projects (Create Image / Video / Music). */
@@ -159,7 +159,7 @@ var NodaroClient = class _NodaroClient extends chunkSGVJUVFD_cjs.NodaroClientCor
159
159
  this.voices = new chunkWKNWJDF6_cjs.VoicesResource(this);
160
160
  this.dubbing = new chunkKKH7QQAR_cjs.DubbingResource(this);
161
161
  this.llm = new chunkITQB5ADE_cjs.LlmResource(this);
162
- this.media = new chunkUPWAODYT_cjs.MediaResource(this);
162
+ this.media = new chunkH6ZB7WYE_cjs.MediaResource(this);
163
163
  this.contentRights = new chunk4DCXJ77J_cjs.ContentRightsResource(this);
164
164
  this.audio = new chunkCAM74LQ2_cjs.AudioResource(this);
165
165
  this.credits = new chunkIKZIXM5C_cjs.CreditsResource(this);
@@ -180,9 +180,9 @@ var NodaroClient = class _NodaroClient extends chunkSGVJUVFD_cjs.NodaroClientCor
180
180
  this.models = new chunkK7G4OYDH_cjs.ModelsResource(this);
181
181
  this.shots = new chunkMBFUMWI5_cjs.ShotsResource(this);
182
182
  this.recast = new chunkKXEWTYS4_cjs.RecastResource(this);
183
- this.videoRemake = new chunkIO7NEEZZ_cjs.VideoRemakeResource(this);
183
+ this.videoRemake = new chunkMGVK4PJF_cjs.VideoRemakeResource(this);
184
184
  this.castSwap = this.videoRemake;
185
- this.trends = new chunk6NIKAVI3_cjs.TrendsResource(this);
185
+ this.trends = new chunkSTKXUHEM_cjs.TrendsResource(this);
186
186
  this.trendRadar = new chunkRKW3N463_cjs.TrendRadarResource(this);
187
187
  this.studio = new chunk7XKVBFKM_cjs.StudioResource(this);
188
188
  this.copilot = new chunkZJM5YBXY_cjs.CopilotResource(this);
@@ -191,7 +191,7 @@ var NodaroClient = class _NodaroClient extends chunkSGVJUVFD_cjs.NodaroClientCor
191
191
  this.tutorials = new chunkKMNSPC72_cjs.TutorialsResource(this);
192
192
  this.organizations = new chunkJ5LGGCAS_cjs.OrganizationsResource(this);
193
193
  this.workspaces = new chunkLKH5M44B_cjs.WorkspacesResource(this);
194
- this.edit = new chunk7PMOXQEO_cjs.EditResource(this);
194
+ this.edit = new chunkVKEFUXQJ_cjs.EditResource(this);
195
195
  }
196
196
  /**
197
197
  * A client that acts in `workspaceId`, sharing this one's auth and config.
@@ -222,5 +222,5 @@ function createClient(opts) {
222
222
 
223
223
  exports.NodaroClient = NodaroClient;
224
224
  exports.createClient = createClient;
225
- //# sourceMappingURL=chunk-SGVTZ2J5.cjs.map
226
- //# sourceMappingURL=chunk-SGVTZ2J5.cjs.map
225
+ //# sourceMappingURL=chunk-XF7IDNMR.cjs.map
226
+ //# sourceMappingURL=chunk-XF7IDNMR.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts"],"names":["NodaroClientCore","WorkflowsResource","ProjectsResource","SessionsResource","TrashResource","JobsResource","VideoProResource","ExecutionsResource","NodesResource","Scene3DResource","DeveloperAppsResource","OAuthResource","WebhooksResource","AppsResource","CharactersResource","LocationsResource","ObjectsResource","CreaturesResource","KeepersResource","PipelinesResource","ReduceResource","PromptHelperResource","VoicesResource","DubbingResource","LlmResource","MediaResource","ContentRightsResource","AudioResource","CreditsResource","UserSettingsResource","BillingResource","SurfaceResource","UploadsResource","LibraryResource","GalleryResource","PresetsResource","SavedPostsResource","CollectionsResource","PalettesResource","MoodboardsResource","CompetitorsResource","PickerCatalogsResource","CatalogsResource","ModelsResource","ShotsResource","RecastResource","VideoRemakeResource","TrendsResource","TrendRadarResource","StudioResource","CopilotResource","CommunityResource","TemplatesResource","TutorialsResource","OrganizationsResource","WorkspacesResource","EditResource"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,kCAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;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C;AAMtD,IAAA,MAAM,aAAA,GAAgB,KAAK,eAAe,CAAA;AAC1C,IAAA,OAAO,IAAI,aAAA,CAAa;AAAA,MACtB,SAAS,IAAA,CAAK,OAAA;AAAA,MACd,MAAM,IAAA,CAAK,IAAA;AAAA,MACX,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-SGVTZ2J5.cjs","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { TrashResource } from \"./resources/trash.js\"\nimport { JobsResource } from \"./resources/jobs.js\"\nimport { VideoProResource } from \"./resources/video-pro.js\"\nimport { ExecutionsResource } from \"./resources/executions.js\"\nimport { NodesResource } from \"./resources/nodes.js\"\nimport { Scene3DResource } from \"./resources/scene3d.js\"\nimport { DeveloperAppsResource } from \"./resources/developer-apps.js\"\nimport { OAuthResource } from \"./resources/oauth.js\"\nimport { WebhooksResource } from \"./resources/webhooks.js\"\nimport { AppsResource } from \"./resources/apps.js\"\nimport { CharactersResource } from \"./resources/characters.js\"\nimport { LocationsResource } from \"./resources/locations.js\"\nimport { ObjectsResource } from \"./resources/objects.js\"\nimport { CreaturesResource } from \"./resources/creatures.js\"\nimport { KeepersResource } from \"./resources/keepers.js\"\nimport { PipelinesResource } from \"./resources/pipelines.js\"\nimport { ReduceResource } from \"./resources/reduce.js\"\nimport { PromptHelperResource } from \"./resources/prompt-helper.js\"\nimport { VoicesResource } from \"./resources/voices.js\"\nimport { DubbingResource } from \"./resources/dubbing.js\"\nimport { LlmResource } from \"./resources/llm.js\"\nimport { MediaResource } from \"./resources/media.js\"\nimport { ContentRightsResource } from \"./resources/content-rights.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UserSettingsResource } from \"./resources/user-settings.js\"\nimport { SurfaceResource } from \"./resources/surface.js\"\nimport { UploadsResource } from \"./resources/uploads.js\"\nimport { LibraryResource } from \"./resources/library.js\"\nimport { GalleryResource } from \"./resources/gallery.js\"\nimport { PresetsResource } from \"./resources/node-presets.js\"\nimport { SavedPostsResource } from \"./resources/saved-posts.js\"\nimport { CollectionsResource } from \"./resources/collections.js\"\nimport { PalettesResource } from \"./resources/palettes.js\"\nimport { MoodboardsResource } from \"./resources/moodboards.js\"\nimport { CompetitorsResource } from \"./resources/competitors.js\"\nimport { PickerCatalogsResource } from \"./resources/picker-catalogs.js\"\nimport { CatalogsResource } from \"./resources/catalogs.js\"\nimport { ModelsResource } from \"./resources/models.js\"\nimport { ShotsResource } from \"./resources/shots.js\"\nimport { RecastResource } from \"./resources/recast.js\"\nimport { VideoRemakeResource } from \"./resources/cast-swap.js\"\nimport { TrendsResource } from \"./resources/trends.js\"\nimport { TrendRadarResource } from \"./resources/trend-radar.js\"\nimport { StudioResource } from \"./resources/studio.js\"\nimport { CopilotResource } from \"./resources/copilot.js\"\nimport { CommunityResource } from \"./resources/community.js\"\nimport { TemplatesResource } from \"./resources/templates.js\"\nimport { TutorialsResource } from \"./resources/tutorials.js\"\nimport { OrganizationsResource } from \"./resources/organizations.js\"\nimport { WorkspacesResource } from \"./resources/workspaces.js\"\nimport { EditResource } from \"./resources/edit.js\"\nimport { NodaroClientCore, type ClientOptions } from \"./core.js\"\n\nexport { CLIENT_HEADER } from \"./core.js\"\nexport type { ClientOptions, UserIdentity, ConnectedApp } from \"./core.js\"\n\n/**\n * The full client: the core (`./core.ts` — config, transport, identity) and\n * every resource.\n */\nexport class NodaroClient extends NodaroClientCore {\n readonly workflows: WorkflowsResource\n readonly projects: ProjectsResource\n /** Generation sessions inside projects (Create Image / Video / Music). */\n readonly sessions: SessionsResource\n /** Your Trash: items removed from sessions and deleted jobs. */\n readonly trash: TrashResource\n readonly jobs: JobsResource\n readonly videoPro: VideoProResource\n readonly executions: ExecutionsResource\n readonly nodes: NodesResource\n readonly scene3d: Scene3DResource\n readonly developerApps: DeveloperAppsResource\n readonly oauth: OAuthResource\n /** Outbound webhooks: endpoints that receive your job.completed / job.failed. */\n readonly webhooks: WebhooksResource\n readonly apps: AppsResource\n readonly characters: CharactersResource\n readonly locations: LocationsResource\n readonly objects: ObjectsResource\n readonly creatures: CreaturesResource\n /** The shared Nodaro Keepers catalog of characters, creatures, locations and objects. */\n readonly keepers: KeepersResource\n readonly pipelines: PipelinesResource\n readonly reduce: ReduceResource\n readonly promptHelper: PromptHelperResource\n readonly voices: VoicesResource\n /** Dubbing: make a dub, read its structure, export its captions. */\n readonly dubbing: DubbingResource\n readonly llm: LlmResource\n readonly media: MediaResource\n /** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */\n readonly contentRights: ContentRightsResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */\n readonly userSettings: UserSettingsResource\n /** Plans and prices, the subscription, and how this deployment bills. */\n readonly billing: BillingResource\n /** What this deployment offers the caller: node types, models and the worlds of the shared header. */\n readonly surface: SurfaceResource\n readonly uploads: UploadsResource\n readonly library: LibraryResource\n /** The public gallery and your favorites. */\n readonly gallery: GalleryResource\n readonly presets: PresetsResource\n readonly savedPosts: SavedPostsResource\n readonly collections: CollectionsResource\n /** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */\n readonly palettes: PalettesResource\n /** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */\n readonly moodboards: MoodboardsResource\n readonly competitors: CompetitorsResource\n readonly pickerCatalogs: PickerCatalogsResource\n readonly catalogs: CatalogsResource\n readonly models: ModelsResource\n readonly shots: ShotsResource\n readonly recast: RecastResource\n /** Video Remake: replace the people, pets, products and/or location in a short video (Cloud). */\n readonly videoRemake: VideoRemakeResource\n /** @deprecated use {@link videoRemake} (the same resource, its former name). */\n readonly castSwap: VideoRemakeResource\n /** Trends: ready-made Video Remake recipes you fill with your own pictures (Cloud). */\n readonly trends: TrendsResource\n /** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */\n readonly trendRadar: TrendRadarResource\n readonly studio: StudioResource\n readonly copilot: CopilotResource\n readonly community: CommunityResource\n readonly templates: TemplatesResource\n readonly tutorials: TutorialsResource\n readonly organizations: OrganizationsResource\n readonly workspaces: WorkspacesResource\n readonly edit: EditResource\n\n constructor(opts: ClientOptions) {\n super(opts)\n\n this.workflows = new WorkflowsResource(this)\n this.projects = new ProjectsResource(this)\n this.sessions = new SessionsResource(this)\n this.trash = new TrashResource(this)\n this.jobs = new JobsResource(this)\n this.videoPro = new VideoProResource(this)\n this.executions = new ExecutionsResource(this)\n this.nodes = new NodesResource(this)\n this.scene3d = new Scene3DResource(this)\n this.developerApps = new DeveloperAppsResource(this)\n this.oauth = new OAuthResource(this)\n this.webhooks = new WebhooksResource(this)\n this.apps = new AppsResource(this)\n this.characters = new CharactersResource(this)\n this.locations = new LocationsResource(this)\n this.objects = new ObjectsResource(this)\n this.creatures = new CreaturesResource(this)\n this.keepers = new KeepersResource(this)\n this.pipelines = new PipelinesResource(this)\n this.reduce = new ReduceResource(this)\n this.promptHelper = new PromptHelperResource(this)\n this.voices = new VoicesResource(this)\n this.dubbing = new DubbingResource(this)\n this.llm = new LlmResource(this)\n this.media = new MediaResource(this)\n this.contentRights = new ContentRightsResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.userSettings = new UserSettingsResource(this)\n this.billing = new BillingResource(this)\n this.surface = new SurfaceResource(this)\n this.uploads = new UploadsResource(this)\n this.library = new LibraryResource(this)\n this.gallery = new GalleryResource(this)\n this.presets = new PresetsResource(this)\n this.savedPosts = new SavedPostsResource(this)\n this.collections = new CollectionsResource(this)\n this.palettes = new PalettesResource(this)\n this.moodboards = new MoodboardsResource(this)\n this.competitors = new CompetitorsResource(this)\n this.pickerCatalogs = new PickerCatalogsResource(this)\n this.catalogs = new CatalogsResource(this)\n this.models = new ModelsResource(this)\n this.shots = new ShotsResource(this)\n this.recast = new RecastResource(this)\n this.videoRemake = new VideoRemakeResource(this)\n this.castSwap = this.videoRemake\n this.trends = new TrendsResource(this)\n this.trendRadar = new TrendRadarResource(this)\n this.studio = new StudioResource(this)\n this.copilot = new CopilotResource(this)\n this.community = new CommunityResource(this)\n this.templates = new TemplatesResource(this)\n this.tutorials = new TutorialsResource(this)\n this.organizations = new OrganizationsResource(this)\n this.workspaces = new WorkspacesResource(this)\n this.edit = new EditResource(this)\n }\n\n /**\n * A client that acts in `workspaceId`, sharing this one's auth and config.\n *\n * A NEW client rather than a setter, deliberately. A mutable selection is\n * the bug this whole axis exists to prevent: two concurrent operations\n * against one client would race over which workspace they were in, and the\n * loser would create work in the wrong place with nothing failing. A\n * per-workspace client cannot be raced.\n *\n * Pass `null` for the personal space.\n */\n withWorkspace(workspaceId: string | null): NodaroClient {\n // The two private settings are read by bracket access, which TypeScript\n // allows on a subclass and which adds no member to the declarations. Read\n // through `this` (not a side table keyed by the instance), so a client\n // wrapped in a Proxy (Vue/Pinia `reactive()`) or reached through\n // `Object.create(client)` still works.\n const fetchOverride = this[\"fetchOverride\"]\n return new NodaroClient({\n baseUrl: this.baseUrl,\n auth: this.auth,\n timeoutMs: this.timeoutMs,\n ...(fetchOverride ? { fetch: fetchOverride } : {}),\n ...(this[\"sendClientHeader\"] ? { clientLabel: this.clientLabel } : {}),\n ...(workspaceId ? { workspaceId } : {}),\n })\n }\n}\n\n/** Factory function — preferred entry point. */\nexport function createClient(opts: ClientOptions): NodaroClient {\n return new NodaroClient(opts)\n}\n"]}
1
+ {"version":3,"sources":["../src/client.ts"],"names":["NodaroClientCore","WorkflowsResource","ProjectsResource","SessionsResource","TrashResource","JobsResource","VideoProResource","ExecutionsResource","NodesResource","Scene3DResource","DeveloperAppsResource","OAuthResource","WebhooksResource","AppsResource","CharactersResource","LocationsResource","ObjectsResource","CreaturesResource","KeepersResource","PipelinesResource","ReduceResource","PromptHelperResource","VoicesResource","DubbingResource","LlmResource","MediaResource","ContentRightsResource","AudioResource","CreditsResource","UserSettingsResource","BillingResource","SurfaceResource","UploadsResource","LibraryResource","GalleryResource","PresetsResource","SavedPostsResource","CollectionsResource","PalettesResource","MoodboardsResource","CompetitorsResource","PickerCatalogsResource","CatalogsResource","ModelsResource","ShotsResource","RecastResource","VideoRemakeResource","TrendsResource","TrendRadarResource","StudioResource","CopilotResource","CommunityResource","TemplatesResource","TutorialsResource","OrganizationsResource","WorkspacesResource","EditResource"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,kCAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,GAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,aAAA;AAAA,EACA,KAAA;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,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-XF7IDNMR.cjs","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { TrashResource } from \"./resources/trash.js\"\nimport { JobsResource } from \"./resources/jobs.js\"\nimport { VideoProResource } from \"./resources/video-pro.js\"\nimport { ExecutionsResource } from \"./resources/executions.js\"\nimport { NodesResource } from \"./resources/nodes.js\"\nimport { Scene3DResource } from \"./resources/scene3d.js\"\nimport { DeveloperAppsResource } from \"./resources/developer-apps.js\"\nimport { OAuthResource } from \"./resources/oauth.js\"\nimport { WebhooksResource } from \"./resources/webhooks.js\"\nimport { AppsResource } from \"./resources/apps.js\"\nimport { CharactersResource } from \"./resources/characters.js\"\nimport { LocationsResource } from \"./resources/locations.js\"\nimport { ObjectsResource } from \"./resources/objects.js\"\nimport { CreaturesResource } from \"./resources/creatures.js\"\nimport { KeepersResource } from \"./resources/keepers.js\"\nimport { PipelinesResource } from \"./resources/pipelines.js\"\nimport { ReduceResource } from \"./resources/reduce.js\"\nimport { PromptHelperResource } from \"./resources/prompt-helper.js\"\nimport { VoicesResource } from \"./resources/voices.js\"\nimport { DubbingResource } from \"./resources/dubbing.js\"\nimport { LlmResource } from \"./resources/llm.js\"\nimport { MediaResource } from \"./resources/media.js\"\nimport { ContentRightsResource } from \"./resources/content-rights.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UserSettingsResource } from \"./resources/user-settings.js\"\nimport { SurfaceResource } from \"./resources/surface.js\"\nimport { UploadsResource } from \"./resources/uploads.js\"\nimport { LibraryResource } from \"./resources/library.js\"\nimport { GalleryResource } from \"./resources/gallery.js\"\nimport { PresetsResource } from \"./resources/node-presets.js\"\nimport { SavedPostsResource } from \"./resources/saved-posts.js\"\nimport { CollectionsResource } from \"./resources/collections.js\"\nimport { PalettesResource } from \"./resources/palettes.js\"\nimport { MoodboardsResource } from \"./resources/moodboards.js\"\nimport { CompetitorsResource } from \"./resources/competitors.js\"\nimport { PickerCatalogsResource } from \"./resources/picker-catalogs.js\"\nimport { CatalogsResource } from \"./resources/catalogs.js\"\nimport { ModelsResource } from \"./resources/models.js\"\nimport { ShotsResource } from \"./resources/shots.js\"\nimport { RecastResource } from \"./resources/recast.js\"\nimport { VideoRemakeResource } from \"./resources/cast-swap.js\"\nimport { TrendsResource } from \"./resources/trends.js\"\nimport { TrendRadarResource } from \"./resources/trend-radar.js\"\nimport { StudioResource } from \"./resources/studio.js\"\nimport { CopilotResource } from \"./resources/copilot.js\"\nimport { CommunityResource } from \"./resources/community.js\"\nimport { TemplatesResource } from \"./resources/templates.js\"\nimport { TutorialsResource } from \"./resources/tutorials.js\"\nimport { OrganizationsResource } from \"./resources/organizations.js\"\nimport { WorkspacesResource } from \"./resources/workspaces.js\"\nimport { EditResource } from \"./resources/edit.js\"\nimport { NodaroClientCore, type ClientOptions } from \"./core.js\"\n\nexport { CLIENT_HEADER } from \"./core.js\"\nexport type { ClientOptions, UserIdentity, ConnectedApp } from \"./core.js\"\n\n/**\n * The full client: the core (`./core.ts` — config, transport, identity) and\n * every resource.\n */\nexport class NodaroClient extends NodaroClientCore {\n readonly workflows: WorkflowsResource\n readonly projects: ProjectsResource\n /** Generation sessions inside projects (Create Image / Video / Music). */\n readonly sessions: SessionsResource\n /** Your Trash: items removed from sessions and deleted jobs. */\n readonly trash: TrashResource\n readonly jobs: JobsResource\n readonly videoPro: VideoProResource\n readonly executions: ExecutionsResource\n readonly nodes: NodesResource\n readonly scene3d: Scene3DResource\n readonly developerApps: DeveloperAppsResource\n readonly oauth: OAuthResource\n /** Outbound webhooks: endpoints that receive your job.completed / job.failed. */\n readonly webhooks: WebhooksResource\n readonly apps: AppsResource\n readonly characters: CharactersResource\n readonly locations: LocationsResource\n readonly objects: ObjectsResource\n readonly creatures: CreaturesResource\n /** The shared Nodaro Keepers catalog of characters, creatures, locations and objects. */\n readonly keepers: KeepersResource\n readonly pipelines: PipelinesResource\n readonly reduce: ReduceResource\n readonly promptHelper: PromptHelperResource\n readonly voices: VoicesResource\n /** Dubbing: make a dub, read its structure, export its captions. */\n readonly dubbing: DubbingResource\n readonly llm: LlmResource\n readonly media: MediaResource\n /** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */\n readonly contentRights: ContentRightsResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */\n readonly userSettings: UserSettingsResource\n /** Plans and prices, the subscription, and how this deployment bills. */\n readonly billing: BillingResource\n /** What this deployment offers the caller: node types, models and the worlds of the shared header. */\n readonly surface: SurfaceResource\n readonly uploads: UploadsResource\n readonly library: LibraryResource\n /** The public gallery and your favorites. */\n readonly gallery: GalleryResource\n readonly presets: PresetsResource\n readonly savedPosts: SavedPostsResource\n readonly collections: CollectionsResource\n /** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */\n readonly palettes: PalettesResource\n /** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */\n readonly moodboards: MoodboardsResource\n readonly competitors: CompetitorsResource\n readonly pickerCatalogs: PickerCatalogsResource\n readonly catalogs: CatalogsResource\n readonly models: ModelsResource\n readonly shots: ShotsResource\n readonly recast: RecastResource\n /** Video Remake: replace the people, pets, products and/or location in a short video (Cloud). */\n readonly videoRemake: VideoRemakeResource\n /** @deprecated use {@link videoRemake} (the same resource, its former name). */\n readonly castSwap: VideoRemakeResource\n /** Trends: ready-made Video Remake recipes you fill with your own pictures (Cloud). */\n readonly trends: TrendsResource\n /** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */\n readonly trendRadar: TrendRadarResource\n readonly studio: StudioResource\n readonly copilot: CopilotResource\n readonly community: CommunityResource\n readonly templates: TemplatesResource\n readonly tutorials: TutorialsResource\n readonly organizations: OrganizationsResource\n readonly workspaces: WorkspacesResource\n readonly edit: EditResource\n\n constructor(opts: ClientOptions) {\n super(opts)\n\n this.workflows = new WorkflowsResource(this)\n this.projects = new ProjectsResource(this)\n this.sessions = new SessionsResource(this)\n this.trash = new TrashResource(this)\n this.jobs = new JobsResource(this)\n this.videoPro = new VideoProResource(this)\n this.executions = new ExecutionsResource(this)\n this.nodes = new NodesResource(this)\n this.scene3d = new Scene3DResource(this)\n this.developerApps = new DeveloperAppsResource(this)\n this.oauth = new OAuthResource(this)\n this.webhooks = new WebhooksResource(this)\n this.apps = new AppsResource(this)\n this.characters = new CharactersResource(this)\n this.locations = new LocationsResource(this)\n this.objects = new ObjectsResource(this)\n this.creatures = new CreaturesResource(this)\n this.keepers = new KeepersResource(this)\n this.pipelines = new PipelinesResource(this)\n this.reduce = new ReduceResource(this)\n this.promptHelper = new PromptHelperResource(this)\n this.voices = new VoicesResource(this)\n this.dubbing = new DubbingResource(this)\n this.llm = new LlmResource(this)\n this.media = new MediaResource(this)\n this.contentRights = new ContentRightsResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.userSettings = new UserSettingsResource(this)\n this.billing = new BillingResource(this)\n this.surface = new SurfaceResource(this)\n this.uploads = new UploadsResource(this)\n this.library = new LibraryResource(this)\n this.gallery = new GalleryResource(this)\n this.presets = new PresetsResource(this)\n this.savedPosts = new SavedPostsResource(this)\n this.collections = new CollectionsResource(this)\n this.palettes = new PalettesResource(this)\n this.moodboards = new MoodboardsResource(this)\n this.competitors = new CompetitorsResource(this)\n this.pickerCatalogs = new PickerCatalogsResource(this)\n this.catalogs = new CatalogsResource(this)\n this.models = new ModelsResource(this)\n this.shots = new ShotsResource(this)\n this.recast = new RecastResource(this)\n this.videoRemake = new VideoRemakeResource(this)\n this.castSwap = this.videoRemake\n this.trends = new TrendsResource(this)\n this.trendRadar = new TrendRadarResource(this)\n this.studio = new StudioResource(this)\n this.copilot = new CopilotResource(this)\n this.community = new CommunityResource(this)\n this.templates = new TemplatesResource(this)\n this.tutorials = new TutorialsResource(this)\n this.organizations = new OrganizationsResource(this)\n this.workspaces = new WorkspacesResource(this)\n this.edit = new EditResource(this)\n }\n\n /**\n * A client that acts in `workspaceId`, sharing this one's auth and config.\n *\n * A NEW client rather than a setter, deliberately. A mutable selection is\n * the bug this whole axis exists to prevent: two concurrent operations\n * against one client would race over which workspace they were in, and the\n * loser would create work in the wrong place with nothing failing. A\n * per-workspace client cannot be raced.\n *\n * Pass `null` for the personal space.\n */\n withWorkspace(workspaceId: string | null): NodaroClient {\n // The two private settings are read by bracket access, which TypeScript\n // allows on a subclass and which adds no member to the declarations. Read\n // through `this` (not a side table keyed by the instance), so a client\n // wrapped in a Proxy (Vue/Pinia `reactive()`) or reached through\n // `Object.create(client)` still works.\n const fetchOverride = this[\"fetchOverride\"]\n return new NodaroClient({\n baseUrl: this.baseUrl,\n auth: this.auth,\n timeoutMs: this.timeoutMs,\n ...(fetchOverride ? { fetch: fetchOverride } : {}),\n ...(this[\"sendClientHeader\"] ? { clientLabel: this.clientLabel } : {}),\n ...(workspaceId ? { workspaceId } : {}),\n })\n }\n}\n\n/** Factory function — preferred entry point. */\nexport function createClient(opts: ClientOptions): NodaroClient {\n return new NodaroClient(opts)\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-RQSGS7ZK.cjs');
4
- var chunkIO7NEEZZ_cjs = require('../chunk-IO7NEEZZ.cjs');
4
+ var chunkMGVK4PJF_cjs = require('../chunk-MGVK4PJF.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "CastSwapResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkIO7NEEZZ_cjs.CastSwapResource; }
10
+ get: function () { return chunkMGVK4PJF_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-DTuCyhd9.cjs';
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-LrhEaona.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-C-KR7YtT.js';
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-BEBbUmlY.js';
2
2
  import '../developer-apps-D59GfAnO.js';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
@@ -1,4 +1,4 @@
1
1
  import '../chunk-KARJ7P7Y.js';
2
- export { CastSwapResource } from '../chunk-TZFZDEWI.js';
2
+ export { CastSwapResource } from '../chunk-WSOLDULF.js';
3
3
  //# sourceMappingURL=cast-swap.js.map
4
4
  //# sourceMappingURL=cast-swap.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSGVTZ2J5_cjs = require('../chunk-SGVTZ2J5.cjs');
3
+ var chunkXF7IDNMR_cjs = require('../chunk-XF7IDNMR.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-6NIKAVI3.cjs');
11
+ require('../chunk-STKXUHEM.cjs');
12
12
  require('../chunk-KMNSPC72.cjs');
13
13
  require('../chunk-6YWXKDAY.cjs');
14
14
  require('../chunk-REXFEDKI.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-UPWAODYT.cjs');
35
+ require('../chunk-H6ZB7WYE.cjs');
36
36
  require('../chunk-K7G4OYDH.cjs');
37
37
  require('../chunk-ZCWKX4V6.cjs');
38
38
  require('../chunk-DUE24QGQ.cjs');
39
39
  require('../chunk-KNBZFWVO.cjs');
40
40
  require('../chunk-A3S55XGF.cjs');
41
41
  require('../chunk-KKH7QQAR.cjs');
42
- require('../chunk-7PMOXQEO.cjs');
42
+ require('../chunk-VKEFUXQJ.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 chunkSGVJUVFD_cjs = require('../chunk-SGVJUVFD.cjs');
53
+ var chunk4VKV3HW3_cjs = require('../chunk-4VKV3HW3.cjs');
54
54
  require('../chunk-E2NMFQNY.cjs');
55
55
  require('../chunk-A3XA6UNM.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-IO7NEEZZ.cjs');
60
+ require('../chunk-MGVK4PJF.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 chunkSGVTZ2J5_cjs.NodaroClient; }
68
+ get: function () { return chunkXF7IDNMR_cjs.NodaroClient; }
69
69
  });
70
70
  Object.defineProperty(exports, "createClient", {
71
71
  enumerable: true,
72
- get: function () { return chunkSGVTZ2J5_cjs.createClient; }
72
+ get: function () { return chunkXF7IDNMR_cjs.createClient; }
73
73
  });
74
74
  Object.defineProperty(exports, "CallbackAuth", {
75
75
  enumerable: true,
76
- get: function () { return chunkSGVJUVFD_cjs.CallbackAuth; }
76
+ get: function () { return chunk4VKV3HW3_cjs.CallbackAuth; }
77
77
  });
78
78
  Object.defineProperty(exports, "StaticTokenAuth", {
79
79
  enumerable: true,
80
- get: function () { return chunkSGVJUVFD_cjs.StaticTokenAuth; }
80
+ get: function () { return chunk4VKV3HW3_cjs.StaticTokenAuth; }
81
81
  });
82
82
  Object.defineProperty(exports, "supabaseAuth", {
83
83
  enumerable: true,
84
- get: function () { return chunkSGVJUVFD_cjs.supabaseAuth; }
84
+ get: function () { return chunk4VKV3HW3_cjs.supabaseAuth; }
85
85
  });
86
86
  //# sourceMappingURL=client.cjs.map
87
87
  //# sourceMappingURL=client.cjs.map
@@ -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 { Q as VideoRemakeResource } from '../video-remake-DTuCyhd9.cjs';
47
+ import { R as VideoRemakeResource } from '../video-remake-LrhEaona.cjs';
48
48
  import { TrendsResource } from './trends.cjs';
49
49
  import { TrendRadarResource } from './trend-radar.cjs';
50
50
  import { StudioResource } from './studio.cjs';
@@ -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 { Q as VideoRemakeResource } from '../video-remake-C-KR7YtT.js';
47
+ import { R as VideoRemakeResource } from '../video-remake-BEBbUmlY.js';
48
48
  import { TrendsResource } from './trends.js';
49
49
  import { TrendRadarResource } from './trend-radar.js';
50
50
  import { StudioResource } from './studio.js';
@@ -1,4 +1,4 @@
1
- export { NodaroClient, createClient } from '../chunk-U2F6IHHY.js';
1
+ export { NodaroClient, createClient } from '../chunk-EKVE3DBA.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-CSNYBGHP.js';
9
+ import '../chunk-D45ATYCE.js';
10
10
  import '../chunk-HPXE3NZW.js';
11
11
  import '../chunk-K53JD2ZC.js';
12
12
  import '../chunk-J3Y56MYU.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-AOHDYZSZ.js';
33
+ import '../chunk-QV4QD6XI.js';
34
34
  import '../chunk-54NGEY45.js';
35
35
  import '../chunk-YVU2M7MI.js';
36
36
  import '../chunk-H77BJMV2.js';
37
37
  import '../chunk-GWL4O3J2.js';
38
38
  import '../chunk-65E3JBFZ.js';
39
39
  import '../chunk-D5X3NKSI.js';
40
- import '../chunk-OO4AKYUN.js';
40
+ import '../chunk-3M7AHJG5.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-FOC4VPGK.js';
51
+ export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-M5ZXVXZL.js';
52
52
  import '../chunk-4Q3XZE5O.js';
53
53
  import '../chunk-HUYI5G3D.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-TZFZDEWI.js';
58
+ import '../chunk-WSOLDULF.js';
59
59
  import '../chunk-AZMUM5WG.js';
60
60
  import '../chunk-CBDUHYTR.js';
61
61
  //# sourceMappingURL=client.js.map
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-X7XP5WBP.cjs');
4
- var chunkSGVJUVFD_cjs = require('../chunk-SGVJUVFD.cjs');
4
+ var chunk4VKV3HW3_cjs = require('../chunk-4VKV3HW3.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 chunkSGVJUVFD_cjs.CallbackAuth; }
11
+ get: function () { return chunk4VKV3HW3_cjs.CallbackAuth; }
12
12
  });
13
13
  Object.defineProperty(exports, "NodaroClientCore", {
14
14
  enumerable: true,
15
- get: function () { return chunkSGVJUVFD_cjs.NodaroClientCore; }
15
+ get: function () { return chunk4VKV3HW3_cjs.NodaroClientCore; }
16
16
  });
17
17
  Object.defineProperty(exports, "StaticTokenAuth", {
18
18
  enumerable: true,
19
- get: function () { return chunkSGVJUVFD_cjs.StaticTokenAuth; }
19
+ get: function () { return chunk4VKV3HW3_cjs.StaticTokenAuth; }
20
20
  });
21
21
  Object.defineProperty(exports, "supabaseAuth", {
22
22
  enumerable: true,
23
- get: function () { return chunkSGVJUVFD_cjs.supabaseAuth; }
23
+ get: function () { return chunk4VKV3HW3_cjs.supabaseAuth; }
24
24
  });
25
25
  //# sourceMappingURL=core.cjs.map
26
26
  //# sourceMappingURL=core.cjs.map
@@ -1,5 +1,5 @@
1
1
  import '../chunk-AUDHV3OE.js';
2
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-FOC4VPGK.js';
2
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-M5ZXVXZL.js';
3
3
  import '../chunk-4Q3XZE5O.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
@@ -1,34 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkD3F2BWD6_cjs = require('../chunk-D3F2BWD6.cjs');
4
- var chunk7PMOXQEO_cjs = require('../chunk-7PMOXQEO.cjs');
3
+ var chunkVZCCECKW_cjs = require('../chunk-VZCCECKW.cjs');
4
+ var chunkVKEFUXQJ_cjs = require('../chunk-VKEFUXQJ.cjs');
5
5
  require('../chunk-E2NMFQNY.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "unwrapEditPlanOutput", {
10
10
  enumerable: true,
11
- get: function () { return chunkD3F2BWD6_cjs.unwrapEditPlanOutput; }
11
+ get: function () { return chunkVZCCECKW_cjs.unwrapEditPlanOutput; }
12
12
  });
13
13
  Object.defineProperty(exports, "CLIP_PACK_MAX_TARGET_SEC", {
14
14
  enumerable: true,
15
- get: function () { return chunk7PMOXQEO_cjs.CLIP_PACK_MAX_TARGET_SEC; }
15
+ get: function () { return chunkVKEFUXQJ_cjs.CLIP_PACK_MAX_TARGET_SEC; }
16
16
  });
17
17
  Object.defineProperty(exports, "CLIP_PACK_MIN_TARGET_SEC", {
18
18
  enumerable: true,
19
- get: function () { return chunk7PMOXQEO_cjs.CLIP_PACK_MIN_TARGET_SEC; }
19
+ get: function () { return chunkVKEFUXQJ_cjs.CLIP_PACK_MIN_TARGET_SEC; }
20
20
  });
21
21
  Object.defineProperty(exports, "EditResource", {
22
22
  enumerable: true,
23
- get: function () { return chunk7PMOXQEO_cjs.EditResource; }
23
+ get: function () { return chunkVKEFUXQJ_cjs.EditResource; }
24
+ });
25
+ Object.defineProperty(exports, "PODCAST_PACK_TOOLS", {
26
+ enumerable: true,
27
+ get: function () { return chunkVKEFUXQJ_cjs.PODCAST_PACK_TOOLS; }
24
28
  });
25
29
  Object.defineProperty(exports, "TRAILER_FORMATS", {
26
30
  enumerable: true,
27
- get: function () { return chunk7PMOXQEO_cjs.TRAILER_FORMATS; }
31
+ get: function () { return chunkVKEFUXQJ_cjs.TRAILER_FORMATS; }
28
32
  });
29
33
  Object.defineProperty(exports, "USE_CASE_NODE_TYPES", {
30
34
  enumerable: true,
31
- get: function () { return chunk7PMOXQEO_cjs.USE_CASE_NODE_TYPES; }
35
+ get: function () { return chunkVKEFUXQJ_cjs.USE_CASE_NODE_TYPES; }
32
36
  });
33
37
  //# sourceMappingURL=edit.cjs.map
34
38
  //# sourceMappingURL=edit.cjs.map