@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
|
@@ -127,6 +127,7 @@ export type TripirlVideoGenerationReference = {
|
|
|
127
127
|
"role"?: string;
|
|
128
128
|
"name"?: string;
|
|
129
129
|
"description"?: string;
|
|
130
|
+
"replaces"?: TripirlVideoReferenceReplaces;
|
|
130
131
|
};
|
|
131
132
|
export type TripirlDataAuthorization = {
|
|
132
133
|
"need": string;
|
|
@@ -159,7 +160,7 @@ export type TripirlNochaRequest = {
|
|
|
159
160
|
};
|
|
160
161
|
export type TripirlEstimateRequest = {
|
|
161
162
|
"workflow": TripirlWorkflowRef;
|
|
162
|
-
"goal"
|
|
163
|
+
"goal"?: string;
|
|
163
164
|
"duration_seconds": number;
|
|
164
165
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
165
166
|
"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";
|
|
@@ -168,11 +169,12 @@ export type TripirlEstimateRequest = {
|
|
|
168
169
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
169
170
|
"collection_id"?: TripirlIdentifier;
|
|
170
171
|
"properties"?: TripirlVideoProperties;
|
|
172
|
+
"source_analysis_id"?: TripirlUuid;
|
|
171
173
|
"nocha"?: TripirlNochaRequest;
|
|
172
174
|
};
|
|
173
175
|
export type TripirlCreateRequest = {
|
|
174
176
|
"workflow": TripirlWorkflowRef;
|
|
175
|
-
"goal"
|
|
177
|
+
"goal"?: string;
|
|
176
178
|
"duration_seconds": number;
|
|
177
179
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
178
180
|
"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";
|
|
@@ -181,6 +183,7 @@ export type TripirlCreateRequest = {
|
|
|
181
183
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
182
184
|
"collection_id"?: TripirlIdentifier;
|
|
183
185
|
"properties"?: TripirlVideoProperties;
|
|
186
|
+
"source_analysis_id"?: TripirlUuid;
|
|
184
187
|
"nocha"?: TripirlNochaRequest;
|
|
185
188
|
"confirmed_maximum_microcredits": string;
|
|
186
189
|
};
|
|
@@ -202,6 +205,7 @@ export type TripirlDataRoutesRequest = {
|
|
|
202
205
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
203
206
|
"collection_id"?: TripirlIdentifier;
|
|
204
207
|
"properties"?: TripirlVideoProperties;
|
|
208
|
+
"source_analysis_id"?: TripirlUuid;
|
|
205
209
|
"nocha"?: TripirlNochaRequest;
|
|
206
210
|
"purpose"?: "generation";
|
|
207
211
|
"metadata_only"?: boolean;
|
|
@@ -226,6 +230,14 @@ export type TripirlEstimateResponse = {
|
|
|
226
230
|
"valid_until": TripirlTimestamp;
|
|
227
231
|
"workflow": TripirlWorkflowIdentity;
|
|
228
232
|
};
|
|
233
|
+
export type TripirlVideoWorkflowReferenceRole = {
|
|
234
|
+
"role": string;
|
|
235
|
+
"media": "image" | "video" | "audio";
|
|
236
|
+
"min": number;
|
|
237
|
+
"max": number;
|
|
238
|
+
"gap_seconds"?: number;
|
|
239
|
+
"crossfade_seconds"?: number;
|
|
240
|
+
};
|
|
229
241
|
export type TripirlVideoWorkflow = {
|
|
230
242
|
"id": TripirlIdentifier;
|
|
231
243
|
"origin": "builtin" | "saved";
|
|
@@ -235,7 +247,7 @@ export type TripirlVideoWorkflow = {
|
|
|
235
247
|
"base_id": TripirlIdentifier | null;
|
|
236
248
|
"name": string;
|
|
237
249
|
"description": string;
|
|
238
|
-
"family": "classic" | "narrative" | "image_loop";
|
|
250
|
+
"family": "classic" | "narrative" | "image_loop" | "analysis";
|
|
239
251
|
"interaction": "none" | "recordings" | "live";
|
|
240
252
|
"availability": {
|
|
241
253
|
"status": "available";
|
|
@@ -261,6 +273,7 @@ export type TripirlVideoWorkflow = {
|
|
|
261
273
|
"max": number;
|
|
262
274
|
"mime_types": (string)[];
|
|
263
275
|
"requires_non_character": boolean;
|
|
276
|
+
"roles": (TripirlVideoWorkflowReferenceRole)[];
|
|
264
277
|
};
|
|
265
278
|
};
|
|
266
279
|
"steps": ({
|
|
@@ -279,7 +292,7 @@ export type TripirlVideoWorkflowList = {
|
|
|
279
292
|
};
|
|
280
293
|
export type TripirlVideoGenerationRequest = {
|
|
281
294
|
"workflow": TripirlWorkflowRef;
|
|
282
|
-
"goal"
|
|
295
|
+
"goal"?: string;
|
|
283
296
|
"duration_seconds": number;
|
|
284
297
|
"aspect_ratio": "9:16" | "16:9" | "1:1";
|
|
285
298
|
"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";
|
|
@@ -288,6 +301,7 @@ export type TripirlVideoGenerationRequest = {
|
|
|
288
301
|
"effort"?: "auto" | "low" | "medium" | "high";
|
|
289
302
|
"collection_id": TripirlIdentifier | null;
|
|
290
303
|
"properties"?: TripirlVideoProperties;
|
|
304
|
+
"source_analysis_id"?: TripirlUuid;
|
|
291
305
|
"confirmed_maximum_microcredits": string | null;
|
|
292
306
|
};
|
|
293
307
|
export type TripirlVideoGeneration = {
|
|
@@ -301,8 +315,10 @@ export type TripirlVideoGeneration = {
|
|
|
301
315
|
"role"?: string;
|
|
302
316
|
"name"?: string;
|
|
303
317
|
"description"?: string;
|
|
318
|
+
"replaces"?: TripirlVideoReferenceReplaces;
|
|
304
319
|
"availability": "available" | "expired" | "pending";
|
|
305
320
|
"image_url": string | null;
|
|
321
|
+
"media_url": string | null;
|
|
306
322
|
})[];
|
|
307
323
|
"origin": TripirlNochaOrigin | null;
|
|
308
324
|
"progress": {
|
|
@@ -322,7 +338,9 @@ export type TripirlVideoGeneration = {
|
|
|
322
338
|
"cost": TripirlVideoGenerationCost;
|
|
323
339
|
"actual_duration_seconds": number | null;
|
|
324
340
|
"error": TripirlVideoGenerationFailure | null;
|
|
325
|
-
"
|
|
341
|
+
"resume": TripirlVideoGenerationResume | null;
|
|
342
|
+
"result": TripirlVideoGenerationAnyResult | null;
|
|
343
|
+
"edit_plan"?: TripirlVideoEditPlan;
|
|
326
344
|
"created_at": TripirlTimestamp;
|
|
327
345
|
"updated_at": TripirlTimestamp;
|
|
328
346
|
};
|
|
@@ -343,6 +361,18 @@ export type TripirlVideoGenerationFailure = {
|
|
|
343
361
|
"message": string;
|
|
344
362
|
"retryable": boolean;
|
|
345
363
|
};
|
|
364
|
+
export type TripirlVideoGenerationResume = {
|
|
365
|
+
"available": boolean;
|
|
366
|
+
"reason": "interrupted" | "inputs_changed" | "provider_unavailable" | "storage_full" | "paid_work_retained" | "retryable_failure" | "final_failure" | "budget_exhausted" | "workflow_taken_over" | "media_expired";
|
|
367
|
+
"steps": (TripirlVideoGenerationResumeStep)[];
|
|
368
|
+
"estimated_microcredits": string | null;
|
|
369
|
+
"remaining_microcredits": string;
|
|
370
|
+
};
|
|
371
|
+
export type TripirlVideoGenerationResumeStep = {
|
|
372
|
+
"id": TripirlStepId;
|
|
373
|
+
"action": "keep" | "redo" | "run";
|
|
374
|
+
"paid": boolean;
|
|
375
|
+
};
|
|
346
376
|
export type TripirlVideoGenerationResult = {
|
|
347
377
|
"actual_duration_seconds": number;
|
|
348
378
|
"download_url": string;
|
|
@@ -355,8 +385,91 @@ export type TripirlVideoGenerationResult = {
|
|
|
355
385
|
"height"?: number;
|
|
356
386
|
"filename"?: TripirlIdentifier;
|
|
357
387
|
};
|
|
388
|
+
export type TripirlVideoGenerationAnyResult = TripirlVideoGenerationResult | TripirlVideoAnalysisResult;
|
|
389
|
+
export type TripirlVideoSourceAnalysis = {
|
|
390
|
+
"duration_ms": number;
|
|
391
|
+
"summary": string;
|
|
392
|
+
"places": ({
|
|
393
|
+
"id": string;
|
|
394
|
+
"label": string;
|
|
395
|
+
"description": string;
|
|
396
|
+
})[];
|
|
397
|
+
"people": ({
|
|
398
|
+
"id": string;
|
|
399
|
+
"label": string;
|
|
400
|
+
"description": string;
|
|
401
|
+
"appearance": string;
|
|
402
|
+
"appearances": ({
|
|
403
|
+
"start_ms": number;
|
|
404
|
+
"end_ms": number;
|
|
405
|
+
})[];
|
|
406
|
+
"speaks": boolean;
|
|
407
|
+
})[];
|
|
408
|
+
"objects": ({
|
|
409
|
+
"id": string;
|
|
410
|
+
"label": string;
|
|
411
|
+
"description": string;
|
|
412
|
+
})[];
|
|
413
|
+
"shots": ({
|
|
414
|
+
"start_ms": number;
|
|
415
|
+
"end_ms": number;
|
|
416
|
+
"camera": string;
|
|
417
|
+
"action": string;
|
|
418
|
+
"people": (string)[];
|
|
419
|
+
})[];
|
|
420
|
+
"events": ({
|
|
421
|
+
"start_ms": number;
|
|
422
|
+
"end_ms": number | null;
|
|
423
|
+
"kind": string;
|
|
424
|
+
"description": string;
|
|
425
|
+
"people": (string)[];
|
|
426
|
+
})[];
|
|
427
|
+
"transcript": ({
|
|
428
|
+
"start_ms": number;
|
|
429
|
+
"end_ms": number;
|
|
430
|
+
"speaker": string | null;
|
|
431
|
+
"text": string;
|
|
432
|
+
})[];
|
|
433
|
+
"audio": {
|
|
434
|
+
"music": string | null;
|
|
435
|
+
"ambience": string | null;
|
|
436
|
+
"speech": string | null;
|
|
437
|
+
};
|
|
438
|
+
"source": {
|
|
439
|
+
"sha256": string;
|
|
440
|
+
"width": number;
|
|
441
|
+
"height": number;
|
|
442
|
+
"fps": number | null;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
export type TripirlVideoAnalysisResult = {
|
|
446
|
+
"kind": "analysis";
|
|
447
|
+
"analysis": TripirlVideoSourceAnalysis;
|
|
448
|
+
};
|
|
449
|
+
export type TripirlVideoReferenceReplaces = {
|
|
450
|
+
"subject_id"?: string;
|
|
451
|
+
"description"?: string;
|
|
452
|
+
};
|
|
453
|
+
export type TripirlVideoEditPlan = {
|
|
454
|
+
"source_analysis_id": TripirlUuid | null;
|
|
455
|
+
"mappings": ({
|
|
456
|
+
"reference": {
|
|
457
|
+
"asset_id": TripirlUuid;
|
|
458
|
+
"role": string | null;
|
|
459
|
+
"name": string | null;
|
|
460
|
+
};
|
|
461
|
+
"replaces": {
|
|
462
|
+
"subject_id": string | null;
|
|
463
|
+
"description": string | null;
|
|
464
|
+
};
|
|
465
|
+
"source": "explicit" | "inferred";
|
|
466
|
+
"image_index": number | null;
|
|
467
|
+
"visual_sheet": boolean;
|
|
468
|
+
})[];
|
|
469
|
+
"warnings": (string)[];
|
|
470
|
+
};
|
|
358
471
|
export type TripirlVideoGenerationResultResponse = {
|
|
359
|
-
"result":
|
|
472
|
+
"result": TripirlVideoGenerationAnyResult;
|
|
360
473
|
};
|
|
361
474
|
export type TripirlVideoGenerationEvent = {
|
|
362
475
|
"created_at": TripirlTimestamp;
|
|
@@ -427,7 +540,7 @@ export type TripirlError = {
|
|
|
427
540
|
"trace_id": string;
|
|
428
541
|
"correlation_id": string;
|
|
429
542
|
"error": {
|
|
430
|
-
"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";
|
|
543
|
+
"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";
|
|
431
544
|
"message": string;
|
|
432
545
|
"retryable": boolean;
|
|
433
546
|
"trace_id": string;
|
|
@@ -131,8 +131,11 @@ export type NochaVideo = {
|
|
|
131
131
|
/** One workflow, at a revision for a saved `fmt_…` one. */
|
|
132
132
|
workflow(input: VideoWorkflowRef, options?: RequestOptions): Promise<VideoWorkflow>;
|
|
133
133
|
estimate(input: VideoRequest, options?: RequestOptions): Promise<VideoEstimate>;
|
|
134
|
-
/** Persist `options.idempotencyKey` before the call and reuse it to resume after a lost reply.
|
|
134
|
+
/** Persist `options.idempotencyKey` before the call and reuse it to resume after a lost reply. The `analyse-video`
|
|
135
|
+
* workflow takes one `source_video` reference and answers `result: { kind: 'analysis', analysis }`, no film; a video
|
|
136
|
+
* edit reuses it with `sourceAnalysisId` and names what each character replaces (`references[].replaces`). */
|
|
135
137
|
create(input: VideoCreateRequest, options: VideoPaidOptions): Promise<VideoGeneration>;
|
|
138
|
+
/** This experience's generations, newest first; `workflow` keeps one workflow's, such as the `analyse-video` analyses. */
|
|
136
139
|
list(input?: VideoListRequest, options?: RequestOptions): Promise<VideoGenerationList>;
|
|
137
140
|
get(input: {
|
|
138
141
|
id: string;
|
|
@@ -155,7 +158,7 @@ export type NochaVideo = {
|
|
|
155
158
|
playback(input: {
|
|
156
159
|
id: string;
|
|
157
160
|
}, options?: VideoPlaybackOptions): Promise<VideoPlayback>;
|
|
158
|
-
/** Reads a succeeded film as an MP4 `Blob` of at most 256 MiB. The host authorizes it with `video.get`
|
|
161
|
+
/** 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`
|
|
159
162
|
* and fetches it with its own identity: `download_url` alone is not readable from the experience frame.
|
|
160
163
|
* Show it through `URL.createObjectURL(blob)` (`<video>`, Three.js `VideoTexture`) and revoke the URL after use. */
|
|
161
164
|
media(input: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Generated by npm run references:generate -w nocha; do not edit.
|
|
2
|
+
import type { VideoAnalysisResult, VideoEditPlan, VideoGenerationReference, VideoSourceAnalysis } from './types/video-sdk-wire.js';
|
|
3
|
+
export declare function readVideoSourceAnalysis(value: unknown): VideoSourceAnalysis | null;
|
|
4
|
+
/** `{ kind: 'analysis', analysis }`, or null when the value is not a usable analysis. */
|
|
5
|
+
export declare function readVideoAnalysisResult(value: unknown): VideoAnalysisResult | null;
|
|
6
|
+
/** A reference's `replaces` as Tripirl returns it; undefined when it names nothing. */
|
|
7
|
+
export declare function readVideoReferenceReplaces(value: unknown): VideoGenerationReference['replaces'];
|
|
8
|
+
/** A video edit's plan: undefined when the host sends none, null when it is null or unusable. A mapping source this
|
|
9
|
+
* SDK does not know reads as `inferred`: the edit chose it. */
|
|
10
|
+
export declare function readVideoEditPlan(value: unknown): VideoEditPlan | null | undefined;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Generated by npm run references:generate -w nocha; do not edit.
|
|
2
2
|
import type { NochaContext } from './context.js';
|
|
3
3
|
import type { VideoMediaOptions } from './types/video.js';
|
|
4
|
-
/**
|
|
5
|
-
* fetches the relative media URL with its own identity and posts the bytes back. Tokens and cookies stay
|
|
6
|
-
* in the host. A read has no remote effect, so the local deadline also stops it. */
|
|
4
|
+
/** `video.media` on `nocha.media.v1`: the host authorizes the read with `video.get` and fetches the relative media URL. */
|
|
7
5
|
export declare function readVideoMedia(context: NochaContext, input: {
|
|
8
6
|
id: string;
|
|
9
7
|
}, options?: VideoMediaOptions): Promise<Blob>;
|