@nodetool-ai/protocol 0.7.0-rc.22 → 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/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @nodetool-ai/protocol
|
|
2
|
+
|
|
3
|
+
Shared message types and protocol definitions for the NodeTool workflow runtime.
|
|
4
|
+
|
|
5
|
+
This is the base dependency for nearly every other package — it defines the wire
|
|
6
|
+
types (graph nodes/edges, processing messages, type metadata, API schemas) that
|
|
7
|
+
the kernel, runtime, websocket server, and clients all agree on.
|
|
8
|
+
|
|
9
|
+
## Responsibilities
|
|
10
|
+
|
|
11
|
+
- Graph transport types (`NodeDescriptor`, `Edge`) and correlation/lineage signals.
|
|
12
|
+
- Processing message union (`output_update`, `edge_update`, `job_update`, …),
|
|
13
|
+
Zod-first: every `ProcessingMessage` variant in `src/messages.ts` is a Zod
|
|
14
|
+
schema, with its TypeScript type derived via `z.infer` (the two shapes Zod
|
|
15
|
+
can't infer exactly — the recursive `TaskRef`/`StepRef` pair — keep a
|
|
16
|
+
hand-written interface with a `z.ZodType<...>`-annotated schema instead).
|
|
17
|
+
`processingMessageSchema` is the single `z.discriminatedUnion("type", ...)`
|
|
18
|
+
validator for the whole union; `processingMessageSchemas` indexes the
|
|
19
|
+
per-type schemas by discriminator; `is*` guard functions (`isJobUpdate`,
|
|
20
|
+
`isChunk`, …) do a cheap discriminant-only check, and `isProcessingMessage`
|
|
21
|
+
does full structural validation.
|
|
22
|
+
- `TypeMetadata` parser and type-compatibility checks.
|
|
23
|
+
- Zod schemas for the REST/tRPC boundary (`api-schemas/`).
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import type { NodeDescriptor, Edge } from "@nodetool-ai/protocol";
|
|
29
|
+
import { graphNode } from "@nodetool-ai/protocol";
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Develop
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm run build --workspace=packages/protocol # tsc build, then the JSON Schema step below
|
|
36
|
+
npm run test --workspace=packages/protocol # vitest
|
|
37
|
+
npm run lint --workspace=packages/protocol # tsc --noEmit
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Imports use `@nodetool-ai/<package>`; never import from `dist/`. See the root
|
|
41
|
+
[AGENTS.md](../../AGENTS.md) for the monorepo build order.
|
|
42
|
+
|
|
43
|
+
## Generated processing-messages JSON Schema
|
|
44
|
+
|
|
45
|
+
`npm run build` (via `generate:processing-messages-schema`, wired in after the
|
|
46
|
+
`tsc` step) converts `processingMessageSchema` to JSON Schema with
|
|
47
|
+
`z.toJSONSchema` and writes it to `dist/processing-messages.schema.json` — a
|
|
48
|
+
build artifact (`dist/` is gitignored, like the rest of this package's output),
|
|
49
|
+
regenerated on every build rather than checked in. Non-TypeScript consumers —
|
|
50
|
+
the Python worker, external SDKs — validate wire messages against this file
|
|
51
|
+
instead of hand-copying the TS shapes (RELIABILITY_ARCHITECTURE.md §8.2).
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm run generate:processing-messages-schema --workspace=packages/protocol # (re)write it
|
|
55
|
+
npm run check:processing-messages-schema --workspace=packages/protocol # verify, no write (CI)
|
|
56
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2026-09-28T09:19:01.660Z
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { selectProductionPreview, validateProductionAcceptance, type ProductionAcceptanceTarget, type ProductionAcceptanceValidation, type ProductionPreviewSelection, type ProductionVariationIdentityInput } from "./production-authoring.js";
|
|
3
|
+
export declare const AI_VIDEO_PRODUCTION_SCHEMA_VERSION: 1;
|
|
4
|
+
export declare const aiVideoCreativeContextSchema: z.ZodPreprocess<z.ZodObject<{
|
|
5
|
+
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6
|
+
product_name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
product_description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
9
|
+
objective: z.ZodOptional<z.ZodString>;
|
|
10
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
11
|
+
approved_claims: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
prohibited_claims: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
reference_bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
kind: z.ZodEnum<{
|
|
15
|
+
character: "character";
|
|
16
|
+
location: "location";
|
|
17
|
+
product: "product";
|
|
18
|
+
style: "style";
|
|
19
|
+
}>;
|
|
20
|
+
asset_id: z.ZodString;
|
|
21
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
label: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>;
|
|
24
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
document_id: z.ZodString;
|
|
26
|
+
document_kind: z.ZodEnum<{
|
|
27
|
+
script: "script";
|
|
28
|
+
storyboard: "storyboard";
|
|
29
|
+
timeline: "timeline";
|
|
30
|
+
}>;
|
|
31
|
+
authoring_fingerprint: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
export type AiVideoCreativeContext = z.infer<typeof aiVideoCreativeContextSchema>;
|
|
35
|
+
export declare const aiVideoProductionRequirementSchema: z.ZodPreprocess<z.ZodObject<{
|
|
36
|
+
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
37
|
+
editorial_purpose: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
cta: "cta";
|
|
39
|
+
demonstration: "demonstration";
|
|
40
|
+
hook: "hook";
|
|
41
|
+
problem: "problem";
|
|
42
|
+
proof: "proof";
|
|
43
|
+
story: "story";
|
|
44
|
+
}>>;
|
|
45
|
+
visual_treatment: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
actor_to_camera: "actor_to_camera";
|
|
47
|
+
generated_scene: "generated_scene";
|
|
48
|
+
lifestyle_b_roll: "lifestyle_b_roll";
|
|
49
|
+
product_close_up: "product_close_up";
|
|
50
|
+
}>>;
|
|
51
|
+
speech_mode: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
none: "none";
|
|
53
|
+
off_camera: "off_camera";
|
|
54
|
+
on_camera: "on_camera";
|
|
55
|
+
}>>;
|
|
56
|
+
speech_binding: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
script_line_id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
speaker_id: z.ZodOptional<z.ZodString>;
|
|
59
|
+
text: z.ZodOptional<z.ZodString>;
|
|
60
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
61
|
+
audio_asset_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
voice_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
voice: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
provider: z.ZodString;
|
|
65
|
+
model: z.ZodString;
|
|
66
|
+
voice: z.ZodString;
|
|
67
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
|
+
reference_bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
kind: z.ZodEnum<{
|
|
72
|
+
character: "character";
|
|
73
|
+
location: "location";
|
|
74
|
+
product: "product";
|
|
75
|
+
style: "style";
|
|
76
|
+
}>;
|
|
77
|
+
asset_id: z.ZodString;
|
|
78
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
79
|
+
label: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$loose>>>;
|
|
81
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
+
uri: z.ZodString;
|
|
83
|
+
name: z.ZodOptional<z.ZodString>;
|
|
84
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$loose>>>;
|
|
86
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
speech_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
local_direction: z.ZodOptional<z.ZodString>;
|
|
89
|
+
requested_take_count: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$loose>>;
|
|
91
|
+
export type AiVideoProductionRequirement = z.infer<typeof aiVideoProductionRequirementSchema>;
|
|
92
|
+
export declare const aiVideoCandidateVariationIdentitySchema: z.ZodPreprocess<z.ZodObject<{
|
|
93
|
+
batchId: z.ZodString;
|
|
94
|
+
destinationKind: z.ZodEnum<{
|
|
95
|
+
script_line: "script_line";
|
|
96
|
+
storyboard_shot: "storyboard_shot";
|
|
97
|
+
timeline_clip: "timeline_clip";
|
|
98
|
+
}>;
|
|
99
|
+
destinationId: z.ZodString;
|
|
100
|
+
variationIndex: z.ZodNumber;
|
|
101
|
+
variationId: z.ZodString;
|
|
102
|
+
candidateId: z.ZodString;
|
|
103
|
+
requestId: z.ZodString;
|
|
104
|
+
documentId: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
export type AiVideoCandidateVariationIdentity = z.infer<typeof aiVideoCandidateVariationIdentitySchema>;
|
|
107
|
+
export interface AiVideoCandidateVariationInput extends ProductionVariationIdentityInput {
|
|
108
|
+
readonly documentId: string;
|
|
109
|
+
}
|
|
110
|
+
export declare function createAiVideoCandidateVariation(input: AiVideoCandidateVariationInput): AiVideoCandidateVariationIdentity;
|
|
111
|
+
/** Legacy pending means planned. No snapshot is invented for old candidates. */
|
|
112
|
+
export declare const aiVideoCandidateSchema: z.ZodPreprocess<z.ZodObject<{
|
|
113
|
+
candidateId: z.ZodString;
|
|
114
|
+
batchId: z.ZodString;
|
|
115
|
+
requestId: z.ZodString;
|
|
116
|
+
variationId: z.ZodString;
|
|
117
|
+
variationIndex: z.ZodNumber;
|
|
118
|
+
destinationKind: z.ZodEnum<{
|
|
119
|
+
script_line: "script_line";
|
|
120
|
+
storyboard_shot: "storyboard_shot";
|
|
121
|
+
timeline_clip: "timeline_clip";
|
|
122
|
+
}>;
|
|
123
|
+
destinationId: z.ZodString;
|
|
124
|
+
status: z.ZodEnum<{
|
|
125
|
+
cancelled: "cancelled";
|
|
126
|
+
failed: "failed";
|
|
127
|
+
generating: "generating";
|
|
128
|
+
planned: "planned";
|
|
129
|
+
queued: "queued";
|
|
130
|
+
ready: "ready";
|
|
131
|
+
}>;
|
|
132
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
takeId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
error: z.ZodOptional<z.ZodString>;
|
|
135
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
accepted: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
sourceDurationMs: z.ZodNumber;
|
|
139
|
+
playableWindow: z.ZodObject<{
|
|
140
|
+
startMs: z.ZodNumber;
|
|
141
|
+
endMs: z.ZodNumber;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
assetId: z.ZodString;
|
|
145
|
+
durationMs: z.ZodNumber;
|
|
146
|
+
playback: z.ZodEnum<{
|
|
147
|
+
embedded: "embedded";
|
|
148
|
+
separate: "separate";
|
|
149
|
+
}>;
|
|
150
|
+
words: z.ZodArray<z.ZodObject<{
|
|
151
|
+
word: z.ZodString;
|
|
152
|
+
startMs: z.ZodNumber;
|
|
153
|
+
endMs: z.ZodNumber;
|
|
154
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
filler: "filler";
|
|
156
|
+
pause: "pause";
|
|
157
|
+
word: "word";
|
|
158
|
+
}>>;
|
|
159
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
snapshot: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
165
|
+
batchId: z.ZodString;
|
|
166
|
+
requestId: z.ZodString;
|
|
167
|
+
candidateId: z.ZodString;
|
|
168
|
+
variationId: z.ZodString;
|
|
169
|
+
variationIndex: z.ZodNumber;
|
|
170
|
+
destinationKind: z.ZodEnum<{
|
|
171
|
+
script_line: "script_line";
|
|
172
|
+
storyboard_shot: "storyboard_shot";
|
|
173
|
+
timeline_clip: "timeline_clip";
|
|
174
|
+
}>;
|
|
175
|
+
destinationId: z.ZodString;
|
|
176
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
179
|
+
targetVersion: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
originatingBeatId: z.ZodOptional<z.ZodString>;
|
|
181
|
+
originatingShotId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
operation: z.ZodEnum<{
|
|
183
|
+
change_line_delivery: "change_line_delivery";
|
|
184
|
+
edit_video: "edit_video";
|
|
185
|
+
initial_generation: "initial_generation";
|
|
186
|
+
new_take: "new_take";
|
|
187
|
+
}>;
|
|
188
|
+
authoringFingerprint: z.ZodOptional<z.ZodString>;
|
|
189
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
+
referenceAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
192
|
+
kind: z.ZodEnum<{
|
|
193
|
+
character: "character";
|
|
194
|
+
location: "location";
|
|
195
|
+
product: "product";
|
|
196
|
+
style: "style";
|
|
197
|
+
}>;
|
|
198
|
+
assetId: z.ZodString;
|
|
199
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
descriptor: z.ZodString;
|
|
201
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>>>;
|
|
203
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
|
+
executionRoute: z.ZodOptional<z.ZodString>;
|
|
205
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
206
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
text: z.ZodOptional<z.ZodString>;
|
|
208
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
209
|
+
voice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
210
|
+
audioAssetId: z.ZodOptional<z.ZodString>;
|
|
211
|
+
scriptId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
scriptLineId: z.ZodOptional<z.ZodString>;
|
|
213
|
+
speakerId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
takeId: z.ZodOptional<z.ZodString>;
|
|
215
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
}, z.core.$catchall<z.ZodJSONSchema>>>;
|
|
217
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
218
|
+
model: z.ZodOptional<z.ZodString>;
|
|
219
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
220
|
+
outputFormat: z.ZodOptional<z.ZodString>;
|
|
221
|
+
requestedDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
playableWindow: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
startMs: z.ZodNumber;
|
|
224
|
+
endMs: z.ZodNumber;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
parentTakeId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
sourceContext: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
sequenceId: z.ZodString;
|
|
229
|
+
clipId: z.ZodString;
|
|
230
|
+
sourceAssetId: z.ZodString;
|
|
231
|
+
sourceTakeId: z.ZodOptional<z.ZodString>;
|
|
232
|
+
sourceStartMs: z.ZodNumber;
|
|
233
|
+
sourceEndMs: z.ZodNumber;
|
|
234
|
+
timelineStartMs: z.ZodNumber;
|
|
235
|
+
timelineDurationMs: z.ZodNumber;
|
|
236
|
+
speedMultiplier: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
}, z.core.$catchall<z.ZodJSONSchema>>>;
|
|
239
|
+
documentId: z.ZodString;
|
|
240
|
+
targetVersion: z.ZodNumber;
|
|
241
|
+
}, z.core.$loose>>;
|
|
242
|
+
export type AiVideoCandidate = z.infer<typeof aiVideoCandidateSchema>;
|
|
243
|
+
export declare function landAiVideoCandidateInactive(candidate: unknown, assetId: string): AiVideoCandidate;
|
|
244
|
+
export type AiVideoPreviewSelection = ProductionPreviewSelection;
|
|
245
|
+
export declare const selectAiVideoPreview: typeof selectProductionPreview;
|
|
246
|
+
export type AiVideoAcceptanceTarget = ProductionAcceptanceTarget;
|
|
247
|
+
export type AiVideoAcceptanceValidation = ProductionAcceptanceValidation;
|
|
248
|
+
export declare const validateAiVideoAcceptance: typeof validateProductionAcceptance;
|
|
249
|
+
//# sourceMappingURL=ai-video-production.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-video-production.d.ts","sourceRoot":"","sources":["../src/ai-video-production.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAQL,uBAAuB,EACvB,4BAA4B,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACtC,MAAM,2BAA2B,CAAC;AAInC,eAAO,MAAM,kCAAkC,GACV,CAAC;AA8DtC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgBtB,CAAC;AACpB,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4BtB,CAAC;AAC1B,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAgBF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;kBAKnD,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,WAAW,8BAA+B,SAAQ,gCAAgC;IACtF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,8BAA8B,GACpC,iCAAiC,CAKnC;AAED,gFAAgF;AAChF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWlC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,MAAM,GACd,gBAAgB,CAOlB;AAED,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AACjE,eAAO,MAAM,oBAAoB,gCAA0B,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AACjE,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CAAC;AACzE,eAAO,MAAM,yBAAyB,qCAA+B,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { isBoolean, isNumber, isRecord, isString } from "./predicates.js";
|
|
3
|
+
import { PRODUCTION_AUTHORING_SCHEMA_VERSION, creativeContext, productionRequirement, productionCandidate, productionVariationIdentity, productionVariationIdentitySchema, landProductionCandidateInactive, selectProductionPreview, validateProductionAcceptance } from "./production-authoring.js";
|
|
4
|
+
// Compatibility boundaries for the original camelCase AI-video API. Parsed
|
|
5
|
+
// values always use production-authoring's canonical fields and lifecycle.
|
|
6
|
+
export const AI_VIDEO_PRODUCTION_SCHEMA_VERSION = PRODUCTION_AUTHORING_SCHEMA_VERSION;
|
|
7
|
+
function isLegacyRecord(value) {
|
|
8
|
+
return isRecord(value);
|
|
9
|
+
}
|
|
10
|
+
/** Decode values from the JSON-compatible legacy API before rewriting keys. */
|
|
11
|
+
function parseLegacyInput(input) {
|
|
12
|
+
if (input === null || input === undefined) {
|
|
13
|
+
return input;
|
|
14
|
+
}
|
|
15
|
+
if (isRecord(input)) {
|
|
16
|
+
const output = {};
|
|
17
|
+
for (const [key, child] of Object.entries(input)) {
|
|
18
|
+
output[key] = parseLegacyInput(child);
|
|
19
|
+
}
|
|
20
|
+
return output;
|
|
21
|
+
}
|
|
22
|
+
if (Array.isArray(input)) {
|
|
23
|
+
return input.map((child) => parseLegacyInput(child));
|
|
24
|
+
}
|
|
25
|
+
if (isString(input) || isNumber(input) || isBoolean(input)) {
|
|
26
|
+
return input;
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
function aliases(value, keys) {
|
|
31
|
+
if (!isLegacyRecord(value)) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
const output = {};
|
|
35
|
+
for (const [key, child] of Object.entries(value)) {
|
|
36
|
+
const canonical = keys[key] ?? key;
|
|
37
|
+
if (canonical === key || !Object.hasOwn(value, canonical)) {
|
|
38
|
+
output[canonical] = child;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return output;
|
|
42
|
+
}
|
|
43
|
+
function referenceBindings(value) {
|
|
44
|
+
return Array.isArray(value)
|
|
45
|
+
? value.map((binding) => aliases(binding, { assetId: "asset_id", entityId: "entity_id" }))
|
|
46
|
+
: value;
|
|
47
|
+
}
|
|
48
|
+
export const aiVideoCreativeContextSchema = z.preprocess((input) => {
|
|
49
|
+
const value = aliases(parseLegacyInput(input), {
|
|
50
|
+
schemaVersion: "schema_version",
|
|
51
|
+
productName: "product_name",
|
|
52
|
+
productDescription: "product_description",
|
|
53
|
+
approvedClaims: "approved_claims",
|
|
54
|
+
prohibitedClaims: "prohibited_claims",
|
|
55
|
+
referenceBindings: "reference_bindings"
|
|
56
|
+
});
|
|
57
|
+
if (!isRecord(value)) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
if (Object.hasOwn(value, "reference_bindings")) {
|
|
61
|
+
value.reference_bindings = referenceBindings(value.reference_bindings);
|
|
62
|
+
}
|
|
63
|
+
return value;
|
|
64
|
+
}, creativeContext);
|
|
65
|
+
export const aiVideoProductionRequirementSchema = z.preprocess((input) => {
|
|
66
|
+
const value = aliases(parseLegacyInput(input), {
|
|
67
|
+
schemaVersion: "schema_version",
|
|
68
|
+
editorialPurpose: "editorial_purpose",
|
|
69
|
+
visualTreatment: "visual_treatment",
|
|
70
|
+
speechMode: "speech_mode",
|
|
71
|
+
speechBinding: "speech_binding",
|
|
72
|
+
referenceBindings: "reference_bindings",
|
|
73
|
+
durationMs: "duration_ms",
|
|
74
|
+
speechDurationMs: "speech_duration_ms",
|
|
75
|
+
localDirection: "local_direction",
|
|
76
|
+
requestedTakeCount: "requested_take_count"
|
|
77
|
+
});
|
|
78
|
+
if (!isRecord(value)) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
if (Object.hasOwn(value, "reference_bindings")) {
|
|
82
|
+
value.reference_bindings = referenceBindings(value.reference_bindings);
|
|
83
|
+
}
|
|
84
|
+
if (Object.hasOwn(value, "speech_binding")) {
|
|
85
|
+
value.speech_binding = aliases(value.speech_binding, {
|
|
86
|
+
scriptLineId: "script_line_id",
|
|
87
|
+
speakerId: "speaker_id",
|
|
88
|
+
audioAssetId: "audio_asset_id",
|
|
89
|
+
voiceId: "voice_id"
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return value;
|
|
93
|
+
}, productionRequirement);
|
|
94
|
+
function legacyCandidateIdentity(input) {
|
|
95
|
+
const value = parseLegacyInput(input);
|
|
96
|
+
if (!isLegacyRecord(value)) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
const output = {
|
|
100
|
+
...value
|
|
101
|
+
};
|
|
102
|
+
if (output.requestId === undefined && isString(output.candidateId)) {
|
|
103
|
+
output.requestId = `request:${output.candidateId}`;
|
|
104
|
+
}
|
|
105
|
+
return output;
|
|
106
|
+
}
|
|
107
|
+
export const aiVideoCandidateVariationIdentitySchema = z.preprocess(legacyCandidateIdentity, productionVariationIdentitySchema.safeExtend({
|
|
108
|
+
documentId: z.string().trim().min(1)
|
|
109
|
+
}));
|
|
110
|
+
export function createAiVideoCandidateVariation(input) {
|
|
111
|
+
return aiVideoCandidateVariationIdentitySchema.parse({
|
|
112
|
+
...productionVariationIdentity(input),
|
|
113
|
+
documentId: input.documentId
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/** Legacy pending means planned. No snapshot is invented for old candidates. */
|
|
117
|
+
export const aiVideoCandidateSchema = z.preprocess((input) => {
|
|
118
|
+
const value = legacyCandidateIdentity(input);
|
|
119
|
+
return isRecord(value) && value.status === "pending"
|
|
120
|
+
? { ...value, status: "planned" }
|
|
121
|
+
: value;
|
|
122
|
+
}, productionCandidate.safeExtend({
|
|
123
|
+
documentId: z.string().trim().min(1),
|
|
124
|
+
targetVersion: z.number().int().nonnegative()
|
|
125
|
+
}));
|
|
126
|
+
export function landAiVideoCandidateInactive(candidate, assetId) {
|
|
127
|
+
return aiVideoCandidateSchema.parse(landProductionCandidateInactive(aiVideoCandidateSchema.parse(candidate), assetId));
|
|
128
|
+
}
|
|
129
|
+
export const selectAiVideoPreview = selectProductionPreview;
|
|
130
|
+
export const validateAiVideoAcceptance = validateProductionAcceptance;
|
|
131
|
+
//# sourceMappingURL=ai-video-production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-video-production.js","sourceRoot":"","sources":["../src/ai-video-production.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EACL,mCAAmC,EACnC,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,iCAAi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E,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC9C,CAAC,CACH,CAAC;AAGF,MAAM,UAAU,4BAA4B,CAC1C,SAAkB,EAClB,OAAe;IAEf,OAAO,sBAAsB,CAAC,KAAK,CACjC,+BAA+B,CAC7B,sBAAsB,CAAC,KAAK,CAAC,SAAS,CAAC,EACvC,OAAO,CACR,CACF,CAAC;AACJ,CAAC;AAGD,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAG5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Schemas for the agent-access surface: the MCP connection this server offers,
|
|
4
|
+
* and the revocable tokens a person mints to reach it from another machine.
|
|
5
|
+
*/
|
|
6
|
+
/** A token as it is safe to list: everything except the secret. */
|
|
7
|
+
export declare const accessTokenSummary: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
created_at: z.ZodString;
|
|
11
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type AccessTokenSummary = z.infer<typeof accessTokenSummary>;
|
|
15
|
+
export declare const listTokensOutput: z.ZodObject<{
|
|
16
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
created_at: z.ZodString;
|
|
20
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type ListTokensOutput = z.infer<typeof listTokensOutput>;
|
|
25
|
+
/** A year is the longest lifetime the UI offers; `null` never expires. */
|
|
26
|
+
export declare const createTokenInput: z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
expires_in_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type CreateTokenInput = z.infer<typeof createTokenInput>;
|
|
31
|
+
export declare const createTokenOutput: z.ZodObject<{
|
|
32
|
+
token: z.ZodString;
|
|
33
|
+
record: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
created_at: z.ZodString;
|
|
37
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
38
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type CreateTokenOutput = z.infer<typeof createTokenOutput>;
|
|
42
|
+
export declare const revokeTokenInput: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type RevokeTokenInput = z.infer<typeof revokeTokenInput>;
|
|
46
|
+
export declare const revokeTokenOutput: z.ZodObject<{
|
|
47
|
+
revoked: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type RevokeTokenOutput = z.infer<typeof revokeTokenOutput>;
|
|
50
|
+
/**
|
|
51
|
+
* How this server expects an agent to authenticate.
|
|
52
|
+
*
|
|
53
|
+
* - `token` — a minted access token in an `Authorization: Bearer` header.
|
|
54
|
+
* The answer in every mode where a credential is actually checked.
|
|
55
|
+
* - `none` — the server trusts the caller's network and asks for nothing.
|
|
56
|
+
* Local mode reached over loopback or a trusted CIDR.
|
|
57
|
+
*/
|
|
58
|
+
export declare const mcpAuthMode: z.ZodEnum<{
|
|
59
|
+
none: "none";
|
|
60
|
+
token: "token";
|
|
61
|
+
}>;
|
|
62
|
+
export type McpAuthMode = z.infer<typeof mcpAuthMode>;
|
|
63
|
+
export declare const mcpConnectionOutput: z.ZodObject<{
|
|
64
|
+
enabled: z.ZodBoolean;
|
|
65
|
+
url: z.ZodNullable<z.ZodString>;
|
|
66
|
+
auth_mode: z.ZodEnum<{
|
|
67
|
+
none: "none";
|
|
68
|
+
token: "token";
|
|
69
|
+
}>;
|
|
70
|
+
enable_flag: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type McpConnectionOutput = z.infer<typeof mcpConnectionOutput>;
|
|
73
|
+
/** A pending `/oauth/authorize` request, and every other OAuth procedure
|
|
74
|
+
* that acts on one — all keyed by the same `request_id` the SPA carries in
|
|
75
|
+
* its `/oauth/consent` query string. */
|
|
76
|
+
export declare const oauthRequestIdInput: z.ZodObject<{
|
|
77
|
+
request_id: z.ZodString;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type OauthRequestIdInput = z.infer<typeof oauthRequestIdInput>;
|
|
80
|
+
/** What the consent page shows: who is asking, where they redirect to, and
|
|
81
|
+
* for what. `loopback_only` drives the impersonation warning — CIMD cannot
|
|
82
|
+
* vouch for a client whose every registered redirect URI is localhost. */
|
|
83
|
+
export declare const oauthRequestSummary: z.ZodObject<{
|
|
84
|
+
client_name: z.ZodString;
|
|
85
|
+
redirect_host: z.ZodString;
|
|
86
|
+
scope: z.ZodString;
|
|
87
|
+
loopback_only: z.ZodBoolean;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type OauthRequestSummary = z.infer<typeof oauthRequestSummary>;
|
|
90
|
+
/** Null when the request_id is unknown or its 10-minute TTL has elapsed —
|
|
91
|
+
* the consent page renders an "expired" state rather than an error. */
|
|
92
|
+
export declare const getOauthRequestOutput: z.ZodNullable<z.ZodObject<{
|
|
93
|
+
client_name: z.ZodString;
|
|
94
|
+
redirect_host: z.ZodString;
|
|
95
|
+
scope: z.ZodString;
|
|
96
|
+
loopback_only: z.ZodBoolean;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
export type GetOauthRequestOutput = z.infer<typeof getOauthRequestOutput>;
|
|
99
|
+
/** Approve/deny both resolve to a redirect the SPA navigates the browser
|
|
100
|
+
* to — the authorization code (or `error=access_denied`), the echoed
|
|
101
|
+
* `state`, and `iss` are all encoded in this one URL. */
|
|
102
|
+
export declare const oauthRedirectOutput: z.ZodObject<{
|
|
103
|
+
redirect_url: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type OauthRedirectOutput = z.infer<typeof oauthRedirectOutput>;
|
|
106
|
+
/** A grant as it is safe to list: everything a person needs to recognize
|
|
107
|
+
* and revoke a connected client, no secret material. */
|
|
108
|
+
export declare const oauthGrantSummary: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
client_name: z.ZodString;
|
|
111
|
+
client_id: z.ZodString;
|
|
112
|
+
created_at: z.ZodString;
|
|
113
|
+
scope: z.ZodString;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type OauthGrantSummary = z.infer<typeof oauthGrantSummary>;
|
|
116
|
+
export declare const listOauthGrantsOutput: z.ZodObject<{
|
|
117
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
client_name: z.ZodString;
|
|
120
|
+
client_id: z.ZodString;
|
|
121
|
+
created_at: z.ZodString;
|
|
122
|
+
scope: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type ListOauthGrantsOutput = z.infer<typeof listOauthGrantsOutput>;
|
|
126
|
+
export declare const revokeOauthGrantInput: z.ZodObject<{
|
|
127
|
+
grant_id: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export type RevokeOauthGrantInput = z.infer<typeof revokeOauthGrantInput>;
|
|
130
|
+
export declare const revokeOauthGrantOutput: z.ZodObject<{
|
|
131
|
+
ok: z.ZodBoolean;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type RevokeOauthGrantOutput = z.infer<typeof revokeOauthGrantOutput>;
|
|
134
|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