@layer_ai/sdk 1.0.40 → 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 +144 -5
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -55,6 +55,8 @@ export interface BaseModelCapabilitiesREST {
|
|
|
55
55
|
tileability?: boolean;
|
|
56
56
|
/** 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. */
|
|
57
57
|
native_tileability?: boolean;
|
|
58
|
+
/** Draws a game tile (isometric or hex) onto a fixed grid when a generation sets `tile_grid`. */
|
|
59
|
+
tile_grid?: boolean;
|
|
58
60
|
/** 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. */
|
|
59
61
|
guidance_file_types?: Array<ToolGuidanceFileTypeSupport>;
|
|
60
62
|
/** 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. */
|
|
@@ -375,6 +377,18 @@ export interface EstimateInferencePriceRequest {
|
|
|
375
377
|
detailed_geometry?: boolean | null;
|
|
376
378
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
377
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;
|
|
378
392
|
/** Generate quad mesh. */
|
|
379
393
|
quad_mesh?: boolean | null;
|
|
380
394
|
/** Generate PBR materials. */
|
|
@@ -474,7 +488,7 @@ export interface EstimateInferencePriceV2Request {
|
|
|
474
488
|
generate_audio?: boolean | null;
|
|
475
489
|
/** Keep audio from input video. */
|
|
476
490
|
keep_audio?: boolean | null;
|
|
477
|
-
/** 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). */
|
|
478
492
|
draft?: boolean | null;
|
|
479
493
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
480
494
|
instrumental?: boolean | null;
|
|
@@ -500,6 +514,18 @@ export interface EstimateInferencePriceV2Request {
|
|
|
500
514
|
detailed_geometry?: boolean | null;
|
|
501
515
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
502
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;
|
|
503
529
|
/** Generate quad mesh. */
|
|
504
530
|
quad_mesh?: boolean | null;
|
|
505
531
|
/** Generate PBR materials. */
|
|
@@ -586,6 +612,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
586
612
|
reframe?: boolean | null;
|
|
587
613
|
/** Generate a seamless texture that tiles without a visible edge. Honored by the models whose `inference-schema` lists `tileability` (list them with `GET .../base-models?tileable=true`), and ignored by the rest. */
|
|
588
614
|
tileability?: boolean | null;
|
|
615
|
+
/** `EQUIRECTANGULAR` draws a 2:1 360 degree skybox whose sides meet and whose poles are settled. Honored by the models listed for the `create_skybox` use case; the size must be one of the model's skybox sizes (its presets carrying the projection), and unset takes the largest. */
|
|
616
|
+
projection?: ImageProjection | null;
|
|
617
|
+
/** How strongly a model's 360 LoRA draws the projection, as its scale. Unset takes the LoRA's own. */
|
|
618
|
+
projection_strength?: number | null;
|
|
589
619
|
/** Outpaint/refill transparent areas. */
|
|
590
620
|
refill?: boolean | null;
|
|
591
621
|
/** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
|
|
@@ -594,6 +624,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
594
624
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
595
625
|
/** 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`. */
|
|
596
626
|
scene_lighting?: SceneLightingConfig | null;
|
|
627
|
+
/** Draw a game tile onto a grid: its `shape` (`SQUARE` for an isometric diamond, `HEXAGON` for a hex tile) and `orientation` (`POINTY_TOP` or `FLAT_TOP` for a hexagon), the camera `elevation` (30 for 2:1 dimetric; a hexagon takes 60, or 90 from straight above), a `facing` of 0, 90, 180 or 270 for a square, the `footprint_width` x `footprint_depth` in cells (a hexagon covers one), the wall `height` in cell sides (0 for a flat ground tile) and the delivered `tile_width` in pixels. The run draws over a blockout of the grid, so it takes no init image, and the output comes back cut out and fitted onto the grid, its base recorded in the file's `tile` metadata. Honored by the models whose capabilities report `tile_grid`. */
|
|
628
|
+
tile_grid?: TileGrid | null;
|
|
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. */
|
|
630
|
+
output_fit?: OutputFit | null;
|
|
597
631
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
598
632
|
expression?: string | null;
|
|
599
633
|
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
@@ -721,6 +755,18 @@ export interface ExecuteInferenceRequest {
|
|
|
721
755
|
detailed_geometry?: boolean | null;
|
|
722
756
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
723
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;
|
|
724
770
|
/** Generate quad mesh. */
|
|
725
771
|
quad_mesh?: boolean | null;
|
|
726
772
|
/** Generate PBR materials. */
|
|
@@ -830,7 +876,7 @@ export interface ExecuteInferenceV2Request {
|
|
|
830
876
|
generate_audio?: boolean | null;
|
|
831
877
|
/** Keep audio from input video. */
|
|
832
878
|
keep_audio?: boolean | null;
|
|
833
|
-
/** 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). */
|
|
834
880
|
draft?: boolean | null;
|
|
835
881
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
836
882
|
instrumental?: boolean | null;
|
|
@@ -856,6 +902,18 @@ export interface ExecuteInferenceV2Request {
|
|
|
856
902
|
detailed_geometry?: boolean | null;
|
|
857
903
|
/** Set false to skip the provider's remesh phase and keep its raw geometry. Support varies by model. */
|
|
858
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;
|
|
859
917
|
/** Generate quad mesh. */
|
|
860
918
|
quad_mesh?: boolean | null;
|
|
861
919
|
/** Generate PBR materials. */
|
|
@@ -942,6 +1000,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
942
1000
|
reframe?: boolean | null;
|
|
943
1001
|
/** Generate a seamless texture that tiles without a visible edge. Honored by the models whose `inference-schema` lists `tileability` (list them with `GET .../base-models?tileable=true`), and ignored by the rest. */
|
|
944
1002
|
tileability?: boolean | null;
|
|
1003
|
+
/** `EQUIRECTANGULAR` draws a 2:1 360 degree skybox whose sides meet and whose poles are settled. Honored by the models listed for the `create_skybox` use case; the size must be one of the model's skybox sizes (its presets carrying the projection), and unset takes the largest. */
|
|
1004
|
+
projection?: ImageProjection | null;
|
|
1005
|
+
/** How strongly a model's 360 LoRA draws the projection, as its scale. Unset takes the LoRA's own. */
|
|
1006
|
+
projection_strength?: number | null;
|
|
945
1007
|
/** Outpaint/refill transparent areas. */
|
|
946
1008
|
refill?: boolean | null;
|
|
947
1009
|
/** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
|
|
@@ -950,6 +1012,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
950
1012
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
951
1013
|
/** 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`. */
|
|
952
1014
|
scene_lighting?: SceneLightingConfig | null;
|
|
1015
|
+
/** Draw a game tile onto a grid: its `shape` (`SQUARE` for an isometric diamond, `HEXAGON` for a hex tile) and `orientation` (`POINTY_TOP` or `FLAT_TOP` for a hexagon), the camera `elevation` (30 for 2:1 dimetric; a hexagon takes 60, or 90 from straight above), a `facing` of 0, 90, 180 or 270 for a square, the `footprint_width` x `footprint_depth` in cells (a hexagon covers one), the wall `height` in cell sides (0 for a flat ground tile) and the delivered `tile_width` in pixels. The run draws over a blockout of the grid, so it takes no init image, and the output comes back cut out and fitted onto the grid, its base recorded in the file's `tile` metadata. Honored by the models whose capabilities report `tile_grid`. */
|
|
1016
|
+
tile_grid?: TileGrid | null;
|
|
1017
|
+
/** 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. */
|
|
1018
|
+
output_fit?: OutputFit | null;
|
|
953
1019
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
954
1020
|
expression?: string | null;
|
|
955
1021
|
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
@@ -1039,7 +1105,7 @@ export interface ForgeGuidanceFileInput {
|
|
|
1039
1105
|
export interface ForgeMaskInput {
|
|
1040
1106
|
/** Mask image file ID. */
|
|
1041
1107
|
file_id?: string | null;
|
|
1042
|
-
/** Use transparent areas as mask. */
|
|
1108
|
+
/** Use the init image's transparent areas as the mask. As the only mask source, a fully opaque init used as stored (no transform, padding or target) is refused; a mask file works on any init. */
|
|
1043
1109
|
for_transparency?: boolean | null;
|
|
1044
1110
|
/** Use non-transparent areas as mask. */
|
|
1045
1111
|
for_nontransparency?: boolean | null;
|
|
@@ -1271,10 +1337,12 @@ export interface GroupOut {
|
|
|
1271
1337
|
* file through a different provider input — the legacy IP-adapter path — that is its own
|
|
1272
1338
|
* type, because it is not the same slot.
|
|
1273
1339
|
*/
|
|
1274
|
-
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";
|
|
1275
1341
|
export interface HTTPValidationError {
|
|
1276
1342
|
detail?: Array<ValidationError>;
|
|
1277
1343
|
}
|
|
1344
|
+
/** The geometry an output image is drawn in, when it is not an ordinary flat picture. */
|
|
1345
|
+
export type ImageProjection = "EQUIRECTANGULAR";
|
|
1278
1346
|
export interface InferenceReferenceSetInput {
|
|
1279
1347
|
/** Reference set ID from GET /v2/workspaces/{workspace_id}/reference-sets. */
|
|
1280
1348
|
set_id: string;
|
|
@@ -1282,7 +1350,7 @@ export interface InferenceReferenceSetInput {
|
|
|
1282
1350
|
weight?: number;
|
|
1283
1351
|
}
|
|
1284
1352
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
1285
|
-
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" | "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" | "complete_draft";
|
|
1353
|
+
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";
|
|
1286
1354
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1287
1355
|
export interface InferenceWebhookEvent {
|
|
1288
1356
|
/** Unique event id, repeated in the webhook-id header. */
|
|
@@ -1370,6 +1438,12 @@ export interface MemberOutput {
|
|
|
1370
1438
|
/** Membership status: active or suspended. */
|
|
1371
1439
|
status: WorkspaceMembershipStatus;
|
|
1372
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";
|
|
1373
1447
|
export type Modality = "text" | "image" | "audio" | "video" | "three_d" | "playable" | "world";
|
|
1374
1448
|
/** ModelCapabilities without the MCP token-saving serializer — returns all fields. */
|
|
1375
1449
|
export interface ModelCapabilitiesREST {
|
|
@@ -1512,6 +1586,25 @@ export interface OrbitLightRotation {
|
|
|
1512
1586
|
pitch: number;
|
|
1513
1587
|
yaw: number;
|
|
1514
1588
|
}
|
|
1589
|
+
export interface OutputFit {
|
|
1590
|
+
trim?: boolean;
|
|
1591
|
+
canvas?: OutputFitCanvas;
|
|
1592
|
+
width?: number | null;
|
|
1593
|
+
height?: number | null;
|
|
1594
|
+
scale?: OutputFitScale;
|
|
1595
|
+
anchor?: OutputFitAnchor;
|
|
1596
|
+
padding?: number;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* The point of the drawing that lands on the same point of the canvas.
|
|
1600
|
+
*
|
|
1601
|
+
* ``BASE`` is a game tile's base: its anchor, the bottom centre of the cell it stands on, lands
|
|
1602
|
+
* at the bottom centre of the canvas, so tiles of one grid stand on the same point whatever rises above them.
|
|
1603
|
+
*/
|
|
1604
|
+
export type OutputFitAnchor = "TOP_LEFT" | "TOP_CENTER" | "TOP_RIGHT" | "CENTER_LEFT" | "CENTER" | "CENTER_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_CENTER" | "BOTTOM_RIGHT" | "BASE";
|
|
1605
|
+
export type OutputFitCanvas = "CONTENT" | "FIXED";
|
|
1606
|
+
/** How the drawing goes onto a fixed canvas. The names follow the workflow Resize node's. */
|
|
1607
|
+
export type OutputFitScale = "PLACE" | "SHRINK_AND_PAD" | "FIT_AND_PAD" | "FIT_AND_CROP" | "STRETCH";
|
|
1515
1608
|
export interface PaginationOutput {
|
|
1516
1609
|
/** Cursor to use to get the next page */
|
|
1517
1610
|
next_cursor?: string | null;
|
|
@@ -1709,6 +1802,13 @@ export interface ScoringRunWebhookEvent {
|
|
|
1709
1802
|
/** Whatever you sent as webhook.metadata. */
|
|
1710
1803
|
metadata?: Record<string, string>;
|
|
1711
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";
|
|
1712
1812
|
/** One `object` event on a session's stream. */
|
|
1713
1813
|
export interface SessionEvent {
|
|
1714
1814
|
/** What happened to the object: created, updated, or deleted. */
|
|
@@ -1817,6 +1917,45 @@ export interface StartTrainingResponse {
|
|
|
1817
1917
|
*/
|
|
1818
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";
|
|
1819
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";
|
|
1926
|
+
/**
|
|
1927
|
+
* A quarter turn of the camera around a diamond tile, in degrees clockwise seen from above.
|
|
1928
|
+
*
|
|
1929
|
+
* 0 is the facing a set is drawn in first; the others show the same subject's other sides. A
|
|
1930
|
+
* hexagon is only drawn facing 0.
|
|
1931
|
+
*/
|
|
1932
|
+
export type TileFacing = 0 | 90 | 180 | 270;
|
|
1933
|
+
/** One tile's place on the grid. Every tile of a set shares all but the footprint and height. */
|
|
1934
|
+
export interface TileGrid {
|
|
1935
|
+
shape?: TileShape;
|
|
1936
|
+
/** Unset takes the shape's first: DIAMOND for a square, POINTY_TOP for a hexagon. */
|
|
1937
|
+
orientation?: TileOrientation | null;
|
|
1938
|
+
/** Unset takes 30 (2:1 dimetric) for a square, 60 for a hexagon. */
|
|
1939
|
+
elevation?: number | null;
|
|
1940
|
+
facing?: TileFacing;
|
|
1941
|
+
footprint_width?: number;
|
|
1942
|
+
footprint_depth?: number;
|
|
1943
|
+
height?: number;
|
|
1944
|
+
tile_width?: number;
|
|
1945
|
+
light_from?: TileLightSide;
|
|
1946
|
+
}
|
|
1947
|
+
/** The side the key light comes from, seen from the camera. */
|
|
1948
|
+
export type TileLightSide = "left" | "right";
|
|
1949
|
+
/**
|
|
1950
|
+
* How a cell's outline is turned to the camera.
|
|
1951
|
+
*
|
|
1952
|
+
* A square cell is either ``DIAMOND``, turned 45 degrees so its base reads as a diamond (the
|
|
1953
|
+
* isometric look), or ``ALIGNED`` with the camera, as top-down maps are. A hexagon has either a
|
|
1954
|
+
* vertex (``POINTY_TOP``) or an edge (``FLAT_TOP``) at the top.
|
|
1955
|
+
*/
|
|
1956
|
+
export type TileOrientation = "DIAMOND" | "ALIGNED" | "POINTY_TOP" | "FLAT_TOP";
|
|
1957
|
+
/** The outline of one cell of the grid, seen from straight above. */
|
|
1958
|
+
export type TileShape = "SQUARE" | "HEXAGON";
|
|
1820
1959
|
export interface TokenResponse {
|
|
1821
1960
|
/** A signed JWT access token (RFC 9068), sent as `Authorization: Bearer <token>`. Treat it as opaque. */
|
|
1822
1961
|
access_token: string;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.46";
|