@nodetool-ai/protocol 0.7.0-rc.23 → 0.8.1
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/README.md +56 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/ai-video-production.d.ts +249 -0
- package/dist/ai-video-production.d.ts.map +1 -0
- package/dist/ai-video-production.js +131 -0
- package/dist/ai-video-production.js.map +1 -0
- package/dist/api-schemas/agent-access.d.ts +134 -0
- package/dist/api-schemas/agent-access.d.ts.map +1 -0
- package/dist/api-schemas/agent-access.js +93 -0
- package/dist/api-schemas/agent-access.js.map +1 -0
- package/dist/api-schemas/api-error-code.d.ts +11 -1
- package/dist/api-schemas/api-error-code.d.ts.map +1 -1
- package/dist/api-schemas/api-error-code.js +10 -0
- package/dist/api-schemas/api-error-code.js.map +1 -1
- package/dist/api-schemas/applications.d.ts +1411 -0
- package/dist/api-schemas/applications.d.ts.map +1 -0
- package/dist/api-schemas/applications.js +333 -0
- package/dist/api-schemas/applications.js.map +1 -0
- package/dist/api-schemas/assets.d.ts +230 -0
- package/dist/api-schemas/assets.d.ts.map +1 -1
- package/dist/api-schemas/assets.js +131 -5
- package/dist/api-schemas/assets.js.map +1 -1
- package/dist/api-schemas/code-gen.d.ts +176 -0
- package/dist/api-schemas/code-gen.d.ts.map +1 -0
- package/dist/api-schemas/code-gen.js +205 -0
- package/dist/api-schemas/code-gen.js.map +1 -0
- package/dist/api-schemas/collections.d.ts.map +1 -1
- package/dist/api-schemas/collections.js +3 -4
- package/dist/api-schemas/collections.js.map +1 -1
- package/dist/api-schemas/costs.d.ts +179 -0
- package/dist/api-schemas/costs.d.ts.map +1 -1
- package/dist/api-schemas/costs.js +100 -4
- package/dist/api-schemas/costs.js.map +1 -1
- package/dist/api-schemas/credits.d.ts +42 -0
- package/dist/api-schemas/credits.d.ts.map +1 -0
- package/dist/api-schemas/credits.js +43 -0
- package/dist/api-schemas/credits.js.map +1 -0
- package/dist/api-schemas/documents.d.ts +163 -0
- package/dist/api-schemas/documents.d.ts.map +1 -0
- package/dist/api-schemas/documents.js +75 -0
- package/dist/api-schemas/documents.js.map +1 -0
- package/dist/api-schemas/files.d.ts +13 -0
- package/dist/api-schemas/files.d.ts.map +1 -1
- package/dist/api-schemas/files.js +8 -0
- package/dist/api-schemas/files.js.map +1 -1
- package/dist/api-schemas/fonts.d.ts +17 -1
- package/dist/api-schemas/fonts.d.ts.map +1 -1
- package/dist/api-schemas/fonts.js +19 -3
- package/dist/api-schemas/fonts.js.map +1 -1
- package/dist/api-schemas/index.d.ts +23 -1
- package/dist/api-schemas/index.d.ts.map +1 -1
- package/dist/api-schemas/index.js +23 -1
- package/dist/api-schemas/index.js.map +1 -1
- package/dist/api-schemas/jobs.d.ts +12 -0
- package/dist/api-schemas/jobs.d.ts.map +1 -1
- package/dist/api-schemas/jobs.js +12 -2
- package/dist/api-schemas/jobs.js.map +1 -1
- package/dist/api-schemas/js-scripts.d.ts +364 -0
- package/dist/api-schemas/js-scripts.d.ts.map +1 -0
- package/dist/api-schemas/js-scripts.js +333 -0
- package/dist/api-schemas/js-scripts.js.map +1 -0
- package/dist/api-schemas/mcp-config.d.ts.map +1 -1
- package/dist/api-schemas/mcp-config.js +3 -1
- package/dist/api-schemas/mcp-config.js.map +1 -1
- package/dist/api-schemas/memories.d.ts +84 -0
- package/dist/api-schemas/memories.d.ts.map +1 -0
- package/dist/api-schemas/memories.js +54 -0
- package/dist/api-schemas/memories.js.map +1 -0
- package/dist/api-schemas/messages.d.ts +1 -0
- package/dist/api-schemas/messages.d.ts.map +1 -1
- package/dist/api-schemas/messages.js +4 -4
- package/dist/api-schemas/messages.js.map +1 -1
- package/dist/api-schemas/models.d.ts +156 -0
- package/dist/api-schemas/models.d.ts.map +1 -1
- package/dist/api-schemas/models.js +51 -6
- package/dist/api-schemas/models.js.map +1 -1
- package/dist/api-schemas/nodes.d.ts +97 -0
- package/dist/api-schemas/nodes.d.ts.map +1 -1
- package/dist/api-schemas/nodes.js +89 -0
- package/dist/api-schemas/nodes.js.map +1 -1
- package/dist/api-schemas/projects.d.ts +427 -0
- package/dist/api-schemas/projects.d.ts.map +1 -0
- package/dist/api-schemas/projects.js +224 -0
- package/dist/api-schemas/projects.js.map +1 -0
- package/dist/api-schemas/recipes.d.ts +172 -0
- package/dist/api-schemas/recipes.d.ts.map +1 -0
- package/dist/api-schemas/recipes.js +144 -0
- package/dist/api-schemas/recipes.js.map +1 -0
- package/dist/api-schemas/resources.d.ts +112 -0
- package/dist/api-schemas/resources.d.ts.map +1 -0
- package/dist/api-schemas/resources.js +44 -0
- package/dist/api-schemas/resources.js.map +1 -0
- package/dist/api-schemas/scripts.d.ts +1571 -0
- package/dist/api-schemas/scripts.d.ts.map +1 -0
- package/dist/api-schemas/scripts.js +153 -0
- package/dist/api-schemas/scripts.js.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts +467 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.js +115 -0
- package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
- package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
- package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-models-v1.js +108 -0
- package/dist/api-schemas/sdk-models-v1.js.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
- package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.js +97 -0
- package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1.d.ts +15 -0
- package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1.js +22 -0
- package/dist/api-schemas/sdk-v1.js.map +1 -0
- package/dist/api-schemas/segmentation.d.ts +75 -0
- package/dist/api-schemas/segmentation.d.ts.map +1 -0
- package/dist/api-schemas/segmentation.js +54 -0
- package/dist/api-schemas/segmentation.js.map +1 -0
- package/dist/api-schemas/settings.d.ts +159 -0
- package/dist/api-schemas/settings.d.ts.map +1 -1
- package/dist/api-schemas/settings.js +70 -0
- package/dist/api-schemas/settings.js.map +1 -1
- package/dist/api-schemas/sketch.d.ts +847 -0
- package/dist/api-schemas/sketch.d.ts.map +1 -0
- package/dist/api-schemas/sketch.js +544 -0
- package/dist/api-schemas/sketch.js.map +1 -0
- package/dist/api-schemas/skills.d.ts +27 -14
- package/dist/api-schemas/skills.d.ts.map +1 -1
- package/dist/api-schemas/skills.js +64 -11
- package/dist/api-schemas/skills.js.map +1 -1
- package/dist/api-schemas/storage.d.ts +8 -0
- package/dist/api-schemas/storage.d.ts.map +1 -1
- package/dist/api-schemas/storage.js +7 -0
- package/dist/api-schemas/storage.js.map +1 -1
- package/dist/api-schemas/storyboards.d.ts +7026 -0
- package/dist/api-schemas/storyboards.d.ts.map +1 -0
- package/dist/api-schemas/storyboards.js +393 -0
- package/dist/api-schemas/storyboards.js.map +1 -0
- package/dist/api-schemas/threads.d.ts +12 -4
- package/dist/api-schemas/threads.d.ts.map +1 -1
- package/dist/api-schemas/threads.js +12 -4
- package/dist/api-schemas/threads.js.map +1 -1
- package/dist/api-schemas/timeline-tool-contracts.d.ts +1650 -0
- package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-contracts.js +725 -0
- package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
- package/dist/api-schemas/timeline-tool-params.d.ts +1237 -0
- package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-params.js +1518 -0
- package/dist/api-schemas/timeline-tool-params.js.map +1 -0
- package/dist/api-schemas/timeline.d.ts +12803 -0
- package/dist/api-schemas/timeline.d.ts.map +1 -0
- package/dist/api-schemas/timeline.js +1838 -0
- package/dist/api-schemas/timeline.js.map +1 -0
- package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
- package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
- package/dist/api-schemas/ui-tool-contract.js +31 -0
- package/dist/api-schemas/ui-tool-contract.js.map +1 -0
- package/dist/api-schemas/workflows.d.ts +852 -18
- package/dist/api-schemas/workflows.d.ts.map +1 -1
- package/dist/api-schemas/workflows.js +484 -6
- package/dist/api-schemas/workflows.js.map +1 -1
- package/dist/api-schemas/workspace.d.ts +45 -0
- package/dist/api-schemas/workspace.d.ts.map +1 -1
- package/dist/api-schemas/workspace.js +47 -1
- package/dist/api-schemas/workspace.js.map +1 -1
- package/dist/api-types.d.ts +621 -27
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +246 -1
- package/dist/api-types.js.map +1 -1
- package/dist/app-deployment.d.ts +37 -0
- package/dist/app-deployment.d.ts.map +1 -0
- package/dist/app-deployment.js +42 -0
- package/dist/app-deployment.js.map +1 -0
- package/dist/asset-generation.d.ts +58 -0
- package/dist/asset-generation.d.ts.map +1 -0
- package/dist/asset-generation.js +147 -0
- package/dist/asset-generation.js.map +1 -0
- package/dist/blend-modes.d.ts +20 -0
- package/dist/blend-modes.d.ts.map +1 -0
- package/dist/blend-modes.js +33 -0
- package/dist/blend-modes.js.map +1 -0
- package/dist/bridge-frames.d.ts +654 -0
- package/dist/bridge-frames.d.ts.map +1 -0
- package/dist/bridge-frames.js +448 -0
- package/dist/bridge-frames.js.map +1 -0
- package/dist/bridge-frames.schema.json +862 -0
- package/dist/bridge-protocol.d.ts +57 -20
- package/dist/bridge-protocol.d.ts.map +1 -1
- package/dist/bridge-protocol.js +57 -20
- package/dist/bridge-protocol.js.map +1 -1
- package/dist/builtin-packs.d.ts +45 -0
- package/dist/builtin-packs.d.ts.map +1 -0
- package/dist/builtin-packs.js +115 -0
- package/dist/builtin-packs.js.map +1 -0
- package/dist/caption-word.d.ts +15 -0
- package/dist/caption-word.d.ts.map +1 -0
- package/dist/caption-word.js +10 -0
- package/dist/caption-word.js.map +1 -0
- package/dist/cloud-profile.d.ts +187 -0
- package/dist/cloud-profile.d.ts.map +1 -0
- package/dist/cloud-profile.js +281 -0
- package/dist/cloud-profile.js.map +1 -0
- package/dist/creative.d.ts +486 -0
- package/dist/creative.d.ts.map +1 -0
- package/dist/creative.js +269 -0
- package/dist/creative.js.map +1 -0
- package/dist/custom-providers.d.ts +70 -0
- package/dist/custom-providers.d.ts.map +1 -0
- package/dist/custom-providers.js +125 -0
- package/dist/custom-providers.js.map +1 -0
- package/dist/document-ops.d.ts +15 -0
- package/dist/document-ops.d.ts.map +1 -0
- package/dist/document-ops.js +2 -0
- package/dist/document-ops.js.map +1 -0
- package/dist/game-assets.d.ts +344 -0
- package/dist/game-assets.d.ts.map +1 -0
- package/dist/game-assets.js +297 -0
- package/dist/game-assets.js.map +1 -0
- package/dist/game-design.d.ts +90 -0
- package/dist/game-design.d.ts.map +1 -0
- package/dist/game-design.js +417 -0
- package/dist/game-design.js.map +1 -0
- package/dist/game-flow-prompt.d.ts +68 -0
- package/dist/game-flow-prompt.d.ts.map +1 -0
- package/dist/game-flow-prompt.js +121 -0
- package/dist/game-flow-prompt.js.map +1 -0
- package/dist/game-graph.d.ts +96 -0
- package/dist/game-graph.d.ts.map +1 -0
- package/dist/game-graph.js +481 -0
- package/dist/game-graph.js.map +1 -0
- package/dist/game-migration.d.ts +4 -0
- package/dist/game-migration.d.ts.map +1 -0
- package/dist/game-migration.js +6 -0
- package/dist/game-migration.js.map +1 -0
- package/dist/game-slot-prompt.d.ts +90 -0
- package/dist/game-slot-prompt.d.ts.map +1 -0
- package/dist/game-slot-prompt.js +237 -0
- package/dist/game-slot-prompt.js.map +1 -0
- package/dist/game.d.ts +1663 -0
- package/dist/game.d.ts.map +1 -0
- package/dist/game.js +228 -0
- package/dist/game.js.map +1 -0
- package/dist/graph.d.ts +191 -5
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +497 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +47 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/dist/loop.d.ts +38 -0
- package/dist/loop.d.ts.map +1 -0
- package/dist/loop.js +69 -0
- package/dist/loop.js.map +1 -0
- package/dist/mcp-server-config.d.ts +113 -0
- package/dist/mcp-server-config.d.ts.map +1 -0
- package/dist/mcp-server-config.js +147 -0
- package/dist/mcp-server-config.js.map +1 -0
- package/dist/messages.d.ts +1565 -243
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +709 -22
- package/dist/messages.js.map +1 -1
- package/dist/model-selection.d.ts +20 -0
- package/dist/model-selection.d.ts.map +1 -0
- package/dist/model-selection.js +27 -0
- package/dist/model-selection.js.map +1 -0
- package/dist/nodetool-models.d.ts +71 -0
- package/dist/nodetool-models.d.ts.map +1 -0
- package/dist/nodetool-models.js +138 -0
- package/dist/nodetool-models.js.map +1 -0
- package/dist/package-assets.d.ts +39 -0
- package/dist/package-assets.d.ts.map +1 -0
- package/dist/package-assets.js +63 -0
- package/dist/package-assets.js.map +1 -0
- package/dist/platform.d.ts +66 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +68 -0
- package/dist/platform.js.map +1 -0
- package/dist/predicates.d.ts +43 -0
- package/dist/predicates.d.ts.map +1 -0
- package/dist/predicates.js +65 -0
- package/dist/predicates.js.map +1 -0
- package/dist/processing-messages.schema.json +2525 -0
- package/dist/production-authoring.d.ts +757 -0
- package/dist/production-authoring.d.ts.map +1 -0
- package/dist/production-authoring.js +736 -0
- package/dist/production-authoring.js.map +1 -0
- package/dist/render-record.d.ts +86 -0
- package/dist/render-record.d.ts.map +1 -0
- package/dist/render-record.js +133 -0
- package/dist/render-record.js.map +1 -0
- package/dist/resource-id.d.ts +22 -0
- package/dist/resource-id.d.ts.map +1 -0
- package/dist/resource-id.js +32 -0
- package/dist/resource-id.js.map +1 -0
- package/dist/resource-uri.d.ts +15 -0
- package/dist/resource-uri.d.ts.map +1 -0
- package/dist/resource-uri.js +88 -0
- package/dist/resource-uri.js.map +1 -0
- package/dist/sandbox-capability.d.ts +86 -0
- package/dist/sandbox-capability.d.ts.map +1 -0
- package/dist/sandbox-capability.js +106 -0
- package/dist/sandbox-capability.js.map +1 -0
- package/dist/sandbox-host.d.ts +98 -0
- package/dist/sandbox-host.d.ts.map +1 -0
- package/dist/sandbox-host.js +311 -0
- package/dist/sandbox-host.js.map +1 -0
- package/dist/sandbox-package.d.ts +674 -0
- package/dist/sandbox-package.d.ts.map +1 -0
- package/dist/sandbox-package.js +622 -0
- package/dist/sandbox-package.js.map +1 -0
- package/dist/sandbox-wasm.d.ts +84 -0
- package/dist/sandbox-wasm.d.ts.map +1 -0
- package/dist/sandbox-wasm.js +139 -0
- package/dist/sandbox-wasm.js.map +1 -0
- package/dist/screenplay-authoring.d.ts +69 -0
- package/dist/screenplay-authoring.d.ts.map +1 -0
- package/dist/screenplay-authoring.js +351 -0
- package/dist/screenplay-authoring.js.map +1 -0
- package/dist/script-authoring.d.ts +161 -0
- package/dist/script-authoring.d.ts.map +1 -0
- package/dist/script-authoring.js +503 -0
- package/dist/script-authoring.js.map +1 -0
- package/dist/script-fill.d.ts +39 -0
- package/dist/script-fill.d.ts.map +1 -0
- package/dist/script-fill.js +67 -0
- package/dist/script-fill.js.map +1 -0
- package/dist/script-link.d.ts +110 -0
- package/dist/script-link.d.ts.map +1 -0
- package/dist/script-link.js +252 -0
- package/dist/script-link.js.map +1 -0
- package/dist/sha256.d.ts +11 -0
- package/dist/sha256.d.ts.map +1 -0
- package/dist/sha256.js +110 -0
- package/dist/sha256.js.map +1 -0
- package/dist/shot-prompt.d.ts +78 -0
- package/dist/shot-prompt.d.ts.map +1 -0
- package/dist/shot-prompt.js +120 -0
- package/dist/shot-prompt.js.map +1 -0
- package/dist/skill-document.d.ts +36 -0
- package/dist/skill-document.d.ts.map +1 -0
- package/dist/skill-document.js +137 -0
- package/dist/skill-document.js.map +1 -0
- package/dist/style-presets.d.ts +73 -0
- package/dist/style-presets.d.ts.map +1 -0
- package/dist/style-presets.js +147 -0
- package/dist/style-presets.js.map +1 -0
- package/dist/supervisor.d.ts +227 -0
- package/dist/supervisor.d.ts.map +1 -0
- package/dist/supervisor.js +116 -0
- package/dist/supervisor.js.map +1 -0
- package/dist/token-providers.d.ts +31 -0
- package/dist/token-providers.d.ts.map +1 -0
- package/dist/token-providers.js +52 -0
- package/dist/token-providers.js.map +1 -0
- package/dist/toolSchemas.d.ts +10 -14
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +13 -23
- package/dist/toolSchemas.js.map +1 -1
- package/dist/triggers.d.ts +41 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +50 -0
- package/dist/triggers.js.map +1 -0
- package/dist/trpc-policy.d.ts +3 -0
- package/dist/trpc-policy.d.ts.map +1 -0
- package/dist/trpc-policy.js +3 -0
- package/dist/trpc-policy.js.map +1 -0
- package/dist/type-metadata.d.ts +5 -0
- package/dist/type-metadata.d.ts.map +1 -1
- package/dist/type-metadata.js +17 -8
- package/dist/type-metadata.js.map +1 -1
- package/dist/typecheck.d.ts.map +1 -1
- package/dist/typecheck.js +5 -4
- package/dist/typecheck.js.map +1 -1
- package/dist/wasm-binary.d.ts +61 -0
- package/dist/wasm-binary.d.ts.map +1 -0
- package/dist/wasm-binary.js +215 -0
- package/dist/wasm-binary.js.map +1 -0
- package/dist/workflow-plan.d.ts +197 -0
- package/dist/workflow-plan.d.ts.map +1 -0
- package/dist/workflow-plan.js +438 -0
- package/dist/workflow-plan.js.map +1 -0
- package/dist/wrap-primitives.d.ts +0 -11
- package/dist/wrap-primitives.d.ts.map +1 -1
- package/dist/wrap-primitives.js +3 -9
- package/dist/wrap-primitives.js.map +1 -1
- package/dist/ws-commands.d.ts +665 -0
- package/dist/ws-commands.d.ts.map +1 -0
- package/dist/ws-commands.js +610 -0
- package/dist/ws-commands.js.map +1 -0
- package/dist/zod-schema.d.ts +20 -0
- package/dist/zod-schema.d.ts.map +1 -0
- package/dist/zod-schema.js +298 -0
- package/dist/zod-schema.js.map +1 -0
- package/package.json +84 -7
- package/schema/sdk-v1.asyncapi.implemented.json +65 -0
- package/schema/sdk-v1.asyncapi.json +65 -0
- package/schema/sdk-v1.discovery.schema.json +1218 -0
- package/schema/sdk-v1.execution.schema.json +2792 -0
- package/schema/sdk-v1.lifecycle.schema.json +1031 -0
- package/schema/sdk-v1.manifest.json +71 -0
- package/schema/sdk-v1.openapi.implemented.json +730 -0
- package/schema/sdk-v1.openapi.json +730 -0
- package/schema/sdk-v1.operations.json +732 -0
- package/dist/agent-protocol.d.ts +0 -217
- package/dist/agent-protocol.d.ts.map +0 -1
- package/dist/agent-protocol.js +0 -85
- package/dist/agent-protocol.js.map +0 -1
package/dist/api-types.d.ts
CHANGED
|
@@ -5,7 +5,39 @@
|
|
|
5
5
|
* These mirror the database models but are transport-only (no class methods).
|
|
6
6
|
* Used by both the backend HTTP handlers and the frontend stores.
|
|
7
7
|
*/
|
|
8
|
-
import type { Edge } from "./graph.js";
|
|
8
|
+
import type { Edge, InputMode, OutputCorrelation } from "./graph.js";
|
|
9
|
+
import type { NodeEffect } from "./platform.js";
|
|
10
|
+
/**
|
|
11
|
+
* Discriminator `mimeType` marking an {@link ImageRef} whose `data` holds raw,
|
|
12
|
+
* straight-alpha RGBA8 pixels (`length === width * height * 4`) rather than an
|
|
13
|
+
* encoded image. GPU image ops emit this so an adjacent GPU op can skip the
|
|
14
|
+
* codec; it's the in-flight format, lazily encoded to a real image at any
|
|
15
|
+
* boundary that needs portable bytes (client, storage, file save, Python
|
|
16
|
+
* bridge). Code that reads `data` must go through the shared decode/encode
|
|
17
|
+
* helpers, never assume it is already PNG.
|
|
18
|
+
*/
|
|
19
|
+
export declare const RAW_RGBA_MIME = "image/x-raw-rgba";
|
|
20
|
+
/**
|
|
21
|
+
* In-flight GPU-texture image (browser only). `texture` holds a live
|
|
22
|
+
* `GPUTexture` (typed `unknown` here so protocol stays WebGPU-free). It exists
|
|
23
|
+
* only inside the in-browser runner for the duration of one run — it is never
|
|
24
|
+
* serialized: a `GPUTexture` can't cross `postMessage`, reach the server, or
|
|
25
|
+
* persist. It MUST be resolved to a CPU backing (raw-RGBA / encoded) at every
|
|
26
|
+
* boundary (see the runner's transport resolve step). Lets chained shader nodes
|
|
27
|
+
* keep the image on the GPU instead of reading back / re-uploading per hop.
|
|
28
|
+
*/
|
|
29
|
+
export declare const GPU_TEXTURE_MIME = "image/x-gpu-texture";
|
|
30
|
+
/**
|
|
31
|
+
* Preview-bitmap image (browser only). `bitmap` holds a decoded `ImageBitmap`
|
|
32
|
+
* (typed `unknown` here so protocol stays DOM-free). The in-browser runner's
|
|
33
|
+
* worker emits this as its transport format for GPU/raw image outputs: an
|
|
34
|
+
* `ImageBitmap` is transferable across `postMessage` (zero-copy) and paints
|
|
35
|
+
* straight onto a canvas, so the live preview skips the PNG encode → base64 →
|
|
36
|
+
* `<img>` decode round-trip entirely. Like the other in-flight formats it never
|
|
37
|
+
* reaches the server or persists; boundaries that need portable bytes derive
|
|
38
|
+
* them from the bitmap via the shared image codec helpers.
|
|
39
|
+
*/
|
|
40
|
+
export declare const BITMAP_IMAGE_MIME = "image/x-imagebitmap";
|
|
9
41
|
export interface ImageRef {
|
|
10
42
|
type: "image";
|
|
11
43
|
uri?: string;
|
|
@@ -16,7 +48,56 @@ export interface ImageRef {
|
|
|
16
48
|
mimeType?: string;
|
|
17
49
|
width?: number;
|
|
18
50
|
height?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Live `GPUTexture` for the {@link GPU_TEXTURE_MIME} in-flight backing
|
|
53
|
+
* (browser, single run, never serialized). Typed `unknown` to keep protocol
|
|
54
|
+
* WebGPU-free.
|
|
55
|
+
*/
|
|
56
|
+
texture?: unknown;
|
|
57
|
+
/**
|
|
58
|
+
* Decoded `ImageBitmap` for the {@link BITMAP_IMAGE_MIME} backing (browser
|
|
59
|
+
* only, never serialized). Typed `unknown` to keep protocol DOM-free.
|
|
60
|
+
*/
|
|
61
|
+
bitmap?: unknown;
|
|
62
|
+
/**
|
|
63
|
+
* Monotonic per-bitmap counter. Two distinct `ImageBitmap`s are
|
|
64
|
+
* indistinguishable to structural equality (no enumerable own properties), so
|
|
65
|
+
* memoized consumers compare this to detect a new frame.
|
|
66
|
+
*/
|
|
67
|
+
bitmapVersion?: number;
|
|
19
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* True when `value` is an in-flight raw-RGBA image (see {@link RAW_RGBA_MIME}):
|
|
71
|
+
* `data` is a `Uint8Array` of `width * height * 4` straight-alpha bytes.
|
|
72
|
+
*/
|
|
73
|
+
export declare function isRawRgbaImage(value: unknown): value is ImageRef & {
|
|
74
|
+
data: Uint8Array;
|
|
75
|
+
width: number;
|
|
76
|
+
height: number;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* True when `value` is an in-flight GPU-texture image (see
|
|
80
|
+
* {@link GPU_TEXTURE_MIME}): a live `GPUTexture` plus its dimensions. Only ever
|
|
81
|
+
* valid inside the in-browser runner; callers at a serialize/CPU boundary must
|
|
82
|
+
* resolve it to bytes first.
|
|
83
|
+
*/
|
|
84
|
+
export declare function isGpuTextureImage(value: unknown): value is ImageRef & {
|
|
85
|
+
texture: object;
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* True when `value` is a preview-bitmap image (see {@link BITMAP_IMAGE_MIME}):
|
|
91
|
+
* a live `ImageBitmap` plus its dimensions. Structural check only (no
|
|
92
|
+
* `instanceof ImageBitmap`) so it works in DOM-free environments and tests.
|
|
93
|
+
*/
|
|
94
|
+
export declare function isBitmapImage(value: unknown): value is ImageRef & {
|
|
95
|
+
bitmap: object;
|
|
96
|
+
width: number;
|
|
97
|
+
height: number;
|
|
98
|
+
};
|
|
99
|
+
/** True when `value` is any in-flight image (raw-RGBA CPU buffer, GPU texture, or preview bitmap). */
|
|
100
|
+
export declare function isInFlightImage(value: unknown): boolean;
|
|
20
101
|
export interface AudioRef {
|
|
21
102
|
type: "audio";
|
|
22
103
|
uri?: string;
|
|
@@ -86,6 +167,56 @@ export interface AssetRef {
|
|
|
86
167
|
data?: unknown;
|
|
87
168
|
metadata?: Record<string, unknown> | null;
|
|
88
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Reference to a persisted sketch (image document), editable in the
|
|
172
|
+
* sketch editor and passable between workflow nodes.
|
|
173
|
+
*/
|
|
174
|
+
export interface SketchRef {
|
|
175
|
+
type: "sketch";
|
|
176
|
+
/** Id of the persisted image document holding the sketch. */
|
|
177
|
+
id?: string | null;
|
|
178
|
+
/** Optional inline sketch document payload. */
|
|
179
|
+
data?: unknown;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Reference to a persisted timeline sequence, editable in the
|
|
183
|
+
* timeline editor and passable between workflow nodes.
|
|
184
|
+
*/
|
|
185
|
+
export interface TimelineRef {
|
|
186
|
+
type: "timeline";
|
|
187
|
+
/** Id of the persisted timeline sequence. */
|
|
188
|
+
id?: string | null;
|
|
189
|
+
/** Optional inline timeline document payload. */
|
|
190
|
+
data?: unknown;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Reference to a persisted script (text-owns-audio document), editable in the
|
|
194
|
+
* script editor and passable between workflow nodes.
|
|
195
|
+
*/
|
|
196
|
+
export interface ScriptRef {
|
|
197
|
+
type: "script";
|
|
198
|
+
/** Id of the persisted script. */
|
|
199
|
+
id?: string | null;
|
|
200
|
+
/** Optional inline script document payload. */
|
|
201
|
+
data?: unknown;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Reference to a persisted storyboard, editable in the board editor and
|
|
205
|
+
* passable between workflow nodes. Mirrors ScriptRef / TimelineRef.
|
|
206
|
+
*/
|
|
207
|
+
export interface StoryboardRef {
|
|
208
|
+
type: "storyboard";
|
|
209
|
+
/** Id of the persisted storyboard. */
|
|
210
|
+
id?: string | null;
|
|
211
|
+
/** Optional inline StoryboardDocument, for tests and the debug harness. */
|
|
212
|
+
data?: unknown;
|
|
213
|
+
/**
|
|
214
|
+
* Set only by a node that created or derived the row in this run. A ref from
|
|
215
|
+
* the picker or from LoadStoryboard never carries it, so a batch cannot
|
|
216
|
+
* write the board a person approved.
|
|
217
|
+
*/
|
|
218
|
+
writable?: boolean;
|
|
219
|
+
}
|
|
89
220
|
export interface WorkflowRef {
|
|
90
221
|
type: "workflow_ref";
|
|
91
222
|
id: string;
|
|
@@ -176,21 +307,39 @@ export interface CalendarEvent {
|
|
|
176
307
|
export interface Asset {
|
|
177
308
|
id: string;
|
|
178
309
|
user_id: string;
|
|
179
|
-
parent_id: string;
|
|
310
|
+
parent_id: string | null;
|
|
180
311
|
name: string;
|
|
181
312
|
content_type: string;
|
|
182
313
|
size?: number | null;
|
|
183
314
|
duration?: number | null;
|
|
184
315
|
metadata?: Record<string, unknown> | null;
|
|
316
|
+
/** Sketch document that backs this image asset, if any. */
|
|
317
|
+
sketch_document_id?: string | null;
|
|
185
318
|
workflow_id: string | null;
|
|
186
319
|
node_id?: string | null;
|
|
187
320
|
job_id?: string | null;
|
|
321
|
+
/** Source timeline a video was rendered from, if any. */
|
|
322
|
+
timeline_id?: string | null;
|
|
323
|
+
/** The project the asset belongs to; `"default"` for none. */
|
|
324
|
+
project_id?: string;
|
|
188
325
|
created_at: string;
|
|
189
326
|
/** URL to download/access the asset (computed by API) */
|
|
190
327
|
get_url: string | null;
|
|
191
328
|
/** URL for thumbnail image (computed by API) */
|
|
192
329
|
thumb_url: string | null;
|
|
193
330
|
etag?: string | null;
|
|
331
|
+
/**
|
|
332
|
+
* Set only on an asset that references a local file in place: true when
|
|
333
|
+
* that file is missing or changed since import or relink.
|
|
334
|
+
*/
|
|
335
|
+
offline?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Set only on a video asset on a local server: the state of its all-intra
|
|
338
|
+
* preview proxy.
|
|
339
|
+
*/
|
|
340
|
+
proxy_status?: "none" | "queued" | "running" | "ready" | "failed";
|
|
341
|
+
/** The preview proxy's URL while `proxy_status` is `ready`. Preview only. */
|
|
342
|
+
proxy_url?: string | null;
|
|
194
343
|
}
|
|
195
344
|
export interface AssetList {
|
|
196
345
|
next: string | null;
|
|
@@ -208,6 +357,7 @@ export interface WorkflowGraph {
|
|
|
208
357
|
export interface Workflow {
|
|
209
358
|
id: string;
|
|
210
359
|
user_id?: string;
|
|
360
|
+
project_id?: string;
|
|
211
361
|
name: string;
|
|
212
362
|
tool_name?: string | null;
|
|
213
363
|
description: string;
|
|
@@ -217,7 +367,12 @@ export interface Workflow {
|
|
|
217
367
|
graph: WorkflowGraph;
|
|
218
368
|
input_schema?: Record<string, unknown> | null;
|
|
219
369
|
output_schema?: Record<string, unknown> | null;
|
|
220
|
-
|
|
370
|
+
/**
|
|
371
|
+
* Client-owned settings bag. Values nest: the guided creation flow keeps a
|
|
372
|
+
* `setup` record here (PRD § 11.5), and the zod schema and the models layer
|
|
373
|
+
* have always typed it `Record<string, unknown>`.
|
|
374
|
+
*/
|
|
375
|
+
settings?: Record<string, unknown> | null;
|
|
221
376
|
package_name?: string | null;
|
|
222
377
|
path?: string | null;
|
|
223
378
|
run_mode?: string | null;
|
|
@@ -225,6 +380,8 @@ export interface Workflow {
|
|
|
225
380
|
required_providers?: string[] | null;
|
|
226
381
|
required_models?: string[] | null;
|
|
227
382
|
html_app?: string | null;
|
|
383
|
+
/** App-builder document (Puck layout + bindings): `{ version, data }`. */
|
|
384
|
+
app_doc?: Record<string, unknown> | null;
|
|
228
385
|
receive_clipboard?: boolean | null;
|
|
229
386
|
access: string;
|
|
230
387
|
created_at: string;
|
|
@@ -237,6 +394,7 @@ export interface WorkflowList {
|
|
|
237
394
|
}
|
|
238
395
|
export interface WorkflowRequest {
|
|
239
396
|
name: string;
|
|
397
|
+
project_id?: string;
|
|
240
398
|
tool_name?: string | null;
|
|
241
399
|
package_name?: string | null;
|
|
242
400
|
path?: string | null;
|
|
@@ -244,10 +402,16 @@ export interface WorkflowRequest {
|
|
|
244
402
|
tags?: string[] | null;
|
|
245
403
|
access: string;
|
|
246
404
|
graph?: WorkflowGraph;
|
|
247
|
-
|
|
405
|
+
/**
|
|
406
|
+
* Client-owned settings bag. Values nest: the guided creation flow keeps a
|
|
407
|
+
* `setup` record here (PRD § 11.5), and the zod schema and the models layer
|
|
408
|
+
* have always typed it `Record<string, unknown>`.
|
|
409
|
+
*/
|
|
410
|
+
settings?: Record<string, unknown> | null;
|
|
248
411
|
run_mode?: string | null;
|
|
249
412
|
workspace_id?: string | null;
|
|
250
413
|
html_app?: string | null;
|
|
414
|
+
app_doc?: Record<string, unknown> | null;
|
|
251
415
|
thumbnail?: string | null;
|
|
252
416
|
thumbnail_url?: string | null;
|
|
253
417
|
receive_clipboard?: boolean | null;
|
|
@@ -264,6 +428,9 @@ export interface WorkflowToolList {
|
|
|
264
428
|
export interface Thread {
|
|
265
429
|
id: string;
|
|
266
430
|
user_id: string;
|
|
431
|
+
project_id?: string;
|
|
432
|
+
/** Workflow this conversation belongs to, or null for global chat. */
|
|
433
|
+
workflow_id?: string | null;
|
|
267
434
|
title: string | null;
|
|
268
435
|
created_at: string;
|
|
269
436
|
updated_at: string;
|
|
@@ -275,6 +442,8 @@ export interface ThreadList {
|
|
|
275
442
|
}
|
|
276
443
|
export interface ThreadCreateRequest {
|
|
277
444
|
title?: string;
|
|
445
|
+
workflow_id?: string | null;
|
|
446
|
+
project_id?: string;
|
|
278
447
|
}
|
|
279
448
|
export interface ThreadUpdateRequest {
|
|
280
449
|
title: string;
|
|
@@ -321,6 +490,12 @@ export interface ToolCall {
|
|
|
321
490
|
result?: unknown;
|
|
322
491
|
step_id?: string | null;
|
|
323
492
|
message?: string | null;
|
|
493
|
+
/**
|
|
494
|
+
* Gemini's encrypted reasoning state for the call. Gemini 3 rejects a
|
|
495
|
+
* request whose history replays a function call without it, so the value
|
|
496
|
+
* has to survive the trip through the database.
|
|
497
|
+
*/
|
|
498
|
+
thought_signature?: string | null;
|
|
324
499
|
}
|
|
325
500
|
/**
|
|
326
501
|
* Media-generation request metadata attached to chat messages.
|
|
@@ -330,7 +505,7 @@ export interface ToolCall {
|
|
|
330
505
|
* returned as MessageImageContent / MessageVideoContent in the assistant
|
|
331
506
|
* message and stored via the asset service.
|
|
332
507
|
*/
|
|
333
|
-
export type MediaGenerationMode = "chat" | "image" | "image_edit" | "video" | "image_to_video" | "audio" | "audio_to_video" | "retake" | "extend" | "motion_control";
|
|
508
|
+
export type MediaGenerationMode = "chat" | "image" | "image_edit" | "video" | "image_to_video" | "reference_to_video" | "audio" | "music" | "audio_to_video" | "retake" | "extend" | "motion_control";
|
|
334
509
|
export interface MediaGenerationRequest {
|
|
335
510
|
mode: MediaGenerationMode;
|
|
336
511
|
/** Provider id (e.g. "fal_ai", "openai", "replicate"). */
|
|
@@ -347,7 +522,7 @@ export interface MediaGenerationRequest {
|
|
|
347
522
|
resolution?: string | null;
|
|
348
523
|
/** Number of variations to generate (images). */
|
|
349
524
|
variations?: number | null;
|
|
350
|
-
/**
|
|
525
|
+
/** Requested duration in seconds (video or music). */
|
|
351
526
|
duration?: number | null;
|
|
352
527
|
/** Voice id for text-to-speech. */
|
|
353
528
|
voice?: string | null;
|
|
@@ -361,6 +536,12 @@ export interface MediaGenerationRequest {
|
|
|
361
536
|
num_inference_steps?: number | null;
|
|
362
537
|
/** Source image asset id (image_edit / image_to_video). */
|
|
363
538
|
source_asset_id?: string | null;
|
|
539
|
+
/**
|
|
540
|
+
* Keep the audio of the first reference *video* instead of whatever the
|
|
541
|
+
* model would synthesize (reference_to_video). Only some models take it;
|
|
542
|
+
* the provider rejects the request when the selected one does not.
|
|
543
|
+
*/
|
|
544
|
+
use_reference_video_audio?: boolean | null;
|
|
364
545
|
/** Extra provider-specific params. */
|
|
365
546
|
extras?: Record<string, unknown> | null;
|
|
366
547
|
}
|
|
@@ -383,21 +564,41 @@ export interface Message {
|
|
|
383
564
|
graph?: Record<string, unknown> | null;
|
|
384
565
|
tools?: string[] | null;
|
|
385
566
|
collections?: string[] | null;
|
|
386
|
-
agent_mode?: boolean | null;
|
|
387
567
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* - `"
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
|
|
568
|
+
* Permission mode for the chat turn. Governs whether the agent's tool calls
|
|
569
|
+
* run automatically, ask for approval, or are blocked:
|
|
570
|
+
* - `"plan"` — read-only; actionable tools are blocked.
|
|
571
|
+
* - `"default"` — read tools auto-run; actions require approval.
|
|
572
|
+
* - `"auto"` — routine work runs unattended; a code action declared high
|
|
573
|
+
* risk (deletes, publishes, spends) asks for approval once.
|
|
574
|
+
* Omitted defaults to `"default"`.
|
|
575
|
+
*/
|
|
576
|
+
permission_mode?: "plan" | "default" | "auto" | null;
|
|
577
|
+
/**
|
|
578
|
+
* The read-only `run_search` fan-out primitive — a `run_search` tool next to
|
|
579
|
+
* `run_subtask` whose child loop is restricted to read-only tools and cannot
|
|
580
|
+
* spawn further work. Enabled by default (omitted / `true`); send `false` to
|
|
581
|
+
* remove it from the toolbelt.
|
|
582
|
+
*/
|
|
583
|
+
enable_read_only_search?: boolean | null;
|
|
584
|
+
/**
|
|
585
|
+
* Context-specific system-prompt addendum supplied by the originating surface
|
|
586
|
+
* (e.g. the App Builder's build-an-app-UI guidance, an editor's assistant
|
|
587
|
+
* instructions). The server layers it after the base chat system prompt — it
|
|
588
|
+
* augments, never replaces. Omit for plain chat.
|
|
396
589
|
*/
|
|
397
|
-
|
|
398
|
-
help_mode?: boolean | null;
|
|
590
|
+
system_prompt?: string | null;
|
|
399
591
|
agent_execution_id?: string | null;
|
|
400
592
|
execution_event_type?: string | null;
|
|
593
|
+
/**
|
|
594
|
+
* The tool_call_id of the enclosing `run_subtask` / `run_search` call when
|
|
595
|
+
* this message was produced inside a sub-agent. Null at the chat root. The
|
|
596
|
+
* chat renders such messages inside the spawning call's card rather than in
|
|
597
|
+
* the main timeline.
|
|
598
|
+
*/
|
|
599
|
+
parent_tool_call_id?: string | null;
|
|
600
|
+
/** Sub-agent recursion depth: 0 at the chat root, 1 inside run_subtask. */
|
|
601
|
+
subtask_depth?: number | null;
|
|
401
602
|
workflow_target?: string | null;
|
|
402
603
|
created_at?: string | null;
|
|
403
604
|
/**
|
|
@@ -407,6 +608,51 @@ export interface Message {
|
|
|
407
608
|
* headers (model, variation count, resolution) alongside the output assets.
|
|
408
609
|
*/
|
|
409
610
|
media_generation?: MediaGenerationRequest | null;
|
|
611
|
+
/**
|
|
612
|
+
* What the user is looking at when they send the message. The server renders
|
|
613
|
+
* this into the system prompt so the agent knows which documents are open and
|
|
614
|
+
* which one has focus, and can pass their ids to the `ui_*` tools — every one
|
|
615
|
+
* of which requires an explicit document id rather than acting on whatever
|
|
616
|
+
* editor happens to be mounted.
|
|
617
|
+
*/
|
|
618
|
+
ui_context?: UiContext | null;
|
|
619
|
+
}
|
|
620
|
+
/** A document open in the workspace, addressable by the `ui_*` tools. */
|
|
621
|
+
export interface UiDocumentRef {
|
|
622
|
+
type: UiSurfaceType;
|
|
623
|
+
/**
|
|
624
|
+
* The document's id: `image_documents.id` for sketch, `timeline_sequences.id`
|
|
625
|
+
* for timeline, `storyboards.id`, `scripts.id`, `js_scripts.id` for
|
|
626
|
+
* `jsscript`, `workflows.id` for `workflow`, and `applications.id` for
|
|
627
|
+
* `app`.
|
|
628
|
+
*/
|
|
629
|
+
id: string;
|
|
630
|
+
title?: string | null;
|
|
631
|
+
}
|
|
632
|
+
export type UiSurfaceType = "workflow" | "sketch" | "timeline" | "game" | "storyboard" | "script" | "jsscript" | "app" | "chat";
|
|
633
|
+
/**
|
|
634
|
+
* Chat surface that sent a turn. Distinct from {@link UiContext.focused}: the
|
|
635
|
+
* user can have a sketch tab focused and still send from workspace chat.
|
|
636
|
+
*/
|
|
637
|
+
export type ChatSource = "workspace_chat" | "workflow_canvas" | "sketch_assistant" | "timeline_assistant" | "game_assistant" | "storyboard_assistant" | "script_assistant" | "jsscript_assistant" | "app_builder" | "code_assistant" | "text_editor" | "model3d_assistant";
|
|
638
|
+
export interface UiContext {
|
|
639
|
+
/** The surface the user is currently looking at. */
|
|
640
|
+
focused?: UiDocumentRef | null;
|
|
641
|
+
/** Every document open in the workspace, including the focused one. */
|
|
642
|
+
open?: UiDocumentRef[] | null;
|
|
643
|
+
/** What is selected inside the focused document, when anything is. */
|
|
644
|
+
selection?: {
|
|
645
|
+
node_ids?: string[] | null;
|
|
646
|
+
clip_ids?: string[] | null;
|
|
647
|
+
layer_ids?: string[] | null;
|
|
648
|
+
shot_ids?: string[] | null;
|
|
649
|
+
line_ids?: string[] | null;
|
|
650
|
+
component_ids?: string[] | null;
|
|
651
|
+
entity_ids?: string[] | null;
|
|
652
|
+
behavior_index?: number | null;
|
|
653
|
+
} | null;
|
|
654
|
+
/** Chat surface the user typed in. The server names it in the system prompt. */
|
|
655
|
+
source?: ChatSource | null;
|
|
410
656
|
}
|
|
411
657
|
export interface MessageCreateRequest {
|
|
412
658
|
role?: string;
|
|
@@ -442,26 +688,92 @@ export interface OutputSlot {
|
|
|
442
688
|
name: string;
|
|
443
689
|
stream: boolean;
|
|
444
690
|
}
|
|
691
|
+
/** FAL.ai list price on generated FAL nodes (API / index JSON uses snake_case). */
|
|
692
|
+
export interface FalUnitPricing {
|
|
693
|
+
endpoint_id: string;
|
|
694
|
+
unit_price: number;
|
|
695
|
+
billing_unit: string;
|
|
696
|
+
currency: string;
|
|
697
|
+
}
|
|
445
698
|
export interface NodeMetadata {
|
|
446
699
|
title: string;
|
|
447
700
|
description: string;
|
|
448
701
|
namespace: string;
|
|
449
702
|
node_type: string;
|
|
450
703
|
layout: string;
|
|
704
|
+
/**
|
|
705
|
+
* Node body renderer. "content_card" opts the node into the media/text-forward
|
|
706
|
+
* ContentCardBody (variant derived from the primary output type). Absent or
|
|
707
|
+
* "default" uses the generic input/output body.
|
|
708
|
+
*/
|
|
709
|
+
body?: string;
|
|
451
710
|
properties: Property[];
|
|
452
711
|
outputs: OutputSlot[];
|
|
712
|
+
primary_output?: string;
|
|
453
713
|
recommended_models: UnifiedModel[];
|
|
454
|
-
|
|
714
|
+
inline_fields?: string[];
|
|
715
|
+
input_fields?: string[];
|
|
455
716
|
required_settings: string[];
|
|
456
|
-
|
|
717
|
+
supports_dynamic_inputs: boolean;
|
|
457
718
|
is_streaming_output: boolean;
|
|
458
|
-
|
|
719
|
+
input_mode?: InputMode;
|
|
720
|
+
output_correlation?: Record<string, OutputCorrelation>;
|
|
459
721
|
supports_dynamic_outputs: boolean;
|
|
722
|
+
/**
|
|
723
|
+
* Types a user may pick for a dynamic input slot on this node. Unset means
|
|
724
|
+
* the full type palette.
|
|
725
|
+
*/
|
|
726
|
+
allowed_dynamic_slot_types?: PropertyTypeMetadata[];
|
|
727
|
+
/**
|
|
728
|
+
* Per-type cache lifetime for partial runs (seconds, or the `"forever"`
|
|
729
|
+
* sentinel — never `Infinity`, which JSON-serializes to `null`). Only
|
|
730
|
+
* consulted for Computed nodes; unset / `0` means never reuse.
|
|
731
|
+
*/
|
|
732
|
+
cache_ttl?: number | "forever";
|
|
733
|
+
/**
|
|
734
|
+
* What running the node does to the world: "pure" (output depends only on
|
|
735
|
+
* inputs), "read" (reads external state, changes nothing), "write" (mutates
|
|
736
|
+
* observable state), "external" (leaves the system). Reactive runs — a
|
|
737
|
+
* mini-app slider drag, a live preview — may traverse "pure" and "read" only;
|
|
738
|
+
* anything else needs an explicit run. Absent is treated as "external".
|
|
739
|
+
*/
|
|
740
|
+
effect?: NodeEffect;
|
|
741
|
+
/**
|
|
742
|
+
* Opt-in: re-running the node with identical inputs is safe. Absent means
|
|
743
|
+
* unsafe — cost tracking cannot see external writes, so an unclassified node
|
|
744
|
+
* must not gain `retry` by omission. See docs/workflow-supervisor-design.md §5.3.
|
|
745
|
+
*/
|
|
746
|
+
retry_safe?: boolean;
|
|
460
747
|
model_packs?: ModelPack[];
|
|
748
|
+
fal_unit_pricing?: FalUnitPricing | null;
|
|
749
|
+
/** When true, the node remains runnable but is hidden from default discovery. */
|
|
750
|
+
deprecated?: boolean;
|
|
751
|
+
/**
|
|
752
|
+
* When true, the node is registered and runnable but filtered out of
|
|
753
|
+
* discovery UIs (palette, search) entirely — for internal nodes a user never
|
|
754
|
+
* adds by hand (e.g. agent-runner-inserted steps).
|
|
755
|
+
*/
|
|
756
|
+
hidden?: boolean;
|
|
757
|
+
/** Preferred replacement node_type when deprecated is true. */
|
|
758
|
+
replaced_by?: string;
|
|
759
|
+
/**
|
|
760
|
+
* Deployment platforms this node supports. See `@nodetool-ai/protocol`'s
|
|
761
|
+
* Platform type. Absent or empty values are treated as ["node"].
|
|
762
|
+
*/
|
|
763
|
+
platforms?: readonly ("node" | "workers" | "edge" | "browser")[];
|
|
461
764
|
}
|
|
462
765
|
export interface IndexResponse {
|
|
463
766
|
node_metadata: NodeMetadata[];
|
|
464
767
|
}
|
|
768
|
+
/** API-transport form of a typed dynamic input slot declaration. */
|
|
769
|
+
export interface DynamicSlotMetadata {
|
|
770
|
+
type: PropertyTypeMetadata;
|
|
771
|
+
description?: string;
|
|
772
|
+
default?: unknown;
|
|
773
|
+
required?: boolean;
|
|
774
|
+
min?: number;
|
|
775
|
+
max?: number;
|
|
776
|
+
}
|
|
465
777
|
export interface Node {
|
|
466
778
|
id: string;
|
|
467
779
|
parent_id?: string | null;
|
|
@@ -469,8 +781,8 @@ export interface Node {
|
|
|
469
781
|
data?: unknown;
|
|
470
782
|
ui_properties?: unknown;
|
|
471
783
|
dynamic_properties?: Record<string, unknown>;
|
|
784
|
+
dynamic_inputs?: Record<string, DynamicSlotMetadata>;
|
|
472
785
|
dynamic_outputs?: Record<string, PropertyTypeMetadata>;
|
|
473
|
-
sync_mode: string;
|
|
474
786
|
[key: string]: unknown;
|
|
475
787
|
}
|
|
476
788
|
export interface Graph {
|
|
@@ -480,18 +792,18 @@ export interface Graph {
|
|
|
480
792
|
export interface JobResponse {
|
|
481
793
|
id: string;
|
|
482
794
|
user_id: string;
|
|
795
|
+
project_id?: string;
|
|
483
796
|
job_type: string;
|
|
484
797
|
workflow_id: string;
|
|
485
798
|
status: string | null;
|
|
799
|
+
/** Human-readable run title (workflow name, or node name for a single-node run). */
|
|
800
|
+
name?: string | null;
|
|
486
801
|
error?: string | null;
|
|
487
802
|
started_at?: string | null;
|
|
488
803
|
finished_at?: string | null;
|
|
489
804
|
cost?: number | null;
|
|
490
|
-
suspended_node_id?: string | null;
|
|
491
|
-
suspension_reason?: string | null;
|
|
492
805
|
error_message?: string | null;
|
|
493
|
-
|
|
494
|
-
is_resumable?: boolean;
|
|
806
|
+
outputs?: Record<string, unknown> | null;
|
|
495
807
|
etag?: string | null;
|
|
496
808
|
}
|
|
497
809
|
export interface JobListResponse {
|
|
@@ -501,9 +813,12 @@ export interface JobListResponse {
|
|
|
501
813
|
export interface RunJobRequest {
|
|
502
814
|
type?: "run_job_request";
|
|
503
815
|
job_id?: string | null;
|
|
816
|
+
/** Human-readable title for the run (workflow name, or node name for a single-node run). */
|
|
817
|
+
job_name?: string | null;
|
|
504
818
|
job_type?: string;
|
|
505
819
|
execution_strategy?: string;
|
|
506
820
|
workflow_id: string;
|
|
821
|
+
project_id?: string | null;
|
|
507
822
|
user_id?: string;
|
|
508
823
|
auth_token?: string;
|
|
509
824
|
api_url?: string | null;
|
|
@@ -512,17 +827,217 @@ export interface RunJobRequest {
|
|
|
512
827
|
env?: Record<string, unknown>;
|
|
513
828
|
graph?: WorkflowGraph;
|
|
514
829
|
explicit_types?: Record<string, string> | boolean;
|
|
830
|
+
/** Suppress provisional completed events and emit one terminal result snapshot. */
|
|
831
|
+
require_terminal_result?: boolean;
|
|
832
|
+
/** Additive execution relaxations. Omitted values preserve current behavior. */
|
|
833
|
+
execution_options?: RunJobExecutionOptions;
|
|
834
|
+
/**
|
|
835
|
+
* Supervise this run: a node invocation that fails after its own error
|
|
836
|
+
* handling escalates to a supervisor agent, which answers with a verdict.
|
|
837
|
+
* **Off unless the client asks for it** — supervision sends failure context
|
|
838
|
+
* (node inputs, error text) to a model, so it is never implied by anything
|
|
839
|
+
* else on the request. See docs/workflow-supervisor-design.md.
|
|
840
|
+
*/
|
|
841
|
+
supervise?: boolean;
|
|
842
|
+
/** Supervisor configuration. Ignored unless `supervise` is true. */
|
|
843
|
+
supervisor?: SupervisorRunOptions;
|
|
515
844
|
resource_limits?: ResourceLimits | null;
|
|
845
|
+
/**
|
|
846
|
+
* The mini app this run belongs to, when it was started by one. Present only
|
|
847
|
+
* for app runs; the server checks the app's spend budget before creating the
|
|
848
|
+
* job and settles the ledger when it finishes.
|
|
849
|
+
*/
|
|
850
|
+
application_id?: string | null;
|
|
851
|
+
/** Released version the run executes against; absent for a draft run. */
|
|
852
|
+
application_version?: number | null;
|
|
853
|
+
/**
|
|
854
|
+
* The app operation this run implements, when the app declares more than the
|
|
855
|
+
* one. The ledger stores it alongside the invocation, so per-operation
|
|
856
|
+
* governance reports ("which button costs the money") can be built from real
|
|
857
|
+
* runs. Optional: a client that omits it still runs, its rows just carry no
|
|
858
|
+
* operation.
|
|
859
|
+
*/
|
|
860
|
+
operation_id?: string | null;
|
|
861
|
+
/**
|
|
862
|
+
* Wake-up payload for a trigger-driven run: the trigger node whose event
|
|
863
|
+
* started this job, the durable input's id (for idempotent ack), and the
|
|
864
|
+
* event payload itself. Present only for runs started by the trigger
|
|
865
|
+
* dispatcher; absent for interactive/live-test runs.
|
|
866
|
+
*/
|
|
867
|
+
trigger_event?: {
|
|
868
|
+
node_id: string;
|
|
869
|
+
payload: unknown;
|
|
870
|
+
input_id: string;
|
|
871
|
+
} | null;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* What a run's supervisor is allowed to be and to spend. Every field is
|
|
875
|
+
* optional: a host that only sets `supervise: true` gets its configured
|
|
876
|
+
* defaults (provider/model) and the kernel's default bounds.
|
|
877
|
+
*/
|
|
878
|
+
export interface SupervisorRunOptions {
|
|
879
|
+
/** Provider id for the supervising model; defaults to the server's. */
|
|
880
|
+
provider?: string;
|
|
881
|
+
/** Model id for the supervising model; defaults to the server's. */
|
|
882
|
+
model?: string;
|
|
883
|
+
/** Decisions the supervisor may make in this run. */
|
|
884
|
+
max_decisions?: number;
|
|
885
|
+
/** Retries per `(node, invocation)`. */
|
|
886
|
+
max_retries_per_node?: number;
|
|
887
|
+
/** Per-decision wall clock, in ms. */
|
|
888
|
+
decision_timeout_ms?: number;
|
|
889
|
+
/** Dollar ceiling on supervision for the whole run. */
|
|
890
|
+
cost_cap_usd?: number;
|
|
891
|
+
}
|
|
892
|
+
export interface RunJobExecutionOptions {
|
|
893
|
+
persistence?: "job" | "session";
|
|
894
|
+
event_detail?: "full" | "outputs" | "terminal";
|
|
895
|
+
asset_persistence?: "auto" | "temporary";
|
|
516
896
|
}
|
|
517
897
|
export interface ResourceLimits {
|
|
518
898
|
max_jobs?: number;
|
|
519
899
|
max_duration_seconds?: number;
|
|
520
900
|
}
|
|
521
|
-
|
|
901
|
+
/**
|
|
902
|
+
* Canonical registry of model-provider identifiers.
|
|
903
|
+
*
|
|
904
|
+
* This is the single source of truth for provider IDs across the monorepo:
|
|
905
|
+
* the runtime provider registry, the cost calculator, and the web model menu
|
|
906
|
+
* all derive from here instead of re-spelling the literals. Keys are stable
|
|
907
|
+
* UPPER_SNAKE references; values are the wire identifiers stored on models and
|
|
908
|
+
* passed to `getProvider()`.
|
|
909
|
+
*
|
|
910
|
+
* Adding a provider? Add it here first, then register it in
|
|
911
|
+
* `@nodetool-ai/runtime`'s provider index.
|
|
912
|
+
*/
|
|
913
|
+
export declare const PROVIDER_IDS: {
|
|
914
|
+
readonly OPENAI: "openai";
|
|
915
|
+
readonly CODEX: "codex";
|
|
916
|
+
readonly ANTHROPIC: "anthropic";
|
|
917
|
+
readonly CLAUDE_AGENT_SDK: "claude_agent_sdk";
|
|
918
|
+
readonly GEMINI: "gemini";
|
|
919
|
+
readonly GROQ: "groq";
|
|
920
|
+
readonly MISTRAL: "mistral";
|
|
921
|
+
readonly MOONSHOT: "moonshot";
|
|
922
|
+
readonly MINIMAX: "minimax";
|
|
923
|
+
readonly DEEPSEEK: "deepseek";
|
|
924
|
+
readonly XAI: "xai";
|
|
925
|
+
readonly COHERE: "cohere";
|
|
926
|
+
readonly OPENROUTER: "openrouter";
|
|
927
|
+
readonly TOGETHER: "together";
|
|
928
|
+
readonly ALIBABA: "alibaba";
|
|
929
|
+
readonly CEREBRAS: "cerebras";
|
|
930
|
+
readonly EVOLINK: "evolink";
|
|
931
|
+
readonly GMI: "gmi";
|
|
932
|
+
readonly META: "meta";
|
|
933
|
+
readonly NODETOOL: "nodetool";
|
|
934
|
+
readonly REPLICATE: "replicate";
|
|
935
|
+
readonly FAL_AI: "fal_ai";
|
|
936
|
+
readonly KIE: "kie";
|
|
937
|
+
readonly COMFY_CLOUD: "comfy_cloud";
|
|
938
|
+
readonly ELEVENLABS: "elevenlabs";
|
|
939
|
+
readonly TOPAZ: "topaz";
|
|
940
|
+
readonly REVE: "reve";
|
|
941
|
+
readonly ATLASCLOUD: "atlascloud";
|
|
942
|
+
readonly HIGGSFIELD: "higgsfield";
|
|
943
|
+
readonly USEAPI: "useapi";
|
|
944
|
+
readonly AKI: "aki";
|
|
945
|
+
readonly MESHY: "meshy";
|
|
946
|
+
readonly RODIN: "rodin";
|
|
947
|
+
readonly VOYAGE: "voyage";
|
|
948
|
+
readonly JINA: "jina";
|
|
949
|
+
readonly OLLAMA: "ollama";
|
|
950
|
+
readonly LMSTUDIO: "lmstudio";
|
|
951
|
+
readonly LLAMA_CPP: "llama_cpp";
|
|
952
|
+
readonly NODE_LLAMA_CPP: "node_llama_cpp";
|
|
953
|
+
readonly VLLM: "vllm";
|
|
954
|
+
readonly HUGGINGFACE: "huggingface";
|
|
955
|
+
readonly TRANSFORMERS_JS: "transformers_js";
|
|
956
|
+
readonly FAKE: "fake";
|
|
957
|
+
};
|
|
958
|
+
/** A provider identifier known to the registry above. */
|
|
959
|
+
export type KnownProviderId = (typeof PROVIDER_IDS)[keyof typeof PROVIDER_IDS];
|
|
960
|
+
/**
|
|
961
|
+
* Codex (ChatGPT-backed) OAuth constants, shared across packages so the login
|
|
962
|
+
* flow (`websocket`), the token resolver (`models`), and the provider
|
|
963
|
+
* (`runtime`) all agree without a cross-layer dependency. The client is the
|
|
964
|
+
* published public Codex CLI app — there is no client secret.
|
|
965
|
+
*/
|
|
966
|
+
export declare const CODEX_OAUTH_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann";
|
|
967
|
+
export declare const CODEX_OAUTH_AUTHORIZATION_URL = "https://auth.openai.com/oauth/authorize";
|
|
968
|
+
export declare const CODEX_OAUTH_TOKEN_URL = "https://auth.openai.com/oauth/token";
|
|
969
|
+
export declare const CODEX_OAUTH_REVOCATION_URL = "https://auth.openai.com/oauth/revoke";
|
|
970
|
+
export declare const CODEX_OAUTH_SCOPES: readonly ["openid", "profile", "email", "offline_access"];
|
|
971
|
+
/** ChatGPT backend base URL the Codex routes live under. */
|
|
972
|
+
export declare const CODEX_BACKEND_BASE_URL = "https://chatgpt.com/backend-api/codex";
|
|
973
|
+
/** `originator` header the ChatGPT backend expects from a Codex client. */
|
|
974
|
+
export declare const CODEX_DEFAULT_ORIGINATOR = "codex_cli_rs";
|
|
975
|
+
/**
|
|
976
|
+
* Codex client version presented to the ChatGPT backend. The backend gates its
|
|
977
|
+
* model allowlist on this: too-old a version yields an empty `/models` list and
|
|
978
|
+
* "model not supported" on `/responses`. Must be ≥ the served models'
|
|
979
|
+
* `minimal_client_version`. Override via `CODEX_CLIENT_VERSION`.
|
|
980
|
+
*/
|
|
981
|
+
export declare const CODEX_CLIENT_VERSION = "0.155.0";
|
|
982
|
+
/** Loopback port/path the Codex client's redirect URI is registered against. */
|
|
983
|
+
export declare const CODEX_CALLBACK_PORT = 1455;
|
|
984
|
+
export declare const CODEX_CALLBACK_PATH = "/auth/callback";
|
|
985
|
+
/**
|
|
986
|
+
* Claude Code OAuth constants — the same public client and endpoints the
|
|
987
|
+
* `claude` CLI uses to sign in with a Claude subscription. Shared across
|
|
988
|
+
* packages so the login flow (`websocket`, `cli`) and the credential store
|
|
989
|
+
* (`runtime`) agree. The client is public: there is no client secret.
|
|
990
|
+
*
|
|
991
|
+
* The resulting tokens are written to the Claude Agent SDK's own credential
|
|
992
|
+
* file, so a NodeTool login and a `claude login` are interchangeable.
|
|
993
|
+
*/
|
|
994
|
+
export declare const CLAUDE_CODE_OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
|
|
995
|
+
/** Consumer sign-in page (claude.ai subscription accounts). */
|
|
996
|
+
export declare const CLAUDE_CODE_OAUTH_AUTHORIZATION_URL = "https://claude.com/cai/oauth/authorize";
|
|
997
|
+
/** Console sign-in page (API-billed org accounts). */
|
|
998
|
+
export declare const CLAUDE_CODE_OAUTH_CONSOLE_AUTHORIZATION_URL = "https://platform.claude.com/oauth/authorize";
|
|
999
|
+
export declare const CLAUDE_CODE_OAUTH_TOKEN_URL = "https://platform.claude.com/v1/oauth/token";
|
|
1000
|
+
/**
|
|
1001
|
+
* Redirect used when no loopback listener is reachable from the browser. The
|
|
1002
|
+
* console shows the user a `<code>#<state>` string to paste back.
|
|
1003
|
+
*/
|
|
1004
|
+
export declare const CLAUDE_CODE_OAUTH_MANUAL_REDIRECT_URL = "https://platform.claude.com/oauth/code/callback";
|
|
1005
|
+
/**
|
|
1006
|
+
* The loopback redirect the `claude` CLI registers: a fixed port, like the
|
|
1007
|
+
* Codex client's 1455, so the browser lands on the same address whichever
|
|
1008
|
+
* tool started the login. A `claude login` already holding the port is the
|
|
1009
|
+
* one expected collision.
|
|
1010
|
+
*/
|
|
1011
|
+
export declare const CLAUDE_CODE_CALLBACK_PORT = 54545;
|
|
1012
|
+
export declare const CLAUDE_CODE_CALLBACK_PATH = "/callback";
|
|
1013
|
+
/** Scopes requested at login. */
|
|
1014
|
+
export declare const CLAUDE_CODE_OAUTH_SCOPES: readonly ["org:create_api_key", "user:profile", "user:inference", "user:sessions:claude_code", "user:mcp_servers", "user:file_upload"];
|
|
1015
|
+
/**
|
|
1016
|
+
* Scopes sent on refresh. Narrower than the login set — the CLI drops
|
|
1017
|
+
* `org:create_api_key`, which is only needed to mint an API key at login.
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const CLAUDE_CODE_OAUTH_REFRESH_SCOPES: readonly ["user:profile", "user:inference", "user:sessions:claude_code", "user:mcp_servers", "user:file_upload"];
|
|
1020
|
+
/** Profile endpoint used to label the account (plan tier, email). */
|
|
1021
|
+
export declare const CLAUDE_CODE_OAUTH_PROFILE_URL = "https://api.anthropic.com/api/oauth/profile";
|
|
1022
|
+
/**
|
|
1023
|
+
* Provider identifier. Resolves to a known {@link PROVIDER_IDS} value with
|
|
1024
|
+
* editor autocompletion, but still accepts arbitrary strings — dynamic
|
|
1025
|
+
* sub-providers (OpenRouter, HuggingFace inference) and Python-bridged
|
|
1026
|
+
* providers (MLX, local HF) supply IDs that aren't enumerated above. The
|
|
1027
|
+
* `(string & {})` arm preserves the literal hints while keeping the type open.
|
|
1028
|
+
*/
|
|
1029
|
+
export type ProviderId = KnownProviderId | (string & {});
|
|
1030
|
+
/**
|
|
1031
|
+
* Alias of {@link ProviderId}. Retained as the field-type name used across the
|
|
1032
|
+
* model interfaces below (`LanguageModel.provider`, `ProviderInfo.provider`, …).
|
|
1033
|
+
*/
|
|
1034
|
+
export type Provider = ProviderId;
|
|
522
1035
|
export type InferenceProvider = "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "replicate" | "sambanova" | "scaleway" | "together" | "zai-org" | string;
|
|
523
1036
|
export interface ProviderInfo {
|
|
524
1037
|
provider: Provider;
|
|
525
1038
|
capabilities: string[];
|
|
1039
|
+
access?: "in_process" | "local_service" | "remote_api";
|
|
1040
|
+
display_name?: string;
|
|
526
1041
|
}
|
|
527
1042
|
export interface LanguageModel {
|
|
528
1043
|
type: string;
|
|
@@ -554,6 +1069,9 @@ export interface ImageModel {
|
|
|
554
1069
|
provider: Provider;
|
|
555
1070
|
path?: string | null;
|
|
556
1071
|
supported_tasks?: string[];
|
|
1072
|
+
/** Per-model option constraints derived from the provider manifest. */
|
|
1073
|
+
resolutions?: string[] | null;
|
|
1074
|
+
aspect_ratios?: string[] | null;
|
|
557
1075
|
}
|
|
558
1076
|
export interface TTSModel {
|
|
559
1077
|
type: string;
|
|
@@ -563,6 +1081,36 @@ export interface TTSModel {
|
|
|
563
1081
|
path?: string | null;
|
|
564
1082
|
voices?: string[];
|
|
565
1083
|
selected_voice?: string;
|
|
1084
|
+
/** Optional feature flags such as voice_cloning or language_selection. */
|
|
1085
|
+
capabilities?: string[];
|
|
1086
|
+
languages?: string[];
|
|
1087
|
+
sample_rate?: number | null;
|
|
1088
|
+
requires_reference_text?: boolean;
|
|
1089
|
+
adapter?: ModelAdapterInfo | null;
|
|
1090
|
+
execution?: ModelExecutionAvailability | null;
|
|
1091
|
+
}
|
|
1092
|
+
export interface ModelArtifactRef {
|
|
1093
|
+
source: "huggingface";
|
|
1094
|
+
repo_id: string;
|
|
1095
|
+
revision?: string | null;
|
|
1096
|
+
path?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
export interface ModelAdapterInfo {
|
|
1099
|
+
state: "installed" | "missing_dependency" | "unknown";
|
|
1100
|
+
reason_code?: string | null;
|
|
1101
|
+
reason?: string | null;
|
|
1102
|
+
artifact_ref?: ModelArtifactRef | null;
|
|
1103
|
+
}
|
|
1104
|
+
export interface ModelExecutionAvailability {
|
|
1105
|
+
/** User-facing execution origin, kept separate from cache/download state. */
|
|
1106
|
+
kind: "local" | "server" | "api" | "unavailable";
|
|
1107
|
+
state: "ready" | "download_required" | "unavailable";
|
|
1108
|
+
label: "Local" | "Server" | "API" | "Unavailable";
|
|
1109
|
+
reason?: string | null;
|
|
1110
|
+
/** Stable execution location before the client resolves co-location. */
|
|
1111
|
+
execution_site?: "nodetool_host" | "provider" | null;
|
|
1112
|
+
/** Runtime or provider name used to build a location-aware explanation. */
|
|
1113
|
+
runtime_name?: string | null;
|
|
566
1114
|
}
|
|
567
1115
|
export interface ASRModel {
|
|
568
1116
|
type: string;
|
|
@@ -571,6 +1119,28 @@ export interface ASRModel {
|
|
|
571
1119
|
provider: Provider;
|
|
572
1120
|
path?: string | null;
|
|
573
1121
|
}
|
|
1122
|
+
export interface MusicModel {
|
|
1123
|
+
type: string;
|
|
1124
|
+
id: string;
|
|
1125
|
+
name: string;
|
|
1126
|
+
provider: Provider;
|
|
1127
|
+
path?: string | null;
|
|
1128
|
+
supported_tasks?: string[];
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* A model that rewrites a recording rather than generating one: voice
|
|
1132
|
+
* conversion, isolation and denoise, stem separation, audio super-resolution.
|
|
1133
|
+
* Backs the `audio_to_audio` capability and the `audio_to_audio_model`
|
|
1134
|
+
* property type.
|
|
1135
|
+
*/
|
|
1136
|
+
export interface AudioToAudioModel {
|
|
1137
|
+
type: string;
|
|
1138
|
+
id: string;
|
|
1139
|
+
name: string;
|
|
1140
|
+
provider: Provider;
|
|
1141
|
+
path?: string | null;
|
|
1142
|
+
supported_tasks?: string[];
|
|
1143
|
+
}
|
|
574
1144
|
export interface VideoModel {
|
|
575
1145
|
type: string;
|
|
576
1146
|
id: string;
|
|
@@ -578,6 +1148,10 @@ export interface VideoModel {
|
|
|
578
1148
|
provider: Provider;
|
|
579
1149
|
path?: string | null;
|
|
580
1150
|
supported_tasks?: string[];
|
|
1151
|
+
/** Per-model option constraints derived from the provider manifest. */
|
|
1152
|
+
durations?: number[] | null;
|
|
1153
|
+
resolutions?: string[] | null;
|
|
1154
|
+
aspect_ratios?: string[] | null;
|
|
581
1155
|
}
|
|
582
1156
|
export interface LlamaModel {
|
|
583
1157
|
repo_id: string;
|
|
@@ -602,7 +1176,7 @@ export interface HuggingFaceModel {
|
|
|
602
1176
|
export interface UnifiedModel {
|
|
603
1177
|
id: string;
|
|
604
1178
|
name: string;
|
|
605
|
-
provider?: Provider;
|
|
1179
|
+
provider?: Provider | null;
|
|
606
1180
|
type?: string | null;
|
|
607
1181
|
repo_id?: string | null;
|
|
608
1182
|
path?: string | null;
|
|
@@ -629,6 +1203,24 @@ export interface UnifiedModel {
|
|
|
629
1203
|
supports_tools?: boolean | null;
|
|
630
1204
|
/** Voice IDs supported by this model. Only meaningful for TTS models. */
|
|
631
1205
|
voices?: string[] | null;
|
|
1206
|
+
/** Optional feature flags advertised by TTS models. */
|
|
1207
|
+
capabilities?: string[] | null;
|
|
1208
|
+
/** Supported language codes/names advertised by TTS models. */
|
|
1209
|
+
languages?: string[] | null;
|
|
1210
|
+
/** Native output sample rate advertised by a TTS model. */
|
|
1211
|
+
sample_rate?: number | null;
|
|
1212
|
+
/** Whether cloning requires a transcript of the reference recording. */
|
|
1213
|
+
requires_reference_text?: boolean | null;
|
|
1214
|
+
/** Local execution adapter facts; independent from downloaded/cache state. */
|
|
1215
|
+
adapter?: ModelAdapterInfo | null;
|
|
1216
|
+
/** Resolved execution status for presentation and selection gating. */
|
|
1217
|
+
execution?: ModelExecutionAvailability | null;
|
|
1218
|
+
/** Allowed clip durations (seconds). Only meaningful for video models. */
|
|
1219
|
+
durations?: number[] | null;
|
|
1220
|
+
/** Allowed output resolutions (e.g. "720p"). Only meaningful for video models. */
|
|
1221
|
+
resolutions?: string[] | null;
|
|
1222
|
+
/** Allowed aspect ratios (e.g. "16:9"). Only meaningful for video models. */
|
|
1223
|
+
aspect_ratios?: string[] | null;
|
|
632
1224
|
}
|
|
633
1225
|
export interface ModelPack {
|
|
634
1226
|
id?: string;
|
|
@@ -735,6 +1327,7 @@ export interface CollectionCreate {
|
|
|
735
1327
|
export interface WorkspaceResponse {
|
|
736
1328
|
id: string;
|
|
737
1329
|
user_id: string;
|
|
1330
|
+
project_id?: string;
|
|
738
1331
|
name: string;
|
|
739
1332
|
path: string;
|
|
740
1333
|
is_default?: boolean;
|
|
@@ -750,6 +1343,7 @@ export interface WorkspaceListResponse {
|
|
|
750
1343
|
export interface WorkspaceCreateRequest {
|
|
751
1344
|
name: string;
|
|
752
1345
|
description?: string;
|
|
1346
|
+
project_id?: string;
|
|
753
1347
|
}
|
|
754
1348
|
export interface WorkspaceUpdateRequest {
|
|
755
1349
|
name?: string;
|