@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
|
@@ -42,11 +42,26 @@ type WithSchema<T> = T extends {
|
|
|
42
42
|
strict: true;
|
|
43
43
|
};
|
|
44
44
|
} : Omit<T, 'schema' | 'schema_name' | 'voice'>;
|
|
45
|
+
/** Voice tuning keeps snake_case inside, as the API reads it. */
|
|
46
|
+
type VoiceSettingsWire = {
|
|
47
|
+
stability?: number;
|
|
48
|
+
similarity_boost?: number;
|
|
49
|
+
style?: number;
|
|
50
|
+
speed?: number;
|
|
51
|
+
use_speaker_boost?: boolean;
|
|
52
|
+
};
|
|
45
53
|
type WithVoice<T, Original> = Original extends {
|
|
46
54
|
need: 'audio.synthesize';
|
|
47
|
-
} ? T & {
|
|
55
|
+
} ? Omit<T, 'voice_settings'> & {
|
|
48
56
|
voice_id?: string;
|
|
49
57
|
model?: string;
|
|
58
|
+
voice_settings?: VoiceSettingsWire;
|
|
59
|
+
} : Original extends {
|
|
60
|
+
need: 'audio.voice_change';
|
|
61
|
+
} ? Omit<T, 'voice_settings'> & {
|
|
62
|
+
voice_id: string;
|
|
63
|
+
model?: string;
|
|
64
|
+
voice_settings?: VoiceSettingsWire;
|
|
50
65
|
} : T;
|
|
51
66
|
type GenerateWire<T> = T extends {
|
|
52
67
|
need: string;
|
|
@@ -56,16 +71,22 @@ export type AiGenerateWireInput = GenerateWire<GenerateBase>;
|
|
|
56
71
|
type VideoApi = {
|
|
57
72
|
api: 2;
|
|
58
73
|
};
|
|
74
|
+
type VideoReplacesWire = {
|
|
75
|
+
subject_id?: string;
|
|
76
|
+
description?: string;
|
|
77
|
+
};
|
|
59
78
|
export type VideoReferenceWire = {
|
|
60
79
|
asset_id: string;
|
|
61
80
|
role?: string;
|
|
62
81
|
name?: string;
|
|
63
82
|
description?: string;
|
|
83
|
+
replaces?: VideoReplacesWire;
|
|
64
84
|
} | {
|
|
65
85
|
studio_reference_id: string;
|
|
66
86
|
role?: string;
|
|
67
87
|
name?: string;
|
|
68
88
|
description?: string;
|
|
89
|
+
replaces?: VideoReplacesWire;
|
|
69
90
|
};
|
|
70
91
|
export type VideoRequestWire = VideoApi & {
|
|
71
92
|
workflow: Video.VideoWorkflowRef;
|
|
@@ -78,6 +99,7 @@ export type VideoRequestWire = VideoApi & {
|
|
|
78
99
|
properties?: Video.VideoProperties;
|
|
79
100
|
references?: VideoReferenceWire[];
|
|
80
101
|
reference_preparation?: 'auto';
|
|
102
|
+
source_analysis_id?: string;
|
|
81
103
|
effort?: AI.GenerationEffort;
|
|
82
104
|
};
|
|
83
105
|
export type VideoCreateWire = VideoRequestWire & Ceiling & {
|
|
@@ -147,8 +169,10 @@ export type CapabilityWireTypes = {
|
|
|
147
169
|
'ai.voice.state': Pair<{
|
|
148
170
|
callId?: string;
|
|
149
171
|
}, Voice.VoiceCallState>;
|
|
172
|
+
/** `transport: 'binary'` is the `assets.media` host relay only: it answers a read grant the host keeps, never the bytes. */
|
|
150
173
|
'assets.read': Pair<{
|
|
151
174
|
asset_id: string;
|
|
175
|
+
transport?: 'binary';
|
|
152
176
|
} | {
|
|
153
177
|
path: string;
|
|
154
178
|
}, Omit<Assets.ReadAssetResult, 'data_url'> | {
|
|
@@ -182,7 +206,9 @@ export type CapabilityWireTypes = {
|
|
|
182
206
|
'video.workflow': Pair<Video.VideoWorkflowRef, Video.VideoWorkflow>;
|
|
183
207
|
'video.estimate': Pair<VideoRequestWire, Video.VideoEstimate>;
|
|
184
208
|
'video.create': Pair<VideoCreateWire, Video.VideoGeneration>;
|
|
185
|
-
'video.list': Pair<VideoApi & Page
|
|
209
|
+
'video.list': Pair<VideoApi & Page & {
|
|
210
|
+
workflow?: string;
|
|
211
|
+
}, Video.VideoGenerationList>;
|
|
186
212
|
'video.get': Pair<VideoApi & Id, Video.VideoReadableGeneration>;
|
|
187
213
|
'video.retry': Pair<VideoApi & Id & Ceiling & {
|
|
188
214
|
restart_from?: string;
|
|
@@ -315,5 +341,7 @@ export type CapabilityWireTypes = {
|
|
|
315
341
|
'inbox.list': Pair<Host.InboxListInput, Host.InboxListResult>;
|
|
316
342
|
'inbox.ack': Pair<Host.InboxAckInput, Host.InboxAckResult>;
|
|
317
343
|
'email.send': Pair<Host.EmailSendInput, Host.EmailSendResult>;
|
|
344
|
+
'drive.save': Pair<Host.DriveSaveWireInput, Host.DriveSaveResult>;
|
|
345
|
+
'drive.pick': Pair<Host.DrivePickWireInput, Host.DrivePickWireResult>;
|
|
318
346
|
};
|
|
319
347
|
export {};
|
|
@@ -21,6 +21,7 @@ export { videoLocales } from './types/video-sdk-wire.js';
|
|
|
21
21
|
export type * from './types/video-wire.js';
|
|
22
22
|
export { tripirlVideoStepIds as videoStepIds } from './types/video-wire.js';
|
|
23
23
|
export { readEffectiveVideoProperties, readVideoProperties, readVideoPropertyDefinition, videoStepIdPattern } from './video-properties.js';
|
|
24
|
+
export { readVideoAnalysisResult, readVideoEditPlan, readVideoReferenceReplaces, readVideoSourceAnalysis } from './video-analysis.js';
|
|
24
25
|
/** Iframe transport between an experience and its Nocha host. */
|
|
25
26
|
export declare const NOCHA_BRIDGE_PROTOCOL: "nocha.bridge.v4";
|
|
26
27
|
export type BridgeRequest = {
|
|
@@ -58,10 +59,10 @@ export type BridgeEvent = {
|
|
|
58
59
|
sequence?: number;
|
|
59
60
|
};
|
|
60
61
|
/** Availability is descriptive. Every call is still authorized by the host. */
|
|
61
|
-
export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
62
|
+
export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
|
|
62
63
|
export type ExperienceCapability = typeof experienceCapabilities[number];
|
|
63
|
-
export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
64
|
-
export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
64
|
+
export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
|
|
65
|
+
export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
|
|
65
66
|
export declare const assistantVoices: readonly ["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"];
|
|
66
67
|
export type AssistantVoice = typeof assistantVoices[number];
|
|
67
68
|
export * from './capability-needs.js';
|
|
@@ -375,4 +376,7 @@ export type EmailSendResult = {
|
|
|
375
376
|
id: string;
|
|
376
377
|
status: 'queued' | 'sent' | 'duplicate';
|
|
377
378
|
};
|
|
379
|
+
export type * from './drive-types.js';
|
|
380
|
+
export { DRIVE_TRANSFER_MAX_BYTES, DRIVE_FOLDER_MAX_DEPTH } from './drive-types.js';
|
|
381
|
+
export { ASSET_MEDIA_MAX_BYTES, assetMediaTypes } from './types/assets-wire.js';
|
|
378
382
|
export type * from './automations-types.js';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ASSET_MEDIA_MAX_BYTES,
|
|
2
3
|
DEVICE_HAPTIC_PATTERNS_PER_SECOND,
|
|
3
4
|
DEVICE_HAPTIC_PATTERN_MAX_DELAY_MS,
|
|
4
5
|
DEVICE_HAPTIC_PATTERN_MAX_DURATION_MS,
|
|
5
6
|
DEVICE_HAPTIC_PATTERN_MAX_STEPS,
|
|
6
7
|
DEVICE_HAPTIC_PATTERN_MIN_INTERVAL_MS,
|
|
8
|
+
DRIVE_FOLDER_MAX_DEPTH,
|
|
9
|
+
DRIVE_TRANSFER_MAX_BYTES,
|
|
7
10
|
EXPERIENCE_BACKEND_PROFILE,
|
|
8
11
|
EXPERIENCE_BACKEND_RUNNER_ABI,
|
|
9
12
|
NOCHA_BRIDGE_PROTOCOL,
|
|
@@ -12,6 +15,7 @@ import {
|
|
|
12
15
|
aiGenerateNeeds,
|
|
13
16
|
aiOperationDefinitions,
|
|
14
17
|
allCapabilityNeeds,
|
|
18
|
+
assetMediaTypes,
|
|
15
19
|
assetsOperationDefinitions,
|
|
16
20
|
assistantVoices,
|
|
17
21
|
automationsOperationDefinitions,
|
|
@@ -26,6 +30,7 @@ import {
|
|
|
26
30
|
databaseOperations,
|
|
27
31
|
deviceHapticStyles,
|
|
28
32
|
deviceOperationDefinitions,
|
|
33
|
+
driveOperationDefinitions,
|
|
29
34
|
emailOperationDefinitions,
|
|
30
35
|
experienceBackendErrorCodes,
|
|
31
36
|
experienceCapabilities,
|
|
@@ -74,8 +79,12 @@ import {
|
|
|
74
79
|
publicControlScope,
|
|
75
80
|
publicReadEligible,
|
|
76
81
|
readEffectiveVideoProperties,
|
|
82
|
+
readVideoAnalysisResult,
|
|
83
|
+
readVideoEditPlan,
|
|
77
84
|
readVideoProperties,
|
|
78
85
|
readVideoPropertyDefinition,
|
|
86
|
+
readVideoReferenceReplaces,
|
|
87
|
+
readVideoSourceAnalysis,
|
|
79
88
|
stateOperations,
|
|
80
89
|
storageCapabilities,
|
|
81
90
|
storageOperationList,
|
|
@@ -88,13 +97,16 @@ import {
|
|
|
88
97
|
videoStepIdPattern,
|
|
89
98
|
videoWaitSchedule,
|
|
90
99
|
voiceCallNeeds
|
|
91
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EAC27UOG.js";
|
|
92
101
|
export {
|
|
102
|
+
ASSET_MEDIA_MAX_BYTES,
|
|
93
103
|
DEVICE_HAPTIC_PATTERNS_PER_SECOND,
|
|
94
104
|
DEVICE_HAPTIC_PATTERN_MAX_DELAY_MS,
|
|
95
105
|
DEVICE_HAPTIC_PATTERN_MAX_DURATION_MS,
|
|
96
106
|
DEVICE_HAPTIC_PATTERN_MAX_STEPS,
|
|
97
107
|
DEVICE_HAPTIC_PATTERN_MIN_INTERVAL_MS,
|
|
108
|
+
DRIVE_FOLDER_MAX_DEPTH,
|
|
109
|
+
DRIVE_TRANSFER_MAX_BYTES,
|
|
98
110
|
EXPERIENCE_BACKEND_PROFILE,
|
|
99
111
|
EXPERIENCE_BACKEND_RUNNER_ABI,
|
|
100
112
|
NOCHA_BRIDGE_PROTOCOL,
|
|
@@ -103,6 +115,7 @@ export {
|
|
|
103
115
|
aiGenerateNeeds,
|
|
104
116
|
aiOperationDefinitions,
|
|
105
117
|
allCapabilityNeeds,
|
|
118
|
+
assetMediaTypes,
|
|
106
119
|
assetsOperationDefinitions,
|
|
107
120
|
assistantVoices,
|
|
108
121
|
automationsOperationDefinitions,
|
|
@@ -117,6 +130,7 @@ export {
|
|
|
117
130
|
databaseOperations,
|
|
118
131
|
deviceHapticStyles,
|
|
119
132
|
deviceOperationDefinitions,
|
|
133
|
+
driveOperationDefinitions,
|
|
120
134
|
emailOperationDefinitions,
|
|
121
135
|
experienceBackendErrorCodes,
|
|
122
136
|
experienceCapabilities,
|
|
@@ -165,8 +179,12 @@ export {
|
|
|
165
179
|
publicControlScope,
|
|
166
180
|
publicReadEligible,
|
|
167
181
|
readEffectiveVideoProperties,
|
|
182
|
+
readVideoAnalysisResult,
|
|
183
|
+
readVideoEditPlan,
|
|
168
184
|
readVideoProperties,
|
|
169
185
|
readVideoPropertyDefinition,
|
|
186
|
+
readVideoReferenceReplaces,
|
|
187
|
+
readVideoSourceAnalysis,
|
|
170
188
|
stateOperations,
|
|
171
189
|
storageCapabilities,
|
|
172
190
|
storageOperationList,
|
|
@@ -50,6 +50,16 @@ export type AiResearchInput = AiPolicyInput & {
|
|
|
50
50
|
};
|
|
51
51
|
/** Opaque voice id from `ai.voices`; the historical names (alloy…cedar) remain accepted as aliases. */
|
|
52
52
|
export type SpeechVoice = AssistantVoice | (string & {});
|
|
53
|
+
/** Voice tuning, each field optional: `stability`, `similarityBoost` and `style` (style exaggeration) from 0 to 1,
|
|
54
|
+
* `speed` from 0.7 to 1.2 (synthesis only; voice change ignores it), `useSpeakerBoost` to stress the target voice.
|
|
55
|
+
* Synthesis with `eleven_v4` ignores `style`, `speed` and `useSpeakerBoost`. */
|
|
56
|
+
export type AiVoiceSettings = {
|
|
57
|
+
stability?: number;
|
|
58
|
+
similarityBoost?: number;
|
|
59
|
+
style?: number;
|
|
60
|
+
speed?: number;
|
|
61
|
+
useSpeakerBoost?: boolean;
|
|
62
|
+
};
|
|
53
63
|
/** `model` absent: Nocha's default speech model. `voice` absent: that model's default voice; a listed voice
|
|
54
64
|
* other than a historical name is sent with the `model` it was listed for. `language` is BCP-47 (`fr`, `en-GB`,
|
|
55
65
|
* `pt-BR`); absent, it is detected from the text. */
|
|
@@ -59,6 +69,7 @@ export type AiSpeechInput = AiPolicyInput & {
|
|
|
59
69
|
model?: string;
|
|
60
70
|
voice?: SpeechVoice;
|
|
61
71
|
language?: string;
|
|
72
|
+
voiceSettings?: AiVoiceSettings;
|
|
62
73
|
};
|
|
63
74
|
/** 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. */
|
|
64
75
|
export type AiTranscriptionInput = AiPolicyInput & {
|
|
@@ -72,17 +83,26 @@ export type AiTranscriptionInput = AiPolicyInput & {
|
|
|
72
83
|
inputAssetIds: [string];
|
|
73
84
|
audioDataUrl?: never;
|
|
74
85
|
});
|
|
86
|
+
/** One track (60 s by default). Without `model`, the experience's generation policy picks the model (else Nocha's
|
|
87
|
+
* default). `model: 'music_v2_5'` (Eleven Music) composes 3 to 300 s of MP3 with vocals unless `instrumental: true`
|
|
88
|
+
* (then no `lyrics`); `bpm`, `keyScale`, `timeSignature` and `vocalLanguage` guide it, `seed` is ignored;
|
|
89
|
+
* `inputAssetIds` names one stored audio asset of 1 to 30 s that the track takes its feel, groove and sound from,
|
|
90
|
+
* billed with the track. `model: 'runware:ace-step@v1.5-xl-turbo'` (ACE-Step: 30 to 300 s, `outputFormat` wav, flac
|
|
91
|
+
* or ogg too, `seed`) takes no reference. */
|
|
75
92
|
export type AiMusicInput = AiPolicyInput & {
|
|
76
93
|
need: 'audio.generate';
|
|
77
94
|
prompt: string;
|
|
78
95
|
durationSeconds?: number;
|
|
79
96
|
lyrics?: string;
|
|
97
|
+
instrumental?: boolean;
|
|
80
98
|
seed?: number;
|
|
81
99
|
bpm?: number;
|
|
82
100
|
vocalLanguage?: string;
|
|
83
101
|
keyScale?: string;
|
|
84
102
|
timeSignature?: 2 | 3 | 4 | 6;
|
|
85
103
|
outputFormat?: 'mp3' | 'wav' | 'flac' | 'ogg';
|
|
104
|
+
model?: string;
|
|
105
|
+
inputAssetIds?: [string];
|
|
86
106
|
};
|
|
87
107
|
export type AiImageInput = (ImageInput & {
|
|
88
108
|
need: 'image.generate';
|
|
@@ -118,8 +138,25 @@ export type AiMediaTransformInput = AiBudgetInput & {
|
|
|
118
138
|
durationSeconds?: number;
|
|
119
139
|
mode?: 'start' | 'end';
|
|
120
140
|
};
|
|
141
|
+
/** Voice change: one recording of 1 to 300 seconds spoken again in `voice`, an id from `ai.voices` (any model's)
|
|
142
|
+
* or a historical name. Same single source as transcription: `audioDataUrl`, or one authorized stored audio asset.
|
|
143
|
+
* `model` absent: the default voice change model. Billed on the measured recording length, rounded up to the second
|
|
144
|
+
* (the result's `duration_seconds`); the result is one MP3 asset. */
|
|
145
|
+
export type AiVoiceChangeInput = AiBudgetInput & {
|
|
146
|
+
need: 'audio.voice_change';
|
|
147
|
+
voice: SpeechVoice;
|
|
148
|
+
model?: string;
|
|
149
|
+
voiceSettings?: AiVoiceSettings;
|
|
150
|
+
removeBackgroundNoise?: boolean;
|
|
151
|
+
} & ({
|
|
152
|
+
audioDataUrl: string;
|
|
153
|
+
inputAssetIds?: never;
|
|
154
|
+
} | {
|
|
155
|
+
inputAssetIds: [string];
|
|
156
|
+
audioDataUrl?: never;
|
|
157
|
+
});
|
|
121
158
|
/** One input shape per need; `need` is always explicit. */
|
|
122
|
-
export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput;
|
|
159
|
+
export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput | AiVoiceChangeInput;
|
|
123
160
|
type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
124
161
|
/** Prices a recording length before recording. Its quote cannot be consumed by `generate`, which always sends the recording. */
|
|
125
162
|
export type AiTranscriptionEstimateInput = Omit<AiTranscriptionInput, 'quoteId' | 'audioDataUrl' | 'inputAssetIds'> & {
|
|
@@ -312,6 +349,7 @@ export type AiVoicesInput = {
|
|
|
312
349
|
cursor?: string;
|
|
313
350
|
limit?: number;
|
|
314
351
|
};
|
|
352
|
+
/** `price_multiplier`: a library voice billed at that multiple of the model's tariff; absent, 1. */
|
|
315
353
|
export type AiVoice = {
|
|
316
354
|
id: string;
|
|
317
355
|
name: string;
|
|
@@ -322,6 +360,7 @@ export type AiVoice = {
|
|
|
322
360
|
languages: string[];
|
|
323
361
|
collection: 'standard' | 'library';
|
|
324
362
|
alias?: AssistantVoice;
|
|
363
|
+
price_multiplier?: number;
|
|
325
364
|
};
|
|
326
365
|
export type AiVoices = {
|
|
327
366
|
model: string;
|
|
@@ -15,6 +15,6 @@ export type NochaAi = {
|
|
|
15
15
|
get(input: AiGetInput, options?: RequestOptions): Promise<AiGenerationOperation>;
|
|
16
16
|
/** Speech models selectable with `model` in `audio.synthesize`. */
|
|
17
17
|
models(input: AiModelsInput, options?: RequestOptions): Promise<AiModels>;
|
|
18
|
-
/** Voices selectable with `voice` in `audio.synthesize`, one page at a time. */
|
|
18
|
+
/** Voices selectable with `voice` in `audio.synthesize` and `audio.voice_change`, one page at a time. */
|
|
19
19
|
voices(input: AiVoicesInput, options?: RequestOptions): Promise<AiVoices>;
|
|
20
20
|
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export type UploadableImageType = 'image/jpeg' | 'image/png' | 'image/webp';
|
|
2
|
-
/** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them
|
|
2
|
+
/** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them,
|
|
3
|
+
* `media` reads them back as a `Blob`. */
|
|
3
4
|
export type UploadableVideoType = 'video/mp4' | 'video/quicktime';
|
|
5
|
+
/** Audio files `assets.upload` stores, such as the `soundtrack` reference of a video workflow; `read` returns them. */
|
|
6
|
+
export type UploadableAudioType = 'audio/mpeg' | 'audio/wav';
|
|
4
7
|
export type ReadableAssetType = UploadableImageType | 'audio/mpeg' | 'audio/wav' | 'audio/flac' | 'audio/ogg';
|
|
8
|
+
/** Types of the `Blob` `assets.media` returns: a readable image or audio file, or a video sent with `assets.upload`. */
|
|
9
|
+
export type AssetMediaType = ReadableAssetType | UploadableVideoType;
|
|
10
|
+
export declare const assetMediaTypes: readonly ["image/jpeg", "image/png", "image/webp", "audio/mpeg", "audio/wav", "audio/flac", "audio/ogg", "video/mp4", "video/quicktime"];
|
|
11
|
+
/** Largest file `assets.media` returns: the 64 MiB `assets.upload` takes. */
|
|
12
|
+
export declare const ASSET_MEDIA_MAX_BYTES: number;
|
|
5
13
|
/** Bytes of a stored image or audio asset; `data_url` is ready for an `<img>` or `<audio>` source. */
|
|
6
14
|
export type ReadAssetResult = {
|
|
7
15
|
id: string;
|
|
@@ -5,7 +5,7 @@ export type AssetUploadInput = {
|
|
|
5
5
|
file: Blob;
|
|
6
6
|
filename?: string;
|
|
7
7
|
};
|
|
8
|
-
/** `onProgress` reports the bytes the host has sent, for a video only. */
|
|
8
|
+
/** `onProgress` reports the bytes the host has sent, for a video or an audio file only. */
|
|
9
9
|
export type AssetUploadOptions = RequestOptions & {
|
|
10
10
|
onProgress?: (progress: {
|
|
11
11
|
loaded: number;
|
|
@@ -23,15 +23,32 @@ export type AttachmentUploadOptions = RequestOptions & {
|
|
|
23
23
|
total: number;
|
|
24
24
|
}) => void;
|
|
25
25
|
};
|
|
26
|
+
/** Bytes received by the host; `total` is null until the host knows the file size. */
|
|
27
|
+
export type AssetMediaProgress = {
|
|
28
|
+
loaded: number;
|
|
29
|
+
total: number | null;
|
|
30
|
+
};
|
|
31
|
+
/** Aborting `signal` or reaching `timeoutMs` (10 minutes by default) stops the host read; hosts stop it after 15 minutes. */
|
|
32
|
+
export type AssetMediaOptions = Pick<RequestOptions, 'signal' | 'timeoutMs'> & {
|
|
33
|
+
onProgress?: (progress: AssetMediaProgress) => void;
|
|
34
|
+
};
|
|
26
35
|
export type NochaAssets = {
|
|
27
36
|
/** Reads an asset this participant may see. Store asset ids, never base64 or data URLs. */
|
|
28
37
|
read(input: {
|
|
29
38
|
assetId: string;
|
|
30
39
|
}, options?: RequestOptions): Promise<ReadAssetResult>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
40
|
+
/** Reads the same assets as `read`, and the MP4 or QuickTime videos this participant sent with `assets.upload` under this
|
|
41
|
+
* usage, as a `Blob` of at most 64 MiB (`AssetMediaType`). The usage declares `assets.read`; a generated film goes through
|
|
42
|
+
* `video.media`. The host reads the file with its own identity: no address reaches the frame. Show it through
|
|
43
|
+
* `URL.createObjectURL(blob)` and revoke the URL after use. An older host rejects with `media_unsupported_host`. */
|
|
44
|
+
media(input: {
|
|
45
|
+
assetId: string;
|
|
46
|
+
}, options?: AssetMediaOptions): Promise<Blob>;
|
|
47
|
+
/** Uploads a JPEG, PNG or WebP image (12 MiB at most), or an MP4 or QuickTime video or an MP3 (`audio/mpeg`) or WAV
|
|
48
|
+
* (`audio/wav`) audio file (64 MiB at most) sent through the host's binary transport, such as the `source_video` or
|
|
49
|
+
* `soundtrack` reference of a video workflow. The host checks the content against the type. The asset follows the media
|
|
50
|
+
* usage's retention (`durable` keeps it) and stays readable by its author only; `read` returns images and audio, `media`
|
|
51
|
+
* a video too. Persist the `idempotencyKey` before a video or audio upload and reuse it after a lost reply. */
|
|
35
52
|
upload(input: AssetUploadInput, options?: AssetUploadOptions): Promise<UploadedAsset>;
|
|
36
53
|
/** Uploads a workspace attachment through the host's binary transport; the host checks the workspace contribution right. */
|
|
37
54
|
uploadAttachment(input: AttachmentUploadInput, options?: AttachmentUploadOptions): Promise<UploadedAsset>;
|