@scenario-labs/sdk 2.0.0 → 2.2.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/CHANGELOG.md +40 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/asset.d.mts.map +1 -1
- package/lib/asset.d.ts.map +1 -1
- package/lib/asset.mjs.map +1 -1
- package/lib/generate.d.mts.map +1 -1
- package/lib/generate.d.ts.map +1 -1
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts.map +1 -1
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts.map +1 -1
- package/lib/models.mjs.map +1 -1
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.mjs.map +1 -1
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +58 -2
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +58 -2
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +350 -35
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +345 -35
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_import_validator.d.mts +1 -1
- package/lib/workflow_import_validator.d.mts.map +1 -1
- package/lib/workflow_import_validator.d.ts +1 -1
- package/lib/workflow_import_validator.d.ts.map +1 -1
- package/lib/workflow_import_validator.js +1 -0
- package/lib/workflow_import_validator.js.map +1 -1
- package/lib/workflow_import_validator.mjs +1 -0
- package/lib/workflow_import_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/assets/assets.d.mts +289 -135
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +289 -135
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.mjs.map +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/assets.d.mts.map +1 -1
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.mjs.map +1 -1
- package/resources/collections.d.mts.map +1 -1
- package/resources/collections.d.ts.map +1 -1
- package/resources/collections.mjs.map +1 -1
- package/resources/generate.d.mts +86 -48
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +86 -48
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +6 -6
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +6 -6
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +54 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +54 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +74 -36
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +74 -36
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +21 -21
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +21 -21
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +8 -8
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +8 -8
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/models.mjs.map +1 -1
- package/resources/oscu.d.mts.map +1 -1
- package/resources/oscu.d.ts.map +1 -1
- package/resources/oscu.mjs.map +1 -1
- package/resources/pricing/index.d.mts.map +1 -1
- package/resources/pricing/index.d.ts.map +1 -1
- package/resources/pricing/index.mjs.map +1 -1
- package/resources/pricing/oscu.d.mts.map +1 -1
- package/resources/pricing/oscu.d.ts.map +1 -1
- package/resources/pricing/oscu.mjs.map +1 -1
- package/resources/pricing/pricing.d.mts.map +1 -1
- package/resources/pricing/pricing.d.ts.map +1 -1
- package/resources/pricing/pricing.mjs.map +1 -1
- package/resources/pricing.d.mts.map +1 -1
- package/resources/pricing.d.ts.map +1 -1
- package/resources/pricing.mjs.map +1 -1
- package/resources/search.d.mts +6 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +6 -0
- package/resources/search.d.ts.map +1 -1
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/uploads.d.mts +4 -4
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +4 -4
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +31 -6
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +31 -6
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +36 -36
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +36 -36
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/index.ts +9 -0
- package/src/lib/workflow_converter.ts +487 -28
- package/src/lib/workflow_import_validator.ts +2 -0
- package/src/resources/assets/assets.ts +376 -118
- package/src/resources/generate.ts +106 -44
- package/src/resources/jobs.ts +6 -6
- package/src/resources/models/description.ts +68 -2
- package/src/resources/models/examples.ts +94 -32
- package/src/resources/models/models.ts +21 -14
- package/src/resources/models/train.ts +8 -6
- package/src/resources/search.ts +7 -0
- package/src/resources/uploads.ts +4 -4
- package/src/resources/usages.ts +41 -4
- package/src/resources/workflows.ts +36 -36
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -43,7 +43,7 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
43
43
|
/**
|
|
44
44
|
* The kind of asset
|
|
45
45
|
*/
|
|
46
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
46
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
47
47
|
/**
|
|
48
48
|
* The mime type of the asset (example: "image/png")
|
|
49
49
|
*/
|
|
@@ -64,7 +64,7 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
64
64
|
/**
|
|
65
65
|
* source of the asset
|
|
66
66
|
*/
|
|
67
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
67
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
68
68
|
/**
|
|
69
69
|
* Signed URL to get the asset content
|
|
70
70
|
*/
|
|
@@ -112,6 +112,12 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
112
112
|
* Number of channels of the audio
|
|
113
113
|
*/
|
|
114
114
|
channels?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Number of Unicode code points in the text. Code-point-aware (so a non-BMP emoji
|
|
117
|
+
* counts as 1) but not full grapheme-cluster aware (a ZWJ sequence still counts as
|
|
118
|
+
* several).
|
|
119
|
+
*/
|
|
120
|
+
charCount?: number;
|
|
115
121
|
/**
|
|
116
122
|
* Classification of the audio
|
|
117
123
|
*/
|
|
@@ -148,6 +154,13 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
148
154
|
* Whether the mesh has animations
|
|
149
155
|
*/
|
|
150
156
|
hasAnimations?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* True when `preview` holds the entire content unmodified — consumers can use it
|
|
159
|
+
* directly without fetching `asset.url`. False or undefined means the content
|
|
160
|
+
* exceeds the preview budget and consumers must fetch the full body from S3 to
|
|
161
|
+
* read past the preview.
|
|
162
|
+
*/
|
|
163
|
+
hasFullPreview?: boolean;
|
|
151
164
|
/**
|
|
152
165
|
* Whether the mesh has normal vectors
|
|
153
166
|
*/
|
|
@@ -165,6 +178,14 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
165
178
|
* Number of frames in the video
|
|
166
179
|
*/
|
|
167
180
|
nbFrames?: number;
|
|
181
|
+
/**
|
|
182
|
+
* Leading slice of the content used for inline UI display and as a search
|
|
183
|
+
* shortcut. Capped at TEXT_PREVIEW_MAX_BYTES (UTF-8) and always cut on a
|
|
184
|
+
* code-point boundary so no character is split. Number of characters in the
|
|
185
|
+
* preview varies by script (around 1024 for ASCII, ~340 for CJK, ~256 for
|
|
186
|
+
* emoji-heavy text at the default 1 KB budget).
|
|
187
|
+
*/
|
|
188
|
+
preview?: string;
|
|
168
189
|
/**
|
|
169
190
|
* Sample rate of the media in Hz
|
|
170
191
|
*/
|
|
@@ -178,6 +199,10 @@ export declare namespace DescriptionRetrieveResponse {
|
|
|
178
199
|
*/
|
|
179
200
|
vertexCount?: number;
|
|
180
201
|
width?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Number of whitespace-separated words in the text
|
|
204
|
+
*/
|
|
205
|
+
wordCount?: number;
|
|
181
206
|
}
|
|
182
207
|
namespace Properties {
|
|
183
208
|
/**
|
|
@@ -271,7 +296,7 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
271
296
|
/**
|
|
272
297
|
* The kind of asset
|
|
273
298
|
*/
|
|
274
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
299
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
275
300
|
/**
|
|
276
301
|
* The mime type of the asset (example: "image/png")
|
|
277
302
|
*/
|
|
@@ -292,7 +317,7 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
292
317
|
/**
|
|
293
318
|
* source of the asset
|
|
294
319
|
*/
|
|
295
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
320
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
296
321
|
/**
|
|
297
322
|
* Signed URL to get the asset content
|
|
298
323
|
*/
|
|
@@ -340,6 +365,12 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
340
365
|
* Number of channels of the audio
|
|
341
366
|
*/
|
|
342
367
|
channels?: number;
|
|
368
|
+
/**
|
|
369
|
+
* Number of Unicode code points in the text. Code-point-aware (so a non-BMP emoji
|
|
370
|
+
* counts as 1) but not full grapheme-cluster aware (a ZWJ sequence still counts as
|
|
371
|
+
* several).
|
|
372
|
+
*/
|
|
373
|
+
charCount?: number;
|
|
343
374
|
/**
|
|
344
375
|
* Classification of the audio
|
|
345
376
|
*/
|
|
@@ -376,6 +407,13 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
376
407
|
* Whether the mesh has animations
|
|
377
408
|
*/
|
|
378
409
|
hasAnimations?: boolean;
|
|
410
|
+
/**
|
|
411
|
+
* True when `preview` holds the entire content unmodified — consumers can use it
|
|
412
|
+
* directly without fetching `asset.url`. False or undefined means the content
|
|
413
|
+
* exceeds the preview budget and consumers must fetch the full body from S3 to
|
|
414
|
+
* read past the preview.
|
|
415
|
+
*/
|
|
416
|
+
hasFullPreview?: boolean;
|
|
379
417
|
/**
|
|
380
418
|
* Whether the mesh has normal vectors
|
|
381
419
|
*/
|
|
@@ -393,6 +431,14 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
393
431
|
* Number of frames in the video
|
|
394
432
|
*/
|
|
395
433
|
nbFrames?: number;
|
|
434
|
+
/**
|
|
435
|
+
* Leading slice of the content used for inline UI display and as a search
|
|
436
|
+
* shortcut. Capped at TEXT_PREVIEW_MAX_BYTES (UTF-8) and always cut on a
|
|
437
|
+
* code-point boundary so no character is split. Number of characters in the
|
|
438
|
+
* preview varies by script (around 1024 for ASCII, ~340 for CJK, ~256 for
|
|
439
|
+
* emoji-heavy text at the default 1 KB budget).
|
|
440
|
+
*/
|
|
441
|
+
preview?: string;
|
|
396
442
|
/**
|
|
397
443
|
* Sample rate of the media in Hz
|
|
398
444
|
*/
|
|
@@ -406,6 +452,10 @@ export declare namespace DescriptionUpdateResponse {
|
|
|
406
452
|
*/
|
|
407
453
|
vertexCount?: number;
|
|
408
454
|
width?: number;
|
|
455
|
+
/**
|
|
456
|
+
* Number of whitespace-separated words in the text
|
|
457
|
+
*/
|
|
458
|
+
wordCount?: number;
|
|
409
459
|
}
|
|
410
460
|
namespace Properties {
|
|
411
461
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.d.ts","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"description.d.ts","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CA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M,WAAW,uBAAuB;IACtC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.mjs","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"description.mjs","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE;YAC5D,KAAK,EAAE,EAAE,cAAc,EAAE;YACzB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -65,7 +65,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
65
65
|
/**
|
|
66
66
|
* The kind of asset
|
|
67
67
|
*/
|
|
68
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
68
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
69
69
|
/**
|
|
70
70
|
* Metadata of the asset with some additional information
|
|
71
71
|
*/
|
|
@@ -90,7 +90,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
90
90
|
/**
|
|
91
91
|
* source of the asset
|
|
92
92
|
*/
|
|
93
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
93
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
94
94
|
/**
|
|
95
95
|
* The actual status
|
|
96
96
|
*/
|
|
@@ -178,12 +178,12 @@ export declare namespace ExampleUpdateResponse {
|
|
|
178
178
|
* Metadata of the asset with some additional information
|
|
179
179
|
*/
|
|
180
180
|
interface Metadata {
|
|
181
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
181
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
182
182
|
/**
|
|
183
183
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
184
184
|
* from a text to image model
|
|
185
185
|
*/
|
|
186
|
-
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
186
|
+
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
187
187
|
/**
|
|
188
188
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
189
189
|
*/
|
|
@@ -193,10 +193,6 @@ export declare namespace ExampleUpdateResponse {
|
|
|
193
193
|
* models
|
|
194
194
|
*/
|
|
195
195
|
aspectRatio?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Int to set between 0 and 255 for the opacity of the background in the result
|
|
198
|
-
* images.
|
|
199
|
-
*/
|
|
200
196
|
backgroundOpacity?: number;
|
|
201
197
|
/**
|
|
202
198
|
* The baseModelId that maybe changed at inference time
|
|
@@ -206,9 +202,6 @@ export declare namespace ExampleUpdateResponse {
|
|
|
206
202
|
* A bounding box around the object of interest, in the format [x1, y1, x2, y2].
|
|
207
203
|
*/
|
|
208
204
|
bbox?: Array<number>;
|
|
209
|
-
/**
|
|
210
|
-
* Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
|
|
211
|
-
*/
|
|
212
205
|
betterQuality?: boolean;
|
|
213
206
|
/**
|
|
214
207
|
* The control image already processed by canny detector. Must reference an
|
|
@@ -267,9 +260,6 @@ export declare namespace ExampleUpdateResponse {
|
|
|
267
260
|
* Amount of details to remove or add
|
|
268
261
|
*/
|
|
269
262
|
detailsLevel?: number;
|
|
270
|
-
/**
|
|
271
|
-
* The number of pixels to dilate the result masks.
|
|
272
|
-
*/
|
|
273
263
|
dilate?: number;
|
|
274
264
|
/**
|
|
275
265
|
* Contrast factor for Grayscale detector
|
|
@@ -471,11 +461,15 @@ export declare namespace ExampleUpdateResponse {
|
|
|
471
461
|
*/
|
|
472
462
|
resultContours?: boolean;
|
|
473
463
|
/**
|
|
474
|
-
* Boolean to
|
|
464
|
+
* Boolean to return the source image with the mask applied as alpha channel (RGBA
|
|
465
|
+
* PNG, transparent background) instead of the binary mask. Mutually exclusive with
|
|
466
|
+
* `resultMask` — passing both as `true` returns a 400 error. Note:
|
|
467
|
+
* `backgroundOpacity` is no longer honored — alpha is binary (0/255) only.
|
|
475
468
|
*/
|
|
476
469
|
resultImage?: boolean;
|
|
477
470
|
/**
|
|
478
|
-
* Boolean to
|
|
471
|
+
* Boolean to return the binary masks in the response. Mutually exclusive with
|
|
472
|
+
* `resultImage` — passing both as `true` returns a 400 error.
|
|
479
473
|
*/
|
|
480
474
|
resultMask?: boolean;
|
|
481
475
|
rootParentId?: string;
|
|
@@ -631,6 +625,12 @@ export declare namespace ExampleUpdateResponse {
|
|
|
631
625
|
* Number of channels of the audio
|
|
632
626
|
*/
|
|
633
627
|
channels?: number;
|
|
628
|
+
/**
|
|
629
|
+
* Number of Unicode code points in the text. Code-point-aware (so a non-BMP emoji
|
|
630
|
+
* counts as 1) but not full grapheme-cluster aware (a ZWJ sequence still counts as
|
|
631
|
+
* several).
|
|
632
|
+
*/
|
|
633
|
+
charCount?: number;
|
|
634
634
|
/**
|
|
635
635
|
* Classification of the audio
|
|
636
636
|
*/
|
|
@@ -667,6 +667,13 @@ export declare namespace ExampleUpdateResponse {
|
|
|
667
667
|
* Whether the mesh has animations
|
|
668
668
|
*/
|
|
669
669
|
hasAnimations?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* True when `preview` holds the entire content unmodified — consumers can use it
|
|
672
|
+
* directly without fetching `asset.url`. False or undefined means the content
|
|
673
|
+
* exceeds the preview budget and consumers must fetch the full body from S3 to
|
|
674
|
+
* read past the preview.
|
|
675
|
+
*/
|
|
676
|
+
hasFullPreview?: boolean;
|
|
670
677
|
/**
|
|
671
678
|
* Whether the mesh has normal vectors
|
|
672
679
|
*/
|
|
@@ -684,6 +691,14 @@ export declare namespace ExampleUpdateResponse {
|
|
|
684
691
|
* Number of frames in the video
|
|
685
692
|
*/
|
|
686
693
|
nbFrames?: number;
|
|
694
|
+
/**
|
|
695
|
+
* Leading slice of the content used for inline UI display and as a search
|
|
696
|
+
* shortcut. Capped at TEXT_PREVIEW_MAX_BYTES (UTF-8) and always cut on a
|
|
697
|
+
* code-point boundary so no character is split. Number of characters in the
|
|
698
|
+
* preview varies by script (around 1024 for ASCII, ~340 for CJK, ~256 for
|
|
699
|
+
* emoji-heavy text at the default 1 KB budget).
|
|
700
|
+
*/
|
|
701
|
+
preview?: string;
|
|
687
702
|
/**
|
|
688
703
|
* Sample rate of the media in Hz
|
|
689
704
|
*/
|
|
@@ -697,6 +712,10 @@ export declare namespace ExampleUpdateResponse {
|
|
|
697
712
|
*/
|
|
698
713
|
vertexCount?: number;
|
|
699
714
|
width?: number;
|
|
715
|
+
/**
|
|
716
|
+
* Number of whitespace-separated words in the text
|
|
717
|
+
*/
|
|
718
|
+
wordCount?: number;
|
|
700
719
|
}
|
|
701
720
|
namespace Properties {
|
|
702
721
|
/**
|
|
@@ -1292,7 +1311,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1292
1311
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1293
1312
|
* data:kind, prefix
|
|
1294
1313
|
*/
|
|
1295
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1314
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1296
1315
|
/**
|
|
1297
1316
|
* The label displayed in the UI for this input
|
|
1298
1317
|
*/
|
|
@@ -1450,7 +1469,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1450
1469
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1451
1470
|
* data:kind, prefix
|
|
1452
1471
|
*/
|
|
1453
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1472
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1454
1473
|
/**
|
|
1455
1474
|
* The label displayed in the UI for this input
|
|
1456
1475
|
*/
|
|
@@ -1773,7 +1792,7 @@ export declare namespace ExampleListResponse {
|
|
|
1773
1792
|
/**
|
|
1774
1793
|
* The kind of asset
|
|
1775
1794
|
*/
|
|
1776
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1795
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1777
1796
|
/**
|
|
1778
1797
|
* Metadata of the asset with some additional information
|
|
1779
1798
|
*/
|
|
@@ -1798,7 +1817,7 @@ export declare namespace ExampleListResponse {
|
|
|
1798
1817
|
/**
|
|
1799
1818
|
* source of the asset
|
|
1800
1819
|
*/
|
|
1801
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1820
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1802
1821
|
/**
|
|
1803
1822
|
* The actual status
|
|
1804
1823
|
*/
|
|
@@ -1886,12 +1905,12 @@ export declare namespace ExampleListResponse {
|
|
|
1886
1905
|
* Metadata of the asset with some additional information
|
|
1887
1906
|
*/
|
|
1888
1907
|
interface Metadata {
|
|
1889
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1908
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1890
1909
|
/**
|
|
1891
1910
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
1892
1911
|
* from a text to image model
|
|
1893
1912
|
*/
|
|
1894
|
-
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1913
|
+
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1895
1914
|
/**
|
|
1896
1915
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
1897
1916
|
*/
|
|
@@ -1901,10 +1920,6 @@ export declare namespace ExampleListResponse {
|
|
|
1901
1920
|
* models
|
|
1902
1921
|
*/
|
|
1903
1922
|
aspectRatio?: string;
|
|
1904
|
-
/**
|
|
1905
|
-
* Int to set between 0 and 255 for the opacity of the background in the result
|
|
1906
|
-
* images.
|
|
1907
|
-
*/
|
|
1908
1923
|
backgroundOpacity?: number;
|
|
1909
1924
|
/**
|
|
1910
1925
|
* The baseModelId that maybe changed at inference time
|
|
@@ -1914,9 +1929,6 @@ export declare namespace ExampleListResponse {
|
|
|
1914
1929
|
* A bounding box around the object of interest, in the format [x1, y1, x2, y2].
|
|
1915
1930
|
*/
|
|
1916
1931
|
bbox?: Array<number>;
|
|
1917
|
-
/**
|
|
1918
|
-
* Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
|
|
1919
|
-
*/
|
|
1920
1932
|
betterQuality?: boolean;
|
|
1921
1933
|
/**
|
|
1922
1934
|
* The control image already processed by canny detector. Must reference an
|
|
@@ -1975,9 +1987,6 @@ export declare namespace ExampleListResponse {
|
|
|
1975
1987
|
* Amount of details to remove or add
|
|
1976
1988
|
*/
|
|
1977
1989
|
detailsLevel?: number;
|
|
1978
|
-
/**
|
|
1979
|
-
* The number of pixels to dilate the result masks.
|
|
1980
|
-
*/
|
|
1981
1990
|
dilate?: number;
|
|
1982
1991
|
/**
|
|
1983
1992
|
* Contrast factor for Grayscale detector
|
|
@@ -2179,11 +2188,15 @@ export declare namespace ExampleListResponse {
|
|
|
2179
2188
|
*/
|
|
2180
2189
|
resultContours?: boolean;
|
|
2181
2190
|
/**
|
|
2182
|
-
* Boolean to
|
|
2191
|
+
* Boolean to return the source image with the mask applied as alpha channel (RGBA
|
|
2192
|
+
* PNG, transparent background) instead of the binary mask. Mutually exclusive with
|
|
2193
|
+
* `resultMask` — passing both as `true` returns a 400 error. Note:
|
|
2194
|
+
* `backgroundOpacity` is no longer honored — alpha is binary (0/255) only.
|
|
2183
2195
|
*/
|
|
2184
2196
|
resultImage?: boolean;
|
|
2185
2197
|
/**
|
|
2186
|
-
* Boolean to
|
|
2198
|
+
* Boolean to return the binary masks in the response. Mutually exclusive with
|
|
2199
|
+
* `resultImage` — passing both as `true` returns a 400 error.
|
|
2187
2200
|
*/
|
|
2188
2201
|
resultMask?: boolean;
|
|
2189
2202
|
rootParentId?: string;
|
|
@@ -2339,6 +2352,12 @@ export declare namespace ExampleListResponse {
|
|
|
2339
2352
|
* Number of channels of the audio
|
|
2340
2353
|
*/
|
|
2341
2354
|
channels?: number;
|
|
2355
|
+
/**
|
|
2356
|
+
* Number of Unicode code points in the text. Code-point-aware (so a non-BMP emoji
|
|
2357
|
+
* counts as 1) but not full grapheme-cluster aware (a ZWJ sequence still counts as
|
|
2358
|
+
* several).
|
|
2359
|
+
*/
|
|
2360
|
+
charCount?: number;
|
|
2342
2361
|
/**
|
|
2343
2362
|
* Classification of the audio
|
|
2344
2363
|
*/
|
|
@@ -2375,6 +2394,13 @@ export declare namespace ExampleListResponse {
|
|
|
2375
2394
|
* Whether the mesh has animations
|
|
2376
2395
|
*/
|
|
2377
2396
|
hasAnimations?: boolean;
|
|
2397
|
+
/**
|
|
2398
|
+
* True when `preview` holds the entire content unmodified — consumers can use it
|
|
2399
|
+
* directly without fetching `asset.url`. False or undefined means the content
|
|
2400
|
+
* exceeds the preview budget and consumers must fetch the full body from S3 to
|
|
2401
|
+
* read past the preview.
|
|
2402
|
+
*/
|
|
2403
|
+
hasFullPreview?: boolean;
|
|
2378
2404
|
/**
|
|
2379
2405
|
* Whether the mesh has normal vectors
|
|
2380
2406
|
*/
|
|
@@ -2392,6 +2418,14 @@ export declare namespace ExampleListResponse {
|
|
|
2392
2418
|
* Number of frames in the video
|
|
2393
2419
|
*/
|
|
2394
2420
|
nbFrames?: number;
|
|
2421
|
+
/**
|
|
2422
|
+
* Leading slice of the content used for inline UI display and as a search
|
|
2423
|
+
* shortcut. Capped at TEXT_PREVIEW_MAX_BYTES (UTF-8) and always cut on a
|
|
2424
|
+
* code-point boundary so no character is split. Number of characters in the
|
|
2425
|
+
* preview varies by script (around 1024 for ASCII, ~340 for CJK, ~256 for
|
|
2426
|
+
* emoji-heavy text at the default 1 KB budget).
|
|
2427
|
+
*/
|
|
2428
|
+
preview?: string;
|
|
2395
2429
|
/**
|
|
2396
2430
|
* Sample rate of the media in Hz
|
|
2397
2431
|
*/
|
|
@@ -2405,6 +2439,10 @@ export declare namespace ExampleListResponse {
|
|
|
2405
2439
|
*/
|
|
2406
2440
|
vertexCount?: number;
|
|
2407
2441
|
width?: number;
|
|
2442
|
+
/**
|
|
2443
|
+
* Number of whitespace-separated words in the text
|
|
2444
|
+
*/
|
|
2445
|
+
wordCount?: number;
|
|
2408
2446
|
}
|
|
2409
2447
|
namespace Properties {
|
|
2410
2448
|
/**
|
|
@@ -3000,7 +3038,7 @@ export declare namespace ExampleListResponse {
|
|
|
3000
3038
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3001
3039
|
* data:kind, prefix
|
|
3002
3040
|
*/
|
|
3003
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
3041
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3004
3042
|
/**
|
|
3005
3043
|
* The label displayed in the UI for this input
|
|
3006
3044
|
*/
|
|
@@ -3158,7 +3196,7 @@ export declare namespace ExampleListResponse {
|
|
|
3158
3196
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3159
3197
|
* data:kind, prefix
|
|
3160
3198
|
*/
|
|
3161
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
3199
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3162
3200
|
/**
|
|
3163
3201
|
* The label displayed in the UI for this input
|
|
3164
3202
|
*/
|