@layer_ai/sdk 1.0.20 → 1.0.25

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.
@@ -46,6 +46,8 @@ export interface BaseModelCapabilitiesREST {
46
46
  inpainting?: boolean;
47
47
  outpainting?: boolean;
48
48
  tileability?: boolean;
49
+ /** Generates a tileable image by construction when `tileability` is set, rather than through Layer's seam-repair pass. Cannot be combined with a LoRA style. */
50
+ native_tileability?: boolean;
49
51
  /** 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. */
50
52
  guidance_file_types?: Array<ToolGuidanceFileTypeSupport>;
51
53
  /** 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. */
@@ -216,7 +218,7 @@ export interface CliAuthConfiguration {
216
218
  * Each is its own Auth0 application, so Auth0 can tell them apart in its logs, metrics and
217
219
  * grants, and a client-level change to one never reaches the other.
218
220
  */
219
- export type CliClient = "cli" | "blender";
221
+ export type CliClient = "cli" | "blender" | "unity";
220
222
  /**
221
223
  * A track authored as an ordered list of sections rather than as one description.
222
224
  *
@@ -429,6 +431,8 @@ export interface EstimateInferencePriceV2Request {
429
431
  quality?: "low" | "medium" | "high" | null;
430
432
  /** Output sharpness. */
431
433
  sharpness?: number | null;
434
+ /** How much the provider rewrites the prompt before generating: off, fast, standard or quality, on models whose capabilities list prompt_enhancement_levels. A level the model does not offer settles on the nearest one it does; unset leaves the provider's own default. */
435
+ prompt_enhancement?: PromptEnhancement | null;
432
436
  /** Output length in seconds — a video clip's duration, or the clip length for audio models whose capabilities report duration_seconds_min and duration_seconds_max. A value outside a model's supported range is refused. */
433
437
  duration_seconds?: number | null;
434
438
  /** Generate audio with video. */
@@ -489,6 +493,32 @@ export interface EstimateInferencePriceV2Request {
489
493
  creativity?: number | null;
490
494
  /** Resemblance to original for upscaling. */
491
495
  resemblance?: number | null;
496
+ /** Noise removal. On the models whose capabilities report `denoise_range`, in that range; a value outside it is refused. */
497
+ denoise?: number | null;
498
+ /** Compression-artifact removal. On the models whose capabilities report `compression_repair_range`, in that range; a value outside it is refused. */
499
+ compression_repair?: number | null;
500
+ /** Removal of bright edge outlines. On the models whose capabilities report `halo_reduction_range`, in that range; a value outside it is refused. */
501
+ halo_reduction?: number | null;
502
+ /** How much of the source's own detail is kept. On the models whose capabilities report `recover_detail_range`, in that range; a value outside it is refused. */
503
+ recover_detail?: number | null;
504
+ /** How much fine detail the model adds. On the models whose capabilities report `detail_range`, in that range; a value outside it is refused. */
505
+ detail?: number | null;
506
+ /** Film grain laid over the result. On the models whose capabilities report `grain_range`, in that range; a value outside it is refused. */
507
+ grain?: number | null;
508
+ /** How strongly lettering and shapes are rebuilt. On the models whose capabilities report `refine_strength_range`, in that range; a value outside it is refused. */
509
+ refine_strength?: number | null;
510
+ /** Bias of added detail toward photorealism. On the models whose capabilities report `realism_range`, in that range; a value outside it is refused. */
511
+ realism?: number | null;
512
+ /** Set false to skip the face-restoration pass, on models whose capabilities report face_enhancement. */
513
+ face_enhancement?: boolean | null;
514
+ /** Strength of the face pass. On the models whose capabilities report `face_enhancement_strength_range`, in that range; a value outside it is refused. */
515
+ face_enhancement_strength?: number | null;
516
+ /** Facial detail the face pass invents. On the models whose capabilities report `face_enhancement_creativity_range`, in that range; a value outside it is refused. */
517
+ face_enhancement_creativity?: number | null;
518
+ /** all, subject or background: the part of the image enhanced, on models whose capabilities report target_region. */
519
+ target_region?: TargetRegion | null;
520
+ /** Keep the source's palette, on models whose capabilities report color_preservation. */
521
+ color_preservation?: boolean | null;
492
522
  /** Vectorize the output image. */
493
523
  vectorize?: boolean | null;
494
524
  /** Put the output on a transparent background. Also accepted as `remove_background`. */
@@ -721,6 +751,8 @@ export interface ExecuteInferenceV2Request {
721
751
  quality?: "low" | "medium" | "high" | null;
722
752
  /** Output sharpness. */
723
753
  sharpness?: number | null;
754
+ /** How much the provider rewrites the prompt before generating: off, fast, standard or quality, on models whose capabilities list prompt_enhancement_levels. A level the model does not offer settles on the nearest one it does; unset leaves the provider's own default. */
755
+ prompt_enhancement?: PromptEnhancement | null;
724
756
  /** Output length in seconds — a video clip's duration, or the clip length for audio models whose capabilities report duration_seconds_min and duration_seconds_max. A value outside a model's supported range is refused. */
725
757
  duration_seconds?: number | null;
726
758
  /** Generate audio with video. */
@@ -781,6 +813,32 @@ export interface ExecuteInferenceV2Request {
781
813
  creativity?: number | null;
782
814
  /** Resemblance to original for upscaling. */
783
815
  resemblance?: number | null;
816
+ /** Noise removal. On the models whose capabilities report `denoise_range`, in that range; a value outside it is refused. */
817
+ denoise?: number | null;
818
+ /** Compression-artifact removal. On the models whose capabilities report `compression_repair_range`, in that range; a value outside it is refused. */
819
+ compression_repair?: number | null;
820
+ /** Removal of bright edge outlines. On the models whose capabilities report `halo_reduction_range`, in that range; a value outside it is refused. */
821
+ halo_reduction?: number | null;
822
+ /** How much of the source's own detail is kept. On the models whose capabilities report `recover_detail_range`, in that range; a value outside it is refused. */
823
+ recover_detail?: number | null;
824
+ /** How much fine detail the model adds. On the models whose capabilities report `detail_range`, in that range; a value outside it is refused. */
825
+ detail?: number | null;
826
+ /** Film grain laid over the result. On the models whose capabilities report `grain_range`, in that range; a value outside it is refused. */
827
+ grain?: number | null;
828
+ /** How strongly lettering and shapes are rebuilt. On the models whose capabilities report `refine_strength_range`, in that range; a value outside it is refused. */
829
+ refine_strength?: number | null;
830
+ /** Bias of added detail toward photorealism. On the models whose capabilities report `realism_range`, in that range; a value outside it is refused. */
831
+ realism?: number | null;
832
+ /** Set false to skip the face-restoration pass, on models whose capabilities report face_enhancement. */
833
+ face_enhancement?: boolean | null;
834
+ /** Strength of the face pass. On the models whose capabilities report `face_enhancement_strength_range`, in that range; a value outside it is refused. */
835
+ face_enhancement_strength?: number | null;
836
+ /** Facial detail the face pass invents. On the models whose capabilities report `face_enhancement_creativity_range`, in that range; a value outside it is refused. */
837
+ face_enhancement_creativity?: number | null;
838
+ /** all, subject or background: the part of the image enhanced, on models whose capabilities report target_region. */
839
+ target_region?: TargetRegion | null;
840
+ /** Keep the source's palette, on models whose capabilities report color_preservation. */
841
+ color_preservation?: boolean | null;
784
842
  /** Vectorize the output image. */
785
843
  vectorize?: boolean | null;
786
844
  /** Put the output on a transparent background. Also accepted as `remove_background`. */
@@ -908,6 +966,8 @@ export interface ForgeReferenceSetContribution {
908
966
  lora_available_but_incompatible?: boolean;
909
967
  /** 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. */
910
968
  skipped_not_applicable?: boolean;
969
+ /** True when the set's category means nothing for the chosen model's modality (a camera move on an image model), so it was dropped entirely, prompt text included. Implies skipped_not_applicable. */
970
+ skipped_irrelevant_category?: boolean;
911
971
  }
912
972
  export interface ForgeRunAsset {
913
973
  /** File ID for the generated asset. */
@@ -1121,7 +1181,7 @@ export interface InferenceReferenceSetInput {
1121
1181
  weight?: number;
1122
1182
  }
1123
1183
  export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
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";
1184
+ 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" | "generate_pbr_materials";
1125
1185
  /** Delivered when an inference run reaches a terminal state. */
1126
1186
  export interface InferenceWebhookEvent {
1127
1187
  /** Unique event id, repeated in the webhook-id header. */
@@ -1403,6 +1463,19 @@ export interface ProjectSummary {
1403
1463
  /** Number of library objects currently linked to this project. */
1404
1464
  object_count: number;
1405
1465
  }
1466
+ /**
1467
+ * How much effort the provider spends rewriting the prompt before it generates.
1468
+ *
1469
+ * One ladder for a dial providers spell a dozen ways: an on/off flag (`enable_prompt_expansion`,
1470
+ * `prompt_optimizer`, `enhance_prompt`, `expand_prompt`, `autoprompt`, ...) or a mode (MiniMax's
1471
+ * disabled/fast/balanced/quality, Seedream's fast/standard, Qwen's none/quality). Member order is
1472
+ * the ladder. Each model declares the levels it offers as ``prompt_enhancement_levels``, and the
1473
+ * provider mapping spells a level its own way; an on/off provider offers OFF and STANDARD.
1474
+ *
1475
+ * This is the provider's own rewriting, distinct from Layer's prompt-enhance action, which
1476
+ * rewrites the prompt visibly before the request is made.
1477
+ */
1478
+ export type PromptEnhancement = "off" | "fast" | "standard" | "quality";
1406
1479
  export interface ReferenceSetFile {
1407
1480
  /** ID of a file attached to the reference set. */
1408
1481
  file_id: string;
@@ -1640,12 +1713,13 @@ export interface StartTrainingResponse {
1640
1713
  * a user-facing write path must reject them (see ``USER_SETTABLE_CATEGORIES``).
1641
1714
  */
1642
1715
  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";
1716
+ export type TargetRegion = "all" | "subject" | "background";
1643
1717
  export interface ToolGuidanceFileTypeSupport {
1644
1718
  /** Guidance file type, such as init_image, reference_image, first_frame, pose, or depth. */
1645
1719
  type: string;
1646
1720
  /** Maximum number of files of this type accepted by the model. */
1647
1721
  max_count: number;
1648
- /** 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. */
1722
+ /** Longest single video or audio this slot accepts, in seconds. A cap on the combined length of several files is listed under shared_guidance_limits. Null when the model states no cap. */
1649
1723
  max_duration_seconds?: number | null;
1650
1724
  /** Shortest video or audio this slot accepts, in seconds; a shorter one is rejected. Null when the model states no floor. */
1651
1725
  min_duration_seconds?: number | null;
@@ -1657,6 +1731,10 @@ export interface ToolSharedGuidanceLimit {
1657
1731
  types: Array<string>;
1658
1732
  /** Most files of these types one run may attach combined. Only one first_frame counts. */
1659
1733
  max_count: number;
1734
+ /** Shortest summed length, in seconds, of the videos or audio of these types. Null when unbounded. */
1735
+ min_combined_duration_seconds?: number | null;
1736
+ /** Longest summed length, in seconds, of the videos or audio of these types. Null when unbounded. */
1737
+ max_combined_duration_seconds?: number | null;
1660
1738
  }
1661
1739
  export interface TrainedModelResponse {
1662
1740
  /** ID of the trained finetune (LoRA) for the run. */
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.20";
1
+ export const VERSION = "1.0.25";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.25",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",