@worldlabsai/client 0.3.0 → 0.4.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 +18 -8
- package/dist/core/assets.d.ts +4 -0
- package/dist/core/assets.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/network-error.d.ts +6 -0
- package/dist/core/network-error.d.ts.map +1 -0
- package/dist/core/network-error.js +8 -0
- package/dist/core/network-error.js.map +1 -0
- package/dist/core/operations.d.ts +3 -0
- package/dist/core/operations.d.ts.map +1 -1
- package/dist/core/operations.js +5 -0
- package/dist/core/operations.js.map +1 -1
- package/dist/core/tasks.d.ts +6 -6
- package/dist/core/tasks.d.ts.map +1 -1
- package/dist/core/tasks.js +5 -5
- package/dist/core/tasks.js.map +1 -1
- package/dist/core/transport.d.ts +1 -1
- package/dist/core/transport.d.ts.map +1 -1
- package/dist/core/transport.js +44 -21
- package/dist/core/transport.js.map +1 -1
- package/dist/generated/developer-api.gen.d.ts +76 -47
- package/dist/generated/developer-api.gen.d.ts.map +1 -1
- package/dist/generated/tasks.gen.d.ts +6 -6
- package/dist/generated/tasks.gen.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
- package/src/core/index.ts +1 -0
- package/src/core/network-error.ts +8 -0
- package/src/core/operations.ts +6 -0
- package/src/core/tasks.ts +7 -7
- package/src/core/transport.ts +61 -24
- package/src/generated/developer-api.gen.ts +76 -47
- package/src/index.ts +1 -0
|
@@ -429,6 +429,11 @@ export interface components {
|
|
|
429
429
|
* @description Already percent-encoded path for the asset. Append it unchanged to ``baseUrl`` before ``?`` and ``signedQuery``. This path does not grant access by itself. Null until the asset is ``READY`` or when unavailable; use ``assets/{asset}:createReadUrl`` as a fallback.
|
|
430
430
|
*/
|
|
431
431
|
contentPath?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* Url
|
|
434
|
+
* @description Unsigned content URL for the asset, ``baseUrl + contentPath``. It does not grant access by itself: the web app's read-prefix cookie authorizes it, and an API client appends ``?`` and a read prefix's ``signedQuery`` or uses ``assets/{asset}:createReadUrl`` instead. Null whenever ``contentPath`` is.
|
|
435
|
+
*/
|
|
436
|
+
url?: string | null;
|
|
432
437
|
};
|
|
433
438
|
/**
|
|
434
439
|
* AssetCreate
|
|
@@ -485,7 +490,7 @@ export interface components {
|
|
|
485
490
|
operation: string;
|
|
486
491
|
/**
|
|
487
492
|
* Task
|
|
488
|
-
* @description The task that produced them, e.g. ``
|
|
493
|
+
* @description The task that produced them, e.g. ``atlasGenerate``.
|
|
489
494
|
*/
|
|
490
495
|
task?: string | null;
|
|
491
496
|
/** Assets */
|
|
@@ -635,9 +640,14 @@ export interface components {
|
|
|
635
640
|
purgeContentOnOperationCompletion?: boolean | null;
|
|
636
641
|
/**
|
|
637
642
|
* Contextframes
|
|
638
|
-
* @description Posed depth frames, one per target camera and posed at it, in target order; each camera is 1280x720.
|
|
643
|
+
* @description Posed depth frames, one per target camera and posed at it, in target order; each camera is 1280x720. Frames may also carry an imageAsset (the view's known pixels) and a maskAsset (8-bit grayscale, white where the frame's image and depth are known), each 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, and conditions on the depth alone for frames without an image. Frames carry no depth confidenceAsset. Leave empty to generate from the prompt alone.
|
|
639
644
|
*/
|
|
640
645
|
contextFrames?: components["schemas"]["PosedDepthAsset"][];
|
|
646
|
+
/**
|
|
647
|
+
* 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 stay consistent with them: the servable feeds them to the model as views it has already committed, so a target that sees the same surfaces keeps their materials, colors, and lighting. Any cameras and any resolution; each is cover-resized and center-cropped onto 1280x720. Frames carry no maskAsset or depth. Together with contextFrames and targetCameras they fill at most 128 views of the servable's rollout, where a context frame costs 3 and a photograph or target one.
|
|
649
|
+
*/
|
|
650
|
+
sourceFrames?: components["schemas"]["PosedRGBAsset"][];
|
|
641
651
|
/**
|
|
642
652
|
* Targetcameras
|
|
643
653
|
* @description Pinhole cameras at 1280x720 for the views to generate, in output order, returned in `frames`. At most 32.
|
|
@@ -668,7 +678,7 @@ export interface components {
|
|
|
668
678
|
modelParameters?: components["schemas"]["AtlasChiselModelParameters"];
|
|
669
679
|
/**
|
|
670
680
|
* Returndepth
|
|
671
|
-
* @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. Needs at least two target cameras. Limitation: the depth scale is recovered from the
|
|
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. A source photograph joins the reconstruction as an anchor, and gets no depth back, only when its image is at the generated resolution and its camera's principal point is centered. Needs at least two 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 no anchor come back with a 0.0 or NaN scale and a success status.
|
|
672
682
|
* @default false
|
|
673
683
|
*/
|
|
674
684
|
returnDepth?: boolean;
|
|
@@ -718,13 +728,11 @@ export interface components {
|
|
|
718
728
|
} | null;
|
|
719
729
|
/**
|
|
720
730
|
* Done
|
|
721
|
-
* @description Whether the operation is terminal. When
|
|
731
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
722
732
|
*/
|
|
723
733
|
done: boolean;
|
|
724
734
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
725
735
|
error?: components["schemas"]["OperationError"] | null;
|
|
726
|
-
/** @description ``AtlasChiselResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
727
|
-
response?: components["schemas"]["AtlasChiselResponse"] | null;
|
|
728
736
|
/**
|
|
729
737
|
* Expiresatsecs
|
|
730
738
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -735,6 +743,8 @@ export interface components {
|
|
|
735
743
|
* @description Unix seconds when the operation was accepted.
|
|
736
744
|
*/
|
|
737
745
|
createdAtSecs?: number | null;
|
|
746
|
+
/** @description ``AtlasChiselResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
747
|
+
response?: components["schemas"]["AtlasChiselResponse"] | null;
|
|
738
748
|
/**
|
|
739
749
|
* Name
|
|
740
750
|
* @description Full resource name for the operation.
|
|
@@ -777,9 +787,15 @@ export interface components {
|
|
|
777
787
|
* @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.
|
|
778
788
|
*/
|
|
779
789
|
purgeContentOnOperationCompletion?: boolean | null;
|
|
790
|
+
/**
|
|
791
|
+
* Base64Outputs
|
|
792
|
+
* @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.
|
|
793
|
+
* @default false
|
|
794
|
+
*/
|
|
795
|
+
base64Outputs?: boolean;
|
|
780
796
|
/**
|
|
781
797
|
* Contextframes
|
|
782
|
-
* @description Posed RGBD context views: each an image, its depth buffer, and its camera, all required. On the reference-context warp route the depth conditions the generation geometrically, so the generated views stay consistent with the provided scene; the hero base checkpoint conditions on the posed images only and does not consume the depth.
|
|
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. On the reference-context warp route the depth conditions the generation geometrically, so the generated views stay consistent with the provided scene; the hero base checkpoint conditions on the posed images only and does not consume the depth.
|
|
783
799
|
*/
|
|
784
800
|
contextFrames: components["schemas"]["PosedRGBDAsset"][];
|
|
785
801
|
/**
|
|
@@ -800,7 +816,7 @@ export interface components {
|
|
|
800
816
|
enhancePrompt?: boolean;
|
|
801
817
|
/**
|
|
802
818
|
* Returndepth
|
|
803
|
-
* @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.
|
|
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. On the hero base route, with more than 19 context frames, or with a masked context frame, a context frame joins the reconstruction only when its image is at the generated resolution and its camera's principal point is centered.
|
|
804
820
|
* @default false
|
|
805
821
|
*/
|
|
806
822
|
returnDepth?: boolean;
|
|
@@ -852,13 +868,11 @@ export interface components {
|
|
|
852
868
|
} | null;
|
|
853
869
|
/**
|
|
854
870
|
* Done
|
|
855
|
-
* @description Whether the operation is terminal. When
|
|
871
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
856
872
|
*/
|
|
857
873
|
done: boolean;
|
|
858
874
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
859
875
|
error?: components["schemas"]["OperationError"] | null;
|
|
860
|
-
/** @description ``AtlasGenerateResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
861
|
-
response?: components["schemas"]["AtlasGenerateResponse"] | null;
|
|
862
876
|
/**
|
|
863
877
|
* Expiresatsecs
|
|
864
878
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -869,6 +883,8 @@ export interface components {
|
|
|
869
883
|
* @description Unix seconds when the operation was accepted.
|
|
870
884
|
*/
|
|
871
885
|
createdAtSecs?: number | null;
|
|
886
|
+
/** @description ``AtlasGenerateResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
887
|
+
response?: components["schemas"]["AtlasGenerateResponse"] | null;
|
|
872
888
|
/**
|
|
873
889
|
* Name
|
|
874
890
|
* @description Full resource name for the operation.
|
|
@@ -987,13 +1003,11 @@ export interface components {
|
|
|
987
1003
|
} | null;
|
|
988
1004
|
/**
|
|
989
1005
|
* Done
|
|
990
|
-
* @description Whether the operation is terminal. When
|
|
1006
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
991
1007
|
*/
|
|
992
1008
|
done: boolean;
|
|
993
1009
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
994
1010
|
error?: components["schemas"]["OperationError"] | null;
|
|
995
|
-
/** @description ``AtlasMaskedResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
996
|
-
response?: components["schemas"]["AtlasMaskedResponse"] | null;
|
|
997
1011
|
/**
|
|
998
1012
|
* Expiresatsecs
|
|
999
1013
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -1004,6 +1018,8 @@ export interface components {
|
|
|
1004
1018
|
* @description Unix seconds when the operation was accepted.
|
|
1005
1019
|
*/
|
|
1006
1020
|
createdAtSecs?: number | null;
|
|
1021
|
+
/** @description ``AtlasMaskedResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
1022
|
+
response?: components["schemas"]["AtlasMaskedResponse"] | null;
|
|
1007
1023
|
/**
|
|
1008
1024
|
* Name
|
|
1009
1025
|
* @description Full resource name for the operation.
|
|
@@ -1112,13 +1128,11 @@ export interface components {
|
|
|
1112
1128
|
} | null;
|
|
1113
1129
|
/**
|
|
1114
1130
|
* Done
|
|
1115
|
-
* @description Whether the operation is terminal. When
|
|
1131
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
1116
1132
|
*/
|
|
1117
1133
|
done: boolean;
|
|
1118
1134
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
1119
1135
|
error?: components["schemas"]["OperationError"] | null;
|
|
1120
|
-
/** @description ``AtlasTextToImageResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
1121
|
-
response?: components["schemas"]["AtlasTextToImageResponse"] | null;
|
|
1122
1136
|
/**
|
|
1123
1137
|
* Expiresatsecs
|
|
1124
1138
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -1129,6 +1143,8 @@ export interface components {
|
|
|
1129
1143
|
* @description Unix seconds when the operation was accepted.
|
|
1130
1144
|
*/
|
|
1131
1145
|
createdAtSecs?: number | null;
|
|
1146
|
+
/** @description ``AtlasTextToImageResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
1147
|
+
response?: components["schemas"]["AtlasTextToImageResponse"] | null;
|
|
1132
1148
|
/**
|
|
1133
1149
|
* Name
|
|
1134
1150
|
* @description Full resource name for the operation.
|
|
@@ -1354,6 +1370,11 @@ export interface components {
|
|
|
1354
1370
|
* @description Already percent-encoded path for the asset. Append it unchanged to ``baseUrl`` before ``?`` and ``signedQuery``. This path does not grant access by itself. Null until the asset is ``READY`` or when unavailable; use ``assets/{asset}:createReadUrl`` as a fallback.
|
|
1355
1371
|
*/
|
|
1356
1372
|
contentPath?: string | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* Url
|
|
1375
|
+
* @description Unsigned content URL for the asset, ``baseUrl + contentPath``. It does not grant access by itself: the web app's read-prefix cookie authorizes it, and an API client appends ``?`` and a read prefix's ``signedQuery`` or uses ``assets/{asset}:createReadUrl`` instead. Null whenever ``contentPath`` is.
|
|
1376
|
+
*/
|
|
1377
|
+
url?: string | null;
|
|
1357
1378
|
/**
|
|
1358
1379
|
* Uploads
|
|
1359
1380
|
* @description One grant per declared part; empty for URL or inline ingestion.
|
|
@@ -1541,6 +1562,12 @@ export interface components {
|
|
|
1541
1562
|
* @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.
|
|
1542
1563
|
*/
|
|
1543
1564
|
purgeContentOnOperationCompletion?: boolean | null;
|
|
1565
|
+
/**
|
|
1566
|
+
* Base64Outputs
|
|
1567
|
+
* @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.
|
|
1568
|
+
* @default false
|
|
1569
|
+
*/
|
|
1570
|
+
base64Outputs?: boolean;
|
|
1544
1571
|
/**
|
|
1545
1572
|
* Frames
|
|
1546
1573
|
* @description Ordered image inputs (min 1). A frame that carries a camera, a depth buffer or a mask is rejected rather than quietly ignored: none of them reaches the reconstruction.
|
|
@@ -1611,13 +1638,11 @@ export interface components {
|
|
|
1611
1638
|
} | null;
|
|
1612
1639
|
/**
|
|
1613
1640
|
* Done
|
|
1614
|
-
* @description Whether the operation is terminal. When
|
|
1641
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
1615
1642
|
*/
|
|
1616
1643
|
done: boolean;
|
|
1617
1644
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
1618
1645
|
error?: components["schemas"]["OperationError"] | null;
|
|
1619
|
-
/** @description ``Images2PosedRGBDResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
1620
|
-
response?: components["schemas"]["Images2PosedRGBDResponse"] | null;
|
|
1621
1646
|
/**
|
|
1622
1647
|
* Expiresatsecs
|
|
1623
1648
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -1628,6 +1653,8 @@ export interface components {
|
|
|
1628
1653
|
* @description Unix seconds when the operation was accepted.
|
|
1629
1654
|
*/
|
|
1630
1655
|
createdAtSecs?: number | null;
|
|
1656
|
+
/** @description ``Images2PosedRGBDResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
1657
|
+
response?: components["schemas"]["Images2PosedRGBDResponse"] | null;
|
|
1631
1658
|
/**
|
|
1632
1659
|
* Name
|
|
1633
1660
|
* @description Full resource name for the operation.
|
|
@@ -1677,7 +1704,7 @@ export interface components {
|
|
|
1677
1704
|
};
|
|
1678
1705
|
/**
|
|
1679
1706
|
* ListedOperation
|
|
1680
|
-
* @description An
|
|
1707
|
+
* @description An operation summary with callback progress; GET it for the result.
|
|
1681
1708
|
*/
|
|
1682
1709
|
ListedOperation: {
|
|
1683
1710
|
/**
|
|
@@ -1699,18 +1726,11 @@ export interface components {
|
|
|
1699
1726
|
} | null;
|
|
1700
1727
|
/**
|
|
1701
1728
|
* Done
|
|
1702
|
-
* @description Whether the operation is terminal. When
|
|
1729
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
1703
1730
|
*/
|
|
1704
1731
|
done: boolean;
|
|
1705
1732
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
1706
1733
|
error?: components["schemas"]["OperationError"] | null;
|
|
1707
|
-
/**
|
|
1708
|
-
* Response
|
|
1709
|
-
* @description Task-specific result when ``done`` is true and the task succeeded; null while running and after failure.
|
|
1710
|
-
*/
|
|
1711
|
-
response?: {
|
|
1712
|
-
[key: string]: unknown;
|
|
1713
|
-
} | null;
|
|
1714
1734
|
/**
|
|
1715
1735
|
* Expiresatsecs
|
|
1716
1736
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -1771,7 +1791,7 @@ export interface components {
|
|
|
1771
1791
|
};
|
|
1772
1792
|
/**
|
|
1773
1793
|
* Operation
|
|
1774
|
-
* @description
|
|
1794
|
+
* @description An operation with its result, available through singular reads.
|
|
1775
1795
|
*/
|
|
1776
1796
|
Operation: {
|
|
1777
1797
|
/**
|
|
@@ -1793,18 +1813,11 @@ export interface components {
|
|
|
1793
1813
|
} | null;
|
|
1794
1814
|
/**
|
|
1795
1815
|
* Done
|
|
1796
|
-
* @description Whether the operation is terminal. When
|
|
1816
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
1797
1817
|
*/
|
|
1798
1818
|
done: boolean;
|
|
1799
1819
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
1800
1820
|
error?: components["schemas"]["OperationError"] | null;
|
|
1801
|
-
/**
|
|
1802
|
-
* Response
|
|
1803
|
-
* @description Task-specific result when ``done`` is true and the task succeeded; null while running and after failure.
|
|
1804
|
-
*/
|
|
1805
|
-
response?: {
|
|
1806
|
-
[key: string]: unknown;
|
|
1807
|
-
} | null;
|
|
1808
1821
|
/**
|
|
1809
1822
|
* Expiresatsecs
|
|
1810
1823
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -1815,6 +1828,13 @@ export interface components {
|
|
|
1815
1828
|
* @description Unix seconds when the operation was accepted.
|
|
1816
1829
|
*/
|
|
1817
1830
|
createdAtSecs?: number | null;
|
|
1831
|
+
/**
|
|
1832
|
+
* Response
|
|
1833
|
+
* @description Task-specific result when ``done`` is true and the task succeeded; null while running and after failure.
|
|
1834
|
+
*/
|
|
1835
|
+
response?: {
|
|
1836
|
+
[key: string]: unknown;
|
|
1837
|
+
} | null;
|
|
1818
1838
|
/**
|
|
1819
1839
|
* Name
|
|
1820
1840
|
* @description Full resource name for the operation.
|
|
@@ -2014,7 +2034,7 @@ export interface components {
|
|
|
2014
2034
|
session?: string | null;
|
|
2015
2035
|
/**
|
|
2016
2036
|
* Task
|
|
2017
|
-
* @description The task that produced it, e.g. ``
|
|
2037
|
+
* @description The task that produced it, e.g. ``atlasGenerate``.
|
|
2018
2038
|
*/
|
|
2019
2039
|
task?: string | null;
|
|
2020
2040
|
/**
|
|
@@ -2042,8 +2062,8 @@ export interface components {
|
|
|
2042
2062
|
renderHw?: number;
|
|
2043
2063
|
/**
|
|
2044
2064
|
* Renderhwsecondary
|
|
2045
|
-
* @description Height and width of the secondary views, in pixels. The anchor strategies
|
|
2046
|
-
* @default
|
|
2065
|
+
* @description Height and width of the secondary views, in pixels. The anchor strategies place extra cameras from the anchors and render them here, covering what the main views miss. `exterior_sphere` and a supplied camera list render no secondary views and ignore this.
|
|
2066
|
+
* @default 256
|
|
2047
2067
|
*/
|
|
2048
2068
|
renderHwSecondary?: number;
|
|
2049
2069
|
/**
|
|
@@ -2053,6 +2073,13 @@ export interface components {
|
|
|
2053
2073
|
* @enum {string}
|
|
2054
2074
|
*/
|
|
2055
2075
|
normalSource?: "depth" | "render";
|
|
2076
|
+
/**
|
|
2077
|
+
* Depthsource
|
|
2078
|
+
* @description Depth of the main views. `render` uses the splats' rendered depth; `stereo` measures it by stereo matching each view against a second render from a camera shifted sideways, which is sharper where the splats are fuzzy and slower to compute. Pixels stereo cannot match keep the rendered depth.
|
|
2079
|
+
* @default render
|
|
2080
|
+
* @enum {string}
|
|
2081
|
+
*/
|
|
2082
|
+
depthSource?: "render" | "stereo";
|
|
2056
2083
|
/**
|
|
2057
2084
|
* Resolution
|
|
2058
2085
|
* @description Resolution of the grid the implicit surface is built on, across the region's longest side. Powers of two only. This sets the finest detail the mesh can carry.
|
|
@@ -2194,13 +2221,11 @@ export interface components {
|
|
|
2194
2221
|
} | null;
|
|
2195
2222
|
/**
|
|
2196
2223
|
* Done
|
|
2197
|
-
* @description Whether the operation is terminal. When
|
|
2224
|
+
* @description Whether the operation is terminal. When true, a non-null ``error`` indicates failure; otherwise the operation succeeded.
|
|
2198
2225
|
*/
|
|
2199
2226
|
done: boolean;
|
|
2200
2227
|
/** @description Failure details when ``done`` is true and the task failed; null while running and after success. */
|
|
2201
2228
|
error?: components["schemas"]["OperationError"] | null;
|
|
2202
|
-
/** @description ``Splats2MeshResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
2203
|
-
response?: components["schemas"]["Splats2MeshResponse"] | null;
|
|
2204
2229
|
/**
|
|
2205
2230
|
* Expiresatsecs
|
|
2206
2231
|
* @description Task execution deadline as Unix seconds, when one is exposed. This is not an asset URL expiration.
|
|
@@ -2211,6 +2236,8 @@ export interface components {
|
|
|
2211
2236
|
* @description Unix seconds when the operation was accepted.
|
|
2212
2237
|
*/
|
|
2213
2238
|
createdAtSecs?: number | null;
|
|
2239
|
+
/** @description ``Splats2MeshResponse`` result when ``done`` is true and the task succeeded; null while running and after failure. */
|
|
2240
|
+
response?: components["schemas"]["Splats2MeshResponse"] | null;
|
|
2214
2241
|
/**
|
|
2215
2242
|
* Name
|
|
2216
2243
|
* @description Full resource name for the operation.
|
|
@@ -2228,7 +2255,9 @@ export interface components {
|
|
|
2228
2255
|
* A task response names each output by id and url together: the url expires,
|
|
2229
2256
|
* the id does not. The pair is accepted as input as well, so a response can
|
|
2230
2257
|
* be handed straight back to the next task; the id names the media and the
|
|
2231
|
-
* url is ignored. Inline base64
|
|
2258
|
+
* url is ignored. Inline base64 stands alone. A response returns it only
|
|
2259
|
+
* when a task is answered at submission; the stored operation names the
|
|
2260
|
+
* same output by id and url.
|
|
2232
2261
|
*/
|
|
2233
2262
|
TaskAsset: {
|
|
2234
2263
|
/**
|
|
@@ -2238,7 +2267,7 @@ export interface components {
|
|
|
2238
2267
|
assetId?: string | null;
|
|
2239
2268
|
/**
|
|
2240
2269
|
* Base64
|
|
2241
|
-
* @description Base64-encoded media bytes, with or without a data URL prefix. Decoded size must be less than 10 MiB.
|
|
2270
|
+
* @description Base64-encoded media bytes, with or without a data URL prefix. Decoded size must be less than 10 MiB. A task response carries inline bytes only when it is returned from the submission; the stored operation names the same output by `assetId` and `url`.
|
|
2242
2271
|
*/
|
|
2243
2272
|
base64?: string | null;
|
|
2244
2273
|
/**
|
|
@@ -2973,7 +3002,7 @@ export interface operations {
|
|
|
2973
3002
|
mimeType?: string | null;
|
|
2974
3003
|
/** @description Only assets this Operation produced. */
|
|
2975
3004
|
operation?: string | null;
|
|
2976
|
-
/** @description Only assets this task produced, e.g. `
|
|
3005
|
+
/** @description Only assets this task produced, e.g. `atlasGenerate`. */
|
|
2977
3006
|
task?: string | null;
|
|
2978
3007
|
/** @description Only assets made this way, e.g. `UPLOAD` for the customer's own bytes. Assets recorded before the producer was stored match no value. */
|
|
2979
3008
|
producer?: components["schemas"]["AssetProducer"] | null;
|