@layer_ai/sdk 1.0.44 → 1.0.48
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 +94 -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. */
|
|
@@ -604,6 +628,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
604
628
|
tile_grid?: TileGrid | null;
|
|
605
629
|
/** Fit the image onto its delivery canvas after everything else the run does: `trim` its transparent margin, keep the drawing's own size (`canvas: CONTENT`) or place it on a `FIXED` `width` x `height` canvas, scaled as `scale` says and aligned on `anchor` (`BASE` stands a game tile's base on the bottom centre), with `padding` px of transparent margin. Image outputs only. */
|
|
606
630
|
output_fit?: OutputFit | null;
|
|
631
|
+
/** Deliver the image as a 9-slice UI element (a button, frame or panel that stretches): after everything else the run does, the plain band through its middle is found on each axis, the stretched regions are cleaned so nothing smears, and the insets are recorded as the file's `nineSlice` metadata. An image with no such band is delivered as drawn, without insets. Image outputs only. */
|
|
632
|
+
nine_slice?: boolean | null;
|
|
633
|
+
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values. Honored by the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes; others ignore it. */
|
|
634
|
+
color_palette?: InferenceColorPalette | null;
|
|
607
635
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
608
636
|
expression?: string | null;
|
|
609
637
|
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
@@ -731,6 +759,18 @@ export interface ExecuteInferenceRequest {
|
|
|
731
759
|
detailed_geometry?: boolean | null;
|
|
732
760
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
733
761
|
remesh_geometry?: boolean | null;
|
|
762
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
763
|
+
texture_resolution?: TextureResolution | null;
|
|
764
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
765
|
+
remove_lighting?: boolean | null;
|
|
766
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
767
|
+
mesh_density?: MeshDensity | null;
|
|
768
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
769
|
+
preserve_uvs?: boolean | null;
|
|
770
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
771
|
+
segment_by?: SegmentBy | null;
|
|
772
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
773
|
+
segment_part_names?: Array<string> | null;
|
|
734
774
|
/** Generate quad mesh. */
|
|
735
775
|
quad_mesh?: boolean | null;
|
|
736
776
|
/** Generate PBR materials. */
|
|
@@ -840,7 +880,7 @@ export interface ExecuteInferenceV2Request {
|
|
|
840
880
|
generate_audio?: boolean | null;
|
|
841
881
|
/** Keep audio from input video. */
|
|
842
882
|
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). */
|
|
883
|
+
/** 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
884
|
draft?: boolean | null;
|
|
845
885
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
846
886
|
instrumental?: boolean | null;
|
|
@@ -866,6 +906,18 @@ export interface ExecuteInferenceV2Request {
|
|
|
866
906
|
detailed_geometry?: boolean | null;
|
|
867
907
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
868
908
|
remesh_geometry?: boolean | null;
|
|
909
|
+
/** Base color texture size: RES_2K, RES_4K or RES_8K. Costs extra at RES_8K; support varies by model. */
|
|
910
|
+
texture_resolution?: TextureResolution | null;
|
|
911
|
+
/** Strip baked highlights and shadows from the texture. Support varies by model. */
|
|
912
|
+
remove_lighting?: boolean | null;
|
|
913
|
+
/** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
|
|
914
|
+
mesh_density?: MeshDensity | null;
|
|
915
|
+
/** Keep the mesh's own UV layout when retexturing. Support varies by model. */
|
|
916
|
+
preserve_uvs?: boolean | null;
|
|
917
|
+
/** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
|
|
918
|
+
segment_by?: SegmentBy | null;
|
|
919
|
+
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
920
|
+
segment_part_names?: Array<string> | null;
|
|
869
921
|
/** Generate quad mesh. */
|
|
870
922
|
quad_mesh?: boolean | null;
|
|
871
923
|
/** Generate PBR materials. */
|
|
@@ -968,6 +1020,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
968
1020
|
tile_grid?: TileGrid | null;
|
|
969
1021
|
/** Fit the image onto its delivery canvas after everything else the run does: `trim` its transparent margin, keep the drawing's own size (`canvas: CONTENT`) or place it on a `FIXED` `width` x `height` canvas, scaled as `scale` says and aligned on `anchor` (`BASE` stands a game tile's base on the bottom centre), with `padding` px of transparent margin. Image outputs only. */
|
|
970
1022
|
output_fit?: OutputFit | null;
|
|
1023
|
+
/** Deliver the image as a 9-slice UI element (a button, frame or panel that stretches): after everything else the run does, the plain band through its middle is found on each axis, the stretched regions are cleaned so nothing smears, and the insets are recorded as the file's `nineSlice` metadata. An image with no such band is delivered as drawn, without insets. Image outputs only. */
|
|
1024
|
+
nine_slice?: boolean | null;
|
|
1025
|
+
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values. Honored by the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes; others ignore it. */
|
|
1026
|
+
color_palette?: InferenceColorPalette | null;
|
|
971
1027
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
972
1028
|
expression?: string | null;
|
|
973
1029
|
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
@@ -1289,12 +1345,22 @@ export interface GroupOut {
|
|
|
1289
1345
|
* file through a different provider input — the legacy IP-adapter path — that is its own
|
|
1290
1346
|
* type, because it is not the same slot.
|
|
1291
1347
|
*/
|
|
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";
|
|
1348
|
+
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
1349
|
export interface HTTPValidationError {
|
|
1294
1350
|
detail?: Array<ValidationError>;
|
|
1295
1351
|
}
|
|
1296
1352
|
/** The geometry an output image is drawn in, when it is not an ordinary flat picture. */
|
|
1297
1353
|
export type ImageProjection = "EQUIRECTANGULAR";
|
|
1354
|
+
/**
|
|
1355
|
+
* The colors a generation is asked to use, and the reference set they were picked from.
|
|
1356
|
+
*
|
|
1357
|
+
* The run uses the colors it carries: a later edit to the set changes no run already made.
|
|
1358
|
+
* ``reference_set_id`` only names where they came from, so a form can show and restore it.
|
|
1359
|
+
*/
|
|
1360
|
+
export interface InferenceColorPalette {
|
|
1361
|
+
colors?: Array<PaletteColor>;
|
|
1362
|
+
reference_set_id?: string | null;
|
|
1363
|
+
}
|
|
1298
1364
|
export interface InferenceReferenceSetInput {
|
|
1299
1365
|
/** Reference set ID from GET /v2/workspaces/{workspace_id}/reference-sets. */
|
|
1300
1366
|
set_id: string;
|
|
@@ -1390,6 +1456,12 @@ export interface MemberOutput {
|
|
|
1390
1456
|
/** Membership status: active or suspended. */
|
|
1391
1457
|
status: WorkspaceMembershipStatus;
|
|
1392
1458
|
}
|
|
1459
|
+
/**
|
|
1460
|
+
* How many faces a mesh keeps, as a level the provider sizes adaptively.
|
|
1461
|
+
*
|
|
1462
|
+
* Stands in for a fixed face limit where the model's ``mesh_densities`` capability offers it.
|
|
1463
|
+
*/
|
|
1464
|
+
export type MeshDensity = "ULTRA" | "HIGH" | "MEDIUM" | "LOW";
|
|
1393
1465
|
export type Modality = "text" | "image" | "audio" | "video" | "three_d" | "playable" | "world";
|
|
1394
1466
|
/** ModelCapabilities without the MCP token-saving serializer — returns all fields. */
|
|
1395
1467
|
export interface ModelCapabilitiesREST {
|
|
@@ -1559,6 +1631,12 @@ export interface PaginationOutput {
|
|
|
1559
1631
|
/** Total number of results matching the query */
|
|
1560
1632
|
total_count?: number | null;
|
|
1561
1633
|
}
|
|
1634
|
+
/** One named color of a palette. */
|
|
1635
|
+
export interface PaletteColor {
|
|
1636
|
+
name: string;
|
|
1637
|
+
hex: string;
|
|
1638
|
+
role?: string | null;
|
|
1639
|
+
}
|
|
1562
1640
|
/**
|
|
1563
1641
|
* Canonical rest pose a character-mesh model is asked to generate in.
|
|
1564
1642
|
* ``A_POSE`` places the arms angled down at roughly 45°; ``T_POSE`` holds them
|
|
@@ -1748,6 +1826,13 @@ export interface ScoringRunWebhookEvent {
|
|
|
1748
1826
|
/** Whatever you sent as webhook.metadata. */
|
|
1749
1827
|
metadata?: Record<string, string>;
|
|
1750
1828
|
}
|
|
1829
|
+
/**
|
|
1830
|
+
* What a mesh is split along.
|
|
1831
|
+
*
|
|
1832
|
+
* ``AUTO`` finds the parts itself; ``PARTS`` cuts along the parts ``segment_part_names`` names.
|
|
1833
|
+
* Offered where the model's ``segment_by`` capability lists it.
|
|
1834
|
+
*/
|
|
1835
|
+
export type SegmentBy = "AUTO" | "PARTS";
|
|
1751
1836
|
/** One `object` event on a session's stream. */
|
|
1752
1837
|
export interface SessionEvent {
|
|
1753
1838
|
/** What happened to the object: created, updated, or deleted. */
|
|
@@ -1856,6 +1941,12 @@ export interface StartTrainingResponse {
|
|
|
1856
1941
|
*/
|
|
1857
1942
|
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
1943
|
export type TargetRegion = "all" | "subject" | "background";
|
|
1944
|
+
/**
|
|
1945
|
+
* Edge length of a generated mesh's base color texture.
|
|
1946
|
+
*
|
|
1947
|
+
* Offered where the model's ``texture_resolutions`` capability lists it (Meshy's own API).
|
|
1948
|
+
*/
|
|
1949
|
+
export type TextureResolution = "RES_2K" | "RES_4K" | "RES_8K";
|
|
1859
1950
|
/**
|
|
1860
1951
|
* A quarter turn of the camera around a diamond tile, in degrees clockwise seen from above.
|
|
1861
1952
|
*
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.48";
|