@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
|
@@ -51,6 +51,16 @@ export type AiResearchInput = AiPolicyInput & {
|
|
|
51
51
|
};
|
|
52
52
|
/** Opaque voice id from `ai.voices`; the historical names (alloy…cedar) remain accepted as aliases. */
|
|
53
53
|
export type SpeechVoice = AssistantVoice | (string & {});
|
|
54
|
+
/** Voice tuning, each field optional: `stability`, `similarityBoost` and `style` (style exaggeration) from 0 to 1,
|
|
55
|
+
* `speed` from 0.7 to 1.2 (synthesis only; voice change ignores it), `useSpeakerBoost` to stress the target voice.
|
|
56
|
+
* Synthesis with `eleven_v4` ignores `style`, `speed` and `useSpeakerBoost`. */
|
|
57
|
+
export type AiVoiceSettings = {
|
|
58
|
+
stability?: number;
|
|
59
|
+
similarityBoost?: number;
|
|
60
|
+
style?: number;
|
|
61
|
+
speed?: number;
|
|
62
|
+
useSpeakerBoost?: boolean;
|
|
63
|
+
};
|
|
54
64
|
/** `model` absent: Nocha's default speech model. `voice` absent: that model's default voice; a listed voice
|
|
55
65
|
* other than a historical name is sent with the `model` it was listed for. `language` is BCP-47 (`fr`, `en-GB`,
|
|
56
66
|
* `pt-BR`); absent, it is detected from the text. */
|
|
@@ -60,6 +70,7 @@ export type AiSpeechInput = AiPolicyInput & {
|
|
|
60
70
|
model?: string;
|
|
61
71
|
voice?: SpeechVoice;
|
|
62
72
|
language?: string;
|
|
73
|
+
voiceSettings?: AiVoiceSettings;
|
|
63
74
|
};
|
|
64
75
|
/** Speech to text. `audioDataUrl` is a base64 `audio/wav|mp4|webm|ogg|mpeg` data URL of at most 4 MiB, for example a bounded recording made from `device.media.getUserMedia()`. Alternatively pass one authorized stored audio asset in `inputAssetIds`. `prompt` is an optional vocabulary hint. */
|
|
65
76
|
export type AiTranscriptionInput = AiPolicyInput & {
|
|
@@ -73,17 +84,26 @@ export type AiTranscriptionInput = AiPolicyInput & {
|
|
|
73
84
|
inputAssetIds: [string];
|
|
74
85
|
audioDataUrl?: never;
|
|
75
86
|
});
|
|
87
|
+
/** One track (60 s by default). Without `model`, the experience's generation policy picks the model (else Nocha's
|
|
88
|
+
* default). `model: 'music_v2_5'` (Eleven Music) composes 3 to 300 s of MP3 with vocals unless `instrumental: true`
|
|
89
|
+
* (then no `lyrics`); `bpm`, `keyScale`, `timeSignature` and `vocalLanguage` guide it, `seed` is ignored;
|
|
90
|
+
* `inputAssetIds` names one stored audio asset of 1 to 30 s that the track takes its feel, groove and sound from,
|
|
91
|
+
* billed with the track. `model: 'runware:ace-step@v1.5-xl-turbo'` (ACE-Step: 30 to 300 s, `outputFormat` wav, flac
|
|
92
|
+
* or ogg too, `seed`) takes no reference. */
|
|
76
93
|
export type AiMusicInput = AiPolicyInput & {
|
|
77
94
|
need: 'audio.generate';
|
|
78
95
|
prompt: string;
|
|
79
96
|
durationSeconds?: number;
|
|
80
97
|
lyrics?: string;
|
|
98
|
+
instrumental?: boolean;
|
|
81
99
|
seed?: number;
|
|
82
100
|
bpm?: number;
|
|
83
101
|
vocalLanguage?: string;
|
|
84
102
|
keyScale?: string;
|
|
85
103
|
timeSignature?: 2 | 3 | 4 | 6;
|
|
86
104
|
outputFormat?: 'mp3' | 'wav' | 'flac' | 'ogg';
|
|
105
|
+
model?: string;
|
|
106
|
+
inputAssetIds?: [string];
|
|
87
107
|
};
|
|
88
108
|
export type AiImageInput = (ImageInput & {
|
|
89
109
|
need: 'image.generate';
|
|
@@ -119,8 +139,25 @@ export type AiMediaTransformInput = AiBudgetInput & {
|
|
|
119
139
|
durationSeconds?: number;
|
|
120
140
|
mode?: 'start' | 'end';
|
|
121
141
|
};
|
|
142
|
+
/** Voice change: one recording of 1 to 300 seconds spoken again in `voice`, an id from `ai.voices` (any model's)
|
|
143
|
+
* or a historical name. Same single source as transcription: `audioDataUrl`, or one authorized stored audio asset.
|
|
144
|
+
* `model` absent: the default voice change model. Billed on the measured recording length, rounded up to the second
|
|
145
|
+
* (the result's `duration_seconds`); the result is one MP3 asset. */
|
|
146
|
+
export type AiVoiceChangeInput = AiBudgetInput & {
|
|
147
|
+
need: 'audio.voice_change';
|
|
148
|
+
voice: SpeechVoice;
|
|
149
|
+
model?: string;
|
|
150
|
+
voiceSettings?: AiVoiceSettings;
|
|
151
|
+
removeBackgroundNoise?: boolean;
|
|
152
|
+
} & ({
|
|
153
|
+
audioDataUrl: string;
|
|
154
|
+
inputAssetIds?: never;
|
|
155
|
+
} | {
|
|
156
|
+
inputAssetIds: [string];
|
|
157
|
+
audioDataUrl?: never;
|
|
158
|
+
});
|
|
122
159
|
/** One input shape per need; `need` is always explicit. */
|
|
123
|
-
export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput;
|
|
160
|
+
export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput | AiVoiceChangeInput;
|
|
124
161
|
type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
125
162
|
/** Prices a recording length before recording. Its quote cannot be consumed by `generate`, which always sends the recording. */
|
|
126
163
|
export type AiTranscriptionEstimateInput = Omit<AiTranscriptionInput, 'quoteId' | 'audioDataUrl' | 'inputAssetIds'> & {
|
|
@@ -313,6 +350,7 @@ export type AiVoicesInput = {
|
|
|
313
350
|
cursor?: string;
|
|
314
351
|
limit?: number;
|
|
315
352
|
};
|
|
353
|
+
/** `price_multiplier`: a library voice billed at that multiple of the model's tariff; absent, 1. */
|
|
316
354
|
export type AiVoice = {
|
|
317
355
|
id: string;
|
|
318
356
|
name: string;
|
|
@@ -323,6 +361,7 @@ export type AiVoice = {
|
|
|
323
361
|
languages: string[];
|
|
324
362
|
collection: 'standard' | 'library';
|
|
325
363
|
alias?: AssistantVoice;
|
|
364
|
+
price_multiplier?: number;
|
|
326
365
|
};
|
|
327
366
|
export type AiVoices = {
|
|
328
367
|
model: string;
|
|
@@ -16,6 +16,6 @@ export type NochaAi = {
|
|
|
16
16
|
get(input: AiGetInput, options?: RequestOptions): Promise<AiGenerationOperation>;
|
|
17
17
|
/** Speech models selectable with `model` in `audio.synthesize`. */
|
|
18
18
|
models(input: AiModelsInput, options?: RequestOptions): Promise<AiModels>;
|
|
19
|
-
/** Voices selectable with `voice` in `audio.synthesize`, one page at a time. */
|
|
19
|
+
/** Voices selectable with `voice` in `audio.synthesize` and `audio.voice_change`, one page at a time. */
|
|
20
20
|
voices(input: AiVoicesInput, options?: RequestOptions): Promise<AiVoices>;
|
|
21
21
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
// Generated by npm run references:generate -w nocha; do not edit.
|
|
2
2
|
export type UploadableImageType = 'image/jpeg' | 'image/png' | 'image/webp';
|
|
3
|
-
/** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them
|
|
3
|
+
/** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them,
|
|
4
|
+
* `media` reads them back as a `Blob`. */
|
|
4
5
|
export type UploadableVideoType = 'video/mp4' | 'video/quicktime';
|
|
6
|
+
/** Audio files `assets.upload` stores, such as the `soundtrack` reference of a video workflow; `read` returns them. */
|
|
7
|
+
export type UploadableAudioType = 'audio/mpeg' | 'audio/wav';
|
|
5
8
|
export type ReadableAssetType = UploadableImageType | 'audio/mpeg' | 'audio/wav' | 'audio/flac' | 'audio/ogg';
|
|
9
|
+
/** Types of the `Blob` `assets.media` returns: a readable image or audio file, or a video sent with `assets.upload`. */
|
|
10
|
+
export type AssetMediaType = ReadableAssetType | UploadableVideoType;
|
|
11
|
+
export declare const assetMediaTypes: readonly ["image/jpeg", "image/png", "image/webp", "audio/mpeg", "audio/wav", "audio/flac", "audio/ogg", "video/mp4", "video/quicktime"];
|
|
12
|
+
/** Largest file `assets.media` returns: the 64 MiB `assets.upload` takes. */
|
|
13
|
+
export declare const ASSET_MEDIA_MAX_BYTES: number;
|
|
6
14
|
/** Bytes of a stored image or audio asset; `data_url` is ready for an `<img>` or `<audio>` source. */
|
|
7
15
|
export type ReadAssetResult = {
|
|
8
16
|
id: string;
|
|
@@ -6,7 +6,7 @@ export type AssetUploadInput = {
|
|
|
6
6
|
file: Blob;
|
|
7
7
|
filename?: string;
|
|
8
8
|
};
|
|
9
|
-
/** `onProgress` reports the bytes the host has sent, for a video only. */
|
|
9
|
+
/** `onProgress` reports the bytes the host has sent, for a video or an audio file only. */
|
|
10
10
|
export type AssetUploadOptions = RequestOptions & {
|
|
11
11
|
onProgress?: (progress: {
|
|
12
12
|
loaded: number;
|
|
@@ -24,15 +24,32 @@ export type AttachmentUploadOptions = RequestOptions & {
|
|
|
24
24
|
total: number;
|
|
25
25
|
}) => void;
|
|
26
26
|
};
|
|
27
|
+
/** Bytes received by the host; `total` is null until the host knows the file size. */
|
|
28
|
+
export type AssetMediaProgress = {
|
|
29
|
+
loaded: number;
|
|
30
|
+
total: number | null;
|
|
31
|
+
};
|
|
32
|
+
/** Aborting `signal` or reaching `timeoutMs` (10 minutes by default) stops the host read; hosts stop it after 15 minutes. */
|
|
33
|
+
export type AssetMediaOptions = Pick<RequestOptions, 'signal' | 'timeoutMs'> & {
|
|
34
|
+
onProgress?: (progress: AssetMediaProgress) => void;
|
|
35
|
+
};
|
|
27
36
|
export type NochaAssets = {
|
|
28
37
|
/** Reads an asset this participant may see. Store asset ids, never base64 or data URLs. */
|
|
29
38
|
read(input: {
|
|
30
39
|
assetId: string;
|
|
31
40
|
}, options?: RequestOptions): Promise<ReadAssetResult>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
41
|
+
/** Reads the same assets as `read`, and the MP4 or QuickTime videos this participant sent with `assets.upload` under this
|
|
42
|
+
* usage, as a `Blob` of at most 64 MiB (`AssetMediaType`). The usage declares `assets.read`; a generated film goes through
|
|
43
|
+
* `video.media`. The host reads the file with its own identity: no address reaches the frame. Show it through
|
|
44
|
+
* `URL.createObjectURL(blob)` and revoke the URL after use. An older host rejects with `media_unsupported_host`. */
|
|
45
|
+
media(input: {
|
|
46
|
+
assetId: string;
|
|
47
|
+
}, options?: AssetMediaOptions): Promise<Blob>;
|
|
48
|
+
/** Uploads a JPEG, PNG or WebP image (12 MiB at most), or an MP4 or QuickTime video or an MP3 (`audio/mpeg`) or WAV
|
|
49
|
+
* (`audio/wav`) audio file (64 MiB at most) sent through the host's binary transport, such as the `source_video` or
|
|
50
|
+
* `soundtrack` reference of a video workflow. The host checks the content against the type. The asset follows the media
|
|
51
|
+
* usage's retention (`durable` keeps it) and stays readable by its author only; `read` returns images and audio, `media`
|
|
52
|
+
* a video too. Persist the `idempotencyKey` before a video or audio upload and reuse it after a lost reply. */
|
|
36
53
|
upload(input: AssetUploadInput, options?: AssetUploadOptions): Promise<UploadedAsset>;
|
|
37
54
|
/** Uploads a workspace attachment through the host's binary transport; the host checks the workspace contribution right. */
|
|
38
55
|
uploadAttachment(input: AttachmentUploadInput, options?: AttachmentUploadOptions): Promise<UploadedAsset>;
|
|
@@ -26,14 +26,15 @@ export type EffectiveVideoProperties = TripirlEffectiveVideoProperties & {
|
|
|
26
26
|
* (`VideoGeneration`) is one concrete run of a workflow. Results keep the wire format; an enumeration value this SDK
|
|
27
27
|
* does not know is reported as `null` (or dropped from a list), never as an invalid result.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
/** `analysis`: the source-video analysis (`analyse-video`), whose result is text, never a film. */
|
|
30
|
+
export type VideoWorkflowFamily = 'classic' | 'narrative' | 'image_loop' | 'analysis';
|
|
30
31
|
export type VideoSpeechMode = 'none' | 'auto' | 'required';
|
|
31
32
|
export type VideoAspectRatio = '9:16' | '16:9' | '1:1';
|
|
32
33
|
/** Every spoken language a workflow may publish (`VideoWorkflow.locales` is the subset that workflow renders). */
|
|
33
34
|
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"];
|
|
34
35
|
export type VideoLocale = typeof videoLocales[number];
|
|
35
36
|
export type VideoOutputResolution = '720p' | '1080p';
|
|
36
|
-
export type VideoGenerationKind = 'film' | 'image_loop';
|
|
37
|
+
export type VideoGenerationKind = 'film' | 'image_loop' | 'analysis';
|
|
37
38
|
export type VideoGenerationStatus = 'queued' | 'running' | 'cancelling' | 'succeeded' | 'failed' | 'cancelled';
|
|
38
39
|
export type VideoGenerationStage = 'preparing' | 'planning' | 'generating_speech' | 'generating_media' | 'assembling';
|
|
39
40
|
export type VideoGenerationFailure = {
|
|
@@ -41,6 +42,25 @@ export type VideoGenerationFailure = {
|
|
|
41
42
|
message: string;
|
|
42
43
|
retryable: boolean;
|
|
43
44
|
};
|
|
45
|
+
/** Why a failed film can resume (the first six) or cannot (the last four). */
|
|
46
|
+
export type VideoGenerationResumeReason = 'interrupted' | 'inputs_changed' | 'provider_unavailable' | 'storage_full' | 'paid_work_retained' | 'retryable_failure' | 'final_failure' | 'budget_exhausted' | 'workflow_taken_over' | 'media_expired';
|
|
47
|
+
/**
|
|
48
|
+
* A failed film's resume, as `video.retry` would run it: each step `keep` (done, not run again), `redo` or `run`
|
|
49
|
+
* (not run yet), and whether it may cost (`paid`). `estimated_microcredits` is the most the retry may spend: "0" when
|
|
50
|
+
* it buys nothing again, else what is left of the confirmed maximum; null once the film continues in its Tripirl
|
|
51
|
+
* workflow. `retry` still confirms the original `estimated_maximum_microcredits`: the cap is cumulative.
|
|
52
|
+
*/
|
|
53
|
+
export type VideoGenerationResume = {
|
|
54
|
+
available: boolean;
|
|
55
|
+
reason: VideoGenerationResumeReason | null;
|
|
56
|
+
steps: {
|
|
57
|
+
id: string;
|
|
58
|
+
action: 'keep' | 'redo' | 'run';
|
|
59
|
+
paid: boolean;
|
|
60
|
+
}[];
|
|
61
|
+
estimated_microcredits: Microcredits | null;
|
|
62
|
+
remaining_microcredits: Microcredits;
|
|
63
|
+
};
|
|
44
64
|
export type VideoParameterScalar = string | number | boolean;
|
|
45
65
|
export type VideoRenderRoute = {
|
|
46
66
|
provider: string;
|
|
@@ -124,6 +144,18 @@ export type VideoWorkflowStep = {
|
|
|
124
144
|
restartable?: boolean;
|
|
125
145
|
properties?: VideoPropertyDefinition[];
|
|
126
146
|
};
|
|
147
|
+
/** A module role of a workflow (`start_frame`, `end_frame`, `source_video`, `soundtrack`, `voice`): a request sends from `min` to
|
|
148
|
+
* `max` references of it. Several files of an audio role play in the order sent as one track: `gap_seconds` of silence
|
|
149
|
+
* between two (the voices, back to back), or `crossfade_seconds` of cross-fade from one into the next (the music, the last
|
|
150
|
+
* one fading out); `null` for an image or a video. */
|
|
151
|
+
export type VideoWorkflowReferenceRole = {
|
|
152
|
+
role: string;
|
|
153
|
+
media: 'image' | 'video' | 'audio';
|
|
154
|
+
min: number;
|
|
155
|
+
max: number;
|
|
156
|
+
gap_seconds: number | null;
|
|
157
|
+
crossfade_seconds: number | null;
|
|
158
|
+
};
|
|
127
159
|
/** A circuit format a generation can run, with what it accepts. Read it with `video.workflows` or `video.workflow`. */
|
|
128
160
|
export type VideoWorkflow = {
|
|
129
161
|
id: string;
|
|
@@ -156,12 +188,16 @@ export type VideoWorkflow = {
|
|
|
156
188
|
mode: VideoSpeechMode;
|
|
157
189
|
durations_seconds: number[] | null;
|
|
158
190
|
}[];
|
|
159
|
-
/** `mime_types` lists the accepted types; a video type (`video/mp4`, `video/quicktime`) admits
|
|
191
|
+
/** `mime_types` lists the accepted types; a video type (`video/mp4`, `video/quicktime`) admits the `source_video` reference,
|
|
192
|
+
* an audio type (`audio/mpeg`, `audio/wav`) the audio roles' files. `roles` bounds each module role the workflow reads;
|
|
193
|
+
* `max` counts every reference, the audio files taking no image slot: the images take at most `max` minus the audio
|
|
194
|
+
* roles' `max`. An older host publishes no `roles` (`[]`): one `soundtrack` and one `voice` at most. */
|
|
160
195
|
references: {
|
|
161
196
|
min: number;
|
|
162
197
|
max: number;
|
|
163
198
|
mime_types: string[];
|
|
164
199
|
requires_non_character: boolean;
|
|
200
|
+
roles: VideoWorkflowReferenceRole[];
|
|
165
201
|
};
|
|
166
202
|
/** True when `referencePreparation: 'auto'` is accepted. */
|
|
167
203
|
reference_preparation: boolean;
|
|
@@ -188,22 +224,37 @@ export type VideoWorkflowsRequest = {
|
|
|
188
224
|
family?: VideoWorkflowFamily;
|
|
189
225
|
};
|
|
190
226
|
/** Roles Tripirl workflows read: `character` (`name` and `description` say who it shows, or whom it replaces in a source
|
|
191
|
-
* video), `location` and `style` (the set and the look),
|
|
192
|
-
* `assets.upload`) that a workflow listing a video type in `references.mime_types` edits
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
* `
|
|
196
|
-
*
|
|
227
|
+
* video), `location` and `style` (the set and the look), `source_video`, the one MP4 or QuickTime video (stored by
|
|
228
|
+
* `assets.upload`) that a workflow listing a video type in `references.mime_types` edits, `soundtrack`, the MP3 or WAV
|
|
229
|
+
* audio files (stored by `assets.upload`, 64 MiB and 1 s to 10 minutes each) that a workflow listing it in
|
|
230
|
+
* `references.roles` lays under the film, and `voice`, those a music + voice workflow has its characters say. Each role
|
|
231
|
+
* 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
|
|
232
|
+
* its offset in the film, cut to the clip; a longer track is truncated, a shorter one ends in silence. Any other role is
|
|
233
|
+
* relayed as written. */
|
|
234
|
+
export type VideoReferenceRole = 'character' | 'location' | 'style' | 'source_video' | 'soundtrack' | 'voice';
|
|
235
|
+
/** One reference: an asset available to the participant, or a prepared Studio reference of this revision. Images, one
|
|
236
|
+
* `source_video` video, or the `soundtrack` and `voice` audio files. A reference without a `role` is not a `character`; a
|
|
237
|
+
* `source_video` or an audio file is neither a character nor a place, so it never satisfies `requires_non_character`. A
|
|
238
|
+
* video must take the role `source_video` and an audio file the role `soundtrack` or `voice`. */
|
|
197
239
|
export type VideoReferenceInput = {
|
|
198
240
|
assetId: string;
|
|
199
241
|
role?: VideoReferenceRole | (string & {});
|
|
200
242
|
name?: string;
|
|
201
243
|
description?: string;
|
|
244
|
+
replaces?: VideoReferenceReplaces;
|
|
202
245
|
} | {
|
|
203
246
|
studioReferenceId: string;
|
|
204
247
|
role?: VideoReferenceRole | (string & {});
|
|
205
248
|
name?: string;
|
|
206
249
|
description?: string;
|
|
250
|
+
replaces?: VideoReferenceReplaces;
|
|
251
|
+
};
|
|
252
|
+
/** 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
|
|
253
|
+
* analysis (`p1`, `l1`, `o1`: `/^[plo][1-9]\d{0,2}$/`) and/or a description (1,000 characters at most). Absent, the
|
|
254
|
+
* edit infers it and reports it in `edit_plan`. Workflows without a source video ignore it. */
|
|
255
|
+
export type VideoReferenceReplaces = {
|
|
256
|
+
subjectId?: string;
|
|
257
|
+
description?: string;
|
|
207
258
|
};
|
|
208
259
|
export type VideoRequest = {
|
|
209
260
|
workflow: VideoWorkflowRef;
|
|
@@ -223,10 +274,16 @@ export type VideoRequest = {
|
|
|
223
274
|
parameters?: VideoParameterValues;
|
|
224
275
|
/** Public module properties keyed by step, such as `{ clips: { resolution: '1080p' } }`. */
|
|
225
276
|
properties?: VideoProperties;
|
|
226
|
-
/** Within the workflow's `references` bounds
|
|
277
|
+
/** Within the workflow's `references` bounds and roles (twenty at most: eight images, then the audio files, in the order
|
|
278
|
+
* each role plays them); roles in `VideoReferenceRole`. */
|
|
227
279
|
references?: VideoReferenceInput[];
|
|
228
|
-
/** Workflows with `reference_preparation`: prepare the references before writing the film.
|
|
280
|
+
/** Workflows with `reference_preparation`: prepare the references before writing the film. A video edit prepares
|
|
281
|
+
* each character's visual sheet (cut-out and four views) by default; `properties.worldReferences.mode` set to a
|
|
282
|
+
* value its `worldReferences` step publishes other than `auto` sends the raw images instead. */
|
|
229
283
|
referencePreparation?: 'auto';
|
|
284
|
+
/** A video edit: a succeeded `analyse-video` generation of the same participant and the same source video (same
|
|
285
|
+
* SHA-256), reused instead of a new analysis. Absent, the edit analyses its source itself. */
|
|
286
|
+
sourceAnalysisId?: string;
|
|
230
287
|
effort?: GenerationEffort;
|
|
231
288
|
};
|
|
232
289
|
/** One push notification text. `{error}` in a `failed` body is replaced by the generation's error message. */
|
|
@@ -262,9 +319,12 @@ export type VideoRetryRequest = {
|
|
|
262
319
|
confirmedMaximumMicrocredits: Microcredits;
|
|
263
320
|
restartFrom?: string;
|
|
264
321
|
};
|
|
322
|
+
/** `workflow`: only your own generations of that workflow id (`analyse-video`, `edition-video`, a saved `fmt_…`), from
|
|
323
|
+
* 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. */
|
|
265
324
|
export type VideoListRequest = {
|
|
266
325
|
cursor?: string;
|
|
267
326
|
limit?: number;
|
|
327
|
+
workflow?: string;
|
|
268
328
|
};
|
|
269
329
|
/** The workflow a generation runs, frozen when Tripirl accepted it. */
|
|
270
330
|
export type VideoGenerationWorkflowRef = {
|
|
@@ -300,6 +360,96 @@ export type VideoGenerationResult = {
|
|
|
300
360
|
height?: number;
|
|
301
361
|
aspect_ratio?: VideoAspectRatio;
|
|
302
362
|
};
|
|
363
|
+
/** Ids inside one analysis: `p1…` people, `l1…` places, `o1…` objects; times in milliseconds from the source's start. */
|
|
364
|
+
export type VideoSourceAnalysis = {
|
|
365
|
+
duration_ms: number;
|
|
366
|
+
summary: string;
|
|
367
|
+
places: {
|
|
368
|
+
id: string;
|
|
369
|
+
label: string;
|
|
370
|
+
description: string;
|
|
371
|
+
}[];
|
|
372
|
+
people: {
|
|
373
|
+
id: string;
|
|
374
|
+
label: string;
|
|
375
|
+
description: string;
|
|
376
|
+
appearance: string;
|
|
377
|
+
appearances: {
|
|
378
|
+
start_ms: number;
|
|
379
|
+
end_ms: number;
|
|
380
|
+
}[];
|
|
381
|
+
speaks: boolean;
|
|
382
|
+
}[];
|
|
383
|
+
objects: {
|
|
384
|
+
id: string;
|
|
385
|
+
label: string;
|
|
386
|
+
description: string;
|
|
387
|
+
}[];
|
|
388
|
+
shots: {
|
|
389
|
+
start_ms: number;
|
|
390
|
+
end_ms: number;
|
|
391
|
+
camera: string;
|
|
392
|
+
action: string;
|
|
393
|
+
people: string[];
|
|
394
|
+
}[];
|
|
395
|
+
events: {
|
|
396
|
+
start_ms: number;
|
|
397
|
+
end_ms: number | null;
|
|
398
|
+
kind: string;
|
|
399
|
+
description: string;
|
|
400
|
+
people: string[];
|
|
401
|
+
}[];
|
|
402
|
+
transcript: {
|
|
403
|
+
start_ms: number;
|
|
404
|
+
end_ms: number;
|
|
405
|
+
speaker: string | null;
|
|
406
|
+
text: string;
|
|
407
|
+
}[];
|
|
408
|
+
audio: {
|
|
409
|
+
music: string | null;
|
|
410
|
+
ambience: string | null;
|
|
411
|
+
speech: string | null;
|
|
412
|
+
};
|
|
413
|
+
source: {
|
|
414
|
+
sha256: string;
|
|
415
|
+
width: number;
|
|
416
|
+
height: number;
|
|
417
|
+
fps: number | null;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
export type VideoAnalysisPerson = VideoSourceAnalysis['people'][number];
|
|
421
|
+
export type VideoAnalysisPlace = VideoSourceAnalysis['places'][number];
|
|
422
|
+
export type VideoAnalysisObject = VideoSourceAnalysis['objects'][number];
|
|
423
|
+
export type VideoAnalysisShot = VideoSourceAnalysis['shots'][number];
|
|
424
|
+
export type VideoAnalysisEvent = VideoSourceAnalysis['events'][number];
|
|
425
|
+
export type VideoAnalysisTranscriptLine = VideoSourceAnalysis['transcript'][number];
|
|
426
|
+
/** The result of an `analyse-video` generation (`kind: 'analysis'`). */
|
|
427
|
+
export type VideoAnalysisResult = {
|
|
428
|
+
kind: 'analysis';
|
|
429
|
+
analysis: VideoSourceAnalysis;
|
|
430
|
+
};
|
|
431
|
+
/** How a video edit mapped its references onto the source video. */
|
|
432
|
+
export type VideoEditPlan = {
|
|
433
|
+
source_analysis_id: string | null;
|
|
434
|
+
mappings: {
|
|
435
|
+
reference: {
|
|
436
|
+
asset_id: string;
|
|
437
|
+
role: string | null;
|
|
438
|
+
name: string | null;
|
|
439
|
+
};
|
|
440
|
+
replaces: {
|
|
441
|
+
subject_id: string | null;
|
|
442
|
+
description: string | null;
|
|
443
|
+
};
|
|
444
|
+
source: 'explicit' | 'inferred';
|
|
445
|
+
image_index: number | null;
|
|
446
|
+
visual_sheet: boolean;
|
|
447
|
+
}[];
|
|
448
|
+
warnings: string[];
|
|
449
|
+
};
|
|
450
|
+
/** One reference of a video edit's plan. `reference.asset_id` is the asset the generation reads (`references`), which
|
|
451
|
+
* may be the participant's copy of the asset sent. */
|
|
452
|
+
export type VideoEditMapping = VideoEditPlan['mappings'][number];
|
|
303
453
|
export type VideoGenerationRequest = {
|
|
304
454
|
workflow: VideoWorkflowRef;
|
|
305
455
|
goal: string;
|
|
@@ -311,6 +461,7 @@ export type VideoGenerationRequest = {
|
|
|
311
461
|
/** Requested values only. Absent on generations created before parameter snapshots. */
|
|
312
462
|
parameters?: VideoParameterValues;
|
|
313
463
|
reference_preparation?: 'auto';
|
|
464
|
+
source_analysis_id?: string;
|
|
314
465
|
properties?: VideoProperties;
|
|
315
466
|
effort?: GenerationEffort | null;
|
|
316
467
|
collection_id: string | null;
|
|
@@ -335,6 +486,10 @@ export type VideoGenerationReference = {
|
|
|
335
486
|
role?: string;
|
|
336
487
|
name?: string;
|
|
337
488
|
description?: string;
|
|
489
|
+
replaces?: {
|
|
490
|
+
subject_id?: string;
|
|
491
|
+
description?: string;
|
|
492
|
+
};
|
|
338
493
|
availability: 'available' | 'expired' | 'pending' | null;
|
|
339
494
|
};
|
|
340
495
|
export type VideoGenerationOrigin = {
|
|
@@ -421,7 +576,12 @@ export type VideoGeneration = {
|
|
|
421
576
|
};
|
|
422
577
|
actual_duration_seconds: number | null;
|
|
423
578
|
error: VideoGenerationFailure | null;
|
|
424
|
-
|
|
579
|
+
/** A failed film's resume, from SDK 6.10 hosts: null for any other generation, absent from older hosts. */
|
|
580
|
+
resume?: VideoGenerationResume | null;
|
|
581
|
+
/** A film, or the text analysis of an `analyse-video` generation (`kind: 'analysis'`, from SDK 6.13 hosts). */
|
|
582
|
+
result: VideoGenerationResult | VideoAnalysisResult | null;
|
|
583
|
+
/** A video edit's mapping of its references, from SDK 6.13 hosts; absent otherwise. */
|
|
584
|
+
edit_plan?: VideoEditPlan | null;
|
|
425
585
|
created_at: string;
|
|
426
586
|
updated_at: string;
|
|
427
587
|
};
|
|
@@ -434,7 +594,8 @@ export type VideoSharedGeneration = {
|
|
|
434
594
|
status: 'succeeded';
|
|
435
595
|
created_at: string;
|
|
436
596
|
updated_at: string;
|
|
437
|
-
|
|
597
|
+
/** The film, or the text analysis of a shared `analyse-video` generation (from SDK 6.13 hosts). */
|
|
598
|
+
result: VideoGenerationResult | VideoAnalysisResult;
|
|
438
599
|
};
|
|
439
600
|
export type VideoReadableGeneration = VideoGeneration | VideoSharedGeneration;
|
|
440
601
|
export type VideoGenerationList = {
|