@escapeaihq/client-core 0.52.0 → 0.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +445 -153
- package/dist/adapters/capabilities.d.ts +20 -3
- package/dist/adapters/capabilities.d.ts.map +1 -1
- package/dist/adapters/directorAdapter.d.ts +5 -4
- package/dist/adapters/directorAdapter.d.ts.map +1 -1
- package/dist/adapters/directorAdapter.js +5 -4
- package/dist/adapters/directorAdapter.js.map +1 -1
- package/dist/adapters/experienceModelCatalog.d.ts +382 -0
- package/dist/adapters/experienceModelCatalog.d.ts.map +1 -0
- package/dist/adapters/experienceModelCatalog.js +401 -0
- package/dist/adapters/experienceModelCatalog.js.map +1 -0
- package/dist/adapters/extractionAdapter.d.ts +81 -0
- package/dist/adapters/extractionAdapter.d.ts.map +1 -0
- package/dist/adapters/extractionAdapter.js +98 -0
- package/dist/adapters/extractionAdapter.js.map +1 -0
- package/dist/adapters/imageAdapter.d.ts +5 -1
- package/dist/adapters/imageAdapter.d.ts.map +1 -1
- package/dist/adapters/imageAdapter.js +5 -1
- package/dist/adapters/imageAdapter.js.map +1 -1
- package/dist/adapters/index.d.ts +54 -16
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +62 -11
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/momentDirective.d.ts +66 -0
- package/dist/adapters/momentDirective.d.ts.map +1 -0
- package/dist/adapters/momentDirective.js +78 -0
- package/dist/adapters/momentDirective.js.map +1 -0
- package/dist/adapters/momentPolicy.d.ts +132 -0
- package/dist/adapters/momentPolicy.d.ts.map +1 -0
- package/dist/adapters/momentPolicy.js +165 -0
- package/dist/adapters/momentPolicy.js.map +1 -0
- package/dist/adapters/registry.d.ts +1 -1
- package/dist/adapters/registry.d.ts.map +1 -1
- package/dist/adapters/videoGenAdapter.d.ts +55 -0
- package/dist/adapters/videoGenAdapter.d.ts.map +1 -0
- package/dist/adapters/videoGenAdapter.js +78 -0
- package/dist/adapters/videoGenAdapter.js.map +1 -0
- package/dist/adapters/worldAdapter.d.ts +132 -11
- package/dist/adapters/worldAdapter.d.ts.map +1 -1
- package/dist/adapters/worldAdapter.js +127 -11
- package/dist/adapters/worldAdapter.js.map +1 -1
- package/dist/adapters/worldModelPreference.d.ts +173 -0
- package/dist/adapters/worldModelPreference.d.ts.map +1 -0
- package/dist/adapters/worldModelPreference.js +209 -0
- package/dist/adapters/worldModelPreference.js.map +1 -0
- package/dist/adapters/worldModelTradeoffs.d.ts +120 -0
- package/dist/adapters/worldModelTradeoffs.d.ts.map +1 -0
- package/dist/adapters/worldModelTradeoffs.js +154 -0
- package/dist/adapters/worldModelTradeoffs.js.map +1 -0
- package/dist/admin.d.ts +545 -0
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +230 -16
- package/dist/admin.js.map +1 -1
- package/dist/api.d.ts +10281 -2216
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4174 -1240
- package/dist/api.js.map +1 -1
- package/dist/arcBoardJoin.d.ts +38 -0
- package/dist/arcBoardJoin.d.ts.map +1 -0
- package/dist/arcBoardJoin.js +37 -0
- package/dist/arcBoardJoin.js.map +1 -0
- package/dist/arcPreview.d.ts +49 -0
- package/dist/arcPreview.d.ts.map +1 -0
- package/dist/arcPreview.js +65 -0
- package/dist/arcPreview.js.map +1 -0
- package/dist/audio.d.ts +259 -16
- package/dist/audio.d.ts.map +1 -1
- package/dist/audio.js +605 -114
- package/dist/audio.js.map +1 -1
- package/dist/audioDsp.d.ts +45 -0
- package/dist/audioDsp.d.ts.map +1 -0
- package/dist/audioDsp.js +108 -0
- package/dist/audioDsp.js.map +1 -0
- package/dist/audioProtocol.d.ts +160 -0
- package/dist/audioProtocol.d.ts.map +1 -1
- package/dist/audioProtocol.js +99 -0
- package/dist/audioProtocol.js.map +1 -1
- package/dist/beatTitles.d.ts +33 -0
- package/dist/beatTitles.d.ts.map +1 -0
- package/dist/beatTitles.js +39 -0
- package/dist/beatTitles.js.map +1 -0
- package/dist/castProjection.d.ts +204 -1
- package/dist/castProjection.d.ts.map +1 -1
- package/dist/castProjection.js +202 -0
- package/dist/castProjection.js.map +1 -1
- package/dist/characterGrounding.d.ts +369 -0
- package/dist/characterGrounding.d.ts.map +1 -0
- package/dist/characterGrounding.js +408 -0
- package/dist/characterGrounding.js.map +1 -0
- package/dist/conversation/binding.d.ts +13 -0
- package/dist/conversation/binding.d.ts.map +1 -1
- package/dist/conversation/binding.js.map +1 -1
- package/dist/conversation/chatSessionStore.d.ts +178 -0
- package/dist/conversation/chatSessionStore.d.ts.map +1 -0
- package/dist/conversation/chatSessionStore.js +196 -0
- package/dist/conversation/chatSessionStore.js.map +1 -0
- package/dist/conversation/controller.d.ts +44 -0
- package/dist/conversation/controller.d.ts.map +1 -1
- package/dist/conversation/controller.js +82 -3
- package/dist/conversation/controller.js.map +1 -1
- package/dist/conversation/index.d.ts +2 -0
- package/dist/conversation/index.d.ts.map +1 -1
- package/dist/conversation/index.js +2 -0
- package/dist/conversation/index.js.map +1 -1
- package/dist/conversation/participant.d.ts +16 -0
- package/dist/conversation/participant.d.ts.map +1 -1
- package/dist/conversation/readSequencer.d.ts +38 -0
- package/dist/conversation/readSequencer.d.ts.map +1 -0
- package/dist/conversation/readSequencer.js +42 -0
- package/dist/conversation/readSequencer.js.map +1 -0
- package/dist/conversation/roster.d.ts +5 -1
- package/dist/conversation/roster.d.ts.map +1 -1
- package/dist/conversation/roster.js.map +1 -1
- package/dist/conversation/rosterProjection.d.ts +74 -1
- package/dist/conversation/rosterProjection.d.ts.map +1 -1
- package/dist/conversation/rosterProjection.js +135 -1
- package/dist/conversation/rosterProjection.js.map +1 -1
- package/dist/conversation/runtime.d.ts +20 -3
- package/dist/conversation/runtime.d.ts.map +1 -1
- package/dist/conversation/runtime.js +66 -7
- package/dist/conversation/runtime.js.map +1 -1
- package/dist/conversation/types.d.ts +43 -4
- package/dist/conversation/types.d.ts.map +1 -1
- package/dist/conversation/voice.d.ts +290 -13
- package/dist/conversation/voice.d.ts.map +1 -1
- package/dist/conversation/voice.js +565 -42
- package/dist/conversation/voice.js.map +1 -1
- package/dist/creatorCuration.d.ts +134 -0
- package/dist/creatorCuration.d.ts.map +1 -0
- package/dist/creatorCuration.js +228 -0
- package/dist/creatorCuration.js.map +1 -0
- package/dist/creatorDashboard.d.ts +155 -0
- package/dist/creatorDashboard.d.ts.map +1 -0
- package/dist/creatorDashboard.js +237 -0
- package/dist/creatorDashboard.js.map +1 -0
- package/dist/creatorUniverse.d.ts +95 -0
- package/dist/creatorUniverse.d.ts.map +1 -0
- package/dist/creatorUniverse.js +136 -0
- package/dist/creatorUniverse.js.map +1 -0
- package/dist/curationWrite.d.ts +76 -0
- package/dist/curationWrite.d.ts.map +1 -0
- package/dist/curationWrite.js +106 -0
- package/dist/curationWrite.js.map +1 -0
- package/dist/designTokens.d.ts +64 -0
- package/dist/designTokens.d.ts.map +1 -0
- package/dist/designTokens.js +117 -0
- package/dist/designTokens.js.map +1 -0
- package/dist/dialogAttribution.d.ts +79 -0
- package/dist/dialogAttribution.d.ts.map +1 -0
- package/dist/dialogAttribution.js +144 -0
- package/dist/dialogAttribution.js.map +1 -0
- package/dist/dmRunWorldReadiness.d.ts +605 -0
- package/dist/dmRunWorldReadiness.d.ts.map +1 -0
- package/dist/dmRunWorldReadiness.js +775 -0
- package/dist/dmRunWorldReadiness.js.map +1 -0
- package/dist/domains/access.d.ts +32 -0
- package/dist/domains/access.d.ts.map +1 -0
- package/dist/domains/access.js +43 -0
- package/dist/domains/access.js.map +1 -0
- package/dist/domains/adventureDefinitions.d.ts +159 -0
- package/dist/domains/adventureDefinitions.d.ts.map +1 -0
- package/dist/domains/adventureDefinitions.js +168 -0
- package/dist/domains/adventureDefinitions.js.map +1 -0
- package/dist/domains/adventures.d.ts +329 -0
- package/dist/domains/adventures.d.ts.map +1 -0
- package/dist/domains/adventures.js +359 -0
- package/dist/domains/adventures.js.map +1 -0
- package/dist/domains/arcs.d.ts +146 -0
- package/dist/domains/arcs.d.ts.map +1 -0
- package/dist/domains/arcs.js +202 -0
- package/dist/domains/arcs.js.map +1 -0
- package/dist/domains/artifacts.d.ts +259 -0
- package/dist/domains/artifacts.d.ts.map +1 -0
- package/dist/domains/artifacts.js +125 -0
- package/dist/domains/artifacts.js.map +1 -0
- package/dist/domains/chat.d.ts +158 -0
- package/dist/domains/chat.d.ts.map +1 -0
- package/dist/domains/chat.js +224 -0
- package/dist/domains/chat.js.map +1 -0
- package/dist/domains/decisions.d.ts +31 -0
- package/dist/domains/decisions.d.ts.map +1 -0
- package/dist/domains/decisions.js +42 -0
- package/dist/domains/decisions.js.map +1 -0
- package/dist/domains/documents.d.ts +218 -0
- package/dist/domains/documents.d.ts.map +1 -0
- package/dist/domains/documents.js +252 -0
- package/dist/domains/documents.js.map +1 -0
- package/dist/domains/enhancements.d.ts +106 -0
- package/dist/domains/enhancements.d.ts.map +1 -0
- package/dist/domains/enhancements.js +160 -0
- package/dist/domains/enhancements.js.map +1 -0
- package/dist/domains/graph.d.ts +454 -0
- package/dist/domains/graph.d.ts.map +1 -0
- package/dist/domains/graph.js +648 -0
- package/dist/domains/graph.js.map +1 -0
- package/dist/domains/images.d.ts +220 -0
- package/dist/domains/images.d.ts.map +1 -0
- package/dist/domains/images.js +307 -0
- package/dist/domains/images.js.map +1 -0
- package/dist/domains/ingestion.d.ts +312 -0
- package/dist/domains/ingestion.d.ts.map +1 -0
- package/dist/domains/ingestion.js +495 -0
- package/dist/domains/ingestion.js.map +1 -0
- package/dist/domains/me.d.ts +21 -0
- package/dist/domains/me.d.ts.map +1 -0
- package/dist/domains/me.js +23 -0
- package/dist/domains/me.js.map +1 -0
- package/dist/domains/orgs.d.ts +47 -0
- package/dist/domains/orgs.d.ts.map +1 -0
- package/dist/domains/orgs.js +75 -0
- package/dist/domains/orgs.js.map +1 -0
- package/dist/domains/personas.d.ts +135 -0
- package/dist/domains/personas.d.ts.map +1 -0
- package/dist/domains/personas.js +316 -0
- package/dist/domains/personas.js.map +1 -0
- package/dist/domains/projects.d.ts +53 -0
- package/dist/domains/projects.d.ts.map +1 -0
- package/dist/domains/projects.js +94 -0
- package/dist/domains/projects.js.map +1 -0
- package/dist/domains/quests.d.ts +431 -0
- package/dist/domains/quests.d.ts.map +1 -0
- package/dist/domains/quests.js +61 -0
- package/dist/domains/quests.js.map +1 -0
- package/dist/domains/reactor.d.ts +98 -0
- package/dist/domains/reactor.d.ts.map +1 -0
- package/dist/domains/reactor.js +131 -0
- package/dist/domains/reactor.js.map +1 -0
- package/dist/domains/showcase.d.ts +28 -0
- package/dist/domains/showcase.d.ts.map +1 -0
- package/dist/domains/showcase.js +28 -0
- package/dist/domains/showcase.js.map +1 -0
- package/dist/domains/storyboards.d.ts +1253 -0
- package/dist/domains/storyboards.d.ts.map +1 -0
- package/dist/domains/storyboards.js +781 -0
- package/dist/domains/storyboards.js.map +1 -0
- package/dist/domains/studioSettings.d.ts +39 -0
- package/dist/domains/studioSettings.d.ts.map +1 -0
- package/dist/domains/studioSettings.js +80 -0
- package/dist/domains/studioSettings.js.map +1 -0
- package/dist/domains/universes.d.ts +191 -0
- package/dist/domains/universes.d.ts.map +1 -0
- package/dist/domains/universes.js +276 -0
- package/dist/domains/universes.js.map +1 -0
- package/dist/domains/userDefaults.d.ts +18 -0
- package/dist/domains/userDefaults.d.ts.map +1 -0
- package/dist/domains/userDefaults.js +27 -0
- package/dist/domains/userDefaults.js.map +1 -0
- package/dist/domains/visemeBundles.d.ts +262 -0
- package/dist/domains/visemeBundles.d.ts.map +1 -0
- package/dist/domains/visemeBundles.js +373 -0
- package/dist/domains/visemeBundles.js.map +1 -0
- package/dist/domains/workflows.d.ts +142 -0
- package/dist/domains/workflows.d.ts.map +1 -0
- package/dist/domains/workflows.js +245 -0
- package/dist/domains/workflows.js.map +1 -0
- package/dist/enhancementDiff.d.ts +56 -0
- package/dist/enhancementDiff.d.ts.map +1 -0
- package/dist/enhancementDiff.js +110 -0
- package/dist/enhancementDiff.js.map +1 -0
- package/dist/generated/contract.d.ts +372 -0
- package/dist/generated/contract.d.ts.map +1 -0
- package/dist/generated/contract.js +390 -0
- package/dist/generated/contract.js.map +1 -0
- package/dist/graphSchema.d.ts +36 -5
- package/dist/graphSchema.d.ts.map +1 -1
- package/dist/graphSchema.js +88 -2
- package/dist/graphSchema.js.map +1 -1
- package/dist/http.d.ts +70 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +263 -11
- package/dist/http.js.map +1 -1
- package/dist/identity.d.ts +81 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +65 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -1
- package/dist/messageContent.d.ts +174 -0
- package/dist/messageContent.d.ts.map +1 -0
- package/dist/messageContent.js +405 -0
- package/dist/messageContent.js.map +1 -0
- package/dist/mutationEpoch.d.ts +83 -0
- package/dist/mutationEpoch.d.ts.map +1 -0
- package/dist/mutationEpoch.js +109 -0
- package/dist/mutationEpoch.js.map +1 -0
- package/dist/obo.d.ts +144 -0
- package/dist/obo.d.ts.map +1 -0
- package/dist/obo.js +135 -0
- package/dist/obo.js.map +1 -0
- package/dist/opusTransport.d.ts +113 -0
- package/dist/opusTransport.d.ts.map +1 -0
- package/dist/opusTransport.js +170 -0
- package/dist/opusTransport.js.map +1 -0
- package/dist/pagination.d.ts +18 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +26 -0
- package/dist/pagination.js.map +1 -0
- package/dist/platformAssistant.d.ts +55 -1
- package/dist/platformAssistant.d.ts.map +1 -1
- package/dist/platformAssistant.js +39 -1
- package/dist/platformAssistant.js.map +1 -1
- package/dist/pollUtils.d.ts +19 -0
- package/dist/pollUtils.d.ts.map +1 -0
- package/dist/pollUtils.js +35 -0
- package/dist/pollUtils.js.map +1 -0
- package/dist/questLog.d.ts +232 -0
- package/dist/questLog.d.ts.map +1 -0
- package/dist/questLog.js +522 -0
- package/dist/questLog.js.map +1 -0
- package/dist/reactor/dmDirectiveToExperience.d.ts +300 -0
- package/dist/reactor/dmDirectiveToExperience.d.ts.map +1 -0
- package/dist/reactor/dmDirectiveToExperience.js +401 -0
- package/dist/reactor/dmDirectiveToExperience.js.map +1 -0
- package/dist/reactor/dmSceneControlPrompt.d.ts.map +1 -1
- package/dist/reactor/dmSceneControlPrompt.js +64 -2
- package/dist/reactor/dmSceneControlPrompt.js.map +1 -1
- package/dist/reactor/dmWorldEntry.d.ts +1278 -0
- package/dist/reactor/dmWorldEntry.d.ts.map +1 -0
- package/dist/reactor/dmWorldEntry.js +1396 -0
- package/dist/reactor/dmWorldEntry.js.map +1 -0
- package/dist/reactor/framePromptCompaction.d.ts +223 -0
- package/dist/reactor/framePromptCompaction.d.ts.map +1 -0
- package/dist/reactor/framePromptCompaction.js +393 -0
- package/dist/reactor/framePromptCompaction.js.map +1 -0
- package/dist/reactor/frameWorldBind.d.ts +86 -0
- package/dist/reactor/frameWorldBind.d.ts.map +1 -0
- package/dist/reactor/frameWorldBind.js +79 -0
- package/dist/reactor/frameWorldBind.js.map +1 -0
- package/dist/reactor/happyOysterSeed.d.ts +166 -0
- package/dist/reactor/happyOysterSeed.d.ts.map +1 -0
- package/dist/reactor/happyOysterSeed.js +233 -0
- package/dist/reactor/happyOysterSeed.js.map +1 -0
- package/dist/reactor/happyOysterWalk.d.ts +274 -0
- package/dist/reactor/happyOysterWalk.d.ts.map +1 -0
- package/dist/reactor/happyOysterWalk.js +407 -0
- package/dist/reactor/happyOysterWalk.js.map +1 -0
- package/dist/reactor/happyOysterWorld.d.ts +718 -0
- package/dist/reactor/happyOysterWorld.d.ts.map +1 -0
- package/dist/reactor/happyOysterWorld.js +826 -0
- package/dist/reactor/happyOysterWorld.js.map +1 -0
- package/dist/reactor/heliosCommandDispatcher.d.ts.map +1 -1
- package/dist/reactor/heliosCommandDispatcher.js +5 -2
- package/dist/reactor/heliosCommandDispatcher.js.map +1 -1
- package/dist/reactor/hiddenWorldLifecycle.d.ts +101 -0
- package/dist/reactor/hiddenWorldLifecycle.d.ts.map +1 -0
- package/dist/reactor/hiddenWorldLifecycle.js +119 -0
- package/dist/reactor/hiddenWorldLifecycle.js.map +1 -0
- package/dist/reactor/imageCanvas.d.ts +15 -0
- package/dist/reactor/imageCanvas.d.ts.map +1 -0
- package/dist/reactor/imageCanvas.js +33 -0
- package/dist/reactor/imageCanvas.js.map +1 -0
- package/dist/reactor/index.d.ts +19 -0
- package/dist/reactor/index.d.ts.map +1 -1
- package/dist/reactor/index.js +78 -0
- package/dist/reactor/index.js.map +1 -1
- package/dist/reactor/longLiveCommandDispatcher.d.ts +23 -8
- package/dist/reactor/longLiveCommandDispatcher.d.ts.map +1 -1
- package/dist/reactor/longLiveCommandDispatcher.js +16 -4
- package/dist/reactor/longLiveCommandDispatcher.js.map +1 -1
- package/dist/reactor/longLiveSceneEntry.d.ts +203 -0
- package/dist/reactor/longLiveSceneEntry.d.ts.map +1 -0
- package/dist/reactor/longLiveSceneEntry.js +280 -0
- package/dist/reactor/longLiveSceneEntry.js.map +1 -0
- package/dist/reactor/momentCut.d.ts +153 -0
- package/dist/reactor/momentCut.d.ts.map +1 -0
- package/dist/reactor/momentCut.js +142 -0
- package/dist/reactor/momentCut.js.map +1 -0
- package/dist/reactor/promptAddonRegistry.d.ts +39 -3
- package/dist/reactor/promptAddonRegistry.d.ts.map +1 -1
- package/dist/reactor/promptAddonRegistry.js +42 -3
- package/dist/reactor/promptAddonRegistry.js.map +1 -1
- package/dist/reactor/promptTemplatePreview.d.ts +97 -0
- package/dist/reactor/promptTemplatePreview.d.ts.map +1 -0
- package/dist/reactor/promptTemplatePreview.js +185 -0
- package/dist/reactor/promptTemplatePreview.js.map +1 -0
- package/dist/reactor/reactorAvailability.d.ts +80 -0
- package/dist/reactor/reactorAvailability.d.ts.map +1 -0
- package/dist/reactor/reactorAvailability.js +121 -0
- package/dist/reactor/reactorAvailability.js.map +1 -0
- package/dist/reactor/reactorSessionRefusal.d.ts +125 -0
- package/dist/reactor/reactorSessionRefusal.d.ts.map +1 -0
- package/dist/reactor/reactorSessionRefusal.js +197 -0
- package/dist/reactor/reactorSessionRefusal.js.map +1 -0
- package/dist/reactor/reactorTokenScope.d.ts +47 -0
- package/dist/reactor/reactorTokenScope.d.ts.map +1 -0
- package/dist/reactor/reactorTokenScope.js +64 -0
- package/dist/reactor/reactorTokenScope.js.map +1 -0
- package/dist/reactor/resolveDirectorBeats.d.ts +65 -0
- package/dist/reactor/resolveDirectorBeats.d.ts.map +1 -0
- package/dist/reactor/resolveDirectorBeats.js +86 -0
- package/dist/reactor/resolveDirectorBeats.js.map +1 -0
- package/dist/reactor/sanaLiveEdit.d.ts +117 -0
- package/dist/reactor/sanaLiveEdit.d.ts.map +1 -0
- package/dist/reactor/sanaLiveEdit.js +105 -0
- package/dist/reactor/sanaLiveEdit.js.map +1 -0
- package/dist/reactor/sceneEntry.d.ts +66 -9
- package/dist/reactor/sceneEntry.d.ts.map +1 -1
- package/dist/reactor/sceneEntry.js +59 -66
- package/dist/reactor/sceneEntry.js.map +1 -1
- package/dist/reactor/sceneSeedImage.d.ts +199 -0
- package/dist/reactor/sceneSeedImage.d.ts.map +1 -0
- package/dist/reactor/sceneSeedImage.js +239 -0
- package/dist/reactor/sceneSeedImage.js.map +1 -0
- package/dist/reactor/seedImageOrchestrator.d.ts +70 -3
- package/dist/reactor/seedImageOrchestrator.d.ts.map +1 -1
- package/dist/reactor/seedImageOrchestrator.js +92 -28
- package/dist/reactor/seedImageOrchestrator.js.map +1 -1
- package/dist/reactor/toolPromptAddon.d.ts.map +1 -1
- package/dist/reactor/toolPromptAddon.js +16 -2
- package/dist/reactor/toolPromptAddon.js.map +1 -1
- package/dist/reactor/worldMintLoop.d.ts +286 -0
- package/dist/reactor/worldMintLoop.d.ts.map +1 -0
- package/dist/reactor/worldMintLoop.js +381 -0
- package/dist/reactor/worldMintLoop.js.map +1 -0
- package/dist/reactor/worldSteerOutcome.d.ts +98 -0
- package/dist/reactor/worldSteerOutcome.d.ts.map +1 -0
- package/dist/reactor/worldSteerOutcome.js +81 -0
- package/dist/reactor/worldSteerOutcome.js.map +1 -0
- package/dist/retryAfter.d.ts +15 -0
- package/dist/retryAfter.d.ts.map +1 -0
- package/dist/retryAfter.js +75 -0
- package/dist/retryAfter.js.map +1 -0
- package/dist/seriesKey.d.ts +31 -0
- package/dist/seriesKey.d.ts.map +1 -0
- package/dist/seriesKey.js +33 -0
- package/dist/seriesKey.js.map +1 -0
- package/dist/sessionRefresh.d.ts +135 -0
- package/dist/sessionRefresh.d.ts.map +1 -0
- package/dist/sessionRefresh.js +215 -0
- package/dist/sessionRefresh.js.map +1 -0
- package/dist/sharedAudioContext.d.ts +39 -0
- package/dist/sharedAudioContext.d.ts.map +1 -0
- package/dist/sharedAudioContext.js +63 -0
- package/dist/sharedAudioContext.js.map +1 -0
- package/dist/singleFlight.d.ts +51 -0
- package/dist/singleFlight.d.ts.map +1 -0
- package/dist/singleFlight.js +87 -0
- package/dist/singleFlight.js.map +1 -0
- package/dist/storyGraph.d.ts +83 -0
- package/dist/storyGraph.d.ts.map +1 -1
- package/dist/storyGraph.js +169 -4
- package/dist/storyGraph.js.map +1 -1
- package/dist/storyboardMask.d.ts +343 -0
- package/dist/storyboardMask.d.ts.map +1 -0
- package/dist/storyboardMask.js +505 -0
- package/dist/storyboardMask.js.map +1 -0
- package/dist/storyboardTimeline.d.ts +93 -0
- package/dist/storyboardTimeline.d.ts.map +1 -0
- package/dist/storyboardTimeline.js +131 -0
- package/dist/storyboardTimeline.js.map +1 -0
- package/dist/studioAutomation.d.ts +104 -0
- package/dist/studioAutomation.d.ts.map +1 -0
- package/dist/studioAutomation.js +178 -0
- package/dist/studioAutomation.js.map +1 -0
- package/dist/tenantClaim.d.ts +86 -0
- package/dist/tenantClaim.d.ts.map +1 -0
- package/dist/tenantClaim.js +164 -0
- package/dist/tenantClaim.js.map +1 -0
- package/dist/timeFormat.d.ts +25 -0
- package/dist/timeFormat.d.ts.map +1 -1
- package/dist/timeFormat.js +56 -0
- package/dist/timeFormat.js.map +1 -1
- package/dist/toolSchemas.d.ts +53 -10
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +36 -9
- package/dist/toolSchemas.js.map +1 -1
- package/dist/transport.d.ts +120 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +282 -0
- package/dist/transport.js.map +1 -0
- package/dist/videoGenFacade.d.ts +63 -0
- package/dist/videoGenFacade.d.ts.map +1 -0
- package/dist/videoGenFacade.js +49 -0
- package/dist/videoGenFacade.js.map +1 -0
- package/dist/visemeScheduler.d.ts +24 -2
- package/dist/visemeScheduler.d.ts.map +1 -1
- package/dist/visemeScheduler.js +31 -2
- package/dist/visemeScheduler.js.map +1 -1
- package/dist/vision/VisionPublisher.d.ts +88 -0
- package/dist/vision/VisionPublisher.d.ts.map +1 -1
- package/dist/vision/VisionPublisher.js +196 -13
- package/dist/vision/VisionPublisher.js.map +1 -1
- package/dist/vision/VisionSourceController.d.ts +67 -1
- package/dist/vision/VisionSourceController.d.ts.map +1 -1
- package/dist/vision/VisionSourceController.js +147 -5
- package/dist/vision/VisionSourceController.js.map +1 -1
- package/dist/vision/index.d.ts +2 -1
- package/dist/vision/index.d.ts.map +1 -1
- package/dist/vision/index.js +2 -1
- package/dist/vision/index.js.map +1 -1
- package/dist/vision/sourceKinds.d.ts +18 -5
- package/dist/vision/sourceKinds.d.ts.map +1 -1
- package/dist/vision/sourceKinds.js +15 -2
- package/dist/vision/sourceKinds.js.map +1 -1
- package/dist/vision/types.d.ts +7 -4
- package/dist/vision/types.d.ts.map +1 -1
- package/dist/vision/visionErrors.d.ts +45 -0
- package/dist/vision/visionErrors.d.ts.map +1 -0
- package/dist/vision/visionErrors.js +66 -0
- package/dist/vision/visionErrors.js.map +1 -0
- package/dist/voiceCloneCaption.d.ts +33 -0
- package/dist/voiceCloneCaption.d.ts.map +1 -0
- package/dist/voiceCloneCaption.js +69 -0
- package/dist/voiceCloneCaption.js.map +1 -0
- package/dist/websocket.d.ts +273 -10
- package/dist/websocket.d.ts.map +1 -1
- package/dist/websocket.js +79 -0
- package/dist/websocket.js.map +1 -1
- package/dist/workflowAuthoring.d.ts +139 -0
- package/dist/workflowAuthoring.d.ts.map +1 -0
- package/dist/workflowAuthoring.js +557 -0
- package/dist/workflowAuthoring.js.map +1 -0
- package/package.json +15 -5
- package/src/__tests__/adapters-director.test.ts +9 -6
- package/src/__tests__/adapters-extraction.test.ts +175 -0
- package/src/__tests__/adapters-image.test.ts +66 -0
- package/src/__tests__/adapters-momentPolicy.test.ts +218 -0
- package/src/__tests__/adapters-platform.test.ts +110 -4
- package/src/__tests__/adapters-videogen.test.ts +53 -0
- package/src/__tests__/adapters-world.test.ts +117 -7
- package/src/__tests__/admin.enhancement-defaults.test.ts +115 -0
- package/src/__tests__/admin.test.ts +282 -0
- package/src/__tests__/adventures-world-state.test.ts +156 -0
- package/src/__tests__/adventures.test.ts +111 -1
- package/src/__tests__/api-pollers.test.ts +113 -23
- package/src/__tests__/api.adventure-definitions.test.ts +312 -0
- package/src/__tests__/api.anchor-beat.test.ts +75 -0
- package/src/__tests__/api.arc-approval.test.ts +171 -0
- package/src/__tests__/api.arc-beats-floor.test.ts +56 -0
- package/src/__tests__/api.arc-generation.test.ts +168 -0
- package/src/__tests__/api.arc-templates.test.ts +78 -0
- package/src/__tests__/api.assignVideoSeries.test.ts +81 -0
- package/src/__tests__/api.cast-frame-choices.test.ts +141 -0
- package/src/__tests__/api.cutscene-registry.test.ts +148 -0
- package/src/__tests__/api.enhancement-addition-actions.test.ts +137 -0
- package/src/__tests__/api.enrichVideo-serialization.test.ts +116 -0
- package/src/__tests__/api.extraction-base.test.ts +87 -0
- package/src/__tests__/api.generateVideo-cutscene.test.ts +148 -0
- package/src/__tests__/api.job-pipeline-stages.test.ts +128 -0
- package/src/__tests__/api.list-images-filters.test.ts +6 -3
- package/src/__tests__/api.quest-curation.test.ts +169 -0
- package/src/__tests__/api.reprocessVideo.test.ts +71 -0
- package/src/__tests__/api.scene-split-merge.test.ts +129 -0
- package/src/__tests__/api.session-quests.test.ts +184 -0
- package/src/__tests__/api.test.ts +122 -0
- package/src/__tests__/api.transferSeries.test.ts +114 -0
- package/src/__tests__/api.unknown-clusters.test.ts +225 -0
- package/src/__tests__/api.uploadVideo-options.test.ts +156 -0
- package/src/__tests__/arcPreview.test.ts +71 -0
- package/src/__tests__/arcStyleProfile.test.ts +204 -0
- package/src/__tests__/artifacts-delete.test.ts +109 -0
- package/src/__tests__/audio.test.ts +864 -5
- package/src/__tests__/audioDsp.test.ts +196 -0
- package/src/__tests__/audioUnavailable.test.ts +43 -0
- package/src/__tests__/cast.test.ts +10 -1
- package/src/__tests__/castCurationProjection.test.ts +84 -0
- package/src/__tests__/castFramePipelinePending.test.ts +171 -0
- package/src/__tests__/castProjection.test.ts +497 -5
- package/src/__tests__/characterGrounding.test.ts +357 -0
- package/src/__tests__/contract.test.ts +97 -0
- package/src/__tests__/conversation/chatSessionStore.test.ts +243 -0
- package/src/__tests__/conversation/controller.test.ts +211 -0
- package/src/__tests__/conversation/readSequencer.test.ts +52 -0
- package/src/__tests__/conversation/rosterProjection.test.ts +204 -3
- package/src/__tests__/conversation/runtime.test.ts +118 -1
- package/src/__tests__/conversation/voice.test.ts +741 -7
- package/src/__tests__/creatorCuration.test.ts +256 -0
- package/src/__tests__/creatorDashboard.test.ts +444 -0
- package/src/__tests__/creatorUniverse.test.ts +138 -0
- package/src/__tests__/curationWrite.test.ts +179 -0
- package/src/__tests__/decisions.test.ts +89 -0
- package/src/__tests__/designTokens.test.ts +72 -0
- package/src/__tests__/dialogAttribution.test.ts +187 -0
- package/src/__tests__/dmDirectiveToExperience.test.ts +198 -0
- package/src/__tests__/dmWorldEntry.test.ts +2102 -0
- package/src/__tests__/enhancementDiff.test.ts +132 -0
- package/src/__tests__/experienceModelCatalog.test.ts +292 -0
- package/src/__tests__/extractionStageState.test.ts +67 -0
- package/src/__tests__/getVideo.test.ts +95 -0
- package/src/__tests__/graphReadAfterWrite.test.ts +211 -0
- package/src/__tests__/graphSchema.test.ts +55 -4
- package/src/__tests__/happyOysterSeed.test.ts +208 -0
- package/src/__tests__/happyOysterWorld.test.ts +1241 -0
- package/src/__tests__/happyOysterWorldRefusal.test.ts +224 -0
- package/src/__tests__/hiddenWorldLifecycle.test.ts +203 -0
- package/src/__tests__/http.session-refresh.test.ts +424 -0
- package/src/__tests__/http.test.ts +316 -0
- package/src/__tests__/identity.test.ts +132 -0
- package/src/__tests__/loadBundleManifest.test.ts +192 -22
- package/src/__tests__/longLiveSceneEntry.test.ts +371 -0
- package/src/__tests__/me.test.ts +74 -0
- package/src/__tests__/messageContent.test.ts +395 -0
- package/src/__tests__/momentCut.test.ts +229 -0
- package/src/__tests__/mutationEpoch.test.ts +218 -0
- package/src/__tests__/obo.test.ts +159 -0
- package/src/__tests__/opusTransport.test.ts +182 -0
- package/src/__tests__/opusTransportLibopus.test.ts +125 -0
- package/src/__tests__/orgs.test.ts +229 -0
- package/src/__tests__/persona-generation.test.ts +187 -1
- package/src/__tests__/platformAssistant.test.ts +140 -0
- package/src/__tests__/projects.test.ts +338 -0
- package/src/__tests__/promptTemplatePreview.test.ts +160 -0
- package/src/__tests__/reactor/__fixtures__/realFramePromptText.ts +23 -0
- package/src/__tests__/reactor/api-reactor.test.ts +60 -21
- package/src/__tests__/reactor/framePromptCompaction.test.ts +300 -0
- package/src/__tests__/reactor/promptAddonRegistry.test.ts +79 -0
- package/src/__tests__/reactor/reactorTokenScope.test.ts +50 -0
- package/src/__tests__/reactor/resolveDirectorBeats.test.ts +156 -0
- package/src/__tests__/reactor/sceneEntry.test.ts +3 -0
- package/src/__tests__/reactor/sceneSeedImage.test.ts +361 -0
- package/src/__tests__/reactor/seedImageOrchestrator.test.ts +43 -5
- package/src/__tests__/reactor-happyOysterWalk.test.ts +294 -0
- package/src/__tests__/reactorAvailability.test.ts +217 -0
- package/src/__tests__/reactorSessionRefusal.test.ts +189 -0
- package/src/__tests__/regeneration.test.ts +9 -9
- package/src/__tests__/reprocessBlockedReason.test.ts +30 -0
- package/src/__tests__/retryAfter.test.ts +65 -0
- package/src/__tests__/roleClaim.test.ts +102 -0
- package/src/__tests__/sanaLiveEdit.test.ts +84 -0
- package/src/__tests__/seriesKey.test.ts +24 -0
- package/src/__tests__/settings-set9.test.ts +238 -0
- package/src/__tests__/singleFlight.test.ts +348 -0
- package/src/__tests__/storyGraph.test.ts +111 -1
- package/src/__tests__/storyboardFrameCutscene.test.ts +115 -0
- package/src/__tests__/storyboardMask.test.ts +527 -0
- package/src/__tests__/storyboardTimeline.test.ts +228 -0
- package/src/__tests__/storyboards.test.ts +639 -0
- package/src/__tests__/studioAutomation.test.ts +325 -0
- package/src/__tests__/toolSchemas.test.ts +11 -18
- package/src/__tests__/transport.test.ts +312 -0
- package/src/__tests__/videoGenFacade.test.ts +141 -0
- package/src/__tests__/videoGraph.test.ts +43 -1
- package/src/__tests__/visemeScheduler.test.ts +55 -1
- package/src/__tests__/visibility.test.ts +143 -0
- package/src/__tests__/voiceCloneCaption.test.ts +80 -0
- package/src/__tests__/voiceFallback.test.ts +55 -0
- package/src/__tests__/websocket-error-turn-ended.test.ts +49 -0
- package/src/__tests__/websocket-vision.test.ts +141 -0
- package/src/__tests__/websocket.test.ts +75 -1
- package/src/__tests__/workflowAuthoring.test.ts +187 -0
- package/src/__tests__/workflows.test.ts +640 -0
- package/src/__tests__/worldMintLoop.test.ts +448 -0
- package/src/__tests__/worldModelPreference.test.ts +302 -0
- package/src/__tests__/worldModelTradeoffs.test.ts +89 -0
- package/src/__tests__/worldSteerOutcome.test.ts +62 -0
- package/src/adapters/capabilities.ts +39 -3
- package/src/adapters/directorAdapter.ts +5 -4
- package/src/adapters/experienceModelCatalog.ts +538 -0
- package/src/adapters/extractionAdapter.ts +150 -0
- package/src/adapters/imageAdapter.ts +5 -1
- package/src/adapters/index.ts +104 -17
- package/src/adapters/momentDirective.ts +109 -0
- package/src/adapters/momentPolicy.ts +209 -0
- package/src/adapters/registry.ts +1 -1
- package/src/adapters/videoGenAdapter.ts +124 -0
- package/src/adapters/worldAdapter.ts +221 -16
- package/src/adapters/worldModelPreference.ts +247 -0
- package/src/adapters/worldModelTradeoffs.ts +247 -0
- package/src/admin.ts +842 -16
- package/src/api.ts +12670 -3446
- package/src/arcBoardJoin.ts +46 -0
- package/src/arcPreview.ts +103 -0
- package/src/audio.ts +691 -130
- package/src/audioDsp.ts +132 -0
- package/src/audioProtocol.ts +235 -0
- package/src/beatTitles.ts +51 -0
- package/src/castProjection.ts +311 -0
- package/src/characterGrounding.ts +491 -0
- package/src/conversation/binding.ts +13 -0
- package/src/conversation/chatSessionStore.ts +281 -0
- package/src/conversation/controller.ts +96 -3
- package/src/conversation/index.ts +2 -0
- package/src/conversation/participant.ts +16 -0
- package/src/conversation/readSequencer.ts +55 -0
- package/src/conversation/roster.ts +5 -1
- package/src/conversation/rosterProjection.ts +166 -2
- package/src/conversation/runtime.ts +66 -7
- package/src/conversation/types.ts +43 -4
- package/src/conversation/voice.ts +655 -51
- package/src/creatorCuration.ts +316 -0
- package/src/creatorDashboard.ts +344 -0
- package/src/creatorUniverse.ts +222 -0
- package/src/curationWrite.ts +108 -0
- package/src/designTokens.ts +157 -0
- package/src/dialogAttribution.ts +182 -0
- package/src/dmRunWorldReadiness.ts +1168 -0
- package/src/domains/access.ts +92 -0
- package/src/domains/adventureDefinitions.ts +313 -0
- package/src/domains/adventures.ts +557 -0
- package/src/domains/arcs.ts +350 -0
- package/src/domains/artifacts.ts +349 -0
- package/src/domains/chat.ts +338 -0
- package/src/domains/decisions.ts +62 -0
- package/src/domains/documents.ts +389 -0
- package/src/domains/enhancements.ts +259 -0
- package/src/domains/graph.ts +959 -0
- package/src/domains/images.ts +451 -0
- package/src/domains/ingestion.ts +695 -0
- package/src/domains/me.ts +27 -0
- package/src/domains/orgs.ts +168 -0
- package/src/domains/personas.ts +433 -0
- package/src/domains/projects.ts +177 -0
- package/src/domains/quests.ts +587 -0
- package/src/domains/reactor.ts +163 -0
- package/src/domains/showcase.ts +35 -0
- package/src/domains/storyboards.ts +1698 -0
- package/src/domains/studioSettings.ts +149 -0
- package/src/domains/universes.ts +433 -0
- package/src/domains/userDefaults.ts +37 -0
- package/src/domains/visemeBundles.ts +541 -0
- package/src/domains/workflows.ts +376 -0
- package/src/enhancementDiff.ts +171 -0
- package/src/generated/contract.ts +1011 -0
- package/src/graphSchema.ts +154 -6
- package/src/http.ts +295 -11
- package/src/identity.ts +123 -0
- package/src/index.ts +131 -0
- package/src/messageContent.ts +500 -0
- package/src/mutationEpoch.ts +107 -0
- package/src/obo.ts +201 -0
- package/src/opusTransport.ts +268 -0
- package/src/pagination.ts +29 -0
- package/src/platformAssistant.ts +97 -1
- package/src/pollUtils.ts +35 -0
- package/src/questLog.ts +704 -0
- package/src/reactor/dmDirectiveToExperience.ts +636 -0
- package/src/reactor/dmSceneControlPrompt.ts +69 -2
- package/src/reactor/dmWorldEntry.ts +2226 -0
- package/src/reactor/framePromptCompaction.ts +544 -0
- package/src/reactor/frameWorldBind.ts +133 -0
- package/src/reactor/happyOysterSeed.ts +329 -0
- package/src/reactor/happyOysterWalk.ts +541 -0
- package/src/reactor/happyOysterWorld.ts +1270 -0
- package/src/reactor/heliosCommandDispatcher.ts +5 -1
- package/src/reactor/hiddenWorldLifecycle.ts +182 -0
- package/src/reactor/imageCanvas.ts +38 -0
- package/src/reactor/index.ts +78 -0
- package/src/reactor/longLiveCommandDispatcher.ts +23 -8
- package/src/reactor/longLiveSceneEntry.ts +409 -0
- package/src/reactor/momentCut.ts +219 -0
- package/src/reactor/promptAddonRegistry.ts +81 -3
- package/src/reactor/promptTemplatePreview.ts +240 -0
- package/src/reactor/reactorAvailability.ts +155 -0
- package/src/reactor/reactorSessionRefusal.ts +260 -0
- package/src/reactor/reactorTokenScope.ts +69 -0
- package/src/reactor/resolveDirectorBeats.ts +140 -0
- package/src/reactor/sanaLiveEdit.ts +158 -0
- package/src/reactor/sceneEntry.ts +106 -88
- package/src/reactor/sceneSeedImage.ts +338 -0
- package/src/reactor/seedImageOrchestrator.ts +116 -34
- package/src/reactor/toolPromptAddon.ts +16 -2
- package/src/reactor/worldMintLoop.ts +545 -0
- package/src/reactor/worldSteerOutcome.ts +132 -0
- package/src/retryAfter.ts +71 -0
- package/src/seriesKey.ts +42 -0
- package/src/sessionRefresh.ts +237 -0
- package/src/sharedAudioContext.ts +67 -0
- package/src/singleFlight.ts +91 -0
- package/src/storyGraph.ts +247 -4
- package/src/storyboardMask.ts +756 -0
- package/src/storyboardTimeline.ts +220 -0
- package/src/studioAutomation.ts +208 -0
- package/src/tenantClaim.ts +170 -0
- package/src/timeFormat.ts +51 -0
- package/src/toolSchemas.ts +39 -10
- package/src/transport.ts +327 -0
- package/src/videoGenFacade.ts +90 -0
- package/src/visemeScheduler.ts +36 -3
- package/src/vision/VisionPublisher.ts +204 -14
- package/src/vision/VisionSourceController.ts +187 -6
- package/src/vision/__tests__/VisionPublisher.kvs.test.ts +50 -0
- package/src/vision/__tests__/VisionPublisher.test.ts +291 -0
- package/src/vision/__tests__/VisionSourceController.test.ts +376 -6
- package/src/vision/index.ts +5 -1
- package/src/vision/sourceKinds.ts +19 -5
- package/src/vision/types.ts +7 -4
- package/src/vision/visionErrors.ts +70 -0
- package/src/voiceCloneCaption.ts +77 -0
- package/src/websocket.ts +361 -12
- package/src/workflowAuthoring.ts +664 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enhancements domain module (§A9, row A9.2): the additive-enhancement
|
|
3
|
+
* framework (spec §6, P3) — on-demand additive passes over the CURATED story
|
|
4
|
+
* graph (definitions CRUD, run/list/read runs, additions manifest, revert,
|
|
5
|
+
* per-addition keep/discard (T4.3), and the report-only LLM-as-judge (T2.3))
|
|
6
|
+
* — moved off the `ApiClient` god class into a facade delegation per the
|
|
7
|
+
* client-core domain split.
|
|
8
|
+
*
|
|
9
|
+
* `ApiClient` keeps the public method names/signatures/JSDoc UNCHANGED (the
|
|
10
|
+
* published surface `../Web-App` is pinned to) — every `ApiClient` method
|
|
11
|
+
* below is now a one-line delegation to an `EnhancementsApi` instance held on
|
|
12
|
+
* `this.enhancements`. Request/response TYPES stay declared in `api.ts`
|
|
13
|
+
* (still exported from `index.ts` exactly as before); this module only
|
|
14
|
+
* imports them `import type` so there is no runtime circularity with
|
|
15
|
+
* `api.ts`.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Additive-enhancement framework (spec §6, P3): on-demand additive passes
|
|
19
|
+
* over the CURATED story graph. All ADDITIVE — the backend surface is
|
|
20
|
+
* land-dark (404) until `ENABLE_ENHANCEMENTS`. These feed the P4 jobs-page
|
|
21
|
+
* Enhancements panel (dropdown + run + runs list + diff view).
|
|
22
|
+
*/
|
|
23
|
+
export class EnhancementsApi {
|
|
24
|
+
transport;
|
|
25
|
+
constructor(transport) {
|
|
26
|
+
this.transport = transport;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List the enhancement passes available to this creator = enabled admin
|
|
30
|
+
* defaults ∪ the caller's own custom passes. GET
|
|
31
|
+
* `/api/v1/enhancement/definitions` (404 until enabled; empty ⇒ empty dropdown).
|
|
32
|
+
*/
|
|
33
|
+
async listEnhancementDefinitions(videoId) {
|
|
34
|
+
const query = videoId ? `?videoId=${encodeURIComponent(videoId)}` : '';
|
|
35
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/definitions${query}`);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Author a creator-custom enhancement pass with an inline prompt. POST
|
|
39
|
+
* `/api/v1/enhancement/definitions` → 201.
|
|
40
|
+
*/
|
|
41
|
+
async createEnhancementDefinition(input) {
|
|
42
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/definitions`, {
|
|
43
|
+
method: 'POST',
|
|
44
|
+
body: JSON.stringify({
|
|
45
|
+
name: input.name,
|
|
46
|
+
description: input.description,
|
|
47
|
+
target: input.target,
|
|
48
|
+
promptText: input.promptText,
|
|
49
|
+
modelId: input.modelId,
|
|
50
|
+
displayName: input.displayName,
|
|
51
|
+
blurb: input.blurb,
|
|
52
|
+
contextProfile: input.contextProfile,
|
|
53
|
+
}),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Run an additive enhancement pass on a curated video. POST
|
|
58
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements` → 201 + the QUEUED run
|
|
59
|
+
* (executed async). Soft-gates on curation (warns, never blocks).
|
|
60
|
+
*/
|
|
61
|
+
async runEnhancement(videoId, definitionId, config) {
|
|
62
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements`, {
|
|
63
|
+
method: 'POST',
|
|
64
|
+
body: JSON.stringify({
|
|
65
|
+
definitionId,
|
|
66
|
+
modelOverride: config?.modelOverride,
|
|
67
|
+
}),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List a video's enhancement runs newest-first. GET
|
|
72
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements`.
|
|
73
|
+
*/
|
|
74
|
+
async listEnhancementRuns(videoId, cursor) {
|
|
75
|
+
const query = cursor ? `?cursor=${encodeURIComponent(cursor)}` : '';
|
|
76
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements${query}`);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* List a UNIVERSE's universe-scope enhancement runs newest-first (§Q
|
|
80
|
+
* UNIV-GRAPH.1 F1). GET
|
|
81
|
+
* `/api/v1/tools/graph/universes/{seriesId}/enhancements`. Only
|
|
82
|
+
* `scopeKind === 'universe'` runs appear (the sparse series-index);
|
|
83
|
+
* member videos' ordinary runs stay on `listEnhancementRuns(videoId)`.
|
|
84
|
+
* Empty list (never 404) when nothing matches; 404 while enhancements are
|
|
85
|
+
* dark.
|
|
86
|
+
*/
|
|
87
|
+
async listUniverseEnhancementRuns(seriesId, cursor) {
|
|
88
|
+
const query = cursor ? `?cursor=${encodeURIComponent(cursor)}` : '';
|
|
89
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/tools/graph/universes/${encodeURIComponent(seriesId)}/enhancements${query}`);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Run a universe-scope enhancement pass on demand (§Q UT.4d run-it-now).
|
|
93
|
+
* POST `/api/v1/tools/graph/universes/{seriesId}/enhancements` → 201 + the
|
|
94
|
+
* QUEUED run, anchored on a member video the caller may edit. Defaults to
|
|
95
|
+
* the `universe-continuity` pass (no `definitionId` needed); 409 when the
|
|
96
|
+
* same pass is already in flight for the universe; 404 while enhancements
|
|
97
|
+
* are dark or when no editable member exists. Poll
|
|
98
|
+
* `listUniverseEnhancementRuns(seriesId)` for status; findings land in the
|
|
99
|
+
* /curation inbox.
|
|
100
|
+
*/
|
|
101
|
+
async runUniverseEnhancement(seriesId, config) {
|
|
102
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/tools/graph/universes/${encodeURIComponent(seriesId)}/enhancements`, {
|
|
103
|
+
method: 'POST',
|
|
104
|
+
body: JSON.stringify({
|
|
105
|
+
definitionId: config?.definitionId,
|
|
106
|
+
modelOverride: config?.modelOverride,
|
|
107
|
+
}),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Read a run's additions manifest (the diff payload for the P4 diff view). GET
|
|
112
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements/{runId}/additions`.
|
|
113
|
+
*/
|
|
114
|
+
async getEnhancementAdditions(videoId, runId) {
|
|
115
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements/${encodeURIComponent(runId)}/additions`);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Revert (back out) an enhancement run's additions. POST
|
|
119
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements/{runId}/revert` → 202
|
|
120
|
+
* (the worker flips the run REVERTED async). Idempotent.
|
|
121
|
+
*/
|
|
122
|
+
async revertEnhancement(videoId, runId) {
|
|
123
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements/${encodeURIComponent(runId)}/revert`, { method: 'POST' });
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Keep a single enhancement addition (T4.3) — records creator approval.
|
|
127
|
+
* POST
|
|
128
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements/{runId}/additions/{additionIndex}/keep`.
|
|
129
|
+
*/
|
|
130
|
+
async keepEnhancementAddition(videoId, runId, additionIndex) {
|
|
131
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements/${encodeURIComponent(runId)}/additions/${encodeURIComponent(String(additionIndex))}/keep`, { method: 'POST' });
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Discard a single enhancement addition (T4.3) — reverts just that
|
|
135
|
+
* addition and clears `keptAt`. ASYNC (202): the back-out is routed through
|
|
136
|
+
* the graph FIFO behind the run's own addition messages, so the response
|
|
137
|
+
* carries the ACCEPT-TIME addition — poll `getEnhancementAdditions` until
|
|
138
|
+
* `revertOutcome` is stamped. POST
|
|
139
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements/{runId}/additions/{additionIndex}/discard`.
|
|
140
|
+
*/
|
|
141
|
+
async discardEnhancementAddition(videoId, runId, additionIndex) {
|
|
142
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements/${encodeURIComponent(runId)}/additions/${encodeURIComponent(String(additionIndex))}/discard`, { method: 'POST' });
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Score a run's additions with the report-only LLM-as-judge (T2.3). POST
|
|
146
|
+
* `/api/v1/enhancement/videos/{videoId}/enhancements/{runId}/judge` → 202
|
|
147
|
+
* (scores land async: poll the run summary's `judgedAt`/`judgePrecision`
|
|
148
|
+
* or the additions endpoint's `judgeVerdicts`). A re-judge overwrites the
|
|
149
|
+
* previous scores. 409 for a non-judgeable status; 422 for an empty manifest.
|
|
150
|
+
*/
|
|
151
|
+
async judgeEnhancement(videoId, runId, config) {
|
|
152
|
+
return this.transport.requestJson(this.transport.baseUrl, `/api/v1/enhancement/videos/${encodeURIComponent(videoId)}/enhancements/${encodeURIComponent(runId)}/judge`, {
|
|
153
|
+
method: 'POST',
|
|
154
|
+
...(config?.modelOverride !== undefined
|
|
155
|
+
? { body: JSON.stringify({ modelOverride: config.modelOverride }) }
|
|
156
|
+
: {}),
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=enhancements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhancements.js","sourceRoot":"","sources":["../../src/domains/enhancements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAkBH;;;;;GAKG;AACH,MAAM,OAAO,eAAe;IACG;IAA7B,YAA6B,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IAAG,CAAC;IAErD;;;;OAIG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAgB;QAEhB,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAC/B,IAAI,CAAC,SAAS,CAAC,OAAO,EACtB,kCAAkC,KAAK,EAAE,CAC1C,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,2BAA2B,CAC/B,KAAuC;QAEvC,OAAO,IAAI,CAAC,SAAS,C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2
|
+
* Graph domain module (§A9, row A9.2, cycle 6b): transcript reads + dialog
|
|
3
|
+
* search + entity timeline, the graph-editor read/mutation surface (fetch,
|
|
4
|
+
* node/edge CRUD, beat anchoring, scene split/merge), and the Creator Studio
|
|
5
|
+
* / Story API (M7 P7) — the second half of the ~34-method chat/graph
|
|
6
|
+
* cluster, moved off the `ApiClient` god class into a facade delegation per
|
|
7
|
+
* the client-core domain split.
|
|
8
|
+
*
|
|
9
|
+
* `ApiClient` keeps the public method names/signatures/JSDoc UNCHANGED (the
|
|
10
|
+
* published surface `../Web-App` is pinned to) — every `ApiClient` method
|
|
11
|
+
* below is now a one-line delegation to a `GraphApi` instance held on
|
|
12
|
+
* `this.graph`. Request/response TYPES (and the `GraphDetail`/`GRAPH_DETAIL`
|
|
13
|
+
* const) stay declared in `api.ts` (still exported from `index.ts` exactly
|
|
14
|
+
* as before); this module only imports them `import type` so there is no
|
|
15
|
+
* runtime circularity with `api.ts`.
|
|
16
|
+
*
|
|
17
|
+
* Sibling domain: `./chat` (chat/assistant streaming, tool-reference
|
|
18
|
+
* introspection, chat-model/voice catalogues, session CRUD) — the OTHER
|
|
19
|
+
* half of the cluster, moved in cycle 6a (#601).
|
|
20
|
+
*
|
|
21
|
+
* All methods here use the MAIN base URL (`transport.baseUrl`) — none of the
|
|
22
|
+
* pre-move implementations used `chatRequest`/`chatBaseUrl`.
|
|
23
|
+
*/
|
|
24
|
+
import type { Transport } from '../transport';
|
|
25
|
+
import type { AnchorBeatRequest, AnchorBeatResponse, BeatAnchorCandidatesResponse, BindUnknownClusterRequest, BindVoiceClusterRequest, CurateLineAttributionRequest, CurateLineAttributionResponse, BindVoiceClusterResponse, BindUnknownClusterResponse, CharacterCastFrameChoicesResponse, CastMembershipRequest, CastMembershipResponse, ChooseCastFrameRequest, ChooseCastFrameResponse, ClearBeatAnchorResponse, ClearCastFrameChoiceResponse, ClipLookupParams, ClipLookupResponse, CreateClusterCharacterRequest, CreateEdgeRequest, CreateEdgeResponse, CreateNodeRequest, CreateNodeResponse, CrossVideoRelationsResponse, CurationCallsResponse, DeleteNodeRequest, DeleteNodeResponse, DeleteRelationshipRequest, DeleteRelationshipResponse, DialogSearchResponse, DismissClusterRequest, DismissClusterResponse, MergeClustersRequest, MergeClustersResponse, MergeSuggestionsResponse, EntityConfidenceResponse, EntityEvidenceResponse, EntityTimelineResponse, SpeakerAttributionAccountResponse, GetStoryResponse, GetTranscriptResponse, GraphDetail, GraphReadOptions, GraphSchemaResponse, GroundingOverrideRequest, GroundingOverrideResponse, ListStoriesResponse, MergeScenesRequest, MergeScenesResponse, ManualGroundingRequest, ManualGroundingResponse, ReclonedPersonaResponse, RejectClusterBindingRequest, RejectClusterBindingResponse, SeriesCurationResponse, SplitSceneRequest, SplitSceneResponse, UniverseCastResponse, UniverseGraphResponse, UnknownClustersResponse, VoiceClipResponse, VoiceClustersResponse, UpdateNodeRequest, UpdateNodeResponse, UpdateRelationshipRequest, UpdateRelationshipResponse, VideoGraphResponse } from '../api';
|
|
26
|
+
/**
|
|
27
|
+
* Transcript/dialog/entity-timeline reads, the graph-editor read/mutation
|
|
28
|
+
* surface, and the Creator Studio / Story API (main API base).
|
|
29
|
+
*/
|
|
30
|
+
export declare class GraphApi {
|
|
31
|
+
private readonly transport;
|
|
32
|
+
constructor(transport: Transport);
|
|
33
|
+
/**
|
|
34
|
+
* Get transcript for a video, optionally filtered by time range
|
|
35
|
+
*/
|
|
36
|
+
getTranscript(videoId: string, t0?: number, t1?: number): Promise<GetTranscriptResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Search dialog within a video by keyword or phrase
|
|
39
|
+
*/
|
|
40
|
+
searchDialog(videoId: string, query: string, limit?: number): Promise<DialogSearchResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Return a time-ordered list of shots where an entity appears.
|
|
43
|
+
* Optional `t0`/`t1` bounds (seconds) narrow the query window —
|
|
44
|
+
* the server validates `t1 > t0` when both are provided.
|
|
45
|
+
*
|
|
46
|
+
* Backed by `POST /api/v1/tools/entity-timeline`. Returns an empty
|
|
47
|
+
* `results` array (not a 404) when the entity isn't found after
|
|
48
|
+
* graph resolution — callers can treat "no results" uniformly.
|
|
49
|
+
*/
|
|
50
|
+
getEntityTimeline(videoId: string, entity: string, bounds?: {
|
|
51
|
+
t0?: number;
|
|
52
|
+
t1?: number;
|
|
53
|
+
}): Promise<EntityTimelineResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Fetch a video's subgraph. R5b: the optional `detail` arg selects the
|
|
56
|
+
* server-side view — `GRAPH_DETAIL.STORY` for the collapsed story view,
|
|
57
|
+
* `GRAPH_DETAIL.RAW` for the full extraction graph. Omitting it sends NO
|
|
58
|
+
* query param (byte-identical to the pre-R5b request — the server defaults
|
|
59
|
+
* to raw), so every existing caller is untouched.
|
|
60
|
+
*
|
|
61
|
+
* §Q GROUND.52a — `options.fresh` opts THIS read out of the transport's
|
|
62
|
+
* in-flight coalescing (§Q DM.74). Pass it after a write whose result the
|
|
63
|
+
* read must show; see {@link GraphReadOptions}. Ordinary reads leave it
|
|
64
|
+
* unset and keep coalescing.
|
|
65
|
+
*/
|
|
66
|
+
getVideoGraph(videoId: string, detail?: GraphDetail, options?: GraphReadOptions): Promise<VideoGraphResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* List all stories (videos) visible to the caller. `storyId === videoId`
|
|
69
|
+
* (1:1) in M7 P7 — the Story resource is a thin, read-only view over the
|
|
70
|
+
* existing Video. No pagination/filter parameters in P7.
|
|
71
|
+
*/
|
|
72
|
+
listStories(): Promise<ListStoriesResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Fetch a single story's metadata + aggregate counts. Throws (404) when the
|
|
75
|
+
* id resolves to no Video node.
|
|
76
|
+
*/
|
|
77
|
+
getStory(storyId: string): Promise<GetStoryResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Resolve a playable (presigned or local-stub) URL for a clip span via the
|
|
80
|
+
* existing `POST /api/v1/tools/clip-lookup` tool endpoint. Used by the studio
|
|
81
|
+
* Scene inspector to scope the player to a scene's `[t0, t1]`. Additive — never
|
|
82
|
+
* remove/rename. Wire keys are camelCase (backend `BaseSchema`, no aliasing).
|
|
83
|
+
*/
|
|
84
|
+
clipLookup(params: ClipLookupParams): Promise<ClipLookupResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* Fetch the live graph whitelist (node PKs + editable properties per label
|
|
87
|
+
* and edge type). No auth required — pure metadata. Prefer the memoized
|
|
88
|
+
* `fetchGraphSchema()` wrapper in `graphSchema.ts` over calling this per
|
|
89
|
+
* render; the raw method exists for that wrapper and one-off callers.
|
|
90
|
+
*/
|
|
91
|
+
getGraphSchema(): Promise<GraphSchemaResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Universe shared cast with per-video appearances (T4.7 stage 2, Q5).
|
|
94
|
+
* Throws on 404 (no Universe node / nothing visible) — callers degrade to
|
|
95
|
+
* the seriesId-grouped stage-1 rendering.
|
|
96
|
+
*/
|
|
97
|
+
getUniverseCast(seriesId: string): Promise<UniverseCastResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Universe-scoped story graph (§Q UT.8e-be): the per-video `getVideoGraph`
|
|
100
|
+
* nodes+edges shape aggregated (id-deduped) across the universe's VISIBLE
|
|
101
|
+
* member videos — the exact contract `StoryGraphView` consumes, so UT.8(e)
|
|
102
|
+
* can mount it universe-scoped without a shape fork. Optional `detail`
|
|
103
|
+
* mirrors `getVideoGraph` (omitting it sends NO query param — server
|
|
104
|
+
* defaults to `raw`). Throws on 404 (no Universe node — e.g.
|
|
105
|
+
* `ENABLE_STORY_CONTAINERS` unset — or nothing visible); callers degrade
|
|
106
|
+
* to their per-video rendering.
|
|
107
|
+
*/
|
|
108
|
+
getUniverseGraph(seriesId: string, detail?: GraphDetail): Promise<UniverseGraphResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Per-entity timestamped evidence (CUR.1a seam 1): the MENTIONS frames +
|
|
111
|
+
* transcript lines the extractor saw, with per-mention `t0`/`t1`/`confidence`.
|
|
112
|
+
* Backs the uncertainty queue's "why does the extractor believe this" card.
|
|
113
|
+
* `videoId` is REQUIRED (it is the read scope). Throws 404 when the entity has
|
|
114
|
+
* no evidence in `videoId`. Optional `frameLimit`/`dialogLimit` (default 25,
|
|
115
|
+
* server-capped 100).
|
|
116
|
+
*/
|
|
117
|
+
getEntityEvidence(entityId: string, videoId: string, params?: {
|
|
118
|
+
frameLimit?: number;
|
|
119
|
+
dialogLimit?: number;
|
|
120
|
+
}): Promise<EntityEvidenceResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Whole-video entity confidence rollup, weakest-first (CUR.1a seam 2). There is
|
|
123
|
+
* NO stored entity confidence — each entry is a DERIVED `avg`/`max`/`count` over
|
|
124
|
+
* its `MENTIONS` edge confidence. `provenance === 'user'` rows are returned (grey
|
|
125
|
+
* them, don't hide them). Feeds `creatorCuration.confidenceQueue`.
|
|
126
|
+
*/
|
|
127
|
+
getEntityConfidence(videoId: string): Promise<EntityConfidenceResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* §Q GROUND.123 — the unresolved-speaker curation queue: every speaker name
|
|
130
|
+
* this video's attribution run could not place, plus the ONE pool entity §Q
|
|
131
|
+
* GROUND.120 nominated for it.
|
|
132
|
+
*
|
|
133
|
+
* ⛔ `recorded: false` is an ABSTENTION ("no run wrote an account here"), not
|
|
134
|
+
* "nothing was unresolved" — a caller that renders it as a clean bill of
|
|
135
|
+
* health is telling a curator something no run established.
|
|
136
|
+
*
|
|
137
|
+
* ⛔ A nominee is a QUESTION. Accepting one is a write through the EXISTING
|
|
138
|
+
* `NAME.6` door — `updateGraphNode({nodeLabel: 'Entity', idValue:
|
|
139
|
+
* nominatedEntityId, properties: {aliases: [...nominatedEntityAliases,
|
|
140
|
+
* speakerName]}})` — which validates, stamps `provenance: 'user'` and
|
|
141
|
+
* re-resolves the video's `mainCharacterIds`. Send the EXISTING aliases back:
|
|
142
|
+
* that door SETs the array.
|
|
143
|
+
*/
|
|
144
|
+
getSpeakerAttribution(videoId: string): Promise<SpeakerAttributionAccountResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* seriesId-scoped curation read (CUR.1b seam 4): the series' entities with
|
|
147
|
+
* per-video appearance provenance — the B-7 converged-editor universe mount.
|
|
148
|
+
* Appearances are visibility-filtered server-side; `appearances.length === 0`
|
|
149
|
+
* marks a curation-worthy stray. Throws on 404 (nothing minted / visible).
|
|
150
|
+
*/
|
|
151
|
+
getSeriesCuration(seriesId: string): Promise<SeriesCurationResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Per-video cross-video relations (CUR.1b seam 6): entities the anchor video
|
|
154
|
+
* shares with sibling videos (over the materialized APPEARS_IN index,
|
|
155
|
+
* visibility-filtered) plus the RELATES_TO lines among them. Empty lists
|
|
156
|
+
* (never 404) when nothing is shared. Optional `limit` (default 25,
|
|
157
|
+
* server-capped 100) bounds the shared-entity read.
|
|
158
|
+
*/
|
|
159
|
+
getCrossVideoRelations(videoId: string, params?: {
|
|
160
|
+
limit?: number;
|
|
161
|
+
}): Promise<CrossVideoRelationsResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Ranked candidate Scenes for anchoring a PlotBeat (CUR.1c seam 3): the
|
|
164
|
+
* T4.6 drag-to-anchor UI starts from a ranked suggestion list, not a blank
|
|
165
|
+
* one. Score components (`castOverlap`, `neighborDistance`) come back raw
|
|
166
|
+
* and explainable. `videoId` is REQUIRED (the read scope + the beats
|
|
167
|
+
* cross-video guard); throws 404 when the beat is missing / wrong-video.
|
|
168
|
+
* Optional `limit` (default 5, server-capped 20).
|
|
169
|
+
*/
|
|
170
|
+
getBeatAnchorCandidates(beatId: string, videoId: string, params?: {
|
|
171
|
+
limit?: number;
|
|
172
|
+
}): Promise<BeatAnchorCandidatesResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Cross-project curation-calls queue (CUR.1c seam 5): per-video
|
|
175
|
+
* unknown/low-confidence/unanchored counts over the caller's OWN videos
|
|
176
|
+
* (caller-scoped server-side; one batched read). Empty `items` (never 404)
|
|
177
|
+
* when nothing needs curation. Optional `limit` (default 50, server-capped
|
|
178
|
+
* 200) caps the returned items.
|
|
179
|
+
*/
|
|
180
|
+
getCurationCalls(params?: {
|
|
181
|
+
limit?: number;
|
|
182
|
+
}): Promise<CurationCallsResponse>;
|
|
183
|
+
updateGraphNode(data: UpdateNodeRequest): Promise<UpdateNodeResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* Record (or clear) ratified ruling 4's per-character "generate anyway"
|
|
186
|
+
* override for a WEAKLY grounded character (§Q GROUND.10 door, §Q GROUND.12
|
|
187
|
+
* consumer).
|
|
188
|
+
*
|
|
189
|
+
* A SEPARATE endpoint from `updateGraphNode` on purpose: that path stamps
|
|
190
|
+
* `provenance='user'` and un-readies curation for every owning video, which
|
|
191
|
+
* is right for editing a character's NAME and wrong for recording a
|
|
192
|
+
* generation permission — this changes nothing about who the character is.
|
|
193
|
+
*
|
|
194
|
+
* Never offer this at `ABSENT`: the server refuses regardless (see
|
|
195
|
+
* {@link GroundingOverrideRequest}), so the button could only ever fail.
|
|
196
|
+
*/
|
|
197
|
+
setEntityGroundingOverride(data: GroundingOverrideRequest): Promise<GroundingOverrideResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Unbound `UNKNOWN_PERSON` clusters awaiting a human name, each with its
|
|
200
|
+
* presigned exemplar crop — the §13.6 READ door (§Q GROUND.38).
|
|
201
|
+
*
|
|
202
|
+
* ⛔ Consumers must branch on `ciiAvailable` BEFORE reading `clusters`:
|
|
203
|
+
* `false` is "nobody looked" (no index — the dark posture), not "no
|
|
204
|
+
* strangers on screen". See {@link UnknownClustersResponse}.
|
|
205
|
+
*/
|
|
206
|
+
getUnknownClusters(videoId: string): Promise<UnknownClustersResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* Bind an `UNKNOWN_PERSON` cluster to an EXISTING cast entity — the §13.6
|
|
209
|
+
* NAMING door (§Q GROUND.38), the one sanctioned human-authority path by
|
|
210
|
+
* which a face cluster gains a name (the CII itself must never mint a
|
|
211
|
+
* character from a face).
|
|
212
|
+
*
|
|
213
|
+
* `cropId` must be the exemplar the creator actually looked at (from
|
|
214
|
+
* {@link GraphApi.getUnknownClusters}); it becomes the character's one
|
|
215
|
+
* verified crop. Re-POSTing the same binding is idempotent and repairs a
|
|
216
|
+
* half-applied write — which is the documented recovery for the 502 the
|
|
217
|
+
* server returns when the artifact landed and the graph write did not.
|
|
218
|
+
*/
|
|
219
|
+
bindUnknownCluster(data: BindUnknownClusterRequest): Promise<BindUnknownClusterResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* List this video's VOICE clusters with the cast list to answer them from —
|
|
222
|
+
* the §Q VOICE.4 listen-and-pick READ door.
|
|
223
|
+
*
|
|
224
|
+
* ⛔ Branch on `ciiAvailable` BEFORE reading `clusters`, exactly as on
|
|
225
|
+
* {@link GraphApi.getUnknownClusters}: `false` is "nobody looked", not
|
|
226
|
+
* "every voice is answered".
|
|
227
|
+
*
|
|
228
|
+
* Deliberately WITHOUT audio — see {@link GraphApi.getVoiceClusterClip}.
|
|
229
|
+
*/
|
|
230
|
+
getVoiceClusters(videoId: string): Promise<VoiceClustersResponse>;
|
|
231
|
+
/**
|
|
232
|
+
* Fetch the playable representative clip for ONE voice cluster (§Q VOICE.4).
|
|
233
|
+
*
|
|
234
|
+
* Separate from the listing because the cold path cuts a WAV with ffmpeg over
|
|
235
|
+
* the source video; call it when the curator presses play, so a slow or
|
|
236
|
+
* failed clip leaves the panel and its cast list standing. The server caches
|
|
237
|
+
* the cut per (video, cluster), so a second call is a presign.
|
|
238
|
+
*/
|
|
239
|
+
getVoiceClusterClip(videoId: string, clusterId: string): Promise<VoiceClipResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* Bind a VOICE cluster to an EXISTING cast entity — the §Q VOICE.4
|
|
242
|
+
* listen-and-pick door, the SPEECH-channel twin of
|
|
243
|
+
* {@link GraphApi.bindUnknownCluster}.
|
|
244
|
+
*
|
|
245
|
+
* The caller asserts nothing about provenance: the server derives the HUMAN
|
|
246
|
+
* assertion from the door. Re-POSTing the same binding is idempotent and
|
|
247
|
+
* repairs a half-applied write — the documented recovery for the 502 returned
|
|
248
|
+
* when the artifact landed and the graph write did not.
|
|
249
|
+
*
|
|
250
|
+
* ⚠ Read `curatedLines` on the response: a 201 with ZERO means the binding
|
|
251
|
+
* was recorded and attributes no dialog line.
|
|
252
|
+
*/
|
|
253
|
+
bindVoiceCluster(data: BindVoiceClusterRequest): Promise<BindVoiceClusterResponse>;
|
|
254
|
+
/**
|
|
255
|
+
* Re-clone an EXISTING persona's voice from the voice a person released at
|
|
256
|
+
* the listen-and-pick door — §Q GROUND.159's `POST
|
|
257
|
+
* /graph/grounding/voice-reclones`, offered in the studio by §Q GROUND.169.
|
|
258
|
+
*
|
|
259
|
+
* Only the persona is named: the server reads the character and the video
|
|
260
|
+
* off the persona's record and whether the voice is released off the
|
|
261
|
+
* identity artifact's §7 gate, never off the request. **Paid** (one Inworld
|
|
262
|
+
* clone per call, the spend `/reclone` makes).
|
|
263
|
+
*
|
|
264
|
+
* ⚠ Its refusals carry `detail: {error, reason}` with no `message`
|
|
265
|
+
* (`voice_not_released` 409, `no_usable_speech` / `insufficient_clip_audio`
|
|
266
|
+
* 422, plus `/reclone`'s own 409 codes): read `err.detail.reason` for the
|
|
267
|
+
* sentence a creator can act on.
|
|
268
|
+
*/
|
|
269
|
+
recloneReleasedVoice(personaId: string): Promise<ReclonedPersonaResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* Move ONE dialog line's speaker to a chosen cast character — the §Q
|
|
272
|
+
* GROUND.56 re-attribution door, and the hand-fix for the wrong-attribution
|
|
273
|
+
* class the owner keeps hitting live (*"some of those lines were the
|
|
274
|
+
* merchant's"*).
|
|
275
|
+
*
|
|
276
|
+
* ⛔ The FINER instrument of a ranked pair, never a race with
|
|
277
|
+
* {@link GraphApi.bindVoiceCluster}: a line answered here is excluded from
|
|
278
|
+
* the label door's scope and reported back to it. Use the voice door for
|
|
279
|
+
* *"whose voice is this cluster?"* and this one for the turns inside it that
|
|
280
|
+
* belong to somebody else.
|
|
281
|
+
*
|
|
282
|
+
* ⚠ `supersededLines: 0` is NOT the voice door's zero. A line the pipeline
|
|
283
|
+
* never attributed legitimately replaces nothing; the write still landed.
|
|
284
|
+
*
|
|
285
|
+
* Idempotent — a re-POST after a 502 repairs rather than double-decides.
|
|
286
|
+
*/
|
|
287
|
+
curateLineAttribution(data: CurateLineAttributionRequest): Promise<CurateLineAttributionResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Ground a character on an INSTANT the curator picked — the §Q GROUND.71
|
|
290
|
+
* door for a character no arm can see (a mask, a creature, an animated
|
|
291
|
+
* figure), where every other visual door needs a face cluster to point at.
|
|
292
|
+
*
|
|
293
|
+
* ⛔ Offer it ONLY where there is nothing to point at. A character the
|
|
294
|
+
* machine already sees is refused with 409 and the reason to reject that
|
|
295
|
+
* binding first — render that message; it names the next action.
|
|
296
|
+
*
|
|
297
|
+
* ⛔ The grounding earned is `weak` FOREVER
|
|
298
|
+
* ({@link ManualGroundingResponse.visualGrounding}). Never present the
|
|
299
|
+
* result as a verified binding.
|
|
300
|
+
*/
|
|
301
|
+
groundCharacterByHand(data: ManualGroundingRequest): Promise<ManualGroundingResponse>;
|
|
302
|
+
/**
|
|
303
|
+
* Reject a character's WRONG visual binding — the §Q GROUND.62 rejection
|
|
304
|
+
* door, the naming door's negative twin. The cluster returns to the
|
|
305
|
+
* unknown gallery ({@link GraphApi.getUnknownClusters}) for re-assignment,
|
|
306
|
+
* the character's visual grounding demotes honestly, and a curated-rank
|
|
307
|
+
* tombstone keeps the same pass from re-making the binding. Re-POSTing is
|
|
308
|
+
* idempotent and repairs a half-applied write (the documented recovery for
|
|
309
|
+
* the 502 returned when the artifact landed and the graph write did not).
|
|
310
|
+
*/
|
|
311
|
+
rejectClusterBinding(data: RejectClusterBindingRequest): Promise<RejectClusterBindingResponse>;
|
|
312
|
+
/**
|
|
313
|
+
* Dismiss an unnamed figure — the §Q GROUND.73 door, the curator's fourth
|
|
314
|
+
* verdict: *"this figure is not cast at all."* The tile leaves
|
|
315
|
+
* {@link GraphApi.getUnknownClusters} and NOTHING is deleted; the cluster and
|
|
316
|
+
* its crops stay in the artifact, so the speaker arithmetic is unchanged and a
|
|
317
|
+
* later recompute can re-anchor the verdict onto the same figure. 409s on a
|
|
318
|
+
* cluster that carries a name (reject that binding first, which returns the
|
|
319
|
+
* face to the gallery). Re-POSTing is idempotent and repairs a half-applied
|
|
320
|
+
* write, exactly like its sibling doors.
|
|
321
|
+
*/
|
|
322
|
+
dismissUnknownCluster(data: DismissClusterRequest): Promise<DismissClusterResponse>;
|
|
323
|
+
/**
|
|
324
|
+
* Merge two unnamed figures — the §Q GROUND.78 door, the curator's fifth
|
|
325
|
+
* verdict: *"these two tiles are the SAME person."* `clusterId` is absorbed
|
|
326
|
+
* into `intoClusterId`, which keeps its tile and now presents both figures'
|
|
327
|
+
* spans and crops.
|
|
328
|
+
*
|
|
329
|
+
* ⛔ NOTHING IS DELETED. The absorbed cluster stays in the artifact with its
|
|
330
|
+
* spans untouched, so the speaker arithmetic is unchanged; only
|
|
331
|
+
* {@link GraphApi.getUnknownClusters} stops listing it.
|
|
332
|
+
*
|
|
333
|
+
* Both ids resolve to their MERGE ROOT, so merging onto a tile that had itself
|
|
334
|
+
* been merged is well-defined — the response's `intoClusterId` names the tile
|
|
335
|
+
* the curator will actually see, and may differ from the request. 422s when
|
|
336
|
+
* either side is not an unnamed gallery figure (a named, dismissed or
|
|
337
|
+
* unanalysed one is a different verdict). Re-POSTing is idempotent and repairs
|
|
338
|
+
* a half-applied write, exactly like its sibling doors.
|
|
339
|
+
*/
|
|
340
|
+
mergeUnknownClusters(data: MergeClustersRequest): Promise<MergeClustersResponse>;
|
|
341
|
+
/**
|
|
342
|
+
* Ranked "these two tiles may be the same figure" pairs for a video's unnamed
|
|
343
|
+
* figures (§Q GROUND.78), so the curator is CHOOSING rather than hunting.
|
|
344
|
+
*
|
|
345
|
+
* ⛔ SUGGESTIONS ONLY, and that is a measurement result rather than a
|
|
346
|
+
* preference: GROUND.80 scored this ranking at P@6 = 6/6 and P@9 = 8/9 on real
|
|
347
|
+
* content AND found real cross-person merges at every usable threshold. No
|
|
348
|
+
* consumer may auto-merge on `similarity` — it is ordering, not a probability.
|
|
349
|
+
*/
|
|
350
|
+
getMergeSuggestions(videoId: string): Promise<MergeSuggestionsResponse>;
|
|
351
|
+
/**
|
|
352
|
+
* Create a NEW cast character FROM an unknown face and bind it in one step —
|
|
353
|
+
* the §Q GROUND.63 create-and-bind door. A human-authority shortcut over the
|
|
354
|
+
* graph editor's entity mint + the naming binding; the judged crop becomes
|
|
355
|
+
* the created character's first verified image. 409s when `name` already
|
|
356
|
+
* names a cast member (bind to them via
|
|
357
|
+
* {@link GraphApi.bindUnknownCluster} instead). Re-POSTing the same request
|
|
358
|
+
* is idempotent (the entity id is deterministic per video+name).
|
|
359
|
+
*/
|
|
360
|
+
createClusterCharacter(data: CreateClusterCharacterRequest): Promise<BindUnknownClusterResponse>;
|
|
361
|
+
/**
|
|
362
|
+
* A character's verified crops, presigned, for the curator to choose between
|
|
363
|
+
* — the §Q GROUND.74 READ door. Ordered by the pass's own ranking, with
|
|
364
|
+
* `isAutomaticPick` on the one `select_grounded_cast_frame` would take.
|
|
365
|
+
*
|
|
366
|
+
* ⛔ Branch on `ciiAvailable` before reading `crops` (same rule as
|
|
367
|
+
* {@link GraphApi.getUnknownClusters}), and treat `chosenImageId` — not any
|
|
368
|
+
* crop's `isChosen` — as the answer to "is a curated picture in effect": a
|
|
369
|
+
* recompute can leave the choice standing while no current crop corresponds
|
|
370
|
+
* to it.
|
|
371
|
+
*/
|
|
372
|
+
getCastFrameChoices(videoId: string, entityId: string): Promise<CharacterCastFrameChoicesResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* Choose WHICH of a character's verified crops represents them — the §Q
|
|
375
|
+
* GROUND.74 CHOOSE door, the third human-authority write on this seam beside
|
|
376
|
+
* naming and rejection. The chosen crop's BYTES are copied into a durable
|
|
377
|
+
* cast frame and the verdict is recorded at CURATED rank, so a later
|
|
378
|
+
* recompute does not replace it with the machine's pick.
|
|
379
|
+
*
|
|
380
|
+
* 404 on a `cropId` the character does not carry (re-read the choices);
|
|
381
|
+
* 502 when the picture could not be stored — nothing is recorded in that
|
|
382
|
+
* case, so retrying is safe and re-POSTing repairs a half-applied choice.
|
|
383
|
+
*/
|
|
384
|
+
chooseCastFrame(data: ChooseCastFrameRequest): Promise<ChooseCastFrameResponse>;
|
|
385
|
+
/**
|
|
386
|
+
* Withdraw a character's chosen cast-frame image — the §Q GROUND.162 clear
|
|
387
|
+
* door (the choose door's undo). The grounding badge reads the gate's one
|
|
388
|
+
* predicate again afterwards. `cleared: false` when no choice stood.
|
|
389
|
+
*/
|
|
390
|
+
clearCastFrameChoice(videoId: string, entityId: string): Promise<ClearCastFrameChoiceResponse>;
|
|
391
|
+
/**
|
|
392
|
+
* Keep / remove / reset / restore ONE member of ONE video's cast — the §Q
|
|
393
|
+
* OPS.88b direct cast doors. The record write and the character identity
|
|
394
|
+
* index rebuild commit together. 409 when the action does not apply (reset a
|
|
395
|
+
* member nobody kept, restore one nobody removed) or a newer curation landed.
|
|
396
|
+
*/
|
|
397
|
+
curateCastMembership(data: CastMembershipRequest): Promise<CastMembershipResponse>;
|
|
398
|
+
deleteGraphNode(data: DeleteNodeRequest): Promise<DeleteNodeResponse>;
|
|
399
|
+
updateGraphEdge(data: UpdateRelationshipRequest): Promise<UpdateRelationshipResponse>;
|
|
400
|
+
deleteGraphEdge(data: DeleteRelationshipRequest): Promise<DeleteRelationshipResponse>;
|
|
401
|
+
/**
|
|
402
|
+
* Create a user-authored narrative node (Scene / PlotBeat / CharacterArc).
|
|
403
|
+
* POST returns 201 with `{traceId, nodeId, properties}`; `makeRequest` parses
|
|
404
|
+
* the body (only 204 is bodyless) and surfaces a 422 (e.g. label not
|
|
405
|
+
* user-creatable, missing actId/index for a Scene) as a thrown `Error` with
|
|
406
|
+
* the FastAPI detail. The backend stamps provenance/versionId/timestamps.
|
|
407
|
+
*/
|
|
408
|
+
createGraphNode(data: CreateNodeRequest): Promise<CreateNodeResponse>;
|
|
409
|
+
/**
|
|
410
|
+
* Create a user-authored relationship (RELATES_TO / CAUSES / SET_IN /
|
|
411
|
+
* FEATURES / ON_ARC / LEADS_TO). POST returns 201 with
|
|
412
|
+
* `{traceId, edgeId, properties}`; a 422 (invalid endpoint-label pair,
|
|
413
|
+
* pipeline-only type, cross-video endpoints, or SET_IN/FEATURES Entity.type
|
|
414
|
+
* mismatch) surfaces as a thrown `Error` with the FastAPI detail.
|
|
415
|
+
*/
|
|
416
|
+
createGraphEdge(data: CreateEdgeRequest): Promise<CreateEdgeResponse>;
|
|
417
|
+
/**
|
|
418
|
+
* Anchor (or re-anchor) a PlotBeat to a Scene (T4.6 drag-to-anchor).
|
|
419
|
+
* Atomic move semantics: any existing anchor to a different scene is
|
|
420
|
+
* replaced server-side in one statement.
|
|
421
|
+
*/
|
|
422
|
+
anchorBeat(beatId: string, data: AnchorBeatRequest): Promise<AnchorBeatResponse>;
|
|
423
|
+
/**
|
|
424
|
+
* Clear a PlotBeat's scene anchor (T4.6). Idempotent — `deleted: 0` when the
|
|
425
|
+
* beat was already unanchored. DELETE carries no body; `videoId` travels as
|
|
426
|
+
* a query param (the graph-editor DELETE convention).
|
|
427
|
+
*/
|
|
428
|
+
clearBeatAnchor(beatId: string, videoId: string): Promise<ClearBeatAnchorResponse>;
|
|
429
|
+
/**
|
|
430
|
+
* Split a Scene in two at a shot boundary (T4.5 re-partition). `atShotId`
|
|
431
|
+
* and every later shot (film order) move to a NEW `provenance='user'`
|
|
432
|
+
* Scene inserted right after the original; `keptShotIds` stays on the
|
|
433
|
+
* original. A 422 surfaces as a thrown `Error` when `atShotId` is the
|
|
434
|
+
* scene's first shot (there would be nothing left to split off).
|
|
435
|
+
*
|
|
436
|
+
* Undo: to reverse a split, merge the new tail scene back into the
|
|
437
|
+
* original — `mergeScenes(sceneId, { videoId, otherSceneId: newScene.sceneId })`.
|
|
438
|
+
*/
|
|
439
|
+
splitScene(sceneId: string, data: SplitSceneRequest): Promise<SplitSceneResponse>;
|
|
440
|
+
/**
|
|
441
|
+
* Merge the next sibling scene (`otherSceneId`) into the path scene (T4.5
|
|
442
|
+
* re-partition). `otherSceneId` must be the path scene's ordinal successor
|
|
443
|
+
* within the SAME act — a 422 surfaces as a thrown `Error` otherwise. The
|
|
444
|
+
* response's `removedScene` snapshot drives undo.
|
|
445
|
+
*
|
|
446
|
+
* Undo: to reverse a merge, re-split the survivor at the absorbed scene's
|
|
447
|
+
* first shot, restoring its title/summary — `splitScene(sceneId, {
|
|
448
|
+
* videoId, atShotId: removedScene.shotIds[0], title: removedScene.title,
|
|
449
|
+
* summary: removedScene.summary })`. Not possible when
|
|
450
|
+
* `removedScene.shotIds` is empty (the absorbed scene had no shots).
|
|
451
|
+
*/
|
|
452
|
+
mergeScenes(sceneId: string, data: MergeScenesRequest): Promise<MergeScenesResponse>;
|
|
453
|
+
}
|
|
454
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/domains/graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,kBAAkB,EAClB,iBAAi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