@nodaro/sdk 2.60.1 → 2.62.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-Z3ZKFI2M.js → chunk-22XXTB2R.js} +2 -2
- package/dist/chunk-22XXTB2R.js.map +1 -0
- package/dist/{chunk-ALDXFMD7.js → chunk-2ENKGVRS.js} +17 -6
- package/dist/chunk-2ENKGVRS.js.map +1 -0
- package/dist/chunk-2M4VYNSE.cjs +4 -0
- package/dist/chunk-2M4VYNSE.cjs.map +1 -0
- package/dist/chunk-3OARKXWT.cjs +53 -0
- package/dist/chunk-3OARKXWT.cjs.map +1 -0
- package/dist/{chunk-JJMQ2EVL.js → chunk-5AS4LKEF.js} +23 -3
- package/dist/chunk-5AS4LKEF.js.map +1 -0
- package/dist/{chunk-MWSD2FSG.cjs → chunk-5LI4CVJB.cjs} +2 -2
- package/dist/chunk-5LI4CVJB.cjs.map +1 -0
- package/dist/{chunk-GSE7SB3I.cjs → chunk-7GC5LKCR.cjs} +24 -2
- package/dist/chunk-7GC5LKCR.cjs.map +1 -0
- package/dist/{chunk-X24USXOQ.js → chunk-A42R7UT7.js} +2 -2
- package/dist/chunk-A42R7UT7.js.map +1 -0
- package/dist/{chunk-3Y5TDB5K.cjs → chunk-ASPUFRHB.cjs} +11 -7
- package/dist/chunk-ASPUFRHB.cjs.map +1 -0
- package/dist/{chunk-3JJP6BR2.js → chunk-BCZGMK5P.js} +4 -4
- package/dist/{chunk-3JJP6BR2.js.map → chunk-BCZGMK5P.js.map} +1 -1
- package/dist/{chunk-HPAHAE4U.cjs → chunk-DCMB5XOH.cjs} +5 -5
- package/dist/{chunk-HPAHAE4U.cjs.map → chunk-DCMB5XOH.cjs.map} +1 -1
- package/dist/{chunk-RCD4HDBI.js → chunk-DIPHH4OP.js} +3 -3
- package/dist/{chunk-RCD4HDBI.js.map → chunk-DIPHH4OP.js.map} +1 -1
- package/dist/{chunk-GWTKYJJO.cjs → chunk-DODUCQ6B.cjs} +36 -25
- package/dist/chunk-DODUCQ6B.cjs.map +1 -0
- package/dist/{chunk-YYMX3VN7.js → chunk-DT3Q22NZ.js} +3 -3
- package/dist/{chunk-YYMX3VN7.js.map → chunk-DT3Q22NZ.js.map} +1 -1
- package/dist/{chunk-COCKKMNP.cjs → chunk-G4AFHCNA.cjs} +2 -2
- package/dist/chunk-G4AFHCNA.cjs.map +1 -0
- package/dist/{chunk-TVPYDC5T.cjs → chunk-GGIWDFER.cjs} +2 -2
- package/dist/chunk-GGIWDFER.cjs.map +1 -0
- package/dist/{chunk-GDUEOKBF.cjs → chunk-GSKGWWBR.cjs} +4 -4
- package/dist/{chunk-GDUEOKBF.cjs.map → chunk-GSKGWWBR.cjs.map} +1 -1
- package/dist/{chunk-TSM3S2QS.cjs → chunk-IVM4WMMD.cjs} +5 -5
- package/dist/{chunk-TSM3S2QS.cjs.map → chunk-IVM4WMMD.cjs.map} +1 -1
- package/dist/{chunk-K4RQOSJH.js → chunk-J2DBYYXC.js} +2 -2
- package/dist/chunk-J2DBYYXC.js.map +1 -0
- package/dist/{chunk-DOMNKVKA.cjs → chunk-JW5FH4TE.cjs} +9 -9
- package/dist/{chunk-DOMNKVKA.cjs.map → chunk-JW5FH4TE.cjs.map} +1 -1
- package/dist/chunk-K2VWXAGK.js +51 -0
- package/dist/chunk-K2VWXAGK.js.map +1 -0
- package/dist/{chunk-KU3UITCU.cjs → chunk-KCQ3I6NW.cjs} +5 -5
- package/dist/{chunk-KU3UITCU.cjs.map → chunk-KCQ3I6NW.cjs.map} +1 -1
- package/dist/chunk-NMLYZWIW.cjs +4 -0
- package/dist/chunk-NMLYZWIW.cjs.map +1 -0
- package/dist/{chunk-VTL4DBX4.js → chunk-NQXBWK2D.js} +3 -3
- package/dist/{chunk-VTL4DBX4.js.map → chunk-NQXBWK2D.js.map} +1 -1
- package/dist/{chunk-DTYN7QAZ.js → chunk-P2C33IOF.js} +9 -4
- package/dist/chunk-P2C33IOF.js.map +1 -0
- package/dist/chunk-RKW3N463.cjs +83 -0
- package/dist/chunk-RKW3N463.cjs.map +1 -0
- package/dist/{chunk-ND7JMM5H.js → chunk-SEETG3EM.js} +10 -6
- package/dist/chunk-SEETG3EM.js.map +1 -0
- package/dist/{chunk-7DJFJZ35.cjs → chunk-SXV6OBKE.cjs} +41 -33
- package/dist/chunk-SXV6OBKE.cjs.map +1 -0
- package/dist/chunk-TLTPIS2A.js +81 -0
- package/dist/chunk-TLTPIS2A.js.map +1 -0
- package/dist/chunk-UIBY7JVJ.js +3 -0
- package/dist/chunk-UIBY7JVJ.js.map +1 -0
- package/dist/{chunk-NOZWIS7M.cjs → chunk-UPGZTLK7.cjs} +9 -4
- package/dist/chunk-UPGZTLK7.cjs.map +1 -0
- package/dist/{chunk-TO2RA7BF.js → chunk-UR7S4GGS.js} +29 -21
- package/dist/chunk-UR7S4GGS.js.map +1 -0
- package/dist/{chunk-MUHRK4OI.js → chunk-VAEXSUUY.js} +3 -3
- package/dist/{chunk-MUHRK4OI.js.map → chunk-VAEXSUUY.js.map} +1 -1
- package/dist/{chunk-ZVKEPVDQ.js → chunk-VQOUF4F5.js} +2 -2
- package/dist/chunk-VQOUF4F5.js.map +1 -0
- package/dist/{chunk-SBV5MWEL.cjs → chunk-VUTNNRDW.cjs} +2 -2
- package/dist/chunk-VUTNNRDW.cjs.map +1 -0
- package/dist/{chunk-VKE6UEDY.cjs → chunk-WYX44JHE.cjs} +12 -2
- package/dist/chunk-WYX44JHE.cjs.map +1 -0
- package/dist/{chunk-7OUDMUXF.js → chunk-X4QICOOM.js} +12 -2
- package/dist/chunk-X4QICOOM.js.map +1 -0
- package/dist/chunk-XV4MDWHF.js +3 -0
- package/dist/chunk-XV4MDWHF.js.map +1 -0
- package/dist/entries/billing.cjs +2 -2
- package/dist/entries/billing.d.cts +5 -1
- package/dist/entries/billing.d.ts +5 -1
- package/dist/entries/billing.js +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +50 -8
- package/dist/entries/cast-swap.d.ts +50 -8
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/characters.d.cts +1 -1
- package/dist/entries/characters.d.ts +1 -1
- package/dist/entries/client.cjs +29 -27
- package/dist/entries/client.d.cts +7 -1
- package/dist/entries/client.d.ts +7 -1
- package/dist/entries/client.js +24 -22
- package/dist/entries/content-rights.cjs +13 -0
- package/dist/entries/content-rights.cjs.map +1 -0
- package/dist/entries/content-rights.d.cts +82 -0
- package/dist/entries/content-rights.d.ts +82 -0
- package/dist/entries/content-rights.js +4 -0
- package/dist/entries/content-rights.js.map +1 -0
- package/dist/entries/copilot.cjs +4 -4
- package/dist/entries/copilot.js +3 -3
- package/dist/entries/core.cjs +6 -6
- package/dist/entries/core.js +2 -2
- package/dist/entries/creatures.d.cts +1 -1
- package/dist/entries/creatures.d.ts +1 -1
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +34 -26
- package/dist/entries/errors.d.cts +31 -2
- package/dist/entries/errors.d.ts +31 -2
- package/dist/entries/errors.js +1 -1
- package/dist/entries/executions.cjs +4 -4
- package/dist/entries/executions.d.cts +8 -0
- package/dist/entries/executions.d.ts +8 -0
- package/dist/entries/executions.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +50 -1
- package/dist/entries/jobs.d.ts +50 -1
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/locations.d.cts +1 -1
- package/dist/entries/locations.d.ts +1 -1
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.d.cts +8 -3
- package/dist/entries/media.d.ts +8 -3
- package/dist/entries/media.js +3 -3
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/objects.d.cts +1 -1
- package/dist/entries/objects.d.ts +1 -1
- package/dist/entries/pipelines.cjs +2 -2
- package/dist/entries/pipelines.d.cts +7 -0
- package/dist/entries/pipelines.d.ts +7 -0
- package/dist/entries/pipelines.js +1 -1
- package/dist/entries/scene3d.d.cts +2 -2
- package/dist/entries/scene3d.d.ts +2 -2
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.js +2 -2
- package/dist/entries/trend-radar.cjs +13 -0
- package/dist/entries/trend-radar.cjs.map +1 -0
- package/dist/entries/trend-radar.d.cts +243 -0
- package/dist/entries/trend-radar.d.ts +243 -0
- package/dist/entries/trend-radar.js +4 -0
- package/dist/entries/trend-radar.js.map +1 -0
- package/dist/entries/uploads.cjs +2 -2
- package/dist/entries/uploads.d.cts +8 -1
- package/dist/entries/uploads.d.ts +8 -1
- package/dist/entries/uploads.js +1 -1
- package/dist/index.cjs +135 -115
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +33 -29
- package/dist/{nodes-Cy6dmQEz.d.ts → nodes-BXL3qXlY.d.ts} +10 -2
- package/dist/{nodes-Di-Z7-vr.d.cts → nodes-Dx8rpU12.d.cts} +10 -2
- package/package.json +12 -2
- package/dist/chunk-3Y5TDB5K.cjs.map +0 -1
- package/dist/chunk-7DJFJZ35.cjs.map +0 -1
- package/dist/chunk-7OUDMUXF.js.map +0 -1
- package/dist/chunk-ALDXFMD7.js.map +0 -1
- package/dist/chunk-COCKKMNP.cjs.map +0 -1
- package/dist/chunk-DTYN7QAZ.js.map +0 -1
- package/dist/chunk-GSE7SB3I.cjs.map +0 -1
- package/dist/chunk-GWTKYJJO.cjs.map +0 -1
- package/dist/chunk-JJMQ2EVL.js.map +0 -1
- package/dist/chunk-K4RQOSJH.js.map +0 -1
- package/dist/chunk-MWSD2FSG.cjs.map +0 -1
- package/dist/chunk-ND7JMM5H.js.map +0 -1
- package/dist/chunk-NOZWIS7M.cjs.map +0 -1
- package/dist/chunk-SBV5MWEL.cjs.map +0 -1
- package/dist/chunk-TO2RA7BF.js.map +0 -1
- package/dist/chunk-TVPYDC5T.cjs.map +0 -1
- package/dist/chunk-VKE6UEDY.cjs.map +0 -1
- package/dist/chunk-X24USXOQ.js.map +0 -1
- package/dist/chunk-Z3ZKFI2M.js.map +0 -1
- package/dist/chunk-ZVKEPVDQ.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/cast-swap.ts"],"names":[],"mappings":";;;AAqhBO,IAAM,mBAAN,MAAuB;AAAA,EAC5B,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,QAAwB,OAAA,EAA6E;AACvG,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB;AAAA,MAClD,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,EASA,WAAA,GAA4C;AAC1C,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,KAAA,EAAO,4BAA4B,CAAA;AAAA,EAChE;AAAA;AAAA,EAGA,MAAM,SAAS,MAAA,EAAmD;AAChE,IAAA,MAAM,KAAA,GAAQ,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA0B,QAAQ,wBAAA,EAA0B,EAAE,IAAA,EAAM,MAAA,EAAQ,CAAA;AAE5G,IAAA,MAAM,MAAA,GAAS,sBAAA,CAAuB,KAAA,EAAO,MAAM,CAAA;AACnD,IAAA,OAAO,MAAA,IAAU,WAAW,KAAA,CAAM,MAAA,GAAS,EAAE,GAAG,KAAA,EAAO,QAAO,GAAI,KAAA;AAAA,EACpE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,oBAAoB,KAAA,EAAqD;AACvE,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,MAAA,EAAQ,CAAA,cAAA,EAAiB,kBAAA,CAAmB,KAAK,CAAC,CAAA,sBAAA,CAAA,EAA0B,EAAE,IAAA,EAAM,IAAI,CAAA;AAAA,EACrH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,WAAA,CAAY,KAAA,EAAe,MAAA,GAAoC,EAAC,EAAuC;AACrG,IAAA,MAAM,IAAA,GAAO,OAAO,SAAA,KAAc,MAAA,GAAY,EAAE,SAAA,EAAW,MAAA,CAAO,SAAA,EAAU,GAAI,EAAC;AACjF,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,MAAA,EAAQ,CAAA,cAAA,EAAiB,kBAAA,CAAmB,KAAK,CAAC,CAAA,aAAA,CAAA,EAAiB,EAAE,IAAA,EAAM,CAAA;AAAA,EACxG;AACF","file":"chunk-X4QICOOM.js","sourcesContent":["import { nodaroMotionEngineFrom } from \"@nodaro/shared/models\"\nimport type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Nodaro Motion (the `castSwap` resource; routes `/v1/cast-swap`) — 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 Motion Prism (`engine` left out, or\n * `\"motion-prism\"`) or Nodaro Motion Pulse (`\"motion-pulse\"`). Pulse renders 720p\n * (its default) or 1080p and has no draft; it makes a new take guided by the\n * clip and pictures, so its Full Quality is a new take at 1080p rather than\n * the same take re-rendered (`CastSwapFullQualityEstimate.kind`).\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/cast-swap` 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 and no `prePrompt` or `postPrompt`, 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 Motion 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 with every role\n * `inPreview: false`, always refused even with a prompt, or with no role kept\n * in it that has images and no `prePrompt` or `postPrompt`), `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 Motion 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 Nodaro Motion run is made on, by its public id. Left out =\n * `\"motion-prism\"`.\n *\n * - `\"motion-prism\"` (Nodaro Motion Prism): 480p (the default, a draft unless\n * `draft: false`), 720p or 1080p; Full Quality re-renders a draft's own take\n * at 1080p.\n * - `\"motion-pulse\"` (Nodaro Motion Pulse): 720p (the default) or 1080p, never a\n * draft (`draft: true` answers 400 `draft_unsupported`); Full Quality makes a\n * new take at 1080p from a completed 720p run's inputs. A preview is still\n * 4 s from `previewStart`.\n */\nexport type CastSwapEngine = \"motion-prism\" | \"motion-pulse\"\n\n/**\n * The engine ids an older client sent: the earlier public ids (`\"motion-pro\"`\n * = `\"motion-prism\"`, `\"motion-lite\"` = `\"motion-pulse\"`) and the internal\n * ones (`\"seedance-2-5\"`, `\"kling-4\"`). Still accepted in a request; never\n * returned.\n * @deprecated use {@link CastSwapEngine}.\n */\nexport type CastSwapEngineLegacyId = \"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 CastSwapStyle = \"precise\" | \"motion\"\n\n/**\n * Where a Nodaro Motion 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 CastSwapMotionLength = \"cut-end\" | \"cut-start\"\n\n/** @deprecated use {@link CastSwapMotionLength}. */\nexport type CastSwapKlingLength = CastSwapMotionLength\n\n/** Whether a swapped subject takes this trait from the references (`\"new\"`) or keeps the video's (`\"original\"`). */\nexport type CastSwapTraitSource = \"new\" | \"original\"\n\n/**\n * Preview-only settings, on every role kind; a full run (`preview` not `true`)\n * ignores both.\n */\nexport interface CastSwapRolePreviewSettings {\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 with every role\n * left out (always refused, even with a prompt), or with no role kept in it\n * that has images and no pre / post prompt, answers 400 `no_roles_in_preview`.\n */\n inPreview?: boolean\n}\n\n/** A person in the video to recast. */\nexport interface CastSwapPersonRole extends CastSwapRolePreviewSettings {\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?: CastSwapTraitSource\n /** Outfit from the references or the video. Default `\"new\"`. */\n outfit?: CastSwapTraitSource\n /** Hairstyle and haircut from the references or the video. Default `\"new\"`. */\n hair?: CastSwapTraitSource\n}\n\n/** The place the video happens in. */\nexport interface CastSwapLocationRole extends CastSwapRolePreviewSettings {\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 CastSwapPetRole extends CastSwapRolePreviewSettings {\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?: CastSwapTraitSource\n /** Coat (fur, colors and markings) from the references or the video. Default `\"new\"`. */\n coat?: CastSwapTraitSource\n}\n\n/** An object in the video to recast. */\nexport interface CastSwapProductRole extends CastSwapRolePreviewSettings {\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?: CastSwapTraitSource\n /** Finish (colors, materials, label and markings) from the references or the video. Default `\"new\"`. */\n finish?: CastSwapTraitSource\n}\n\nexport type CastSwapRole = CastSwapPersonRole | CastSwapLocationRole | CastSwapPetRole | CastSwapProductRole\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 CastSwapReference {\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 CastSwapFaceMaskingZone {\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 CastSwapFaceMasking {\n mode: \"off\" | \"always\" | \"auto\"\n fill?: \"blur\" | \"depth\"\n minFaceHeightPct?: number\n maxFaceHeightPct?: number\n zone?: CastSwapFaceMaskingZone | null\n blurStrengthPct?: number\n threshold?: number\n}\n\n/** The body of `POST /v1/cast-swap` and `POST /v1/cast-swap/estimate`. */\nexport interface CastSwapParams {\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, or a `prePrompt` or `postPrompt`, is required.\n */\n roles: CastSwapRole[]\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?: CastSwapReference[]\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 CastSwapEngine}). Default `\"motion-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 CastSwapEngineLegacyId})\n * are still accepted.\n */\n engine?: CastSwapEngine | CastSwapEngineLegacyId\n /**\n * How the run follows the clip (see {@link CastSwapStyle}). Default\n * `\"precise\"`; the job records it in `input_data.style`.\n */\n style?: CastSwapStyle\n /**\n * Flex only (`style: \"motion\"`, a direct run): an art style that restyles\n * the whole video, as a `direction.style` id of the platform's `style`\n * picker catalog (the same ids an image's `direction.style` takes); the\n * platform words it. Refused with 400 `unknown_art_style` (not in the\n * catalog), `art_style_not_supported` (a saved moodboard, `moodboard:…`)\n * or `art_style_needs_flex` (Precise, a trend run). It never changes the\n * price. The job records it in `input_data.direction`.\n */\n direction?: { style: string }\n /**\n * Nodaro Motion Pulse only (Prism ignores it): which end of the clip is cut to\n * whole seconds (see {@link CastSwapMotionLength}). Default `\"cut-end\"`.\n */\n motionLength?: CastSwapMotionLength\n /** @deprecated use {@link motionLength} (still accepted). */\n klingLength?: CastSwapKlingLength\n /**\n * The output resolution. Nodaro Motion Prism: `\"480p\"` (default), `\"720p\"` or\n * `\"1080p\"`. Nodaro Motion Pulse: `\"720p\"` (default) or `\"1080p\"`; `\"480p\"`\n * answers 400.\n */\n resolution?: \"480p\" | \"720p\" | \"1080p\"\n /**\n * Render as a draft (Nodaro Motion Prism only). Defaults to `true` at 480p and\n * `false` above it; `true` with `\"720p\"` or `\"1080p\"` answers 400 (draft is\n * 480p only). Nodaro Motion Pulse has no draft: `true` answers 400\n * `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?: CastSwapFaceMasking\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 CastSwapEstimate {\n /**\n * The engine the run would use, by its public id (absent from an older\n * server = `\"motion-prism\"`). An id an older server answers is read as the\n * public id it names.\n */\n engine?: CastSwapEngine\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 Motion 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). A server before Cast Swap 0.396.0\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 Motion Pulse, what it costs);\n * - `motionExpected`: what the video is expected to be charged, never above\n * `motion` (Nodaro Motion 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 *\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 } & 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 Motion Prism\n * run): the final charge is expected to come out lower than `totalCredits`,\n * at about `expectedCredits`. `false` on Nodaro Motion Pulse.\n */\n settlesLower: boolean\n}\n\n/** Per-call options for {@link CastSwapResource.run}. */\nexport interface CastSwapRunOptions {\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\"` re-renders a Nodaro\n * Motion Prism draft's own take at 1080p; `\"new-take\"` makes a new Nodaro Motion Pulse take at\n * 1080p from a 720p run's inputs (it will not match the 720p run frame for\n * frame). The 720p run or draft stays either way.\n */\nexport type CastSwapFullQualityKind = \"same-take\" | \"new-take\"\n\n/**\n * What a Full Quality version of a run would cost\n * (`POST /v1/cast-swap/:jobId/full-quality/estimate`): a Nodaro Motion Prism\n * draft, or a completed Nodaro Motion Pulse run at 720p.\n */\nexport interface CastSwapFullQualityEstimate {\n /**\n * Which Full Quality this is ({@link CastSwapFullQualityKind}), so it can\n * be worded right. Absent from an older server: `\"same-take\"`.\n */\n kind?: CastSwapFullQualityKind\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; a server before Cast Swap 0.396.0 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 CastSwapResource.fullQuality}. */\nexport interface CastSwapFullQualityParams {\n /** A generation session to file the Full Quality result in. */\n sessionId?: string\n}\n\n/** The Full Quality job (`POST /v1/cast-swap/:jobId/full-quality`). */\nexport interface CastSwapFullQualityResult {\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 Nodaro Motion 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 neither a Nodaro Motion Prism draft nor a\n * Nodaro Motion Pulse run at 720p (a Pulse run at 1080p is already Full Quality);\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 CastSwapFullQualityRefusalCode =\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\"` / `\"flex\"`: an admin forced it — every direct run and quote\n * of that engine runs Precise / Flex (`style: \"motion\"`) whatever the\n * request's `style` says; show no Style control.\n *\n * A trend run keeps its own trend's style.\n */\nexport type CastSwapStyleChoiceOption = \"user\" | \"precise\" | \"flex\"\n\n/** What {@link CastSwapResource.styleChoice} answers: every engine's choice, by its public id. */\nexport interface CastSwapStyleChoice {\n engines: Record<CastSwapEngine, CastSwapStyleChoiceOption>\n}\n\nexport class CastSwapResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Start a Nodaro Motion run (`POST /v1/cast-swap`, 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: CastSwapParams, options?: CastSwapRunOptions): Promise<{ jobId: string; deduped?: boolean }> {\n return this.client.request(\"POST\", \"/v1/cast-swap\", {\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/cast-swap/style-choice`): `\"user\"` = show a Style control;\n * `\"precise\"` / `\"flex\"` = an admin forced that style for the engine, so a\n * run's `style` is overridden and the control is best hidden. Public (no\n * sign-in needed); the answer may be up to a minute old.\n */\n styleChoice(): Promise<CastSwapStyleChoice> {\n return this.client.request(\"GET\", \"/v1/cast-swap/style-choice\")\n }\n\n /** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */\n async estimate(params: CastSwapParams): Promise<CastSwapEstimate> {\n const quote = await this.client.request<CastSwapEstimate>(\"POST\", \"/v1/cast-swap/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/cast-swap/:jobId/full-quality/estimate`); spends nothing. `jobId` is a\n * finished Nodaro Motion Prism DRAFT run, or a finished Nodaro Motion Pulse\n * run at 720p (a Nodaro Motion or trend run); the quote's `kind` says whether it is the same take\n * re-rendered or a new take. The quote\n * 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 CastSwapFullQualityRefusalCode}.\n */\n fullQualityEstimate(jobId: string): Promise<CastSwapFullQualityEstimate> {\n return this.client.request(\"POST\", `/v1/cast-swap/${encodeURIComponent(jobId)}/full-quality/estimate`, { body: {} })\n }\n\n /**\n * Finish a run at Full Quality (`POST /v1/cast-swap/:jobId/full-quality`):\n * at 1080p, with the clip's audio, as a new job linked to the run — a\n * Nodaro Motion Prism draft's own take re-rendered, or a new Nodaro Motion Pulse take from a\n * 720p run's inputs (the quote's `kind`). 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 CastSwapFullQualityRefusalCode}.\n */\n fullQuality(jobId: string, params: CastSwapFullQualityParams = {}): Promise<CastSwapFullQualityResult> {\n const body = params.sessionId !== undefined ? { sessionId: params.sessionId } : {}\n return this.client.request(\"POST\", `/v1/cast-swap/${encodeURIComponent(jobId)}/full-quality`, { body })\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-XV4MDWHF.js"}
|
package/dist/entries/billing.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-IS26FJO7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkGGIWDFER_cjs = require('../chunk-GGIWDFER.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "BillingResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkGGIWDFER_cjs.BillingResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=billing.cjs.map
|
|
13
13
|
//# sourceMappingURL=billing.cjs.map
|
|
@@ -53,7 +53,11 @@ interface BillingPlan {
|
|
|
53
53
|
prices: BillingPlanPrices | null;
|
|
54
54
|
/** The free plan's one-time grant at sign-up; `null` on a paid plan, whose credits come with each price. */
|
|
55
55
|
signupCredits: number | null;
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* How many nodes of one workflow run at once. Once Nodaro Cloud enforces its
|
|
58
|
+
* concurrency limits, the plan's limit on generations running at once,
|
|
59
|
+
* shared by all of an account's runs.
|
|
60
|
+
*/
|
|
57
61
|
parallelism: number;
|
|
58
62
|
/** Storage for your media, in bytes. */
|
|
59
63
|
storageBytes: number;
|
|
@@ -53,7 +53,11 @@ interface BillingPlan {
|
|
|
53
53
|
prices: BillingPlanPrices | null;
|
|
54
54
|
/** The free plan's one-time grant at sign-up; `null` on a paid plan, whose credits come with each price. */
|
|
55
55
|
signupCredits: number | null;
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* How many nodes of one workflow run at once. Once Nodaro Cloud enforces its
|
|
58
|
+
* concurrency limits, the plan's limit on generations running at once,
|
|
59
|
+
* shared by all of an account's runs.
|
|
60
|
+
*/
|
|
57
61
|
parallelism: number;
|
|
58
62
|
/** Storage for your media, in bytes. */
|
|
59
63
|
storageBytes: number;
|
package/dist/entries/billing.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-RQSGS7ZK.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWYX44JHE_cjs = require('../chunk-WYX44JHE.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 chunkWYX44JHE_cjs.CastSwapResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
13
13
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
@@ -47,7 +47,8 @@ import '@nodaro/shared/organizations';
|
|
|
47
47
|
* `raw_reference_token` (also in a reference's `line`),
|
|
48
48
|
* `invalid_role_mention` (also any `{role:N}` in a reference's `line`),
|
|
49
49
|
* `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),
|
|
50
|
-
* `preview_out_of_range`, `
|
|
50
|
+
* `preview_out_of_range`, `unnamed_role_needs_picture` (a role with no name
|
|
51
|
+
* and no image), `no_roles_in_preview` (a preview with every role
|
|
51
52
|
* `inPreview: false`, always refused even with a prompt, or with no role kept
|
|
52
53
|
* in it that has images and no `prePrompt` or `postPrompt`), `prompt_too_long`
|
|
53
54
|
* (the prompt would build too long: a `{role:N}` reads as the role's name when
|
|
@@ -116,8 +117,14 @@ interface CastSwapRolePreviewSettings {
|
|
|
116
117
|
/** A person in the video to recast. */
|
|
117
118
|
interface CastSwapPersonRole extends CastSwapRolePreviewSettings {
|
|
118
119
|
kind: "person";
|
|
119
|
-
/** How the person is told apart in the video, e.g. `"the woman that attacks"`.
|
|
120
|
-
|
|
120
|
+
/** How the person is told apart in the video, e.g. `"the woman that attacks"`.
|
|
121
|
+
*
|
|
122
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
123
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
124
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
125
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
121
128
|
/** 0–3 images of ONE person. Empty or `null` keeps the original person. */
|
|
122
129
|
images: string[] | null;
|
|
123
130
|
/** Body from the references or the video. Default `"new"`. */
|
|
@@ -138,8 +145,14 @@ interface CastSwapLocationRole extends CastSwapRolePreviewSettings {
|
|
|
138
145
|
/** An animal in the video to recast. */
|
|
139
146
|
interface CastSwapPetRole extends CastSwapRolePreviewSettings {
|
|
140
147
|
kind: "pet";
|
|
141
|
-
/** How the animal is told apart in the video, e.g. `"the dog"`.
|
|
142
|
-
|
|
148
|
+
/** How the animal is told apart in the video, e.g. `"the dog"`.
|
|
149
|
+
*
|
|
150
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
151
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
152
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
153
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
154
|
+
*/
|
|
155
|
+
name?: string;
|
|
143
156
|
/** 0–3 images of ONE animal. Empty or `null` keeps the original animal. */
|
|
144
157
|
images: string[] | null;
|
|
145
158
|
/** Body (shape, size and build) from the references or the video. Default `"new"`. */
|
|
@@ -150,8 +163,14 @@ interface CastSwapPetRole extends CastSwapRolePreviewSettings {
|
|
|
150
163
|
/** An object in the video to recast. */
|
|
151
164
|
interface CastSwapProductRole extends CastSwapRolePreviewSettings {
|
|
152
165
|
kind: "product";
|
|
153
|
-
/** How the object is told apart in the video, e.g. `"the can"`.
|
|
154
|
-
|
|
166
|
+
/** How the object is told apart in the video, e.g. `"the can"`.
|
|
167
|
+
*
|
|
168
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
169
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
170
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
171
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
172
|
+
*/
|
|
173
|
+
name?: string;
|
|
155
174
|
/** 0–3 images of ONE product. Empty or `null` keeps the original object. */
|
|
156
175
|
images: string[] | null;
|
|
157
176
|
/** Shape and proportions from the references or the video. Default `"new"`. */
|
|
@@ -458,6 +477,21 @@ interface CastSwapFullQualityResult {
|
|
|
458
477
|
* Open-ended: a code not listed here may still arrive.
|
|
459
478
|
*/
|
|
460
479
|
type CastSwapFullQualityRefusalCode = "unauthorized" | "not_found" | "not_completed" | "not_a_draft" | "draft_expired" | "full_quality_pending" | "full_quality_unavailable" | "insufficient_credits" | "budget_exceeded" | "member_cap_exceeded" | "user_allowance_exceeded" | "job_blocked" | "job_read_failed" | "estimate_unavailable" | "host_too_old" | (string & {});
|
|
480
|
+
/**
|
|
481
|
+
* Who decides a direct run's style on one engine:
|
|
482
|
+
* - `"user"`: the person (the request's `style`, left out = `"precise"`);
|
|
483
|
+
* show a Style control;
|
|
484
|
+
* - `"precise"` / `"flex"`: an admin forced it — every direct run and quote
|
|
485
|
+
* of that engine runs Precise / Flex (`style: "motion"`) whatever the
|
|
486
|
+
* request's `style` says; show no Style control.
|
|
487
|
+
*
|
|
488
|
+
* A trend run keeps its own trend's style.
|
|
489
|
+
*/
|
|
490
|
+
type CastSwapStyleChoiceOption = "user" | "precise" | "flex";
|
|
491
|
+
/** What {@link CastSwapResource.styleChoice} answers: every engine's choice, by its public id. */
|
|
492
|
+
interface CastSwapStyleChoice {
|
|
493
|
+
engines: Record<CastSwapEngine, CastSwapStyleChoiceOption>;
|
|
494
|
+
}
|
|
461
495
|
declare class CastSwapResource {
|
|
462
496
|
private client;
|
|
463
497
|
constructor(client: NodaroClientCore);
|
|
@@ -472,6 +506,14 @@ declare class CastSwapResource {
|
|
|
472
506
|
jobId: string;
|
|
473
507
|
deduped?: boolean;
|
|
474
508
|
}>;
|
|
509
|
+
/**
|
|
510
|
+
* Whether people choose a direct run's style, per engine
|
|
511
|
+
* (`GET /v1/cast-swap/style-choice`): `"user"` = show a Style control;
|
|
512
|
+
* `"precise"` / `"flex"` = an admin forced that style for the engine, so a
|
|
513
|
+
* run's `style` is overridden and the control is best hidden. Public (no
|
|
514
|
+
* sign-in needed); the answer may be up to a minute old.
|
|
515
|
+
*/
|
|
516
|
+
styleChoice(): Promise<CastSwapStyleChoice>;
|
|
475
517
|
/** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */
|
|
476
518
|
estimate(params: CastSwapParams): Promise<CastSwapEstimate>;
|
|
477
519
|
/**
|
|
@@ -500,4 +542,4 @@ declare class CastSwapResource {
|
|
|
500
542
|
fullQuality(jobId: string, params?: CastSwapFullQualityParams): Promise<CastSwapFullQualityResult>;
|
|
501
543
|
}
|
|
502
544
|
|
|
503
|
-
export { type CastSwapEngine, type CastSwapEngineLegacyId, type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityKind, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapKlingLength, type CastSwapLocationRole, type CastSwapMotionLength, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapStyle, type CastSwapTraitSource };
|
|
545
|
+
export { type CastSwapEngine, type CastSwapEngineLegacyId, type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityKind, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapKlingLength, type CastSwapLocationRole, type CastSwapMotionLength, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapStyle, type CastSwapStyleChoice, type CastSwapStyleChoiceOption, type CastSwapTraitSource };
|
|
@@ -47,7 +47,8 @@ import '@nodaro/shared/organizations';
|
|
|
47
47
|
* `raw_reference_token` (also in a reference's `line`),
|
|
48
48
|
* `invalid_role_mention` (also any `{role:N}` in a reference's `line`),
|
|
49
49
|
* `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),
|
|
50
|
-
* `preview_out_of_range`, `
|
|
50
|
+
* `preview_out_of_range`, `unnamed_role_needs_picture` (a role with no name
|
|
51
|
+
* and no image), `no_roles_in_preview` (a preview with every role
|
|
51
52
|
* `inPreview: false`, always refused even with a prompt, or with no role kept
|
|
52
53
|
* in it that has images and no `prePrompt` or `postPrompt`), `prompt_too_long`
|
|
53
54
|
* (the prompt would build too long: a `{role:N}` reads as the role's name when
|
|
@@ -116,8 +117,14 @@ interface CastSwapRolePreviewSettings {
|
|
|
116
117
|
/** A person in the video to recast. */
|
|
117
118
|
interface CastSwapPersonRole extends CastSwapRolePreviewSettings {
|
|
118
119
|
kind: "person";
|
|
119
|
-
/** How the person is told apart in the video, e.g. `"the woman that attacks"`.
|
|
120
|
-
|
|
120
|
+
/** How the person is told apart in the video, e.g. `"the woman that attacks"`.
|
|
121
|
+
*
|
|
122
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
123
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
124
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
125
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
121
128
|
/** 0–3 images of ONE person. Empty or `null` keeps the original person. */
|
|
122
129
|
images: string[] | null;
|
|
123
130
|
/** Body from the references or the video. Default `"new"`. */
|
|
@@ -138,8 +145,14 @@ interface CastSwapLocationRole extends CastSwapRolePreviewSettings {
|
|
|
138
145
|
/** An animal in the video to recast. */
|
|
139
146
|
interface CastSwapPetRole extends CastSwapRolePreviewSettings {
|
|
140
147
|
kind: "pet";
|
|
141
|
-
/** How the animal is told apart in the video, e.g. `"the dog"`.
|
|
142
|
-
|
|
148
|
+
/** How the animal is told apart in the video, e.g. `"the dog"`.
|
|
149
|
+
*
|
|
150
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
151
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
152
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
153
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
154
|
+
*/
|
|
155
|
+
name?: string;
|
|
143
156
|
/** 0–3 images of ONE animal. Empty or `null` keeps the original animal. */
|
|
144
157
|
images: string[] | null;
|
|
145
158
|
/** Body (shape, size and build) from the references or the video. Default `"new"`. */
|
|
@@ -150,8 +163,14 @@ interface CastSwapPetRole extends CastSwapRolePreviewSettings {
|
|
|
150
163
|
/** An object in the video to recast. */
|
|
151
164
|
interface CastSwapProductRole extends CastSwapRolePreviewSettings {
|
|
152
165
|
kind: "product";
|
|
153
|
-
/** How the object is told apart in the video, e.g. `"the can"`.
|
|
154
|
-
|
|
166
|
+
/** How the object is told apart in the video, e.g. `"the can"`.
|
|
167
|
+
*
|
|
168
|
+
* Direct runs only: omit it (or leave it empty) and the role is named by its
|
|
169
|
+
* first picture — matched to the subject in the video it fits best; such a
|
|
170
|
+
* role needs at least one image (else 400 `unnamed_role_needs_picture`). A
|
|
171
|
+
* trend run's roles are always named (400 `role_name_required`).
|
|
172
|
+
*/
|
|
173
|
+
name?: string;
|
|
155
174
|
/** 0–3 images of ONE product. Empty or `null` keeps the original object. */
|
|
156
175
|
images: string[] | null;
|
|
157
176
|
/** Shape and proportions from the references or the video. Default `"new"`. */
|
|
@@ -458,6 +477,21 @@ interface CastSwapFullQualityResult {
|
|
|
458
477
|
* Open-ended: a code not listed here may still arrive.
|
|
459
478
|
*/
|
|
460
479
|
type CastSwapFullQualityRefusalCode = "unauthorized" | "not_found" | "not_completed" | "not_a_draft" | "draft_expired" | "full_quality_pending" | "full_quality_unavailable" | "insufficient_credits" | "budget_exceeded" | "member_cap_exceeded" | "user_allowance_exceeded" | "job_blocked" | "job_read_failed" | "estimate_unavailable" | "host_too_old" | (string & {});
|
|
480
|
+
/**
|
|
481
|
+
* Who decides a direct run's style on one engine:
|
|
482
|
+
* - `"user"`: the person (the request's `style`, left out = `"precise"`);
|
|
483
|
+
* show a Style control;
|
|
484
|
+
* - `"precise"` / `"flex"`: an admin forced it — every direct run and quote
|
|
485
|
+
* of that engine runs Precise / Flex (`style: "motion"`) whatever the
|
|
486
|
+
* request's `style` says; show no Style control.
|
|
487
|
+
*
|
|
488
|
+
* A trend run keeps its own trend's style.
|
|
489
|
+
*/
|
|
490
|
+
type CastSwapStyleChoiceOption = "user" | "precise" | "flex";
|
|
491
|
+
/** What {@link CastSwapResource.styleChoice} answers: every engine's choice, by its public id. */
|
|
492
|
+
interface CastSwapStyleChoice {
|
|
493
|
+
engines: Record<CastSwapEngine, CastSwapStyleChoiceOption>;
|
|
494
|
+
}
|
|
461
495
|
declare class CastSwapResource {
|
|
462
496
|
private client;
|
|
463
497
|
constructor(client: NodaroClientCore);
|
|
@@ -472,6 +506,14 @@ declare class CastSwapResource {
|
|
|
472
506
|
jobId: string;
|
|
473
507
|
deduped?: boolean;
|
|
474
508
|
}>;
|
|
509
|
+
/**
|
|
510
|
+
* Whether people choose a direct run's style, per engine
|
|
511
|
+
* (`GET /v1/cast-swap/style-choice`): `"user"` = show a Style control;
|
|
512
|
+
* `"precise"` / `"flex"` = an admin forced that style for the engine, so a
|
|
513
|
+
* run's `style` is overridden and the control is best hidden. Public (no
|
|
514
|
+
* sign-in needed); the answer may be up to a minute old.
|
|
515
|
+
*/
|
|
516
|
+
styleChoice(): Promise<CastSwapStyleChoice>;
|
|
475
517
|
/** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */
|
|
476
518
|
estimate(params: CastSwapParams): Promise<CastSwapEstimate>;
|
|
477
519
|
/**
|
|
@@ -500,4 +542,4 @@ declare class CastSwapResource {
|
|
|
500
542
|
fullQuality(jobId: string, params?: CastSwapFullQualityParams): Promise<CastSwapFullQualityResult>;
|
|
501
543
|
}
|
|
502
544
|
|
|
503
|
-
export { type CastSwapEngine, type CastSwapEngineLegacyId, type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityKind, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapKlingLength, type CastSwapLocationRole, type CastSwapMotionLength, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapStyle, type CastSwapTraitSource };
|
|
545
|
+
export { type CastSwapEngine, type CastSwapEngineLegacyId, type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityKind, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapKlingLength, type CastSwapLocationRole, type CastSwapMotionLength, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapStyle, type CastSwapStyleChoice, type CastSwapStyleChoiceOption, type CastSwapTraitSource };
|
|
@@ -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-CMUzKpE9.cjs';
|
|
7
|
-
import { l as GenerationSessionParams, a3 as Subject } from '../nodes-
|
|
7
|
+
import { l as GenerationSessionParams, a3 as Subject } from '../nodes-Dx8rpU12.cjs';
|
|
8
8
|
import { SetKeeperCatalogInput, SetKeeperCatalogResult } from './keepers.cjs';
|
|
9
9
|
import '@nodaro/shared/apps';
|
|
10
10
|
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-CMUzKpE9.js';
|
|
7
|
-
import { l as GenerationSessionParams, a3 as Subject } from '../nodes-
|
|
7
|
+
import { l as GenerationSessionParams, a3 as Subject } from '../nodes-BXL3qXlY.js';
|
|
8
8
|
import { SetKeeperCatalogInput, SetKeeperCatalogResult } from './keepers.js';
|
|
9
9
|
import '@nodaro/shared/apps';
|
|
10
10
|
import '@nodaro/shared/organizations';
|
package/dist/entries/client.cjs
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSXV6OBKE_cjs = require('../chunk-SXV6OBKE.cjs');
|
|
4
|
+
require('../chunk-WUM6CWTE.cjs');
|
|
5
|
+
require('../chunk-LKH5M44B.cjs');
|
|
6
|
+
require('../chunk-RKW3N463.cjs');
|
|
7
|
+
require('../chunk-GHVCV4S5.cjs');
|
|
4
8
|
require('../chunk-KMNSPC72.cjs');
|
|
5
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-UPGZTLK7.cjs');
|
|
6
10
|
require('../chunk-UIDVH3GP.cjs');
|
|
7
11
|
require('../chunk-W5VHATSR.cjs');
|
|
8
12
|
require('../chunk-R63TTR35.cjs');
|
|
9
13
|
require('../chunk-3B47IHB3.cjs');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-LKH5M44B.cjs');
|
|
14
|
+
require('../chunk-GB6C5OEZ.cjs');
|
|
12
15
|
require('../chunk-SYVNY3AH.cjs');
|
|
13
16
|
require('../chunk-YDRXBRW2.cjs');
|
|
14
17
|
require('../chunk-WMT7HEBZ.cjs');
|
|
15
18
|
require('../chunk-MBFUMWI5.cjs');
|
|
16
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-IVM4WMMD.cjs');
|
|
17
20
|
require('../chunk-UIBYZNDR.cjs');
|
|
18
21
|
require('../chunk-LTZKNAXM.cjs');
|
|
19
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-57GANTLV.cjs');
|
|
20
23
|
require('../chunk-J5LGGCAS.cjs');
|
|
21
24
|
require('../chunk-NBVARNVA.cjs');
|
|
22
25
|
require('../chunk-7YHIFCJ4.cjs');
|
|
23
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-G4AFHCNA.cjs');
|
|
24
27
|
require('../chunk-LAWYFC4G.cjs');
|
|
25
28
|
require('../chunk-TCLNSVYA.cjs');
|
|
26
29
|
require('../chunk-KXEWTYS4.cjs');
|
|
27
|
-
require('../chunk-
|
|
30
|
+
require('../chunk-SS3B6PHT.cjs');
|
|
28
31
|
require('../chunk-MIXRL6I2.cjs');
|
|
29
|
-
require('../chunk-
|
|
32
|
+
require('../chunk-ASPUFRHB.cjs');
|
|
30
33
|
require('../chunk-7QOCWJKD.cjs');
|
|
31
34
|
require('../chunk-ZCWKX4V6.cjs');
|
|
32
35
|
require('../chunk-Q45PC4YD.cjs');
|
|
33
|
-
require('../chunk-
|
|
36
|
+
require('../chunk-DODUCQ6B.cjs');
|
|
34
37
|
require('../chunk-GVIFLUYZ.cjs');
|
|
35
|
-
require('../chunk-
|
|
36
|
-
require('../chunk-
|
|
37
|
-
require('../chunk-
|
|
38
|
+
require('../chunk-A3S55XGF.cjs');
|
|
39
|
+
require('../chunk-JW5FH4TE.cjs');
|
|
40
|
+
require('../chunk-VUTNNRDW.cjs');
|
|
38
41
|
require('../chunk-WUKIJJG2.cjs');
|
|
39
|
-
require('../chunk-
|
|
42
|
+
require('../chunk-5LI4CVJB.cjs');
|
|
40
43
|
require('../chunk-RR45WBME.cjs');
|
|
41
44
|
require('../chunk-2DZWWIJ4.cjs');
|
|
42
|
-
require('../chunk-SS3B6PHT.cjs');
|
|
43
45
|
require('../chunk-WK4VXPPZ.cjs');
|
|
44
46
|
require('../chunk-43FVH6LJ.cjs');
|
|
45
47
|
require('../chunk-YFS2LMG4.cjs');
|
|
46
|
-
require('../chunk-
|
|
47
|
-
require('../chunk-
|
|
48
|
-
|
|
49
|
-
require('../chunk-
|
|
48
|
+
require('../chunk-3OARKXWT.cjs');
|
|
49
|
+
require('../chunk-GSKGWWBR.cjs');
|
|
50
|
+
require('../chunk-KCQ3I6NW.cjs');
|
|
51
|
+
var chunkDCMB5XOH_cjs = require('../chunk-DCMB5XOH.cjs');
|
|
52
|
+
require('../chunk-7GC5LKCR.cjs');
|
|
50
53
|
require('../chunk-A3XA6UNM.cjs');
|
|
51
54
|
require('../chunk-4BAHF762.cjs');
|
|
52
|
-
require('../chunk-A3S55XGF.cjs');
|
|
53
55
|
require('../chunk-JOXZ4ZIF.cjs');
|
|
54
56
|
require('../chunk-GA4LZZKQ.cjs');
|
|
55
|
-
require('../chunk-
|
|
56
|
-
require('../chunk-
|
|
57
|
+
require('../chunk-GGIWDFER.cjs');
|
|
58
|
+
require('../chunk-WYX44JHE.cjs');
|
|
57
59
|
require('../chunk-BPWUWUZ3.cjs');
|
|
58
60
|
require('../chunk-XZQ6Z4T6.cjs');
|
|
59
61
|
|
|
@@ -61,23 +63,23 @@ require('../chunk-XZQ6Z4T6.cjs');
|
|
|
61
63
|
|
|
62
64
|
Object.defineProperty(exports, "NodaroClient", {
|
|
63
65
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkSXV6OBKE_cjs.NodaroClient; }
|
|
65
67
|
});
|
|
66
68
|
Object.defineProperty(exports, "createClient", {
|
|
67
69
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkSXV6OBKE_cjs.createClient; }
|
|
69
71
|
});
|
|
70
72
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
71
73
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkDCMB5XOH_cjs.CallbackAuth; }
|
|
73
75
|
});
|
|
74
76
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
75
77
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkDCMB5XOH_cjs.StaticTokenAuth; }
|
|
77
79
|
});
|
|
78
80
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
79
81
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkDCMB5XOH_cjs.supabaseAuth; }
|
|
81
83
|
});
|
|
82
84
|
//# sourceMappingURL=client.cjs.map
|
|
83
85
|
//# 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-Dx8rpU12.cjs';
|
|
9
9
|
import { Scene3DResource } from './scene3d.cjs';
|
|
10
10
|
import { N as NodaroClientCore, h as DeveloperAppsResource, a as ClientOptions } from '../developer-apps-CMUzKpE9.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-CMUzKpE9.cjs';
|
|
@@ -23,6 +23,7 @@ import { PromptHelperResource } from './prompt-helper.cjs';
|
|
|
23
23
|
import { VoicesResource } from './voices.cjs';
|
|
24
24
|
import { LlmResource } from './llm.cjs';
|
|
25
25
|
import { MediaResource } from './media.cjs';
|
|
26
|
+
import { ContentRightsResource } from './content-rights.cjs';
|
|
26
27
|
import { AudioResource } from './audio.cjs';
|
|
27
28
|
import { CreditsResource } from './credits.cjs';
|
|
28
29
|
import { BillingResource } from './billing.cjs';
|
|
@@ -43,6 +44,7 @@ import { ShotsResource } from './shots.cjs';
|
|
|
43
44
|
import { RecastResource } from './recast.cjs';
|
|
44
45
|
import { CastSwapResource } from './cast-swap.cjs';
|
|
45
46
|
import { TrendsResource } from './trends.cjs';
|
|
47
|
+
import { TrendRadarResource } from './trend-radar.cjs';
|
|
46
48
|
import { StudioResource } from './studio.cjs';
|
|
47
49
|
import { CopilotResource } from './copilot.cjs';
|
|
48
50
|
import { CommunityResource } from './community.cjs';
|
|
@@ -107,6 +109,8 @@ declare class NodaroClient extends NodaroClientCore {
|
|
|
107
109
|
readonly voices: VoicesResource;
|
|
108
110
|
readonly llm: LlmResource;
|
|
109
111
|
readonly media: MediaResource;
|
|
112
|
+
/** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */
|
|
113
|
+
readonly contentRights: ContentRightsResource;
|
|
110
114
|
readonly audio: AudioResource;
|
|
111
115
|
readonly credits: CreditsResource;
|
|
112
116
|
/** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */
|
|
@@ -134,6 +138,8 @@ declare class NodaroClient extends NodaroClientCore {
|
|
|
134
138
|
readonly castSwap: CastSwapResource;
|
|
135
139
|
/** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */
|
|
136
140
|
readonly trends: TrendsResource;
|
|
141
|
+
/** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */
|
|
142
|
+
readonly trendRadar: TrendRadarResource;
|
|
137
143
|
readonly studio: StudioResource;
|
|
138
144
|
readonly copilot: CopilotResource;
|
|
139
145
|
readonly community: CommunityResource;
|
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-BXL3qXlY.js';
|
|
9
9
|
import { Scene3DResource } from './scene3d.js';
|
|
10
10
|
import { N as NodaroClientCore, h as DeveloperAppsResource, a as ClientOptions } from '../developer-apps-CMUzKpE9.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-CMUzKpE9.js';
|
|
@@ -23,6 +23,7 @@ import { PromptHelperResource } from './prompt-helper.js';
|
|
|
23
23
|
import { VoicesResource } from './voices.js';
|
|
24
24
|
import { LlmResource } from './llm.js';
|
|
25
25
|
import { MediaResource } from './media.js';
|
|
26
|
+
import { ContentRightsResource } from './content-rights.js';
|
|
26
27
|
import { AudioResource } from './audio.js';
|
|
27
28
|
import { CreditsResource } from './credits.js';
|
|
28
29
|
import { BillingResource } from './billing.js';
|
|
@@ -43,6 +44,7 @@ import { ShotsResource } from './shots.js';
|
|
|
43
44
|
import { RecastResource } from './recast.js';
|
|
44
45
|
import { CastSwapResource } from './cast-swap.js';
|
|
45
46
|
import { TrendsResource } from './trends.js';
|
|
47
|
+
import { TrendRadarResource } from './trend-radar.js';
|
|
46
48
|
import { StudioResource } from './studio.js';
|
|
47
49
|
import { CopilotResource } from './copilot.js';
|
|
48
50
|
import { CommunityResource } from './community.js';
|
|
@@ -107,6 +109,8 @@ declare class NodaroClient extends NodaroClientCore {
|
|
|
107
109
|
readonly voices: VoicesResource;
|
|
108
110
|
readonly llm: LlmResource;
|
|
109
111
|
readonly media: MediaResource;
|
|
112
|
+
/** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */
|
|
113
|
+
readonly contentRights: ContentRightsResource;
|
|
110
114
|
readonly audio: AudioResource;
|
|
111
115
|
readonly credits: CreditsResource;
|
|
112
116
|
/** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */
|
|
@@ -134,6 +138,8 @@ declare class NodaroClient extends NodaroClientCore {
|
|
|
134
138
|
readonly castSwap: CastSwapResource;
|
|
135
139
|
/** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */
|
|
136
140
|
readonly trends: TrendsResource;
|
|
141
|
+
/** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */
|
|
142
|
+
readonly trendRadar: TrendRadarResource;
|
|
137
143
|
readonly studio: StudioResource;
|
|
138
144
|
readonly copilot: CopilotResource;
|
|
139
145
|
readonly community: CommunityResource;
|