@sogni-ai/sogni-intelligence-client 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (819) hide show
  1. package/.env.example +33 -0
  2. package/LICENSE +22 -0
  3. package/README.md +259 -0
  4. package/chatRun/index.d.ts +1 -0
  5. package/chatRun/index.js +2 -0
  6. package/context/index.d.ts +1 -0
  7. package/context/index.js +2 -0
  8. package/contracts/index.d.ts +1 -0
  9. package/contracts/index.js +2 -0
  10. package/dist/chatRun/costApproval.d.ts +10 -0
  11. package/dist/chatRun/costApproval.d.ts.map +1 -0
  12. package/dist/chatRun/costApproval.js +70 -0
  13. package/dist/chatRun/costApproval.js.map +1 -0
  14. package/dist/chatRun/index.d.ts +207 -0
  15. package/dist/chatRun/index.d.ts.map +1 -0
  16. package/dist/chatRun/index.js +350 -0
  17. package/dist/chatRun/index.js.map +1 -0
  18. package/dist/client/SogniClientWrapper.d.ts +86 -0
  19. package/dist/client/SogniClientWrapper.d.ts.map +1 -0
  20. package/dist/client/SogniClientWrapper.js +914 -0
  21. package/dist/client/SogniClientWrapper.js.map +1 -0
  22. package/dist/context/index.d.ts +56 -0
  23. package/dist/context/index.d.ts.map +1 -0
  24. package/dist/context/index.js +460 -0
  25. package/dist/context/index.js.map +1 -0
  26. package/dist/contracts/backboneDurableWorkflow.d.ts +82 -0
  27. package/dist/contracts/backboneDurableWorkflow.d.ts.map +1 -0
  28. package/dist/contracts/backboneDurableWorkflow.js +96 -0
  29. package/dist/contracts/backboneDurableWorkflow.js.map +1 -0
  30. package/dist/contracts/backboneToolCatalog.d.ts +7 -0
  31. package/dist/contracts/backboneToolCatalog.d.ts.map +1 -0
  32. package/dist/contracts/backboneToolCatalog.js +62 -0
  33. package/dist/contracts/backboneToolCatalog.js.map +1 -0
  34. package/dist/contracts/composeWorkflowTypes.d.ts +6 -0
  35. package/dist/contracts/composeWorkflowTypes.d.ts.map +1 -0
  36. package/dist/contracts/composeWorkflowTypes.js +3 -0
  37. package/dist/contracts/composeWorkflowTypes.js.map +1 -0
  38. package/dist/contracts/data/costEstimation.d.ts +5 -0
  39. package/dist/contracts/data/costEstimation.d.ts.map +1 -0
  40. package/dist/contracts/data/costEstimation.js +22 -0
  41. package/dist/contracts/data/costEstimation.js.map +1 -0
  42. package/dist/contracts/data/gatingPolicies.d.ts +6 -0
  43. package/dist/contracts/data/gatingPolicies.d.ts.map +1 -0
  44. package/dist/contracts/data/gatingPolicies.js +218 -0
  45. package/dist/contracts/data/gatingPolicies.js.map +1 -0
  46. package/dist/contracts/data/gatingPoliciesToolSurface.d.ts +7 -0
  47. package/dist/contracts/data/gatingPoliciesToolSurface.d.ts.map +1 -0
  48. package/dist/contracts/data/gatingPoliciesToolSurface.js +61 -0
  49. package/dist/contracts/data/gatingPoliciesToolSurface.js.map +1 -0
  50. package/dist/contracts/data/index.d.ts +14 -0
  51. package/dist/contracts/data/index.d.ts.map +1 -0
  52. package/dist/contracts/data/index.js +57 -0
  53. package/dist/contracts/data/index.js.map +1 -0
  54. package/dist/contracts/data/promptContracts.d.ts +5 -0
  55. package/dist/contracts/data/promptContracts.d.ts.map +1 -0
  56. package/dist/contracts/data/promptContracts.js +1286 -0
  57. package/dist/contracts/data/promptContracts.js.map +1 -0
  58. package/dist/contracts/data/repairRecipes.d.ts +5 -0
  59. package/dist/contracts/data/repairRecipes.d.ts.map +1 -0
  60. package/dist/contracts/data/repairRecipes.js +197 -0
  61. package/dist/contracts/data/repairRecipes.js.map +1 -0
  62. package/dist/contracts/data/toolCatalog.d.ts +31 -0
  63. package/dist/contracts/data/toolCatalog.d.ts.map +1 -0
  64. package/dist/contracts/data/toolCatalog.js +129 -0
  65. package/dist/contracts/data/toolCatalog.js.map +1 -0
  66. package/dist/contracts/data/toolCostMetadata.d.ts +16 -0
  67. package/dist/contracts/data/toolCostMetadata.d.ts.map +1 -0
  68. package/dist/contracts/data/toolCostMetadata.js +284 -0
  69. package/dist/contracts/data/toolCostMetadata.js.map +1 -0
  70. package/dist/contracts/data/toolPermissions.d.ts +27 -0
  71. package/dist/contracts/data/toolPermissions.d.ts.map +1 -0
  72. package/dist/contracts/data/toolPermissions.js +78 -0
  73. package/dist/contracts/data/toolPermissions.js.map +1 -0
  74. package/dist/contracts/evaluators.d.ts +94 -0
  75. package/dist/contracts/evaluators.d.ts.map +1 -0
  76. package/dist/contracts/evaluators.js +468 -0
  77. package/dist/contracts/evaluators.js.map +1 -0
  78. package/dist/contracts/hostedComposition.d.ts +85 -0
  79. package/dist/contracts/hostedComposition.d.ts.map +1 -0
  80. package/dist/contracts/hostedComposition.js +139 -0
  81. package/dist/contracts/hostedComposition.js.map +1 -0
  82. package/dist/contracts/hostedToolValidation.d.ts +47 -0
  83. package/dist/contracts/hostedToolValidation.d.ts.map +1 -0
  84. package/dist/contracts/hostedToolValidation.js +301 -0
  85. package/dist/contracts/hostedToolValidation.js.map +1 -0
  86. package/dist/contracts/idLoraPrompt.d.ts +13 -0
  87. package/dist/contracts/idLoraPrompt.d.ts.map +1 -0
  88. package/dist/contracts/idLoraPrompt.js +78 -0
  89. package/dist/contracts/idLoraPrompt.js.map +1 -0
  90. package/dist/contracts/imagePrompt.d.ts +16 -0
  91. package/dist/contracts/imagePrompt.d.ts.map +1 -0
  92. package/dist/contracts/imagePrompt.js +148 -0
  93. package/dist/contracts/imagePrompt.js.map +1 -0
  94. package/dist/contracts/index.d.ts +48 -0
  95. package/dist/contracts/index.d.ts.map +1 -0
  96. package/dist/contracts/index.js +156 -0
  97. package/dist/contracts/index.js.map +1 -0
  98. package/dist/contracts/musicComposition.d.ts +17 -0
  99. package/dist/contracts/musicComposition.d.ts.map +1 -0
  100. package/dist/contracts/musicComposition.js +188 -0
  101. package/dist/contracts/musicComposition.js.map +1 -0
  102. package/dist/contracts/promptContract.d.ts +11 -0
  103. package/dist/contracts/promptContract.d.ts.map +1 -0
  104. package/dist/contracts/promptContract.js +37 -0
  105. package/dist/contracts/promptContract.js.map +1 -0
  106. package/dist/contracts/promptOverrideMarker.d.ts +2 -0
  107. package/dist/contracts/promptOverrideMarker.d.ts.map +1 -0
  108. package/dist/contracts/promptOverrideMarker.js +5 -0
  109. package/dist/contracts/promptOverrideMarker.js.map +1 -0
  110. package/dist/contracts/randomThemes.d.ts +5 -0
  111. package/dist/contracts/randomThemes.d.ts.map +1 -0
  112. package/dist/contracts/randomThemes.js +159 -0
  113. package/dist/contracts/randomThemes.js.map +1 -0
  114. package/dist/contracts/registry.d.ts +29 -0
  115. package/dist/contracts/registry.d.ts.map +1 -0
  116. package/dist/contracts/registry.js +104 -0
  117. package/dist/contracts/registry.js.map +1 -0
  118. package/dist/contracts/repairRecipe.d.ts +14 -0
  119. package/dist/contracts/repairRecipe.d.ts.map +1 -0
  120. package/dist/contracts/repairRecipe.js +38 -0
  121. package/dist/contracts/repairRecipe.js.map +1 -0
  122. package/dist/contracts/storyboard.d.ts +113 -0
  123. package/dist/contracts/storyboard.d.ts.map +1 -0
  124. package/dist/contracts/storyboard.js +7 -0
  125. package/dist/contracts/storyboard.js.map +1 -0
  126. package/dist/contracts/telemetry.d.ts +57 -0
  127. package/dist/contracts/telemetry.d.ts.map +1 -0
  128. package/dist/contracts/telemetry.js +37 -0
  129. package/dist/contracts/telemetry.js.map +1 -0
  130. package/dist/contracts/toolGatingPolicy.d.ts +19 -0
  131. package/dist/contracts/toolGatingPolicy.d.ts.map +1 -0
  132. package/dist/contracts/toolGatingPolicy.js +63 -0
  133. package/dist/contracts/toolGatingPolicy.js.map +1 -0
  134. package/dist/contracts/toolPromptMarkers.d.ts +9 -0
  135. package/dist/contracts/toolPromptMarkers.d.ts.map +1 -0
  136. package/dist/contracts/toolPromptMarkers.js +13 -0
  137. package/dist/contracts/toolPromptMarkers.js.map +1 -0
  138. package/dist/contracts/toolSurface.d.ts +46 -0
  139. package/dist/contracts/toolSurface.d.ts.map +1 -0
  140. package/dist/contracts/toolSurface.js +119 -0
  141. package/dist/contracts/toolSurface.js.map +1 -0
  142. package/dist/contracts/turnPolicy.d.ts +22 -0
  143. package/dist/contracts/turnPolicy.d.ts.map +1 -0
  144. package/dist/contracts/turnPolicy.js +16 -0
  145. package/dist/contracts/turnPolicy.js.map +1 -0
  146. package/dist/contracts/videoComposition.d.ts +35 -0
  147. package/dist/contracts/videoComposition.d.ts.map +1 -0
  148. package/dist/contracts/videoComposition.js +224 -0
  149. package/dist/contracts/videoComposition.js.map +1 -0
  150. package/dist/index.d.ts +11 -0
  151. package/dist/index.d.ts.map +1 -0
  152. package/dist/index.js +59 -0
  153. package/dist/index.js.map +1 -0
  154. package/dist/media/aspectRatio.d.ts +15 -0
  155. package/dist/media/aspectRatio.d.ts.map +1 -0
  156. package/dist/media/aspectRatio.js +72 -0
  157. package/dist/media/aspectRatio.js.map +1 -0
  158. package/dist/media/audioReference.d.ts +57 -0
  159. package/dist/media/audioReference.d.ts.map +1 -0
  160. package/dist/media/audioReference.js +194 -0
  161. package/dist/media/audioReference.js.map +1 -0
  162. package/dist/media/cameraAngle.d.ts +170 -0
  163. package/dist/media/cameraAngle.d.ts.map +1 -0
  164. package/dist/media/cameraAngle.js +48 -0
  165. package/dist/media/cameraAngle.js.map +1 -0
  166. package/dist/media/characterSheet.d.ts +9 -0
  167. package/dist/media/characterSheet.d.ts.map +1 -0
  168. package/dist/media/characterSheet.js +54 -0
  169. package/dist/media/characterSheet.js.map +1 -0
  170. package/dist/media/danceMontage.d.ts +18 -0
  171. package/dist/media/danceMontage.d.ts.map +1 -0
  172. package/dist/media/danceMontage.js +34 -0
  173. package/dist/media/danceMontage.js.map +1 -0
  174. package/dist/media/enhancementProfiles.d.ts +158 -0
  175. package/dist/media/enhancementProfiles.d.ts.map +1 -0
  176. package/dist/media/enhancementProfiles.js +224 -0
  177. package/dist/media/enhancementProfiles.js.map +1 -0
  178. package/dist/media/generationJob.d.ts +81 -0
  179. package/dist/media/generationJob.d.ts.map +1 -0
  180. package/dist/media/generationJob.js +91 -0
  181. package/dist/media/generationJob.js.map +1 -0
  182. package/dist/media/gptImage.d.ts +21 -0
  183. package/dist/media/gptImage.d.ts.map +1 -0
  184. package/dist/media/gptImage.js +162 -0
  185. package/dist/media/gptImage.js.map +1 -0
  186. package/dist/media/imageDimensions.d.ts +24 -0
  187. package/dist/media/imageDimensions.d.ts.map +1 -0
  188. package/dist/media/imageDimensions.js +64 -0
  189. package/dist/media/imageDimensions.js.map +1 -0
  190. package/dist/media/index.d.ts +16 -0
  191. package/dist/media/index.d.ts.map +1 -0
  192. package/dist/media/index.js +32 -0
  193. package/dist/media/index.js.map +1 -0
  194. package/dist/media/musicSettings.d.ts +86 -0
  195. package/dist/media/musicSettings.d.ts.map +1 -0
  196. package/dist/media/musicSettings.js +234 -0
  197. package/dist/media/musicSettings.js.map +1 -0
  198. package/dist/media/vendorModelPremium.d.ts +21 -0
  199. package/dist/media/vendorModelPremium.d.ts.map +1 -0
  200. package/dist/media/vendorModelPremium.js +89 -0
  201. package/dist/media/vendorModelPremium.js.map +1 -0
  202. package/dist/media/videoAppSettings.d.ts +41 -0
  203. package/dist/media/videoAppSettings.d.ts.map +1 -0
  204. package/dist/media/videoAppSettings.js +128 -0
  205. package/dist/media/videoAppSettings.js.map +1 -0
  206. package/dist/media/videoContentLimit.d.ts +15 -0
  207. package/dist/media/videoContentLimit.d.ts.map +1 -0
  208. package/dist/media/videoContentLimit.js +169 -0
  209. package/dist/media/videoContentLimit.js.map +1 -0
  210. package/dist/media/videoReference.d.ts +35 -0
  211. package/dist/media/videoReference.d.ts.map +1 -0
  212. package/dist/media/videoReference.js +77 -0
  213. package/dist/media/videoReference.js.map +1 -0
  214. package/dist/media/videoSettings.d.ts +50 -0
  215. package/dist/media/videoSettings.d.ts.map +1 -0
  216. package/dist/media/videoSettings.js +200 -0
  217. package/dist/media/videoSettings.js.map +1 -0
  218. package/dist/openai-tools/_manifests.generated.d.ts +4 -0
  219. package/dist/openai-tools/_manifests.generated.d.ts.map +1 -0
  220. package/dist/openai-tools/_manifests.generated.js +1792 -0
  221. package/dist/openai-tools/_manifests.generated.js.map +1 -0
  222. package/dist/openai-tools/app-tools.json +297 -0
  223. package/dist/openai-tools/composition-tools.json +228 -0
  224. package/dist/openai-tools/generation-tools.json +1263 -0
  225. package/dist/openai-tools/index.d.ts +17 -0
  226. package/dist/openai-tools/index.d.ts.map +1 -0
  227. package/dist/openai-tools/index.js +32 -0
  228. package/dist/openai-tools/index.js.map +1 -0
  229. package/dist/public-skill-runtime/index.d.ts +1222 -0
  230. package/dist/public-skill-runtime/index.d.ts.map +1 -0
  231. package/dist/public-skill-runtime/index.js +6492 -0
  232. package/dist/public-skill-runtime/index.js.map +1 -0
  233. package/dist/replay/index.d.ts +4 -0
  234. package/dist/replay/index.d.ts.map +1 -0
  235. package/dist/replay/index.js +12 -0
  236. package/dist/replay/index.js.map +1 -0
  237. package/dist/replay/redact.d.ts +7 -0
  238. package/dist/replay/redact.d.ts.map +1 -0
  239. package/dist/replay/redact.js +108 -0
  240. package/dist/replay/redact.js.map +1 -0
  241. package/dist/replay/types.d.ts +61 -0
  242. package/dist/replay/types.d.ts.map +1 -0
  243. package/dist/replay/types.js +24 -0
  244. package/dist/replay/types.js.map +1 -0
  245. package/dist/runtime/chatTypes.d.ts +47 -0
  246. package/dist/runtime/chatTypes.d.ts.map +1 -0
  247. package/dist/runtime/chatTypes.js +3 -0
  248. package/dist/runtime/chatTypes.js.map +1 -0
  249. package/dist/runtime/durableWorkflowClient.d.ts +80 -0
  250. package/dist/runtime/durableWorkflowClient.d.ts.map +1 -0
  251. package/dist/runtime/durableWorkflowClient.js +312 -0
  252. package/dist/runtime/durableWorkflowClient.js.map +1 -0
  253. package/dist/runtime/index.d.ts +3 -0
  254. package/dist/runtime/index.d.ts.map +1 -0
  255. package/dist/runtime/index.js +18 -0
  256. package/dist/runtime/index.js.map +1 -0
  257. package/dist/schemas/errors/error.schema.json +21 -0
  258. package/dist/schemas/errors/repair-control.schema.json +40 -0
  259. package/dist/schemas/events/artifact-reference.schema.json +22 -0
  260. package/dist/schemas/events/progress-event.schema.json +28 -0
  261. package/dist/schemas/events/workflow-event.schema.json +22 -0
  262. package/dist/schemas/storyboards/storyboard-planning-contract.schema.json +108 -0
  263. package/dist/schemas/tools/add_subtitles.schema.json +77 -0
  264. package/dist/schemas/tools/animate_photo.schema.json +104 -0
  265. package/dist/schemas/tools/apply_style.schema.json +37 -0
  266. package/dist/schemas/tools/change_angle.schema.json +30 -0
  267. package/dist/schemas/tools/compose_instrumental.schema.json +24 -0
  268. package/dist/schemas/tools/compose_lyrics.schema.json +28 -0
  269. package/dist/schemas/tools/compose_script.schema.json +68 -0
  270. package/dist/schemas/tools/compose_workflow.schema.json +67 -0
  271. package/dist/schemas/tools/compose_workflow_template.schema.json +156 -0
  272. package/dist/schemas/tools/dance_montage.schema.json +47 -0
  273. package/dist/schemas/tools/edit_image.schema.json +74 -0
  274. package/dist/schemas/tools/enhance_prompt.schema.json +76 -0
  275. package/dist/schemas/tools/extend_video.schema.json +42 -0
  276. package/dist/schemas/tools/generate_image.schema.json +104 -0
  277. package/dist/schemas/tools/generate_music.schema.json +62 -0
  278. package/dist/schemas/tools/generate_video.schema.json +97 -0
  279. package/dist/schemas/tools/orbit_video.schema.json +70 -0
  280. package/dist/schemas/tools/overlay_video.schema.json +126 -0
  281. package/dist/schemas/tools/refine_result.schema.json +43 -0
  282. package/dist/schemas/tools/replace_video_segment.schema.json +60 -0
  283. package/dist/schemas/tools/restore_photo.schema.json +47 -0
  284. package/dist/schemas/tools/sound_to_video.schema.json +70 -0
  285. package/dist/schemas/tools/stitch_video.schema.json +52 -0
  286. package/dist/schemas/tools/video_to_video.schema.json +77 -0
  287. package/dist/schemas/workflows/durable-workflow-run.schema.json +165 -0
  288. package/dist/schemas/workflows/durable-workflow-step.schema.json +141 -0
  289. package/dist/skill-runtime-source/crossSurfaceParity.d.ts +23 -0
  290. package/dist/skill-runtime-source/crossSurfaceParity.d.ts.map +1 -0
  291. package/dist/skill-runtime-source/crossSurfaceParity.js +472 -0
  292. package/dist/skill-runtime-source/crossSurfaceParity.js.map +1 -0
  293. package/dist/skill-runtime-source/index.d.ts +4 -0
  294. package/dist/skill-runtime-source/index.d.ts.map +1 -0
  295. package/dist/skill-runtime-source/index.js +20 -0
  296. package/dist/skill-runtime-source/index.js.map +1 -0
  297. package/dist/skill-runtime-source/seedanceAudioWindow.d.ts +8 -0
  298. package/dist/skill-runtime-source/seedanceAudioWindow.d.ts.map +1 -0
  299. package/dist/skill-runtime-source/seedanceAudioWindow.js +52 -0
  300. package/dist/skill-runtime-source/seedanceAudioWindow.js.map +1 -0
  301. package/dist/skill-runtime-source/workflowStatus.d.ts +17 -0
  302. package/dist/skill-runtime-source/workflowStatus.d.ts.map +1 -0
  303. package/dist/skill-runtime-source/workflowStatus.js +353 -0
  304. package/dist/skill-runtime-source/workflowStatus.js.map +1 -0
  305. package/dist/skills/asset_reference_management/index.d.ts +6 -0
  306. package/dist/skills/asset_reference_management/index.d.ts.map +1 -0
  307. package/dist/skills/asset_reference_management/index.js +18 -0
  308. package/dist/skills/asset_reference_management/index.js.map +1 -0
  309. package/dist/skills/asset_reference_management/manifest.d.ts +42 -0
  310. package/dist/skills/asset_reference_management/manifest.d.ts.map +1 -0
  311. package/dist/skills/asset_reference_management/manifest.js +237 -0
  312. package/dist/skills/asset_reference_management/manifest.js.map +1 -0
  313. package/dist/skills/asset_reference_management/modelRefRegistry.d.ts +24 -0
  314. package/dist/skills/asset_reference_management/modelRefRegistry.d.ts.map +1 -0
  315. package/dist/skills/asset_reference_management/modelRefRegistry.js +136 -0
  316. package/dist/skills/asset_reference_management/modelRefRegistry.js.map +1 -0
  317. package/dist/skills/asset_reference_management/types.d.ts +31 -0
  318. package/dist/skills/asset_reference_management/types.d.ts.map +1 -0
  319. package/dist/skills/asset_reference_management/types.js +3 -0
  320. package/dist/skills/asset_reference_management/types.js.map +1 -0
  321. package/dist/tools/definitions/add-subtitles/definition.d.ts +4 -0
  322. package/dist/tools/definitions/add-subtitles/definition.d.ts.map +1 -0
  323. package/dist/tools/definitions/add-subtitles/definition.js +83 -0
  324. package/dist/tools/definitions/add-subtitles/definition.js.map +1 -0
  325. package/dist/tools/definitions/animate-photo/definition.d.ts +3 -0
  326. package/dist/tools/definitions/animate-photo/definition.d.ts.map +1 -0
  327. package/dist/tools/definitions/animate-photo/definition.js +124 -0
  328. package/dist/tools/definitions/animate-photo/definition.js.map +1 -0
  329. package/dist/tools/definitions/apply-style/definition.d.ts +3 -0
  330. package/dist/tools/definitions/apply-style/definition.d.ts.map +1 -0
  331. package/dist/tools/definitions/apply-style/definition.js +50 -0
  332. package/dist/tools/definitions/apply-style/definition.js.map +1 -0
  333. package/dist/tools/definitions/change-angle/definition.d.ts +3 -0
  334. package/dist/tools/definitions/change-angle/definition.d.ts.map +1 -0
  335. package/dist/tools/definitions/change-angle/definition.js +49 -0
  336. package/dist/tools/definitions/change-angle/definition.js.map +1 -0
  337. package/dist/tools/definitions/dance-montage/dances.d.ts +11 -0
  338. package/dist/tools/definitions/dance-montage/dances.d.ts.map +1 -0
  339. package/dist/tools/definitions/dance-montage/dances.js +90 -0
  340. package/dist/tools/definitions/dance-montage/dances.js.map +1 -0
  341. package/dist/tools/definitions/dance-montage/definition.d.ts +3 -0
  342. package/dist/tools/definitions/dance-montage/definition.d.ts.map +1 -0
  343. package/dist/tools/definitions/dance-montage/definition.js +45 -0
  344. package/dist/tools/definitions/dance-montage/definition.js.map +1 -0
  345. package/dist/tools/definitions/edit-image/definition.d.ts +3 -0
  346. package/dist/tools/definitions/edit-image/definition.d.ts.map +1 -0
  347. package/dist/tools/definitions/edit-image/definition.js +128 -0
  348. package/dist/tools/definitions/edit-image/definition.js.map +1 -0
  349. package/dist/tools/definitions/extend-video/definition.d.ts +3 -0
  350. package/dist/tools/definitions/extend-video/definition.d.ts.map +1 -0
  351. package/dist/tools/definitions/extend-video/definition.js +51 -0
  352. package/dist/tools/definitions/extend-video/definition.js.map +1 -0
  353. package/dist/tools/definitions/generate-image/definition.d.ts +3 -0
  354. package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -0
  355. package/dist/tools/definitions/generate-image/definition.js +107 -0
  356. package/dist/tools/definitions/generate-image/definition.js.map +1 -0
  357. package/dist/tools/definitions/generate-music/definition.d.ts +3 -0
  358. package/dist/tools/definitions/generate-music/definition.d.ts.map +1 -0
  359. package/dist/tools/definitions/generate-music/definition.js +75 -0
  360. package/dist/tools/definitions/generate-music/definition.js.map +1 -0
  361. package/dist/tools/definitions/generate-video/definition.d.ts +3 -0
  362. package/dist/tools/definitions/generate-video/definition.d.ts.map +1 -0
  363. package/dist/tools/definitions/generate-video/definition.js +120 -0
  364. package/dist/tools/definitions/generate-video/definition.js.map +1 -0
  365. package/dist/tools/definitions/index.d.ts +25 -0
  366. package/dist/tools/definitions/index.d.ts.map +1 -0
  367. package/dist/tools/definitions/index.js +66 -0
  368. package/dist/tools/definitions/index.js.map +1 -0
  369. package/dist/tools/definitions/orbit-video/definition.d.ts +3 -0
  370. package/dist/tools/definitions/orbit-video/definition.d.ts.map +1 -0
  371. package/dist/tools/definitions/orbit-video/definition.js +103 -0
  372. package/dist/tools/definitions/orbit-video/definition.js.map +1 -0
  373. package/dist/tools/definitions/overlay-video/definition.d.ts +4 -0
  374. package/dist/tools/definitions/overlay-video/definition.d.ts.map +1 -0
  375. package/dist/tools/definitions/overlay-video/definition.js +142 -0
  376. package/dist/tools/definitions/overlay-video/definition.js.map +1 -0
  377. package/dist/tools/definitions/refine-result/definition.d.ts +3 -0
  378. package/dist/tools/definitions/refine-result/definition.d.ts.map +1 -0
  379. package/dist/tools/definitions/refine-result/definition.js +56 -0
  380. package/dist/tools/definitions/refine-result/definition.js.map +1 -0
  381. package/dist/tools/definitions/replace-video-segment/definition.d.ts +3 -0
  382. package/dist/tools/definitions/replace-video-segment/definition.d.ts.map +1 -0
  383. package/dist/tools/definitions/replace-video-segment/definition.js +65 -0
  384. package/dist/tools/definitions/replace-video-segment/definition.js.map +1 -0
  385. package/dist/tools/definitions/restore-photo/definition.d.ts +3 -0
  386. package/dist/tools/definitions/restore-photo/definition.d.ts.map +1 -0
  387. package/dist/tools/definitions/restore-photo/definition.js +58 -0
  388. package/dist/tools/definitions/restore-photo/definition.js.map +1 -0
  389. package/dist/tools/definitions/sound-to-video/definition.d.ts +3 -0
  390. package/dist/tools/definitions/sound-to-video/definition.d.ts.map +1 -0
  391. package/dist/tools/definitions/sound-to-video/definition.js +91 -0
  392. package/dist/tools/definitions/sound-to-video/definition.js.map +1 -0
  393. package/dist/tools/definitions/stitch-video/definition.d.ts +4 -0
  394. package/dist/tools/definitions/stitch-video/definition.d.ts.map +1 -0
  395. package/dist/tools/definitions/stitch-video/definition.js +89 -0
  396. package/dist/tools/definitions/stitch-video/definition.js.map +1 -0
  397. package/dist/tools/definitions/types.d.ts +15 -0
  398. package/dist/tools/definitions/types.d.ts.map +1 -0
  399. package/dist/tools/definitions/types.js +3 -0
  400. package/dist/tools/definitions/types.js.map +1 -0
  401. package/dist/tools/definitions/video-to-video/definition.d.ts +3 -0
  402. package/dist/tools/definitions/video-to-video/definition.d.ts.map +1 -0
  403. package/dist/tools/definitions/video-to-video/definition.js +101 -0
  404. package/dist/tools/definitions/video-to-video/definition.js.map +1 -0
  405. package/dist/tools/index.d.ts +22 -0
  406. package/dist/tools/index.d.ts.map +1 -0
  407. package/dist/tools/index.js +83 -0
  408. package/dist/tools/index.js.map +1 -0
  409. package/dist/tools/normalizeArgs.d.ts +2 -0
  410. package/dist/tools/normalizeArgs.d.ts.map +1 -0
  411. package/dist/tools/normalizeArgs.js +40 -0
  412. package/dist/tools/normalizeArgs.js.map +1 -0
  413. package/dist/tools/result.d.ts +47 -0
  414. package/dist/tools/result.d.ts.map +1 -0
  415. package/dist/tools/result.js +38 -0
  416. package/dist/tools/result.js.map +1 -0
  417. package/dist/tools/shared/downloadFilename.d.ts +18 -0
  418. package/dist/tools/shared/downloadFilename.d.ts.map +1 -0
  419. package/dist/tools/shared/downloadFilename.js +157 -0
  420. package/dist/tools/shared/downloadFilename.js.map +1 -0
  421. package/dist/tools/shared/dynamicPromptBranches.d.ts +20 -0
  422. package/dist/tools/shared/dynamicPromptBranches.d.ts.map +1 -0
  423. package/dist/tools/shared/dynamicPromptBranches.js +193 -0
  424. package/dist/tools/shared/dynamicPromptBranches.js.map +1 -0
  425. package/dist/tools/shared/errorClassification.d.ts +15 -0
  426. package/dist/tools/shared/errorClassification.d.ts.map +1 -0
  427. package/dist/tools/shared/errorClassification.js +78 -0
  428. package/dist/tools/shared/errorClassification.js.map +1 -0
  429. package/dist/tools/shared/imageEncoding.d.ts +2 -0
  430. package/dist/tools/shared/imageEncoding.d.ts.map +1 -0
  431. package/dist/tools/shared/imageEncoding.js +11 -0
  432. package/dist/tools/shared/imageEncoding.js.map +1 -0
  433. package/dist/tools/shared/llmHelpers.d.ts +14 -0
  434. package/dist/tools/shared/llmHelpers.d.ts.map +1 -0
  435. package/dist/tools/shared/llmHelpers.js +145 -0
  436. package/dist/tools/shared/llmHelpers.js.map +1 -0
  437. package/dist/tools/shared/modelRegistry.d.ts +10 -0
  438. package/dist/tools/shared/modelRegistry.d.ts.map +1 -0
  439. package/dist/tools/shared/modelRegistry.js +98 -0
  440. package/dist/tools/shared/modelRegistry.js.map +1 -0
  441. package/dist/tools/shared/multiImageIntent.d.ts +2 -0
  442. package/dist/tools/shared/multiImageIntent.d.ts.map +1 -0
  443. package/dist/tools/shared/multiImageIntent.js +13 -0
  444. package/dist/tools/shared/multiImageIntent.js.map +1 -0
  445. package/dist/tools/shared/numberOfVariationsAlignment.d.ts +2 -0
  446. package/dist/tools/shared/numberOfVariationsAlignment.d.ts.map +1 -0
  447. package/dist/tools/shared/numberOfVariationsAlignment.js +37 -0
  448. package/dist/tools/shared/numberOfVariationsAlignment.js.map +1 -0
  449. package/dist/tools/shared/policyChecks.d.ts +25 -0
  450. package/dist/tools/shared/policyChecks.d.ts.map +1 -0
  451. package/dist/tools/shared/policyChecks.js +79 -0
  452. package/dist/tools/shared/policyChecks.js.map +1 -0
  453. package/dist/tools/shared/promptRefinementCache.d.ts +10 -0
  454. package/dist/tools/shared/promptRefinementCache.d.ts.map +1 -0
  455. package/dist/tools/shared/promptRefinementCache.js +81 -0
  456. package/dist/tools/shared/promptRefinementCache.js.map +1 -0
  457. package/dist/tools/shared/promptSanitizer.d.ts +2 -0
  458. package/dist/tools/shared/promptSanitizer.d.ts.map +1 -0
  459. package/dist/tools/shared/promptSanitizer.js +73 -0
  460. package/dist/tools/shared/promptSanitizer.js.map +1 -0
  461. package/dist/tools/shared/seedancePolicyErrors.d.ts +33 -0
  462. package/dist/tools/shared/seedancePolicyErrors.d.ts.map +1 -0
  463. package/dist/tools/shared/seedancePolicyErrors.js +239 -0
  464. package/dist/tools/shared/seedancePolicyErrors.js.map +1 -0
  465. package/dist/tools/shared/slotFailureSummary.d.ts +7 -0
  466. package/dist/tools/shared/slotFailureSummary.d.ts.map +1 -0
  467. package/dist/tools/shared/slotFailureSummary.js +63 -0
  468. package/dist/tools/shared/slotFailureSummary.js.map +1 -0
  469. package/dist/tools/shared/visionDescriptionCache.d.ts +5 -0
  470. package/dist/tools/shared/visionDescriptionCache.d.ts.map +1 -0
  471. package/dist/tools/shared/visionDescriptionCache.js +35 -0
  472. package/dist/tools/shared/visionDescriptionCache.js.map +1 -0
  473. package/dist/types/index.d.ts +221 -0
  474. package/dist/types/index.d.ts.map +1 -0
  475. package/dist/types/index.js +34 -0
  476. package/dist/types/index.js.map +1 -0
  477. package/dist/utils/errors.d.ts +38 -0
  478. package/dist/utils/errors.d.ts.map +1 -0
  479. package/dist/utils/errors.js +99 -0
  480. package/dist/utils/errors.js.map +1 -0
  481. package/dist/utils/helpers.d.ts +36 -0
  482. package/dist/utils/helpers.d.ts.map +1 -0
  483. package/dist/utils/helpers.js +445 -0
  484. package/dist/utils/helpers.js.map +1 -0
  485. package/dist/workflows/bindings.d.ts +23 -0
  486. package/dist/workflows/bindings.d.ts.map +1 -0
  487. package/dist/workflows/bindings.js +220 -0
  488. package/dist/workflows/bindings.js.map +1 -0
  489. package/dist/workflows/executor-ports.d.ts +11 -0
  490. package/dist/workflows/executor-ports.d.ts.map +1 -0
  491. package/dist/workflows/executor-ports.js +3 -0
  492. package/dist/workflows/executor-ports.js.map +1 -0
  493. package/dist/workflows/executor.d.ts +17 -0
  494. package/dist/workflows/executor.d.ts.map +1 -0
  495. package/dist/workflows/executor.js +526 -0
  496. package/dist/workflows/executor.js.map +1 -0
  497. package/dist/workflows/index.d.ts +11 -0
  498. package/dist/workflows/index.d.ts.map +1 -0
  499. package/dist/workflows/index.js +48 -0
  500. package/dist/workflows/index.js.map +1 -0
  501. package/dist/workflows/primitives/index.d.ts +3 -0
  502. package/dist/workflows/primitives/index.d.ts.map +1 -0
  503. package/dist/workflows/primitives/index.js +19 -0
  504. package/dist/workflows/primitives/index.js.map +1 -0
  505. package/dist/workflows/primitives/retryUntilCondition.d.ts +39 -0
  506. package/dist/workflows/primitives/retryUntilCondition.d.ts.map +1 -0
  507. package/dist/workflows/primitives/retryUntilCondition.js +102 -0
  508. package/dist/workflows/primitives/retryUntilCondition.js.map +1 -0
  509. package/dist/workflows/primitives/validateWithRubric.d.ts +28 -0
  510. package/dist/workflows/primitives/validateWithRubric.d.ts.map +1 -0
  511. package/dist/workflows/primitives/validateWithRubric.js +148 -0
  512. package/dist/workflows/primitives/validateWithRubric.js.map +1 -0
  513. package/dist/workflows/summarize.d.ts +7 -0
  514. package/dist/workflows/summarize.d.ts.map +1 -0
  515. package/dist/workflows/summarize.js +54 -0
  516. package/dist/workflows/summarize.js.map +1 -0
  517. package/dist/workflows/types.d.ts +302 -0
  518. package/dist/workflows/types.d.ts.map +1 -0
  519. package/dist/workflows/types.js +3 -0
  520. package/dist/workflows/types.js.map +1 -0
  521. package/dist/workflows/validation.d.ts +10 -0
  522. package/dist/workflows/validation.d.ts.map +1 -0
  523. package/dist/workflows/validation.js +340 -0
  524. package/dist/workflows/validation.js.map +1 -0
  525. package/dist-esm/chatRun/costApproval.js +64 -0
  526. package/dist-esm/chatRun/costApproval.js.map +1 -0
  527. package/dist-esm/chatRun/index.js +327 -0
  528. package/dist-esm/chatRun/index.js.map +1 -0
  529. package/dist-esm/client/SogniClientWrapper.js +877 -0
  530. package/dist-esm/client/SogniClientWrapper.js.map +1 -0
  531. package/dist-esm/context/index.js +453 -0
  532. package/dist-esm/context/index.js.map +1 -0
  533. package/dist-esm/contracts/backboneDurableWorkflow.js +90 -0
  534. package/dist-esm/contracts/backboneDurableWorkflow.js.map +1 -0
  535. package/dist-esm/contracts/backboneToolCatalog.js +59 -0
  536. package/dist-esm/contracts/backboneToolCatalog.js.map +1 -0
  537. package/dist-esm/contracts/composeWorkflowTypes.js +2 -0
  538. package/dist-esm/contracts/composeWorkflowTypes.js.map +1 -0
  539. package/dist-esm/contracts/data/costEstimation.js +18 -0
  540. package/dist-esm/contracts/data/costEstimation.js.map +1 -0
  541. package/dist-esm/contracts/data/gatingPolicies.js +214 -0
  542. package/dist-esm/contracts/data/gatingPolicies.js.map +1 -0
  543. package/dist-esm/contracts/data/gatingPoliciesToolSurface.js +57 -0
  544. package/dist-esm/contracts/data/gatingPoliciesToolSurface.js.map +1 -0
  545. package/dist-esm/contracts/data/index.js +23 -0
  546. package/dist-esm/contracts/data/index.js.map +1 -0
  547. package/dist-esm/contracts/data/promptContracts.js +1282 -0
  548. package/dist-esm/contracts/data/promptContracts.js.map +1 -0
  549. package/dist-esm/contracts/data/repairRecipes.js +193 -0
  550. package/dist-esm/contracts/data/repairRecipes.js.map +1 -0
  551. package/dist-esm/contracts/data/toolCatalog.js +122 -0
  552. package/dist-esm/contracts/data/toolCatalog.js.map +1 -0
  553. package/dist-esm/contracts/data/toolCostMetadata.js +277 -0
  554. package/dist-esm/contracts/data/toolCostMetadata.js.map +1 -0
  555. package/dist-esm/contracts/data/toolPermissions.js +70 -0
  556. package/dist-esm/contracts/data/toolPermissions.js.map +1 -0
  557. package/dist-esm/contracts/evaluators.js +463 -0
  558. package/dist-esm/contracts/evaluators.js.map +1 -0
  559. package/dist-esm/contracts/hostedComposition.js +128 -0
  560. package/dist-esm/contracts/hostedComposition.js.map +1 -0
  561. package/dist-esm/contracts/hostedToolValidation.js +296 -0
  562. package/dist-esm/contracts/hostedToolValidation.js.map +1 -0
  563. package/dist-esm/contracts/idLoraPrompt.js +72 -0
  564. package/dist-esm/contracts/idLoraPrompt.js.map +1 -0
  565. package/dist-esm/contracts/imagePrompt.js +143 -0
  566. package/dist-esm/contracts/imagePrompt.js.map +1 -0
  567. package/dist-esm/contracts/index.js +27 -0
  568. package/dist-esm/contracts/index.js.map +1 -0
  569. package/dist-esm/contracts/musicComposition.js +182 -0
  570. package/dist-esm/contracts/musicComposition.js.map +1 -0
  571. package/dist-esm/contracts/promptContract.js +34 -0
  572. package/dist-esm/contracts/promptContract.js.map +1 -0
  573. package/dist-esm/contracts/promptOverrideMarker.js +2 -0
  574. package/dist-esm/contracts/promptOverrideMarker.js.map +1 -0
  575. package/dist-esm/contracts/randomThemes.js +154 -0
  576. package/dist-esm/contracts/randomThemes.js.map +1 -0
  577. package/dist-esm/contracts/registry.js +100 -0
  578. package/dist-esm/contracts/registry.js.map +1 -0
  579. package/dist-esm/contracts/repairRecipe.js +35 -0
  580. package/dist-esm/contracts/repairRecipe.js.map +1 -0
  581. package/dist-esm/contracts/storyboard.js +4 -0
  582. package/dist-esm/contracts/storyboard.js.map +1 -0
  583. package/dist-esm/contracts/telemetry.js +33 -0
  584. package/dist-esm/contracts/telemetry.js.map +1 -0
  585. package/dist-esm/contracts/toolGatingPolicy.js +60 -0
  586. package/dist-esm/contracts/toolGatingPolicy.js.map +1 -0
  587. package/dist-esm/contracts/toolPromptMarkers.js +10 -0
  588. package/dist-esm/contracts/toolPromptMarkers.js.map +1 -0
  589. package/dist-esm/contracts/toolSurface.js +110 -0
  590. package/dist-esm/contracts/toolSurface.js.map +1 -0
  591. package/dist-esm/contracts/turnPolicy.js +13 -0
  592. package/dist-esm/contracts/turnPolicy.js.map +1 -0
  593. package/dist-esm/contracts/videoComposition.js +216 -0
  594. package/dist-esm/contracts/videoComposition.js.map +1 -0
  595. package/dist-esm/index.js +10 -0
  596. package/dist-esm/index.js.map +1 -0
  597. package/dist-esm/media/aspectRatio.js +65 -0
  598. package/dist-esm/media/aspectRatio.js.map +1 -0
  599. package/dist-esm/media/audioReference.js +186 -0
  600. package/dist-esm/media/audioReference.js.map +1 -0
  601. package/dist-esm/media/cameraAngle.js +41 -0
  602. package/dist-esm/media/cameraAngle.js.map +1 -0
  603. package/dist-esm/media/characterSheet.js +48 -0
  604. package/dist-esm/media/characterSheet.js.map +1 -0
  605. package/dist-esm/media/danceMontage.js +29 -0
  606. package/dist-esm/media/danceMontage.js.map +1 -0
  607. package/dist-esm/media/enhancementProfiles.js +219 -0
  608. package/dist-esm/media/enhancementProfiles.js.map +1 -0
  609. package/dist-esm/media/generationJob.js +87 -0
  610. package/dist-esm/media/generationJob.js.map +1 -0
  611. package/dist-esm/media/gptImage.js +150 -0
  612. package/dist-esm/media/gptImage.js.map +1 -0
  613. package/dist-esm/media/imageDimensions.js +59 -0
  614. package/dist-esm/media/imageDimensions.js.map +1 -0
  615. package/dist-esm/media/index.js +16 -0
  616. package/dist-esm/media/index.js.map +1 -0
  617. package/dist-esm/media/musicSettings.js +230 -0
  618. package/dist-esm/media/musicSettings.js.map +1 -0
  619. package/dist-esm/media/vendorModelPremium.js +81 -0
  620. package/dist-esm/media/vendorModelPremium.js.map +1 -0
  621. package/dist-esm/media/videoAppSettings.js +125 -0
  622. package/dist-esm/media/videoAppSettings.js.map +1 -0
  623. package/dist-esm/media/videoContentLimit.js +162 -0
  624. package/dist-esm/media/videoContentLimit.js.map +1 -0
  625. package/dist-esm/media/videoReference.js +72 -0
  626. package/dist-esm/media/videoReference.js.map +1 -0
  627. package/dist-esm/media/videoSettings.js +191 -0
  628. package/dist-esm/media/videoSettings.js.map +1 -0
  629. package/dist-esm/openai-tools/_manifests.generated.js +1789 -0
  630. package/dist-esm/openai-tools/_manifests.generated.js.map +1 -0
  631. package/dist-esm/openai-tools/app-tools.json +297 -0
  632. package/dist-esm/openai-tools/composition-tools.json +228 -0
  633. package/dist-esm/openai-tools/generation-tools.json +1263 -0
  634. package/dist-esm/openai-tools/index.js +27 -0
  635. package/dist-esm/openai-tools/index.js.map +1 -0
  636. package/dist-esm/package.json +3 -0
  637. package/dist-esm/public-skill-runtime/index.js +6390 -0
  638. package/dist-esm/public-skill-runtime/index.js.map +1 -0
  639. package/dist-esm/replay/index.js +3 -0
  640. package/dist-esm/replay/index.js.map +1 -0
  641. package/dist-esm/replay/redact.js +102 -0
  642. package/dist-esm/replay/redact.js.map +1 -0
  643. package/dist-esm/replay/types.js +20 -0
  644. package/dist-esm/replay/types.js.map +1 -0
  645. package/dist-esm/runtime/chatTypes.js +2 -0
  646. package/dist-esm/runtime/chatTypes.js.map +1 -0
  647. package/dist-esm/runtime/durableWorkflowClient.js +295 -0
  648. package/dist-esm/runtime/durableWorkflowClient.js.map +1 -0
  649. package/dist-esm/runtime/index.js +2 -0
  650. package/dist-esm/runtime/index.js.map +1 -0
  651. package/dist-esm/schemas/errors/error.schema.json +21 -0
  652. package/dist-esm/schemas/errors/repair-control.schema.json +40 -0
  653. package/dist-esm/schemas/events/artifact-reference.schema.json +22 -0
  654. package/dist-esm/schemas/events/progress-event.schema.json +28 -0
  655. package/dist-esm/schemas/events/workflow-event.schema.json +22 -0
  656. package/dist-esm/schemas/storyboards/storyboard-planning-contract.schema.json +108 -0
  657. package/dist-esm/schemas/tools/add_subtitles.schema.json +77 -0
  658. package/dist-esm/schemas/tools/animate_photo.schema.json +104 -0
  659. package/dist-esm/schemas/tools/apply_style.schema.json +37 -0
  660. package/dist-esm/schemas/tools/change_angle.schema.json +30 -0
  661. package/dist-esm/schemas/tools/compose_instrumental.schema.json +24 -0
  662. package/dist-esm/schemas/tools/compose_lyrics.schema.json +28 -0
  663. package/dist-esm/schemas/tools/compose_script.schema.json +68 -0
  664. package/dist-esm/schemas/tools/compose_workflow.schema.json +67 -0
  665. package/dist-esm/schemas/tools/compose_workflow_template.schema.json +156 -0
  666. package/dist-esm/schemas/tools/dance_montage.schema.json +47 -0
  667. package/dist-esm/schemas/tools/edit_image.schema.json +74 -0
  668. package/dist-esm/schemas/tools/enhance_prompt.schema.json +76 -0
  669. package/dist-esm/schemas/tools/extend_video.schema.json +42 -0
  670. package/dist-esm/schemas/tools/generate_image.schema.json +104 -0
  671. package/dist-esm/schemas/tools/generate_music.schema.json +62 -0
  672. package/dist-esm/schemas/tools/generate_video.schema.json +97 -0
  673. package/dist-esm/schemas/tools/orbit_video.schema.json +70 -0
  674. package/dist-esm/schemas/tools/overlay_video.schema.json +126 -0
  675. package/dist-esm/schemas/tools/refine_result.schema.json +43 -0
  676. package/dist-esm/schemas/tools/replace_video_segment.schema.json +60 -0
  677. package/dist-esm/schemas/tools/restore_photo.schema.json +47 -0
  678. package/dist-esm/schemas/tools/sound_to_video.schema.json +70 -0
  679. package/dist-esm/schemas/tools/stitch_video.schema.json +52 -0
  680. package/dist-esm/schemas/tools/video_to_video.schema.json +77 -0
  681. package/dist-esm/schemas/workflows/durable-workflow-run.schema.json +165 -0
  682. package/dist-esm/schemas/workflows/durable-workflow-step.schema.json +141 -0
  683. package/dist-esm/skill-runtime-source/crossSurfaceParity.js +469 -0
  684. package/dist-esm/skill-runtime-source/crossSurfaceParity.js.map +1 -0
  685. package/dist-esm/skill-runtime-source/index.js +4 -0
  686. package/dist-esm/skill-runtime-source/index.js.map +1 -0
  687. package/dist-esm/skill-runtime-source/seedanceAudioWindow.js +47 -0
  688. package/dist-esm/skill-runtime-source/seedanceAudioWindow.js.map +1 -0
  689. package/dist-esm/skill-runtime-source/workflowStatus.js +348 -0
  690. package/dist-esm/skill-runtime-source/workflowStatus.js.map +1 -0
  691. package/dist-esm/skills/asset_reference_management/index.js +3 -0
  692. package/dist-esm/skills/asset_reference_management/index.js.map +1 -0
  693. package/dist-esm/skills/asset_reference_management/manifest.js +228 -0
  694. package/dist-esm/skills/asset_reference_management/manifest.js.map +1 -0
  695. package/dist-esm/skills/asset_reference_management/modelRefRegistry.js +129 -0
  696. package/dist-esm/skills/asset_reference_management/modelRefRegistry.js.map +1 -0
  697. package/dist-esm/skills/asset_reference_management/types.js +2 -0
  698. package/dist-esm/skills/asset_reference_management/types.js.map +1 -0
  699. package/dist-esm/tools/definitions/add-subtitles/definition.js +80 -0
  700. package/dist-esm/tools/definitions/add-subtitles/definition.js.map +1 -0
  701. package/dist-esm/tools/definitions/animate-photo/definition.js +121 -0
  702. package/dist-esm/tools/definitions/animate-photo/definition.js.map +1 -0
  703. package/dist-esm/tools/definitions/apply-style/definition.js +47 -0
  704. package/dist-esm/tools/definitions/apply-style/definition.js.map +1 -0
  705. package/dist-esm/tools/definitions/change-angle/definition.js +46 -0
  706. package/dist-esm/tools/definitions/change-angle/definition.js.map +1 -0
  707. package/dist-esm/tools/definitions/dance-montage/dances.js +86 -0
  708. package/dist-esm/tools/definitions/dance-montage/dances.js.map +1 -0
  709. package/dist-esm/tools/definitions/dance-montage/definition.js +42 -0
  710. package/dist-esm/tools/definitions/dance-montage/definition.js.map +1 -0
  711. package/dist-esm/tools/definitions/edit-image/definition.js +125 -0
  712. package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -0
  713. package/dist-esm/tools/definitions/extend-video/definition.js +48 -0
  714. package/dist-esm/tools/definitions/extend-video/definition.js.map +1 -0
  715. package/dist-esm/tools/definitions/generate-image/definition.js +104 -0
  716. package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -0
  717. package/dist-esm/tools/definitions/generate-music/definition.js +72 -0
  718. package/dist-esm/tools/definitions/generate-music/definition.js.map +1 -0
  719. package/dist-esm/tools/definitions/generate-video/definition.js +117 -0
  720. package/dist-esm/tools/definitions/generate-video/definition.js.map +1 -0
  721. package/dist-esm/tools/definitions/index.js +41 -0
  722. package/dist-esm/tools/definitions/index.js.map +1 -0
  723. package/dist-esm/tools/definitions/orbit-video/definition.js +100 -0
  724. package/dist-esm/tools/definitions/orbit-video/definition.js.map +1 -0
  725. package/dist-esm/tools/definitions/overlay-video/definition.js +139 -0
  726. package/dist-esm/tools/definitions/overlay-video/definition.js.map +1 -0
  727. package/dist-esm/tools/definitions/refine-result/definition.js +53 -0
  728. package/dist-esm/tools/definitions/refine-result/definition.js.map +1 -0
  729. package/dist-esm/tools/definitions/replace-video-segment/definition.js +62 -0
  730. package/dist-esm/tools/definitions/replace-video-segment/definition.js.map +1 -0
  731. package/dist-esm/tools/definitions/restore-photo/definition.js +55 -0
  732. package/dist-esm/tools/definitions/restore-photo/definition.js.map +1 -0
  733. package/dist-esm/tools/definitions/sound-to-video/definition.js +88 -0
  734. package/dist-esm/tools/definitions/sound-to-video/definition.js.map +1 -0
  735. package/dist-esm/tools/definitions/stitch-video/definition.js +86 -0
  736. package/dist-esm/tools/definitions/stitch-video/definition.js.map +1 -0
  737. package/dist-esm/tools/definitions/types.js +2 -0
  738. package/dist-esm/tools/definitions/types.js.map +1 -0
  739. package/dist-esm/tools/definitions/video-to-video/definition.js +98 -0
  740. package/dist-esm/tools/definitions/video-to-video/definition.js.map +1 -0
  741. package/dist-esm/tools/index.js +18 -0
  742. package/dist-esm/tools/index.js.map +1 -0
  743. package/dist-esm/tools/normalizeArgs.js +37 -0
  744. package/dist-esm/tools/normalizeArgs.js.map +1 -0
  745. package/dist-esm/tools/result.js +31 -0
  746. package/dist-esm/tools/result.js.map +1 -0
  747. package/dist-esm/tools/shared/downloadFilename.js +147 -0
  748. package/dist-esm/tools/shared/downloadFilename.js.map +1 -0
  749. package/dist-esm/tools/shared/dynamicPromptBranches.js +183 -0
  750. package/dist-esm/tools/shared/dynamicPromptBranches.js.map +1 -0
  751. package/dist-esm/tools/shared/errorClassification.js +74 -0
  752. package/dist-esm/tools/shared/errorClassification.js.map +1 -0
  753. package/dist-esm/tools/shared/imageEncoding.js +8 -0
  754. package/dist-esm/tools/shared/imageEncoding.js.map +1 -0
  755. package/dist-esm/tools/shared/llmHelpers.js +137 -0
  756. package/dist-esm/tools/shared/llmHelpers.js.map +1 -0
  757. package/dist-esm/tools/shared/modelRegistry.js +91 -0
  758. package/dist-esm/tools/shared/modelRegistry.js.map +1 -0
  759. package/dist-esm/tools/shared/multiImageIntent.js +10 -0
  760. package/dist-esm/tools/shared/multiImageIntent.js.map +1 -0
  761. package/dist-esm/tools/shared/numberOfVariationsAlignment.js +34 -0
  762. package/dist-esm/tools/shared/numberOfVariationsAlignment.js.map +1 -0
  763. package/dist-esm/tools/shared/policyChecks.js +73 -0
  764. package/dist-esm/tools/shared/policyChecks.js.map +1 -0
  765. package/dist-esm/tools/shared/promptRefinementCache.js +70 -0
  766. package/dist-esm/tools/shared/promptRefinementCache.js.map +1 -0
  767. package/dist-esm/tools/shared/promptSanitizer.js +70 -0
  768. package/dist-esm/tools/shared/promptSanitizer.js.map +1 -0
  769. package/dist-esm/tools/shared/seedancePolicyErrors.js +232 -0
  770. package/dist-esm/tools/shared/seedancePolicyErrors.js.map +1 -0
  771. package/dist-esm/tools/shared/slotFailureSummary.js +60 -0
  772. package/dist-esm/tools/shared/slotFailureSummary.js.map +1 -0
  773. package/dist-esm/tools/shared/visionDescriptionCache.js +29 -0
  774. package/dist-esm/tools/shared/visionDescriptionCache.js.map +1 -0
  775. package/dist-esm/types/index.js +31 -0
  776. package/dist-esm/types/index.js.map +1 -0
  777. package/dist-esm/utils/errors.js +86 -0
  778. package/dist-esm/utils/errors.js.map +1 -0
  779. package/dist-esm/utils/helpers.js +419 -0
  780. package/dist-esm/utils/helpers.js.map +1 -0
  781. package/dist-esm/workflows/bindings.js +212 -0
  782. package/dist-esm/workflows/bindings.js.map +1 -0
  783. package/dist-esm/workflows/executor-ports.js +2 -0
  784. package/dist-esm/workflows/executor-ports.js.map +1 -0
  785. package/dist-esm/workflows/executor.js +522 -0
  786. package/dist-esm/workflows/executor.js.map +1 -0
  787. package/dist-esm/workflows/index.js +8 -0
  788. package/dist-esm/workflows/index.js.map +1 -0
  789. package/dist-esm/workflows/primitives/index.js +3 -0
  790. package/dist-esm/workflows/primitives/index.js.map +1 -0
  791. package/dist-esm/workflows/primitives/retryUntilCondition.js +95 -0
  792. package/dist-esm/workflows/primitives/retryUntilCondition.js.map +1 -0
  793. package/dist-esm/workflows/primitives/validateWithRubric.js +141 -0
  794. package/dist-esm/workflows/primitives/validateWithRubric.js.map +1 -0
  795. package/dist-esm/workflows/summarize.js +51 -0
  796. package/dist-esm/workflows/summarize.js.map +1 -0
  797. package/dist-esm/workflows/types.js +2 -0
  798. package/dist-esm/workflows/types.js.map +1 -0
  799. package/dist-esm/workflows/validation.js +330 -0
  800. package/dist-esm/workflows/validation.js.map +1 -0
  801. package/media/index.d.ts +1 -0
  802. package/media/index.js +2 -0
  803. package/package.json +213 -0
  804. package/public-skill-runtime/index.d.ts +1 -0
  805. package/public-skill-runtime/index.js +2 -0
  806. package/replay/index.d.ts +1 -0
  807. package/replay/index.js +2 -0
  808. package/runtime/index.d.ts +1 -0
  809. package/runtime/index.js +2 -0
  810. package/skills/asset_reference_management/index.d.ts +1 -0
  811. package/skills/asset_reference_management/index.js +2 -0
  812. package/src/skill-runtime-source/crossSurfaceParity.ts +525 -0
  813. package/src/skill-runtime-source/index.ts +10 -0
  814. package/src/skill-runtime-source/seedanceAudioWindow.ts +61 -0
  815. package/src/skill-runtime-source/workflowStatus.ts +375 -0
  816. package/tools/index.d.ts +1 -0
  817. package/tools/index.js +2 -0
  818. package/workflows/index.d.ts +1 -0
  819. package/workflows/index.js +2 -0
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/generate_music.schema.json",
4
+ "title": "generate_music arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Generate music from a text description. Creates original songs with optional lyrics, BPM, key signature, and duration control. Use when the user wants to create music, a song, a beat, a melody, background music, or any audio content.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "prompt": {
11
+ "type": "string",
12
+ "description": "Genre, mood, and style description for the music. Be specific about musical characteristics.\n\nLITERAL PROMPT OVERRIDE: If the user explicitly says not to modify the prompt, or to use it exactly/verbatim/as-is, copy the identified prompt text verbatim instead of applying these construction rules unless a hard requirement is missing.\n\nExamples:\n- \"upbeat electronic dance music with driving bass and synth arpeggios\"\n- \"mellow jazz ballad with soft piano, brushed drums, and walking bass\"\n- \"epic orchestral soundtrack with soaring strings and powerful brass\"\n- \"lo-fi hip hop beat with vinyl crackle, muted keys, and chill vibes\"\n- \"acoustic folk song with fingerpicked guitar and warm harmonies\"\n\nInclude:\n- Genre (rock, jazz, electronic, classical, hip-hop, etc.)\n- Mood (happy, melancholic, energetic, relaxing, epic, etc.)\n- Instruments (piano, guitar, drums, synth, strings, etc.)\n- Style descriptors (driving, mellow, atmospheric, punchy, etc.)\n\nBATCH VARIATIONS: When numberOfVariations > 1, use Dynamic Prompt syntax to vary ONE dimension across separate tracks. Lock in any genre/mood/instruments the user specified, vary the rest. Example: \"{lo-fi hip hop beat with muted keys|jazz piano trio with brushed drums|ambient electronic with soft pads} with warm reverb and vinyl texture\"."
13
+ },
14
+ "duration": {
15
+ "type": "number",
16
+ "description": "Duration in seconds. Default: 30. Range: 10-600 (10 seconds to 10 minutes). Short clips: 10-30s. Standard songs: 120-300s.",
17
+ "minimum": 10,
18
+ "maximum": 600
19
+ },
20
+ "bpm": {
21
+ "type": "number",
22
+ "description": "Beats per minute / tempo. Default: 120. Range: 30-300. Slow ballad: 60-80. Mid-tempo: 90-120. Upbeat: 120-140. Fast dance: 140-180. Very fast: 180+.",
23
+ "minimum": 30,
24
+ "maximum": 300
25
+ },
26
+ "keyscale": {
27
+ "type": "string",
28
+ "description": "Musical key and scale. E.g., \"C major\", \"A minor\", \"F# minor\", \"Bb major\". Default: \"C major\". Only set when the user specifies a key or when a particular mood calls for it (minor keys for sad/dark, major for happy/bright)."
29
+ },
30
+ "lyrics": {
31
+ "type": "string",
32
+ "description": "Song lyrics. Optional — omit for instrumental music. Format: write lyrics naturally with line breaks. The model will attempt to sing these lyrics with the generated music. Works best with clear, rhythmic phrasing that matches the BPM."
33
+ },
34
+ "model": {
35
+ "type": "string",
36
+ "enum": [
37
+ "turbo",
38
+ "sft"
39
+ ],
40
+ "description": "ACE-Step model variant. \"turbo\" (default): Higher quality audio generation with 4-16 steps and half the cost. Always use turbo unless the user explicitly requests the SFT model. \"sft\": Experimental model with lower audio quality but very strong lyric handling. 10-200 steps, full cost. Only use when the user specifically asks for SFT. Default: \"turbo\"."
41
+ },
42
+ "timesig": {
43
+ "type": "number",
44
+ "enum": [
45
+ 2,
46
+ 3,
47
+ 4,
48
+ 6
49
+ ],
50
+ "description": "Time signature (beats per measure). 4 = 4/4 time (default, most common). 3 = 3/4 time (waltz). 2 = 2/4 time (march). 6 = 6/8 time (compound). Default: 4."
51
+ },
52
+ "numberOfVariations": {
53
+ "type": "number",
54
+ "description": "Number of variations (1-16). Use 1 unless user requests multiple. Default: 1.",
55
+ "minimum": 1,
56
+ "maximum": 16
57
+ }
58
+ },
59
+ "required": [
60
+ "prompt"
61
+ ]
62
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/generate_video.schema.json",
4
+ "title": "generate_video arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Generate a video from text or Seedance multimodal references. LTX 2.3 generates audio natively (dialogue, sounds, ambient music) — describe audio in the prompt. If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Never use placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\", or \"final line lands\". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona's voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice requires ltx23 (WAN 2.2 does not support voice identity). For non-Seedance syncing to a specific song or audio track, use sound_to_video instead. For non-Seedance animation from a locked source photo, use animate_photo. Do NOT use for My Personas unless generating a Seedance reference-based video — standard persona videos use resolve_personas → edit_image → animate_photo. SEEDANCE DEFAULT: For seedance2 or seedance2-fast, default to exactly one 4-15s video unless the user explicitly asks for multiple separate outputs. Multiple beats, shots, or scene descriptions in one up-to-15s Seedance prompt are still one video. If the user requests one continuous Seedance video longer than 15s, preserve the requested total duration in the prompt/context; chat orchestration should split it into supported segment renders and stitch them instead of clamping it to a 15s excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance generate_video call by default; do not extract panels with edit_image and do not animate the storyboard sheet with LTX unless the user explicitly asks for separate non-Seedance clips. Seedance loose image, video, and audio references go through this tool; do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance. If an uploaded video is the source clip to transform, upscale, enhance, restyle, or remaster, use video_to_video with controlMode=\"seedance-v2v\" instead of generate_video referenceVideoIndices. If the uploaded audio is the primary sync target, lip-sync target, or requested as sound-to-video/audio-sync, use sound_to_video with videoModel=\"seedance2\" instead of this tool. Use referenceAudioIndices here only when audio is a loose reference under an image/video-anchored Seedance shot. For Seedance, every image — first frame, last frame, or loose reference — is passed through referenceImageIndices (auto-uploaded as referenceImageUrls). Anchor frame intent in the prompt with @Image tags such as \"Use @Image1 as the opening shot reference. Begin the video with a composition, subject placement, lighting, mood, and camera framing that closely match @Image1.\" (or @Image2 as the final shot reference). For seamless-loop or \"first frame and last frame identical\" requests with a single uploaded image, anchor it explicitly as both: \"Use @Image1 as both the first frame and last frame so the video loops cleanly back to the opening composition.\" Assign each useful @Image/@Video/@Audio tag a role. APPROVED STORYBOARD PRODUCTION: When the user asks for a production workflow from an approved storyboard, the chat orchestrator should use the durable CampaignStoryboard contract: render the composite board, audit it, generate per-scene GPT Image 2 keyframes, then render Seedance scene clips and stitch them. Do not replace that with a generic storyboard-reference video unless the user asks for a fast draft. PARTIAL VIDEO EDITS: Do NOT call generate_video to re-render an existing rendered/uploaded video just to change part of it (the bumper, the intro, the end card, a single scene, the last few seconds, etc.). Use replace_video_segment for that — it preserves the unchanged portion, keeps the original audio outside the replaced window, and costs far less. Likewise use extend_video to add new time to the end without rewriting the rest. If the request is vague, ask about vision/mood/style first. Only call once you have clear creative intent.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "prompt": {
11
+ "type": "string",
12
+ "description": "Write one flowing paragraph like a cinematographer describing a shot. Present tense, specific natural language. Longer clips need longer prompts; close-ups need more detail than wide shots.\n\nLITERAL PROMPT OVERRIDE: If the user explicitly says not to modify the prompt, or to use it exactly/verbatim/as-is, copy the identified prompt text verbatim instead of applying these construction rules unless a hard requirement is missing. Set skipPromptProcessing=true; for Seedance also set expandPrompt=false.\n\nSTRUCTURE: shot/style → subject (age, clothing, hairstyle, distinguishing details) → environment, lighting, atmosphere → action beat by beat → camera movement → audio and dialogue.\n\nCAST CONTINUITY: For screenplay, script, storyboard, commercial, series, or other longer-form video tasks with recurring characters, use stable character names and repeat the same visual anchors every time they appear (age range, build, hairstyle, outfit silhouette, color palette, signature prop/accessory, posture, voice). Do not rename, merge, redesign, or drift characters between scenes unless the user asks.\n\nMOTION PACING: Scale complexity to duration. <=6s: 1 main action beat + 1 simple camera move. Around 10s: 2-3 clear action beats + 1 camera move. >10s: up to 4 action beats in clear sequence. Prefer fewer readable beats over dense micro-actions, especially in short clips.\n\nBLOCKING: Direct the layout like scene blocking. State left/right placement, foreground/background, facing toward/away, and relative distance when multiple subjects or important objects are involved.\n\nACTION: Drive motion with concrete verbs. Specify who moves, what moves, how it moves, and what the camera does. Avoid generic phrases like \"comes alive.\"\n\nDIALOGUE: Put user-provided spoken lines in double quotes. For screenplay-style or longer-form tasks, prefix each spoken line with a stable speaker tag outside the quotes, e.g. CHARACTER: \"We made it.\" Break long speech into short quoted phrases with acting beats between them (gestures, pauses, glances). If the user asks for speech but provides no exact words, describe the visible delivery, voice quality, and emotion without inventing quoted dialogue; ask only when exact wording is the point of the request. Never write placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\", or \"final line lands\". Show emotion through visible behavior — not \"she is sad\", instead \"she looks down, pauses, and her voice cracks\". QUOTING RULE: ONLY use double quotes for spoken dialogue. Never quote on-screen text, overlay text, titles, captions, signs, or any visual text — describe them without quotes.\n\nSTORYBOARD TEXT: For storyboard references, structural headings, section numbers, slide titles, panel titles, and captions may become short audio-only narration/voiceover or key-message beats, but they are not subtitles, title cards, lower thirds, or visible overlays unless the user explicitly asks for visible text/on-screen text/title card/subtitle/lower third/signage/CTA. Do not concatenate storyboard labels into run-on voiceover; use separate brief phrases with pauses.\n\nAUDIO: Prompt sound intentionally — voice quality, volume, room tone, ambience, music, weather, footsteps. Include language or accent if relevant. Useful voice/volume anchors: whisper, mutter, shout, scream, energetic announcer, resonant voice with gravitas, distorted radio-style, robotic monotone, childlike curiosity.\n\nCAMERA: Cinematic terms — close-up, tracking shot, dolly in, handheld, slow arc, static frame. Describe movement relative to subject.\n\nFor specific characters (movies, TV): describe visual appearance — don't rely on names alone.\n\nFor complex/creative scenes (characters, dialogue, skits): capture the full creative intent. The system auto-expands into a detailed prompt.\n\nAVOID: Vague prompts, too many characters at once, conflicting lighting logic, readable text or logos, abstract emotions with no visible behavior, rigid numeric constraints (exact angles, counts, speeds).\n\nBATCH VARIATIONS: When numberOfVariations > 1, use Dynamic Prompt syntax. Lock in any camera/subject/style the user specified, vary the rest. Example: \"slow dolly in on a city street {at dawn with golden light|during a rainstorm|at night with neon reflections}\"."
13
+ },
14
+ "expandPrompt": {
15
+ "type": "boolean",
16
+ "description": "Seedance only. Whether to run the shared Seedance prompt shaper before dispatch. Defaults to true; set false only when the user explicitly asks to submit the compact prompt directly or not modify the prompt."
17
+ },
18
+ "skipPromptProcessing": {
19
+ "type": "boolean",
20
+ "description": "Bypass automatic prompt shaping/refinement and voice-identity prompt formatting so the prompt text is sent unchanged to the video model. Set true ONLY when the user explicitly says not to modify/rewrite/enhance/expand/change/improve the prompt, or to use/send it exactly, verbatim, or as-is, AND the provided prompt already satisfies the tool requirements. Continue to set non-prompt parameters such as model, duration, count, aspect ratio, and seed. For Seedance literal prompt requests, also set expandPrompt=false. Do not set for ordinary underspecified requests."
21
+ },
22
+ "duration": {
23
+ "type": "number",
24
+ "description": "Video duration in seconds. Default: 5. Range: 2-20. Use when the user explicitly requests a specific length.",
25
+ "minimum": 2,
26
+ "maximum": 20
27
+ },
28
+ "negativePrompt": {
29
+ "type": "string",
30
+ "description": "Non-Seedance only. Optional negative prompt for video models that expose a separate negative-prompt field. Do not set for seedance2 or seedance2-fast; rewrite user-provided Seedance avoid/ban/no-X requests as positive visual instructions in prompt."
31
+ },
32
+ "videoModel": {
33
+ "type": "string",
34
+ "enum": [
35
+ "ltx23",
36
+ "wan22",
37
+ "seedance2",
38
+ "seedance2-fast"
39
+ ],
40
+ "description": "Video model. \"ltx23\" (default): LTX 2.3 with native audio; Fast/HQ use the distilled 8-step worker and Default Media Quality Pro uses the non-distilled dev worker. \"wan22\": Fast 4-step, simple motion, no audio. Default: \"ltx23\". For ordinary Seedance 2.0 video requests, use seedance2-fast by default: 720p unless Default Media Quality is Fast, which should use 480p. Use seedance2 when the user explicitly asks for 1080p / the non-standard full-quality version, or whenever a generated/uploaded video storyboard image is the Seedance reference unless the user explicitly asks for a draft or the Seedance fast model/version. Storyboard-reference Seedance requests default to High Quality: set targetResolution 720 even when Default Media Quality is Fast, unless the user explicitly asks for another named resolution such as 480p. Default Media Quality Pro alone is not an explicit 1080p request; keep default Seedance resolution at 720p unless the user asks for 1080p or another resolution. Seedance supports multimodal loose reference assets: images (up to 9), videos (up to 3), and audios (up to 3), with no more than 12 asset files total. Use @Image1/@Video1/@Audio1 style references in creative briefs when assigning roles. Assign every useful reference asset a role and prefer positive preservation constraints. If an uploaded video is the source clip to transform, upscale, enhance, restyle, or remaster, use video_to_video with controlMode=\"seedance-v2v\" instead of generate_video referenceVideoIndices."
41
+ },
42
+ "generateAudio": {
43
+ "type": "boolean",
44
+ "description": "Seedance only. Whether Seedance should generate a native audio track. Omit by default; set false only when the user explicitly asks for silent output or no audio."
45
+ },
46
+ "referenceImageIndices": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "number"
50
+ },
51
+ "description": "Seedance only. Image references for @Image tags. Use negative indices for uploaded images (-1 first upload, -2 second upload) and non-negative indices for generated image results. Omit by default: uploaded images are auto-forwarded as @Image references. Anchor frame intent in the prompt with @Image tags: \"Use @Image1 as the opening shot reference. Begin the video with a composition, subject placement, lighting, mood, and camera framing that closely match @Image1.\" (or @Image2 as the final shot reference). For seamless-loop or \"first frame and last frame identical\" requests with a single uploaded image, anchor it explicitly as both: \"Use @Image1 as both the first frame and last frame so the video loops cleanly back to the opening composition.\" Do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance."
52
+ },
53
+ "referenceVideoIndices": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "number"
57
+ },
58
+ "description": "Seedance only. Optional loose video references. Use negative indices for uploaded videos (-1 first uploaded video, -2 second uploaded video) and non-negative indices for generated video results. Omit by default: uploaded videos are auto-forwarded as @Video references. Set to choose a subset or include previously generated video URLs. Do not use this for uploaded source-video transforms, upscales, enhancements, restyles, or remasters; use video_to_video with controlMode=\"seedance-v2v\" instead."
59
+ },
60
+ "referenceAudioIndices": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "number"
64
+ },
65
+ "description": "Seedance only. Optional loose audio references. Use negative indices for uploaded audio files (-1 first uploaded audio, -2 second uploaded audio) and non-negative indices for generated audio results. Omit by default: uploaded audio is auto-forwarded as @Audio references when the Seedance request also has an image or video reference. Use this only for loose background, mood, timing, or style references under an image/video-anchored Seedance shot. If the uploaded audio is the primary sync target, lip-sync target, or requested as sound-to-video/audio-sync, use sound_to_video with videoModel=\"seedance2\" instead. Audio-only Seedance requests are unsupported; use sound_to_video for uploaded-audio-only workflows."
66
+ },
67
+ "width": {
68
+ "type": "number",
69
+ "description": "Video width in pixels. LTX 2.3: 640-3840. WAN: 480-1536. Default resolution depends on model and quality tier: LTX Fast about 720p and High/Pro about 1080p; WAN Fast uses 480p short side and High/Pro uses 720p short side. Set width only when the user specifies an exact width or orientation-qualified exact pixels. A bare named resolution like \"720p resolution\" is a short-side target, not an instruction to make landscape 1280x720. If the user gives only one exact dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested exact dimensions override the default media quality. Mappings when orientation is explicit: 480p landscape=854x480, 480p portrait=480x854, 720p landscape=1280x720, 720p portrait=720x1280, 1080p landscape=1920x1080, 1080p portrait=1080x1920, 4K landscape=3840x2160. Non-step values are accepted when in bounds; LTX snaps to the nearest 64px step and WAN snaps to the nearest 16px step internally, so do not ask the user to adjust by a few pixels."
70
+ },
71
+ "height": {
72
+ "type": "number",
73
+ "description": "Video height in pixels. LTX 2.3: 640-3840. WAN: 480-1536. Set height only when the user specifies an exact height or orientation-qualified exact pixels. A bare named resolution like \"720p resolution\" is a short-side target; do not convert it to landscape dimensions unless the user says landscape/horizontal/widescreen. If the user gives only one exact dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested exact dimensions override Default Media Quality, including Pro. Non-step values are accepted when in bounds; LTX snaps to the nearest 64px step and WAN snaps to the nearest 16px step internally, so do not ask the user to adjust by a few pixels."
74
+ },
75
+ "targetResolution": {
76
+ "type": "number",
77
+ "description": "Short-side video resolution target in pixels. Use when the user asks for a bare named resolution such as \"480p\", \"720p\", or \"1080p\" without exact pixels or an output orientation. Also set for default Seedance 2.0 requests: 480 when Default Media Quality is Fast, otherwise 720, including Pro unless the user explicitly asks for 1080p or another resolution. For generated/uploaded storyboard images used as Seedance references, default to 720 even when Default Media Quality is Fast; only use 480 when the user explicitly asks for 480p. This preserves/inherits the current video shape instead of forcing landscape. Do NOT set width, height, or exact-pixel aspectRatio for bare named resolution requests. If the user says \"720p portrait\" or \"720p landscape\", use exact width/height/aspectRatio instead."
78
+ },
79
+ "numberOfVariations": {
80
+ "type": "number",
81
+ "description": "Number of variations (1-16). Use 1 unless user explicitly requests multiple separate video outputs. For Seedance, default to 1 because each variation is an expensive separate render.",
82
+ "minimum": 1,
83
+ "maximum": 16
84
+ },
85
+ "aspectRatio": {
86
+ "type": "string",
87
+ "description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\"."
88
+ },
89
+ "voicePersonaName": {
90
+ "type": "string",
91
+ "description": "ONLY when the user explicitly requests a registered/reference persona voice clip. Name of the persona whose voice clip to use as referenceAudioIdentity. Set this when the narrator/speaker is a different persona than the one described in the video (e.g. \"David\" narrates a scene featuring Aleyna), or to explicitly select a requested voice when multiple personas with voice clips are resolved. Do NOT set this for ordinary character dialogue, inferred voices, or personas without a voice clip — LTX 2.3 generates voice natively from the text prompt instead. Requires ltx23."
92
+ }
93
+ },
94
+ "required": [
95
+ "prompt"
96
+ ]
97
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/orbit_video.schema.json",
4
+ "title": "orbit_video arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Create a 360-degree orbit video around a subject. This is a SELF-CONTAINED pipeline — it automatically generates angle views (via change_angle), creates transition video clips, and stitches them into one seamless looping video. You only need ONE source image as the front view — either an uploaded image or a previously generated result. If the user uploaded an image, call this tool directly without generating anything first. Do NOT pre-generate multiple angles or variations — this tool handles everything internally. Use when the user asks for a \"360 pan\", \"orbit\", \"rotate around\", \"spin around\", or \"turntable\" view.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "elevation": {
11
+ "type": "string",
12
+ "enum": [
13
+ "low-angle shot",
14
+ "eye-level shot",
15
+ "elevated shot",
16
+ "high-angle shot"
17
+ ],
18
+ "description": "Camera elevation for all angles. Default: \"eye-level shot\"."
19
+ },
20
+ "distance": {
21
+ "type": "string",
22
+ "enum": [
23
+ "close-up",
24
+ "medium shot",
25
+ "wide shot"
26
+ ],
27
+ "description": "Camera distance for all angles. Default: \"medium shot\"."
28
+ },
29
+ "prompt": {
30
+ "type": "string",
31
+ "description": "Describe the SUBJECT and ambient environment (for example, a concise description of the visible subject, location, weather, props, and ambience). Do NOT describe camera motion, rotation, panning, orbiting, or 360-degree movement — camera motion is handled automatically. Do NOT put spoken dialogue here — use the dialogue parameter instead. Music is automatically suppressed — use generate_music separately."
32
+ },
33
+ "dialogue": {
34
+ "type": "string",
35
+ "description": "Spoken dialogue or narration for a SINGLE segment of the orbit video. This is applied ONLY to the segment specified by dialogueSegment (default: first segment). All other segments get foley/ambient audio only. Keep it brief — each segment is 2.5 seconds (~6 words max). If the user asks for dialogue in \"just the first segment\" or \"only at the start\", put the speech here and leave prompt for motion/foley only. If the user asks for dialogue in multiple/every segment, use dialogues instead."
36
+ },
37
+ "dialogues": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string"
41
+ },
42
+ "description": "Per-segment spoken dialogue lines for multiple orbit transitions. Use this when the user asks for dialogue in multiple segments, every turn, or before each 90-degree turn. With the default standard 360° orbit there are 4 transitions, so provide exactly 4 short lines in order. Each line should be brief enough for a 2.5 second segment (~6 words max). Preserve real names from the request or prior generated image; never invent placeholder speakers. For \"us\"/\"we\"/couple requests, make the named people speak together. Omit entries or use an empty string for segments that should have foley/ambient audio only. Do NOT also put these dialogue lines in prompt."
43
+ },
44
+ "dialogueSegment": {
45
+ "type": "number",
46
+ "description": "Which transition segment receives the dialogue (0-based index into the transition sequence). 0 = first transition (default), last index = wrap-back to front. With default angles there are 4 transitions (0-3). With custom angles the count equals angles.length + 1. Only used when dialogue is provided."
47
+ },
48
+ "angles": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string",
52
+ "enum": [
53
+ "front-right quarter view",
54
+ "right side view",
55
+ "back-right quarter view",
56
+ "back view",
57
+ "back-left quarter view",
58
+ "left side view",
59
+ "front-left quarter view"
60
+ ]
61
+ },
62
+ "description": "OMIT THIS PARAMETER for standard 360° orbits — the default (3 angles at 90° increments: right, back, left + source as front = 4 transitions) works for nearly all requests. Only provide this when the user explicitly asks for specific angles, a partial orbit, or extra-smooth rotation. Each additional angle costs extra credits and generation time. Values are clockwise azimuths between the source (front) and wrap-back."
63
+ },
64
+ "sourceImageIndex": {
65
+ "type": "number",
66
+ "description": "Which result image to orbit around (0-based). If the user picked a 1-based image number, subtract 1 and set this explicitly (number 3 -> 2). Omit only when the user did not choose a specific prior result; then the tool uses the latest result or original upload."
67
+ }
68
+ },
69
+ "required": []
70
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/overlay_video.schema.json",
4
+ "title": "overlay_video arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Burn text and/or logo/watermark image overlays onto a previously rendered or uploaded video. Use when the user asks to add a title, caption, label, watermark, brand logo, sponsor mark, lower-third, tagline, sticker, or any persistent text/graphic over the existing video frames. Multiple overlays can be supplied in one call (e.g. a corner logo plus a top-center title). Each overlay can optionally be limited to a [startSeconds, endSeconds] time range. When the user asks for an overlay to appear for a specific window (for example \"2 seconds in the middle\"), set startSeconds/endSeconds on the overlay item in the same call. Negative startSeconds/endSeconds are relative to the end of the base video, so startSeconds=-2 with omitted endSeconds means \"the last 2 seconds\". When replacing a video time window with an uploaded still image or screenshot, use an image overlay with widthPct=100 and fit=\"cover\" for that window. This is a pure ffmpeg post-production op — it does not regenerate the video. Do not use for generative intro/outro/bumper/end-card/start-card requests; those add or regenerate video time and should use extend_video or replace_video_segment. Do not call it again just to refine default size/placement after it succeeds; finalize and wait for user feedback. Do not use for animated typography, kinetic captions, or moving stickers; this lays down static overlays only.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "sourceVideoIndex": {
11
+ "type": "number",
12
+ "description": "Which video to overlay onto. Omit to use the most recent generated video, or the first uploaded video when no generated video exists. Non-negative values are 0-based indices into prior generated video results. Negative values reference uploaded videos: -1 = first uploaded video, -2 = second, etc., falling back to the most recent generated video when no uploads exist."
13
+ },
14
+ "overlays": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "description": "Ordered list of overlays to burn in. Each overlay is rendered on top of all previous overlays. Either kind=\"text\" (with `text` and styling) or kind=\"image\" (with `sourceImageIndex`).",
18
+ "items": {
19
+ "type": "object",
20
+ "properties": {
21
+ "kind": {
22
+ "type": "string",
23
+ "enum": [
24
+ "text",
25
+ "image"
26
+ ],
27
+ "description": "Overlay kind. \"text\" renders drawtext; \"image\" composites an existing image asset."
28
+ },
29
+ "position": {
30
+ "type": "string",
31
+ "enum": [
32
+ "top-left",
33
+ "top-center",
34
+ "top-right",
35
+ "center",
36
+ "bottom-left",
37
+ "bottom-center",
38
+ "bottom-right"
39
+ ],
40
+ "description": "Anchor position on the frame. Pixel offsets nudge inward; the renderer pads each anchor by a small safe margin so overlays do not touch the frame edge."
41
+ },
42
+ "offsetX": {
43
+ "type": "number",
44
+ "description": "Optional horizontal offset in pixels. Positive = inward from the anchor edge."
45
+ },
46
+ "offsetY": {
47
+ "type": "number",
48
+ "description": "Optional vertical offset in pixels. Positive = inward from the anchor edge."
49
+ },
50
+ "startSeconds": {
51
+ "type": "number",
52
+ "description": "Show the overlay from this time. Default 0 (show from the start). Negative values are relative to the end of the base video; startSeconds=-2 means start 2 seconds before the end."
53
+ },
54
+ "endSeconds": {
55
+ "type": "number",
56
+ "description": "Hide the overlay at this time. Default = full video duration. Negative values are relative to the end of the base video."
57
+ },
58
+ "text": {
59
+ "type": "string",
60
+ "description": "Overlay text. Required when kind=\"text\". Use plain text; line breaks are honored."
61
+ },
62
+ "fontSizePct": {
63
+ "type": "number",
64
+ "minimum": 1,
65
+ "maximum": 30,
66
+ "description": "Font size as a percentage of the video height. Default: 6 (≈ 43px on a 720p frame). Only valid when kind=\"text\"."
67
+ },
68
+ "color": {
69
+ "type": "string",
70
+ "description": "Text fill color (CSS hex like \"#FFFFFF\" or named ffmpeg color). Default \"#FFFFFF\". Only valid when kind=\"text\"."
71
+ },
72
+ "outlineColor": {
73
+ "type": "string",
74
+ "description": "Text outline color. Default \"#000000\" with a thin stroke for legibility. Only valid when kind=\"text\"."
75
+ },
76
+ "backgroundColor": {
77
+ "type": [
78
+ "string",
79
+ "null"
80
+ ],
81
+ "description": "Optional rgba background pill behind the text (e.g. \"rgba(0,0,0,0.5)\"). null = no box. Only valid when kind=\"text\"."
82
+ },
83
+ "fontWeight": {
84
+ "type": "string",
85
+ "enum": [
86
+ "normal",
87
+ "bold"
88
+ ],
89
+ "description": "Default \"normal\". Only valid when kind=\"text\"."
90
+ },
91
+ "sourceImageIndex": {
92
+ "type": "number",
93
+ "description": "Which image to overlay. Required when kind=\"image\". Non-negative values are 0-based indices into prior generated image results. Negative values reference uploaded images in image-only order: -1 = first uploaded image, -2 = second, etc. If the user uploaded one video and one logo image, the logo is sourceImageIndex=-1."
94
+ },
95
+ "widthPct": {
96
+ "type": "number",
97
+ "minimum": 1,
98
+ "maximum": 100,
99
+ "description": "Logo width as a percentage of the video width. Default: 15. Only valid when kind=\"image\"."
100
+ },
101
+ "opacity": {
102
+ "type": "number",
103
+ "minimum": 0,
104
+ "maximum": 1,
105
+ "description": "Image overlay opacity, 0..1. Default 1.0 (fully opaque). Only valid when kind=\"image\"."
106
+ },
107
+ "fit": {
108
+ "type": "string",
109
+ "enum": [
110
+ "contain",
111
+ "cover"
112
+ ],
113
+ "description": "Image sizing mode. Default \"contain\" scales by widthPct and preserves the full overlay image. \"cover\" scales/crops the image to cover the full video frame; use with widthPct=100 for screenshot/still-frame replacement windows."
114
+ }
115
+ },
116
+ "required": [
117
+ "kind",
118
+ "position"
119
+ ]
120
+ }
121
+ }
122
+ },
123
+ "required": [
124
+ "overlays"
125
+ ]
126
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/refine_result.schema.json",
4
+ "title": "refine_result arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Make ANY edit to an existing result image. This is the DEFAULT tool for follow-up requests after results exist. Use whenever the user wants to modify, adjust, or build upon a previous result — including brightness, color, sharpening, object removal, background changes, further restoration, or any other edit. If the user does not specify which image, use the most recent result (index 0 if only one result, or the last result the user referenced). Only use restore_photo instead if the user explicitly wants to start over from the original upload.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "prompt": {
11
+ "type": "string",
12
+ "description": "Targeted refinement prompt for Qwen Image Edit 2511 (50-150 words, natural language sentences).\n\nLITERAL PROMPT OVERRIDE: If the user explicitly says not to modify the prompt, or to use it exactly/verbatim/as-is, copy the identified prompt text verbatim instead of applying these construction rules unless a hard requirement is missing.\n\nPROMPT ORDER: [IDENTITY LOCK if people] → [SPECIFIC CHANGE] → [PRESERVE EVERYTHING ELSE]\n\nRules:\n- Use POSITIVE phrasing only. The model ignores negatives (\"preserve exact facial likeness\" NOT \"don't change the face\").\n- Describe ONLY what needs to change (the delta). The base image already contains most of the truth — do not rewrite the entire image.\n- Be specific about what to change: \"warmer skin tones\", \"cooler shadows\", \"sharper facial features\", \"more natural greens\".\n- For creative refinements: lean into specifics — \"add more dramatic Rembrandt lighting\", \"push the colors more toward Warhol neon pop\", \"make the anime eyes larger and more expressive\", \"add more superhero energy with glowing effects\".\n- CRITICAL for photos with people: FRONT-LOAD identity preservation before the edit. Start with \"Preserve exact facial likeness, face structure, eye shape, nose shape, mouth shape, jawline, skin tone, hairline, apparent age, and overall recognizability.\"\n- ALWAYS end with \"Preserve all unmentioned details\" to prevent unwanted changes.\n\nBATCH VARIATIONS: Only use Dynamic Prompt syntax when the user explicitly asks to explore different refinement directions. Example: \"refine with {more contrast|softer lighting|richer colors}\". Default to identical prompts for refine_result batches."
13
+ },
14
+ "sourceImageIndex": {
15
+ "type": "number",
16
+ "description": "Which result image to refine (0-based index). If the user specifies an image number, use that index. If omitted, the latest result is used automatically. When multiple results exist and the user previously referenced a specific one, use that one."
17
+ },
18
+ "numberOfVariations": {
19
+ "type": "number",
20
+ "description": "Number of variations (1-16). Use 1 unless user requests multiple. Default: 1.",
21
+ "minimum": 1,
22
+ "maximum": 16
23
+ },
24
+ "scale": {
25
+ "type": "number",
26
+ "enum": [
27
+ 1,
28
+ 1.5,
29
+ 2,
30
+ 3,
31
+ 4
32
+ ],
33
+ "description": "Output scale multiplier relative to the source image size. 1 = same resolution as source (default). Use higher values when user asks to upscale, enlarge, make bigger, or increase resolution. Small images (<480px) are automatically upscaled to at least 480px regardless of this setting. Default: 1."
34
+ },
35
+ "aspectRatio": {
36
+ "type": "string",
37
+ "description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\"."
38
+ }
39
+ },
40
+ "required": [
41
+ "prompt"
42
+ ]
43
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/replace_video_segment.schema.json",
4
+ "title": "replace_video_segment arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Regenerate a slice of a video and splice the new segment into the original at the same position. Works on BOTH videos previously rendered in this session AND user-uploaded videos — set videoIndex to a negative number (e.g. -1) to target an uploaded video when no prior render exists. Use when the user asks to modify a portion of an existing video while keeping the rest intact: \"regenerate from 5s to 10s\", \"redo the last 3 seconds\", \"swap out the middle of the video\", \"replace the bumper at the end\", \"swap the end card\", \"change the outro\", \"redo the intro\", \"change the ending\", \"replace the last clip\", etc. Also use this tool for pure ffmpeg splices where the replacement already exists as another uploaded or generated video: \"splice video 2 into video 1\", \"insert the second clip at 5s\", or \"replace 5s to 15s with uploaded clip 2\". In that case pass replacementVideoIndex, do not call generate_video/animate_photo/video_to_video, and set endSeconds=startSeconds for an insertion that should not remove time from the base video. For time-sliced edits such as \"alternate 1 second from each video\", pass replacementStartSeconds and replacementEndSeconds to cut the next source slice out of the replacement video before splicing it into the base. Repeat this call for each alternating window. Use replacement windows (endSeconds=startSeconds+sliceDuration), not insertion windows, unless the user explicitly asks to lengthen the output by inserting extra slices. replacementStartSeconds and replacementEndSeconds must be concrete non-negative seconds; never use -1 as an end-of-source sentinel. Do not use stitch_video for interleaving because stitch_video only concatenates whole clips end-to-end. STRONGLY PREFER this over re-running generate_video / animate_photo on the original prompt when the user only wants part of the video changed — re-rendering wastes credits, loses the unchanged sections, and breaks the original timing. If the user does not specify the exact start/end seconds (e.g. \"replace the bumper at the end\"), call analyze_video first to identify the correct window, OR derive it from the storyboard timing already in the conversation (e.g. last beat's time range). Do not guess wildly — pick a sensible bumper/end-card window such as the final 1-3 seconds when the storyboard says scene_07 is 14-15s. Returns both the standalone replacement clip and the spliced composite. For LTX-2.3 and Wan 2.2 base videos the tool locks both ends with first/last-frame keyframes for seamless edges. For Seedance base videos the tool uses the original window as a reference for video-to-video transformation. If a requested window is shorter than the selected model's native render minimum, the handler renders a slightly larger handled clip, trims the result back to the requested seconds, then splices exactly that requested range. By default the regenerated segment's audio replaces the original audio in the [startSeconds, endSeconds] window, so new motion stays in sync with new sound. Pass keepOriginalAudio=true only when the user explicitly asks to keep the existing audio — phrasings like \"keep the audio\", \"leave the original audio\", \"preserve the music/score/dialogue\", \"don't change the audio\". If the user uses an ambiguous phrasing such as \"with the audio\" (which could mean either \"with the original audio kept\" or \"with new audio\"), DO NOT call this tool yet — first ask the user whether to preserve or replace the original audio in the replaced window. When replacementVideoIndex is set, the existing replacement clip's own audio is used; pass keepOriginalAudio=true only when the user explicitly wants the base video audio to stay over the replacement window.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "startSeconds": {
11
+ "type": "number",
12
+ "description": "Start of the window (in seconds) inside the base video that should be regenerated. Must be ≥ 0 and < endSeconds. For \"the last N seconds\" requests, set startSeconds = max(0, baseDuration - N). When unsure of the exact base duration, you may pass a sentinel value of -1 to mean \"from the end of the base video\"; the handler will resolve it after probing."
13
+ },
14
+ "endSeconds": {
15
+ "type": "number",
16
+ "description": "End of the window (in seconds) inside the base video. For regenerated segments it must be > startSeconds and ≤ base video duration. When replacementVideoIndex is set, endSeconds may equal startSeconds to insert the replacement clip at that timestamp without removing any base-video time. For alternating/interleaved time-slice edits, use endSeconds=startSeconds+sliceDuration so the source slice replaces that base window; do not use insertion unless the user explicitly asks to lengthen the output. Pass -1 to mean \"until the end of the base video\". Windows shorter than the selected model's native render minimum are rendered with handles and trimmed before splicing; windows longer than the model maximum must be split."
17
+ },
18
+ "prompt": {
19
+ "type": "string",
20
+ "description": "What should happen in the replaced window — motion, action, dialogue, audio. For LTX include exact spoken words in double quotes when speech is requested. For Seedance V2V describe the transformation relative to the existing visuals (the original window is provided as a reference clip)."
21
+ },
22
+ "videoIndex": {
23
+ "type": "number",
24
+ "description": "Which video to edit. Default: -1 (most recent video in this session, falling back to the first uploaded video when no prior render exists). Use 0-based non-negative indices for prior tool result videos. For uploaded videos with no prior render, leave this absent or pass -1 — the handler will pick the uploaded base automatically."
25
+ },
26
+ "replacementVideoIndex": {
27
+ "type": "number",
28
+ "description": "Optional existing video clip to splice into the base video instead of regenerating a segment. Non-negative values reference prior generated videos; negative values reference uploaded videos (-1 = first uploaded video, -2 = second, etc.). Use for requests like \"splice video 2 into video 1\", \"replace 5s to 15s with uploaded clip 2\", or alternating/interleaved edits that pull timed slices from another existing clip. When this is set, the operation is pure ffmpeg post-production and keeps the replacement clip audio unless keepOriginalAudio=true."
29
+ },
30
+ "replacementStartSeconds": {
31
+ "type": "number",
32
+ "minimum": 0,
33
+ "description": "Optional start time, in seconds, inside replacementVideoIndex. Must be a concrete non-negative source time; do not use -1 sentinels for replacement source windows. Use with replacementEndSeconds when only a slice of the replacement clip should be spliced. Example: alternating 1-second clips from video 1 and video 2 should replace base window 1..2 with the first replacement slice by setting replacementVideoIndex=-2, replacementStartSeconds=0, replacementEndSeconds=1."
34
+ },
35
+ "replacementEndSeconds": {
36
+ "type": "number",
37
+ "minimum": 0,
38
+ "description": "Optional end time, in seconds, inside replacementVideoIndex. Must be a concrete non-negative source time greater than replacementStartSeconds. Do not pass -1 to mean \"end of replacement video\"; use the known uploaded/generated clip duration from metadata for routine time-sliced edits, or omit both replacementStartSeconds and replacementEndSeconds to use the whole replacement clip. Do not call analyze_video just to learn duration."
39
+ },
40
+ "videoModel": {
41
+ "type": "string",
42
+ "enum": [
43
+ "auto",
44
+ "ltx23",
45
+ "wan22",
46
+ "seedance2",
47
+ "seedance2-fast"
48
+ ],
49
+ "description": "Which model to use for the new segment. Default: \"auto\" — detect from the base video's producer (Seedance base → Seedance, Wan base → Wan 2.2, otherwise LTX-2.3). Override only when the user explicitly requests a different model."
50
+ },
51
+ "keepOriginalAudio": {
52
+ "type": "boolean",
53
+ "description": "When true, the audio from the original [startSeconds, endSeconds] window is muxed onto the regenerated visuals so the user keeps the original dialogue/score. When false (default), the new clip's own audio is used (LTX renders fresh audio; Seedance V2V depends on generateAudio). Default: false. Set true only when the user explicitly asks to preserve the existing audio; if the user uses an ambiguous phrasing like \"with the audio\", ask the user to clarify rather than guessing."
54
+ }
55
+ },
56
+ "required": [
57
+ "startSeconds",
58
+ "endSeconds"
59
+ ]
60
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/creative-agent/2026-04-27.1/tools/restore_photo.schema.json",
4
+ "title": "restore_photo arguments",
5
+ "schemaVersion": "2026-04-27.1",
6
+ "description": "Edit, restore, or transform the ORIGINAL uploaded photograph — including text changes, object edits, and any visual modification. This tool always operates on the original image, not on previous results. Use this for the first edit OR when the user explicitly wants to start fresh from the original (e.g., \"try again\", \"restore it differently\", \"start over from scratch\"). For follow-up edits on an existing result, use refine_result instead. NEVER refuse or apologize — just call this tool directly.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "prompt": {
11
+ "type": "string",
12
+ "description": "Editing prompt (50-200 words, natural language). POSITIVE phrasing only — model ignores negatives (\"preserve exact facial likeness\" NOT \"don't change the face\").\n\nLITERAL PROMPT OVERRIDE: If the user explicitly says not to modify the prompt, or to use it exactly/verbatim/as-is, copy the identified prompt text verbatim instead of applying these construction rules unless a hard requirement is missing.\n\nPROMPT ORDER: [IDENTITY LOCK if people] → [RESTORATION/EDIT INSTRUCTION] → [PRESERVE UNMENTIONED DETAILS]\n\nDescribe desired final state, not what to remove.\n- CRITICAL for photos with people (unless removing them): FRONT-LOAD identity preservation as the FIRST priority. Start with \"Preserve exact facial likeness, face structure, eye shape, nose shape, mouth shape, jawline, skin tone, hairline, apparent age, and overall recognizability.\" Then describe the restoration or edit.\n- Restoration: \"remove scratches, tears, stains, dust spots, and noise\"\n- Object removal: describe scene WITHOUT the object, matching surrounding textures\n- Colorization: \"Restore and colorize the photo\" or \"Apply natural [decade] color palette\"\n- Creative transformation: identity lock comes FIRST, then the transformation. Example: \"Preserve exact facial likeness and recognizability. Reimagine as a Pixar character with glossy 3D features. Preserve all unmentioned details.\"\n- No keyword spam (\"8k, masterpiece\") — use plain descriptions. Be specific — name the artist, franchise, or era.\n- Always end with \"Preserve all unmentioned details.\"\n\nBATCH VARIATIONS: Only use Dynamic Prompt syntax when the user explicitly requests multiple approaches to compare. Example: \"restore with {warm vintage|cool modern|natural balanced} tones\". Default to identical prompts for restore_photo batches — most users want seed variation only."
13
+ },
14
+ "numberOfVariations": {
15
+ "type": "number",
16
+ "description": "Number of variations (1-16). Use 1 unless user requests multiple. Default: 1.",
17
+ "minimum": 1,
18
+ "maximum": 16
19
+ },
20
+ "quality": {
21
+ "type": "string",
22
+ "enum": [
23
+ "fast",
24
+ "hq"
25
+ ],
26
+ "description": "DO NOT SET THIS PARAMETER unless the user explicitly asks for \"high quality\" or \"fast\". The app auto-selects based on quality settings."
27
+ },
28
+ "scale": {
29
+ "type": "number",
30
+ "enum": [
31
+ 1,
32
+ 1.5,
33
+ 2,
34
+ 3,
35
+ 4
36
+ ],
37
+ "description": "Output scale multiplier relative to the source image size. 1 = same resolution as source (default). Use higher values when user asks to upscale, enlarge, make bigger, or increase resolution. Small images (<480px) are automatically upscaled to at least 480px regardless of this setting. Default: 1."
38
+ },
39
+ "aspectRatio": {
40
+ "type": "string",
41
+ "description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\"."
42
+ }
43
+ },
44
+ "required": [
45
+ "prompt"
46
+ ]
47
+ }