@layer_ai/sdk 1.0.16 → 1.0.20
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 +67 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,20 @@ export interface AddProjectMembersBody {
|
|
|
12
12
|
/** Ids of workspace members to add. All must already be active workspace members. */
|
|
13
13
|
user_ids: Array<string>;
|
|
14
14
|
}
|
|
15
|
+
/** Which boundary of the source clip a section's times are measured from. */
|
|
16
|
+
export type AudioAnchor = "START" | "END";
|
|
17
|
+
/**
|
|
18
|
+
* An interior time window of the source clip to regenerate (inpaint).
|
|
19
|
+
*
|
|
20
|
+
* Times are non-negative magnitudes measured from ``anchor``. The window is
|
|
21
|
+
* always inside the clip; extending past the clip is outpainting (see
|
|
22
|
+
* [[AudioExtension]]), a separate operation.
|
|
23
|
+
*/
|
|
24
|
+
export interface AudioEditSection {
|
|
25
|
+
start_seconds: number;
|
|
26
|
+
end_seconds: number;
|
|
27
|
+
anchor?: AudioAnchor;
|
|
28
|
+
}
|
|
15
29
|
/**
|
|
16
30
|
* Container for a delivered audio file.
|
|
17
31
|
*
|
|
@@ -34,6 +48,8 @@ export interface BaseModelCapabilitiesREST {
|
|
|
34
48
|
tileability?: boolean;
|
|
35
49
|
/** 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
50
|
guidance_file_types?: Array<ToolGuidanceFileTypeSupport>;
|
|
51
|
+
/** Caps on the combined count of several guidance types, on top of each type's own max_count. A run must fit both: 9 images, 3 videos and 3 audio files can each be within their own limits and still exceed a 12-file total. */
|
|
52
|
+
shared_guidance_limits?: Array<ToolSharedGuidanceLimit>;
|
|
37
53
|
/** 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
54
|
init_image_views?: Array<string>;
|
|
39
55
|
/** Supported video durations in seconds */
|
|
@@ -487,6 +503,12 @@ export interface EstimateInferencePriceV2Request {
|
|
|
487
503
|
camera_transform?: CameraTransformDelta | null;
|
|
488
504
|
/** 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
505
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
506
|
+
/** Relight the init image: one or more orbit lights, each placed by `rotation` (`yaw` around the subject and `pitch` above or below it, in degrees) with an `intensity` and a `color_hex`. Honored by the models whose capabilities report `scene_lighting`. */
|
|
507
|
+
scene_lighting?: SceneLightingConfig | null;
|
|
508
|
+
/** Regenerate stretches of the init audio: each section is a window from `start_seconds` to `end_seconds`, measured from the clip's `anchor` (its start by default), that the prompt rewrites while the rest is kept. Honored by the audio models listed for the `inpainting` use case. */
|
|
509
|
+
audio_sections?: Array<AudioEditSection>;
|
|
510
|
+
/** Replace a span of the init video with a generated scene: the source cuts at `start_seconds` and picks up again at `end_seconds`, both from the clip's start, while `duration_seconds` sets the new scene's length. Required by the video models listed for the `insert_video` use case. */
|
|
511
|
+
video_section?: VideoSection | null;
|
|
490
512
|
/** Reference images/files to guide generation. */
|
|
491
513
|
guidance_files?: Array<ForgeGuidanceFileInput>;
|
|
492
514
|
}
|
|
@@ -773,6 +795,12 @@ export interface ExecuteInferenceV2Request {
|
|
|
773
795
|
camera_transform?: CameraTransformDelta | null;
|
|
774
796
|
/** 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
797
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
798
|
+
/** Relight the init image: one or more orbit lights, each placed by `rotation` (`yaw` around the subject and `pitch` above or below it, in degrees) with an `intensity` and a `color_hex`. Honored by the models whose capabilities report `scene_lighting`. */
|
|
799
|
+
scene_lighting?: SceneLightingConfig | null;
|
|
800
|
+
/** Regenerate stretches of the init audio: each section is a window from `start_seconds` to `end_seconds`, measured from the clip's `anchor` (its start by default), that the prompt rewrites while the rest is kept. Honored by the audio models listed for the `inpainting` use case. */
|
|
801
|
+
audio_sections?: Array<AudioEditSection>;
|
|
802
|
+
/** Replace a span of the init video with a generated scene: the source cuts at `start_seconds` and picks up again at `end_seconds`, both from the clip's start, while `duration_seconds` sets the new scene's length. Required by the video models listed for the `insert_video` use case. */
|
|
803
|
+
video_section?: VideoSection | null;
|
|
776
804
|
/** Reference images/files to guide generation. */
|
|
777
805
|
guidance_files?: Array<ForgeGuidanceFileInput>;
|
|
778
806
|
/** Random seed. -1 for random. */
|
|
@@ -870,6 +898,8 @@ export interface ForgeReferenceSetContribution {
|
|
|
870
898
|
voice_applied?: boolean;
|
|
871
899
|
/** Number of assets successfully mapped to guidance inputs. */
|
|
872
900
|
mapped_asset_count?: number;
|
|
901
|
+
/** True when the set's color palette was appended to the prompt. */
|
|
902
|
+
palette_applied?: boolean;
|
|
873
903
|
/** True when the set fell back to prompt-only representation. */
|
|
874
904
|
prompt_fallback_applied?: boolean;
|
|
875
905
|
/** 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. */
|
|
@@ -1091,7 +1121,7 @@ export interface InferenceReferenceSetInput {
|
|
|
1091
1121
|
weight?: number;
|
|
1092
1122
|
}
|
|
1093
1123
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
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";
|
|
1124
|
+
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" | "insert_video" | "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" | "denoise_audio" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on";
|
|
1095
1125
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1096
1126
|
export interface InferenceWebhookEvent {
|
|
1097
1127
|
/** Unique event id, repeated in the webhook-id header. */
|
|
@@ -1304,6 +1334,21 @@ export interface NormalizedInferenceParametersV2 {
|
|
|
1304
1334
|
fps?: number | null;
|
|
1305
1335
|
}
|
|
1306
1336
|
export type ObjectEventType = "created" | "updated" | "deleted";
|
|
1337
|
+
export interface OrbitLight {
|
|
1338
|
+
id: string;
|
|
1339
|
+
distance: number;
|
|
1340
|
+
rotation: OrbitLightRotation;
|
|
1341
|
+
properties: OrbitLightProperties;
|
|
1342
|
+
}
|
|
1343
|
+
export interface OrbitLightProperties {
|
|
1344
|
+
intensity: number;
|
|
1345
|
+
color_hex: string;
|
|
1346
|
+
cast_shadows?: boolean | null;
|
|
1347
|
+
}
|
|
1348
|
+
export interface OrbitLightRotation {
|
|
1349
|
+
pitch: number;
|
|
1350
|
+
yaw: number;
|
|
1351
|
+
}
|
|
1307
1352
|
export interface PaginationOutput {
|
|
1308
1353
|
/** Cursor to use to get the next page */
|
|
1309
1354
|
next_cursor?: string | null;
|
|
@@ -1409,6 +1454,10 @@ export interface RotateWebhookSecretResponse {
|
|
|
1409
1454
|
/** When the previous secret stops signing. Until then both secrets sign every delivery, so a receiver can be updated without dropping anything. */
|
|
1410
1455
|
previous_secret_expires_at: string;
|
|
1411
1456
|
}
|
|
1457
|
+
/** An array of orbiting light sources to populate the graphics engine environment. */
|
|
1458
|
+
export interface SceneLightingConfig {
|
|
1459
|
+
lights?: Array<OrbitLight>;
|
|
1460
|
+
}
|
|
1412
1461
|
export interface ScoreFilesBody {
|
|
1413
1462
|
/** The files to score. Images, video and 3D can be judged; audio and text cannot. */
|
|
1414
1463
|
file_ids: Array<string>;
|
|
@@ -1590,7 +1639,7 @@ export interface StartTrainingResponse {
|
|
|
1590
1639
|
* are seeded only by the fixtures in ``core/workflows/fixtures/data/reference_sets`` and
|
|
1591
1640
|
* a user-facing write path must reject them (see ``USER_SETTABLE_CATEGORIES``).
|
|
1592
1641
|
*/
|
|
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";
|
|
1642
|
+
export type StyleCategory = "general" | "character" | "object" | "scene" | "animation" | "brand" | "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";
|
|
1594
1643
|
export interface ToolGuidanceFileTypeSupport {
|
|
1595
1644
|
/** Guidance file type, such as init_image, reference_image, first_frame, pose, or depth. */
|
|
1596
1645
|
type: string;
|
|
@@ -1603,6 +1652,12 @@ export interface ToolGuidanceFileTypeSupport {
|
|
|
1603
1652
|
/** Minimum number of files of this type a run must supply. 0 means the input is optional. */
|
|
1604
1653
|
min_count?: number;
|
|
1605
1654
|
}
|
|
1655
|
+
export interface ToolSharedGuidanceLimit {
|
|
1656
|
+
/** Guidance file types that count toward this limit. */
|
|
1657
|
+
types: Array<string>;
|
|
1658
|
+
/** Most files of these types one run may attach combined. Only one first_frame counts. */
|
|
1659
|
+
max_count: number;
|
|
1660
|
+
}
|
|
1606
1661
|
export interface TrainedModelResponse {
|
|
1607
1662
|
/** ID of the trained finetune (LoRA) for the run. */
|
|
1608
1663
|
finetune_id: string;
|
|
@@ -1666,6 +1721,16 @@ export interface ValidationError {
|
|
|
1666
1721
|
ctx?: Record<string, unknown>;
|
|
1667
1722
|
}
|
|
1668
1723
|
export type VideoEffectType = "general" | "orbit_360" | "action_run" | "agent_reveal" | "arc" | "arc_left" | "baseball_kick" | "basketball_dunks" | "boxing" | "buckle_up" | "building_explosion" | "bullet_time" | "car_chasing" | "car_explosion" | "car_grip" | "catch" | "catwalk" | "crane_down" | "crane_over_the_head" | "crane_up" | "crash_zoom_in" | "crash_zoom_out" | "dirty_lens" | "disintegration" | "dolly_in" | "dolly_left" | "dolly_out" | "dolly_right" | "dolly_zoom_in" | "dolly_zoom_out" | "double_dolly" | "downhill_pov" | "dutch_angle" | "eyes_in" | "face_punch" | "fisheye" | "flying" | "focus_change" | "fpv_drone" | "glam" | "handheld" | "head_tracking" | "hyperlapse" | "invisible" | "jib_down" | "jib_up" | "kiss" | "lazy_susan" | "lens_crack" | "lens_flare" | "levitation" | "low_shutter" | "melting" | "moonwalk_left" | "moonwalk_right" | "mouth_in" | "object_pov" | "overhead" | "push_to_glass" | "rap_flex" | "robo_arm" | "set_on_fire" | "skateboard_glide" | "skateboarding" | "skateboard_kickflip" | "skateboard_ollie" | "skate_cruise" | "ski_carving" | "ski_powder" | "snorricam" | "snowboard_carving" | "snowboard_powder" | "soul_jump" | "static" | "super_dolly_in" | "super_dolly_out" | "tentacles" | "through_object_in" | "through_object_out" | "thunder_god" | "tilt_down" | "tilt_up" | "timelapse_human" | "timelapse_landscape" | "turning_metal" | "whip_pan" | "wiggle" | "wind_to_face" | "yoyo_zoom" | "zoom_in" | "zoom_out";
|
|
1724
|
+
/**
|
|
1725
|
+
* A time window of the source clip, in seconds from its start, that an edit replaces.
|
|
1726
|
+
*
|
|
1727
|
+
* A video insert cuts the source at ``start_seconds``, plays a generated scene, then picks the
|
|
1728
|
+
* source back up at ``end_seconds``.
|
|
1729
|
+
*/
|
|
1730
|
+
export interface VideoSection {
|
|
1731
|
+
start_seconds: number;
|
|
1732
|
+
end_seconds: number;
|
|
1733
|
+
}
|
|
1669
1734
|
export type WebhookDeliveryStatus = "pending" | "delivered" | "failed";
|
|
1670
1735
|
/**
|
|
1671
1736
|
* Every event the public API can deliver.
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.20";
|