Nodaro Docs
DocumentationNode ReferenceModelsAI Agents (MCP)DevelopersSelf-hostingResearch
TypeScript SDK

Types

Every TypeScript type, helper function and constant that @nodaro/sdk exports, grouped by resource, with the page that documents each one.

@nodaro/sdk exports a TypeScript type for every method's input and output, plus a few helper functions and constants. Import types with import type, so they add nothing to your bundle:

import type { Workflow, Job, NodeJobOutput, WorkflowExecution } from "@nodaro/sdk"

const { data }: { data: Workflow } = await client.workflows.get(id)

Types follow the wire format of the API. A Job uses snake_case fields, such as output_data and created_at, because the API sends them that way. A Workflow and a WorkflowExecution use camelCase. Object, the object type, shares its name with the JavaScript global, so import it under another name when you need both: import type { Object as NodaroObject } from "@nodaro/sdk".

Client, auth and errors

ExportKindDocumented in
createClient, NodaroClientFunction, classClient
ClientOptions, UserIdentity, MeOrganizationsTypesClient
Auth, StaticTokenAuth, CallbackAuth, supabaseAuthType, classes, functionAuthentication
createSharedSupabaseClientFunction, from @nodaro/sdk/supabaseAuthentication
NodaroError, UnauthorizedError, ForbiddenError, NotFoundError, RateLimitedError, InsufficientCreditsError, StorageExceededError, WorkflowConflictError, JobBlockedError, JobFailedError, JobTimeoutError, JobAbortedError, JobHeldError, StudioOpError, StudioPreviewUnavailable, StudioPreviewAppliedErrorClassesErrors
WorkflowConflictCode, throwFromResponseType, functionErrors

Workflows, runs and nodes

ExportDocumented in
Workflow, ListWorkflowsParams, CreateWorkflowInput, UpdateWorkflowInput, RunWorkflowParams, RunWorkflowResultWorkflows and projects
Project, CreateProjectInput, UpdateProjectInputWorkflows and projects
GenericNode, GenericEdge, WorkflowExport, WorkflowExportCharacter, WorkflowExportObject, WorkflowExportLocationWorkflows and projects
Job, JobStatus, JobStatusResult, JobErrorHint, SafetyBlockHint, PolicyBlockHint, CreditStatus, CancelJobResult, DeleteJobResult, ListJobsParams, ListJobsPageJobs and executions
WorkflowExecution, WorkflowExecutionSummary, NodeExecutionState, NodeExecutionStatus, ExecutionStatus, ExecutionTriggerType, ListExecutionsForWorkflowParams, ListExecutionsPage, CancelExecutionParamsJobs and executions
StopVideoProResult, ContinueVideoProResultJobs and executions
NodeDescriptor, NodeCategory, OutputType, NodeInputField, NodeInputSchemaRun nodes
RunNodeResult, RunNodeAdjustment, NodeJobOutput, RunAndWaitOptions, RunManyResultRun nodes
GenerateImageParams, GenerateVideoParams, TextToVideoParams, StructuredReferenceParams, ConnectedReference, DescribedReferenceRun nodes
PromptAffixFieldsThe node-data fields for pre and post text: promptPrefix and promptSuffix
PublishedApp, PublishedAppDetail, ListAppsParams, ListAppsResult, AppRunResult, RunAppOptions, AppRun, ListAppRunsParams, DeleteAppRunResultApps and templates
Template, TemplateBrowseCard, TemplateSort, BrowseTemplatesParams, BrowseTemplatesResult, CloneTemplateParams, CloneTemplateResultApps and templates
TutorialCategory, TutorialVideoItem, TutorialFlowItemApps and templates
LlmStructuredInput, LlmStructuredResult, LlmStructuredJobInput, LlmStructuredJobOutputLLM and Reduce
ReduceStrategyId, ReduceMeta, ReduceInput, ReduceResultLLM and Reduce

Media, voices and editing

ExportDocumented in
UploadResult, LibraryAsset, ListLibraryParams, ListLibraryResultMedia and uploads
VideoMetadata, DownloadVideoProgress, MediaProcessInput, MediaProcessResult, OverlayPlacementMedia and uploads
AddCaptionsInput, CaptionLookInput, CaptionSegmentInput, CaptionEntryMedia and uploads
Voice, SharedVoice, VoiceClone, VoiceLibraryParams, VoiceLibraryResponseVoices and audio
VoiceChangerProInput, VoiceChangerProVoice, VcpAnalyzeInput, VcpAnalysis, VcpAnalysisSpeaker, VcpExportInput, VcpExportTrackVoices and audio
VoiceDesignInput, VoiceRemixInput, DubbingInput, AudioFxPresetVoices and audio
TranscribeWord, TranscribeJobOutput, TranscribeProvider, TranscribeLaneVoices and audio
EditJobResult, SilenceDetectInput, SilenceRanges, AudioSyncInput, AudioSyncSource, AudioSyncOffset, AudioSyncResult, ApplyEdlInput, EditPlanInput, EditPlanSource, EditPlanMode, EditPlanTier, Edl, EdlClipSet, ChapterSet, TranscriptEditing
GenerateScene3DParams, EditScene3DParams, RenderScene3DParams, Scene3DJobOutput, Scene3DCapabilities, Scene3DAuthoringEngine, RetainedScene3DEditParams, RetainedScene3DEditResult, Scene3DDelivery, Scene3DDeliveryAsset, Scene3DDeliveryAssetKind3D scenes

Assets

ExportDocumented in
Character, CharacterDetail, CharacterUsage, ReferencePhoto, ReferencePhotoKind, UpsertCharacterInput, UpsertCharacterResult, ListCharactersParams, ListCharactersResult, DuplicateCharacterInput, GenerateCharacterInput, GenerateCharacterResult, GenerateAssetInput, GenerateMotionInput, ApprovePortraitResult, RecaptionResult, CharacterAspectRatio, EntityStyleCharacters
Location, LocationDetail, LocationReferencePhoto, LocationReferencePhotoKind, CreateLocationInput, UpdateLocationInput, UpdateLocationResult, ListLocationsParams, GenerateLocationInput, GenerateLocationResult, GenerateLocationAssetInput, GenerateSurroundContinuationInput, ApproveMainImageResult, RecaptionLocationResult, LocationAssetType, LocationAttachColumn, SurroundDirectionLocations
Object, ObjectDetail, ObjectCategory, ObjectReferencePhoto, ObjectReferencePhotoKind, CreateObjectInput, UpdateObjectInput, UpdateObjectResult, UpsertObjectInput, UpsertObjectResult, ListObjectsParams, GenerateObjectInput, GenerateObjectResult, GenerateObjectAssetInput, GenerateObjectAssetResult, GenerateObjectMotionInput, GenerateObjectMotionResult, ApproveObjectMainImageResult, RecaptionObjectResult, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatioObjects and creatures
Creature, CreatureDetail, CreatureReferencePhoto, CreatureReferencePhotoKind, CreateCreatureInput, UpdateCreatureInput, UpdateCreatureResult, UpsertCreatureInput, UpsertCreatureResult, ListCreaturesParams, GenerateCreatureInput, GenerateCreatureResult, GenerateCreatureAssetInput, GenerateCreatureAssetResult, GenerateCreatureMotionInput, GenerateCreatureMotionResult, ApproveCreatureMainImageResult, RecaptionCreatureResult, CreatureAssetType, CreatureAttachColumn, CreatureAspectRatioObjects and creatures
CommunityCard, CommunityEntityType, CommunitySort, CommunityReportReason, BrowseCommunityParams, BrowseCommunityResult, CloneListingResult, FavoriteListingResult, ReportListingResultCommunity library

Productions

ExportDocumented in
StudioProduction, StudioProductionDetail, StudioSkillResponse, StudioValidatePlanResponse, StudioPlanIssue, StudioListProductionsResponse, ListStudioProductionsOptions, GetProductionOptions, StudioExportPlanOptions, StudioExportPlanResponse, StudioExportStepStudio productions
StudioCreateProductionRequest, StudioProductionResponse, StudioImportSummary, StudioClientRequestId, StudioOpsRequest, StudioOpsResponse, StudioOpsReceipt, StudioOpsImpact, StudioOpClass, StudioOpsDryRunReceipt, StudioOpsDryRunResponse, StudioReconcileResponseStudio productions
StudioGenerateRequest, StudioGenerateOptions, StudioGenerateResult, StudioGenerateEstimate, StudioGenerateResponse, StudioVideoLane, StudioDescribeRequest, StudioFrameRequest, StudioVoiceRequest, StudioRevoiceRequest, StudioMusicRequest, StudioMediaResponse, StudioJobStartedResponse, StudioCloneRequestStudio productions
StudioProductionCapabilities, StudioKeyframeRecord, StudioProductionRecord, StudioProductionReply, StudioEditInput, StudioKeyframeGenerationInput, StudioKeyframeAcceptanceInput, StudioShotGenerationInput, StudioGenerationReply, StudioDocumentJsonStudio productions
Shot, ShotMode, ShotEntityRef, CreateShotInput, UpdateShotInputStudio productions
CreateRecastInput, EstimateRecastInput, RecastEstimate, RecastRunSnapshot, ResolveRecastGateInput, RecastScriptValidation, RecastScriptValidationError, RecastScriptImportResultRecast
RecastAudioManifestV1, RecastAudioLayerName, RecastAudioMix, RecastAudioMixControl, RecastAudioSectionReplacement, RecastRescoreReplacement, RecastRescoreOperation, EstimateRecastRescoreInput, RecastRescoreRequestV2, RecastRescoreQuote, RecastRescoreResponseRecast
PipelineStageName, BranchPipelineInput, BranchPipelineResult, ChatTurn, ChatStageResult, ApplyChatProposalResultPipelines
CopilotThread, CopilotThreadWorkflow, CopilotSurface, CopilotRunMode, CopilotModelTier, CopilotMessage, CopilotMessagePart, CreateCopilotThreadInput, CopilotStreamOptions, CopilotStreamFrame and the frame data typesCopilot

Account and catalogs

ExportDocumented in
ModelSummary, ModelsListResult, ListModelsOptions, UserBalance, ModelCostsResultModels and credits
PickerCatalog, PickerCatalogSummary, PickerOption, PickerDimension, PickerCatalogSection, GetPickerCatalogOptionsPickers, presets and prompts
CatalogsListResponse, ProjectedCatalog, ProjectedCatalogOption, ProjectedCatalogDimension, ProjectedCatalogSectionPickers, presets and prompts
NodePreset, NodePresetGroup, FactoryPresetsResultPickers, presets and prompts
AnalyzeInput, AnalyzeResult, GenerateInput, EnhanceInput, PromptResult, WizardQuestion, WizardOption, WizardSelection, RecommendedModel, WizardNodeContextPickers, presets and prompts
OrganizationView, OrganizationSummary, OrgMemberView, OrgKind, OrgRole, OrgStatus, OrgSettings, OrgAuditEntry, OrgPage, OrgErrorCode, MemberStatus, CreateOrgInput, InviteInput, ListInvitationsOptionsOrganizations and workspaces
InvitationView, InvitationDelivery, InvitationPreview, InvitationState, JoinCodeViewOrganizations and workspaces
WorkspaceView, WorkspaceSummary, WorkspaceMemberView, WorkspaceRole, WorkspaceSettings, CreateWorkspaceInputOrganizations and workspaces
UsageQuery, UsageGroupBy, UsageReport, UsageReportRow, UsageReportTotals, UsageVarianceRow, UsageLogEntryOrganizations and workspaces
DeveloperApp, DeveloperAppScope, DeveloperAppStatus, DeveloperAppKind, CreateDeveloperAppInput, UpdateDeveloperAppInput, CreateDeveloperAppResult, RotateSecretResultOAuth and developer apps
ExchangeCodeInput, AccessTokenResponse, OAuthAppInfoOAuth and developer apps

Helper functions and constants

These are values, not types, so import them without type.

ExportWhat it is
nodeStateMayCarryOutput(status), OUTPUT_BEARING_NODE_STATUSESWhether a node state can carry output: completed and failed. See Jobs and executions.
isStudioGenerateEstimate(result)Tells a generation quote from a started run. See Studio productions.
unwrapEditPlanOutput(outputData)Reads an edit plan job's output as an EDL, a list of EDLs or chapters. See Editing.
throwFromResponse(status, body)Throws the error class that matches an API answer. See Errors.
PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEYThe node-data keys of pre and post text.
WORKSPACE_HEADERThe name of the workspace header, X-Nodaro-Workspace.
USAGE_GROUP_BYSThe groupings a usage report accepts.
LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, SURROUND_DIRECTIONSThe allowed location variant types, collections and surround directions.
OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, OBJECT_ASPECT_OPTIONS, OBJECT_ASPECT_DEFAULTSThe allowed object variant types, collections and aspect ratios.
CREATURE_ASSET_TYPES, CREATURE_ATTACH_COLUMNS, CREATURE_ASPECT_OPTIONS, CREATURE_ASPECT_DEFAULTSThe same lists for creatures.
CHARACTER_STYLES, CHARACTER_ASPECT_OPTIONS, CHARACTER_ASPECT_DEFAULTSThe character styles and aspect ratios.
SCENE3D_DELIVERY_ASSET_USAGEThe allowed pairs of delivery file kind and usage.

Every resource class, such as WorkflowsResource or NodesResource, is exported too, for advanced typing. You rarely need them: createClient builds every resource for you.

Frequently asked questions

Last updated on

On this page