@slatesvideo/shared 0.4.7 → 0.5.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/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/operations/index.d.ts +49 -6
- package/dist/operations/index.js +545 -72
- package/dist/prompts/model-facts.js +34 -2
- package/dist/prompts/reference-composer.d.ts +35 -0
- package/dist/prompts/reference-composer.js +81 -0
- package/dist/skills/content.js +8 -7
- package/package.json +1 -1
- package/skills/slates-content-policy.md +8 -0
- package/skills/slates-model-selection.md +33 -1
- package/skills/slates-prompting-gpt-image-2.md +40 -0
- package/skills/slates-prompting-kling-v3.md +26 -0
- package/skills/slates-prompting-lip-sync.md +22 -8
- package/skills/slates-prompting-motion-transfer.md +21 -7
- package/skills/slates-prompting-nano-banana-2.md +9 -0
- package/skills/slates-prompting-seedance.md +9 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { SlatesCloudClient, type SlatesUserInfo, type CreditsBalance, type Model
|
|
|
3
3
|
export { SlatesDesktopClient, type DesktopHealth } from './clients/desktop.js';
|
|
4
4
|
export { SKILLS } from './skills/content.js';
|
|
5
5
|
export * as operations from './operations/index.js';
|
|
6
|
-
export { ALL_OPERATIONS, defaultContext, type Operation, type OperationContext, type OperationResult } from './operations/index.js';
|
|
6
|
+
export { ALL_OPERATIONS, VIDEO_MODELS, defaultContext, type Operation, type OperationContext, type OperationResult } from './operations/index.js';
|
|
7
|
+
export { MODEL_FACTS, getModelFact, type ModelFact } from './prompts/model-facts.js';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,9 @@ export { SlatesCloudClient } from './clients/cloud.js';
|
|
|
3
3
|
export { SlatesDesktopClient } from './clients/desktop.js';
|
|
4
4
|
export { SKILLS } from './skills/content.js';
|
|
5
5
|
export * as operations from './operations/index.js';
|
|
6
|
-
export { ALL_OPERATIONS, defaultContext } from './operations/index.js';
|
|
6
|
+
export { ALL_OPERATIONS, VIDEO_MODELS, defaultContext } from './operations/index.js';
|
|
7
|
+
// Model routing/prompting facts — the SSOT the desktop Studio Agent system
|
|
8
|
+
// prompt derives its MODEL ROUTING doctrine from (kind: image vs video,
|
|
9
|
+
// default/premium/niche notes). Edit model-facts.ts, never prose copies.
|
|
10
|
+
export { MODEL_FACTS, getModelFact } from './prompts/model-facts.js';
|
|
7
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -31,6 +31,13 @@ export declare const listAvailableModels: Operation<{
|
|
|
31
31
|
export declare const estimateGenerationCost: Operation<{
|
|
32
32
|
model: string;
|
|
33
33
|
quantity?: number;
|
|
34
|
+
duration?: number;
|
|
35
|
+
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
36
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
37
|
+
quality?: 'medium' | 'high';
|
|
38
|
+
sound?: boolean;
|
|
39
|
+
seedanceFace?: boolean;
|
|
40
|
+
seedanceRealFace?: boolean;
|
|
34
41
|
}>;
|
|
35
42
|
export declare const listProjects: Operation<Record<string, never>>;
|
|
36
43
|
export declare const createProject: Operation<{
|
|
@@ -136,12 +143,14 @@ export declare const addFrame: Operation<{
|
|
|
136
143
|
notes?: string;
|
|
137
144
|
position?: number;
|
|
138
145
|
}>;
|
|
146
|
+
export type ImageModelId = 'nano-banana-2' | 'nano-banana-2-lite' | 'nano-banana-pro' | 'gpt-image-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
139
147
|
export declare const generateImage: Operation<{
|
|
140
148
|
prompt: string;
|
|
141
|
-
model?:
|
|
149
|
+
model?: ImageModelId;
|
|
142
150
|
projectId?: string;
|
|
143
|
-
resolution?: '1k' | '2k' | '4k';
|
|
151
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
144
152
|
aspectRatio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '21:9' | '9:21' | '4:5' | '5:4' | '2:3' | '3:2';
|
|
153
|
+
quality?: 'medium' | 'high';
|
|
145
154
|
count?: number;
|
|
146
155
|
referenceImageUrls?: string[];
|
|
147
156
|
referenceAssetIds?: string[];
|
|
@@ -152,14 +161,15 @@ export declare const editImage: Operation<{
|
|
|
152
161
|
projectId: string;
|
|
153
162
|
sourceAssetId: string;
|
|
154
163
|
prompt: string;
|
|
155
|
-
editModel?: 'nano-banana-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
164
|
+
editModel?: 'nano-banana-2' | 'nano-banana-2-lite' | 'nano-banana-pro' | 'gpt-image-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
156
165
|
referenceAssetIds?: string[];
|
|
157
|
-
resolution?: '1k' | '2k' | '4k';
|
|
166
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
167
|
+
quality?: 'medium' | 'high';
|
|
158
168
|
aspectRatio?: string;
|
|
159
169
|
confirm?: boolean;
|
|
160
170
|
background?: boolean;
|
|
161
171
|
}>;
|
|
162
|
-
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"];
|
|
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"];
|
|
163
173
|
type VideoModel = (typeof VIDEO_MODELS)[number];
|
|
164
174
|
export declare function videoCostKey(input: {
|
|
165
175
|
model: VideoModel;
|
|
@@ -168,7 +178,12 @@ export declare function videoCostKey(input: {
|
|
|
168
178
|
sound?: boolean;
|
|
169
179
|
seedanceFace?: boolean;
|
|
170
180
|
seedanceRealFace?: boolean;
|
|
181
|
+
/** Seedance only: ceiled combined seconds of reference VIDEO inputs (motion
|
|
182
|
+
* transfer / lip-sync on video / relocate). >0 bills the vref key on TOTAL
|
|
183
|
+
* (input+output) seconds — the server re-derives this by probing the refs. */
|
|
184
|
+
videoRefSeconds?: number;
|
|
171
185
|
}): string;
|
|
186
|
+
export declare function klingEditCostKey(model: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit', duration: number): string;
|
|
172
187
|
export declare const generateVideo: Operation<{
|
|
173
188
|
prompt: string;
|
|
174
189
|
model: string;
|
|
@@ -183,6 +198,8 @@ export declare const generateVideo: Operation<{
|
|
|
183
198
|
environmentAssetIds?: string[];
|
|
184
199
|
styleAssetIds?: string[];
|
|
185
200
|
videoReferenceAssetId?: string;
|
|
201
|
+
videoReferenceSeconds?: number;
|
|
202
|
+
audioReferenceAssetId?: string;
|
|
186
203
|
sound?: boolean;
|
|
187
204
|
audioLanguage?: 'EN' | 'ZH' | 'JA' | 'KO' | 'ES';
|
|
188
205
|
generateMusic?: boolean;
|
|
@@ -205,6 +222,14 @@ export declare const generateLipSync: Operation<{
|
|
|
205
222
|
audioFilePath?: string;
|
|
206
223
|
avatarModel?: 'avatar-standard' | 'avatar-pro';
|
|
207
224
|
klingProvider?: 'fal' | 'kling';
|
|
225
|
+
engine?: 'kling' | 'seedance-2';
|
|
226
|
+
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
227
|
+
aspectRatio?: string;
|
|
228
|
+
seedanceFace?: boolean;
|
|
229
|
+
seedanceRealFace?: boolean;
|
|
230
|
+
realFaceConsent?: boolean;
|
|
231
|
+
sourceSeconds?: number;
|
|
232
|
+
audioSeconds?: number;
|
|
208
233
|
background?: boolean;
|
|
209
234
|
confirm?: boolean;
|
|
210
235
|
}>;
|
|
@@ -212,10 +237,28 @@ export declare const generateMotionTransfer: Operation<{
|
|
|
212
237
|
projectId: string;
|
|
213
238
|
sourceVideoAssetId: string;
|
|
214
239
|
targetImageAssetId: string;
|
|
215
|
-
motionModel?: 'kling-mc-std' | 'kling-mc-pro';
|
|
240
|
+
motionModel?: 'kling-mc-std' | 'kling-mc-pro' | 'seedance-2';
|
|
216
241
|
characterOrientation?: 'video' | 'image';
|
|
217
242
|
prompt?: string;
|
|
218
243
|
klingProvider?: 'fal' | 'kling';
|
|
244
|
+
duration?: number;
|
|
245
|
+
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
246
|
+
aspectRatio?: string;
|
|
247
|
+
seedanceFace?: boolean;
|
|
248
|
+
seedanceRealFace?: boolean;
|
|
249
|
+
realFaceConsent?: boolean;
|
|
250
|
+
sourceVideoSeconds?: number;
|
|
251
|
+
background?: boolean;
|
|
252
|
+
confirm?: boolean;
|
|
253
|
+
}>;
|
|
254
|
+
export declare const editVideo: Operation<{
|
|
255
|
+
projectId: string;
|
|
256
|
+
sourceVideoAssetId: string;
|
|
257
|
+
prompt: string;
|
|
258
|
+
model?: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit';
|
|
259
|
+
characterAssetIds?: string[];
|
|
260
|
+
styleAssetIds?: string[];
|
|
261
|
+
keepAudio?: boolean;
|
|
219
262
|
background?: boolean;
|
|
220
263
|
confirm?: boolean;
|
|
221
264
|
}>;
|