@nodaro/sdk 1.7.1 → 1.8.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.cjs +29 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
/**
|
|
@@ -4375,6 +4430,7 @@ declare class NodaroClient {
|
|
|
4375
4430
|
readonly workflows: WorkflowsResource;
|
|
4376
4431
|
readonly projects: ProjectsResource;
|
|
4377
4432
|
readonly jobs: JobsResource;
|
|
4433
|
+
readonly videoPro: VideoProResource;
|
|
4378
4434
|
readonly executions: ExecutionsResource;
|
|
4379
4435
|
readonly nodes: NodesResource;
|
|
4380
4436
|
readonly developerApps: DeveloperAppsResource;
|
|
@@ -4484,4 +4540,4 @@ interface ApiErrorBody {
|
|
|
4484
4540
|
}
|
|
4485
4541
|
declare function throwFromResponse(status: number, body: ApiErrorBody): never;
|
|
4486
4542
|
|
|
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 };
|
|
4543
|
+
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
|
/**
|
|
@@ -4375,6 +4430,7 @@ declare class NodaroClient {
|
|
|
4375
4430
|
readonly workflows: WorkflowsResource;
|
|
4376
4431
|
readonly projects: ProjectsResource;
|
|
4377
4432
|
readonly jobs: JobsResource;
|
|
4433
|
+
readonly videoPro: VideoProResource;
|
|
4378
4434
|
readonly executions: ExecutionsResource;
|
|
4379
4435
|
readonly nodes: NodesResource;
|
|
4380
4436
|
readonly developerApps: DeveloperAppsResource;
|
|
@@ -4484,4 +4540,4 @@ interface ApiErrorBody {
|
|
|
4484
4540
|
}
|
|
4485
4541
|
declare function throwFromResponse(status: number, body: ApiErrorBody): never;
|
|
4486
4542
|
|
|
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 };
|
|
4543
|
+
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) {
|
|
@@ -2075,6 +2101,7 @@ var NodaroClient = class {
|
|
|
2075
2101
|
workflows;
|
|
2076
2102
|
projects;
|
|
2077
2103
|
jobs;
|
|
2104
|
+
videoPro;
|
|
2078
2105
|
executions;
|
|
2079
2106
|
nodes;
|
|
2080
2107
|
developerApps;
|
|
@@ -2104,6 +2131,7 @@ var NodaroClient = class {
|
|
|
2104
2131
|
this.workflows = new WorkflowsResource(this);
|
|
2105
2132
|
this.projects = new ProjectsResource(this);
|
|
2106
2133
|
this.jobs = new JobsResource(this);
|
|
2134
|
+
this.videoPro = new VideoProResource(this);
|
|
2107
2135
|
this.executions = new ExecutionsResource(this);
|
|
2108
2136
|
this.nodes = new NodesResource(this);
|
|
2109
2137
|
this.developerApps = new DeveloperAppsResource(this);
|
|
@@ -2216,6 +2244,6 @@ function supabaseAuth(supabase) {
|
|
|
2216
2244
|
};
|
|
2217
2245
|
}
|
|
2218
2246
|
|
|
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 };
|
|
2247
|
+
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
2248
|
//# sourceMappingURL=index.js.map
|
|
2221
2249
|
//# sourceMappingURL=index.js.map
|