@layer_ai/sdk 1.0.62 → 1.0.63

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.
@@ -441,6 +441,14 @@ export interface EstimateInferencePriceRequest {
441
441
  segment_by?: SegmentBy | null;
442
442
  /** Parts to split along when segment_by is PARTS, at most 10. */
443
443
  segment_part_names?: Array<string> | null;
444
+ /** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
445
+ segment_target?: SegmentTarget | null;
446
+ /** How many parts a CHARACTER split makes. Support varies by model. */
447
+ segment_parts?: number | null;
448
+ /** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
449
+ segment_level?: SegmentLevel | null;
450
+ /** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
451
+ segment_strength?: number | null;
444
452
  /** Generate quad mesh. */
445
453
  quad_mesh?: boolean | null;
446
454
  /** Generate PBR materials. */
@@ -586,6 +594,14 @@ export interface EstimateInferencePriceV2Request {
586
594
  segment_by?: SegmentBy | null;
587
595
  /** Parts to split along when segment_by is PARTS, at most 10. */
588
596
  segment_part_names?: Array<string> | null;
597
+ /** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
598
+ segment_target?: SegmentTarget | null;
599
+ /** How many parts a CHARACTER split makes. Support varies by model. */
600
+ segment_parts?: number | null;
601
+ /** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
602
+ segment_level?: SegmentLevel | null;
603
+ /** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
604
+ segment_strength?: number | null;
589
605
  /** Generate quad mesh. */
590
606
  quad_mesh?: boolean | null;
591
607
  /** Generate PBR materials. */
@@ -841,6 +857,14 @@ export interface ExecuteInferenceRequest {
841
857
  segment_by?: SegmentBy | null;
842
858
  /** Parts to split along when segment_by is PARTS, at most 10. */
843
859
  segment_part_names?: Array<string> | null;
860
+ /** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
861
+ segment_target?: SegmentTarget | null;
862
+ /** How many parts a CHARACTER split makes. Support varies by model. */
863
+ segment_parts?: number | null;
864
+ /** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
865
+ segment_level?: SegmentLevel | null;
866
+ /** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
867
+ segment_strength?: number | null;
844
868
  /** Generate quad mesh. */
845
869
  quad_mesh?: boolean | null;
846
870
  /** Generate PBR materials. */
@@ -996,6 +1020,14 @@ export interface ExecuteInferenceV2Request {
996
1020
  segment_by?: SegmentBy | null;
997
1021
  /** Parts to split along when segment_by is PARTS, at most 10. */
998
1022
  segment_part_names?: Array<string> | null;
1023
+ /** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
1024
+ segment_target?: SegmentTarget | null;
1025
+ /** How many parts a CHARACTER split makes. Support varies by model. */
1026
+ segment_parts?: number | null;
1027
+ /** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
1028
+ segment_level?: SegmentLevel | null;
1029
+ /** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
1030
+ segment_strength?: number | null;
999
1031
  /** Generate quad mesh. */
1000
1032
  quad_mesh?: boolean | null;
1001
1033
  /** Generate PBR materials. */
@@ -1497,7 +1529,7 @@ export interface InferenceReferenceSetInput {
1497
1529
  weight?: number;
1498
1530
  }
1499
1531
  export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
1500
- 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" | "video_character_swap" | "relight_video" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "voice_change" | "audio_separation" | "audio_isolation" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "restyle" | "pixelate" | "colorize" | "change_expression" | "erase_object" | "edit_text" | "dub_video" | "extend_audio" | "generate_pbr_materials" | "create_skybox" | "complete_draft";
1532
+ 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" | "video_character_swap" | "relight_video" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "image_mask" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "voice_change" | "audio_separation" | "audio_isolation" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "restyle" | "pixelate" | "colorize" | "change_expression" | "erase_object" | "edit_text" | "dub_video" | "extend_audio" | "generate_pbr_materials" | "create_skybox" | "complete_draft";
1501
1533
  /** Delivered when an inference run reaches a terminal state. */
1502
1534
  export interface InferenceWebhookEvent {
1503
1535
  /** Unique event id, repeated in the webhook-id header. */
@@ -2027,6 +2059,17 @@ export interface ScoringRunWebhookEvent {
2027
2059
  * Offered where the model's ``segment_by`` capability lists it.
2028
2060
  */
2029
2061
  export type SegmentBy = "AUTO" | "PARTS";
2062
+ /**
2063
+ * Split granularity for a general-target segmentation (more parts as it
2064
+ * rises). Only meaningful when the target is ``GENERAL``.
2065
+ */
2066
+ export type SegmentLevel = "LOW" | "MEDIUM" | "HIGH";
2067
+ /**
2068
+ * What a mesh-segmentation model treats the input as, selecting its split
2069
+ * strategy. ``CHARACTER`` splits a humanoid mesh with a body-part template;
2070
+ * ``GENERAL`` splits any mesh by granularity level (e.g. Hi3D Parts).
2071
+ */
2072
+ export type SegmentTarget = "CHARACTER" | "GENERAL";
2030
2073
  /** One `object` event on a session's stream. */
2031
2074
  export interface SessionEvent {
2032
2075
  /** What happened to the object: created, updated, or deleted. */
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.62";
1
+ export const VERSION = "1.0.63";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",