@nodaro/sdk 1.7.1 → 1.9.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
@@ -263,6 +263,61 @@ declare class JobsResource {
263
263
  cancel(id: string): Promise<CancelJobResult>;
264
264
  }
265
265
 
266
+ /**
267
+ * Generate Video Pro control surface (Cloud edition) — the checkpointed
268
+ * long-video engine's stop/continue operations. The generation itself is
269
+ * dispatched like any other node (`POST /v1/generate-video-pro`); these
270
+ * endpoints act on an EXISTING run:
271
+ *
272
+ * - `stop(jobId)` — graceful stop: the engine abandons the in-flight segment
273
+ * generation (that segment is still billed — the provider keeps rendering
274
+ * it), skips all remaining segments, stitches everything completed so far
275
+ * into the job's FINAL video, and refunds the untouched remainder of the
276
+ * reserve. A job that hasn't started yet is cancelled with a full refund
277
+ * instead. Poll the job as usual: it completes with `output_data.pro
278
+ * .stopped === true` and `stoppedAtSegment`.
279
+ *
280
+ * - `continueRun(jobId, opts?)` — a NEW job that resumes from
281
+ * `opts.fromSegment` (1-based; omitted → the first not-yet-delivered
282
+ * segment). Segments before it are reused from the parent; everything from
283
+ * it on is regenerated (overriding the parent's takes). Charged only for
284
+ * the regenerated segments plus the flat pro fee. Works on stopped, failed
285
+ * (with ≥1 delivered segment), and fully completed runs (tail re-roll via
286
+ * an explicit `fromSegment`).
287
+ */
288
+ interface StopVideoProResult {
289
+ jobId: string;
290
+ /** Present when the run was processing — the engine finalizes within
291
+ * seconds; keep polling the job. */
292
+ stopping?: boolean;
293
+ /** Present when the job had not started — the generic cancel ran instead
294
+ * (full refund). */
295
+ success?: boolean;
296
+ cancelled?: number;
297
+ }
298
+ interface ContinueVideoProResult {
299
+ /** The NEW job to poll — the continuation run. */
300
+ jobId: string;
301
+ continuedFromJobId?: string;
302
+ /** 1-based first regenerated segment. */
303
+ fromSegment?: number;
304
+ segmentCount?: number;
305
+ /** Present when an idempotency key matched an existing continuation. */
306
+ deduped?: boolean;
307
+ }
308
+ declare class VideoProResource {
309
+ private client;
310
+ constructor(client: NodaroClient);
311
+ /** Gracefully stop a running generate-video-pro job (keep + deliver the
312
+ * completed segments; refund the rest). */
313
+ stop(jobId: string): Promise<StopVideoProResult>;
314
+ /** Continue a stopped/failed/completed run from a segment (a NEW job).
315
+ * Named `continueRun` because `continue` is a reserved word. */
316
+ continueRun(jobId: string, opts?: {
317
+ fromSegment?: number;
318
+ }): Promise<ContinueVideoProResult>;
319
+ }
320
+
266
321
  type ExecutionStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "stopping" | "timed_out" | "discarded";
267
322
  type ExecutionTriggerType = "manual" | "webhook" | "schedule" | "app_run" | "single-node";
268
323
  /**
@@ -3800,6 +3855,27 @@ declare class MediaResource {
3800
3855
  }): Promise<{
3801
3856
  jobId: string;
3802
3857
  }>;
3858
+ /**
3859
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
3860
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
3861
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
3862
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
3863
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
3864
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
3865
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
3866
+ * Poll `jobs.get(jobId)` for the finished image.
3867
+ */
3868
+ imageCollage(input: {
3869
+ imageUrls: string[];
3870
+ imageSizes?: Array<0 | 1 | 2 | 3>;
3871
+ layout?: "smart" | "grid";
3872
+ resolution?: "2K" | "4K";
3873
+ aspectRatio?: string;
3874
+ gap?: number;
3875
+ backgroundColor?: string;
3876
+ }): Promise<{
3877
+ jobId: string;
3878
+ }>;
3803
3879
  /**
3804
3880
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
3805
3881
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
@@ -4375,6 +4451,7 @@ declare class NodaroClient {
4375
4451
  readonly workflows: WorkflowsResource;
4376
4452
  readonly projects: ProjectsResource;
4377
4453
  readonly jobs: JobsResource;
4454
+ readonly videoPro: VideoProResource;
4378
4455
  readonly executions: ExecutionsResource;
4379
4456
  readonly nodes: NodesResource;
4380
4457
  readonly developerApps: DeveloperAppsResource;
@@ -4484,4 +4561,4 @@ interface ApiErrorBody {
4484
4561
  }
4485
4562
  declare function throwFromResponse(status: number, body: ApiErrorBody): never;
4486
4563
 
4487
- 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, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, CommunityResource, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateProjectInput, type CreateWorkflowInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, 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 GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, 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, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, StaticTokenAuth, StorageExceededError, type StructuredReferenceParams, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, 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, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
4564
+ 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, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateProjectInput, type CreateWorkflowInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, 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 GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, 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, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, 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 WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
package/dist/index.d.ts CHANGED
@@ -263,6 +263,61 @@ declare class JobsResource {
263
263
  cancel(id: string): Promise<CancelJobResult>;
264
264
  }
265
265
 
266
+ /**
267
+ * Generate Video Pro control surface (Cloud edition) — the checkpointed
268
+ * long-video engine's stop/continue operations. The generation itself is
269
+ * dispatched like any other node (`POST /v1/generate-video-pro`); these
270
+ * endpoints act on an EXISTING run:
271
+ *
272
+ * - `stop(jobId)` — graceful stop: the engine abandons the in-flight segment
273
+ * generation (that segment is still billed — the provider keeps rendering
274
+ * it), skips all remaining segments, stitches everything completed so far
275
+ * into the job's FINAL video, and refunds the untouched remainder of the
276
+ * reserve. A job that hasn't started yet is cancelled with a full refund
277
+ * instead. Poll the job as usual: it completes with `output_data.pro
278
+ * .stopped === true` and `stoppedAtSegment`.
279
+ *
280
+ * - `continueRun(jobId, opts?)` — a NEW job that resumes from
281
+ * `opts.fromSegment` (1-based; omitted → the first not-yet-delivered
282
+ * segment). Segments before it are reused from the parent; everything from
283
+ * it on is regenerated (overriding the parent's takes). Charged only for
284
+ * the regenerated segments plus the flat pro fee. Works on stopped, failed
285
+ * (with ≥1 delivered segment), and fully completed runs (tail re-roll via
286
+ * an explicit `fromSegment`).
287
+ */
288
+ interface StopVideoProResult {
289
+ jobId: string;
290
+ /** Present when the run was processing — the engine finalizes within
291
+ * seconds; keep polling the job. */
292
+ stopping?: boolean;
293
+ /** Present when the job had not started — the generic cancel ran instead
294
+ * (full refund). */
295
+ success?: boolean;
296
+ cancelled?: number;
297
+ }
298
+ interface ContinueVideoProResult {
299
+ /** The NEW job to poll — the continuation run. */
300
+ jobId: string;
301
+ continuedFromJobId?: string;
302
+ /** 1-based first regenerated segment. */
303
+ fromSegment?: number;
304
+ segmentCount?: number;
305
+ /** Present when an idempotency key matched an existing continuation. */
306
+ deduped?: boolean;
307
+ }
308
+ declare class VideoProResource {
309
+ private client;
310
+ constructor(client: NodaroClient);
311
+ /** Gracefully stop a running generate-video-pro job (keep + deliver the
312
+ * completed segments; refund the rest). */
313
+ stop(jobId: string): Promise<StopVideoProResult>;
314
+ /** Continue a stopped/failed/completed run from a segment (a NEW job).
315
+ * Named `continueRun` because `continue` is a reserved word. */
316
+ continueRun(jobId: string, opts?: {
317
+ fromSegment?: number;
318
+ }): Promise<ContinueVideoProResult>;
319
+ }
320
+
266
321
  type ExecutionStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "stopping" | "timed_out" | "discarded";
267
322
  type ExecutionTriggerType = "manual" | "webhook" | "schedule" | "app_run" | "single-node";
268
323
  /**
@@ -3800,6 +3855,27 @@ declare class MediaResource {
3800
3855
  }): Promise<{
3801
3856
  jobId: string;
3802
3857
  }>;
3858
+ /**
3859
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
3860
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
3861
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
3862
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
3863
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
3864
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
3865
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
3866
+ * Poll `jobs.get(jobId)` for the finished image.
3867
+ */
3868
+ imageCollage(input: {
3869
+ imageUrls: string[];
3870
+ imageSizes?: Array<0 | 1 | 2 | 3>;
3871
+ layout?: "smart" | "grid";
3872
+ resolution?: "2K" | "4K";
3873
+ aspectRatio?: string;
3874
+ gap?: number;
3875
+ backgroundColor?: string;
3876
+ }): Promise<{
3877
+ jobId: string;
3878
+ }>;
3803
3879
  /**
3804
3880
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
3805
3881
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
@@ -4375,6 +4451,7 @@ declare class NodaroClient {
4375
4451
  readonly workflows: WorkflowsResource;
4376
4452
  readonly projects: ProjectsResource;
4377
4453
  readonly jobs: JobsResource;
4454
+ readonly videoPro: VideoProResource;
4378
4455
  readonly executions: ExecutionsResource;
4379
4456
  readonly nodes: NodesResource;
4380
4457
  readonly developerApps: DeveloperAppsResource;
@@ -4484,4 +4561,4 @@ interface ApiErrorBody {
4484
4561
  }
4485
4562
  declare function throwFromResponse(status: number, body: ApiErrorBody): never;
4486
4563
 
4487
- 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, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, CommunityResource, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateProjectInput, type CreateWorkflowInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, 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 GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, 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, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, StaticTokenAuth, StorageExceededError, type StructuredReferenceParams, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, 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, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
4564
+ 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, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateProjectInput, type CreateWorkflowInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, 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 GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, 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, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, 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 WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
package/dist/index.js CHANGED
@@ -253,6 +253,32 @@ var JobsResource = class {
253
253
  }
254
254
  };
255
255
 
256
+ // src/resources/video-pro.ts
257
+ var VideoProResource = class {
258
+ constructor(client) {
259
+ this.client = client;
260
+ }
261
+ client;
262
+ /** Gracefully stop a running generate-video-pro job (keep + deliver the
263
+ * completed segments; refund the rest). */
264
+ stop(jobId) {
265
+ return this.client.request(
266
+ "POST",
267
+ `/v1/generate-video-pro/${encodeURIComponent(jobId)}/stop`
268
+ );
269
+ }
270
+ /** Continue a stopped/failed/completed run from a segment (a NEW job).
271
+ * Named `continueRun` because `continue` is a reserved word. */
272
+ continueRun(jobId, opts) {
273
+ return this.client.request("POST", "/v1/generate-video-pro/continue", {
274
+ body: {
275
+ fromJobId: jobId,
276
+ ...opts?.fromSegment !== void 0 ? { fromSegment: opts.fromSegment } : {}
277
+ }
278
+ });
279
+ }
280
+ };
281
+
256
282
  // src/resources/executions.ts
257
283
  var ExecutionsResource = class {
258
284
  constructor(client) {
@@ -1709,6 +1735,19 @@ var MediaResource = class {
1709
1735
  saveToStorage(input) {
1710
1736
  return this.client.request("POST", "/v1/save-to-storage", { body: input });
1711
1737
  }
1738
+ /**
1739
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
1740
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
1741
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
1742
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
1743
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
1744
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
1745
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
1746
+ * Poll `jobs.get(jobId)` for the finished image.
1747
+ */
1748
+ imageCollage(input) {
1749
+ return this.client.request("POST", "/v1/image-collage", { body: input });
1750
+ }
1712
1751
  /**
1713
1752
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
1714
1753
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
@@ -2075,6 +2114,7 @@ var NodaroClient = class {
2075
2114
  workflows;
2076
2115
  projects;
2077
2116
  jobs;
2117
+ videoPro;
2078
2118
  executions;
2079
2119
  nodes;
2080
2120
  developerApps;
@@ -2104,6 +2144,7 @@ var NodaroClient = class {
2104
2144
  this.workflows = new WorkflowsResource(this);
2105
2145
  this.projects = new ProjectsResource(this);
2106
2146
  this.jobs = new JobsResource(this);
2147
+ this.videoPro = new VideoProResource(this);
2107
2148
  this.executions = new ExecutionsResource(this);
2108
2149
  this.nodes = new NodesResource(this);
2109
2150
  this.developerApps = new DeveloperAppsResource(this);
@@ -2216,6 +2257,6 @@ function supabaseAuth(supabase) {
2216
2257
  };
2217
2258
  }
2218
2259
 
2219
- export { AppsResource, AudioResource, CREATURE_ASSET_TYPES, CallbackAuth, CharactersResource, CommunityResource, CreaturesResource, CreditsResource, DeveloperAppsResource, ExecutionsResource, ForbiddenError, InsufficientCreditsError, JobAbortedError, JobFailedError, JobTimeoutError, JobsResource, LibraryResource, LocationsResource, MediaResource, NodaroClient, NodaroError, NodesResource, NotFoundError, OAuthResource, ObjectsResource, PickerCatalogsResource, PipelinesResource, PresetsResource, ProjectsResource, PromptHelperResource, RateLimitedError, ReduceResource, StaticTokenAuth, StorageExceededError, UnauthorizedError, UploadsResource, VoicesResource, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
2260
+ export { AppsResource, AudioResource, CREATURE_ASSET_TYPES, CallbackAuth, CharactersResource, CommunityResource, CreaturesResource, CreditsResource, DeveloperAppsResource, ExecutionsResource, ForbiddenError, InsufficientCreditsError, JobAbortedError, JobFailedError, JobTimeoutError, JobsResource, LibraryResource, LocationsResource, MediaResource, NodaroClient, NodaroError, NodesResource, NotFoundError, OAuthResource, ObjectsResource, PickerCatalogsResource, PipelinesResource, PresetsResource, ProjectsResource, PromptHelperResource, RateLimitedError, ReduceResource, StaticTokenAuth, StorageExceededError, UnauthorizedError, UploadsResource, VideoProResource, VoicesResource, WorkflowsResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
2220
2261
  //# sourceMappingURL=index.js.map
2221
2262
  //# sourceMappingURL=index.js.map