@layer_ai/sdk 1.0.7 → 1.0.15
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/generated/types.d.ts +194 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -34,6 +34,8 @@ export interface BaseModelCapabilitiesREST {
|
|
|
34
34
|
tileability?: boolean;
|
|
35
35
|
/** Supported guidance inputs and their per-type file limits. `init_image` is the source image an edit model modifies; `reference_image` supplies subjects to reproduce; `ip_adapter` is legacy IP-Adapter style-only transfer. */
|
|
36
36
|
guidance_file_types?: Array<ToolGuidanceFileTypeSupport>;
|
|
37
|
+
/** 3D models that read their init_image files by view: the views a source can fill. Tag each init_image with the view it shows (`view` on the guidance file); the model reads each file as the view it is tagged with, so a wrong tag warps the mesh. Empty when the model takes its views unordered. */
|
|
38
|
+
init_image_views?: Array<string>;
|
|
37
39
|
/** Supported video durations in seconds */
|
|
38
40
|
duration_seconds?: Array<number>;
|
|
39
41
|
/** Audio models: shortest clip this model generates, in seconds. */
|
|
@@ -62,6 +64,8 @@ export interface BaseModelCapabilitiesREST {
|
|
|
62
64
|
instrumental?: boolean;
|
|
63
65
|
/** Composes the clip to repeat with no audible seam when the `loop` parameter is set. */
|
|
64
66
|
loop?: boolean;
|
|
67
|
+
/** Takes the track as an ordered list of sections, each with its own length, styles and sung lines, via the `composition_plan` parameter. A plan supersedes `prompt`, `duration_seconds` and `instrumental`, which are dropped rather than sent with it. */
|
|
68
|
+
composition_plan?: boolean;
|
|
65
69
|
audio_inpaint?: boolean;
|
|
66
70
|
audio_outpaint?: boolean;
|
|
67
71
|
/** Scores a video stretch by stretch from a contiguous list of per-stretch briefs. */
|
|
@@ -70,7 +74,10 @@ export interface BaseModelCapabilitiesREST {
|
|
|
70
74
|
output_formats?: Array<string>;
|
|
71
75
|
/** Speaks only in a trained voice, so a generation needs a reference set holding one. Without it the provider falls back to its own default voice. */
|
|
72
76
|
voice_reference_set_required?: boolean;
|
|
77
|
+
rigging?: boolean;
|
|
78
|
+
animation?: boolean;
|
|
73
79
|
camera_transform?: boolean;
|
|
80
|
+
camera_trajectory?: boolean;
|
|
74
81
|
voice_changer?: boolean;
|
|
75
82
|
audio_isolation?: boolean;
|
|
76
83
|
audio_denoise?: boolean;
|
|
@@ -103,6 +110,8 @@ export interface BaseModelDetail {
|
|
|
103
110
|
aliases?: Array<string>;
|
|
104
111
|
/** image, video, three_d, or audio. */
|
|
105
112
|
modality: Modality;
|
|
113
|
+
/** Slug of the organization behind the model, e.g. openai or bfl, when known. */
|
|
114
|
+
provider?: string | null;
|
|
106
115
|
/** Short description. */
|
|
107
116
|
description?: string | null;
|
|
108
117
|
/** CU cost per measurement unit. */
|
|
@@ -123,6 +132,8 @@ export interface BaseModelSummary {
|
|
|
123
132
|
aliases?: Array<string>;
|
|
124
133
|
/** image, video, three_d, or audio. */
|
|
125
134
|
modality: Modality;
|
|
135
|
+
/** Slug of the organization behind the model, e.g. openai or bfl, when known. */
|
|
136
|
+
provider?: string | null;
|
|
126
137
|
/** Short description. */
|
|
127
138
|
description?: string | null;
|
|
128
139
|
/** CU cost per measurement unit. */
|
|
@@ -134,6 +145,27 @@ export interface BaseModelSummary {
|
|
|
134
145
|
}
|
|
135
146
|
/** Enum representing the status of a blueprint run. */
|
|
136
147
|
export type BlueprintRunStatus = "pending" | "running" | "success" | "failure" | "cancelled";
|
|
148
|
+
export interface CameraRotationDelta {
|
|
149
|
+
pitch_delta?: number | null;
|
|
150
|
+
yaw_delta?: number | null;
|
|
151
|
+
roll_delta?: number | null;
|
|
152
|
+
}
|
|
153
|
+
/** One orbit-camera pose at a normalized point in a generated clip. */
|
|
154
|
+
export interface CameraTrajectoryKeyframe {
|
|
155
|
+
time: number;
|
|
156
|
+
azimuth: number;
|
|
157
|
+
elevation: number;
|
|
158
|
+
distance: number;
|
|
159
|
+
}
|
|
160
|
+
/** Relative adjustments to apply to an existing origin-locked orbit camera state. */
|
|
161
|
+
export interface CameraTransformDelta {
|
|
162
|
+
distance_delta?: number | null;
|
|
163
|
+
rotation_delta?: CameraRotationDelta | null;
|
|
164
|
+
zoom_delta?: CameraZoomDelta | null;
|
|
165
|
+
}
|
|
166
|
+
export interface CameraZoomDelta {
|
|
167
|
+
fov_y_delta?: number | null;
|
|
168
|
+
}
|
|
137
169
|
export interface CancelTrainingRunResponse {
|
|
138
170
|
training_run_id: string;
|
|
139
171
|
state: "in_progress" | "terminal_success" | "terminal_failure";
|
|
@@ -162,6 +194,30 @@ export interface CliAuthConfiguration {
|
|
|
162
194
|
/** Path component of the registered loopback callback URLs. */
|
|
163
195
|
redirect_path: string;
|
|
164
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Which native client is signing in.
|
|
199
|
+
*
|
|
200
|
+
* Each is its own Auth0 application, so Auth0 can tell them apart in its logs, metrics and
|
|
201
|
+
* grants, and a client-level change to one never reaches the other.
|
|
202
|
+
*/
|
|
203
|
+
export type CliClient = "cli" | "blender";
|
|
204
|
+
/**
|
|
205
|
+
* A track authored as an ordered list of sections rather than as one description.
|
|
206
|
+
*
|
|
207
|
+
* The split is load-bearing: the plan's own styles carry what must hold for the whole
|
|
208
|
+
* track, genre, era, production character, palette, and each section carries only what
|
|
209
|
+
* changes. Reversing it produces a track that either drifts or never moves.
|
|
210
|
+
*
|
|
211
|
+
* A plan replaces the prompt rather than supplementing it. Providers taking a plan ignore
|
|
212
|
+
* the prompt, the requested length and the vocal-free flag, because the plan already
|
|
213
|
+
* states all three.
|
|
214
|
+
*/
|
|
215
|
+
export interface CompositionPlan {
|
|
216
|
+
positive_styles?: Array<string>;
|
|
217
|
+
negative_styles?: Array<string>;
|
|
218
|
+
sections: Array<MusicSection>;
|
|
219
|
+
respect_section_durations?: boolean;
|
|
220
|
+
}
|
|
165
221
|
export interface CreateGroupBody {
|
|
166
222
|
/** The group's name. Must be unique within the workspace. */
|
|
167
223
|
name: string;
|
|
@@ -200,6 +256,10 @@ export interface CreateReferenceSetResponse {
|
|
|
200
256
|
/** Files from file_ids that were not included, each with the reason. */
|
|
201
257
|
skipped?: Array<SkippedFile>;
|
|
202
258
|
}
|
|
259
|
+
export interface CreateSessionBody {
|
|
260
|
+
/** The session's display name. */
|
|
261
|
+
name: string;
|
|
262
|
+
}
|
|
203
263
|
export interface DailyUsage {
|
|
204
264
|
/** Calendar day (UTC), ISO format YYYY-MM-DD. */
|
|
205
265
|
date: string;
|
|
@@ -254,6 +314,8 @@ export interface EstimateInferencePriceRequest {
|
|
|
254
314
|
output_format?: AudioOutputFormat | null;
|
|
255
315
|
/** Words to be sung, for models whose capabilities report lyrics. A separate input from the prompt, which describes the music itself. */
|
|
256
316
|
lyrics?: string | null;
|
|
317
|
+
/** The track as an ordered list of sections, for models whose capabilities report composition_plan. Supersedes prompt, duration_seconds and instrumental, which are dropped rather than sent with it. */
|
|
318
|
+
composition_plan?: CompositionPlan | null;
|
|
257
319
|
/** FPS for LTX video generation (e.g. 25 or 50). */
|
|
258
320
|
fps?: number | null;
|
|
259
321
|
/** Video effects to apply. */
|
|
@@ -365,6 +427,8 @@ export interface EstimateInferencePriceV2Request {
|
|
|
365
427
|
output_format?: AudioOutputFormat | null;
|
|
366
428
|
/** Words to be sung, for models whose capabilities report lyrics. A separate input from the prompt, which describes the music itself. */
|
|
367
429
|
lyrics?: string | null;
|
|
430
|
+
/** The track as an ordered list of sections, for models whose capabilities report composition_plan. Supersedes prompt, duration_seconds and instrumental, which are dropped rather than sent with it. */
|
|
431
|
+
composition_plan?: CompositionPlan | null;
|
|
368
432
|
/** FPS for LTX video generation (e.g. 25 or 50). */
|
|
369
433
|
fps?: number | null;
|
|
370
434
|
/** Video effects to apply. */
|
|
@@ -389,6 +453,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
389
453
|
generate_parts?: boolean | null;
|
|
390
454
|
/** Face/polygon limit for 3D mesh. */
|
|
391
455
|
face_limit?: number | null;
|
|
456
|
+
/** Rig the generated 3D mesh with a skeleton. Honored by the models whose capabilities report `rigging`. */
|
|
457
|
+
enable_rigging?: boolean | null;
|
|
458
|
+
/** Animate the generated 3D mesh with the motion of the animation reference set passed in `reference_sets` (category `animation`), or the provider's default motion without one; implies rigging. Honored by the models whose capabilities report `animation`. */
|
|
459
|
+
enable_animation?: boolean | null;
|
|
392
460
|
/** Audio stability (0-1). */
|
|
393
461
|
stability?: number | null;
|
|
394
462
|
/** Boost speaker clarity. */
|
|
@@ -411,8 +479,14 @@ export interface EstimateInferencePriceV2Request {
|
|
|
411
479
|
transparency?: boolean | null;
|
|
412
480
|
/** Reframe/extend the image. */
|
|
413
481
|
reframe?: boolean | null;
|
|
482
|
+
/** Generate a seamless texture that tiles without a visible edge. Honored by the models whose `inference-schema` lists `tileability` (list them with `GET .../base-models?tileable=true`), and ignored by the rest. */
|
|
483
|
+
tileability?: boolean | null;
|
|
414
484
|
/** Outpaint/refill transparent areas. */
|
|
415
485
|
refill?: boolean | null;
|
|
486
|
+
/** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
|
|
487
|
+
camera_transform?: CameraTransformDelta | null;
|
|
488
|
+
/** A camera path for an image-to-video run: 2 to 12 keyframes, each an orbit pose (`azimuth` and `elevation` in degrees, `distance` where 1 is the source image's framing) at a `time` from 0 (first frame) to 1 (last). Honored by the models whose capabilities report `camera_trajectory`. */
|
|
489
|
+
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
416
490
|
/** Reference images/files to guide generation. */
|
|
417
491
|
guidance_files?: Array<ForgeGuidanceFileInput>;
|
|
418
492
|
}
|
|
@@ -512,6 +586,8 @@ export interface ExecuteInferenceRequest {
|
|
|
512
586
|
output_format?: AudioOutputFormat | null;
|
|
513
587
|
/** Words to be sung, for models whose capabilities report lyrics. A separate input from the prompt, which describes the music itself. */
|
|
514
588
|
lyrics?: string | null;
|
|
589
|
+
/** The track as an ordered list of sections, for models whose capabilities report composition_plan. Supersedes prompt, duration_seconds and instrumental, which are dropped rather than sent with it. */
|
|
590
|
+
composition_plan?: CompositionPlan | null;
|
|
515
591
|
/** FPS for LTX video generation (e.g. 25 or 50). */
|
|
516
592
|
fps?: number | null;
|
|
517
593
|
/** Video effects to apply. */
|
|
@@ -637,6 +713,8 @@ export interface ExecuteInferenceV2Request {
|
|
|
637
713
|
output_format?: AudioOutputFormat | null;
|
|
638
714
|
/** Words to be sung, for models whose capabilities report lyrics. A separate input from the prompt, which describes the music itself. */
|
|
639
715
|
lyrics?: string | null;
|
|
716
|
+
/** The track as an ordered list of sections, for models whose capabilities report composition_plan. Supersedes prompt, duration_seconds and instrumental, which are dropped rather than sent with it. */
|
|
717
|
+
composition_plan?: CompositionPlan | null;
|
|
640
718
|
/** FPS for LTX video generation (e.g. 25 or 50). */
|
|
641
719
|
fps?: number | null;
|
|
642
720
|
/** Video effects to apply. */
|
|
@@ -661,6 +739,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
661
739
|
generate_parts?: boolean | null;
|
|
662
740
|
/** Face/polygon limit for 3D mesh. */
|
|
663
741
|
face_limit?: number | null;
|
|
742
|
+
/** Rig the generated 3D mesh with a skeleton. Honored by the models whose capabilities report `rigging`. */
|
|
743
|
+
enable_rigging?: boolean | null;
|
|
744
|
+
/** Animate the generated 3D mesh with the motion of the animation reference set passed in `reference_sets` (category `animation`), or the provider's default motion without one; implies rigging. Honored by the models whose capabilities report `animation`. */
|
|
745
|
+
enable_animation?: boolean | null;
|
|
664
746
|
/** Audio stability (0-1). */
|
|
665
747
|
stability?: number | null;
|
|
666
748
|
/** Boost speaker clarity. */
|
|
@@ -683,16 +765,24 @@ export interface ExecuteInferenceV2Request {
|
|
|
683
765
|
transparency?: boolean | null;
|
|
684
766
|
/** Reframe/extend the image. */
|
|
685
767
|
reframe?: boolean | null;
|
|
768
|
+
/** Generate a seamless texture that tiles without a visible edge. Honored by the models whose `inference-schema` lists `tileability` (list them with `GET .../base-models?tileable=true`), and ignored by the rest. */
|
|
769
|
+
tileability?: boolean | null;
|
|
686
770
|
/** Outpaint/refill transparent areas. */
|
|
687
771
|
refill?: boolean | null;
|
|
772
|
+
/** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
|
|
773
|
+
camera_transform?: CameraTransformDelta | null;
|
|
774
|
+
/** A camera path for an image-to-video run: 2 to 12 keyframes, each an orbit pose (`azimuth` and `elevation` in degrees, `distance` where 1 is the source image's framing) at a `time` from 0 (first frame) to 1 (last). Honored by the models whose capabilities report `camera_trajectory`. */
|
|
775
|
+
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
688
776
|
/** Reference images/files to guide generation. */
|
|
689
777
|
guidance_files?: Array<ForgeGuidanceFileInput>;
|
|
690
778
|
/** Random seed. -1 for random. */
|
|
691
779
|
seed?: number;
|
|
692
780
|
/** Mask for inpainting/outpainting. */
|
|
693
781
|
mask?: ForgeMaskInput | null;
|
|
694
|
-
/**
|
|
782
|
+
/** Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given. */
|
|
695
783
|
session_name?: string | null;
|
|
784
|
+
/** Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace. */
|
|
785
|
+
session_id?: string | null;
|
|
696
786
|
/** Deliver this run's terminal events to a URL instead of polling for them. See the Webhooks section of this document for the payload, headers and retry behaviour. */
|
|
697
787
|
webhook?: WebhookInput | null;
|
|
698
788
|
}
|
|
@@ -756,6 +846,8 @@ export interface ForgeGuidanceFileInput {
|
|
|
756
846
|
type: GuidanceFileType;
|
|
757
847
|
/** Influence weight (0-1). Defaults to 0.5 for init, 1 for others. */
|
|
758
848
|
weight?: number | null;
|
|
849
|
+
/** For a model whose capabilities list init_image_views: the view this init image shows. Untagged init images fill the remaining views in order. A front view is required whenever more than one view is given. */
|
|
850
|
+
view?: MultiViewSlot | null;
|
|
759
851
|
}
|
|
760
852
|
export interface ForgeMaskInput {
|
|
761
853
|
/** Mask image file ID. */
|
|
@@ -780,6 +872,8 @@ export interface ForgeReferenceSetContribution {
|
|
|
780
872
|
mapped_asset_count?: number;
|
|
781
873
|
/** True when the set fell back to prompt-only representation. */
|
|
782
874
|
prompt_fallback_applied?: boolean;
|
|
875
|
+
/** True when the set's auto prompt addition was appended to the prompt. Informational: the text rides on top of whatever else the set contributed and is not a degradation. */
|
|
876
|
+
auto_prompt_applied?: boolean;
|
|
783
877
|
/** True when SBMC has a LoRA for this set on another base model but not the one used. */
|
|
784
878
|
lora_available_but_incompatible?: boolean;
|
|
785
879
|
/** True when the set isn't applicable to the chosen model (its modality / applicable base models exclude it) so no LoRA or assets were applied. */
|
|
@@ -997,7 +1091,7 @@ export interface InferenceReferenceSetInput {
|
|
|
997
1091
|
weight?: number;
|
|
998
1092
|
}
|
|
999
1093
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
1000
|
-
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "video_subtitle" | "video_lipsync" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on";
|
|
1094
|
+
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "video_subtitle" | "video_lipsync" | "motion_transfer" | "video_object_swap" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on";
|
|
1001
1095
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1002
1096
|
export interface InferenceWebhookEvent {
|
|
1003
1097
|
/** Unique event id, repeated in the webhook-id header. */
|
|
@@ -1050,6 +1144,14 @@ export interface ListScoringRulesOutput {
|
|
|
1050
1144
|
/** Every rule in force for the scope, workspace-mandated rules first. */
|
|
1051
1145
|
rules: Array<ScoringRuleSummary>;
|
|
1052
1146
|
}
|
|
1147
|
+
export interface ListSessionObjectsOutput {
|
|
1148
|
+
objects: Array<SessionObject>;
|
|
1149
|
+
pagination: PaginationOutput;
|
|
1150
|
+
}
|
|
1151
|
+
export interface ListSessionsOutput {
|
|
1152
|
+
sessions: Array<SessionSummary>;
|
|
1153
|
+
pagination: PaginationOutput;
|
|
1154
|
+
}
|
|
1053
1155
|
export interface ListTrainingRunsResponse {
|
|
1054
1156
|
runs: Array<TrainingRunSummary>;
|
|
1055
1157
|
pagination: PaginationOutput;
|
|
@@ -1140,6 +1242,23 @@ export interface ModelSummary {
|
|
|
1140
1242
|
/** Typical generation time range, e.g. '5-15s' */
|
|
1141
1243
|
inference_timing: string;
|
|
1142
1244
|
}
|
|
1245
|
+
/** The view a source image shows, for 3D models that read their sources by view. */
|
|
1246
|
+
export type MultiViewSlot = "FRONT" | "LEFT" | "BACK" | "RIGHT";
|
|
1247
|
+
/**
|
|
1248
|
+
* One section of a planned track, carrying its own length, styles and sung lines.
|
|
1249
|
+
*
|
|
1250
|
+
* ``positive_styles``/``negative_styles`` are the section's delta: what enters or leaves
|
|
1251
|
+
* here, against the palette the plan holds for the whole track. A section's exclusions are
|
|
1252
|
+
* what keep it empty of something the rest of the track has, the plan-wide negatives
|
|
1253
|
+
* cannot express "no percussion until the second section".
|
|
1254
|
+
*/
|
|
1255
|
+
export interface MusicSection {
|
|
1256
|
+
name: string;
|
|
1257
|
+
duration_seconds: number;
|
|
1258
|
+
positive_styles?: Array<string>;
|
|
1259
|
+
negative_styles?: Array<string>;
|
|
1260
|
+
lines?: Array<string>;
|
|
1261
|
+
}
|
|
1143
1262
|
/**
|
|
1144
1263
|
* Inference parameters after model-specific normalization.
|
|
1145
1264
|
*
|
|
@@ -1184,6 +1303,7 @@ export interface NormalizedInferenceParametersV2 {
|
|
|
1184
1303
|
/** Resolved FPS. */
|
|
1185
1304
|
fps?: number | null;
|
|
1186
1305
|
}
|
|
1306
|
+
export type ObjectEventType = "created" | "updated" | "deleted";
|
|
1187
1307
|
export interface PaginationOutput {
|
|
1188
1308
|
/** Cursor to use to get the next page */
|
|
1189
1309
|
next_cursor?: string | null;
|
|
@@ -1364,6 +1484,67 @@ export interface ScoringRunWebhookEvent {
|
|
|
1364
1484
|
/** Whatever you sent as webhook.metadata. */
|
|
1365
1485
|
metadata?: Record<string, string>;
|
|
1366
1486
|
}
|
|
1487
|
+
/** One `object` event on a session's stream. */
|
|
1488
|
+
export interface SessionEvent {
|
|
1489
|
+
/** What happened to the object: created, updated, or deleted. */
|
|
1490
|
+
type: ObjectEventType;
|
|
1491
|
+
/** The object's id. For a file this is its file_id, the one generation outputs report. */
|
|
1492
|
+
object_id: string;
|
|
1493
|
+
/** The object as it stands after the event. Null on a deletion, or once the object is gone. */
|
|
1494
|
+
object?: SessionEventObject | null;
|
|
1495
|
+
}
|
|
1496
|
+
/** What the object an event names looks like now. Absent on a deletion. */
|
|
1497
|
+
export interface SessionEventObject {
|
|
1498
|
+
/** Whether the object is a single file or a composite asset. */
|
|
1499
|
+
kind: "file" | "asset";
|
|
1500
|
+
/** The object's display name. */
|
|
1501
|
+
name: string;
|
|
1502
|
+
/** MIME type, for a file. */
|
|
1503
|
+
content_type?: string | null;
|
|
1504
|
+
/** Processing status, for a file. A file is ready to download once it reads `processed`. */
|
|
1505
|
+
status?: string | null;
|
|
1506
|
+
/** Download URL, for a processed file. */
|
|
1507
|
+
url?: string | null;
|
|
1508
|
+
/** Thumbnail URL, for a file that has one. */
|
|
1509
|
+
preview_url?: string | null;
|
|
1510
|
+
/** Width in pixels, for an image or video file. */
|
|
1511
|
+
width?: number | null;
|
|
1512
|
+
/** Height in pixels, for an image or video file. */
|
|
1513
|
+
height?: number | null;
|
|
1514
|
+
}
|
|
1515
|
+
/** A file or asset in the session, as it stands now: what a `SessionEvent` carries. */
|
|
1516
|
+
export interface SessionObject {
|
|
1517
|
+
/** Whether the object is a single file or a composite asset. */
|
|
1518
|
+
kind: "file" | "asset";
|
|
1519
|
+
/** The object's display name. */
|
|
1520
|
+
name: string;
|
|
1521
|
+
/** MIME type, for a file. */
|
|
1522
|
+
content_type?: string | null;
|
|
1523
|
+
/** Processing status, for a file. A file is ready to download once it reads `processed`. */
|
|
1524
|
+
status?: string | null;
|
|
1525
|
+
/** Download URL, for a processed file. */
|
|
1526
|
+
url?: string | null;
|
|
1527
|
+
/** Thumbnail URL, for a file that has one. */
|
|
1528
|
+
preview_url?: string | null;
|
|
1529
|
+
/** Width in pixels, for an image or video file. */
|
|
1530
|
+
width?: number | null;
|
|
1531
|
+
/** Height in pixels, for an image or video file. */
|
|
1532
|
+
height?: number | null;
|
|
1533
|
+
/** The object's id, the same one its `SessionEvent`s carry. For a file this is its file_id. */
|
|
1534
|
+
object_id: string;
|
|
1535
|
+
}
|
|
1536
|
+
export interface SessionSummary {
|
|
1537
|
+
/** The session's unique identifier. */
|
|
1538
|
+
session_id: string;
|
|
1539
|
+
/** The session's display name. */
|
|
1540
|
+
name: string;
|
|
1541
|
+
/** The project the session is filed under, if any. */
|
|
1542
|
+
project_id?: string | null;
|
|
1543
|
+
/** When the session was created. */
|
|
1544
|
+
created_at: string;
|
|
1545
|
+
/** When anyone last worked in the session, or null if nobody has yet. */
|
|
1546
|
+
last_interacted_at?: string | null;
|
|
1547
|
+
}
|
|
1367
1548
|
export interface SetUsageLimitBody {
|
|
1368
1549
|
/** Creative Units cap for the period. */
|
|
1369
1550
|
cu_limit: number;
|
|
@@ -1409,12 +1590,18 @@ export interface StartTrainingResponse {
|
|
|
1409
1590
|
* are seeded only by the fixtures in ``core/workflows/fixtures/data/reference_sets`` and
|
|
1410
1591
|
* a user-facing write path must reject them (see ``USER_SETTABLE_CATEGORIES``).
|
|
1411
1592
|
*/
|
|
1412
|
-
export type StyleCategory = "general" | "character" | "object" | "scene" | "
|
|
1593
|
+
export type StyleCategory = "general" | "character" | "object" | "scene" | "animation" | "camera_movement" | "camera_angle" | "camera_framing" | "camera_lens" | "scene_lighting" | "scene_composition" | "scene_atmosphere" | "time_and_motion" | "genre_look" | "optical_effect" | "visual_effect" | "character_performance";
|
|
1413
1594
|
export interface ToolGuidanceFileTypeSupport {
|
|
1414
1595
|
/** Guidance file type, such as init_image, reference_image, first_frame, pose, or depth. */
|
|
1415
1596
|
type: string;
|
|
1416
1597
|
/** Maximum number of files of this type accepted by the model. */
|
|
1417
1598
|
max_count: number;
|
|
1599
|
+
/** Longest video or audio this slot accepts, in seconds. When the slot takes several files, this caps their combined length. Null when the model states no cap. */
|
|
1600
|
+
max_duration_seconds?: number | null;
|
|
1601
|
+
/** Shortest video or audio this slot accepts, in seconds; a shorter one is rejected. Null when the model states no floor. */
|
|
1602
|
+
min_duration_seconds?: number | null;
|
|
1603
|
+
/** Minimum number of files of this type a run must supply. 0 means the input is optional. */
|
|
1604
|
+
min_count?: number;
|
|
1418
1605
|
}
|
|
1419
1606
|
export interface TrainedModelResponse {
|
|
1420
1607
|
/** ID of the trained finetune (LoRA) for the run. */
|
|
@@ -1466,6 +1653,10 @@ export interface UpdateProjectBody {
|
|
|
1466
1653
|
/** Set true to archive, false to unarchive. Omit to leave unchanged. */
|
|
1467
1654
|
archived?: boolean | null;
|
|
1468
1655
|
}
|
|
1656
|
+
export interface UpdateSessionBody {
|
|
1657
|
+
/** The session's new display name. */
|
|
1658
|
+
name: string;
|
|
1659
|
+
}
|
|
1469
1660
|
export type UsageLimitPeriod = "daily" | "weekly" | "monthly";
|
|
1470
1661
|
export interface ValidationError {
|
|
1471
1662
|
loc: Array<string | number>;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.15";
|