@omnichar/contracts 0.0.0-5010cb1 → 0.0.0-67f7847
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/errors.d.ts +3 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +3 -0
- package/dist/errors.js.map +1 -1
- package/dist/v1/characters.d.ts +88 -8
- package/dist/v1/characters.d.ts.map +1 -1
- package/dist/v1/characters.js +57 -7
- package/dist/v1/characters.js.map +1 -1
- package/dist/v1/credits.d.ts +13 -1
- package/dist/v1/credits.d.ts.map +1 -1
- package/dist/v1/credits.js +6 -0
- package/dist/v1/credits.js.map +1 -1
- package/dist/v1/index.d.ts +3 -0
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +3 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/me.d.ts +1 -1
- package/dist/v1/planPresets.d.ts +93 -0
- package/dist/v1/planPresets.d.ts.map +1 -0
- package/dist/v1/planPresets.js +80 -0
- package/dist/v1/planPresets.js.map +1 -0
- package/dist/v1/runs.d.ts +272 -0
- package/dist/v1/runs.d.ts.map +1 -1
- package/dist/v1/runs.js +58 -0
- package/dist/v1/runs.js.map +1 -1
- package/dist/v1/sessions.d.ts +115 -2
- package/dist/v1/sessions.d.ts.map +1 -1
- package/dist/v1/sessions.js +15 -1
- package/dist/v1/sessions.js.map +1 -1
- package/dist/v1/studio.d.ts +96 -3
- package/dist/v1/studio.d.ts.map +1 -1
- package/dist/v1/studio.js +155 -11
- package/dist/v1/studio.js.map +1 -1
- package/dist/v1/teamKeys.d.ts +144 -0
- package/dist/v1/teamKeys.d.ts.map +1 -0
- package/dist/v1/teamKeys.js +57 -0
- package/dist/v1/teamKeys.js.map +1 -0
- package/dist/v1/teams.d.ts +264 -0
- package/dist/v1/teams.d.ts.map +1 -0
- package/dist/v1/teams.js +108 -0
- package/dist/v1/teams.js.map +1 -0
- package/dist/v1/videoPricing.d.ts +2 -2
- package/dist/v1/videoPricing.d.ts.map +1 -1
- package/dist/v1/videoPricing.js +7 -4
- package/dist/v1/videoPricing.js.map +1 -1
- package/dist/v1/workflows.d.ts +4 -1
- package/dist/v1/workflows.d.ts.map +1 -1
- package/dist/v1/workflows.js +1 -0
- package/dist/v1/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/sessions.d.ts
CHANGED
|
@@ -171,6 +171,13 @@ export declare const sessionItemSchema: z.ZodObject<{
|
|
|
171
171
|
"4k": "4k";
|
|
172
172
|
}>;
|
|
173
173
|
seconds: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
model: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
175
|
+
"flux2-klein": "flux2-klein";
|
|
176
|
+
krea3: "krea3";
|
|
177
|
+
flux3: "flux3";
|
|
178
|
+
"minimax-h3": "minimax-h3";
|
|
179
|
+
seedance25: "seedance25";
|
|
180
|
+
}>>>;
|
|
174
181
|
characterName: z.ZodNullable<z.ZodString>;
|
|
175
182
|
cast: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
183
|
kind: z.ZodLiteral<"own">;
|
|
@@ -188,6 +195,15 @@ export declare const sessionItemSchema: z.ZodObject<{
|
|
|
188
195
|
slug: z.ZodString;
|
|
189
196
|
}, z.core.$strip>], "kind">>>;
|
|
190
197
|
continueFrom: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
198
|
+
reference: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
199
|
+
key: z.ZodString;
|
|
200
|
+
kind: z.ZodEnum<{
|
|
201
|
+
image: "image";
|
|
202
|
+
video: "video";
|
|
203
|
+
}>;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
seconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
206
|
+
}, z.core.$strip>>>;
|
|
191
207
|
}, z.core.$strip>>>;
|
|
192
208
|
outputCount: z.ZodDefault<z.ZodNumber>;
|
|
193
209
|
billableMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -201,6 +217,41 @@ export declare const sessionItemSchema: z.ZodObject<{
|
|
|
201
217
|
expiresAt: z.ZodISODateTime;
|
|
202
218
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
203
219
|
checkpoint: z.ZodDefault<z.ZodBoolean>;
|
|
220
|
+
continuity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
221
|
+
characterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
continuityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
223
|
+
continuityFaceOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
224
|
+
continuitySubjectOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
225
|
+
continuityWardrobe: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
226
|
+
continuityFace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
227
|
+
continuitySubject: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
228
|
+
continuityGallery: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
229
|
+
frozen: "frozen";
|
|
230
|
+
refs: "refs";
|
|
231
|
+
}>>>;
|
|
232
|
+
continuityFraming: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
233
|
+
continuityFrames: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
234
|
+
continuityNoFace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
235
|
+
continuityMean: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
236
|
+
continuityMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
237
|
+
continuityMinAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
238
|
+
continuitySamples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
239
|
+
at: z.ZodNumber;
|
|
240
|
+
score: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>>>>;
|
|
242
|
+
castContinuity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
|
+
perCharacter: z.ZodArray<z.ZodObject<{
|
|
244
|
+
file: z.ZodString;
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
247
|
+
missingFrames: z.ZodNumber;
|
|
248
|
+
swappedFrames: z.ZodNumber;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
swapped: z.ZodArray<z.ZodString>;
|
|
251
|
+
unmatched: z.ZodNumber;
|
|
252
|
+
frames: z.ZodNumber;
|
|
253
|
+
}, z.core.$strip>>>;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
204
255
|
}, z.core.$strip>>>;
|
|
205
256
|
characterId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
206
257
|
}, z.core.$strip>;
|
|
@@ -211,6 +262,7 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
211
262
|
updatedAt: z.ZodISODateTime;
|
|
212
263
|
resultCount: z.ZodNumber;
|
|
213
264
|
busy: z.ZodBoolean;
|
|
265
|
+
pinnedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
214
266
|
}, z.core.$strip>;
|
|
215
267
|
export declare const sessionDetailSchema: z.ZodObject<{
|
|
216
268
|
id: z.ZodUUID;
|
|
@@ -219,6 +271,7 @@ export declare const sessionDetailSchema: z.ZodObject<{
|
|
|
219
271
|
updatedAt: z.ZodISODateTime;
|
|
220
272
|
resultCount: z.ZodNumber;
|
|
221
273
|
busy: z.ZodBoolean;
|
|
274
|
+
pinnedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
222
275
|
items: z.ZodArray<z.ZodObject<{
|
|
223
276
|
id: z.ZodUUID;
|
|
224
277
|
seq: z.ZodNumber;
|
|
@@ -316,6 +369,13 @@ export declare const sessionDetailSchema: z.ZodObject<{
|
|
|
316
369
|
"4k": "4k";
|
|
317
370
|
}>;
|
|
318
371
|
seconds: z.ZodNullable<z.ZodNumber>;
|
|
372
|
+
model: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
373
|
+
"flux2-klein": "flux2-klein";
|
|
374
|
+
krea3: "krea3";
|
|
375
|
+
flux3: "flux3";
|
|
376
|
+
"minimax-h3": "minimax-h3";
|
|
377
|
+
seedance25: "seedance25";
|
|
378
|
+
}>>>;
|
|
319
379
|
characterName: z.ZodNullable<z.ZodString>;
|
|
320
380
|
cast: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
381
|
kind: z.ZodLiteral<"own">;
|
|
@@ -333,6 +393,15 @@ export declare const sessionDetailSchema: z.ZodObject<{
|
|
|
333
393
|
slug: z.ZodString;
|
|
334
394
|
}, z.core.$strip>], "kind">>>;
|
|
335
395
|
continueFrom: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
396
|
+
reference: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
397
|
+
key: z.ZodString;
|
|
398
|
+
kind: z.ZodEnum<{
|
|
399
|
+
image: "image";
|
|
400
|
+
video: "video";
|
|
401
|
+
}>;
|
|
402
|
+
name: z.ZodString;
|
|
403
|
+
seconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
336
405
|
}, z.core.$strip>>>;
|
|
337
406
|
outputCount: z.ZodDefault<z.ZodNumber>;
|
|
338
407
|
billableMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -346,6 +415,41 @@ export declare const sessionDetailSchema: z.ZodObject<{
|
|
|
346
415
|
expiresAt: z.ZodISODateTime;
|
|
347
416
|
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
348
417
|
checkpoint: z.ZodDefault<z.ZodBoolean>;
|
|
418
|
+
continuity: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
419
|
+
characterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
|
+
continuityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
421
|
+
continuityFaceOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
422
|
+
continuitySubjectOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
423
|
+
continuityWardrobe: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
424
|
+
continuityFace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
425
|
+
continuitySubject: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
426
|
+
continuityGallery: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
427
|
+
frozen: "frozen";
|
|
428
|
+
refs: "refs";
|
|
429
|
+
}>>>;
|
|
430
|
+
continuityFraming: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
431
|
+
continuityFrames: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
432
|
+
continuityNoFace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
433
|
+
continuityMean: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
434
|
+
continuityMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
|
+
continuityMinAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
436
|
+
continuitySamples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
437
|
+
at: z.ZodNumber;
|
|
438
|
+
score: z.ZodNumber;
|
|
439
|
+
}, z.core.$strip>>>>;
|
|
440
|
+
castContinuity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
441
|
+
perCharacter: z.ZodArray<z.ZodObject<{
|
|
442
|
+
file: z.ZodString;
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
445
|
+
missingFrames: z.ZodNumber;
|
|
446
|
+
swappedFrames: z.ZodNumber;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
swapped: z.ZodArray<z.ZodString>;
|
|
449
|
+
unmatched: z.ZodNumber;
|
|
450
|
+
frames: z.ZodNumber;
|
|
451
|
+
}, z.core.$strip>>>;
|
|
452
|
+
}, z.core.$strip>>>;
|
|
349
453
|
}, z.core.$strip>>>;
|
|
350
454
|
characterId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
351
455
|
}, z.core.$strip>>;
|
|
@@ -363,11 +467,19 @@ export declare const sessionListSchema: z.ZodObject<{
|
|
|
363
467
|
updatedAt: z.ZodISODateTime;
|
|
364
468
|
resultCount: z.ZodNumber;
|
|
365
469
|
busy: z.ZodBoolean;
|
|
470
|
+
pinnedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
366
471
|
}, z.core.$strip>>;
|
|
367
472
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
368
473
|
}, z.core.$strip>;
|
|
369
|
-
export declare const
|
|
370
|
-
title: z.ZodString
|
|
474
|
+
export declare const patchSessionBodySchema: z.ZodObject<{
|
|
475
|
+
title: z.ZodOptional<z.ZodString>;
|
|
476
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
export declare const deleteSessionQuerySchema: z.ZodObject<{
|
|
479
|
+
removeRuns: z.ZodDefault<z.ZodEnum<{
|
|
480
|
+
true: "true";
|
|
481
|
+
false: "false";
|
|
482
|
+
}>>;
|
|
371
483
|
}, z.core.$strip>;
|
|
372
484
|
export type AppendItem = z.input<typeof appendItemSchema>;
|
|
373
485
|
export type SessionItemPayload = z.infer<typeof sessionItemPayloadSchema>;
|
|
@@ -376,4 +488,5 @@ export type SessionSummary = z.infer<typeof sessionSummarySchema>;
|
|
|
376
488
|
export type SessionDetail = z.infer<typeof sessionDetailSchema>;
|
|
377
489
|
export type SessionsQuery = z.infer<typeof sessionsQuerySchema>;
|
|
378
490
|
export type SessionList = z.infer<typeof sessionListSchema>;
|
|
491
|
+
export type PatchSessionBody = z.infer<typeof patchSessionBodySchema>;
|
|
379
492
|
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/v1/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB,OAAO,CAAA;AACpC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAGpC,eAAO,MAAM,WAAW,uDAAwD,CAAA;AAChF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAKpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+B3B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAInC,CAAA;AAEF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/v1/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB,OAAO,CAAA;AACpC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAGpC,eAAO,MAAM,WAAW,uDAAwD,CAAA;AAChF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAKpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+B3B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAInC,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
package/dist/v1/sessions.js
CHANGED
|
@@ -67,6 +67,8 @@ export const sessionSummarySchema = z.object({
|
|
|
67
67
|
resultCount: z.number().int().nonnegative(),
|
|
68
68
|
// A generation or build in it is still going.
|
|
69
69
|
busy: z.boolean(),
|
|
70
|
+
// When it was pinned, or null. The list sorts on it, so the client need not re-sort.
|
|
71
|
+
pinnedAt: z.iso.datetime().nullable(),
|
|
70
72
|
});
|
|
71
73
|
export const sessionDetailSchema = sessionSummarySchema.extend({
|
|
72
74
|
items: z.array(sessionItemSchema),
|
|
@@ -75,5 +77,17 @@ export const sessionsQuerySchema = pageQuerySchema.extend({
|
|
|
75
77
|
q: z.string().trim().max(120).optional(),
|
|
76
78
|
});
|
|
77
79
|
export const sessionListSchema = pageOf(sessionSummarySchema);
|
|
78
|
-
|
|
80
|
+
// Both optional, so one PATCH can rename, pin, or do either alone.
|
|
81
|
+
export const patchSessionBodySchema = z
|
|
82
|
+
.object({
|
|
83
|
+
title: z.string().trim().min(1).max(120).optional(),
|
|
84
|
+
pinned: z.boolean().optional(),
|
|
85
|
+
})
|
|
86
|
+
.refine((body) => body.title !== undefined || body.pinned !== undefined, {
|
|
87
|
+
message: 'Nothing to change.',
|
|
88
|
+
});
|
|
89
|
+
// A query rather than a body, so a DELETE sent with no body at all still parses.
|
|
90
|
+
export const deleteSessionQuerySchema = z.object({
|
|
91
|
+
removeRuns: z.enum(['true', 'false']).default('false'),
|
|
92
|
+
});
|
|
79
93
|
//# sourceMappingURL=sessions.js.map
|
package/dist/v1/sessions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/v1/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,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,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACvD,CAAC,CAAA"}
|
package/dist/v1/studio.d.ts
CHANGED
|
@@ -7,13 +7,58 @@ export type StudioResolution = (typeof STUDIO_RESOLUTIONS)[number];
|
|
|
7
7
|
export declare const STUDIO_RATIOS: readonly ["1:1", "3:4", "4:5", "9:16", "16:9"];
|
|
8
8
|
export type StudioRatio = (typeof STUDIO_RATIOS)[number];
|
|
9
9
|
export declare const VIDEO_STUDIO_RATIOS: readonly StudioRatio[];
|
|
10
|
-
export declare const ratiosFor: (mode: StudioMode) => readonly StudioRatio[];
|
|
11
10
|
export declare const IMAGE_STUDIO_RESOLUTIONS: readonly StudioResolution[];
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The renderers a caller may pick, by the name they are offered under.
|
|
13
|
+
*
|
|
14
|
+
* Two of these ids spell the same string as a character arch because they name the same renderer.
|
|
15
|
+
* They are not the same thing: an arch is a payload compiled inside a `.char` at build time, and a
|
|
16
|
+
* model id is a choice made per run. Nothing reads one as the other.
|
|
17
|
+
*/
|
|
18
|
+
export declare const STUDIO_MODELS: readonly ["flux2-klein", "krea3", "flux3", "minimax-h3", "seedance25"];
|
|
19
|
+
export type StudioModel = (typeof STUDIO_MODELS)[number];
|
|
20
|
+
export declare const DEFAULT_MODEL_FOR: Record<StudioMode, StudioModel>;
|
|
21
|
+
export type StudioModelSpec = {
|
|
22
|
+
mode: StudioMode;
|
|
23
|
+
label: string;
|
|
24
|
+
ratios: readonly StudioRatio[];
|
|
25
|
+
resolutions: readonly StudioResolution[];
|
|
26
|
+
/** Whether it refuses a prompt with no reference image, so the dock can say why it is greyed. */
|
|
27
|
+
needsCharacter: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* What each renderer will actually serve.
|
|
31
|
+
*
|
|
32
|
+
* Measured against each supplier's own schema rather than assumed, because a tier offered here and
|
|
33
|
+
* refused there is a run held for credits and then rejected. Krea stops at 2K because its schema
|
|
34
|
+
* caps a request at 4,220,160 pixels of area; Seedance stops at 2K because 1080p is its top tier;
|
|
35
|
+
* Flux 3 sells every tier our card does, priced per megapixel from the rate its pricing API reports
|
|
36
|
+
* rather than the single 1K figure its model page shows.
|
|
37
|
+
*/
|
|
38
|
+
export declare const STUDIO_MODEL_SPECS: Record<StudioModel, StudioModelSpec>;
|
|
39
|
+
/** The models offered for a mode, in the order they are listed. */
|
|
40
|
+
export declare const modelsFor: (mode: StudioMode) => readonly StudioModel[];
|
|
41
|
+
export declare const ratiosFor: (mode: StudioMode, model?: StudioModel) => readonly StudioRatio[];
|
|
42
|
+
export declare const resolutionsFor: (mode: StudioMode, model?: StudioModel) => readonly StudioResolution[];
|
|
13
43
|
export declare const IMAGE_MICRO_BY_RESOLUTION: Record<StudioResolution, number>;
|
|
14
44
|
export declare const CAST_IMAGE_MICRO_BY_RESOLUTION: Record<StudioResolution, number>;
|
|
45
|
+
/**
|
|
46
|
+
* The card, per renderer.
|
|
47
|
+
*
|
|
48
|
+
* Per model rather than per mode because the suppliers do not price alike: Krea bills the output
|
|
49
|
+
* and every reference by the megapixel, so one tier step more than triples it, while Flux 3 bills
|
|
50
|
+
* one flat figure however many references it is sent. A single column would either lose money on
|
|
51
|
+
* one of them or overcharge for the other. `pricing/imageCost.ts` recomputes every cell from the
|
|
52
|
+
* supplier rates in a test, so the card and the cost cannot drift.
|
|
53
|
+
*/
|
|
54
|
+
export declare const IMAGE_CARD: Record<StudioModel, {
|
|
55
|
+
plain: Partial<Record<StudioResolution, number>>;
|
|
56
|
+
cast: Partial<Record<StudioResolution, number>>;
|
|
57
|
+
}>;
|
|
58
|
+
/** Micro-credits per second of output, per renderer. */
|
|
59
|
+
export declare const VIDEO_CARD: Record<StudioModel, Partial<Record<VideoResolution, number>>>;
|
|
15
60
|
/** The flat price of one image, in micro-credits. */
|
|
16
|
-
export declare function imageRunMicro(resolution: StudioResolution, hasCharacter: boolean): number;
|
|
61
|
+
export declare function imageRunMicro(model: StudioModel, resolution: StudioResolution, hasCharacter: boolean): number;
|
|
17
62
|
export declare const IMAGE_LONG_EDGE: Record<StudioResolution, number>;
|
|
18
63
|
export declare const VIDEO_RESOLUTION_FOR: Record<StudioResolution, VideoResolution>;
|
|
19
64
|
/** Width and height for an image at this tier and shape. */
|
|
@@ -26,6 +71,8 @@ export type StudioQuote = {
|
|
|
26
71
|
resolution: StudioResolution;
|
|
27
72
|
seconds?: number | undefined;
|
|
28
73
|
hasCharacter: boolean;
|
|
74
|
+
/** Which renderer this is quoted for; the mode's default when the caller did not choose. */
|
|
75
|
+
model?: StudioModel | undefined;
|
|
29
76
|
};
|
|
30
77
|
/** What one generate costs, in micro-credits. The same function the server charges by. */
|
|
31
78
|
export declare function studioRunMicro(quote: StudioQuote): number;
|
|
@@ -61,6 +108,13 @@ export declare const generateBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
61
108
|
"4k": "4k";
|
|
62
109
|
}>;
|
|
63
110
|
seconds: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
"flux2-klein": "flux2-klein";
|
|
113
|
+
krea3: "krea3";
|
|
114
|
+
flux3: "flux3";
|
|
115
|
+
"minimax-h3": "minimax-h3";
|
|
116
|
+
seedance25: "seedance25";
|
|
117
|
+
}>>;
|
|
64
118
|
casts: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
119
|
kind: z.ZodLiteral<"own">;
|
|
66
120
|
characterId: z.ZodUUID;
|
|
@@ -76,6 +130,15 @@ export declare const generateBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
76
130
|
slug: z.ZodString;
|
|
77
131
|
}, z.core.$strip>], "kind">>>;
|
|
78
132
|
continueFrom: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
133
|
+
reference: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
134
|
+
key: z.ZodString;
|
|
135
|
+
kind: z.ZodEnum<{
|
|
136
|
+
image: "image";
|
|
137
|
+
video: "video";
|
|
138
|
+
}>;
|
|
139
|
+
name: z.ZodDefault<z.ZodString>;
|
|
140
|
+
seconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
79
142
|
sessionId: z.ZodOptional<z.ZodUUID>;
|
|
80
143
|
}, z.core.$strip>, z.ZodTransform<{
|
|
81
144
|
casts: ({
|
|
@@ -90,7 +153,14 @@ export declare const generateBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
90
153
|
ratio: "16:9" | "1:1" | "3:4" | "9:16" | "4:5";
|
|
91
154
|
resolution: "0.5k" | "1k" | "2k" | "4k";
|
|
92
155
|
continueFrom: string | null;
|
|
156
|
+
reference: {
|
|
157
|
+
key: string;
|
|
158
|
+
kind: "image" | "video";
|
|
159
|
+
name: string;
|
|
160
|
+
seconds: number | null;
|
|
161
|
+
} | null;
|
|
93
162
|
seconds?: number | undefined;
|
|
163
|
+
model?: "flux2-klein" | "krea3" | "flux3" | "minimax-h3" | "seedance25" | undefined;
|
|
94
164
|
sessionId?: string | undefined;
|
|
95
165
|
}, {
|
|
96
166
|
mode: "image" | "video";
|
|
@@ -112,7 +182,14 @@ export declare const generateBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
112
182
|
slug: string;
|
|
113
183
|
} | null;
|
|
114
184
|
continueFrom: string | null;
|
|
185
|
+
reference: {
|
|
186
|
+
key: string;
|
|
187
|
+
kind: "image" | "video";
|
|
188
|
+
name: string;
|
|
189
|
+
seconds: number | null;
|
|
190
|
+
} | null;
|
|
115
191
|
seconds?: number | undefined;
|
|
192
|
+
model?: "flux2-klein" | "krea3" | "flux3" | "minimax-h3" | "seedance25" | undefined;
|
|
116
193
|
sessionId?: string | undefined;
|
|
117
194
|
}>>;
|
|
118
195
|
export declare const generateResponseSchema: z.ZodObject<{
|
|
@@ -140,6 +217,13 @@ export declare const studioSettingsSchema: z.ZodObject<{
|
|
|
140
217
|
"4k": "4k";
|
|
141
218
|
}>;
|
|
142
219
|
seconds: z.ZodNullable<z.ZodNumber>;
|
|
220
|
+
model: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
221
|
+
"flux2-klein": "flux2-klein";
|
|
222
|
+
krea3: "krea3";
|
|
223
|
+
flux3: "flux3";
|
|
224
|
+
"minimax-h3": "minimax-h3";
|
|
225
|
+
seedance25: "seedance25";
|
|
226
|
+
}>>>;
|
|
143
227
|
characterName: z.ZodNullable<z.ZodString>;
|
|
144
228
|
cast: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
229
|
kind: z.ZodLiteral<"own">;
|
|
@@ -157,6 +241,15 @@ export declare const studioSettingsSchema: z.ZodObject<{
|
|
|
157
241
|
slug: z.ZodString;
|
|
158
242
|
}, z.core.$strip>], "kind">>>;
|
|
159
243
|
continueFrom: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
244
|
+
reference: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
245
|
+
key: z.ZodString;
|
|
246
|
+
kind: z.ZodEnum<{
|
|
247
|
+
image: "image";
|
|
248
|
+
video: "video";
|
|
249
|
+
}>;
|
|
250
|
+
name: z.ZodString;
|
|
251
|
+
seconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
252
|
+
}, z.core.$strip>>>;
|
|
160
253
|
}, z.core.$strip>;
|
|
161
254
|
/** The characters a run was made with, whether it was recorded before or after `casts`. */
|
|
162
255
|
export declare function settingsCasts(settings: StudioSettings): Cast[];
|
package/dist/v1/studio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../src/v1/studio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,
|
|
1
|
+
{"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../src/v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