@layer_ai/sdk 1.0.44 → 1.0.46
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 +70 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -377,6 +377,18 @@ export interface EstimateInferencePriceRequest {
|
|
|
377
377
|
detailed_geometry?: boolean | null;
|
|
378
378
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
379
379
|
remesh_geometry?: boolean | null;
|
|
380
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
381
|
+
texture_resolution?: TextureResolution | null;
|
|
382
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
383
|
+
remove_lighting?: boolean | null;
|
|
384
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
385
|
+
mesh_density?: MeshDensity | null;
|
|
386
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
387
|
+
preserve_uvs?: boolean | null;
|
|
388
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
389
|
+
segment_by?: SegmentBy | null;
|
|
390
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
391
|
+
segment_part_names?: Array<string> | null;
|
|
380
392
|
/** Generate quad mesh. */
|
|
381
393
|
quad_mesh?: boolean | null;
|
|
382
394
|
/** Generate PBR materials. */
|
|
@@ -476,7 +488,7 @@ export interface EstimateInferencePriceV2Request {
|
|
|
476
488
|
generate_audio?: boolean | null;
|
|
477
489
|
/** Keep audio from input video. */
|
|
478
490
|
keep_audio?: boolean | null;
|
|
479
|
-
/** Render a quick, low-cost draft instead of the full-quality output, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input (DRAFT_WORLD for a world). */
|
|
491
|
+
/** Render a quick, low-cost draft instead of the full-quality output, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input (DRAFT_WORLD for a world, DRAFT_MESH for a mesh). */
|
|
480
492
|
draft?: boolean | null;
|
|
481
493
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
482
494
|
instrumental?: boolean | null;
|
|
@@ -502,6 +514,18 @@ export interface EstimateInferencePriceV2Request {
|
|
|
502
514
|
detailed_geometry?: boolean | null;
|
|
503
515
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
504
516
|
remesh_geometry?: boolean | null;
|
|
517
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
518
|
+
texture_resolution?: TextureResolution | null;
|
|
519
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
520
|
+
remove_lighting?: boolean | null;
|
|
521
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
522
|
+
mesh_density?: MeshDensity | null;
|
|
523
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
524
|
+
preserve_uvs?: boolean | null;
|
|
525
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
526
|
+
segment_by?: SegmentBy | null;
|
|
527
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
528
|
+
segment_part_names?: Array<string> | null;
|
|
505
529
|
/** Generate quad mesh. */
|
|
506
530
|
quad_mesh?: boolean | null;
|
|
507
531
|
/** Generate PBR materials. */
|
|
@@ -731,6 +755,18 @@ export interface ExecuteInferenceRequest {
|
|
|
731
755
|
detailed_geometry?: boolean | null;
|
|
732
756
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
733
757
|
remesh_geometry?: boolean | null;
|
|
758
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
759
|
+
texture_resolution?: TextureResolution | null;
|
|
760
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
761
|
+
remove_lighting?: boolean | null;
|
|
762
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
763
|
+
mesh_density?: MeshDensity | null;
|
|
764
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
765
|
+
preserve_uvs?: boolean | null;
|
|
766
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
767
|
+
segment_by?: SegmentBy | null;
|
|
768
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
769
|
+
segment_part_names?: Array<string> | null;
|
|
734
770
|
/** Generate quad mesh. */
|
|
735
771
|
quad_mesh?: boolean | null;
|
|
736
772
|
/** Generate PBR materials. */
|
|
@@ -840,7 +876,7 @@ export interface ExecuteInferenceV2Request {
|
|
|
840
876
|
generate_audio?: boolean | null;
|
|
841
877
|
/** Keep audio from input video. */
|
|
842
878
|
keep_audio?: boolean | null;
|
|
843
|
-
/** Render a quick, low-cost draft instead of the full-quality output, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input (DRAFT_WORLD for a world). */
|
|
879
|
+
/** Render a quick, low-cost draft instead of the full-quality output, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input (DRAFT_WORLD for a world, DRAFT_MESH for a mesh). */
|
|
844
880
|
draft?: boolean | null;
|
|
845
881
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
846
882
|
instrumental?: boolean | null;
|
|
@@ -866,6 +902,18 @@ export interface ExecuteInferenceV2Request {
|
|
|
866
902
|
detailed_geometry?: boolean | null;
|
|
867
903
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
868
904
|
remesh_geometry?: boolean | null;
|
|
905
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
906
|
+
texture_resolution?: TextureResolution | null;
|
|
907
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
908
|
+
remove_lighting?: boolean | null;
|
|
909
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
910
|
+
mesh_density?: MeshDensity | null;
|
|
911
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
912
|
+
preserve_uvs?: boolean | null;
|
|
913
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
914
|
+
segment_by?: SegmentBy | null;
|
|
915
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
916
|
+
segment_part_names?: Array<string> | null;
|
|
869
917
|
/** Generate quad mesh. */
|
|
870
918
|
quad_mesh?: boolean | null;
|
|
871
919
|
/** Generate PBR materials. */
|
|
@@ -1289,7 +1337,7 @@ export interface GroupOut {
|
|
|
1289
1337
|
* file through a different provider input — the legacy IP-adapter path — that is its own
|
|
1290
1338
|
* type, because it is not the same slot.
|
|
1291
1339
|
*/
|
|
1292
|
-
export type GuidanceFileType = "init_image" | "reference_image" | "scribble" | "color_sketch" | "pose" | "depth" | "canny" | "softedge_hed" | "segmentation" | "lineart" | "face" | "ip_adapter" | "first_frame" | "last_frame" | "init_video" | "reference_video" | "draft_video" | "init_mesh" | "texture_image" | "element_frontal_image" | "element_reference_image" | "element_video" | "draft_world" | "init_audio" | "reference_audio";
|
|
1340
|
+
export type GuidanceFileType = "init_image" | "reference_image" | "scribble" | "color_sketch" | "pose" | "depth" | "canny" | "softedge_hed" | "segmentation" | "lineart" | "face" | "ip_adapter" | "first_frame" | "last_frame" | "init_video" | "reference_video" | "draft_video" | "init_mesh" | "texture_image" | "draft_mesh" | "element_frontal_image" | "element_reference_image" | "element_video" | "draft_world" | "init_audio" | "reference_audio";
|
|
1293
1341
|
export interface HTTPValidationError {
|
|
1294
1342
|
detail?: Array<ValidationError>;
|
|
1295
1343
|
}
|
|
@@ -1390,6 +1438,12 @@ export interface MemberOutput {
|
|
|
1390
1438
|
/** Membership status: active or suspended. */
|
|
1391
1439
|
status: WorkspaceMembershipStatus;
|
|
1392
1440
|
}
|
|
1441
|
+
/**
|
|
1442
|
+
* How many faces a mesh keeps, as a level the provider sizes adaptively.
|
|
1443
|
+
*
|
|
1444
|
+
* Stands in for a fixed face limit where the model's ``mesh_densities`` capability offers it.
|
|
1445
|
+
*/
|
|
1446
|
+
export type MeshDensity = "ULTRA" | "HIGH" | "MEDIUM" | "LOW";
|
|
1393
1447
|
export type Modality = "text" | "image" | "audio" | "video" | "three_d" | "playable" | "world";
|
|
1394
1448
|
/** ModelCapabilities without the MCP token-saving serializer — returns all fields. */
|
|
1395
1449
|
export interface ModelCapabilitiesREST {
|
|
@@ -1748,6 +1802,13 @@ export interface ScoringRunWebhookEvent {
|
|
|
1748
1802
|
/** Whatever you sent as webhook.metadata. */
|
|
1749
1803
|
metadata?: Record<string, string>;
|
|
1750
1804
|
}
|
|
1805
|
+
/**
|
|
1806
|
+
* What a mesh is split along.
|
|
1807
|
+
*
|
|
1808
|
+
* ``AUTO`` finds the parts itself; ``PARTS`` cuts along the parts ``segment_part_names`` names.
|
|
1809
|
+
* Offered where the model's ``segment_by`` capability lists it.
|
|
1810
|
+
*/
|
|
1811
|
+
export type SegmentBy = "AUTO" | "PARTS";
|
|
1751
1812
|
/** One `object` event on a session's stream. */
|
|
1752
1813
|
export interface SessionEvent {
|
|
1753
1814
|
/** What happened to the object: created, updated, or deleted. */
|
|
@@ -1856,6 +1917,12 @@ export interface StartTrainingResponse {
|
|
|
1856
1917
|
*/
|
|
1857
1918
|
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";
|
|
1858
1919
|
export type TargetRegion = "all" | "subject" | "background";
|
|
1920
|
+
/**
|
|
1921
|
+
* Edge length of a generated mesh's base color texture.
|
|
1922
|
+
*
|
|
1923
|
+
* Offered where the model's ``texture_resolutions`` capability lists it (Meshy's own API).
|
|
1924
|
+
*/
|
|
1925
|
+
export type TextureResolution = "RES_2K" | "RES_4K" | "RES_8K";
|
|
1859
1926
|
/**
|
|
1860
1927
|
* A quarter turn of the camera around a diamond tile, in degrees clockwise seen from above.
|
|
1861
1928
|
*
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.46";
|