@worldlabsai/client 0.4.0 → 0.6.0
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/README.md +5 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +17 -2
- package/dist/client.js.map +1 -1
- package/dist/core/assets.d.ts.map +1 -1
- package/dist/generated/developer-api.gen.d.ts +294 -43
- package/dist/generated/developer-api.gen.d.ts.map +1 -1
- package/dist/generated/tasks.gen.d.ts +25 -1
- package/dist/generated/tasks.gen.d.ts.map +1 -1
- package/dist/generated/tasks.gen.js +12 -0
- package/dist/generated/tasks.gen.js.map +1 -1
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/package.json +11 -12
- package/src/client.ts +25 -2
- package/src/generated/developer-api.gen.ts +294 -43
- package/src/generated/tasks.gen.ts +16 -0
- package/src/version.ts +2 -0
|
@@ -105,6 +105,23 @@ export interface paths {
|
|
|
105
105
|
patch?: never;
|
|
106
106
|
trace?: never;
|
|
107
107
|
};
|
|
108
|
+
"/api/v2/tasks:posedImages2Splats": {
|
|
109
|
+
parameters: {
|
|
110
|
+
query?: never;
|
|
111
|
+
header?: never;
|
|
112
|
+
path?: never;
|
|
113
|
+
cookie?: never;
|
|
114
|
+
};
|
|
115
|
+
get?: never;
|
|
116
|
+
put?: never;
|
|
117
|
+
/** Submit the posedImages2Splats task */
|
|
118
|
+
post: operations["submit_posedImages2Splats_api_v2_tasks_posedImages2Splats_post"];
|
|
119
|
+
delete?: never;
|
|
120
|
+
options?: never;
|
|
121
|
+
head?: never;
|
|
122
|
+
patch?: never;
|
|
123
|
+
trace?: never;
|
|
124
|
+
};
|
|
108
125
|
"/api/v2/tasks:splats2Mesh": {
|
|
109
126
|
parameters: {
|
|
110
127
|
query?: never;
|
|
@@ -606,20 +623,37 @@ export interface components {
|
|
|
606
623
|
* @enum {string}
|
|
607
624
|
*/
|
|
608
625
|
AssetState: "CREATED" | "UPLOADING" | "READY" | "DELETED";
|
|
626
|
+
/**
|
|
627
|
+
* AtlasChiselContextFrameAsset
|
|
628
|
+
* @description A context frame: its camera plus a depth, an image, or both.
|
|
629
|
+
*/
|
|
630
|
+
AtlasChiselContextFrameAsset: {
|
|
631
|
+
/** @description Source image as a URL or inline asset, or null (depth-only). */
|
|
632
|
+
imageAsset?: components["schemas"]["TaskAsset"] | null;
|
|
633
|
+
/** @description Optional alpha mask as a URL or inline asset: an 8-bit grayscale PNG on the image grid whose pixel value / 255 is the alpha in [0, 1] (1 = kept, 0 = excluded). Null when the frame carries no mask. */
|
|
634
|
+
maskAsset?: components["schemas"]["TaskAsset"] | null;
|
|
635
|
+
/** @description Camera-to-world pose and intrinsics. */
|
|
636
|
+
camera: components["schemas"]["PinholeCamera"];
|
|
637
|
+
/**
|
|
638
|
+
* Depth
|
|
639
|
+
* @description Depth buffer aligned to the camera, with an optional mask; null for an image-only frame.
|
|
640
|
+
*/
|
|
641
|
+
depth?: components["schemas"]["MaskedLogDepthBufferAsset"] | components["schemas"]["MaskedLinearDepthBufferAsset"] | null;
|
|
642
|
+
};
|
|
609
643
|
/**
|
|
610
644
|
* AtlasChiselModelParameters
|
|
611
|
-
* @description
|
|
645
|
+
* @description Sampling controls for atlasChisel.
|
|
612
646
|
*/
|
|
613
647
|
AtlasChiselModelParameters: {
|
|
614
648
|
/**
|
|
615
649
|
* Seed
|
|
616
|
-
* @description
|
|
650
|
+
* @description Random seed for image generation.
|
|
617
651
|
* @default 42
|
|
618
652
|
*/
|
|
619
653
|
seed?: number | null;
|
|
620
654
|
/**
|
|
621
655
|
* Numsteps
|
|
622
|
-
* @description
|
|
656
|
+
* @description Number of denoising steps. Omit to use the model's default.
|
|
623
657
|
*/
|
|
624
658
|
numSteps?: number | null;
|
|
625
659
|
};
|
|
@@ -638,19 +672,27 @@ export interface components {
|
|
|
638
672
|
* @description Purge this operation's outputs and the transient uploads it consumed one hour after it finishes. Omitted, the account's setting applies; true raises it for this operation; false is refused when the account already purges. Uploads in the library are never purged by an operation.
|
|
639
673
|
*/
|
|
640
674
|
purgeContentOnOperationCompletion?: boolean | null;
|
|
675
|
+
/**
|
|
676
|
+
* Base64Outputs
|
|
677
|
+
* @description When a ?wait=true submission is answered inline, return each output file as base64 in that response rather than by assetId and url. This skips storing the files before the answer and the caller's download after it. Any other submission, and every later read of the operation, names the outputs by assetId and url.
|
|
678
|
+
* @default false
|
|
679
|
+
*/
|
|
680
|
+
base64Outputs?: boolean;
|
|
641
681
|
/**
|
|
642
682
|
* Contextframes
|
|
643
|
-
* @description Posed
|
|
683
|
+
* @description Posed frames, one per target camera and posed at it, in target order; each camera is 1280x720. Each frame carries a depth, an imageAsset (the view's known pixels), or both, and may carry a maskAsset (8-bit grayscale, white where the frame's image and depth are known). Send each of depth, imageAsset and maskAsset on every frame or on none: the model keeps the image where the mask is set and generates the rest, takes frames without masks as fully known, conditions on the depth alone for frames without an image, and for frames without depth keeps the image inside the mask and generates the geometry (the frames atlasMasked takes). A depth.maskAsset (8-bit grayscale on the depth grid, white where the depth is known), on every frame or on none, masks the depth apart from the image: the maskAsset then marks only the image and needs an imageAsset beside it. Both masks read as known above half intensity. Frames carry no depth confidenceAsset. Leave empty to generate from the prompt alone.
|
|
644
684
|
*/
|
|
645
|
-
contextFrames?: components["schemas"]["
|
|
685
|
+
contextFrames?: components["schemas"]["AtlasChiselContextFrameAsset"][];
|
|
646
686
|
/**
|
|
647
687
|
* Sourceframes
|
|
648
|
-
* @description Posed RGB photographs of the scene, each an image and its camera in the targets' coordinate convention and scale. The generated views
|
|
688
|
+
* @description Posed RGB photographs of the scene, each an image and its camera in the targets' coordinate convention and scale. The generated views use them as visual references for materials, colors, and lighting. Any cameras and any resolution; each image is scaled to cover the output dimensions, then center-cropped onto 1280x720. Frames carry no maskAsset or depth. Together with contextFrames and targetCameras they share the served model's rollout, and a request that overflows it fails.
|
|
649
689
|
*/
|
|
650
690
|
sourceFrames?: components["schemas"]["PosedRGBAsset"][];
|
|
691
|
+
/** @description Optional style-reference image that guides appearance; it supplies no camera or geometry. Not applied yet: the current model does not support style references, so frames generate without it. */
|
|
692
|
+
styleReferenceImageAsset?: components["schemas"]["TaskAsset"] | null;
|
|
651
693
|
/**
|
|
652
694
|
* Targetcameras
|
|
653
|
-
* @description Pinhole cameras at 1280x720 for the views to generate, in output order, returned in `frames`. At most
|
|
695
|
+
* @description Pinhole cameras at 1280x720 for the views to generate, in output order, returned in `frames`. At most 1440.
|
|
654
696
|
*/
|
|
655
697
|
targetCameras: components["schemas"]["PinholeCamera"][];
|
|
656
698
|
/**
|
|
@@ -660,25 +702,25 @@ export interface components {
|
|
|
660
702
|
prompt: string;
|
|
661
703
|
/**
|
|
662
704
|
* Enhanceprompt
|
|
663
|
-
* @description
|
|
705
|
+
* @description Expand the prompt into a detailed scene description before generation. Set false to use your wording unchanged.
|
|
664
706
|
* @default true
|
|
665
707
|
*/
|
|
666
708
|
enhancePrompt?: boolean;
|
|
667
709
|
/**
|
|
668
710
|
* Voxelsize
|
|
669
|
-
* @description
|
|
711
|
+
* @description Side length of the cubes used to simplify depth geometry. Uses normalized scene units, not input distance units: the scene is rescaled so the 90th percentile of inverse depth is approximately 1. The recommended range is 0 to 0.4. Omit or set to 0 to keep the original geometry.
|
|
670
712
|
*/
|
|
671
713
|
voxelSize?: number | null;
|
|
672
714
|
/**
|
|
673
715
|
* Voxelgridorientation
|
|
674
|
-
* @description
|
|
716
|
+
* @description Grid orientation for simplifying depth geometry. 'world' (the default) aligns the grid with the request's world axes so walls aligned with those axes stay flat. 'gauge' aligns the grid with the average camera pose after recentering the scene. Ignored unless voxelSize is set.
|
|
675
717
|
*/
|
|
676
718
|
voxelGridOrientation?: ("world" | "gauge") | null;
|
|
677
719
|
/** @description Model-specific parameters for atlasChisel. */
|
|
678
720
|
modelParameters?: components["schemas"]["AtlasChiselModelParameters"];
|
|
679
721
|
/**
|
|
680
722
|
* Returndepth
|
|
681
|
-
* @description Return the generated frames as posed RGBD: they are reconstructed together so the depth lands in the request's own camera frame and scale, and every entry in `frames` then carries a `depth` buffer. The contextFrames' own depth is not reconstructed or returned
|
|
723
|
+
* @description Return the generated frames as posed RGBD: they are reconstructed together so the depth lands in the request's own camera frame and scale, and every entry in `frames` then carries a `depth` buffer. The contextFrames' own depth is not reconstructed or returned, and source photographs get no depth back. Needs 2 to 256 target cameras. Limitation: the depth scale is recovered from the camera centers that joined, so targets that share one center (a pure-rotation rig) and nothing else anchoring them come back with a 0.0 or NaN scale and a success status.
|
|
682
724
|
* @default false
|
|
683
725
|
*/
|
|
684
726
|
returnDepth?: boolean;
|
|
@@ -700,7 +742,7 @@ export interface components {
|
|
|
700
742
|
promptUsed?: string | null;
|
|
701
743
|
/**
|
|
702
744
|
* Requestid
|
|
703
|
-
* @description
|
|
745
|
+
* @description Generation request ID for troubleshooting.
|
|
704
746
|
*/
|
|
705
747
|
requestId?: string | null;
|
|
706
748
|
};
|
|
@@ -757,18 +799,18 @@ export interface components {
|
|
|
757
799
|
};
|
|
758
800
|
/**
|
|
759
801
|
* AtlasGenerateModelParameters
|
|
760
|
-
* @description
|
|
802
|
+
* @description Sampling controls for atlasGenerate.
|
|
761
803
|
*/
|
|
762
804
|
AtlasGenerateModelParameters: {
|
|
763
805
|
/**
|
|
764
806
|
* Seed
|
|
765
|
-
* @description
|
|
807
|
+
* @description Random seed for image generation.
|
|
766
808
|
* @default 42
|
|
767
809
|
*/
|
|
768
810
|
seed?: number | null;
|
|
769
811
|
/**
|
|
770
812
|
* Numsteps
|
|
771
|
-
* @description
|
|
813
|
+
* @description Number of denoising steps. Omit to use the model's default.
|
|
772
814
|
*/
|
|
773
815
|
numSteps?: number | null;
|
|
774
816
|
};
|
|
@@ -795,12 +837,12 @@ export interface components {
|
|
|
795
837
|
base64Outputs?: boolean;
|
|
796
838
|
/**
|
|
797
839
|
* Contextframes
|
|
798
|
-
* @description Posed RGBD context views: each an image, its depth buffer, and its camera, all required. All context cameras must declare the same width and height.
|
|
840
|
+
* @description Posed RGBD context views: each an image, its depth buffer, and its camera, all required. All context cameras must declare the same width and height. Context depth is required and supplies sparse depth references for generation.
|
|
799
841
|
*/
|
|
800
842
|
contextFrames: components["schemas"]["PosedRGBDAsset"][];
|
|
801
843
|
/**
|
|
802
844
|
* Targetcameras
|
|
803
|
-
* @description Pinhole cameras for the views to generate, in output order. Generated frames are returned in `frames`, one per camera.
|
|
845
|
+
* @description Pinhole cameras for the views to generate, in output order. Generated frames are returned in `frames`, one per camera. All cameras share one size (width x height): 1280x720, 960x720, 528x704, or 720x1280.
|
|
804
846
|
*/
|
|
805
847
|
targetCameras: components["schemas"]["PinholeCamera"][];
|
|
806
848
|
/**
|
|
@@ -810,13 +852,13 @@ export interface components {
|
|
|
810
852
|
prompt?: string | null;
|
|
811
853
|
/**
|
|
812
854
|
* Enhanceprompt
|
|
813
|
-
* @description
|
|
855
|
+
* @description Expand the prompt into a scene description before generation. With no prompt, describe the context images. Set false to use your wording unchanged.
|
|
814
856
|
* @default true
|
|
815
857
|
*/
|
|
816
858
|
enhancePrompt?: boolean;
|
|
817
859
|
/**
|
|
818
860
|
* Returndepth
|
|
819
|
-
* @description Return the generated frames as posed RGBD: they are reconstructed together with the context frames so the depth lands in the request's own camera frame and scale, and every entry in `frames` then carries a `depth` buffer. The scale is recovered from camera centres, so a request whose cameras all share one centre (a pure-rotation rig) is rejected.
|
|
861
|
+
* @description Return the generated frames as posed RGBD: they are reconstructed together with the context frames so the depth lands in the request's own camera frame and scale, and every entry in `frames` then carries a `depth` buffer. The scale is recovered from camera centres, so a request whose cameras all share one centre (a pure-rotation rig) is rejected. The context frames anchor the reconstruction, so they must have the targets' aspect ratio and every target camera's principal point must be within 5% of the image centre, or the request is rejected, and a context frame helps reconstruct depth only when its camera's principal point is centered.
|
|
820
862
|
* @default false
|
|
821
863
|
*/
|
|
822
864
|
returnDepth?: boolean;
|
|
@@ -840,7 +882,7 @@ export interface components {
|
|
|
840
882
|
promptUsed?: string | null;
|
|
841
883
|
/**
|
|
842
884
|
* Requestid
|
|
843
|
-
* @description
|
|
885
|
+
* @description Generation request ID for troubleshooting.
|
|
844
886
|
*/
|
|
845
887
|
requestId?: string | null;
|
|
846
888
|
};
|
|
@@ -897,12 +939,12 @@ export interface components {
|
|
|
897
939
|
};
|
|
898
940
|
/**
|
|
899
941
|
* AtlasMaskedModelParameters
|
|
900
|
-
* @description
|
|
942
|
+
* @description Sampling controls for atlasMasked.
|
|
901
943
|
*/
|
|
902
944
|
AtlasMaskedModelParameters: {
|
|
903
945
|
/**
|
|
904
946
|
* Seed
|
|
905
|
-
* @description
|
|
947
|
+
* @description Random seed for image generation.
|
|
906
948
|
* @default 42
|
|
907
949
|
*/
|
|
908
950
|
seed?: number | null;
|
|
@@ -935,7 +977,7 @@ export interface components {
|
|
|
935
977
|
contextFrames: components["schemas"]["PosedRGBAAsset"][];
|
|
936
978
|
/**
|
|
937
979
|
* Targetcameras
|
|
938
|
-
* @description Pinhole cameras for the views to generate, one per context frame in the same order.
|
|
980
|
+
* @description Pinhole cameras for the views to generate, one per context frame in the same order. For best results, targetCameras[i] should match the camera in contextFrames[i]. Different counts or cameras that do not match their context views are accepted, but may produce lower-quality results.
|
|
939
981
|
*/
|
|
940
982
|
targetCameras: components["schemas"]["PinholeCamera"][];
|
|
941
983
|
/**
|
|
@@ -975,7 +1017,7 @@ export interface components {
|
|
|
975
1017
|
promptUsed?: string | null;
|
|
976
1018
|
/**
|
|
977
1019
|
* Requestid
|
|
978
|
-
* @description
|
|
1020
|
+
* @description Generation request ID for troubleshooting.
|
|
979
1021
|
*/
|
|
980
1022
|
requestId?: string | null;
|
|
981
1023
|
};
|
|
@@ -1095,9 +1137,14 @@ export interface components {
|
|
|
1095
1137
|
frames: components["schemas"]["FrameRGBAsset"][];
|
|
1096
1138
|
/**
|
|
1097
1139
|
* Promptused
|
|
1098
|
-
* @description Final prompt
|
|
1140
|
+
* @description Final prompt for the first output image, if any. See promptsUsed for all images.
|
|
1099
1141
|
*/
|
|
1100
1142
|
promptUsed?: string | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* Promptsused
|
|
1145
|
+
* @description Final prompts in the same order as frames. Empty for older results.
|
|
1146
|
+
*/
|
|
1147
|
+
promptsUsed?: string[];
|
|
1101
1148
|
/**
|
|
1102
1149
|
* Aspectratio
|
|
1103
1150
|
* @description Resolved width-to-height ratio used for generation.
|
|
@@ -1581,11 +1628,7 @@ export interface components {
|
|
|
1581
1628
|
canonicalizeToFirstFrame?: boolean;
|
|
1582
1629
|
/**
|
|
1583
1630
|
* Targetresolution
|
|
1584
|
-
* @description Return the depth, confidence and camera intrinsics on this (width, height) pixel grid. The reconstruction is scaled to cover the requested size and center-cropped to it, so the result is exactly the size asked for and never stretched, and the intrinsics are updated with it -- unprojecting the returned depth with the returned camera gives the same geometry either way. A requested aspect that differs from the
|
|
1585
|
-
* @default [
|
|
1586
|
-
* 1280,
|
|
1587
|
-
* 720
|
|
1588
|
-
* ]
|
|
1631
|
+
* @description Return the depth, confidence and camera intrinsics on this (width, height) pixel grid: one of 1280 by 720, 720 by 1280, 960 by 720 or 528 by 704, the grids the depth model serves. The reconstruction is scaled to cover the requested size and center-cropped to it, so the result is exactly the size asked for and never stretched, and the intrinsics are updated with it -- unprojecting the returned depth with the returned camera gives the same geometry either way. A requested aspect that differs from the frames' costs field of view, since the crop is what makes the size exact, and centroidWorld then describes the cropped view. Omit it (or pass null) and a multi-view capture with camera translation comes back on whichever of those four grids is closest in aspect to the frames: smaller frames are scaled up onto it, and other aspects (square or 3:2, for example) are center-cropped onto the closest one, with squares going to 960 by 720. A single image or a capture without camera translation comes back on the reconstruction backend's native grid. Set it when a later step needs a particular grid: atlasGenerate, for example, needs context frames with the same aspect as its target cameras.
|
|
1589
1632
|
*/
|
|
1590
1633
|
targetResolution?: [
|
|
1591
1634
|
number,
|
|
@@ -1789,6 +1832,40 @@ export interface components {
|
|
|
1789
1832
|
*/
|
|
1790
1833
|
zMax: number;
|
|
1791
1834
|
};
|
|
1835
|
+
/**
|
|
1836
|
+
* MaskedLinearDepthBufferAsset
|
|
1837
|
+
* @description Linear-depth EXR plus an optional mask.
|
|
1838
|
+
*/
|
|
1839
|
+
MaskedLinearDepthBufferAsset: {
|
|
1840
|
+
/** @description Optional 8-bit grayscale PNG on the depth grid whose pixel value / 255 is the per-pixel depth confidence in [0, 1], as a URL or inline asset. */
|
|
1841
|
+
confidenceAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1842
|
+
/** @description Optional 8-bit grayscale PNG on the depth grid, as a URL or inline asset: white where the buffer's depth is known, black where it has none. Null when every pixel's depth is known. */
|
|
1843
|
+
maskAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1844
|
+
/** @description EXR of linear depth in world units, as a URL or inline asset. */
|
|
1845
|
+
depthAsset: components["schemas"]["TaskAsset"];
|
|
1846
|
+
};
|
|
1847
|
+
/**
|
|
1848
|
+
* MaskedLogDepthBufferAsset
|
|
1849
|
+
* @description Inverted log-depth PNG plus its decode range and an optional mask.
|
|
1850
|
+
*/
|
|
1851
|
+
MaskedLogDepthBufferAsset: {
|
|
1852
|
+
/** @description Optional 8-bit grayscale PNG on the depth grid whose pixel value / 255 is the per-pixel depth confidence in [0, 1], as a URL or inline asset. */
|
|
1853
|
+
confidenceAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1854
|
+
/** @description Optional 8-bit grayscale PNG on the depth grid, as a URL or inline asset: white where the buffer's depth is known, black where it has none. Null when every pixel's depth is known. */
|
|
1855
|
+
maskAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1856
|
+
/** @description Inverted log-depth grayscale PNG, as a URL or inline asset. */
|
|
1857
|
+
logDepthAsset: components["schemas"]["TaskAsset"];
|
|
1858
|
+
/**
|
|
1859
|
+
* Zmin
|
|
1860
|
+
* @description Linear depth in world units encoded as white (1.0).
|
|
1861
|
+
*/
|
|
1862
|
+
zMin: number;
|
|
1863
|
+
/**
|
|
1864
|
+
* Zmax
|
|
1865
|
+
* @description Linear depth in world units encoded as black (>0).
|
|
1866
|
+
*/
|
|
1867
|
+
zMax: number;
|
|
1868
|
+
};
|
|
1792
1869
|
/**
|
|
1793
1870
|
* Operation
|
|
1794
1871
|
* @description An operation with its result, available through singular reads.
|
|
@@ -1906,6 +1983,28 @@ export interface components {
|
|
|
1906
1983
|
/** @description The Operation's ``error``, served the same way. */
|
|
1907
1984
|
error?: components["schemas"]["OperationError"] | null;
|
|
1908
1985
|
};
|
|
1986
|
+
/**
|
|
1987
|
+
* OrientedBoundingBox
|
|
1988
|
+
* @description A box with its own orientation, given as a pose and half-extents.
|
|
1989
|
+
*
|
|
1990
|
+
* ``frame`` carries the coordinate system the box is expressed in, so a caller
|
|
1991
|
+
* does not have to convert into whatever convention the receiver works in.
|
|
1992
|
+
* ``half_extents`` are measured along the box's own axes after that rotation, so
|
|
1993
|
+
* an axis-aligned box is one whose quaternion is identity.
|
|
1994
|
+
*/
|
|
1995
|
+
OrientedBoundingBox: {
|
|
1996
|
+
/** @description Centre and orientation of the box, with its convention. */
|
|
1997
|
+
frame: components["schemas"]["CoordinateFrame"];
|
|
1998
|
+
/**
|
|
1999
|
+
* Halfextents
|
|
2000
|
+
* @description Half the box's size along each of its own axes, in metres.
|
|
2001
|
+
*/
|
|
2002
|
+
halfExtents: [
|
|
2003
|
+
number,
|
|
2004
|
+
number,
|
|
2005
|
+
number
|
|
2006
|
+
];
|
|
2007
|
+
};
|
|
1909
2008
|
/**
|
|
1910
2009
|
* PinholeCamera
|
|
1911
2010
|
* @description A posed pinhole camera.
|
|
@@ -1941,21 +2040,128 @@ export interface components {
|
|
|
1941
2040
|
height: number;
|
|
1942
2041
|
};
|
|
1943
2042
|
/**
|
|
1944
|
-
*
|
|
1945
|
-
* @description
|
|
2043
|
+
* PosedImages2SplatsRequest
|
|
2044
|
+
* @description Body of ``POST /api/v2/tasks:posedImages2Splats``.
|
|
1946
2045
|
*/
|
|
1947
|
-
|
|
1948
|
-
/** @description Source image as a URL or inline asset, or null (depth-only). */
|
|
1949
|
-
imageAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1950
|
-
/** @description Optional alpha mask as a URL or inline asset: an 8-bit grayscale PNG on the image grid whose pixel value / 255 is the alpha in [0, 1] (1 = kept, 0 = excluded). Null when the frame carries no mask. */
|
|
1951
|
-
maskAsset?: components["schemas"]["TaskAsset"] | null;
|
|
1952
|
-
/** @description Camera-to-world pose and intrinsics. */
|
|
1953
|
-
camera: components["schemas"]["PinholeCamera"];
|
|
2046
|
+
PosedImages2SplatsRequest: {
|
|
1954
2047
|
/**
|
|
1955
|
-
*
|
|
1956
|
-
* @description
|
|
2048
|
+
* Webhookurl
|
|
2049
|
+
* @description Where Marble POSTs one signed task.succeeded or task.failed event when this operation finishes; retried for 24 hours. Verify the signature with the public keys at /.well-known/webhooks/jwks.json. Cannot be combined with ?wait=true. https on port 443 only, no IP literals. Developer API only.
|
|
1957
2050
|
*/
|
|
1958
|
-
|
|
2051
|
+
webhookUrl?: string | null;
|
|
2052
|
+
/**
|
|
2053
|
+
* Purgecontentonoperationcompletion
|
|
2054
|
+
* @description Purge this operation's outputs and the transient uploads it consumed one hour after it finishes. Omitted, the account's setting applies; true raises it for this operation; false is refused when the account already purges. Uploads in the library are never purged by an operation.
|
|
2055
|
+
*/
|
|
2056
|
+
purgeContentOnOperationCompletion?: boolean | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* Prompt
|
|
2059
|
+
* @description Optional scene description. Enhancement combines it with the input images; when omitted, enhancement captions the images.
|
|
2060
|
+
*/
|
|
2061
|
+
prompt?: string | null;
|
|
2062
|
+
/**
|
|
2063
|
+
* Enhanceprompt
|
|
2064
|
+
* @description Enhance the prompt using the context images before generation. Set false with a prepared prompt to skip enhancement and reduce latency.
|
|
2065
|
+
* @default true
|
|
2066
|
+
*/
|
|
2067
|
+
enhancePrompt?: boolean;
|
|
2068
|
+
/**
|
|
2069
|
+
* Refine
|
|
2070
|
+
* @description Run the refiner after drafting: the free-running loop that places cameras, render-difixes them and trains SSO on the draft until its recipe's step count or wall budget, publishing its level under refinedSplats. Off ends the run at the draft pass, fit at 2,000,000 splats by default or at the one targetSplatCounts entry, and published under draftSplat alone. It runs in a fraction of the time and is billed as a draft.
|
|
2071
|
+
* @default true
|
|
2072
|
+
*/
|
|
2073
|
+
refine?: boolean;
|
|
2074
|
+
/**
|
|
2075
|
+
* Targetsplatcounts
|
|
2076
|
+
* @description Splat counts to publish. With refine=false, an explicit list must contain exactly one count, the draft's, returned under draftSplat; omitted, the draft is fit at 2,000,000 splats. With refinement the loop's recipe sets the one level it publishes under refinedSplats, and this list is accepted and ignored.
|
|
2077
|
+
*/
|
|
2078
|
+
targetSplatCounts?: number[] | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* Regionofinterest
|
|
2081
|
+
* @description Oriented box to focus the reconstruction on, or a list of them for separate areas. Each box should enclose both the geometry of interest and the space it can be viewed from. The rest of the scene is still reconstructed from the frames. Omitted, the task covers the whole capture.
|
|
2082
|
+
*/
|
|
2083
|
+
regionOfInterest?: components["schemas"]["OrientedBoundingBox"] | components["schemas"]["OrientedBoundingBox"][] | null;
|
|
2084
|
+
/**
|
|
2085
|
+
* Debug
|
|
2086
|
+
* @description Flag for custom debug behavior. Currently has no effect on the pipeline.
|
|
2087
|
+
* @default false
|
|
2088
|
+
*/
|
|
2089
|
+
debug?: boolean;
|
|
2090
|
+
/**
|
|
2091
|
+
* Posedframes
|
|
2092
|
+
* @description Ordered posed RGBD frames (2 to 512): each image an account asset, inline bytes, or a public URL, with its camera and its depth buffer (a linear-depth EXR under depth.depthAsset, as images2PosedRGBD returns). Every camera grid must be 1280x720, 720x1280, 960x720, or 528x704 (width x height), and all frames must use the same grid. RGB images are resampled to the camera grid.
|
|
2093
|
+
*/
|
|
2094
|
+
posedFrames: components["schemas"]["PosedRGBDAsset"][];
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* PosedImages2SplatsResponse
|
|
2098
|
+
* @description Public response projected into the completed Operation.
|
|
2099
|
+
*
|
|
2100
|
+
* Each splat is a bare TaskAsset, the shape the task requests take
|
|
2101
|
+
* (splats2Mesh's splatAsset), so a response feeds the next task without
|
|
2102
|
+
* translation.
|
|
2103
|
+
*/
|
|
2104
|
+
PosedImages2SplatsResponse: {
|
|
2105
|
+
/**
|
|
2106
|
+
* Refinedsplats
|
|
2107
|
+
* @description Refined splats (SPZ) keyed by splat count.
|
|
2108
|
+
*/
|
|
2109
|
+
refinedSplats?: {
|
|
2110
|
+
[key: string]: components["schemas"]["TaskAsset"];
|
|
2111
|
+
};
|
|
2112
|
+
/** @description The splat (SPZ) the run ends on when refine=false: the draft pass's, fit at the requested count (2,000,000 by default). Null when the refiner ran; its levels are under refinedSplats. */
|
|
2113
|
+
draftSplat?: components["schemas"]["TaskAsset"] | null;
|
|
2114
|
+
};
|
|
2115
|
+
/**
|
|
2116
|
+
* PosedImages2SplatsResponseOperation
|
|
2117
|
+
* @description Long-running operation whose successful terminal ``response`` has type ``PosedImages2SplatsResponse``. This is the common Operation envelope with a task-specific response type, not a separate operation resource.
|
|
2118
|
+
*/
|
|
2119
|
+
PosedImages2SplatsResponseOperation: {
|
|
2120
|
+
/**
|
|
2121
|
+
* Id
|
|
2122
|
+
* @description Short operation id used in ``/operations/{operation}`` paths.
|
|
2123
|
+
*/
|
|
2124
|
+
id: string;
|
|
2125
|
+
/**
|
|
2126
|
+
* Ownerid
|
|
2127
|
+
* @description Account that owns the operation.
|
|
2128
|
+
*/
|
|
2129
|
+
ownerId: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* Metadata
|
|
2132
|
+
* @description Task information and optional progress details. Use ``metadata.task`` to interpret a generic operation response, and use ``done`` to determine completion.
|
|
2133
|
+
*/
|
|
2134
|
+
metadata?: {
|
|
2135
|
+
[key: string]: unknown;
|
|
2136
|
+
} | null;
|
|
2137
|
+
/**
|
|
2138
|
+
* Done
|
|
2139
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
2140
|
+
*/
|
|
2141
|
+
done: boolean;
|
|
2142
|
+
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
2143
|
+
error?: components["schemas"]["OperationError"] | null;
|
|
2144
|
+
/**
|
|
2145
|
+
* Expiresatsecs
|
|
2146
|
+
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
2147
|
+
*/
|
|
2148
|
+
expiresAtSecs?: number | null;
|
|
2149
|
+
/**
|
|
2150
|
+
* Createdatsecs
|
|
2151
|
+
* @description Unix seconds when the operation was accepted.
|
|
2152
|
+
*/
|
|
2153
|
+
createdAtSecs?: number | null;
|
|
2154
|
+
/** @description ``PosedImages2SplatsResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
2155
|
+
response?: components["schemas"]["PosedImages2SplatsResponse"] | null;
|
|
2156
|
+
/**
|
|
2157
|
+
* Name
|
|
2158
|
+
* @description Full resource name for the operation.
|
|
2159
|
+
*
|
|
2160
|
+
* For project operations:
|
|
2161
|
+
* ``accounts/{account}/projects/{project}/operations/{operation}``.
|
|
2162
|
+
* Operation paths accept the short ``id``.
|
|
2163
|
+
*/
|
|
2164
|
+
readonly name: string;
|
|
1959
2165
|
};
|
|
1960
2166
|
/**
|
|
1961
2167
|
* PosedRGBAAsset
|
|
@@ -2458,6 +2664,7 @@ export type AssetPart = components['schemas']['AssetPart'];
|
|
|
2458
2664
|
export type AssetPartDeclaration = components['schemas']['AssetPartDeclaration'];
|
|
2459
2665
|
export type AssetProducer = components['schemas']['AssetProducer'];
|
|
2460
2666
|
export type AssetState = components['schemas']['AssetState'];
|
|
2667
|
+
export type AtlasChiselContextFrameAsset = components['schemas']['AtlasChiselContextFrameAsset'];
|
|
2461
2668
|
export type AtlasChiselModelParameters = components['schemas']['AtlasChiselModelParameters'];
|
|
2462
2669
|
export type AtlasChiselRequest = components['schemas']['AtlasChiselRequest'];
|
|
2463
2670
|
export type AtlasChiselResponse = components['schemas']['AtlasChiselResponse'];
|
|
@@ -2499,13 +2706,18 @@ export type ListAssetsResponse = components['schemas']['ListAssetsResponse'];
|
|
|
2499
2706
|
export type ListedOperation = components['schemas']['ListedOperation'];
|
|
2500
2707
|
export type ListedOperationsResponse = components['schemas']['ListedOperationsResponse'];
|
|
2501
2708
|
export type LogDepthBufferAsset = components['schemas']['LogDepthBufferAsset'];
|
|
2709
|
+
export type MaskedLinearDepthBufferAsset = components['schemas']['MaskedLinearDepthBufferAsset'];
|
|
2710
|
+
export type MaskedLogDepthBufferAsset = components['schemas']['MaskedLogDepthBufferAsset'];
|
|
2502
2711
|
export type Operation = components['schemas']['Operation'];
|
|
2503
2712
|
export type OperationError = components['schemas']['OperationError'];
|
|
2504
2713
|
export type OperationStatus = components['schemas']['OperationStatus'];
|
|
2505
2714
|
export type OperationTrace = components['schemas']['OperationTrace'];
|
|
2715
|
+
export type OrientedBoundingBox = components['schemas']['OrientedBoundingBox'];
|
|
2506
2716
|
export type PinholeCamera = components['schemas']['PinholeCamera'];
|
|
2507
2717
|
export type PinholeCameraIntrinsics = components['schemas']['PinholeCameraIntrinsics'];
|
|
2508
|
-
export type
|
|
2718
|
+
export type PosedImages2SplatsRequest = components['schemas']['PosedImages2SplatsRequest'];
|
|
2719
|
+
export type PosedImages2SplatsResponse = components['schemas']['PosedImages2SplatsResponse'];
|
|
2720
|
+
export type PosedImages2SplatsResponseOperation = components['schemas']['PosedImages2SplatsResponseOperation'];
|
|
2509
2721
|
export type PosedRGBAAsset = components['schemas']['PosedRGBAAsset'];
|
|
2510
2722
|
export type PosedRGBAsset = components['schemas']['PosedRGBAsset'];
|
|
2511
2723
|
export type PosedRGBDAsset = components['schemas']['PosedRGBDAsset'];
|
|
@@ -2742,6 +2954,45 @@ export interface operations {
|
|
|
2742
2954
|
};
|
|
2743
2955
|
};
|
|
2744
2956
|
};
|
|
2957
|
+
submit_posedImages2Splats_api_v2_tasks_posedImages2Splats_post: {
|
|
2958
|
+
parameters: {
|
|
2959
|
+
query?: {
|
|
2960
|
+
/** @description Block for the operation to finish before returning, up to the server wait cap. Returns the Operation either way — done with a response if it finished in time, otherwise still running. */
|
|
2961
|
+
wait?: boolean;
|
|
2962
|
+
};
|
|
2963
|
+
header?: {
|
|
2964
|
+
/** @description Optional idempotency key. */
|
|
2965
|
+
"Idempotency-Key"?: string | null;
|
|
2966
|
+
};
|
|
2967
|
+
path?: never;
|
|
2968
|
+
cookie?: never;
|
|
2969
|
+
};
|
|
2970
|
+
requestBody: {
|
|
2971
|
+
content: {
|
|
2972
|
+
"application/json": components["schemas"]["PosedImages2SplatsRequest"];
|
|
2973
|
+
};
|
|
2974
|
+
};
|
|
2975
|
+
responses: {
|
|
2976
|
+
/** @description Successful Response */
|
|
2977
|
+
201: {
|
|
2978
|
+
headers: {
|
|
2979
|
+
[name: string]: unknown;
|
|
2980
|
+
};
|
|
2981
|
+
content: {
|
|
2982
|
+
"application/json": components["schemas"]["PosedImages2SplatsResponseOperation"];
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2985
|
+
/** @description Validation Error */
|
|
2986
|
+
422: {
|
|
2987
|
+
headers: {
|
|
2988
|
+
[name: string]: unknown;
|
|
2989
|
+
};
|
|
2990
|
+
content: {
|
|
2991
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
2992
|
+
};
|
|
2993
|
+
};
|
|
2994
|
+
};
|
|
2995
|
+
};
|
|
2745
2996
|
submit_splats2Mesh_api_v2_tasks_splats2Mesh_post: {
|
|
2746
2997
|
parameters: {
|
|
2747
2998
|
query?: {
|