@shop-os/modelkit 0.5.0 → 0.6.1
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 +19 -0
- package/README.md +26 -1
- package/dist/catalog.cjs +607 -83
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +224 -3
- package/dist/catalog.d.ts +224 -3
- package/dist/catalog.js +607 -83
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +1349 -473
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +254 -3
- package/dist/index.d.ts +254 -3
- package/dist/index.js +1339 -473
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -68,7 +68,62 @@ type ModelType = "text" | "image" | "video" | "audio"
|
|
|
68
68
|
/** A face driven by speech (`lipsync`): a `sourceVideo` re-timed or a still `image` animated. */
|
|
69
69
|
| "lipsync"
|
|
70
70
|
/** Speech to text (`transcribe`). */
|
|
71
|
-
| "transcription"
|
|
71
|
+
| "transcription"
|
|
72
|
+
/** A prompt and/or photos of an object in, a GLB 3D model out. */
|
|
73
|
+
| "model3d";
|
|
74
|
+
/**
|
|
75
|
+
* How a `model3d` row's provider API is shaped. The adapter builds the request body and
|
|
76
|
+
* reads the result per family; everything a caller shows (inputs, views, options) is
|
|
77
|
+
* data on the row's `constraints.model3d`.
|
|
78
|
+
*/
|
|
79
|
+
type Model3dFamily = "trellis" | "hunyuan" | "tripo" | "rodin" | "meshy" | "hi3d" | "sam";
|
|
80
|
+
/**
|
|
81
|
+
* How a `model3d` row takes extra views of the object:
|
|
82
|
+
* - `none`: one image only.
|
|
83
|
+
* - `unordered`: a list of images in any order (Meshy, Rodin).
|
|
84
|
+
* - `ordered`: front, left, back, right, contiguous from the front (Tripo).
|
|
85
|
+
* - `named`: one slot per side (Hunyuan, Hi3D).
|
|
86
|
+
*/
|
|
87
|
+
type Model3dViews = "none" | "unordered" | "ordered" | "named";
|
|
88
|
+
type Model3dTexture = "none" | "standard" | "detailed";
|
|
89
|
+
/** fal paths a `model3d` row calls, by what the request carries. */
|
|
90
|
+
interface Model3dEndpoints {
|
|
91
|
+
/** A prompt and no image. */
|
|
92
|
+
text?: string;
|
|
93
|
+
/** One image. */
|
|
94
|
+
image?: string;
|
|
95
|
+
/** More than one image (the main image plus views). */
|
|
96
|
+
multiImage?: string;
|
|
97
|
+
}
|
|
98
|
+
/** What a `model3d` row takes and offers; see Model3dFamily. */
|
|
99
|
+
interface Model3dConstraints {
|
|
100
|
+
family: Model3dFamily;
|
|
101
|
+
endpoints: Model3dEndpoints;
|
|
102
|
+
/** Takes a text prompt (text-to-3D, or SAM's object name). */
|
|
103
|
+
text: boolean;
|
|
104
|
+
/** Needs an image whatever else is sent. */
|
|
105
|
+
imageRequired: boolean;
|
|
106
|
+
/** Needs a prompt whatever else is sent (SAM names the object to lift). */
|
|
107
|
+
promptRequired?: boolean;
|
|
108
|
+
views: Model3dViews;
|
|
109
|
+
/** Most images one request takes, the main image included. */
|
|
110
|
+
maxImages: number;
|
|
111
|
+
/** Texture choices; empty means the model has no texture switch. */
|
|
112
|
+
texture: Model3dTexture[];
|
|
113
|
+
pbr: boolean;
|
|
114
|
+
/** Takes a texture prompt and a texture image (Meshy). */
|
|
115
|
+
textureRef: boolean;
|
|
116
|
+
/** The provider takes a seed (for Meshy, only from a prompt). */
|
|
117
|
+
seed: boolean;
|
|
118
|
+
/** Largest seed the provider takes (Rodin: 65535); absent, any non-negative integer. */
|
|
119
|
+
seedMax?: number;
|
|
120
|
+
/** A quality or resolution choice the row prices by; absent when it has none. */
|
|
121
|
+
resolutions?: {
|
|
122
|
+
label: string;
|
|
123
|
+
options: string[];
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
72
127
|
/** What a `video-tool` row does to its source clip. */
|
|
73
128
|
type VideoToolKind = "upscale" | "interpolate" | "hdr" | "bg-remove" | "subtitles";
|
|
74
129
|
/** Container/codec a video-tool row can write. */
|
|
@@ -268,6 +323,69 @@ interface VideoToolResult {
|
|
|
268
323
|
usage: UsageEvent;
|
|
269
324
|
raw?: unknown;
|
|
270
325
|
}
|
|
326
|
+
/** One 3D generation. Image URLs must be public; the provider fetches them. */
|
|
327
|
+
interface Model3dRequest {
|
|
328
|
+
model: string;
|
|
329
|
+
prompt?: string;
|
|
330
|
+
/** The main (front) image. */
|
|
331
|
+
image?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Extra views of the same object; read only by rows whose `views` is not `none`. `top` is a
|
|
334
|
+
* fifth photo that only `unordered` rows send (all five fit Rodin's `maxImages` 5; Meshy sends
|
|
335
|
+
* the first 4 set); `named` and `ordered` rows have no slot for it and ignore it.
|
|
336
|
+
*/
|
|
337
|
+
views?: {
|
|
338
|
+
back?: string;
|
|
339
|
+
left?: string;
|
|
340
|
+
right?: string;
|
|
341
|
+
top?: string;
|
|
342
|
+
};
|
|
343
|
+
/** Rows with `textureRef`. */
|
|
344
|
+
texturePrompt?: string;
|
|
345
|
+
textureImage?: string;
|
|
346
|
+
/** The row's `texture` default when unset; ignored by rows without a texture switch. */
|
|
347
|
+
texture?: Model3dTexture;
|
|
348
|
+
/** Rows with `pbr`; only applied to a textured model. */
|
|
349
|
+
pbr?: boolean;
|
|
350
|
+
/** One of the row's `resolutions.options`; its default when unset. */
|
|
351
|
+
resolution?: string;
|
|
352
|
+
/** Rows with `seed`. */
|
|
353
|
+
seed?: number;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* A submitted 3D job. Plain JSON so a caller can store it and pass it back to
|
|
357
|
+
* `model3dStatus` / `model3dResult` / `cancelModel3d` from another process.
|
|
358
|
+
*/
|
|
359
|
+
interface Model3dSubmission {
|
|
360
|
+
model: string;
|
|
361
|
+
provider: "fal";
|
|
362
|
+
/** The fal path the job went to. */
|
|
363
|
+
endpoint: string;
|
|
364
|
+
/** The priced option combination (pro-backend credit_pricing_flat model key). */
|
|
365
|
+
sku: string;
|
|
366
|
+
requestId: string;
|
|
367
|
+
statusUrl: string;
|
|
368
|
+
responseUrl: string;
|
|
369
|
+
cancelUrl: string;
|
|
370
|
+
/** Epoch ms when the kit submitted the job; the result's usage `latencyMs` is measured from it. */
|
|
371
|
+
submittedAt?: number;
|
|
372
|
+
}
|
|
373
|
+
type Model3dStatus = "queued" | "running" | "completed";
|
|
374
|
+
interface Model3dResult {
|
|
375
|
+
/** The binary glTF the provider made. */
|
|
376
|
+
glb: {
|
|
377
|
+
url: string;
|
|
378
|
+
mime?: string;
|
|
379
|
+
bytes?: number;
|
|
380
|
+
};
|
|
381
|
+
/** The provider's still of the model, when it returns one. */
|
|
382
|
+
thumbnail?: {
|
|
383
|
+
url: string;
|
|
384
|
+
};
|
|
385
|
+
sku: string;
|
|
386
|
+
usage: UsageEvent;
|
|
387
|
+
raw?: unknown;
|
|
388
|
+
}
|
|
271
389
|
interface AudioRequest {
|
|
272
390
|
model: string;
|
|
273
391
|
prompt: string;
|
|
@@ -572,6 +690,8 @@ interface ModelConstraints {
|
|
|
572
690
|
};
|
|
573
691
|
/** What a `video-tool` row accepts. Read it through `videoToolConstraints(row)`. */
|
|
574
692
|
tool?: VideoToolConstraints;
|
|
693
|
+
/** Required on `model3d` rows. */
|
|
694
|
+
model3d?: Model3dConstraints;
|
|
575
695
|
/** Whether the output has sound. Read it through `outputAudio(row)`, which tolerates bad data. */
|
|
576
696
|
audio?: AudioOutput;
|
|
577
697
|
/** Prompt conventions. Read them through `promptConventions(row)`, which fills the default. */
|
|
@@ -597,7 +717,8 @@ type ProviderOptions = {
|
|
|
597
717
|
[key: string]: ProviderOptionValue;
|
|
598
718
|
};
|
|
599
719
|
};
|
|
600
|
-
|
|
720
|
+
/** `requests`: one call billed at a flat price per request (a 3D job); the usage sink's `REQUESTS`. */
|
|
721
|
+
type UsageUnit = "tokens" | "images" | "seconds" | "reported_cost_usd" | "compute_seconds" | "requests";
|
|
601
722
|
type UsageModality = "TEXT" | "IMAGE" | "VIDEO" | "AUDIO";
|
|
602
723
|
type PricingKind = "token" | "image_size" | "video_per_second" | "flat";
|
|
603
724
|
/** What a model picker shows for a row. Free of any surface-specific ids. */
|
|
@@ -938,6 +1059,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
938
1059
|
dubbing: "dubbing";
|
|
939
1060
|
lipsync: "lipsync";
|
|
940
1061
|
transcription: "transcription";
|
|
1062
|
+
model3d: "model3d";
|
|
941
1063
|
}>;
|
|
942
1064
|
adapter: z.ZodEnum<{
|
|
943
1065
|
"ai-sdk-text": "ai-sdk-text";
|
|
@@ -1134,6 +1256,46 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1134
1256
|
translationLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1135
1257
|
maxSecondsAbove1080p: z.ZodOptional<z.ZodNumber>;
|
|
1136
1258
|
}, z.core.$loose>>;
|
|
1259
|
+
model3d: z.ZodOptional<z.ZodObject<{
|
|
1260
|
+
family: z.ZodEnum<{
|
|
1261
|
+
trellis: "trellis";
|
|
1262
|
+
hunyuan: "hunyuan";
|
|
1263
|
+
tripo: "tripo";
|
|
1264
|
+
rodin: "rodin";
|
|
1265
|
+
meshy: "meshy";
|
|
1266
|
+
hi3d: "hi3d";
|
|
1267
|
+
sam: "sam";
|
|
1268
|
+
}>;
|
|
1269
|
+
endpoints: z.ZodObject<{
|
|
1270
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
multiImage: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
}, z.core.$loose>;
|
|
1274
|
+
text: z.ZodBoolean;
|
|
1275
|
+
imageRequired: z.ZodBoolean;
|
|
1276
|
+
promptRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1277
|
+
views: z.ZodEnum<{
|
|
1278
|
+
none: "none";
|
|
1279
|
+
unordered: "unordered";
|
|
1280
|
+
ordered: "ordered";
|
|
1281
|
+
named: "named";
|
|
1282
|
+
}>;
|
|
1283
|
+
maxImages: z.ZodNumber;
|
|
1284
|
+
texture: z.ZodArray<z.ZodEnum<{
|
|
1285
|
+
none: "none";
|
|
1286
|
+
standard: "standard";
|
|
1287
|
+
detailed: "detailed";
|
|
1288
|
+
}>>;
|
|
1289
|
+
pbr: z.ZodBoolean;
|
|
1290
|
+
textureRef: z.ZodBoolean;
|
|
1291
|
+
seed: z.ZodBoolean;
|
|
1292
|
+
seedMax: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
resolutions: z.ZodOptional<z.ZodObject<{
|
|
1294
|
+
label: z.ZodString;
|
|
1295
|
+
options: z.ZodArray<z.ZodString>;
|
|
1296
|
+
default: z.ZodString;
|
|
1297
|
+
}, z.core.$loose>>;
|
|
1298
|
+
}, z.core.$loose>>;
|
|
1137
1299
|
audio: z.ZodOptional<z.ZodUnknown>;
|
|
1138
1300
|
prompt: z.ZodOptional<z.ZodUnknown>;
|
|
1139
1301
|
}, z.core.$loose>;
|
|
@@ -1322,6 +1484,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1322
1484
|
seconds: "seconds";
|
|
1323
1485
|
reported_cost_usd: "reported_cost_usd";
|
|
1324
1486
|
compute_seconds: "compute_seconds";
|
|
1487
|
+
requests: "requests";
|
|
1325
1488
|
}>;
|
|
1326
1489
|
slug: z.ZodOptional<z.ZodString>;
|
|
1327
1490
|
providerLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1442,6 +1605,64 @@ type VideoToolPlan = {
|
|
|
1442
1605
|
*/
|
|
1443
1606
|
declare function planVideoTool(row: CatalogModel, req: Omit<VideoToolRequest, "model">): VideoToolPlan;
|
|
1444
1607
|
|
|
1608
|
+
/**
|
|
1609
|
+
* 3D generation on fal: the newest model of each 3D family. A request's price depends on
|
|
1610
|
+
* its options (texture, PBR, views, resolution), so each row bills one flat price per
|
|
1611
|
+
* option combination: `model3dSkus(row)` lists them and pro-backend keeps a
|
|
1612
|
+
* credit_pricing_flat row for each.
|
|
1613
|
+
*/
|
|
1614
|
+
declare const MODEL3D_MODELS: CatalogModel[];
|
|
1615
|
+
|
|
1616
|
+
/** A `model3d` row's spec, or undefined for any other row. */
|
|
1617
|
+
declare function model3dConstraints(row: CatalogModel): Model3dConstraints | undefined;
|
|
1618
|
+
/** Which inputs a request carries (or a canvas node has wired). */
|
|
1619
|
+
interface Model3dWired {
|
|
1620
|
+
prompt: boolean;
|
|
1621
|
+
image: boolean;
|
|
1622
|
+
back: boolean;
|
|
1623
|
+
left: boolean;
|
|
1624
|
+
right: boolean;
|
|
1625
|
+
/** The fifth photo (`views.top`); only `unordered` rows read it. */
|
|
1626
|
+
top?: boolean;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* The image slots the fal adapter's request mapping (`model3dCall`) fills for each kind of
|
|
1630
|
+
* views, in the order it sends them. A row's `maxImages` may not exceed its kind's count.
|
|
1631
|
+
*/
|
|
1632
|
+
declare const MODEL3D_IMAGE_SLOTS: {
|
|
1633
|
+
readonly none: readonly ["image"];
|
|
1634
|
+
readonly named: readonly ["image", "back", "left", "right"];
|
|
1635
|
+
readonly ordered: readonly ["image", "left", "back", "right"];
|
|
1636
|
+
readonly unordered: readonly ["image", "back", "left", "right", "top"];
|
|
1637
|
+
};
|
|
1638
|
+
type Model3dInputRefusal = "model3d_needs_image" | "model3d_needs_prompt" | "model3d_needs_input" | "model3d_views_need_image" | "model3d_views_out_of_order";
|
|
1639
|
+
/** Why a row cannot run with these inputs, or null when it can. */
|
|
1640
|
+
declare function model3dInputRefusal(spec: Model3dConstraints, wired: Model3dWired): Model3dInputRefusal | null;
|
|
1641
|
+
/** Whether the row's provider takes this seed: a non-negative integer up to its `seedMax`. */
|
|
1642
|
+
declare function model3dSeedFits(spec: Model3dConstraints, seed: number): boolean;
|
|
1643
|
+
/** The texture a request gets: its own when the row offers it, else the row's default. */
|
|
1644
|
+
declare function model3dTexture(spec: Model3dConstraints, requested: Model3dTexture | undefined): Model3dTexture;
|
|
1645
|
+
/** The resolution a request gets: its own when the row offers it, else the row's default. */
|
|
1646
|
+
declare function model3dResolution(spec: Model3dConstraints, requested: string | undefined): string | undefined;
|
|
1647
|
+
/** The options a request sets that change its price. */
|
|
1648
|
+
interface Model3dPricedOptions {
|
|
1649
|
+
texture?: Model3dTexture;
|
|
1650
|
+
pbr?: boolean;
|
|
1651
|
+
resolution?: string;
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* What the request carries that changes its price: an image (Tripo prices text lower)
|
|
1655
|
+
* and side views (Hunyuan adds for them). A quote that cannot tell passes both true.
|
|
1656
|
+
*/
|
|
1657
|
+
interface Model3dPricedInputs {
|
|
1658
|
+
image: boolean;
|
|
1659
|
+
views: boolean;
|
|
1660
|
+
}
|
|
1661
|
+
/** The pro-backend credit_pricing_flat key one request bills under. */
|
|
1662
|
+
declare function model3dPricingSku(row: CatalogModel, options: Model3dPricedOptions, inputs: Model3dPricedInputs): string;
|
|
1663
|
+
/** Every SKU a row can bill under; pro-backend needs a price for each. */
|
|
1664
|
+
declare function model3dSkus(row: CatalogModel): string[];
|
|
1665
|
+
|
|
1445
1666
|
declare const TEXT_MODELS: CatalogModel[];
|
|
1446
1667
|
|
|
1447
1668
|
declare const OTHER_MODELS: CatalogModel[];
|
|
@@ -1596,4 +1817,4 @@ declare class ModelKitError extends Error {
|
|
|
1596
1817
|
}
|
|
1597
1818
|
declare function isModelKitError(err: unknown): err is ModelKitError;
|
|
1598
1819
|
|
|
1599
|
-
export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, sortCatalogRows, videoLengthViolation, videoToolConstraints };
|
|
1820
|
+
export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, sortCatalogRows, videoLengthViolation, videoToolConstraints };
|
package/dist/catalog.d.ts
CHANGED
|
@@ -68,7 +68,62 @@ type ModelType = "text" | "image" | "video" | "audio"
|
|
|
68
68
|
/** A face driven by speech (`lipsync`): a `sourceVideo` re-timed or a still `image` animated. */
|
|
69
69
|
| "lipsync"
|
|
70
70
|
/** Speech to text (`transcribe`). */
|
|
71
|
-
| "transcription"
|
|
71
|
+
| "transcription"
|
|
72
|
+
/** A prompt and/or photos of an object in, a GLB 3D model out. */
|
|
73
|
+
| "model3d";
|
|
74
|
+
/**
|
|
75
|
+
* How a `model3d` row's provider API is shaped. The adapter builds the request body and
|
|
76
|
+
* reads the result per family; everything a caller shows (inputs, views, options) is
|
|
77
|
+
* data on the row's `constraints.model3d`.
|
|
78
|
+
*/
|
|
79
|
+
type Model3dFamily = "trellis" | "hunyuan" | "tripo" | "rodin" | "meshy" | "hi3d" | "sam";
|
|
80
|
+
/**
|
|
81
|
+
* How a `model3d` row takes extra views of the object:
|
|
82
|
+
* - `none`: one image only.
|
|
83
|
+
* - `unordered`: a list of images in any order (Meshy, Rodin).
|
|
84
|
+
* - `ordered`: front, left, back, right, contiguous from the front (Tripo).
|
|
85
|
+
* - `named`: one slot per side (Hunyuan, Hi3D).
|
|
86
|
+
*/
|
|
87
|
+
type Model3dViews = "none" | "unordered" | "ordered" | "named";
|
|
88
|
+
type Model3dTexture = "none" | "standard" | "detailed";
|
|
89
|
+
/** fal paths a `model3d` row calls, by what the request carries. */
|
|
90
|
+
interface Model3dEndpoints {
|
|
91
|
+
/** A prompt and no image. */
|
|
92
|
+
text?: string;
|
|
93
|
+
/** One image. */
|
|
94
|
+
image?: string;
|
|
95
|
+
/** More than one image (the main image plus views). */
|
|
96
|
+
multiImage?: string;
|
|
97
|
+
}
|
|
98
|
+
/** What a `model3d` row takes and offers; see Model3dFamily. */
|
|
99
|
+
interface Model3dConstraints {
|
|
100
|
+
family: Model3dFamily;
|
|
101
|
+
endpoints: Model3dEndpoints;
|
|
102
|
+
/** Takes a text prompt (text-to-3D, or SAM's object name). */
|
|
103
|
+
text: boolean;
|
|
104
|
+
/** Needs an image whatever else is sent. */
|
|
105
|
+
imageRequired: boolean;
|
|
106
|
+
/** Needs a prompt whatever else is sent (SAM names the object to lift). */
|
|
107
|
+
promptRequired?: boolean;
|
|
108
|
+
views: Model3dViews;
|
|
109
|
+
/** Most images one request takes, the main image included. */
|
|
110
|
+
maxImages: number;
|
|
111
|
+
/** Texture choices; empty means the model has no texture switch. */
|
|
112
|
+
texture: Model3dTexture[];
|
|
113
|
+
pbr: boolean;
|
|
114
|
+
/** Takes a texture prompt and a texture image (Meshy). */
|
|
115
|
+
textureRef: boolean;
|
|
116
|
+
/** The provider takes a seed (for Meshy, only from a prompt). */
|
|
117
|
+
seed: boolean;
|
|
118
|
+
/** Largest seed the provider takes (Rodin: 65535); absent, any non-negative integer. */
|
|
119
|
+
seedMax?: number;
|
|
120
|
+
/** A quality or resolution choice the row prices by; absent when it has none. */
|
|
121
|
+
resolutions?: {
|
|
122
|
+
label: string;
|
|
123
|
+
options: string[];
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
72
127
|
/** What a `video-tool` row does to its source clip. */
|
|
73
128
|
type VideoToolKind = "upscale" | "interpolate" | "hdr" | "bg-remove" | "subtitles";
|
|
74
129
|
/** Container/codec a video-tool row can write. */
|
|
@@ -268,6 +323,69 @@ interface VideoToolResult {
|
|
|
268
323
|
usage: UsageEvent;
|
|
269
324
|
raw?: unknown;
|
|
270
325
|
}
|
|
326
|
+
/** One 3D generation. Image URLs must be public; the provider fetches them. */
|
|
327
|
+
interface Model3dRequest {
|
|
328
|
+
model: string;
|
|
329
|
+
prompt?: string;
|
|
330
|
+
/** The main (front) image. */
|
|
331
|
+
image?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Extra views of the same object; read only by rows whose `views` is not `none`. `top` is a
|
|
334
|
+
* fifth photo that only `unordered` rows send (all five fit Rodin's `maxImages` 5; Meshy sends
|
|
335
|
+
* the first 4 set); `named` and `ordered` rows have no slot for it and ignore it.
|
|
336
|
+
*/
|
|
337
|
+
views?: {
|
|
338
|
+
back?: string;
|
|
339
|
+
left?: string;
|
|
340
|
+
right?: string;
|
|
341
|
+
top?: string;
|
|
342
|
+
};
|
|
343
|
+
/** Rows with `textureRef`. */
|
|
344
|
+
texturePrompt?: string;
|
|
345
|
+
textureImage?: string;
|
|
346
|
+
/** The row's `texture` default when unset; ignored by rows without a texture switch. */
|
|
347
|
+
texture?: Model3dTexture;
|
|
348
|
+
/** Rows with `pbr`; only applied to a textured model. */
|
|
349
|
+
pbr?: boolean;
|
|
350
|
+
/** One of the row's `resolutions.options`; its default when unset. */
|
|
351
|
+
resolution?: string;
|
|
352
|
+
/** Rows with `seed`. */
|
|
353
|
+
seed?: number;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* A submitted 3D job. Plain JSON so a caller can store it and pass it back to
|
|
357
|
+
* `model3dStatus` / `model3dResult` / `cancelModel3d` from another process.
|
|
358
|
+
*/
|
|
359
|
+
interface Model3dSubmission {
|
|
360
|
+
model: string;
|
|
361
|
+
provider: "fal";
|
|
362
|
+
/** The fal path the job went to. */
|
|
363
|
+
endpoint: string;
|
|
364
|
+
/** The priced option combination (pro-backend credit_pricing_flat model key). */
|
|
365
|
+
sku: string;
|
|
366
|
+
requestId: string;
|
|
367
|
+
statusUrl: string;
|
|
368
|
+
responseUrl: string;
|
|
369
|
+
cancelUrl: string;
|
|
370
|
+
/** Epoch ms when the kit submitted the job; the result's usage `latencyMs` is measured from it. */
|
|
371
|
+
submittedAt?: number;
|
|
372
|
+
}
|
|
373
|
+
type Model3dStatus = "queued" | "running" | "completed";
|
|
374
|
+
interface Model3dResult {
|
|
375
|
+
/** The binary glTF the provider made. */
|
|
376
|
+
glb: {
|
|
377
|
+
url: string;
|
|
378
|
+
mime?: string;
|
|
379
|
+
bytes?: number;
|
|
380
|
+
};
|
|
381
|
+
/** The provider's still of the model, when it returns one. */
|
|
382
|
+
thumbnail?: {
|
|
383
|
+
url: string;
|
|
384
|
+
};
|
|
385
|
+
sku: string;
|
|
386
|
+
usage: UsageEvent;
|
|
387
|
+
raw?: unknown;
|
|
388
|
+
}
|
|
271
389
|
interface AudioRequest {
|
|
272
390
|
model: string;
|
|
273
391
|
prompt: string;
|
|
@@ -572,6 +690,8 @@ interface ModelConstraints {
|
|
|
572
690
|
};
|
|
573
691
|
/** What a `video-tool` row accepts. Read it through `videoToolConstraints(row)`. */
|
|
574
692
|
tool?: VideoToolConstraints;
|
|
693
|
+
/** Required on `model3d` rows. */
|
|
694
|
+
model3d?: Model3dConstraints;
|
|
575
695
|
/** Whether the output has sound. Read it through `outputAudio(row)`, which tolerates bad data. */
|
|
576
696
|
audio?: AudioOutput;
|
|
577
697
|
/** Prompt conventions. Read them through `promptConventions(row)`, which fills the default. */
|
|
@@ -597,7 +717,8 @@ type ProviderOptions = {
|
|
|
597
717
|
[key: string]: ProviderOptionValue;
|
|
598
718
|
};
|
|
599
719
|
};
|
|
600
|
-
|
|
720
|
+
/** `requests`: one call billed at a flat price per request (a 3D job); the usage sink's `REQUESTS`. */
|
|
721
|
+
type UsageUnit = "tokens" | "images" | "seconds" | "reported_cost_usd" | "compute_seconds" | "requests";
|
|
601
722
|
type UsageModality = "TEXT" | "IMAGE" | "VIDEO" | "AUDIO";
|
|
602
723
|
type PricingKind = "token" | "image_size" | "video_per_second" | "flat";
|
|
603
724
|
/** What a model picker shows for a row. Free of any surface-specific ids. */
|
|
@@ -938,6 +1059,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
938
1059
|
dubbing: "dubbing";
|
|
939
1060
|
lipsync: "lipsync";
|
|
940
1061
|
transcription: "transcription";
|
|
1062
|
+
model3d: "model3d";
|
|
941
1063
|
}>;
|
|
942
1064
|
adapter: z.ZodEnum<{
|
|
943
1065
|
"ai-sdk-text": "ai-sdk-text";
|
|
@@ -1134,6 +1256,46 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1134
1256
|
translationLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1135
1257
|
maxSecondsAbove1080p: z.ZodOptional<z.ZodNumber>;
|
|
1136
1258
|
}, z.core.$loose>>;
|
|
1259
|
+
model3d: z.ZodOptional<z.ZodObject<{
|
|
1260
|
+
family: z.ZodEnum<{
|
|
1261
|
+
trellis: "trellis";
|
|
1262
|
+
hunyuan: "hunyuan";
|
|
1263
|
+
tripo: "tripo";
|
|
1264
|
+
rodin: "rodin";
|
|
1265
|
+
meshy: "meshy";
|
|
1266
|
+
hi3d: "hi3d";
|
|
1267
|
+
sam: "sam";
|
|
1268
|
+
}>;
|
|
1269
|
+
endpoints: z.ZodObject<{
|
|
1270
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
multiImage: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
}, z.core.$loose>;
|
|
1274
|
+
text: z.ZodBoolean;
|
|
1275
|
+
imageRequired: z.ZodBoolean;
|
|
1276
|
+
promptRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1277
|
+
views: z.ZodEnum<{
|
|
1278
|
+
none: "none";
|
|
1279
|
+
unordered: "unordered";
|
|
1280
|
+
ordered: "ordered";
|
|
1281
|
+
named: "named";
|
|
1282
|
+
}>;
|
|
1283
|
+
maxImages: z.ZodNumber;
|
|
1284
|
+
texture: z.ZodArray<z.ZodEnum<{
|
|
1285
|
+
none: "none";
|
|
1286
|
+
standard: "standard";
|
|
1287
|
+
detailed: "detailed";
|
|
1288
|
+
}>>;
|
|
1289
|
+
pbr: z.ZodBoolean;
|
|
1290
|
+
textureRef: z.ZodBoolean;
|
|
1291
|
+
seed: z.ZodBoolean;
|
|
1292
|
+
seedMax: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
resolutions: z.ZodOptional<z.ZodObject<{
|
|
1294
|
+
label: z.ZodString;
|
|
1295
|
+
options: z.ZodArray<z.ZodString>;
|
|
1296
|
+
default: z.ZodString;
|
|
1297
|
+
}, z.core.$loose>>;
|
|
1298
|
+
}, z.core.$loose>>;
|
|
1137
1299
|
audio: z.ZodOptional<z.ZodUnknown>;
|
|
1138
1300
|
prompt: z.ZodOptional<z.ZodUnknown>;
|
|
1139
1301
|
}, z.core.$loose>;
|
|
@@ -1322,6 +1484,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1322
1484
|
seconds: "seconds";
|
|
1323
1485
|
reported_cost_usd: "reported_cost_usd";
|
|
1324
1486
|
compute_seconds: "compute_seconds";
|
|
1487
|
+
requests: "requests";
|
|
1325
1488
|
}>;
|
|
1326
1489
|
slug: z.ZodOptional<z.ZodString>;
|
|
1327
1490
|
providerLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1442,6 +1605,64 @@ type VideoToolPlan = {
|
|
|
1442
1605
|
*/
|
|
1443
1606
|
declare function planVideoTool(row: CatalogModel, req: Omit<VideoToolRequest, "model">): VideoToolPlan;
|
|
1444
1607
|
|
|
1608
|
+
/**
|
|
1609
|
+
* 3D generation on fal: the newest model of each 3D family. A request's price depends on
|
|
1610
|
+
* its options (texture, PBR, views, resolution), so each row bills one flat price per
|
|
1611
|
+
* option combination: `model3dSkus(row)` lists them and pro-backend keeps a
|
|
1612
|
+
* credit_pricing_flat row for each.
|
|
1613
|
+
*/
|
|
1614
|
+
declare const MODEL3D_MODELS: CatalogModel[];
|
|
1615
|
+
|
|
1616
|
+
/** A `model3d` row's spec, or undefined for any other row. */
|
|
1617
|
+
declare function model3dConstraints(row: CatalogModel): Model3dConstraints | undefined;
|
|
1618
|
+
/** Which inputs a request carries (or a canvas node has wired). */
|
|
1619
|
+
interface Model3dWired {
|
|
1620
|
+
prompt: boolean;
|
|
1621
|
+
image: boolean;
|
|
1622
|
+
back: boolean;
|
|
1623
|
+
left: boolean;
|
|
1624
|
+
right: boolean;
|
|
1625
|
+
/** The fifth photo (`views.top`); only `unordered` rows read it. */
|
|
1626
|
+
top?: boolean;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* The image slots the fal adapter's request mapping (`model3dCall`) fills for each kind of
|
|
1630
|
+
* views, in the order it sends them. A row's `maxImages` may not exceed its kind's count.
|
|
1631
|
+
*/
|
|
1632
|
+
declare const MODEL3D_IMAGE_SLOTS: {
|
|
1633
|
+
readonly none: readonly ["image"];
|
|
1634
|
+
readonly named: readonly ["image", "back", "left", "right"];
|
|
1635
|
+
readonly ordered: readonly ["image", "left", "back", "right"];
|
|
1636
|
+
readonly unordered: readonly ["image", "back", "left", "right", "top"];
|
|
1637
|
+
};
|
|
1638
|
+
type Model3dInputRefusal = "model3d_needs_image" | "model3d_needs_prompt" | "model3d_needs_input" | "model3d_views_need_image" | "model3d_views_out_of_order";
|
|
1639
|
+
/** Why a row cannot run with these inputs, or null when it can. */
|
|
1640
|
+
declare function model3dInputRefusal(spec: Model3dConstraints, wired: Model3dWired): Model3dInputRefusal | null;
|
|
1641
|
+
/** Whether the row's provider takes this seed: a non-negative integer up to its `seedMax`. */
|
|
1642
|
+
declare function model3dSeedFits(spec: Model3dConstraints, seed: number): boolean;
|
|
1643
|
+
/** The texture a request gets: its own when the row offers it, else the row's default. */
|
|
1644
|
+
declare function model3dTexture(spec: Model3dConstraints, requested: Model3dTexture | undefined): Model3dTexture;
|
|
1645
|
+
/** The resolution a request gets: its own when the row offers it, else the row's default. */
|
|
1646
|
+
declare function model3dResolution(spec: Model3dConstraints, requested: string | undefined): string | undefined;
|
|
1647
|
+
/** The options a request sets that change its price. */
|
|
1648
|
+
interface Model3dPricedOptions {
|
|
1649
|
+
texture?: Model3dTexture;
|
|
1650
|
+
pbr?: boolean;
|
|
1651
|
+
resolution?: string;
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* What the request carries that changes its price: an image (Tripo prices text lower)
|
|
1655
|
+
* and side views (Hunyuan adds for them). A quote that cannot tell passes both true.
|
|
1656
|
+
*/
|
|
1657
|
+
interface Model3dPricedInputs {
|
|
1658
|
+
image: boolean;
|
|
1659
|
+
views: boolean;
|
|
1660
|
+
}
|
|
1661
|
+
/** The pro-backend credit_pricing_flat key one request bills under. */
|
|
1662
|
+
declare function model3dPricingSku(row: CatalogModel, options: Model3dPricedOptions, inputs: Model3dPricedInputs): string;
|
|
1663
|
+
/** Every SKU a row can bill under; pro-backend needs a price for each. */
|
|
1664
|
+
declare function model3dSkus(row: CatalogModel): string[];
|
|
1665
|
+
|
|
1445
1666
|
declare const TEXT_MODELS: CatalogModel[];
|
|
1446
1667
|
|
|
1447
1668
|
declare const OTHER_MODELS: CatalogModel[];
|
|
@@ -1596,4 +1817,4 @@ declare class ModelKitError extends Error {
|
|
|
1596
1817
|
}
|
|
1597
1818
|
declare function isModelKitError(err: unknown): err is ModelKitError;
|
|
1598
1819
|
|
|
1599
|
-
export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, sortCatalogRows, videoLengthViolation, videoToolConstraints };
|
|
1820
|
+
export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, sortCatalogRows, videoLengthViolation, videoToolConstraints };
|