@nodaro/sdk 2.9.0 → 2.11.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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _nodaro_shared from '@nodaro/shared';
2
- import { CollaboratorRole, GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, WorkflowVisibility, Scene3DReference, Scene3DPlan, Scene3DEditOperation, Scene3DV2EditOperation, Pro3DRenderSource, Pro3DRenderEngine, Pro3DRenderQuality, Pro3DRenderStyle, Scene3DJobOutputAny, Pro3DRenderJobOutput as Pro3DRenderJobOutput$1, Pro3DRenderCapabilities, Scene3DPlanV2, Pro3DRenderQuote as Pro3DRenderQuote$1, ModelInputAdjustment, ConnectedReference, DescribedReference, Scene3DAssetRef, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, OverlayAnchor, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, UsageQuery, UsageReport, UsageLogEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
3
- export { AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ATTACH_COLUMNS, CharacterAspectRatio, CloneListingResult, CommunityCard, CommunityEntityType, CommunityReportReason, CommunitySort, ConnectedReference, ObjectAspectRatio as CreatureAspectRatio, CreatureAttachColumn, DescribedReference, EntityStyle, FavoriteListingResult, GenericEdge, GenericNode, InvitationDelivery, InvitationPreview, InvitationState, InvitationView, JoinCodeView, LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationAssetType, LocationAttachColumn, MeOrganizations, MemberStatus, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn, OrgAuditEntry, OrgErrorCode, OrgKind, OrgMemberView, OrgPage, OrgRole, OrgSettings, OrgStatus, OrganizationSummary, OrganizationView, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PipelineStageName, PromptAffixFields, PublishListingParams, PublishListingResult, ReduceMeta, ReduceStrategyId, ReportListingResult, SURROUND_DIRECTIONS, SharedListing, SharedVoice, SurroundDirection, USAGE_GROUP_BYS, UsageGroupBy, UsageLogEntry, UsageQuery, UsageReport, UsageReportRow, UsageReportTotals, UsageVarianceRow, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryResponse, WORKSPACE_HEADER, WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject, WorkspaceMemberView, WorkspaceRole, WorkspaceSettings, WorkspaceSummary, WorkspaceView } from '@nodaro/shared';
2
+ import { CollaboratorRole, GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, WorkflowVisibility, NodeExecutionStateWire, Scene3DReference, Scene3DPlan, Scene3DEditOperation, Scene3DV2EditOperation, Pro3DRenderSource, Pro3DRenderEngine, Pro3DRenderQuality, Pro3DRenderStyle, Scene3DJobOutputAny, Pro3DRenderJobOutput as Pro3DRenderJobOutput$1, Pro3DRenderCapabilities, Scene3DPlanV2, Pro3DRenderQuote as Pro3DRenderQuote$1, ModelInputAdjustment, ConnectedReference, DescribedReference, Scene3DAssetRef, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, OverlayAnchor, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, UsageQuery, UsageReport, UsageLogEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
3
+ export { AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ATTACH_COLUMNS, CharacterAspectRatio, CloneListingResult, CommunityCard, CommunityEntityType, CommunityReportReason, CommunitySort, ConnectedReference, ObjectAspectRatio as CreatureAspectRatio, CreatureAttachColumn, DescribedReference, EntityStyle, FavoriteListingResult, GenericEdge, GenericNode, InvitationDelivery, InvitationPreview, InvitationState, InvitationView, JoinCodeView, LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationAssetType, LocationAttachColumn, MeOrganizations, MemberStatus, NodeExecutionStatus, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, OUTPUT_BEARING_NODE_STATUSES, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn, OrgAuditEntry, OrgErrorCode, OrgKind, OrgMemberView, OrgPage, OrgRole, OrgSettings, OrgStatus, OrganizationSummary, OrganizationView, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PipelineStageName, PromptAffixFields, PublishListingParams, PublishListingResult, ReduceMeta, ReduceStrategyId, ReportListingResult, SURROUND_DIRECTIONS, SharedListing, SharedVoice, SurroundDirection, USAGE_GROUP_BYS, UsageGroupBy, UsageLogEntry, UsageQuery, UsageReport, UsageReportRow, UsageReportTotals, UsageVarianceRow, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryResponse, WORKSPACE_HEADER, WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject, WorkspaceMemberView, WorkspaceRole, WorkspaceSettings, WorkspaceSummary, WorkspaceView, nodeStateMayCarryOutput } from '@nodaro/shared';
4
4
  import { DirectionFields, SubjectFields, PersonValue, WizardNodeContext, WizardQuestion, WizardSelection, RecommendedModel, FactoryPreset } from '@nodaro/prompts';
5
5
  export { PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, PersonValue, RecommendedModel, WizardNodeContext, WizardOption, WizardQuestion, WizardSelection, buildPersonHints } from '@nodaro/prompts';
6
6
 
@@ -565,19 +565,16 @@ type ExecutionTriggerType = "manual" | "webhook" | "schedule" | "app_run" | "sin
565
565
  /**
566
566
  * Per-node state inside an execution's `nodeStates` map. Keys are node IDs.
567
567
  *
568
- * Shape mirrors `services/workflow-engine/types.ts` plus the synthetic
569
- * single-node-job shape from `routes/workflow-execution.ts`.
568
+ * Extends the published wire contract in `@nodaro/shared`, which is what the
569
+ * orchestrator writes and the editor reads — so a field added there reaches
570
+ * SDK consumers as a typed field rather than through the index signature. The
571
+ * synthetic single-node-job shape from `routes/workflow-execution.ts` fits the
572
+ * same contract.
570
573
  */
571
- interface NodeExecutionState {
572
- status: string;
573
- nodeType?: string;
574
- jobId?: string | null;
575
- creditsUsed?: number;
576
- error?: string | null;
577
- startedAt?: string | null;
578
- completedAt?: string | null;
574
+ interface NodeExecutionState extends NodeExecutionStateWire {
579
575
  [key: string]: unknown;
580
576
  }
577
+
581
578
  /**
582
579
  * Workflow execution record. Returned by `get()` and `cancel()` (the cancel
583
580
  * endpoint returns `{ success: true }`, not the execution itself).
@@ -660,19 +657,67 @@ interface RetainedScene3DEditResult {
660
657
  scenePlan: Scene3DPlanV2;
661
658
  changeSummary: string;
662
659
  }
660
+ /**
661
+ * The kind of bytes a delivery descriptor names, and the usage it is pinned under.
662
+ *
663
+ * PAIRED, not two free enums: the platform refuses a pin whose usage is not the one its kind is
664
+ * defined to have, and a client that checks only one of the two would accept a mis-pinned
665
+ * artifact the server would then refuse. {@link SCENE3D_DELIVERY_ASSET_USAGE} is the map both
666
+ * halves are read from.
667
+ */
668
+ declare const SCENE3D_DELIVERY_ASSET_USAGE: {
669
+ readonly poster: "poster";
670
+ readonly "validation-report": "validation";
671
+ readonly "shot-still": "shot-still";
672
+ /** The recipe a run that never compiled was refused for. See {@link Scene3DDeliveryAsset}. */
673
+ readonly "source-json": "checkpoint";
674
+ };
675
+ type Scene3DDeliveryAssetKind = keyof typeof SCENE3D_DELIVERY_ASSET_USAGE;
676
+ /**
677
+ * One artifact a delivery pins, as a descriptor: opaque ids and digests only.
678
+ *
679
+ * Four kinds, and two of them are conditional:
680
+ *
681
+ * - `poster` and `validation-report` are on every delivery;
682
+ * - `shot-still` appears once per shot on a render that produced a contact sheet, and carries
683
+ * its own shot identity (`shotIndex`, `frame`, and the frame size);
684
+ * - `source-json` appears on ONE shape only — a `refused-authoring` delivery, published by a
685
+ * 3D Render Pro run whose recipe the compiler refused on every pass. It is the planner's last
686
+ * admitted recipe, and it is the only thing such a run leaves that names what was attempted.
687
+ * Reading it needs `edit` on the job's workflow (the same access the `.blend` export costs);
688
+ * a reader with less simply does not see the descriptor.
689
+ */
663
690
  interface Scene3DDeliveryAsset {
664
691
  assetId: string;
665
- kind: "poster" | "validation-report";
666
- usage: "poster" | "validation";
692
+ kind: Scene3DDeliveryAssetKind;
693
+ usage: (typeof SCENE3D_DELIVERY_ASSET_USAGE)[Scene3DDeliveryAssetKind];
667
694
  byteLength: number;
668
695
  sha256: string;
669
696
  viaRevisionId: string | null;
697
+ /** Set on a `shot-still` and absent on every other kind — never `null`. */
698
+ shotIndex?: number;
699
+ frame?: number;
700
+ width?: number;
701
+ height?: number;
670
702
  }
671
703
  /** Export evidence is retained separately from the immutable scene it rendered. */
672
704
  interface Scene3DDelivery {
673
705
  deliveryId: string;
674
- sceneRevisionId: string;
675
- sourcePlanSha256: string;
706
+ /**
707
+ * Null on a `refused-authoring` delivery and on that alone.
708
+ *
709
+ * A Pro run whose recipe the compiler refused on every pass still retains the refusal
710
+ * report, but nothing was ever compiled, so no scene revision was published. The field is
711
+ * null rather than absent so the shape stays one shape; read `sourceKind` to tell why.
712
+ */
713
+ sceneRevisionId: string | null;
714
+ /**
715
+ * What this delivery was made from. Absent when read from a deployment that predates the
716
+ * refused lane, where every delivery necessarily had a scene behind it.
717
+ */
718
+ sourceKind?: "retained-revision" | "job-output" | "refused-authoring";
719
+ /** Null when there is no plan to hash — see `sceneRevisionId`. */
720
+ sourcePlanSha256: string | null;
676
721
  sourceContentHash: string | null;
677
722
  sourceJobId: string | null;
678
723
  workflowId: string | null;
@@ -811,9 +856,66 @@ interface RenderScene3DParams extends Record<string, unknown> {
811
856
  workflowId?: string;
812
857
  nodeId?: string;
813
858
  }
814
- /** Preserve the shared wire contract while allowing additive job metadata. */
859
+ /**
860
+ * Preserve the shared wire contract while allowing additive job metadata.
861
+ *
862
+ * A scene authored by an ADVANCED engine additionally reports what the run knows about its own
863
+ * answer, every field optional and all of them absent on the deterministic Basic lane:
864
+ * `validation.warnings[]` entries coded `SCENE_AUTHORING_ASSUMPTION` (the planner's
865
+ * assumptions), `metadata.summary` (its description of what it authored), `repairPasses`
866
+ * (repairs actually run — `0` when the scene was accepted first time), `admissionRetries`
867
+ * (pre-build planner retries, which spend no repair pass), `mechanicalPasses` (repairs the engine
868
+ * applied from the compiler's own remedy with no planner call, counted APART from `repairPasses`
869
+ * on their own quoted allowance, each with a `REMEDY_AUTO_APPLIED` warning) and
870
+ * `restoredAssertions` (mandatory assertions put back after a planner answer re-shaped one the
871
+ * feedback had not named, each a `ASSERTION_RESTORED` warning).
872
+ *
873
+ * A scene that passed every mandatory assertion but did not get the visual reviewer's approval
874
+ * is delivered anyway, and `metadata.review` carries a verdict saying why. `verdict: "refused"`
875
+ * is the ADVISORY delivery — the reviewer objected once the repair budget was spent — with one
876
+ * `SCENE_REVIEW_REFUSED` warning per objection. `verdict: "unavailable"` is the UNREVIEWED
877
+ * delivery: the review produced no usable verdict after `attempts` asks — `reason: "provider"`
878
+ * when it never reached its provider, `"unusable"` when the provider answered with nothing usable
879
+ * (`Scene3DReviewUnavailableReason` in `@nodaro/shared`) — so nobody judged the scene, and
880
+ * `validation.warnings[]` LEADS with `SCENE_REVIEW_UNAVAILABLE` (any objections under it came from
881
+ * review batches that answered usably first, and are not the whole verdict).
882
+ *
883
+ * `validation.status` stays `"passed"` on both, so `metadata.review` being present is the only
884
+ * reliable test — use `scene3DReviewVerdictOf` from `@nodaro/shared` rather than reading it by
885
+ * hand, and `scene3DReviewNote` rather than writing the sentence yourself: a message that says
886
+ * the reviewer refused a scene nobody reviewed invents an opinion.
887
+ */
815
888
  type Scene3DJobOutput = Readonly<Scene3DJobOutputAny> & Readonly<Record<string, unknown>>;
816
- /** The settled 3D Render Pro result, plus any additive job metadata. */
889
+ /**
890
+ * The settled 3D Render Pro result, plus any additive job metadata.
891
+ *
892
+ * On a run that AUTHORED, the result reports the run's own account of its answer:
893
+ * `validation.warnings[]` entries coded `SCENE_AUTHORING_ASSUMPTION`, `metadata.summary`,
894
+ * `repairPasses` (`0` when accepted first time), `admissionRetries` (pre-build planner retries,
895
+ * which spend no repair pass), `mechanicalPasses` (repairs the engine authored itself from the
896
+ * compiler's own remedy, counted APART from `repairPasses` because they buy their own quoted
897
+ * allowance rather than spending one of your repairs) and `restoredAssertions`. A render-only
898
+ * export authored nothing, so it carries no summary and omits the counts rather than claiming `0`.
899
+ *
900
+ * The one case where `mechanicalPasses` IS a subset of `repairPasses` is a run quoted before that
901
+ * allowance existed — its quote carries no `mechanical` line. The discriminant is the quote, not
902
+ * the result, so read the quote you were given rather than deriving it from the two counts.
903
+ *
904
+ * A completed result may also be published without the visual reviewer's approval, and then
905
+ * `metadata.review` holds a verdict saying which way. `{ verdict: "refused", objections[],
906
+ * observed? }` is the ADVISORY delivery: every mandatory assertion passed, the reviewer still
907
+ * objected, and the scene was published once the repair budget was spent, with one
908
+ * `SCENE_REVIEW_REFUSED` warning per objection. `{ verdict: "unavailable", reason, attempts,
909
+ * objections[], observed? }` is the UNREVIEWED delivery: the review produced no usable verdict in
910
+ * `attempts` asks — `reason: "provider"` when it never reached its provider, `"unusable"` when the
911
+ * provider answered with nothing usable — so the assertion-passing scene was delivered with no
912
+ * verdict on it and `validation.warnings[]` LEADS with `SCENE_REVIEW_UNAVAILABLE`. Objections on
913
+ * that arm are whatever review batches answered usably first — real, but not the whole verdict.
914
+ *
915
+ * `validation.status` is `"passed"` on both, so test for `metadata.review` — via
916
+ * `scene3DReviewVerdictOf` from `@nodaro/shared` — rather than for the status or the warnings,
917
+ * and render it with `scene3DReviewNote` rather than assuming a refusal.
918
+ */
817
919
  type Pro3DRenderJobOutput = Readonly<Pro3DRenderJobOutput$1> & Readonly<Record<string, unknown>>;
818
920
 
819
921
  type NodeCategory = "input" | "parameter" | "ai-image" | "ai-video" | "ai-audio" | "ai-text" | "processing" | "composition" | "trigger" | "output" | "control" | "entity" | "utility";
@@ -1163,9 +1265,36 @@ declare class Scene3DResource {
1163
1265
  capabilities(): Promise<Scene3DCapabilities>;
1164
1266
  /** Current access to both the delivery and its source is required on every read. */
1165
1267
  getDelivery(jobId: string): Promise<Scene3DDelivery>;
1268
+ /**
1269
+ * The bytes of one descriptor the delivery listed.
1270
+ *
1271
+ * Checked against {@link SCENE3D_DELIVERY_ASSET_USAGE} rather than a hardcoded pair, which
1272
+ * is why a `shot-still` now works: the route has served stills since they existed, and this
1273
+ * guard refused them. `source-json` — the recipe a refused run was kept for — is on the same
1274
+ * map; the server still decides whether THIS caller may read it.
1275
+ */
1166
1276
  deliveryAssetBytes(jobId: string, asset: Scene3DDeliveryAsset, options?: {
1167
1277
  signal?: AbortSignal;
1168
1278
  }): Promise<ArrayBuffer>;
1279
+ /**
1280
+ * The recipe a 3D Render Pro run was refused for, parsed — or `null` when there is none.
1281
+ *
1282
+ * The one thing such a run leaves behind. Its recipe never compiled, so there is no scene
1283
+ * revision, no poster and no `.blend`: `output_data` carries a `deliveryId`, the compiler's
1284
+ * reasons, and `validation.sourceRetained` saying whether the recipe itself was kept. This
1285
+ * fetches it in one call — delivery, then the `source-json` descriptor's bytes.
1286
+ *
1287
+ * `null` means the delivery has no retained recipe to hand back: no pass ever cleared
1288
+ * admission, or this caller holds less than `edit` on the job's workflow and the descriptor
1289
+ * is therefore not listed for them.
1290
+ *
1291
+ * Read it to see what was attempted and to inform the next prompt. There is no input that
1292
+ * takes a recipe back: a refused run published no revision, so there is no `{kind:"scene"}`
1293
+ * source to re-run it from.
1294
+ */
1295
+ retainedRecipe(jobId: string, options?: {
1296
+ signal?: AbortSignal;
1297
+ }): Promise<unknown | null>;
1169
1298
  /** Persist deterministic overlays without an LLM or a generation charge. */
1170
1299
  applyEdits(revisionId: string, params: RetainedScene3DEditParams): Promise<RetainedScene3DEditResult>;
1171
1300
  /** Asset access is scoped to an exact retained revision, with fresh authentication. */
@@ -1210,9 +1339,21 @@ declare class Scene3DResource {
1210
1339
  *
1211
1340
  * Resolves with the settled result — `videoUrl` (the MP4) and `scenePlan`
1212
1341
  * (the exact composition it was rendered from), plus the revision, poster,
1213
- * validation and renderer metadata. Re-render that same `scenePlan` later
1214
- * with {@link render}, or with a `{kind:'scene'}` source; that costs no
1215
- * authoring.
1342
+ * validation and renderer metadata. A run that AUTHORED also reports its own
1343
+ * account of the answer — `metadata.summary`, `repairPasses`,
1344
+ * `admissionRetries`, `mechanicalPasses` (repairs the engine applied from
1345
+ * the compiler's own remedy with no planner call, counted APART from
1346
+ * `repairPasses` on their own quoted allowance), `restoredAssertions`, and
1347
+ * any `SCENE_AUTHORING_ASSUMPTION` warnings. A
1348
+ * completed result whose `metadata.review` is present passed every mandatory
1349
+ * assertion but did NOT get the visual reviewer's approval: `verdict:
1350
+ * "refused"` means it objected, each objection also a `SCENE_REVIEW_REFUSED`
1351
+ * warning; `verdict: "unavailable"` means the review produced no usable
1352
+ * verdict in `attempts` asks (`reason: "provider"` — never reached its
1353
+ * provider; `"unusable"` — it answered, unusably), so nobody judged the scene and
1354
+ * `SCENE_REVIEW_UNAVAILABLE` leads the warnings. Re-render that same
1355
+ * `scenePlan` later with {@link render}, or with a `{kind:'scene'}` source;
1356
+ * that costs no authoring.
1216
1357
  */
1217
1358
  renderProAndWait(params: Pro3DRenderParams | Pro3DRenderRunParams, options?: RunAndWaitOptions & Pro3DRenderRunOptions): Promise<Pro3DRenderJobOutput>;
1218
1359
  /**
@@ -4076,7 +4217,7 @@ declare class PromptHelperResource {
4076
4217
  /**
4077
4218
  * Read access to ElevenLabs voices: the premade catalog plus the shared
4078
4219
  * community Voice Library (both public GETs, no body), and the signed-in
4079
- * user's own voice clones (list / create-from-url / delete).
4220
+ * user's own pre-retirement voice clones (list / delete).
4080
4221
  */
4081
4222
  declare class VoicesResource {
4082
4223
  private client;
@@ -4099,10 +4240,11 @@ declare class VoicesResource {
4099
4240
  */
4100
4241
  listClones(): Promise<VoiceClone[]>;
4101
4242
  /**
4102
- * Clone a voice from an already-uploaded audio URL
4103
- * (`POST /v1/voice-clones/from-url`). Costs credits. Returns the create
4104
- * subset of `VoiceClone` (`elevenlabsVoiceId` is the id to use at
4105
- * text-to-speech time).
4243
+ * @deprecated Voice cloning is no longer offered on Nodaro (retired
4244
+ * 2026-09-15). The route answers `410 voice_cloning_retired` and this call
4245
+ * rejects with that error. Clones created before the retirement are still
4246
+ * listed by {@link VoicesResource.listClones} and still work as voice ids.
4247
+ * For a new custom voice use {@link VoicesResource.design}.
4106
4248
  */
4107
4249
  createClone(input: {
4108
4250
  name: string;
@@ -4263,12 +4405,9 @@ declare class VoicesResource {
4263
4405
  jobId: string;
4264
4406
  }>;
4265
4407
  /**
4266
- * Clone a voice from an audio FILE you hold in memory
4267
- * (`POST /v1/voice-clones`, multipart) — the counterpart to
4268
- * {@link VoicesResource.createClone}, which clones from an already-uploaded
4269
- * URL. Pass the raw audio `file` (a `Blob`/`File` in the browser, or a
4270
- * `Uint8Array`/`Buffer` in Node) plus a `name`. Costs credits. Returns the new
4271
- * {@link VoiceClone} (`elevenlabsVoiceId` is the id to recast/synthesize with).
4408
+ * @deprecated Voice cloning is no longer offered on Nodaro (retired
4409
+ * 2026-09-15). The route answers `410 voice_cloning_retired` and this call
4410
+ * rejects with that error. See {@link VoicesResource.createClone}.
4272
4411
  */
4273
4412
  createCloneFromFile(input: {
4274
4413
  name: string;
@@ -4586,6 +4725,16 @@ interface LlmStructuredJobInput extends LlmStructuredInput {
4586
4725
  llmModel?: string;
4587
4726
  selectionMode?: "choose" | "combine";
4588
4727
  };
4728
+ /** Draft from THIS finished `video-analysis` job of yours instead of
4729
+ * analyzing `videoUrl` again: no second analysis, no second analysis
4730
+ * charge — a retry after a failed draft, another model, different
4731
+ * notes. `videoUrl` may still ride beside it as the record of the source.
4732
+ * 422 when the job is not yours, does not exist, or is not a finished,
4733
+ * readable video analysis (`analysis_not_found` / `not_analysis` /
4734
+ * `analysis_failed` / `analysis_not_ready` / `invalid_analysis` — never a
4735
+ * 404, which means the route itself is absent). Not combinable with
4736
+ * `videoAnalysis`. */
4737
+ analysisJobId?: string;
4589
4738
  }
4590
4739
  /** `output_data` of an `llm-structured` job as it progresses: `stage` while
4591
4740
  * running (`analyzing` only for movie runs), then the result. */
@@ -7844,4 +7993,4 @@ interface ApiErrorBody {
7844
7993
  }
7845
7994
  declare function throwFromResponse(status: number, body: ApiErrorBody): never;
7846
7995
 
7847
- export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, CatalogsResource, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CopilotMemorySavedFrameData, type CopilotMessage, type CopilotMessagePart, type CopilotMetadataFrameData, type CopilotModelTier, CopilotResource, type CopilotRunMode, type CopilotRunProposalFrameData, type CopilotRunProposalNode, type CopilotStreamFrame, type CopilotStreamOptions, type CopilotSurface, type CopilotThread, type CopilotThreadWorkflow, type CopilotToolCallFrameData, type CopilotWiredAsset, type CopilotWorkflowCreatedFrameData, type CopilotWorkflowUpdateFrameData, type CreateCopilotThreadInput, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, type CreditStatus, CreditsResource, type DeleteAppRunResult, type DeleteJobResult, type DeveloperApp, type DeveloperAppKind, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EditScene3DParams, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateScene3DParams, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, type GetProductionOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobBlockedError, type JobErrorHint, JobFailedError, JobHeldError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListJobsPage, type ListJobsParams, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListStudioProductionsOptions, type ListWorkflowsParams, LlmResource, type LlmStructuredInput, type LlmStructuredJobInput, type LlmStructuredJobOutput, type LlmStructuredResult, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, type MediaProcessInput, type MediaProcessResult, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type OverlayPlacement, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, type PolicyBlockHint, PresetsResource, type Project, type ProjectedCatalog, type ProjectedCatalogDimension, type ProjectedCatalogOption, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RenderScene3DParams, type ResolveRecastGateInput, type RetainedScene3DEditParams, type RetainedScene3DEditResult, type RotateSecretResult, type RunAndWaitOptions, type RunAppOptions, type RunManyResult, type RunNodeAdjustment, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, type SafetyBlockHint, type Scene3DAuthoringEngine, type Scene3DCapabilities, type Scene3DDelivery, type Scene3DDeliveryAsset, type Scene3DJobOutput, Scene3DResource, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type StudioClientRequestId, type StudioCloneRequest, type StudioCreateProductionRequest, type StudioDescribeRequest, type StudioDocumentJson, type StudioEditInput, type StudioExportPlanOptions, type StudioExportPlanResponse, type StudioExportStep, type StudioFrameRequest, type StudioGenerateEstimate, type StudioGenerateOptions, type StudioGenerateRequest, type StudioGenerateResponse, type StudioGenerateResult, type StudioGenerationReply, type StudioImportSummary, type StudioJobStartedResponse, type StudioKeyframeAcceptanceInput, type StudioKeyframeGenerationInput, type StudioKeyframeRecord, type StudioListProductionsResponse, type StudioMediaResponse, type StudioMusicRequest, type StudioOpClass, StudioOpError, type StudioOpsDryRunReceipt, type StudioOpsDryRunResponse, type StudioOpsImpact, type StudioOpsReceipt, type StudioOpsRequest, type StudioOpsResponse, type StudioPlanIssue, StudioPreviewAppliedError, StudioPreviewUnavailable, type StudioProduction, type StudioProductionCapabilities, type StudioProductionDetail, type StudioProductionRecord, type StudioProductionReply, type StudioProductionResponse, StudioProductionsResource, type StudioReconcileResponse, StudioResource, type StudioRevoiceRequest, type StudioShotGenerationInput, type StudioSkillResponse, type StudioValidatePlanResponse, type StudioVideoLane, type StudioVoiceRequest, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TextToVideoParams, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, type WorkflowConflictCode, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, isStudioGenerateEstimate, supabaseAuth, throwFromResponse };
7996
+ export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, CatalogsResource, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CopilotMemorySavedFrameData, type CopilotMessage, type CopilotMessagePart, type CopilotMetadataFrameData, type CopilotModelTier, CopilotResource, type CopilotRunMode, type CopilotRunProposalFrameData, type CopilotRunProposalNode, type CopilotStreamFrame, type CopilotStreamOptions, type CopilotSurface, type CopilotThread, type CopilotThreadWorkflow, type CopilotToolCallFrameData, type CopilotWiredAsset, type CopilotWorkflowCreatedFrameData, type CopilotWorkflowUpdateFrameData, type CreateCopilotThreadInput, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, type CreditStatus, CreditsResource, type DeleteAppRunResult, type DeleteJobResult, type DeveloperApp, type DeveloperAppKind, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EditScene3DParams, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateScene3DParams, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, type GetProductionOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobBlockedError, type JobErrorHint, JobFailedError, JobHeldError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListJobsPage, type ListJobsParams, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListStudioProductionsOptions, type ListWorkflowsParams, LlmResource, type LlmStructuredInput, type LlmStructuredJobInput, type LlmStructuredJobOutput, type LlmStructuredResult, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, type MediaProcessInput, type MediaProcessResult, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type OverlayPlacement, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, type PolicyBlockHint, PresetsResource, type Project, type ProjectedCatalog, type ProjectedCatalogDimension, type ProjectedCatalogOption, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RenderScene3DParams, type ResolveRecastGateInput, type RetainedScene3DEditParams, type RetainedScene3DEditResult, type RotateSecretResult, type RunAndWaitOptions, type RunAppOptions, type RunManyResult, type RunNodeAdjustment, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, SCENE3D_DELIVERY_ASSET_USAGE, type SafetyBlockHint, type Scene3DAuthoringEngine, type Scene3DCapabilities, type Scene3DDelivery, type Scene3DDeliveryAsset, type Scene3DDeliveryAssetKind, type Scene3DJobOutput, Scene3DResource, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type StudioClientRequestId, type StudioCloneRequest, type StudioCreateProductionRequest, type StudioDescribeRequest, type StudioDocumentJson, type StudioEditInput, type StudioExportPlanOptions, type StudioExportPlanResponse, type StudioExportStep, type StudioFrameRequest, type StudioGenerateEstimate, type StudioGenerateOptions, type StudioGenerateRequest, type StudioGenerateResponse, type StudioGenerateResult, type StudioGenerationReply, type StudioImportSummary, type StudioJobStartedResponse, type StudioKeyframeAcceptanceInput, type StudioKeyframeGenerationInput, type StudioKeyframeRecord, type StudioListProductionsResponse, type StudioMediaResponse, type StudioMusicRequest, type StudioOpClass, StudioOpError, type StudioOpsDryRunReceipt, type StudioOpsDryRunResponse, type StudioOpsImpact, type StudioOpsReceipt, type StudioOpsRequest, type StudioOpsResponse, type StudioPlanIssue, StudioPreviewAppliedError, StudioPreviewUnavailable, type StudioProduction, type StudioProductionCapabilities, type StudioProductionDetail, type StudioProductionRecord, type StudioProductionReply, type StudioProductionResponse, StudioProductionsResource, type StudioReconcileResponse, StudioResource, type StudioRevoiceRequest, type StudioShotGenerationInput, type StudioSkillResponse, type StudioValidatePlanResponse, type StudioVideoLane, type StudioVoiceRequest, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TextToVideoParams, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, type WorkflowConflictCode, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, isStudioGenerateEstimate, supabaseAuth, throwFromResponse };