@slatesvideo/shared 0.5.0 → 0.5.2
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/dist/clients/cloud.d.ts +7 -7
- package/dist/operations/index.d.ts +10 -2
- package/dist/operations/index.js +217 -94
- package/dist/prompts/model-facts.js +18 -2
- package/dist/skills/content.js +13 -12
- package/package.json +1 -1
- package/skills/slates-content-policy.md +14 -1
- package/skills/slates-cost-discipline.md +15 -11
- package/skills/slates-direct-response-ad.md +2 -2
- package/skills/slates-edit-and-iterate.md +1 -1
- package/skills/slates-model-selection.md +11 -7
- package/skills/slates-one-prompt-film.md +1 -1
- package/skills/slates-prompting-lip-sync.md +12 -12
- package/skills/slates-prompting-motion-transfer.md +11 -11
- package/skills/slates-prompting-omni-flash.md +44 -0
- package/skills/slates-prompting-seedance.md +1 -1
- package/skills/slates-prompting-veo-3.md +1 -1
- package/skills/slates-storyboard-from-script.md +1 -1
- package/skills/slates-vision-feedback-loop.md +1 -1
package/dist/clients/cloud.d.ts
CHANGED
|
@@ -15,23 +15,23 @@ export interface SlatesUserInfo {
|
|
|
15
15
|
name: string;
|
|
16
16
|
license_status: string;
|
|
17
17
|
tier: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
credit_balance?: number;
|
|
19
|
+
credit_balance_cents?: number;
|
|
20
20
|
};
|
|
21
21
|
scopes: string[];
|
|
22
22
|
}
|
|
23
23
|
export interface CreditsBalance {
|
|
24
24
|
success: boolean;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
credit_balance?: number;
|
|
26
|
+
credit_balance_cents?: number;
|
|
27
27
|
}
|
|
28
28
|
export interface ModelRegistryResponse {
|
|
29
29
|
success: boolean;
|
|
30
|
-
credit_markup
|
|
30
|
+
credit_markup?: number;
|
|
31
31
|
models: Array<{
|
|
32
32
|
model: string;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
cost_credits?: number;
|
|
34
|
+
cost_cents?: number;
|
|
35
35
|
}>;
|
|
36
36
|
}
|
|
37
37
|
//# sourceMappingURL=cloud.d.ts.map
|
|
@@ -67,6 +67,7 @@ export declare const uploadReferenceImage: Operation<{
|
|
|
67
67
|
projectId: string;
|
|
68
68
|
filePath?: string;
|
|
69
69
|
dataUrl?: string;
|
|
70
|
+
type?: 'image' | 'video';
|
|
70
71
|
}>;
|
|
71
72
|
export declare const listFolders: Operation<{
|
|
72
73
|
projectId: string;
|
|
@@ -169,7 +170,7 @@ export declare const editImage: Operation<{
|
|
|
169
170
|
confirm?: boolean;
|
|
170
171
|
background?: boolean;
|
|
171
172
|
}>;
|
|
172
|
-
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "veo-3.1-fast", "veo-3.1-standard", "seedance-2"];
|
|
173
|
+
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "veo-3.1-fast", "veo-3.1-standard", "seedance-2", "omni-flash"];
|
|
173
174
|
type VideoModel = (typeof VIDEO_MODELS)[number];
|
|
174
175
|
export declare function videoCostKey(input: {
|
|
175
176
|
model: VideoModel;
|
|
@@ -184,6 +185,7 @@ export declare function videoCostKey(input: {
|
|
|
184
185
|
videoRefSeconds?: number;
|
|
185
186
|
}): string;
|
|
186
187
|
export declare function klingEditCostKey(model: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit', duration: number): string;
|
|
188
|
+
export declare function omniFlashEditCostKey(duration: number): string;
|
|
187
189
|
export declare const generateVideo: Operation<{
|
|
188
190
|
prompt: string;
|
|
189
191
|
model: string;
|
|
@@ -255,13 +257,19 @@ export declare const editVideo: Operation<{
|
|
|
255
257
|
projectId: string;
|
|
256
258
|
sourceVideoAssetId: string;
|
|
257
259
|
prompt: string;
|
|
258
|
-
model?: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit';
|
|
260
|
+
model?: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit' | 'omni-flash-edit';
|
|
259
261
|
characterAssetIds?: string[];
|
|
260
262
|
styleAssetIds?: string[];
|
|
261
263
|
keepAudio?: boolean;
|
|
262
264
|
background?: boolean;
|
|
263
265
|
confirm?: boolean;
|
|
264
266
|
}>;
|
|
267
|
+
export declare const trimVideo: Operation<{
|
|
268
|
+
projectId: string;
|
|
269
|
+
assetId: string;
|
|
270
|
+
inSec?: number;
|
|
271
|
+
outSec: number;
|
|
272
|
+
}>;
|
|
265
273
|
export declare const getGenerationStatus: Operation<{
|
|
266
274
|
generationId: string;
|
|
267
275
|
waitSeconds?: number;
|