@nocha/cli 4.6.1 → 4.13.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/CHANGELOG.md +32 -0
- package/dist/NOCHA.schema.json +1670 -3
- package/dist/build-info.json +4 -4
- package/dist/dev-offline-compiler.js +682 -7
- package/dist/dev-offline-runner.js +48 -6
- package/dist/development-live-host.js +13 -1
- package/dist/nocha.js +804 -60
- package/dist/reference-integrity.json +135 -101
- package/dist/references/api/README.md +24 -23
- package/dist/references/api/signatures.md +23 -2
- package/dist/references/base/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/base/src/platform/failure.ts +1 -1
- package/dist/references/base/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/base/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/base/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/base/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/base/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/base/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/base/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/base/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/base/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/base/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/base/src/types/nocha/index.d.ts +4 -0
- package/dist/references/base/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/base/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/base/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/base/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/base/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/base/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/base/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/base/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/base/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/base/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/base/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/base/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/base/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/duel/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/duel/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/duel/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/duel/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/duel/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/duel/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/duel/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/duel/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/duel/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/duel/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/index.d.ts +4 -0
- package/dist/references/duel/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/duel/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/duel/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/duel/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/duel/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/duel/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/duel/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/duel/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/duel/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/duel/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/duel/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/recipes/README.md +1 -0
- package/dist/references/recipes/backend-transaction/src/platform/failure.ts +1 -1
- package/dist/references/recipes/drive/NOCHA.json +24 -0
- package/dist/references/recipes/drive/README.md +15 -0
- package/dist/references/recipes/drive/SKILL.md +24 -0
- package/dist/references/recipes/drive/recipe.ts +34 -0
- package/dist/references/recipes/music/README.md +1 -1
- package/dist/references/recipes/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/recipes/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/recipes/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/recipes/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/recipes/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/recipes/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/recipes/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/recipes/types/nocha/drive.d.ts +54 -0
- package/dist/references/recipes/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/recipes/types/nocha/execution.d.ts +1 -1
- package/dist/references/recipes/types/nocha/index.d.ts +4 -0
- package/dist/references/recipes/types/nocha/media-read.d.ts +29 -0
- package/dist/references/recipes/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/recipes/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/recipes/types/nocha/protocol.d.ts +7 -3
- package/dist/references/recipes/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/recipes/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/recipes/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/recipes/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/recipes/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/recipes/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/recipes/types/nocha/types/video.d.ts +5 -2
- package/dist/references/recipes/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/recipes/types/nocha/video-media.d.ts +1 -3
- package/dist/references/stage/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/stage/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/stage/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/stage/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/stage/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/stage/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/stage/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/stage/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/stage/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/stage/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/index.d.ts +4 -0
- package/dist/references/stage/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/stage/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/stage/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/stage/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/stage/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/stage/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/stage/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/stage/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/stage/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/stage/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/stage/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/workshop/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/workshop/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/workshop/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/workshop/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/workshop/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/workshop/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/workshop/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/workshop/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/workshop/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/workshop/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/index.d.ts +4 -0
- package/dist/references/workshop/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/workshop/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/workshop/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/workshop/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/workshop/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/workshop/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/workshop/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/workshop/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/workshop/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/workshop/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/workshop/src/types/nocha/video-media.d.ts +1 -3
- package/dist/sdk-versions.json +1 -1
- package/dist/sdks/@nocha/sdk/dist/assets-operations.d.ts +3 -0
- package/dist/sdks/@nocha/sdk/dist/bridge.js +3 -3
- package/dist/sdks/@nocha/sdk/dist/capabilities.js +2 -2
- package/dist/sdks/@nocha/sdk/dist/capability-deadlines.d.ts +6 -0
- package/dist/sdks/@nocha/sdk/dist/capability-needs.d.ts +7 -0
- package/dist/sdks/@nocha/sdk/dist/capability-operations.d.ts +3 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-A3QFRV4K.js → chunk-7SH7NNX6.js} +2 -2
- package/dist/sdks/@nocha/sdk/dist/{chunk-3ULBSRGX.js → chunk-B34FPFNB.js} +1 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-MNRQELK7.js → chunk-EAC27UOG.js} +152 -7
- package/dist/sdks/{@watchirl/experience-sdk/dist/nocha/network-operations.d.ts → @nocha/sdk/dist/drive-operations.d.ts} +21 -18
- package/dist/sdks/@nocha/sdk/dist/drive-types.d.ts +76 -0
- package/dist/sdks/@nocha/sdk/dist/drive.d.ts +53 -0
- package/dist/sdks/@nocha/sdk/dist/error-codes.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/execution.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/host.js +1 -1
- package/dist/sdks/@nocha/sdk/dist/index.d.ts +4 -0
- package/dist/sdks/@nocha/sdk/dist/index.js +521 -125
- package/dist/sdks/@nocha/sdk/dist/operation-wire-types.d.ts +30 -2
- package/dist/sdks/@nocha/sdk/dist/protocol.d.ts +7 -3
- package/dist/sdks/@nocha/sdk/dist/protocol.js +19 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai-wire.d.ts +40 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets-wire.d.ts +9 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets.d.ts +22 -5
- package/dist/sdks/@nocha/sdk/dist/types/video-sdk-wire.d.ts +174 -13
- package/dist/sdks/@nocha/sdk/dist/types/video-wire.d.ts +120 -7
- package/dist/sdks/@nocha/sdk/dist/types/video.d.ts +5 -2
- package/dist/sdks/@nocha/sdk/dist/video-analysis.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/vite.js +3 -1
- package/dist/sdks/@nocha/sdk/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/index.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/index.js +339 -4523
- package/dist/sdks/@watchirl/experience-sdk/dist/legacy-video.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/types.d.ts +1 -1
- package/dist/watchirl-sdk.js +333 -4515
- package/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/access.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/ai-operations.d.ts +0 -252
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assets-operations.d.ts +0 -102
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-contract.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-controls.d.ts +0 -11
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-operations.d.ts +0 -377
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-types.d.ts +0 -156
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-database.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-operations.d.ts +0 -71
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-requests.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-runtime.d.ts +0 -106
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-transactions.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/bridge.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-deadlines.d.ts +0 -63
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-needs.d.ts +0 -154
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-operations.d.ts +0 -73
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/clipping-types.d.ts +0 -134
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-operations.d.ts +0 -103
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-types.d.ts +0 -10
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/context.d.ts +0 -18
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-operations.d.ts +0 -452
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-types.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email-operations.d.ts +0 -30
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/error-codes.d.ts +0 -299
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/errors.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/execution.d.ts +0 -15
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context-types.d.ts +0 -12
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox-operations.d.ts +0 -58
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/index.d.ts +0 -101
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-facade.d.ts +0 -44
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-operations.d.ts +0 -80
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/navigation.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/network.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications-operations.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-metadata.d.ts +0 -67
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-wire-types.d.ts +0 -319
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl-operations.d.ts +0 -352
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl.d.ts +0 -31
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/presence-operations.d.ts +0 -24
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/protocol.d.ts +0 -378
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/state.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operation-types.d.ts +0 -49
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operations.d.ts +0 -229
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage.d.ts +0 -32
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/transport.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai-wire.d.ts +0 -337
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai.d.ts +0 -20
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets-wire.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets.d.ts +0 -40
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/json.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/network.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/outirl.d.ts +0 -326
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/storage.d.ts +0 -74
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-sdk-wire.d.ts +0 -460
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-wire.d.ts +0 -440
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video.d.ts +0 -164
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/voice-wire.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-operations.d.ts +0 -646
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-properties.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport-types.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport.d.ts +0 -7
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/voice.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/workspace.d.ts +0 -7
|
@@ -25,14 +25,15 @@ export type EffectiveVideoProperties = TripirlEffectiveVideoProperties & {
|
|
|
25
25
|
* (`VideoGeneration`) is one concrete run of a workflow. Results keep the wire format; an enumeration value this SDK
|
|
26
26
|
* does not know is reported as `null` (or dropped from a list), never as an invalid result.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
/** `analysis`: the source-video analysis (`analyse-video`), whose result is text, never a film. */
|
|
29
|
+
export type VideoWorkflowFamily = 'classic' | 'narrative' | 'image_loop' | 'analysis';
|
|
29
30
|
export type VideoSpeechMode = 'none' | 'auto' | 'required';
|
|
30
31
|
export type VideoAspectRatio = '9:16' | '16:9' | '1:1';
|
|
31
32
|
/** Every spoken language a workflow may publish (`VideoWorkflow.locales` is the subset that workflow renders). */
|
|
32
33
|
export declare const videoLocales: readonly ["fr-FR", "en-US", "es-ES", "de-DE", "it-IT", "pt-PT", "nl-NL", "pl-PL", "sv-SE", "da-DK", "nb-NO", "fi-FI", "cs-CZ", "sk-SK", "hr-HR", "bg-BG", "ro-RO", "hu-HU", "el-GR", "ru-RU", "uk-UA", "tr-TR", "ar-SA", "hi-IN", "ta-IN", "id-ID", "ms-MY", "vi-VN", "zh-CN", "ja-JP", "ko-KR", "th-TH"];
|
|
33
34
|
export type VideoLocale = typeof videoLocales[number];
|
|
34
35
|
export type VideoOutputResolution = '720p' | '1080p';
|
|
35
|
-
export type VideoGenerationKind = 'film' | 'image_loop';
|
|
36
|
+
export type VideoGenerationKind = 'film' | 'image_loop' | 'analysis';
|
|
36
37
|
export type VideoGenerationStatus = 'queued' | 'running' | 'cancelling' | 'succeeded' | 'failed' | 'cancelled';
|
|
37
38
|
export type VideoGenerationStage = 'preparing' | 'planning' | 'generating_speech' | 'generating_media' | 'assembling';
|
|
38
39
|
export type VideoGenerationFailure = {
|
|
@@ -40,6 +41,25 @@ export type VideoGenerationFailure = {
|
|
|
40
41
|
message: string;
|
|
41
42
|
retryable: boolean;
|
|
42
43
|
};
|
|
44
|
+
/** Why a failed film can resume (the first six) or cannot (the last four). */
|
|
45
|
+
export type VideoGenerationResumeReason = 'interrupted' | 'inputs_changed' | 'provider_unavailable' | 'storage_full' | 'paid_work_retained' | 'retryable_failure' | 'final_failure' | 'budget_exhausted' | 'workflow_taken_over' | 'media_expired';
|
|
46
|
+
/**
|
|
47
|
+
* A failed film's resume, as `video.retry` would run it: each step `keep` (done, not run again), `redo` or `run`
|
|
48
|
+
* (not run yet), and whether it may cost (`paid`). `estimated_microcredits` is the most the retry may spend: "0" when
|
|
49
|
+
* it buys nothing again, else what is left of the confirmed maximum; null once the film continues in its Tripirl
|
|
50
|
+
* workflow. `retry` still confirms the original `estimated_maximum_microcredits`: the cap is cumulative.
|
|
51
|
+
*/
|
|
52
|
+
export type VideoGenerationResume = {
|
|
53
|
+
available: boolean;
|
|
54
|
+
reason: VideoGenerationResumeReason | null;
|
|
55
|
+
steps: {
|
|
56
|
+
id: string;
|
|
57
|
+
action: 'keep' | 'redo' | 'run';
|
|
58
|
+
paid: boolean;
|
|
59
|
+
}[];
|
|
60
|
+
estimated_microcredits: Microcredits | null;
|
|
61
|
+
remaining_microcredits: Microcredits;
|
|
62
|
+
};
|
|
43
63
|
export type VideoParameterScalar = string | number | boolean;
|
|
44
64
|
export type VideoRenderRoute = {
|
|
45
65
|
provider: string;
|
|
@@ -123,6 +143,18 @@ export type VideoWorkflowStep = {
|
|
|
123
143
|
restartable?: boolean;
|
|
124
144
|
properties?: VideoPropertyDefinition[];
|
|
125
145
|
};
|
|
146
|
+
/** A module role of a workflow (`start_frame`, `end_frame`, `source_video`, `soundtrack`, `voice`): a request sends from `min` to
|
|
147
|
+
* `max` references of it. Several files of an audio role play in the order sent as one track: `gap_seconds` of silence
|
|
148
|
+
* between two (the voices, back to back), or `crossfade_seconds` of cross-fade from one into the next (the music, the last
|
|
149
|
+
* one fading out); `null` for an image or a video. */
|
|
150
|
+
export type VideoWorkflowReferenceRole = {
|
|
151
|
+
role: string;
|
|
152
|
+
media: 'image' | 'video' | 'audio';
|
|
153
|
+
min: number;
|
|
154
|
+
max: number;
|
|
155
|
+
gap_seconds: number | null;
|
|
156
|
+
crossfade_seconds: number | null;
|
|
157
|
+
};
|
|
126
158
|
/** A circuit format a generation can run, with what it accepts. Read it with `video.workflows` or `video.workflow`. */
|
|
127
159
|
export type VideoWorkflow = {
|
|
128
160
|
id: string;
|
|
@@ -155,12 +187,16 @@ export type VideoWorkflow = {
|
|
|
155
187
|
mode: VideoSpeechMode;
|
|
156
188
|
durations_seconds: number[] | null;
|
|
157
189
|
}[];
|
|
158
|
-
/** `mime_types` lists the accepted types; a video type (`video/mp4`, `video/quicktime`) admits
|
|
190
|
+
/** `mime_types` lists the accepted types; a video type (`video/mp4`, `video/quicktime`) admits the `source_video` reference,
|
|
191
|
+
* an audio type (`audio/mpeg`, `audio/wav`) the audio roles' files. `roles` bounds each module role the workflow reads;
|
|
192
|
+
* `max` counts every reference, the audio files taking no image slot: the images take at most `max` minus the audio
|
|
193
|
+
* roles' `max`. An older host publishes no `roles` (`[]`): one `soundtrack` and one `voice` at most. */
|
|
159
194
|
references: {
|
|
160
195
|
min: number;
|
|
161
196
|
max: number;
|
|
162
197
|
mime_types: string[];
|
|
163
198
|
requires_non_character: boolean;
|
|
199
|
+
roles: VideoWorkflowReferenceRole[];
|
|
164
200
|
};
|
|
165
201
|
/** True when `referencePreparation: 'auto'` is accepted. */
|
|
166
202
|
reference_preparation: boolean;
|
|
@@ -187,22 +223,37 @@ export type VideoWorkflowsRequest = {
|
|
|
187
223
|
family?: VideoWorkflowFamily;
|
|
188
224
|
};
|
|
189
225
|
/** Roles Tripirl workflows read: `character` (`name` and `description` say who it shows, or whom it replaces in a source
|
|
190
|
-
* video), `location` and `style` (the set and the look),
|
|
191
|
-
* `assets.upload`) that a workflow listing a video type in `references.mime_types` edits
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
* `
|
|
195
|
-
*
|
|
226
|
+
* video), `location` and `style` (the set and the look), `source_video`, the one MP4 or QuickTime video (stored by
|
|
227
|
+
* `assets.upload`) that a workflow listing a video type in `references.mime_types` edits, `soundtrack`, the MP3 or WAV
|
|
228
|
+
* audio files (stored by `assets.upload`, 64 MiB and 1 s to 10 minutes each) that a workflow listing it in
|
|
229
|
+
* `references.roles` lays under the film, and `voice`, those a music + voice workflow has its characters say. Each role
|
|
230
|
+
* takes up to its `max` files, played in the order sent as one track of at most 10 minutes; each clip gets the slice at
|
|
231
|
+
* its offset in the film, cut to the clip; a longer track is truncated, a shorter one ends in silence. Any other role is
|
|
232
|
+
* relayed as written. */
|
|
233
|
+
export type VideoReferenceRole = 'character' | 'location' | 'style' | 'source_video' | 'soundtrack' | 'voice';
|
|
234
|
+
/** One reference: an asset available to the participant, or a prepared Studio reference of this revision. Images, one
|
|
235
|
+
* `source_video` video, or the `soundtrack` and `voice` audio files. A reference without a `role` is not a `character`; a
|
|
236
|
+
* `source_video` or an audio file is neither a character nor a place, so it never satisfies `requires_non_character`. A
|
|
237
|
+
* video must take the role `source_video` and an audio file the role `soundtrack` or `voice`. */
|
|
196
238
|
export type VideoReferenceInput = {
|
|
197
239
|
assetId: string;
|
|
198
240
|
role?: VideoReferenceRole | (string & {});
|
|
199
241
|
name?: string;
|
|
200
242
|
description?: string;
|
|
243
|
+
replaces?: VideoReferenceReplaces;
|
|
201
244
|
} | {
|
|
202
245
|
studioReferenceId: string;
|
|
203
246
|
role?: VideoReferenceRole | (string & {});
|
|
204
247
|
name?: string;
|
|
205
248
|
description?: string;
|
|
249
|
+
replaces?: VideoReferenceReplaces;
|
|
250
|
+
};
|
|
251
|
+
/** A video edit's character or place: what it takes the place of in the source video, by a subject id of the source's
|
|
252
|
+
* analysis (`p1`, `l1`, `o1`: `/^[plo][1-9]\d{0,2}$/`) and/or a description (1,000 characters at most). Absent, the
|
|
253
|
+
* edit infers it and reports it in `edit_plan`. Workflows without a source video ignore it. */
|
|
254
|
+
export type VideoReferenceReplaces = {
|
|
255
|
+
subjectId?: string;
|
|
256
|
+
description?: string;
|
|
206
257
|
};
|
|
207
258
|
export type VideoRequest = {
|
|
208
259
|
workflow: VideoWorkflowRef;
|
|
@@ -222,10 +273,16 @@ export type VideoRequest = {
|
|
|
222
273
|
parameters?: VideoParameterValues;
|
|
223
274
|
/** Public module properties keyed by step, such as `{ clips: { resolution: '1080p' } }`. */
|
|
224
275
|
properties?: VideoProperties;
|
|
225
|
-
/** Within the workflow's `references` bounds
|
|
276
|
+
/** Within the workflow's `references` bounds and roles (twenty at most: eight images, then the audio files, in the order
|
|
277
|
+
* each role plays them); roles in `VideoReferenceRole`. */
|
|
226
278
|
references?: VideoReferenceInput[];
|
|
227
|
-
/** Workflows with `reference_preparation`: prepare the references before writing the film.
|
|
279
|
+
/** Workflows with `reference_preparation`: prepare the references before writing the film. A video edit prepares
|
|
280
|
+
* each character's visual sheet (cut-out and four views) by default; `properties.worldReferences.mode` set to a
|
|
281
|
+
* value its `worldReferences` step publishes other than `auto` sends the raw images instead. */
|
|
228
282
|
referencePreparation?: 'auto';
|
|
283
|
+
/** A video edit: a succeeded `analyse-video` generation of the same participant and the same source video (same
|
|
284
|
+
* SHA-256), reused instead of a new analysis. Absent, the edit analyses its source itself. */
|
|
285
|
+
sourceAnalysisId?: string;
|
|
229
286
|
effort?: GenerationEffort;
|
|
230
287
|
};
|
|
231
288
|
/** One push notification text. `{error}` in a `failed` body is replaced by the generation's error message. */
|
|
@@ -261,9 +318,12 @@ export type VideoRetryRequest = {
|
|
|
261
318
|
confirmedMaximumMicrocredits: Microcredits;
|
|
262
319
|
restartFrom?: string;
|
|
263
320
|
};
|
|
321
|
+
/** `workflow`: only your own generations of that workflow id (`analyse-video`, `edition-video`, a saved `fmt_…`), from
|
|
322
|
+
* SDK 6.13 hosts; generations others share are not listed. A filtered page may hold fewer than `limit` items, even none, while `has_more` is true: read on. */
|
|
264
323
|
export type VideoListRequest = {
|
|
265
324
|
cursor?: string;
|
|
266
325
|
limit?: number;
|
|
326
|
+
workflow?: string;
|
|
267
327
|
};
|
|
268
328
|
/** The workflow a generation runs, frozen when Tripirl accepted it. */
|
|
269
329
|
export type VideoGenerationWorkflowRef = {
|
|
@@ -299,6 +359,96 @@ export type VideoGenerationResult = {
|
|
|
299
359
|
height?: number;
|
|
300
360
|
aspect_ratio?: VideoAspectRatio;
|
|
301
361
|
};
|
|
362
|
+
/** Ids inside one analysis: `p1…` people, `l1…` places, `o1…` objects; times in milliseconds from the source's start. */
|
|
363
|
+
export type VideoSourceAnalysis = {
|
|
364
|
+
duration_ms: number;
|
|
365
|
+
summary: string;
|
|
366
|
+
places: {
|
|
367
|
+
id: string;
|
|
368
|
+
label: string;
|
|
369
|
+
description: string;
|
|
370
|
+
}[];
|
|
371
|
+
people: {
|
|
372
|
+
id: string;
|
|
373
|
+
label: string;
|
|
374
|
+
description: string;
|
|
375
|
+
appearance: string;
|
|
376
|
+
appearances: {
|
|
377
|
+
start_ms: number;
|
|
378
|
+
end_ms: number;
|
|
379
|
+
}[];
|
|
380
|
+
speaks: boolean;
|
|
381
|
+
}[];
|
|
382
|
+
objects: {
|
|
383
|
+
id: string;
|
|
384
|
+
label: string;
|
|
385
|
+
description: string;
|
|
386
|
+
}[];
|
|
387
|
+
shots: {
|
|
388
|
+
start_ms: number;
|
|
389
|
+
end_ms: number;
|
|
390
|
+
camera: string;
|
|
391
|
+
action: string;
|
|
392
|
+
people: string[];
|
|
393
|
+
}[];
|
|
394
|
+
events: {
|
|
395
|
+
start_ms: number;
|
|
396
|
+
end_ms: number | null;
|
|
397
|
+
kind: string;
|
|
398
|
+
description: string;
|
|
399
|
+
people: string[];
|
|
400
|
+
}[];
|
|
401
|
+
transcript: {
|
|
402
|
+
start_ms: number;
|
|
403
|
+
end_ms: number;
|
|
404
|
+
speaker: string | null;
|
|
405
|
+
text: string;
|
|
406
|
+
}[];
|
|
407
|
+
audio: {
|
|
408
|
+
music: string | null;
|
|
409
|
+
ambience: string | null;
|
|
410
|
+
speech: string | null;
|
|
411
|
+
};
|
|
412
|
+
source: {
|
|
413
|
+
sha256: string;
|
|
414
|
+
width: number;
|
|
415
|
+
height: number;
|
|
416
|
+
fps: number | null;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
export type VideoAnalysisPerson = VideoSourceAnalysis['people'][number];
|
|
420
|
+
export type VideoAnalysisPlace = VideoSourceAnalysis['places'][number];
|
|
421
|
+
export type VideoAnalysisObject = VideoSourceAnalysis['objects'][number];
|
|
422
|
+
export type VideoAnalysisShot = VideoSourceAnalysis['shots'][number];
|
|
423
|
+
export type VideoAnalysisEvent = VideoSourceAnalysis['events'][number];
|
|
424
|
+
export type VideoAnalysisTranscriptLine = VideoSourceAnalysis['transcript'][number];
|
|
425
|
+
/** The result of an `analyse-video` generation (`kind: 'analysis'`). */
|
|
426
|
+
export type VideoAnalysisResult = {
|
|
427
|
+
kind: 'analysis';
|
|
428
|
+
analysis: VideoSourceAnalysis;
|
|
429
|
+
};
|
|
430
|
+
/** How a video edit mapped its references onto the source video. */
|
|
431
|
+
export type VideoEditPlan = {
|
|
432
|
+
source_analysis_id: string | null;
|
|
433
|
+
mappings: {
|
|
434
|
+
reference: {
|
|
435
|
+
asset_id: string;
|
|
436
|
+
role: string | null;
|
|
437
|
+
name: string | null;
|
|
438
|
+
};
|
|
439
|
+
replaces: {
|
|
440
|
+
subject_id: string | null;
|
|
441
|
+
description: string | null;
|
|
442
|
+
};
|
|
443
|
+
source: 'explicit' | 'inferred';
|
|
444
|
+
image_index: number | null;
|
|
445
|
+
visual_sheet: boolean;
|
|
446
|
+
}[];
|
|
447
|
+
warnings: string[];
|
|
448
|
+
};
|
|
449
|
+
/** One reference of a video edit's plan. `reference.asset_id` is the asset the generation reads (`references`), which
|
|
450
|
+
* may be the participant's copy of the asset sent. */
|
|
451
|
+
export type VideoEditMapping = VideoEditPlan['mappings'][number];
|
|
302
452
|
export type VideoGenerationRequest = {
|
|
303
453
|
workflow: VideoWorkflowRef;
|
|
304
454
|
goal: string;
|
|
@@ -310,6 +460,7 @@ export type VideoGenerationRequest = {
|
|
|
310
460
|
/** Requested values only. Absent on generations created before parameter snapshots. */
|
|
311
461
|
parameters?: VideoParameterValues;
|
|
312
462
|
reference_preparation?: 'auto';
|
|
463
|
+
source_analysis_id?: string;
|
|
313
464
|
properties?: VideoProperties;
|
|
314
465
|
effort?: GenerationEffort | null;
|
|
315
466
|
collection_id: string | null;
|
|
@@ -334,6 +485,10 @@ export type VideoGenerationReference = {
|
|
|
334
485
|
role?: string;
|
|
335
486
|
name?: string;
|
|
336
487
|
description?: string;
|
|
488
|
+
replaces?: {
|
|
489
|
+
subject_id?: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
};
|
|
337
492
|
availability: 'available' | 'expired' | 'pending' | null;
|
|
338
493
|
};
|
|
339
494
|
export type VideoGenerationOrigin = {
|
|
@@ -420,7 +575,12 @@ export type VideoGeneration = {
|
|
|
420
575
|
};
|
|
421
576
|
actual_duration_seconds: number | null;
|
|
422
577
|
error: VideoGenerationFailure | null;
|
|
423
|
-
|
|
578
|
+
/** A failed film's resume, from SDK 6.10 hosts: null for any other generation, absent from older hosts. */
|
|
579
|
+
resume?: VideoGenerationResume | null;
|
|
580
|
+
/** A film, or the text analysis of an `analyse-video` generation (`kind: 'analysis'`, from SDK 6.13 hosts). */
|
|
581
|
+
result: VideoGenerationResult | VideoAnalysisResult | null;
|
|
582
|
+
/** A video edit's mapping of its references, from SDK 6.13 hosts; absent otherwise. */
|
|
583
|
+
edit_plan?: VideoEditPlan | null;
|
|
424
584
|
created_at: string;
|
|
425
585
|
updated_at: string;
|
|
426
586
|
};
|
|
@@ -433,7 +593,8 @@ export type VideoSharedGeneration = {
|
|
|
433
593
|
status: 'succeeded';
|
|
434
594
|
created_at: string;
|
|
435
595
|
updated_at: string;
|
|
436
|
-
|
|
596
|
+
/** The film, or the text analysis of a shared `analyse-video` generation (from SDK 6.13 hosts). */
|
|
597
|
+
result: VideoGenerationResult | VideoAnalysisResult;
|
|
437
598
|
};
|
|
438
599
|
export type VideoReadableGeneration = VideoGeneration | VideoSharedGeneration;
|
|
439
600
|
export type VideoGenerationList = {
|
|
@@ -126,6 +126,7 @@ export type TripirlVideoGenerationReference = {
|
|
|
126
126
|
"role"?: string;
|
|
127
127
|
"name"?: string;
|
|
128
128
|
"description"?: string;
|
|
129
|
+
"replaces"?: TripirlVideoReferenceReplaces;
|
|
129
130
|
};
|
|
130
131
|
export type TripirlDataAuthorization = {
|
|
131
132
|
"need": string;
|
|
@@ -158,7 +159,7 @@ export type TripirlNochaRequest = {
|
|
|
158
159
|
};
|
|
159
160
|
export type TripirlEstimateRequest = {
|
|
160
161
|
"workflow": TripirlWorkflowRef;
|
|
161
|
-
"goal"
|
|
162
|
+
"goal"?: string;
|
|
162
163
|
"duration_seconds": number;
|
|
163
164
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
164
165
|
"locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
|
|
@@ -167,11 +168,12 @@ export type TripirlEstimateRequest = {
|
|
|
167
168
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
168
169
|
"collection_id"?: TripirlIdentifier;
|
|
169
170
|
"properties"?: TripirlVideoProperties;
|
|
171
|
+
"source_analysis_id"?: TripirlUuid;
|
|
170
172
|
"nocha"?: TripirlNochaRequest;
|
|
171
173
|
};
|
|
172
174
|
export type TripirlCreateRequest = {
|
|
173
175
|
"workflow": TripirlWorkflowRef;
|
|
174
|
-
"goal"
|
|
176
|
+
"goal"?: string;
|
|
175
177
|
"duration_seconds": number;
|
|
176
178
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
177
179
|
"locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
|
|
@@ -180,6 +182,7 @@ export type TripirlCreateRequest = {
|
|
|
180
182
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
181
183
|
"collection_id"?: TripirlIdentifier;
|
|
182
184
|
"properties"?: TripirlVideoProperties;
|
|
185
|
+
"source_analysis_id"?: TripirlUuid;
|
|
183
186
|
"nocha"?: TripirlNochaRequest;
|
|
184
187
|
"confirmed_maximum_microcredits": string;
|
|
185
188
|
};
|
|
@@ -201,6 +204,7 @@ export type TripirlDataRoutesRequest = {
|
|
|
201
204
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
202
205
|
"collection_id"?: TripirlIdentifier;
|
|
203
206
|
"properties"?: TripirlVideoProperties;
|
|
207
|
+
"source_analysis_id"?: TripirlUuid;
|
|
204
208
|
"nocha"?: TripirlNochaRequest;
|
|
205
209
|
"purpose"?: "generation";
|
|
206
210
|
"metadata_only"?: boolean;
|
|
@@ -225,6 +229,14 @@ export type TripirlEstimateResponse = {
|
|
|
225
229
|
"valid_until": TripirlTimestamp;
|
|
226
230
|
"workflow": TripirlWorkflowIdentity;
|
|
227
231
|
};
|
|
232
|
+
export type TripirlVideoWorkflowReferenceRole = {
|
|
233
|
+
"role": string;
|
|
234
|
+
"media": "image" | "video" | "audio";
|
|
235
|
+
"min": number;
|
|
236
|
+
"max": number;
|
|
237
|
+
"gap_seconds"?: number;
|
|
238
|
+
"crossfade_seconds"?: number;
|
|
239
|
+
};
|
|
228
240
|
export type TripirlVideoWorkflow = {
|
|
229
241
|
"id": TripirlIdentifier;
|
|
230
242
|
"origin": "builtin" | "saved";
|
|
@@ -234,7 +246,7 @@ export type TripirlVideoWorkflow = {
|
|
|
234
246
|
"base_id": TripirlIdentifier | null;
|
|
235
247
|
"name": string;
|
|
236
248
|
"description": string;
|
|
237
|
-
"family": "classic" | "narrative" | "image_loop";
|
|
249
|
+
"family": "classic" | "narrative" | "image_loop" | "analysis";
|
|
238
250
|
"interaction": "none" | "recordings" | "live";
|
|
239
251
|
"availability": {
|
|
240
252
|
"status": "available";
|
|
@@ -260,6 +272,7 @@ export type TripirlVideoWorkflow = {
|
|
|
260
272
|
"max": number;
|
|
261
273
|
"mime_types": (string)[];
|
|
262
274
|
"requires_non_character": boolean;
|
|
275
|
+
"roles": (TripirlVideoWorkflowReferenceRole)[];
|
|
263
276
|
};
|
|
264
277
|
};
|
|
265
278
|
"steps": ({
|
|
@@ -278,7 +291,7 @@ export type TripirlVideoWorkflowList = {
|
|
|
278
291
|
};
|
|
279
292
|
export type TripirlVideoGenerationRequest = {
|
|
280
293
|
"workflow": TripirlWorkflowRef;
|
|
281
|
-
"goal"
|
|
294
|
+
"goal"?: string;
|
|
282
295
|
"duration_seconds": number;
|
|
283
296
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
284
297
|
"locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
|
|
@@ -287,6 +300,7 @@ export type TripirlVideoGenerationRequest = {
|
|
|
287
300
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
288
301
|
"collection_id": TripirlIdentifier | null;
|
|
289
302
|
"properties"?: TripirlVideoProperties;
|
|
303
|
+
"source_analysis_id"?: TripirlUuid;
|
|
290
304
|
"confirmed_maximum_microcredits": string | null;
|
|
291
305
|
};
|
|
292
306
|
export type TripirlVideoGeneration = {
|
|
@@ -300,8 +314,10 @@ export type TripirlVideoGeneration = {
|
|
|
300
314
|
"role"?: string;
|
|
301
315
|
"name"?: string;
|
|
302
316
|
"description"?: string;
|
|
317
|
+
"replaces"?: TripirlVideoReferenceReplaces;
|
|
303
318
|
"availability": "available" | "expired" | "pending";
|
|
304
319
|
"image_url": string | null;
|
|
320
|
+
"media_url": string | null;
|
|
305
321
|
})[];
|
|
306
322
|
"origin": TripirlNochaOrigin | null;
|
|
307
323
|
"progress": {
|
|
@@ -321,7 +337,9 @@ export type TripirlVideoGeneration = {
|
|
|
321
337
|
"cost": TripirlVideoGenerationCost;
|
|
322
338
|
"actual_duration_seconds": number | null;
|
|
323
339
|
"error": TripirlVideoGenerationFailure | null;
|
|
324
|
-
"
|
|
340
|
+
"resume": TripirlVideoGenerationResume | null;
|
|
341
|
+
"result": TripirlVideoGenerationAnyResult | null;
|
|
342
|
+
"edit_plan"?: TripirlVideoEditPlan;
|
|
325
343
|
"created_at": TripirlTimestamp;
|
|
326
344
|
"updated_at": TripirlTimestamp;
|
|
327
345
|
};
|
|
@@ -342,6 +360,18 @@ export type TripirlVideoGenerationFailure = {
|
|
|
342
360
|
"message": string;
|
|
343
361
|
"retryable": boolean;
|
|
344
362
|
};
|
|
363
|
+
export type TripirlVideoGenerationResume = {
|
|
364
|
+
"available": boolean;
|
|
365
|
+
"reason": "interrupted" | "inputs_changed" | "provider_unavailable" | "storage_full" | "paid_work_retained" | "retryable_failure" | "final_failure" | "budget_exhausted" | "workflow_taken_over" | "media_expired";
|
|
366
|
+
"steps": (TripirlVideoGenerationResumeStep)[];
|
|
367
|
+
"estimated_microcredits": string | null;
|
|
368
|
+
"remaining_microcredits": string;
|
|
369
|
+
};
|
|
370
|
+
export type TripirlVideoGenerationResumeStep = {
|
|
371
|
+
"id": TripirlStepId;
|
|
372
|
+
"action": "keep" | "redo" | "run";
|
|
373
|
+
"paid": boolean;
|
|
374
|
+
};
|
|
345
375
|
export type TripirlVideoGenerationResult = {
|
|
346
376
|
"actual_duration_seconds": number;
|
|
347
377
|
"download_url": string;
|
|
@@ -354,8 +384,91 @@ export type TripirlVideoGenerationResult = {
|
|
|
354
384
|
"height"?: number;
|
|
355
385
|
"filename"?: TripirlIdentifier;
|
|
356
386
|
};
|
|
387
|
+
export type TripirlVideoGenerationAnyResult = TripirlVideoGenerationResult | TripirlVideoAnalysisResult;
|
|
388
|
+
export type TripirlVideoSourceAnalysis = {
|
|
389
|
+
"duration_ms": number;
|
|
390
|
+
"summary": string;
|
|
391
|
+
"places": ({
|
|
392
|
+
"id": string;
|
|
393
|
+
"label": string;
|
|
394
|
+
"description": string;
|
|
395
|
+
})[];
|
|
396
|
+
"people": ({
|
|
397
|
+
"id": string;
|
|
398
|
+
"label": string;
|
|
399
|
+
"description": string;
|
|
400
|
+
"appearance": string;
|
|
401
|
+
"appearances": ({
|
|
402
|
+
"start_ms": number;
|
|
403
|
+
"end_ms": number;
|
|
404
|
+
})[];
|
|
405
|
+
"speaks": boolean;
|
|
406
|
+
})[];
|
|
407
|
+
"objects": ({
|
|
408
|
+
"id": string;
|
|
409
|
+
"label": string;
|
|
410
|
+
"description": string;
|
|
411
|
+
})[];
|
|
412
|
+
"shots": ({
|
|
413
|
+
"start_ms": number;
|
|
414
|
+
"end_ms": number;
|
|
415
|
+
"camera": string;
|
|
416
|
+
"action": string;
|
|
417
|
+
"people": (string)[];
|
|
418
|
+
})[];
|
|
419
|
+
"events": ({
|
|
420
|
+
"start_ms": number;
|
|
421
|
+
"end_ms": number | null;
|
|
422
|
+
"kind": string;
|
|
423
|
+
"description": string;
|
|
424
|
+
"people": (string)[];
|
|
425
|
+
})[];
|
|
426
|
+
"transcript": ({
|
|
427
|
+
"start_ms": number;
|
|
428
|
+
"end_ms": number;
|
|
429
|
+
"speaker": string | null;
|
|
430
|
+
"text": string;
|
|
431
|
+
})[];
|
|
432
|
+
"audio": {
|
|
433
|
+
"music": string | null;
|
|
434
|
+
"ambience": string | null;
|
|
435
|
+
"speech": string | null;
|
|
436
|
+
};
|
|
437
|
+
"source": {
|
|
438
|
+
"sha256": string;
|
|
439
|
+
"width": number;
|
|
440
|
+
"height": number;
|
|
441
|
+
"fps": number | null;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
export type TripirlVideoAnalysisResult = {
|
|
445
|
+
"kind": "analysis";
|
|
446
|
+
"analysis": TripirlVideoSourceAnalysis;
|
|
447
|
+
};
|
|
448
|
+
export type TripirlVideoReferenceReplaces = {
|
|
449
|
+
"subject_id"?: string;
|
|
450
|
+
"description"?: string;
|
|
451
|
+
};
|
|
452
|
+
export type TripirlVideoEditPlan = {
|
|
453
|
+
"source_analysis_id": TripirlUuid | null;
|
|
454
|
+
"mappings": ({
|
|
455
|
+
"reference": {
|
|
456
|
+
"asset_id": TripirlUuid;
|
|
457
|
+
"role": string | null;
|
|
458
|
+
"name": string | null;
|
|
459
|
+
};
|
|
460
|
+
"replaces": {
|
|
461
|
+
"subject_id": string | null;
|
|
462
|
+
"description": string | null;
|
|
463
|
+
};
|
|
464
|
+
"source": "explicit" | "inferred";
|
|
465
|
+
"image_index": number | null;
|
|
466
|
+
"visual_sheet": boolean;
|
|
467
|
+
})[];
|
|
468
|
+
"warnings": (string)[];
|
|
469
|
+
};
|
|
357
470
|
export type TripirlVideoGenerationResultResponse = {
|
|
358
|
-
"result":
|
|
471
|
+
"result": TripirlVideoGenerationAnyResult;
|
|
359
472
|
};
|
|
360
473
|
export type TripirlVideoGenerationEvent = {
|
|
361
474
|
"created_at": TripirlTimestamp;
|
|
@@ -426,7 +539,7 @@ export type TripirlError = {
|
|
|
426
539
|
"trace_id": string;
|
|
427
540
|
"correlation_id": string;
|
|
428
541
|
"error": {
|
|
429
|
-
"code": "invalid_request" | "authentication_required" | "insufficient_scope" | "generation_not_found" | "reference_asset_not_found" | "reference_asset_invalid" | "estimate_exceeded" | "idempotency_conflict" | "generation_not_cancellable" | "generation_not_terminal" | "result_not_ready" | "subscription_required" | "insufficient_credits" | "queue_limit_reached" | "concurrency_limit_reached" | "provider_unavailable" | "speech_requirement_unsatisfied" | "speech_casting_unattributed" | "speech_take_too_long" | "speech_lines_missing" | "workflow_unknown" | "workflow_unsupported" | "request_failed";
|
|
542
|
+
"code": "invalid_request" | "authentication_required" | "insufficient_scope" | "generation_not_found" | "reference_asset_not_found" | "reference_asset_invalid" | "estimate_exceeded" | "idempotency_conflict" | "generation_not_cancellable" | "generation_not_terminal" | "result_not_ready" | "subscription_required" | "insufficient_credits" | "queue_limit_reached" | "concurrency_limit_reached" | "provider_unavailable" | "speech_requirement_unsatisfied" | "speech_casting_unattributed" | "speech_take_too_long" | "speech_lines_missing" | "workflow_unknown" | "workflow_unsupported" | "workflow_blocked" | "request_failed";
|
|
430
543
|
"message": string;
|
|
431
544
|
"retryable": boolean;
|
|
432
545
|
"trace_id": string;
|
|
@@ -130,8 +130,11 @@ export type NochaVideo = {
|
|
|
130
130
|
/** One workflow, at a revision for a saved `fmt_…` one. */
|
|
131
131
|
workflow(input: VideoWorkflowRef, options?: RequestOptions): Promise<VideoWorkflow>;
|
|
132
132
|
estimate(input: VideoRequest, options?: RequestOptions): Promise<VideoEstimate>;
|
|
133
|
-
/** Persist `options.idempotencyKey` before the call and reuse it to resume after a lost reply.
|
|
133
|
+
/** Persist `options.idempotencyKey` before the call and reuse it to resume after a lost reply. The `analyse-video`
|
|
134
|
+
* workflow takes one `source_video` reference and answers `result: { kind: 'analysis', analysis }`, no film; a video
|
|
135
|
+
* edit reuses it with `sourceAnalysisId` and names what each character replaces (`references[].replaces`). */
|
|
134
136
|
create(input: VideoCreateRequest, options: VideoPaidOptions): Promise<VideoGeneration>;
|
|
137
|
+
/** This experience's generations, newest first; `workflow` keeps one workflow's, such as the `analyse-video` analyses. */
|
|
135
138
|
list(input?: VideoListRequest, options?: RequestOptions): Promise<VideoGenerationList>;
|
|
136
139
|
get(input: {
|
|
137
140
|
id: string;
|
|
@@ -154,7 +157,7 @@ export type NochaVideo = {
|
|
|
154
157
|
playback(input: {
|
|
155
158
|
id: string;
|
|
156
159
|
}, options?: VideoPlaybackOptions): Promise<VideoPlayback>;
|
|
157
|
-
/** Reads a succeeded film as an MP4 `Blob` of at most 256 MiB. The host authorizes it with `video.get`
|
|
160
|
+
/** Reads a succeeded film as an MP4 `Blob` of at most 256 MiB; an analysis has no media (`media_unsupported`). The host authorizes it with `video.get`
|
|
158
161
|
* and fetches it with its own identity: `download_url` alone is not readable from the experience frame.
|
|
159
162
|
* Show it through `URL.createObjectURL(blob)` (`<video>`, Three.js `VideoTexture`) and revoke the URL after use. */
|
|
160
163
|
media(input: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { VideoAnalysisResult, VideoEditPlan, VideoGenerationReference, VideoSourceAnalysis } from './types/video-sdk-wire.js';
|
|
2
|
+
export declare function readVideoSourceAnalysis(value: unknown): VideoSourceAnalysis | null;
|
|
3
|
+
/** `{ kind: 'analysis', analysis }`, or null when the value is not a usable analysis. */
|
|
4
|
+
export declare function readVideoAnalysisResult(value: unknown): VideoAnalysisResult | null;
|
|
5
|
+
/** A reference's `replaces` as Tripirl returns it; undefined when it names nothing. */
|
|
6
|
+
export declare function readVideoReferenceReplaces(value: unknown): VideoGenerationReference['replaces'];
|
|
7
|
+
/** A video edit's plan: undefined when the host sends none, null when it is null or unusable. A mapping source this
|
|
8
|
+
* SDK does not know reads as `inferred`: the edit chose it. */
|
|
9
|
+
export declare function readVideoEditPlan(value: unknown): VideoEditPlan | null | undefined;
|